/* ===== frontend-products.css ===== */
/**
 * Frontend product images - contain within frame, professional scale
 */

/* Product card: single image in a fixed frame */
.product-card__thumb {
    overflow: hidden;
    position: relative;
    min-height: 200px;
}

.product-card__media {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Fill the frame at a uniform scale: small source images are scaled up and
   large ones down, so every card shows the product with the same visual size.
   media_picture() wraps the img in <picture>, which shrink-wraps to the img's
   natural size unless stretched to the frame explicitly. */
.product-card__media picture,
.product-card-mobile__image-link picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-card__media .product-card__img {
    display: block;
    object-fit: contain;
    object-position: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 8px;
    box-sizing: border-box;
}

/* Disable main.css scale(1.2) — it breaks card image layout */
.product-card .product-card__thumb .product-card__media .product-card__img,
.product-card:hover .product-card__thumb .product-card__media .product-card__img {
    transform: none !important;
    transition: opacity 250ms var(--ease-standard, ease) !important;
}

/* Desktop product cards: use the empty image-frame space without changing
   the mobile card or introducing a hover-size jump. */
@media screen and (min-width: 992px) {
    .product-card:not(.product-color-card) .product-card__thumb .product-card__media .product-card__img,
    .product-card:not(.product-color-card):hover .product-card__thumb .product-card__media .product-card__img {
        transform: scale(1.5) !important;
        transform-origin: center;
    }
}

/* Product details page: main image & thumbnails - fixed frame, image inside only */
.product-details__thumb-slider .product-details__thumb {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 16px;
}

.product-details__thumb-slider .product-details__thumb img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.product-details__images-slider .pdp-thumb-frame {
    width: 96px;
    height: 96px;
    margin: 0 auto;
    overflow: hidden;
    cursor: pointer;
}

.product-details__images-slider .pdp-thumb-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-details__images-slider .slick-current .pdp-thumb-frame {
    border-color: var(--main-600, #043729) !important;
    box-shadow: 0 0 0 2px rgba(4, 55, 41, 0.12);
}

.product-details__images-slider .product-details__thumb,
.product-details__images-slider .flex-center {
    overflow: hidden;
}

.product-details__images-slider img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

/* Home deal week / banner product images */
.deal-week-box img[alt]:not([alt=""]),
.deal-week-box .banner-product-img,
.banner-item-two__thumb img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.deal-week-box .d-lg-block img {
    max-height: 200px;
}

/* Flash deals & promo banners */
.flash-sales-item__bg,
.promotional-banner img[src*="storage"] {
    object-fit: cover;
}

.promotional-banner .pe-xxl-2 img {
    object-fit: contain;
    max-width: 100%;
    max-height: 180px;
}

/* Home vendors logos */
.popular-products .product-card__media .product-card__img {
    object-fit: contain;
    max-width: 100%;
    max-height: 80px;
}

/* Shop grid: ensure all product card images respect the frame */
.shop .product-card__thumb,
.top-selling-products .product-card__thumb,
.deals-week-slider .product-card__thumb,
.new-arrival__slider .product-card__thumb,
.featured-product-slider .product-card__thumb,
.top-selling-product-slider .product-card__thumb,
.product-block-advanced-slider .product-card__thumb,
.our-products-slider .product-card__thumb,
.trending-products-slider .product-card__thumb,
.best-sellers-slider .product-card__thumb,
.hajj-umrah-slider .product-card__thumb {
    overflow: hidden;
}

.shop .product-card__media .product-card__img,
.top-selling-products .product-card__media .product-card__img,
.deals-week-slider .product-card__media .product-card__img,
.new-arrival__slider .product-card__media .product-card__img,
.featured-product-slider .product-card__media .product-card__img,
.top-selling-product-slider .product-card__media .product-card__img,
.product-block-advanced-slider .product-card__media .product-card__img,
.our-products-slider .product-card__media .product-card__img,
.trending-products-slider .product-card__media .product-card__img,
.best-sellers-slider .product-card__media .product-card__img,
.hajj-umrah-slider .product-card__media .product-card__img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 1199px) {
    .product-card__thumb {
        min-height: 180px;
    }
}

@media screen and (max-width: 575px) {
    .product-card__thumb {
        min-height: 160px;
    }
}

/* Quick-add Slick gallery (same pattern as PDP) */
.quick-add-gallery-root .quick-add-gallery__main.product-details__thumb-slider {
    padding: 12px 16px;
    min-height: 240px;
}

.quick-add-gallery-root .product-details__thumb {
    min-height: 220px;
    max-height: min(280px, 38vh);
    padding: 8px;
}

.quick-add-gallery-root .product-details__thumb img {
    width: 100%;
    height: 100%;
    max-height: min(260px, 36vh);
    object-fit: contain;
}

.quick-add-gallery-root .slick-initialized.slick-slider .slick-slide > div > div {
    height: 100%;
}

.quick-add-gallery-root .quick-add-gallery__nav .slick-slide {
    padding: 0 4px;
}

.quick-add-gallery-root .quick-add-gallery__nav .pdp-thumb-frame {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.quick-add-gallery-root .quick-add-gallery__nav .pdp-thumb-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quick-add-gallery-root .quick-add-gallery__nav .slick-current .pdp-thumb-frame {
    border-color: var(--main-600, #043729) !important;
    box-shadow: 0 0 0 2px rgba(4, 55, 41, 0.12);
}

.quick-add-gallery-root .quick-add-gallery__nav .slick-track {
    display: flex;
    align-items: center;
}

@media screen and (max-width: 575px) {
    .quick-add-gallery-root .product-details__thumb {
        min-height: 200px;
        max-height: min(240px, 42vw);
    }

    .quick-add-gallery-root .quick-add-gallery__nav .pdp-thumb-frame {
        width: 56px;
        height: 56px;
    }
}

.quick-add-variant .pdp-size-btn {
    min-width: 44px;
}

/* Product card enhancements (excludes product-color-card / Product Block Advanced) */
.product-card:not(.product-color-card) .product-card__discount-tag {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(190, 18, 60, 0.32);
    pointer-events: none;
}

.product-card:not(.product-color-card) .product-card__discount-tag-value {
    display: block;
}

.product-card:not(.product-color-card) .product-card__flash-tag {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--main-600, #043729);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(4, 55, 41, 0.25);
    pointer-events: none;
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card:not(.product-color-card) .product-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    overflow: visible;
    flex-wrap: nowrap;
}

.product-card:not(.product-color-card) .product-card__colors,
.product-card-mobile .product-card__colors {
    flex: 0 0 auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow: visible;
    gap: 6px;
    min-height: 22px;
}

.product-card-mobile__colors-row {
    min-height: 20px;
    margin-bottom: 8px;
}

.product-card-wrap {
    display: block;
    width: 100%;
    min-width: 0;
    height: 100%;
}

.product-card-mobile {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
    height: 100%;
    padding: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.product-card-mobile__header {
    display: block;
    width: 100%;
    flex: 0 0 auto;
}

.product-card-mobile__image {
    position: relative !important;
    display: block;
    width: 100%;
    height: 148px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.product-card-mobile__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #fff;
}

.product-card-mobile__img {
    display: block;
    width: 92%;
    height: 92%;
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.product-card-mobile__img-placeholder {
    display: block;
    width: 72%;
    height: 72%;
    border-radius: 12px;
    background: #f9fafb;
}

.product-card-mobile__wishlist {
    position: absolute !important;
    top: 8px !important;
    inset-inline-end: 8px !important;
    inset-inline-start: auto !important;
    bottom: auto !important;
    z-index: 2;
}

.product-card-mobile__wishlist-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--main-600, #043729);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(4, 55, 41, 0.28);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card-mobile__wishlist-btn:hover,
.product-card-mobile__wishlist-btn:focus-visible {
    color: #fff !important;
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(4, 55, 41, 0.35);
}

.product-card-mobile__wishlist-btn i {
    font-size: 1rem;
    line-height: 1;
    color: inherit !important;
}

.product-card-mobile__discount {
    position: absolute;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 5px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(190, 18, 60, 0.28);
    direction: ltr;
    unicode-bidi: isolate;
    pointer-events: none;
}

.product-card-mobile__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    padding-top: 10px;
    min-width: 0;
}

.product-card-mobile__title {
    margin: 0 0 6px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.product-card-mobile__title .link {
    color: inherit !important;
    text-decoration: none !important;
}

.product-card-mobile__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 7px;
    margin-top: auto;
    min-width: 0;
    line-height: 1.15;
}

[dir="rtl"] .product-card-mobile__price {
    justify-content: flex-end;
}

.product-card-mobile__price-before,
.product-card-mobile__price-after {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.product-card-mobile__price-before {
    color: #9ca3af;
    font-size: 0.73rem;
    font-weight: 600;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.product-card-mobile__price-before-currency {
    font-size: 0.65rem;
}

.product-card-mobile__price-amount {
    font-size: 1rem;
    font-weight: 800;
    color: var(--main-600, #043729);
    font-variant-numeric: tabular-nums;
}

.product-card-mobile__price-currency {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--main-600, #043729);
}

.product-card-mobile .product-card__colors {
    gap: 6px;
}

.product-card-mobile .product-card__color-dot {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
}

.product-card:not(.product-color-card) .product-card__color-dot,
.product-card-mobile .product-card__color-dot {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.18);
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    border-radius: 50%;
}

.product-card:not(.product-color-card) .product-card__color-dot--light,
.product-card-mobile .product-card__color-dot--light {
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.28);
}

.product-card:not(.product-color-card) .product-card__color-more,
.product-card-mobile .product-card__color-more {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-card:not(.product-color-card) .product-card__footer-actions {
    flex-shrink: 0;
}

.product-card:not(.product-color-card) .product-card__add-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--main-600, #043729);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 14px rgba(4, 55, 41, 0.22);
}

.product-card:not(.product-color-card) .product-card__add-btn:hover,
.product-card:not(.product-color-card) .product-card__add-btn:focus-visible {
    background: var(--main-two-600, #065f46);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(4, 55, 41, 0.3);
}

.product-card:not(.product-color-card) .product-card__icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #4b5563;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.product-card:not(.product-color-card) .product-card__icon-btn:hover,
.product-card:not(.product-color-card) .product-card__icon-btn:focus-visible {
    border-color: var(--main-600, #043729);
    color: var(--main-600, #043729);
    background: #f9fafb;
}

.product-card:not(.product-color-card) .product-card__footer:not(:has(.product-card__colors)) {
    justify-content: flex-end;
}

@media (max-width: 991.98px) {
    .progress-wrap {
        display: none !important;
        pointer-events: none;
    }

    .list-grid-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        align-items: stretch;
    }

    .list-grid-wrapper > .product-card-wrap,
    .list-grid-wrapper .product-card-mobile,
    .trending-products-slider .slick-slide > div,
    .our-products-slider .slick-slide > div,
    .best-sellers-slider .slick-slide > div,
    .product-block-advanced-slider .slick-slide > div {
        height: 100%;
    }

    .trending-products-slider .product-card-mobile,
    .our-products-slider .product-card-mobile,
    .best-sellers-slider .product-card-mobile,
    .product-block-advanced-slider .product-card-mobile {
        margin-inline: 2px;
    }

    .list-view .product-card-mobile {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .product-card-mobile .product-card__color-dot {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
        box-shadow: 0 0 0 1.5px rgba(17, 24, 39, 0.2);
    }
}

/* --------------------------------------------------------------------------
   Desktop: hide the mobile product card.
   The base `.product-card-mobile { display: flex !important; }` rule above
   overrides Bootstrap's `.d-lg-none`, so without this the mobile card renders
   stacked under the desktop card on wide screens (You may also like /
   Recently viewed sections). This rule is last in the file so it wins.
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .product-card-mobile.d-lg-none {
        display: none !important;
    }
}


/* ===== breadcrumbs.css ===== */
.site-breadcrumb {
    padding: 16px 0;
}

.site-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
}

.site-breadcrumb__item {
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-breadcrumb__link {
    color: var(--gray-500, #6b7280);
    text-decoration: none;
    white-space: nowrap;
}

.site-breadcrumb__link:hover {
    color: var(--main-600, #043729);
    text-decoration: underline;
}

.site-breadcrumb__sep {
    color: var(--gray-300, #d1d5db);
}

.site-breadcrumb__current {
    color: var(--gray-900, #111827);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60vw;
}

@media (max-width: 575.98px) {
    .site-breadcrumb {
        padding: 12px 0;
    }

    .site-breadcrumb__list {
        font-size: 0.8125rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .site-breadcrumb__list::-webkit-scrollbar {
        display: none;
    }

    .site-breadcrumb__current {
        max-width: 45vw;
    }
}


/* ===== pdp-variant-sizes.css ===== */
/* Shared variant size picker — default + premium PDP */
.pdp-footwear-variant .pdp-size-wrap .pdp-size-hint {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700, #374151);
}

.pdp-footwear-variant .pdp-size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.pdp-footwear-variant .pdp-size-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-width: 3.25rem;
    min-height: 3rem;
    width: auto;
    padding: 0.625rem 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    border: 2px solid var(--gray-500, #6b7280);
    border-radius: 0.5rem;
    color: #111827;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pdp-footwear-variant .pdp-size-btn:hover:not(:disabled):not(.is-sold-out),
.pdp-footwear-variant .pdp-size-btn:focus-visible:not(:disabled):not(.is-sold-out) {
    border-color: var(--main-600, #043729);
    color: var(--main-600, #043729);
    background-color: rgba(0, 0, 0, 0.02);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.pdp-footwear-variant .pdp-size-btn.is-active,
.pdp-footwear-variant .pdp-size-btn.active {
    border-color: var(--main-600, #043729);
    background-color: var(--main-600, #043729);
    color: #fff;
    box-shadow: none;
    transform: none;
}

.pdp-footwear-variant .pdp-size-btn.is-sold-out,
.pdp-footwear-variant .pdp-size-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    color: #9ca3af;
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    text-decoration: line-through;
    box-shadow: none;
    transform: none;
}

.pdp-footwear-variant .pdp-color-swatch {
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    border: 1px solid #e5e7eb;
    padding: 0;
    background: transparent;
}

.pdp-footwear-variant .pdp-color-swatch--circle {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.pdp-footwear-variant .pdp-color-swatch--image {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.pdp-footwear-variant .pdp-color-swatch--image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

/* Uniform swatch view: show the whole product regardless of the source
   image's dimensions. !important is required to beat the inline styles
   the Blade partial emits for cache-safety. Applies wherever the
   pdp-color-swatches partial is rendered (PDP, quick-add panel, ...). */
.pdp-color-swatch--image {
    background: #fff !important;
}

.pdp-color-swatch--image img {
    object-fit: contain !important;
    object-position: center !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

.pdp-footwear-variant .pdp-color-swatches--image {
    gap: 16px;
}

.pdp-footwear-variant .pdp-color-swatch.is-active,
.pdp-footwear-variant .pdp-color-swatch.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--main-600, #043729);
    transform: scale(1.05);
}

/* Unified Find My Size + Size Guide action row */
.pdp-size-tools__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pdp-size-tools--single .pdp-size-tools__grid {
    grid-template-columns: minmax(0, 1fr);
}

.pdp-size-tools__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    font-family: inherit;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.pdp-size-tools__btn i {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.pdp-size-tools__btn--finder {
    background-color: var(--main-600, #043729);
    border-color: var(--main-600, #043729);
    color: #fff;
    box-shadow: 0 4px 14px rgba(4, 55, 41, 0.18);
}

.pdp-size-tools__btn--finder:hover,
.pdp-size-tools__btn--finder:focus-visible {
    background-color: var(--main-700, #032a1f);
    border-color: var(--main-700, #032a1f);
    color: #fff;
    outline: none;
    box-shadow: 0 6px 18px rgba(4, 55, 41, 0.24);
    transform: translateY(-1px);
}

.pdp-size-tools__btn--guide {
    background-color: #fff;
    border-color: #d1d5db;
    color: var(--gray-900, #111827);
}

.pdp-size-tools__btn--guide:hover,
.pdp-size-tools__btn--guide:focus-visible {
    border-color: var(--main-600, #043729);
    color: var(--main-600, #043729);
    background-color: var(--main-50, #e8f0ed);
    outline: none;
    box-shadow: 0 0 0 3px rgba(4, 55, 41, 0.1);
    transform: translateY(-1px);
}

@media (max-width: 575.98px) {
    .pdp-size-tools__btn {
        min-height: 46px;
        padding: 11px 12px;
        font-size: 0.875rem;
    }

    .pdp-footwear-variant .pdp-size-buttons .pdp-size-btn {
        min-height: 3rem;
        min-width: 3.25rem;
    }
}


/* ===== site-drawers.css ===== */
/**
 * Site side drawers portal — cart + quick-add
 * Loaded after main.css; critical rules also inlined in layout head.
 */

#site-drawers-root {
    position: fixed !important;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10050;
    pointer-events: none;
    overflow: visible;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

#site-drawers-root .cart-overlay,
#site-drawers-root .quick-add-overlay {
    position: absolute !important;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

#site-drawers-root .cart-overlay.active,
#site-drawers-root .quick-add-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#site-drawers-root .cart-drawer,
#site-drawers-root .quick-add-drawer {
    position: absolute !important;
    top: 0;
    bottom: 0;
    display: flex !important;
    flex-direction: column;
    max-width: 100%;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
    z-index: 2;
    overflow: hidden;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
        visibility 0s linear 0.4s;
}

#site-drawers-root .cart-drawer {
    right: 0;
    width: min(360px, 100vw);
}

#site-drawers-root .quick-add-drawer {
    right: 0;
    width: min(440px, 100vw);
}

#site-drawers-root .cart-drawer.active,
#site-drawers-root .quick-add-drawer.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

[dir="rtl"] #site-drawers-root .cart-drawer,
[dir="rtl"] #site-drawers-root .quick-add-drawer {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

[dir="rtl"] #site-drawers-root .cart-drawer.active,
[dir="rtl"] #site-drawers-root .quick-add-drawer.active {
    transform: translateX(0);
}

body.cart-open,
body.quick-add-open {
    overflow: hidden;
}

@media screen and (max-width: 575px) {
    #site-drawers-root .cart-drawer,
    #site-drawers-root .quick-add-drawer {
        width: 100%;
    }
}

/* Cart drawer panel — aligned with centered header / brand green */
.cart-dropdown__remove {
    position: absolute;
    top: 8px;
    inset-inline-end: 0;
    line-height: 1;
    text-decoration: none;
}

.cart-dropdown__thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 10px;
}

.cart-dropdown__qty {
    background: #f3f4f6;
    border-radius: 999px;
    padding: 4px 8px;
}

.cart-dropdown__qty .cart-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
}

.cart-dropdown__qty .cart-qty-btn:hover {
    color: var(--main-600, #043729);
}

.cart-dropdown__qty-value {
    min-width: 18px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #111827;
}

.cart-dropdown__footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid #f3f4f6;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.04);
}

.cart-dropdown__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-dropdown__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.cart-dropdown__btn--primary {
    background: var(--main-600, #043729);
    border: 1px solid var(--main-600, #043729);
    color: #fff;
}

.cart-dropdown__btn--primary:hover {
    background: var(--main-700, #032820);
    border-color: var(--main-700, #032820);
    color: #fff;
    opacity: 0.95;
}

.cart-dropdown__btn--secondary {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111827;
}

.cart-dropdown__btn--secondary:hover {
    border-color: var(--main-600, #043729);
    color: var(--main-600, #043729);
}

.cart-dropdown__guest-note {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
    text-align: center;
}

.cart-dropdown__empty-icon {
    font-size: 4.5rem;
    line-height: 1;
}

[dir="rtl"] .cart-dropdown__item .pe-20 {
    padding-inline-end: 1.25rem !important;
    padding-inline-start: 0 !important;
}
