/* Site logo (white line art on black PNG) */
.store-logo {
    line-height: 0;
}
.store-logo__img {
    width: auto;
    object-fit: contain;
    display: block;
}
.store-logo--header .store-logo__img {
    height: 52px;
    max-width: 140px;
}
.store-logo--mobile .store-logo__img {
    height: 40px;
    max-width: 110px;
}
.store-logo--footer .store-logo__img {
    height: 58px;
    max-width: 150px;
}

/* Same logo mark on all pages (white line art on black badge, like home) */
.store-logo__img {
    filter: none;
}

/* Product sizes — RTL-friendly (short label on chip, full measure in title) */
.product-swatch--sizes .product-swatch__heading {
    text-transform: none;
    letter-spacing: 0;
}
.product-single__swatches .product-swatch.text-swatches .swatch-list {
    gap: 0.5rem;
}
.product-single__swatches .product-swatch.text-swatches .swatch {
    height: auto;
    min-height: 2.5rem;
    padding: 0.45rem 1rem;
    white-space: nowrap;
    line-height: 1.25;
    font-size: 0.9375rem;
    font-weight: 500;
}
.product-single__swatches .product-swatch.text-swatches .swatch__label-text {
    display: inline-block;
    white-space: nowrap;
    unicode-bidi: isolate;
}
[dir="rtl"] .product-single__swatches .product-swatch.text-swatches .swatch {
    flex-direction: row;
    letter-spacing: 0;
    text-transform: none;
}
[dir="rtl"] .product-single__swatches .product-swatch.text-swatches .swatch-list {
    direction: rtl;
}

/* Product page: unavailable sizes */
.product-single__swatches .product-swatch.text-swatches .swatch.swatch--unavailable {
    position: relative;
    pointer-events: none;
    cursor: not-allowed;
    color: #888 !important;
    border-color: #ddd !important;
}
.product-single__swatches .product-swatch.text-swatches .swatch.swatch--unavailable .swatch__label-text {
    opacity: 0.85;
    text-decoration: line-through;
    text-decoration-color: rgba(0, 0, 0, 0.2);
}
.product-single__swatches .product-swatch.text-swatches .swatch__unavailable-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1;
    color: #999;
    opacity: 0.4;
    text-decoration: none;
    pointer-events: none;
}
.product-single__swatches .product-swatch.text-swatches input[type="radio"]:disabled + label.swatch--unavailable {
    pointer-events: none;
}

/* Checkout: billing + order summary */
.checkout-form__grid {
    align-items: flex-start;
}
.checkout-form .form-select {
    min-height: calc(3.5rem + 2px);
}

/* Cart badge on header */
.header-tools__cart .cart-amount {
    top: -6px;
    inset-inline-end: -8px;
    min-width: 1.1rem;
    height: 1.1rem;
    line-height: 1.1rem;
    font-size: 0.65rem;
    text-align: center;
    background: #222;
    color: #fff;
    border-radius: 50%;
}
.header-tools__cart .cart-amount.d-none {
    display: none !important;
}

/* Fallback when Google Fonts are offline */
body {
    font-family: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.mini-toast {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    background: #222;
    color: #fff;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    z-index: 1080;
}
.mini-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.pc__btn-atc {
    z-index: 2;
}

/* Color swatches: thumbnail fill (theme dot uses ::after + currentColor) */
.pc__swatch-color--thumb {
    color: transparent !important;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0, 0, 0, 0.12);
}
.pc__swatch-color--thumb::after {
    display: none;
}

/* Show swatches when hovering the product card (theme shop pattern) */
.product-card .pc__swatches {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.product-card:hover .pc__swatches {
    visibility: visible;
    opacity: 1;
}

/* Inner pages: keep header visible (no absolute overlay on content) */
#header.store-header-solid {
    position: relative !important;
}
body:not(.page-home) main {
    padding-top: 0 !important;
}

/* Home: hero/slideshow paints after header in DOM — keep top bar clickable */
body.page-home #header {
    z-index: 1030;
}
body.page-home #header.position-absolute,
body.page-home #header.header-transparent-bg {
    z-index: 1030;
}
.header-top {
    position: relative;
    z-index: 2;
}
.header-top > ul,
.header-top > div.flex-1 {
    position: relative;
    z-index: 2;
}
.header-top > p.mx-auto {
    pointer-events: none;
    flex-shrink: 1;
    max-width: 40%;
    text-align: center;
}
.header-top > ul {
    flex-wrap: wrap;
    row-gap: 0.25rem;
}
.header-top > ul .menu-link {
    font-size: 0.8125rem;
    white-space: nowrap;
}
.header-top a.menu-link {
    position: relative;
    z-index: 3;
}
[dir="rtl"] .header-top {
    flex-direction: row;
}
body.page-inner {
    padding-bottom: 4.5rem;
}
@media (min-width: 768px) {
    body.page-inner {
        padding-bottom: 0;
    }
}

/* Product page color swatch: small color icon image only */
.product-single__swatches .swatch-color--thumb,
.product-single__swatches .pc__swatch-color--thumb {
    color: transparent !important;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0, 0, 0, 0.12);
}
.product-single__swatches .swatch-color--thumb::after,
.product-single__swatches .pc__swatch-color--thumb::after {
    display: none;
}

/* Product gallery: RTL arrow positions (theme uses physical left/right for LTR) */
[dir="rtl"] #js-product-media .product-single__image .swiper-button-prev,
[dir="rtl"] #js-product-media .product-single__image .swiper-button-next {
    z-index: 5;
    pointer-events: auto;
    cursor: pointer;
}
[dir="rtl"] #js-product-media .product-single__image .swiper-button-prev {
    left: auto;
    right: 1rem;
}
[dir="rtl"] #js-product-media .product-single__image .swiper-button-next {
    right: auto;
    left: 1rem;
}
@media (min-width: 576px) {
    [dir="rtl"] #js-product-media .product-single__image .swiper-button-prev {
        right: 2rem;
    }
    [dir="rtl"] #js-product-media .product-single__image .swiper-button-next {
        left: 2rem;
    }
}
[dir="rtl"] #js-product-media.vertical-thumbnail .product-single__image-item > a[data-fancybox] {
    right: auto;
    left: 1.875rem;
}
@media (max-width: 575.98px) {
    [dir="rtl"] #js-product-media.vertical-thumbnail .product-single__image-item > a[data-fancybox] {
        left: 1rem;
    }
}
@media (min-width: 992px) {
    [dir="rtl"] #js-product-media.vertical-thumbnail .product-single__thumbnail {
        order: 1;
    }
    [dir="rtl"] #js-product-media.vertical-thumbnail .product-single__image {
        order: 0;
    }
}

/* Static pages */
.mw-930 {
    max-width: 58.125rem;
}
.store-policy-page__body {
    line-height: 1.7;
}
.store-social-links--lg .footer__social-link {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
}
.footer_type_2 .store-social-links--lg .footer__social-link {
    border-color: rgba(255, 255, 255, 0.2);
}
[dir="rtl"] .store-social-links--lg {
    justify-content: flex-start;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

/* Footer — Arabic (RTL) alignment */
[dir="rtl"] .footer_type_2 .footer-column,
[dir="rtl"] .footer_type_2 .footer-menu,
[dir="rtl"] .footer_type_2 .footer-store-info {
    text-align: right;
}
[dir="rtl"] .footer_type_2 .sub-menu__title,
[dir="rtl"] .footer_type_2 .sub-menu__list,
[dir="rtl"] .footer_type_2 .sub-menu__item {
    text-align: right;
}
[dir="rtl"] .footer_type_2 .sub-menu__list {
    padding-inline-start: 0;
}
.footer_type_2 .footer-store-info .social-links {
    margin-left: 0;
    margin-right: 0;
}
[dir="rtl"] .footer_type_2 .footer-store-info .social-links {
    justify-content: flex-start;
    margin-inline-start: -1rem;
    margin-inline-end: 0;
    width: 100%;
}
[dir="rtl"] .footer_type_2 .footer-store-info .logo {
    display: flex;
    justify-content: flex-start;
}
@media (max-width: 991.98px) {
    [dir="rtl"] .footer_type_2 .footer-store-info {
        text-align: center;
    }
    [dir="rtl"] .footer_type_2 .footer-store-info .logo {
        justify-content: center;
    }
    [dir="rtl"] .footer_type_2 .footer-store-info .social-links {
        justify-content: center;
        margin-inline: 0;
    }
}
[dir="rtl"] .footer_type_2 .menu-link_us-s::after {
    left: auto;
    right: 0;
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 5.25rem;
    right: 1.25rem;
    z-index: 1050;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 1.25rem;
}
@media (min-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
    }
}

/* Store locator */
.store-location-map {
    width: 100%;
    height: 100%;
    min-height: 46.875rem;
    background: #efefef;
}
.store-location-map__canvas {
    width: 100%;
    height: 100%;
    min-height: 46.875rem;
    z-index: 1;
}
.store-location-map__canvas.leaflet-container {
    font: inherit;
}
.store-location-map .leaflet-control-attribution {
    font-size: 0.6875rem;
}
.store-location__search-result__item .js-store-select {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    text-transform: uppercase;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
}
.store-location__search-result__item .js-store-select:hover {
    color: #b9a16b;
}
.store-location-map__placeholder {
    min-height: 46.875rem;
}
.store-location-map__open-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 4;
}
[dir="rtl"] .store-location-map__open-link {
    left: auto;
    right: 1rem;
}
.store-location__search-result__item.is-active {
    background: rgba(185, 161, 107, 0.08);
}
.store-location__search-result__item.d-none {
    display: none !important;
}
.store-location__search-result__item .js-store-map-link {
    display: inline-block;
    margin-inline-end: 1rem;
    font-size: 0.8125rem;
    text-transform: uppercase;
    font-weight: 500;
}
[dir="rtl"] .store-location__search-btn {
    right: auto;
    left: 1.25rem;
}
[dir="rtl"] .store-location__search-input {
    padding: 1.25rem 1.25rem 1rem 3.875rem;
}
[dir="rtl"] .google-map__marker-detail {
    left: auto;
    right: 10rem;
}
@media (max-width: 991.98px) {
    .store-location-map,
    .store-location-map__canvas,
    .store-location-map__placeholder {
        min-height: 22rem;
    }
    .store-location .google-map__wrapper {
        margin-top: 1.5rem;
    }
}

/* Order tracking form (theme) */
.shop-checkout .order-tracking {
    width: 31.25rem;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}
.shop-checkout .order-tracking .page-title {
    text-align: center;
}
.shop-checkout .order-tracking p {
    text-align: center;
}
.shop-checkout .order-tracking + .order-complete {
    margin-top: 2rem;
}

/* Order complete: RTL table alignment */
[dir="rtl"] .order-complete .checkout__totals .checkout-cart-items thead th:last-child,
[dir="rtl"] .order-complete .checkout__totals .checkout-cart-items tbody td:last-child,
[dir="rtl"] .order-complete .checkout__totals .checkout-totals td {
    text-align: left;
}

/* Mobile menu: language switcher fixed at bottom, EN + AR side by side */
.mobile-menu-opened .header-mobile__navigation {
    display: flex;
    flex-direction: column;
}
.header-mobile__nav-body {
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}
.header-mobile__lang-bar {
    flex: 0 0 auto;
    z-index: 2;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.06);
}
.header-mobile__lang {
    max-width: 18rem;
    margin-inline: auto;
}
.header-mobile__lang-btn {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    color: #222;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.header-mobile__lang-btn.is-active {
    color: #fff;
    background: #222;
    border-color: #222;
}
.header-mobile__lang-btn:not(.is-active):hover {
    border-color: #222;
}
.mobile-menu-opened .whatsapp-float {
    bottom: 5.5rem;
}
