/* Store-wide brand header; checkout keeps this same bar while suppressing navigation. */
body:has(.oc-checkout) > .alert[role="alert"],
body:has(.oc-checkout) .oc-global-site-header__navigation,
body:has(.oc-checkout) .mega-menu,
body:has(.oc-checkout) .mobile-footer,
body:has(.oc-checkout) .oc-store-checkout-header__mobile-menu,
body:has(.oc-checkout) footer {
    display: none !important;
}

.oc-global-site-header {
    position: relative;
    z-index: 100;
    width: 100%;
}

.oc-store-checkout-header {
    position: relative;
    z-index: 20;
    width: 100%;
    min-height: 72px;
    overflow: hidden;
    color: #fff;
    border-radius: 0 0 16px 16px;
    background-color: #ec902d;
    background-image: linear-gradient(108deg,
        #e95a05 0%,
        #f06406 30%,
        #ec902d 42%,
        #ec902d 58%,
        #ef6a06 82%,
        #e85e05 100%);
    isolation: isolate;
    box-shadow: 0 7px 16px rgba(119, 42, 0, .13);
}

.oc-store-checkout-header::before,
.oc-store-checkout-header::after {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    content: '';
}

.oc-store-checkout-header::before {
    top: -150px;
    left: 10%;
    width: min(30vw, 380px);
    height: 260px;
    border: 1px solid rgba(255, 213, 164, .15);
    border-radius: 0 0 58% 42%;
    background: linear-gradient(156deg, rgba(185, 50, 0, .34), rgba(255, 173, 59, .1));
    box-shadow: 22px 14px 48px rgba(155, 41, 0, .08);
    transform: rotate(-8deg);
}

.oc-store-checkout-header::after {
    top: -185px;
    right: 10%;
    width: min(30vw, 380px);
    height: 285px;
    border: 1px solid rgba(255, 222, 178, .14);
    border-radius: 0 0 28% 70%;
    background: linear-gradient(217deg, rgba(255, 179, 61, .28), rgba(203, 53, 0, .14));
    box-shadow: -18px 13px 42px rgba(167, 47, 0, .08);
    transform: rotate(8deg);
}

.oc-store-checkout-header__inner {
    display: grid;
    width: min(100% - 48px, 1280px);
    min-height: 72px;
    grid-template-columns: minmax(150px, 1fr) auto minmax(190px, 1fr);
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    direction: ltr;
}

.oc-store-checkout-header__actions {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: 12px;
    direction: ltr;
}

.oc-store-checkout-header__actions > a {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .27), 0 3px 7px rgba(115, 35, 0, .16);
    font-size: 1.2rem;
    text-decoration: none;
    transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}

.oc-store-checkout-header__actions > a:hover {
    color: #fff;
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 5px 10px rgba(115, 35, 0, .22);
}

.oc-store-checkout-header__divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, .42);
}

.oc-store-checkout-header__cart { display: flex; align-items: center; }

.oc-store-checkout-header__cart .oc-header-cart-link {
    position: relative;
    width: 35px;
    height: 35px;
    float: none !important;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .27), 0 3px 7px rgba(115, 35, 0, .16);
    text-decoration: none;
}

.oc-store-checkout-header__cart .oc-header-cart-link:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 5px 10px rgba(115, 35, 0, .22);
}

@media (min-width: 992px) {
    .oc-store-checkout-header__cart .oc-header-cart-link.d-lg-block { display: grid !important; }
}

@media (max-width: 991.98px) {
    .oc-store-checkout-header__cart .oc-header-cart-link.d-lg-none { display: grid !important; }
}

.oc-store-checkout-header__cart .oc-header-cart-link .icon-size { padding: 0 !important; color: #fff; font-size: 1.08rem; }

.oc-store-checkout-header__cart .oc-header-cart-link .badge {
    top: -5px !important;
    right: -7px !important;
    left: auto !important;
    min-width: 17px;
    height: 17px;
    padding: 1px 4px;
    border: 1px solid #fff;
    border-radius: 999px;
    color: #e95a05 !important;
    background: #fff !important;
    box-shadow: 0 2px 5px rgba(100, 30, 0, .2);
    font-size: .62rem;
    font-weight: 900;
    line-height: 13px;
    transform: none !important;
}

.oc-store-checkout-header__cart-divider { margin-inline-end: 1px; }

.oc-store-checkout-header__brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}

.oc-store-checkout-header__brand:hover { color: #fff; }

.oc-store-checkout-header__brand img {
    display: block;
    width: auto;
    height: 68px;
    max-width: 190px;
    object-fit: contain;
}

.oc-store-checkout-header__trust {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 9px;
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    direction: rtl;
    white-space: nowrap;
}

.oc-store-checkout-header__trust i { font-size: 1.15rem; }

.oc-store-checkout-header__mobile-menu { display: none; }

.oc-global-site-header__navigation { width: 100%; }

@media (max-width: 992px) {
    .oc-store-checkout-header {
        background-image: linear-gradient(90deg,
            #e95a05 0%, #f06406 25%, #ec902d 36%, #ec902d 64%, #ef6a06 78%, #e85e05 100%);
    }
    .oc-store-checkout-header::before { left: 4%; width: min(25vw, 220px); }
    .oc-store-checkout-header::after { right: 4%; width: min(25vw, 220px); }
    .oc-store-checkout-header__inner {
        width: calc(100% - 24px);
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 10px;
    }

    .oc-store-checkout-header__mobile-menu { display: block; }
    .oc-store-checkout-header__mobile-menu .responsive-menu { display: block !important; }
    .oc-store-checkout-header__mobile-menu .btn-responsive-menu {
        display: grid;
        width: 28px;
        height: 34px;
        place-items: center;
        padding: 0;
        color: #fff !important;
    }
    .oc-store-checkout-header__mobile-menu .btn-responsive-menu svg { width: 25px; height: 25px; }
}

@media (max-width: 600px) {
    .oc-store-checkout-header { min-height: 64px; }
    .oc-store-checkout-header {
        background-image: linear-gradient(90deg,
            #e95a05 0%, #f06406 25%, #ec902d 34%, #ec902d 66%, #ef6a06 78%, #e85e05 100%);
    }
    .oc-store-checkout-header::before { left: 3%; width: min(24vw, 96px); }
    .oc-store-checkout-header::after { right: 3%; width: min(24vw, 96px); }
    .oc-store-checkout-header__inner { min-height: 64px; gap: 5px; }
    .oc-store-checkout-header__actions { gap: 4px; }
    .oc-store-checkout-header__actions > a { width: 26px; height: 28px; font-size: .88rem; }
    .oc-store-checkout-header__actions > a[aria-label="جستجو"] { display: none; }
    .oc-store-checkout-header__cart .oc-header-cart-link { width: 26px; height: 28px; font-size: .88rem; }
    .oc-store-checkout-header__cart .oc-header-cart-link .icon-size { font-size: .92rem; }
    .oc-store-checkout-header__cart .oc-header-cart-link .badge { top: -5px !important; right: -6px !important; }
    .oc-store-checkout-header__divider { height: 20px; }
    .oc-store-checkout-header__brand img { height: 52px; max-width: 112px; }
    .oc-store-checkout-header__trust { gap: 5px; font-size: .58rem; white-space: normal; text-align: right; }
    .oc-store-checkout-header__trust i { flex: 0 0 auto; font-size: .9rem; }
    .oc-store-checkout-header__mobile-menu .btn-responsive-menu { width: 24px; height: 30px; }
    .oc-store-checkout-header__divider { display: none; }
}

/* Keep the OTP login emblem fully inside the login modal header. */
.auth .modal-content::before {
    top: 4px !important;
    left: 50% !important;
    width: 64px !important;
    height: 64px !important;
    font-size: 40px !important;
    line-height: 64px !important;
    z-index: 3;
    pointer-events: none;
}

.auth .modal-header {
    position: relative;
    z-index: 4;
    min-height: 72px;
}

/* Full-width mobile orange header behind the store logo. */
@media (max-width: 992px) {
  .oc-global-site-header { width: 100%; }
  .oc-store-checkout-header {
    width: 100%;
    max-width: none;
    border-radius: 0 0 14px 14px;
    background: #ea8a38 !important;
    background-image: none !important;
  }
  .oc-store-checkout-header::before,
  .oc-store-checkout-header::after { display: none !important; }
  .oc-store-checkout-header__brand img {
    box-sizing: content-box;
    padding: 4px 8px;
    border-radius: 9px;
    background: #fff;
  }
}
/* Full-width mobile orange header behind the store logo. */
@media (max-width: 992px) {
  .oc-global-site-header { width: 100%; }
  .oc-store-checkout-header {
    width: 100%; max-width: none; border-radius: 0 0 14px 14px;
    background: #ea8a38 !important; background-image: none !important;
  }
  .oc-store-checkout-header::before,
  .oc-store-checkout-header::after { display: none !important; }
  .oc-store-checkout-header__brand img {
    box-sizing: content-box; padding: 4px 8px; border-radius: 9px; background: #fff;
  }
}
/* Remove the white mobile logo card; the brand bar itself is orange. */
@media (max-width: 992px) {
  .oc-store-checkout-header__brand img {
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}