/* Fix Header Search Icon and Buttons */
.header-content .control-section .openMySearch,
.header-content .control-section .cart,
.header-content .control-section .account-text {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-inline-start: 35px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
}

.header-content .control-section .openMySearch {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .header-content .control-section .openMySearch {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.header-content .control-section i {
    font-size: 24px !important;
    color: #fff !important;
    line-height: 1 !important;
}

/* Fix Product Box Distortion on Homepage */
.product-item {
    background-color: #fff !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-item .img-holder {
    width: 100% !important;
    height: 300px !important;
    padding: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    background-color: #f7f7f7 !important;
}

.product-item .img-holder img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Fix Category Box on Homepage */
.category-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.category-item .img-holder {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1;
    border: 2px solid #fff !important;
    border-radius: 15px !important;
}

.category-item .img-holder .img-holder-child {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
}

.category-item .img-holder img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 15px !important;
}

/* Ensure Header Content isn't shifted by gutters */
.header-content {
    direction: ltr;
}

html[dir="rtl"] .header-content {
    direction: rtl;
}

/* Sticky Header Styles */
header {
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #0083ca;
}

/* Initial State */
header .logo img {
    transition: all 0.3s ease;
    height: 83px;
    width: auto;
}

/* Active State (Scrolled) */
header.sticky-active {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Shrink Elements on Scroll (Moderate) */
header.sticky-active .logo img {
    height: 50px !important;
    width: auto !important;
}

/* Mobile Sticky Logo */
@media (max-width: 767px) {
    header.sticky-active .logo img {
        height: 45px !important;
    }
}

header.sticky-active nav>.nav-ul>li {
    padding: 15px !important;
}

header.sticky-active nav>.nav-ul>li:first-child {
    padding: 15px !important;
    margin-inline-end: 30px !important;
}

body.sticky-body {
    padding-top: 113px;
}

/* =========================================
   VENDOR REGISTRATION PAGE STYLES
   (Prefix: .vr-)
   ========================================= */

body.vendor-registration-page {
    background-color: #fcfcfc;
}

.vr-page-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: "Bahij TheSansArabic", sans-serif;
    direction: rtl;
    text-align: right;
}

/* Header */
.vr-header {
    text-align: center;
    margin-bottom: 40px;
}

.vr-logo {
    background-color: #fff;
    padding: 20px 0 0;
    margin-bottom: 20px;
}

.vr-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.vr-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #666;
    margin: 0;
    margin-bottom: 10px;
}

.vr-title-underline {
    width: 150px;
    height: 3px;
    background-color: #0083ca;
    margin: 0 auto;
}

/* Stepper */
.vr-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.vr-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 33.33%;
}

.vr-step-icon {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #aeaeae;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.vr-step-label {
    font-size: 14px;
    color: #aeaeae;
    font-weight: 600;
    transition: all 0.3s;
}

/* Step Active State */
.vr-step.active .vr-step-icon {
    border-color: #0083ca;
    color: #0083ca;
    box-shadow: 0 0 0 3px rgba(0, 131, 202, 0.1);
}

.vr-step.active .vr-step-label {
    color: #0083ca;
}

/* Connector Lines */
.vr-stepper::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 16%;
    right: 16%;
    height: 4px;
    background-color: #eee;
    z-index: 1;
}

/* Form Box */
.vr-form-box {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 40px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Login Link */
.vr-login-link-box {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    border: 1px solid #eee;
    top: -20px;
}

.vr-login-link {
    color: #444;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vr-login-link i {
    color: #28a745;
}

.vr-login-link span {
    color: #555;
    text-decoration: underline;
}

/* Inputs & Labels */
.vr-row {
    display: flex;
    /* gap: 20px; REMOVED - Using margins for better RTL support */
    margin-bottom: 20px;
    gap: 24px;
}

.vr-row>.vr-col+.vr-col {
    margin-right: 20px;
}

.vr-col {
    flex: 1;
    /* Allows columns to share space equally without overflowing */
}

.vr-col-full {
    width: 100%;
}

.vr-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    text-align: right;
}

.vr-required {
    color: red;
}

.vr-input,
.vr-select,
.vr-textarea {
    /* width: 100%; */
    width: -webkit-fill-available;
    width: -moz-fill-available;
    width: fill-available;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border 0.3s;
    background-color: #fff;
}

.vr-input:focus,
.vr-select:focus,
.vr-textarea:focus {
    border-color: #0083ca;
}

.vr-input::placeholder {
    color: #999;
}

.vr-textarea {
    height: 100px;
    resize: none;
}

/* Error State */
.vr-error-border {
    border-color: #ffcccc;
    background-color: #fff6f6;
}

.vr-error-msg {
    color: red;
    font-size: 12px;
    margin-top: 5px;
    text-align: right;
}

/* File Input Hack */
.vr-file-input {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 3px;
    overflow: hidden;
}

.vr-file-input button {
    background: #e9e9e9;
    border: none;
    padding: 8px 15px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    border-left: 1px solid #ccc;
}

.vr-file-input .vr-file-label {
    flex-grow: 1;
    padding: 8px 10px;
    font-size: 13px;
    color: #777;
    background: #fff;
}

/* Buttons */
.vr-actions {
    display: flex;
    margin-top: 30px;
}

.vr-actions.right {
    justify-content: flex-end;
}

.vr-actions.space-between {
    justify-content: space-between;
}

.vr-btn-next {
    background-color: #0083ca;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.vr-btn-next:hover {
    background-color: #006bad;
}

.vr-btn-prev {
    background-color: #fff;
    color: #777;
    border: 1px solid #ddd;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.vr-btn-prev:hover {
    background-color: #f9f9f9;
}

/* Steps Visibility */
.vr-step-content {
    display: none;
}

.vr-step-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .vr-row {
        flex-direction: column;
        gap: 15px;
    }

    .vr-col {
        width: 100%;
    }

    .vr-step-label {
        font-size: 12px;
    }
}