/* E-shop: design fonts (Aqar360 eShop — matches tailwind.config primary / gradient tokens) */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@500;600;700;800&family=Poppins:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;500;600&family=DM+Sans:wght@400;500;700&display=swap");

.eshop-root,
.shop-page {
    font-family: "Open Sans", system-ui, sans-serif;
    color: hsl(261, 15%, 18%);
    background-color: hsl(0, 0%, 98%);
    overflow: visible; /* sticky filter bar: do not clip (see .shop-filter-sticky) */
    /* Wider than Tailwind max-w-7xl (80rem) so catalog + products use more of large screens */
    --eshop-content-max: min(100% - 1.5rem, 96rem); /* ~1536px */
    --eshop-brand: #6b5b95;
    --eshop-brand-hover: #574a75;
    --eshop-brand-deep: #433862;
    --eshop-brand-light: #7d6db5;
    --eshop-brand-soft: rgba(107, 91, 149, 0.1);
    --eshop-brand-ring: rgba(107, 91, 149, 0.18);
    --eshop-brand-gradient: linear-gradient(135deg, #7d6db5 0%, #6b5b95 50%, #574a75 100%);
}

@media (min-width: 768px) {
    .shop-page {
        --eshop-content-max: min(100% - 2.5rem, 100rem); /* ~1600px */
    }
}

@media (min-width: 1440px) {
    .shop-page {
        --eshop-content-max: min(100% - 3rem, 110rem); /* ~1760px */
    }
}

/* Lift every shop content rail past max-w-7xl without editing each partial */
.shop-page .max-w-7xl,
.shop-page .eshop-catalog-shell__inner {
    max-width: var(--eshop-content-max) !important;
    width: 100%;
}

.shop-page .eshop-catalog-shell__inner {
    box-sizing: border-box;
}

.eshop-root h1,
.eshop-root h2,
.eshop-root h3,
.eshop-root .font-heading,
.shop-page h1,
.shop-page h2,
.shop-page h3,
.shop-page .font-heading {
    font-family: "Poppins", system-ui, sans-serif;
}

.eshop-root .font-label-ui,
.shop-page .font-label-ui {
    font-family: "DM Sans", system-ui, sans-serif;
}

/* Page sections — consistent vertical rhythm */
.shop-page__section {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

@media (min-width: 640px) {
    .shop-page__section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

.shop-page__section--products {
    padding-top: 0.5rem;
}

.shop-page__section--shops {
    padding-top: 0.75rem;
    padding-bottom: 1.75rem;
}

/* Shared section headers (products, trending, shops) — legacy; prefer eshop-section-fieldset */
.eshop-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.875rem;
    flex-wrap: wrap;
}

.eshop-section-head__title {
    margin: 0;
    font-size: 0.8125rem !important;
    font-weight: 800 !important;
    color: #372a58 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.3 !important;
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif !important;
}

@media (min-width: 640px) {
    .eshop-section-head__title {
        font-size: 0.875rem !important;
    }
}

.eshop-section-head__meta {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #8a849c !important;
}

.eshop-section-head__hint {
    flex: 1 1 100%;
    margin: -0.35rem 0 0;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    color: #6b7280;
    line-height: 1.4;
}

.eshop-section-head__link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.eshop-section-head__link svg {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
}

.eshop-section-head__link:hover {
    color: #6b5b95;
}

.eshop-products-head {
    margin-bottom: 1rem;
}

/* Section cards — title on border (dashboard / checkout pattern) */
.shop-page fieldset.eshop-section-fieldset {
    border: 1px solid #e1dfe8;
    border-radius: 14px;
    padding: 1rem 1.05rem 1.05rem;
    margin: 0;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(55, 42, 88, 0.04),
        0 6px 18px rgba(55, 42, 88, 0.06);
    min-width: 0;
    overflow: visible;
}

.shop-page fieldset.eshop-section-fieldset > .eshop-section-fieldset__body {
    margin-top: 0.55rem;
    padding: 0;
    min-width: 0;
    overflow: visible;
}

.shop-page fieldset.eshop-section-fieldset > legend.eshop-section-fieldset__legend {
    width: auto;
    max-width: calc(100% - 1rem);
    padding: 0 0.55rem;
    margin-inline-start: 0.65rem;
    float: none;
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.015em !important;
    line-height: 1.35 !important;
    color: #372a58 !important;
}

@media (min-width: 640px) {
    .shop-page fieldset.eshop-section-fieldset > legend.eshop-section-fieldset__legend {
        font-size: 1.1875rem !important;
    }
}

[dir="rtl"] .shop-page fieldset.eshop-section-fieldset > legend.eshop-section-fieldset__legend {
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif !important;
    letter-spacing: 0 !important;
}

.shop-page fieldset.eshop-section-fieldset > legend.eshop-section-fieldset__legend h2,
.shop-page fieldset.eshop-section-fieldset > legend.eshop-section-fieldset__legend span {
    margin: 0;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    letter-spacing: inherit !important;
    line-height: inherit !important;
    font-family: inherit !important;
}

.eshop-section-fieldset__legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 0.85rem;
    flex-wrap: wrap;
    min-width: 0;
}

.eshop-section-fieldset__legend-row > span:first-child {
    min-width: 0;
}

.eshop-section-fieldset__meta {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #8a849c !important;
}

.eshop-section-fieldset__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
    font-family: "IBM Plex Sans Arabic", "DM Sans", system-ui, sans-serif !important;
}

.eshop-section-fieldset__link svg {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
}

.eshop-section-fieldset__link:hover {
    color: #6b5b95 !important;
}

.shop-page .eshop-store-bar__title {
    margin: 0;
    font-size: 0.875rem !important;
    font-weight: 800 !important;
    color: #372a58 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.3 !important;
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif !important;
}

/* Hero: always readable (matches site purple #6B5B95) even if Tailwind utilities fail to load */
.eshop-hero-section {
    background: linear-gradient(135deg, #6b5b95 0%, #574a75 55%, #7d6ba8 100%);
    color: #fff;
}

.eshop-hero-section h1,
.eshop-hero-section p,
.eshop-hero-section .font-body {
    color: inherit;
}

.eshop-hero-section .eshop-hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
}

.eshop-hero-section a.bg-white {
    color: #6b5b95 !important;
}

/* ── Promo info bar (top trust strip) ── */
.eshop-promo-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 640px) {
    .eshop-promo-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

.eshop-promo-bar__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

@media (min-width: 640px) {
    .eshop-promo-bar__item {
        padding: 0.9rem 1.25rem;
        border-bottom: none;
        border-inline-end: 1px solid #f3f4f6;
    }
    .eshop-promo-bar__item:last-child {
        border-inline-end: none;
    }
}

.eshop-promo-bar__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(107, 91, 149, 0.1);
    color: #6b5b95;
}

.eshop-promo-bar__icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.eshop-promo-bar__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.eshop-promo-bar__text strong {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111827;
    font-family: "Poppins", system-ui, sans-serif;
}

.eshop-promo-bar__text span {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.35;
}

/* ── Browse showcase: categories + promo carousel ── */
.eshop-showcase {
    background: #f9fafb;
    padding: 1rem 0 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Showcase columns are independent: the promo/main keeps its own height and must NOT be
   stretched to match the category sidebar — otherwise expanding/collapsing a category group
   resizes the main panel to the category panel's height. */
.eshop-showcase .eshop-catalog-shell__grid {
    align-items: start;
}

@media (min-width: 768px) {
    .eshop-showcase .eshop-catalog-shell__grid {
        align-items: start;
    }
}

/* Shared catalog shell — sidebar + main (showcase & product grid) */
.eshop-catalog-shell__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .eshop-catalog-shell__grid {
        grid-template-columns: minmax(200px, 236px) minmax(0, 1fr);
        gap: 1.25rem;
        align-items: start;
    }

    /* Filter drawer is off-canvas below lg — don't reserve a grid column for it */
    .eshop-catalog-products--with-sidebar .eshop-catalog-shell__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .eshop-catalog-shell__sidebar:not(.eshop-filter-sidebar) {
        position: sticky;
        top: 5.5rem;
        max-height: calc(100vh - 6.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

.eshop-catalog-shell__sidebar-spacer {
    display: none;
}

@media (min-width: 768px) {
    .eshop-catalog-shell__sidebar-spacer {
        display: block;
    }
}

.eshop-catalog-shell__main {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

@media (min-width: 640px) {
    .eshop-catalog-shell__main {
        min-height: 360px;
    }
}

@media (min-width: 1024px) {
    .eshop-catalog-shell__main {
        min-height: 420px;
    }
}

.eshop-catalog-products {
    padding-top: 0.75rem;
    padding-bottom: 1.25rem;
}

.eshop-catalog-trending-below-products {
    margin-top: 1.5rem;
    padding-top: 0.25rem;
}

@media (min-width: 1024px) {
    .eshop-catalog-trending-below-products {
        margin-top: 2rem;
    }
}

@media (min-width: 1024px) {
    .eshop-catalog-products {
        padding-top: 0.5rem;
    }
}

.eshop-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
    align-items: start;
    width: 100%;
}

@media (min-width: 640px) {
    .eshop-product-grid {
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .eshop-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* Catalog index — fill fieldset width; 4 cards per row on desktop */
.shop-page fieldset.eshop-products-fieldset {
    width: 100%;
}

.shop-page fieldset.eshop-products-fieldset > .eshop-section-fieldset__body,
.shop-page fieldset.eshop-products-fieldset #product-grid {
    width: 100%;
}

.shop-page #product-grid .eshop-product-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .shop-page #product-grid .eshop-product-grid {
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .shop-page #product-grid .eshop-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .shop-page #product-grid .eshop-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }

    /* Drawer mode still (until xl) — full-width product rail */
    .eshop-catalog-products--with-sidebar #product-grid .eshop-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .shop-page #product-grid .eshop-product-grid,
    .eshop-catalog-products--with-sidebar #product-grid .eshop-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .eshop-catalog-products:not(.eshop-catalog-products--with-sidebar) #product-grid .eshop-product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1536px) {
    .eshop-catalog-products--with-sidebar #product-grid .eshop-product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .eshop-catalog-products:not(.eshop-catalog-products--with-sidebar) #product-grid .eshop-product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.shop-page #product-grid .eshop-product-grid > .eshop-product-card-v2,
.shop-page #product-grid .eshop-product-grid > .eshop-product-card-skeleton {
    min-width: 0;
    width: 100%;
    height: auto;
}

/* ---- Catalog pagination (windowed, AJAX-enhanced) ---- */
.eshop-catalog-pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.eshop-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.625rem;
    border: 1px solid var(--border, #e5e7eb);
    background: #fff;
    color: var(--foreground, #1f2937);
    font-family: "DM Sans", "Open Sans", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.eshop-pagination__btn:hover:not(.is-current):not(.is-disabled) {
    background: var(--muted, #f3f4f6);
    border-color: var(--primary, #5b4b9e);
}

.eshop-pagination__btn.is-current {
    background: var(--primary, #5b4b9e);
    border-color: var(--primary, #5b4b9e);
    color: var(--primary-foreground, #fff);
    cursor: default;
}

.eshop-pagination__btn--nav {
    padding: 0;
    color: var(--primary, #5b4b9e);
}

.eshop-pagination__btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

.eshop-pagination__ellipsis {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 1.5rem;
    height: 2.5rem;
    padding-bottom: 0.4rem;
    color: var(--muted-foreground, #9ca3af);
    font-weight: 700;
    user-select: none;
}

[dir="rtl"] .eshop-pagination__btn--nav svg {
    transform: scaleX(-1);
}

/* ---- Skeleton product cards (shown during AJAX page transitions) ---- */
#product-grid.is-loading {
    min-height: 240px;
}

.eshop-product-card-skeleton {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border, #eef0f4);
    border-radius: 0.875rem;
    background: #fff;
    overflow: hidden;
}

.eshop-product-card-skeleton__media {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #eef1f6;
}

.eshop-product-card-skeleton__body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.75rem;
}

.eshop-sk-line {
    display: block;
    height: 0.7rem;
    border-radius: 999px;
    background: #eef1f6;
}

.eshop-sk-line--title { width: 85%; }
.eshop-sk-line--sub { width: 60%; }
.eshop-sk-line--price { width: 40%; height: 0.95rem; margin-top: 0.15rem; }

.eshop-product-card-skeleton__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.eshop-sk-btn {
    display: block;
    height: 2rem;
    border-radius: 0.625rem;
    background: #eef1f6;
}

/* Shimmer sweep across every skeleton surface. */
.eshop-product-card-skeleton__media,
.eshop-sk-line,
.eshop-sk-btn {
    position: relative;
    overflow: hidden;
}

.eshop-product-card-skeleton__media::after,
.eshop-sk-line::after,
.eshop-sk-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    animation: eshop-sk-shimmer 1.25s ease-in-out infinite;
}

[dir="rtl"] .eshop-product-card-skeleton__media::after,
[dir="rtl"] .eshop-sk-line::after,
[dir="rtl"] .eshop-sk-btn::after {
    transform: translateX(100%);
    background: linear-gradient(270deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    animation-name: eshop-sk-shimmer-rtl;
}

@keyframes eshop-sk-shimmer {
    100% { transform: translateX(100%); }
}

@keyframes eshop-sk-shimmer-rtl {
    100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .eshop-product-card-skeleton__media::after,
    .eshop-sk-line::after,
    .eshop-sk-btn::after {
        animation: none;
    }
}

.eshop-showcase__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .eshop-showcase__grid {
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
        gap: 1.25rem;
    }
}

.eshop-category-nav {
    overflow: visible;
}

.eshop-category-nav__title {
    /* legacy — use fieldset legend */
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: none;
    color: inherit;
    background: transparent;
    border: 0;
    font-family: inherit;
}

.shop-page fieldset.eshop-section-fieldset.eshop-category-nav {
    padding-top: 0.75rem;
    border-radius: 1rem;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.shop-page fieldset.eshop-section-fieldset.eshop-category-nav > .eshop-section-fieldset__body {
    margin-top: 0.35rem;
    padding: 0 0.35rem 0.4rem;
}

.shop-page fieldset.eshop-section-fieldset.eshop-category-nav .eshop-category-nav__list {
    border-top: none;
    gap: 0.35rem;
    padding-top: 0.15rem;
}

.eshop-category-nav__list {
    display: flex;
    flex-direction: column;
}

.eshop-category-nav__group {
    border-bottom: none;
    border-radius: 0.65rem;
}

.eshop-category-nav__row {
    display: flex;
    align-items: stretch;
    min-height: 0;
    border-radius: 0.65rem;
    overflow: hidden;
    transition: background-color 0.15s ease;
}

.eshop-category-nav__group:has(.eshop-category-nav__link.is-active) .eshop-category-nav__row {
    background: #6b5b95;
}

.eshop-category-nav__row > .eshop-category-nav__link {
    flex: 1 1 auto;
    min-width: 0;
    border-bottom: none;
}

.eshop-category-nav__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border: none;
    border-radius: 0.65rem;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.eshop-category-nav__thumb {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.eshop-category-nav__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eshop-category-nav__thumb--icon,
.eshop-category-nav__thumb--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
}

.eshop-category-nav__thumb--icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.eshop-category-nav__thumb--fallback {
    background: linear-gradient(145deg, #ede9fe 0%, #e0e7ff 100%);
    color: #574a75;
}

.eshop-category-nav__link.is-active .eshop-category-nav__thumb--icon,
.eshop-category-nav__link.is-active .eshop-category-nav__thumb--fallback {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.eshop-category-nav__link.is-active .eshop-category-nav__thumb {
    border-color: rgba(255, 255, 255, 0.35);
}

.eshop-category-nav__toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    margin: 0;
    padding: 0;
    border: none;
    border-inline-start: 1px solid rgba(15, 23, 42, 0.06);
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.eshop-category-nav__toggle:hover,
.eshop-category-nav__toggle:focus-visible {
    background: #f9fafb;
    color: #6b5b95;
    outline: none;
}

.eshop-category-nav__toggle svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.eshop-category-nav__group.is-open .eshop-category-nav__toggle svg {
    transform: rotate(180deg);
}

.eshop-category-nav__group--has-subs .eshop-category-nav__subs {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    visibility: hidden;
}

.eshop-category-nav__group--has-subs.is-open .eshop-category-nav__subs {
    max-height: var(--eshop-cat-subs-max, 40rem);
    opacity: 1;
    margin-top: 0.2rem;
    padding: 0.15rem 0.35rem 0.35rem;
    visibility: visible;
}

.eshop-category-nav.is-animated .eshop-category-nav__group--has-subs .eshop-category-nav__subs {
    transition:
        max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.28s ease,
        margin-top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 0.35s;
}

.eshop-category-nav.is-animated .eshop-category-nav__group--has-subs.is-open .eshop-category-nav__subs {
    transition:
        max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.28s ease 0.05s,
        margin-top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
    .eshop-category-nav__subs,
    .eshop-category-nav__toggle svg {
        transition: none !important;
    }
}

.eshop-category-nav__link:hover {
    background: #f3f4f6;
    color: #6b5b95;
}

.eshop-category-nav__link.is-active {
    background: #6b5b95;
    color: #fff;
    box-shadow: 0 2px 8px rgba(107, 91, 149, 0.28);
}

.eshop-category-nav__group:has(.eshop-category-nav__link.is-active) .eshop-category-nav__link.is-active {
    background: transparent;
    box-shadow: none;
}

.eshop-category-nav__group:has(.eshop-category-nav__link.is-active) .eshop-category-nav__row {
    box-shadow: 0 2px 8px rgba(107, 91, 149, 0.28);
}

.eshop-category-nav__group:has(.eshop-category-nav__link.is-active) .eshop-category-nav__toggle {
    border-inline-start-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

.eshop-category-nav__group:has(.eshop-category-nav__link.is-active) .eshop-category-nav__toggle:hover,
.eshop-category-nav__group:has(.eshop-category-nav__link.is-active) .eshop-category-nav__toggle:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.eshop-category-nav__link.is-active .eshop-category-nav__icon {
    color: #fff;
}

.eshop-category-nav__link--accent {
    color: #6b5b95;
    font-weight: 600;
}

.eshop-category-nav__icon {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    color: #9ca3af;
}

.eshop-category-nav__icon svg {
    width: 100%;
    height: 100%;
}

.eshop-category-nav__label {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
}

.eshop-category-nav__subs {
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

.eshop-category-nav__sub-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.8125rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

[dir="rtl"] .eshop-category-nav__sub-link {
    padding: 0.45rem 0.65rem;
}

.eshop-category-nav__sub-thumb {
    flex-shrink: 0;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 0.4rem;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.eshop-category-nav__sub-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eshop-category-nav__sub-label {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.35;
}

.eshop-category-nav__sub-link.is-active {
    color: #6b5b95;
    font-weight: 600;
    background: rgba(107, 91, 149, 0.08);
}

.eshop-category-nav__sub-link:hover {
    color: #6b5b95;
    background: rgba(107, 91, 149, 0.05);
}

.eshop-showcase__main {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
    width: 100%;
    overflow: visible;
    min-height: 0;
}

.eshop-showcase__main .eshop-promo-carousel {
    flex: 1 1 auto;
}

@media (max-width: 1023.98px) {
    .eshop-showcase__delivery {
        order: -1;
    }
}

.eshop-showcase__delivery {
    display: flex;
    justify-content: flex-start;
}

/* Promo carousel */
.eshop-promo-carousel {
    position: relative;
    border-radius: 0.875rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    min-height: 300px;
}

@media (min-width: 640px) {
    .eshop-promo-carousel {
        min-height: 360px;
    }
}

@media (min-width: 1024px) {
    .eshop-promo-carousel {
        min-height: 420px;
    }
}

.eshop-promo-carousel__viewport {
    overflow: hidden;
    min-height: inherit;
}

.eshop-promo-carousel__track {
    position: relative;
    min-height: inherit;
}

.eshop-promo-carousel__slide {
    position: absolute;
    inset: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 1.25rem 3rem;
    align-items: center;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

@media (min-width: 640px) {
    .eshop-promo-carousel__slide {
        grid-template-columns: 1.1fr 0.9fr;
        padding: 2rem 2.25rem 3rem;
    }
}

.eshop-promo-carousel__slide.is-active {
    position: relative;
    inset: auto;
    display: grid;
    width: 100%;
    min-height: inherit;
    opacity: 1;
    pointer-events: auto;
}

.eshop-promo-carousel__content {
    min-width: 0;
}

.eshop-promo-carousel__slide--brand {
    background: linear-gradient(135deg, #6b5b95 0%, #574a75 100%);
    color: #fff;
}

.eshop-promo-carousel__slide--delivery {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #111827;
}

.eshop-promo-carousel__slide--secure {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
}

.eshop-promo-carousel__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.eshop-promo-carousel__headline {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Poppins", system-ui, sans-serif;
}

@media (min-width: 640px) {
    .eshop-promo-carousel__headline {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .eshop-promo-carousel__headline {
        font-size: 2.25rem;
    }
}

.eshop-promo-carousel__desc {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 28rem;
}

.eshop-promo-carousel__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    border-radius: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    background: #111827;
    color: #fff;
    transition: opacity 0.15s ease;
}

.eshop-promo-carousel__slide--brand .eshop-promo-carousel__cta {
    background: #fff;
    color: #6b5b95;
}

.eshop-promo-carousel__slide--secure .eshop-promo-carousel__cta {
    background: #059669;
    color: #fff;
}

.eshop-promo-carousel__cta--outline {
    background: transparent;
    border: 2px solid currentColor;
    color: inherit;
}

.eshop-promo-carousel__cta:hover {
    opacity: 0.9;
}

.eshop-promo-carousel__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

@media (min-width: 1024px) {
    .eshop-promo-carousel__visual {
        min-height: 200px;
    }
}

.eshop-promo-carousel__visual--logo img.eshop-promo-carousel__logo {
    max-width: min(220px, 72%);
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

.eshop-promo-carousel__visual--icon svg {
    width: min(168px, 62%);
    height: auto;
    color: inherit;
    opacity: 0.85;
}

.eshop-promo-carousel__dots {
    position: absolute;
    bottom: 0.85rem;
    inset-inline-start: 1.25rem;
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}

.eshop-promo-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 9999px;
    border: 1px solid rgba(55, 42, 88, 0.14);
    background: rgba(255, 255, 255, 0.96);
    color: #1f1833;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(55, 42, 88, 0.12);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.eshop-promo-carousel__nav svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    stroke: currentColor;
    color: inherit;
}

.eshop-promo-carousel__nav:hover {
    background: #fff;
    border-color: rgba(55, 42, 88, 0.28);
    color: #140f24;
}

.eshop-promo-carousel__nav:focus-visible {
    outline: 2px solid #6b5b95;
    outline-offset: 2px;
}

.eshop-promo-carousel__nav--prev {
    inset-inline-start: 0.65rem;
}

.eshop-promo-carousel__nav--next {
    inset-inline-end: 0.65rem;
}

/* Keep arrow icons dark even on branded/image slides (white chip + dark stroke). */
.eshop-promo-carousel.is-on-brand .eshop-promo-carousel__nav {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(55, 42, 88, 0.14);
    color: #1f1833;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.eshop-promo-carousel.is-on-brand .eshop-promo-carousel__nav:hover {
    background: #fff;
    border-color: rgba(55, 42, 88, 0.28);
    color: #140f24;
}

[dir="rtl"] .eshop-promo-carousel__nav svg {
    transform: scaleX(-1);
}

@media (max-width: 639.98px) {
    .eshop-promo-carousel__nav {
        width: 1.875rem;
        height: 1.875rem;
    }

    .eshop-promo-carousel__nav svg {
        width: 1rem;
        height: 1rem;
    }
}

.eshop-promo-carousel__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 9999px;
    border: none;
    padding: 0;
    background: rgba(107, 91, 149, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.eshop-promo-carousel.is-on-brand .eshop-promo-carousel__dot {
    background: rgba(255, 255, 255, 0.35);
}

.eshop-promo-carousel__dot.is-active {
    background: #6b5b95;
    transform: scale(1.15);
}

.eshop-promo-carousel.is-on-brand .eshop-promo-carousel__dot.is-active {
    background: #fff;
}

/* Favorites page */
.eshop-favorites-page {
    padding: 1.25rem 0 2.5rem;
}

@media (min-width: 640px) {
    .eshop-favorites-page {
        padding: 1.75rem 0 3rem;
    }
}

.eshop-favorites-page__shell {
    width: 100%;
}

.eshop-favorites-page__toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.85rem;
}

.eshop-favorites-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b5b95;
    text-decoration: none;
}

.eshop-favorites-page__back svg {
    width: 1rem;
    height: 1rem;
}

.eshop-favorites-page__back:hover {
    color: #4f4570;
    text-decoration: underline;
}

.eshop-favorites-fieldset {
    width: 100%;
}

.eshop-favorites-page__legend-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.eshop-favorites-page__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #6b5b95;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.eshop-favorites-page__city-note {
    margin: 0 0 1.1rem;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.45;
}

.eshop-favorites-page__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 2.5rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.eshop-favorites-page__loading[hidden],
.eshop-favorites-page__empty[hidden],
.eshop-favorites-page__count[hidden] {
    display: none !important;
}

.eshop-favorites-page__spinner {
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid #e1dfe8;
    border-top-color: #6b5b95;
    border-radius: 50%;
    animation: eshop-fav-spin 0.7s linear infinite;
}

@keyframes eshop-fav-spin {
    to { transform: rotate(360deg); }
}

.eshop-favorites-page__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.75rem 1rem 2.25rem;
}

.eshop-favorites-page__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    margin-bottom: 0.95rem;
    border-radius: 9999px;
    background: #f3f1f8;
    color: #6b5b95;
}

.eshop-favorites-page__empty-icon svg {
    width: 1.85rem;
    height: 1.85rem;
}

.eshop-favorites-page__empty-title {
    margin: 0 0 0.4rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #2d2a3e;
}

.eshop-favorites-page__empty-desc {
    margin: 0 0 1.15rem;
    font-size: 0.875rem;
    color: #6b7280;
    max-width: 26rem;
    line-height: 1.55;
}

.eshop-favorites-page__empty-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.35rem;
    border-radius: 0.65rem;
    background: #6b5b95;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.eshop-favorites-page__empty-cta:hover {
    background: #5a4f78;
    color: #fff;
}

.eshop-favorites-page__grid {
    width: 100%;
    min-width: 0;
}

.eshop-favorites-page__grid .eshop-favorites-page__cards,
.eshop-favorites-page__grid #product-grid {
    width: 100%;
}

.eshop-favorites-page__grid .eshop-product-grid {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: start;
    /* Match store/catalog cards: keep card width stable; don't stretch 2 items across the row */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)) !important;
    gap: 0.875rem !important;
}

@media (min-width: 640px) {
    .eshop-favorites-page__grid .eshop-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        gap: 1rem !important;
    }
}

.eshop-favorites-page__grid .eshop-product-grid > .eshop-product-card-v2 {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
}

.eshop-favorites-page__unavailable {
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Hero delivery location <select>: closed state matches hero; list = white + readable text (native popup varies by OS) */
.eshop-hero-section select.eshop-hero-location-select {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color-scheme: light;
}

.eshop-hero-section select.eshop-hero-location-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.eshop-hero-section select.eshop-hero-location-select option {
    background-color: #fff;
    color: hsl(261, 22%, 20%);
}

.eshop-hero-section select.eshop-hero-location-select option:hover,
.eshop-hero-section select.eshop-hero-location-select option:focus {
    background-color: hsl(263, 42%, 96%);
    color: hsl(261, 28%, 32%);
}

.eshop-hero-section select.eshop-hero-location-select option:checked {
    background-color: hsl(263, 35%, 93%);
    color: #4a3d6f;
    font-weight: 600;
}

.eshop-hero-section select.eshop-hero-location-select option.eshop-hero-location-add-option {
    font-weight: 600;
    color: #6b5b95;
}

/* Sticky filter bar: stays under fixed header while scrolling product list
   (do not set overflow:hidden on .shop-page — it breaks position:sticky) */

.shop-filter-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: var(--client-fixed-header-offset, max(120px, calc(100px + env(safe-area-inset-top, 0px))));
    z-index: 9990;
    overflow: visible;
    background-color: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(107, 91, 149, 0.14);
    box-shadow: 0 4px 18px rgba(39, 32, 66, 0.06);
}

/* Open sort/category dropdowns must paint above متاجر مميزة / product cards */
.shop-filter-sticky:has(.eshop-cselect.is-open) {
    z-index: 100020;
}

.shop-filter-sticky .eshop-cselect.is-open {
    z-index: 100021;
}

/* Catalog filter panel now lives in the page flow (above the ads/showcase),
   not inside the sticky navbar. */
.shop-filter-catalog-panel {
    position: relative;
    z-index: 20;
}

/* Delivery location strip — top of sticky shop filter bar (whole strip opens address UI) */
.eshop-filter-location-bar {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--eshop-brand-gradient);
    cursor: pointer;
    text-align: inherit;
    text-decoration: none;
    color: inherit;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.eshop-filter-location-bar:hover {
    filter: brightness(1.03);
}

.eshop-filter-location-bar:focus {
    outline: none;
}

.eshop-filter-location-bar:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: -2px;
}

.eshop-filter-location-bar > .max-w-7xl {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

button.eshop-filter-location-bar .eshop-delivery-chip--bar,
a.eshop-filter-location-bar .eshop-delivery-chip--bar {
    cursor: inherit;
    pointer-events: none;
}

.eshop-delivery-chip--bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
    padding: 0.15rem 0;
    border: none;
    background: transparent;
    color: #fff;
    text-align: start;
    cursor: pointer;
    text-decoration: none;
    font-family: "IBM Plex Sans Arabic", "DM Sans", system-ui, sans-serif;
    transition: opacity 0.15s ease;
}

.eshop-delivery-chip__lead {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 639.98px) {
    .eshop-delivery-chip--bar {
        align-items: center;
        flex-wrap: nowrap;
    }

    .eshop-delivery-chip__lead {
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .eshop-delivery-chip__icon {
        align-self: center;
        width: 1.75rem;
        height: 1.75rem;
    }

    .eshop-delivery-chip__pin-svg {
        width: 0.9375rem;
        height: 0.9375rem;
    }

    .eshop-delivery-chip__body {
        justify-content: center;
    }
}

.eshop-delivery-chip__chev {
    flex: 0 0 auto;
    margin-inline-start: auto;
}

.eshop-delivery-chip--bar:hover {
    opacity: 0.92;
}

.eshop-delivery-chip--bar:focus {
    outline: none;
}

.eshop-delivery-chip--bar:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
    border-radius: 0.35rem;
}

.eshop-delivery-chip__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.eshop-delivery-chip__pin-svg {
    width: 1rem;
    height: 1rem;
}

.eshop-delivery-chip__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.25;
}

.eshop-delivery-chip__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.92;
}

.eshop-delivery-chip__address {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

@media (min-width: 640px) {
    .eshop-delivery-chip__label {
        font-size: 0.75rem;
    }

    .eshop-delivery-chip__address {
        font-size: 0.875rem;
    }
}

.eshop-delivery-chip__chev-svg,
.eshop-delivery-chip__chev {
    flex: 0 0 auto;
    width: 1.125rem;
    height: 1.125rem;
    opacity: 0.85;
}

[dir="rtl"] .eshop-delivery-chip__chev-svg,
[dir="rtl"] .eshop-delivery-chip__chev {
    transform: scaleX(-1);
}

/* Shop catalog: search + filter icon stay on one row on mobile (details is inline-flex below lg) */
.retail-catalog-search-filter-row {
    min-width: 0;
}

/* Shop catalog: keep search + filters + actions on one row; scroll horizontally on narrow viewports */
.retail-shop-filter-row {
    -webkit-overflow-scrolling: touch;
}
.retail-shop-filter-row::-webkit-scrollbar {
    height: 5px;
}
.retail-shop-filter-row::-webkit-scrollbar-thumb {
    background: rgba(107, 91, 149, 0.35);
    border-radius: 9999px;
}
.retail-shop-filter-input,
.retail-shop-filter-select {
    box-sizing: border-box;
}
.retail-shop-filter-select {
    text-overflow: ellipsis;
    line-height: 1.25;
}

/* Filter bar: keep action labels on one line (Arabic “تطبيق الفلتر”, etc.) */
.retail-shop-filter-actions button,
.retail-shop-filter-actions a {
    white-space: nowrap;
}

.shop-filter-quick-link {
    min-width: 0;
}

.shop-filter-quick-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Shop catalog filter panel — search + selects + actions */
.retail-shop-filter-panel {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0.85rem 0.9rem 0.95rem;
    border: 1px solid #e1dfe8;
    border-radius: 1rem;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(55, 42, 88, 0.04),
        0 8px 20px rgba(55, 42, 88, 0.05);
}

@media (min-width: 640px) {
    .retail-shop-filter-panel {
        padding: 1rem 1.1rem 1.05rem;
        gap: 1rem;
    }
}

.retail-shop-filter-panel__primary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: end;
}

@media (min-width: 900px) {
    .retail-shop-filter-panel__primary {
        grid-template-columns: minmax(12rem, 1.15fr) minmax(0, 2fr);
        gap: 0.85rem 1rem;
    }
}

.retail-shop-filter-panel__search {
    min-width: 0;
}

.retail-shop-filter-panel__search-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}

.retail-shop-filter-panel__search-icon {
    position: absolute;
    inset-inline-start: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: #8a849c;
    pointer-events: none;
}

.retail-shop-filter-input {
    width: 100%;
    min-width: 0;
    height: 2.65rem;
    padding-inline: 2.35rem 0.85rem;
    border: 1px solid #e1dfe8;
    border-radius: 0.7rem;
    background: #faf9fc;
    color: #372a58;
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.retail-shop-filter-input::placeholder {
    color: #9ca3af;
}

.retail-shop-filter-input:hover {
    border-color: #d4d0de;
    background: #fff;
}

.retail-shop-filter-input:focus {
    border-color: #6b5b95;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(107, 91, 149, 0.16);
}

.retail-shop-filter-panel__selects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    min-width: 0;
}

@media (min-width: 480px) {
    .retail-shop-filter-panel__selects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .retail-shop-filter-panel__selects {
        grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
        align-items: end;
    }
}

.retail-shop-filter-panel__selects--compact {
    grid-template-columns: 1fr;
}

.retail-shop-filter-panel__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.retail-shop-filter-panel__field-label {
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #6b6580;
    line-height: 1.2;
}

.retail-shop-filter-select-wrap {
    position: relative;
    min-width: 0;
}

.retail-shop-filter-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-width: 0;
    height: 2.4rem;
    padding: 0 2.35rem 0 0.85rem;
    border: 1px solid #e1dfe8;
    border-radius: 0.5rem;
    background: #fff;
    color: #666;
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

[dir="rtl"] .retail-shop-filter-select,
.shop-page[dir="rtl"] .retail-shop-filter-select {
    padding: 0 0.85rem 0 2.35rem;
    text-align: right;
}

.retail-shop-filter-select:hover {
    border-color: #d1d1d1;
}

.retail-shop-filter-select:focus {
    border-color: var(--eshop-brand);
    box-shadow: 0 0 0 3px var(--eshop-brand-ring);
}

.retail-shop-filter-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.retail-shop-filter-select-wrap__chevron {
    position: absolute;
    inset-inline-end: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: #b0b0b0;
    pointer-events: none;
}

/* Custom dropdown (RTL select) */
.eshop-cselect {
    position: relative;
    z-index: 1;
}

.eshop-cselect.is-open {
    z-index: 100;
}

.eshop-cselect__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.eshop-cselect__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    min-height: 2.4rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid #d8d8d8;
    border-radius: 0.5rem;
    background: #fff;
    color: #555;
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: start;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eshop-cselect__trigger:hover {
    border-color: #cfcfcf;
}

.eshop-cselect__trigger:focus-visible {
    outline: none;
    border-color: var(--eshop-brand);
    box-shadow: 0 0 0 3px var(--eshop-brand-ring);
}

.eshop-cselect.is-open .eshop-cselect__trigger {
    border-color: var(--eshop-brand);
}

.eshop-cselect.is-placeholder .eshop-cselect__trigger-label {
    color: #9ca3af;
    font-weight: 500;
}

.eshop-cselect__trigger-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eshop-cselect__chevron {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    color: #b0b0b0;
    transition: transform 0.18s ease;
}

.eshop-cselect.is-open .eshop-cselect__chevron {
    transform: rotate(180deg);
    color: var(--eshop-brand);
}

.eshop-cselect__panel {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 0.35rem);
    display: none;
    flex-direction: column;
    max-height: min(16rem, 50vh);
    border: 1px solid #ececec;
    border-radius: 0.55rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.eshop-cselect.is-open .eshop-cselect__panel {
    display: flex;
    z-index: 101;
}

.eshop-cselect__list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1 1 auto;
    scrollbar-width: thin;
    scrollbar-color: #d4d4d4 transparent;
}

.eshop-cselect__option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.85rem;
    color: #666;
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: start;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.eshop-cselect__thumb {
    flex: 0 0 auto;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.4rem;
    object-fit: cover;
    background: #f3f1f8;
    border: 1px solid #ece9f3;
}

.eshop-cselect__thumb--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6A5D8B;
    background: #f3f1f8;
}

.eshop-cselect__option-label,
.eshop-cselect__trigger-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eshop-cselect__trigger-label--with-thumb {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.eshop-cselect__trigger-label--with-thumb .eshop-cselect__thumb {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.35rem;
}

/* Current value (= dropdown title in the list): not hoverable */
.eshop-cselect__option.is-selected {
    background: transparent;
    color: var(--eshop-brand);
    font-weight: 700;
    cursor: default;
    pointer-events: none;
}

.eshop-cselect__option:hover:not(.is-selected):not(.is-disabled),
.eshop-cselect__option:focus-visible:not(.is-selected):not(.is-disabled) {
    background: var(--eshop-brand);
    color: #fff;
    outline: none;
}

.eshop-cselect__option:hover:not(.is-selected):not(.is-disabled) .eshop-cselect__thumb--fallback,
.eshop-cselect__option:focus-visible:not(.is-selected):not(.is-disabled) .eshop-cselect__thumb--fallback {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
}

.eshop-cselect__option.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.eshop-cselect__scroll-hint {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.5rem;
    border-top: 1px solid #f0f0f0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), #fff);
    color: #b0b0b0;
    pointer-events: none;
}

.eshop-cselect__scroll-hint svg {
    width: 0.95rem;
    height: 0.95rem;
}

.eshop-cselect.is-disabled .eshop-cselect__trigger {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Sidebar sort uses same custom select skin */
.eshop-filter-sidebar .eshop-cselect__trigger {
    min-height: 2.5rem;
    border-radius: 0.55rem;
}

/* Sort dropdown must float over sibling filter cards — never stretch the sidebar shell */
.eshop-filter-card--sort {
    position: relative;
    z-index: 2;
    overflow: visible;
}

.eshop-filter-card--sort:has(.eshop-cselect.is-open) {
    z-index: 40;
}

.eshop-filter-card--sort .eshop-filter-card__body,
.eshop-filter-card--sort .eshop-filter-sidebar__sort-label,
.eshop-filter-card--sort .eshop-cselect {
    overflow: visible;
}

.eshop-filter-sidebar .eshop-filter-card--sort .eshop-cselect.is-open .eshop-cselect__panel {
    /* Default absolute fallback; JS upgrades to fixed so the fieldset shell never stretches */
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 0.3rem);
    bottom: auto;
    width: 100%;
    max-height: min(14rem, 40vh);
    margin: 0;
    z-index: 50;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

/* Fixed panel floats above the sidebar — does not grow the white filter shell */
.eshop-cselect__panel.is-fixed-panel {
    position: fixed !important;
    inset-inline: auto !important;
    z-index: 100040 !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2);
}

.retail-shop-filter-panel__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(107, 91, 149, 0.1);
}

.retail-shop-filter-panel__actions .shop-filter-quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0 0.9rem;
    border: 1px solid #e1dfe8;
    border-radius: 0.7rem;
    background: #fff;
    color: #372a58;
    font-family: "IBM Plex Sans Arabic", "DM Sans", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.retail-shop-filter-panel__actions .shop-filter-quick-link svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: #6b5b95;
}

.retail-shop-filter-panel__actions .shop-filter-quick-link:hover {
    background: #f5f3f9;
    border-color: rgba(107, 91, 149, 0.28);
}

.retail-shop-filter-panel__actions .retail-shop-filter-panel__stores {
    border-color: rgba(107, 91, 149, 0.28);
    background: rgba(107, 91, 149, 0.06);
    color: #6b5b95;
}

.retail-shop-filter-panel__actions .retail-shop-filter-panel__stores:hover {
    background: rgba(107, 91, 149, 0.12);
}

@media (max-width: 639.98px) {
    .retail-shop-filter-panel__actions .shop-filter-quick-link {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }

    .retail-shop-filter-panel__actions .retail-shop-filter-panel__clear,
    .retail-shop-filter-panel__actions .retail-shop-filter-panel__stores,
    .retail-shop-filter-panel__actions .retail-shop-filter-panel__mobile-filters {
        flex: 1 1 100%;
    }
}

@media (min-width: 900px) {
    .retail-shop-filter-panel__actions {
        justify-content: flex-end;
        border-top: none;
        padding-top: 0;
    }

    .retail-shop-filter-panel__actions .retail-shop-filter-panel__clear {
        margin-inline-end: auto;
    }
}
@media (min-width: 1280px) {
    .eshop-catalog-products--with-sidebar .eshop-catalog-shell__grid {
        grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
        gap: 1.25rem;
        align-items: start;
    }

    .eshop-catalog-products--with-sidebar .eshop-catalog-shell__main {
        min-width: 0;
        width: 100%;
        flex: 1 1 auto;
    }

    /* Sticky sidebar follows scroll; height grows with filter cards (no outer scrollbar) */
    .eshop-catalog-products--with-sidebar .eshop-catalog-shell__sidebar.eshop-filter-sidebar {
        position: sticky;
        top: calc(var(--client-fixed-header-offset, 120px) + 7.25rem);
        height: auto;
        max-height: none;
        overflow: visible;
        align-self: start;
        transform: none;
        inset: auto;
        width: auto;
        max-width: none;
        pointer-events: auto;
        visibility: visible;
        z-index: 5;
    }

    .eshop-catalog-products--with-sidebar .eshop-catalog-shell__sidebar.eshop-filter-sidebar:has(.eshop-cselect.is-open) {
        z-index: 100020;
    }
}

@media (min-width: 1536px) {
    .eshop-catalog-products--with-sidebar .eshop-catalog-shell__grid {
        grid-template-columns: minmax(230px, 260px) minmax(0, 1fr);
        gap: 1.5rem;
    }
}

/* Category browse filter sidebar */
.eshop-filter-sidebar__panel {
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    overflow: visible;
    position: relative;
    display: block;
    height: auto;
    max-height: none;
}

.eshop-filter-sidebar__panel::before {
    display: none;
}

.eshop-filter-sidebar__shell {
    margin: 0;
    padding: 0.85rem 0.9rem 0.75rem;
    border: 1px solid #e1dfe8;
    border-radius: 1rem;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(55, 42, 88, 0.04),
        0 8px 22px rgba(55, 42, 88, 0.07);
    min-width: 0;
}

.eshop-filter-sidebar__legend {
    width: auto;
    max-width: calc(100% - 0.75rem);
    float: none;
    margin-inline-start: 0.55rem;
    padding: 0 0.45rem;
}

.eshop-filter-sidebar__legend-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Match المنتجات fieldset legend */
.eshop-filter-sidebar__title {
    margin: 0;
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.015em !important;
    line-height: 1.35 !important;
    color: #372a58 !important;
}

@media (min-width: 640px) {
    .eshop-filter-sidebar__title {
        font-size: 1.1875rem !important;
    }
}

[dir="rtl"] .eshop-filter-sidebar__title {
    letter-spacing: 0 !important;
}

.eshop-filter-sidebar__context {
    margin: 0.15rem 0 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #8a849c;
    line-height: 1.35;
}

.eshop-filter-sidebar__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 0.45rem;
    background: transparent;
    color: var(--muted-foreground, #6b7280);
    cursor: pointer;
}

@media (min-width: 1280px) {
    .eshop-filter-sidebar__close {
        display: none;
    }
}

.eshop-filter-sidebar__close svg {
    width: 1.05rem;
    height: 1.05rem;
}

.eshop-filter-sidebar__active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.55rem;
    background: rgba(107, 91, 149, 0.06);
    border: 1px solid rgba(107, 91, 149, 0.08);
    font-size: 0.8125rem;
}

.eshop-filter-sidebar__active-label {
    font-weight: 700;
    color: #372a58;
}

.eshop-filter-sidebar__clear-all {
    color: #6b5b95;
    font-weight: 700;
    text-decoration: none;
}

.eshop-filter-sidebar__scroll {
    display: contents;
}

.eshop-filter-sidebar__sections {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0;
    overflow: visible;
    max-height: none;
    border: none;
    border-right: none;
    border-inline-end: none;
    direction: inherit;
    text-align: start;
}

/* Fieldset cards — title sits on the top border (legend style) */
.eshop-filter-card {
    margin: 0;
    padding: 0.75rem 0.8rem 0.85rem;
    border: 1px solid #e1dfe8;
    border-radius: 0.85rem;
    background: #fff;
    min-width: 0;
}

/* Same type scale as المنتجات legend */
.eshop-filter-card__legend {
    width: auto;
    max-width: calc(100% - 0.75rem);
    float: none;
    margin-inline-start: 0.55rem;
    padding: 0 0.45rem;
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.015em !important;
    line-height: 1.35 !important;
    color: #372a58 !important;
}

@media (min-width: 640px) {
    .eshop-filter-card__legend {
        font-size: 1.1875rem !important;
    }
}

[dir="rtl"] .eshop-filter-card__legend {
    letter-spacing: 0 !important;
}

.eshop-filter-card__body {
    margin-top: 0.35rem;
    min-width: 0;
}

.eshop-filter-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-height: none;
    overflow: visible;
}

/* Only نوع المنتج (subcategory list) scrolls */
.eshop-filter-sidebar__list--scroll {
    max-height: 11.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    direction: rtl;
    scrollbar-width: thin;
    scrollbar-color: #c4bdd4 transparent;
    padding-inline-end: 0.15rem;
}

html[dir="ltr"] .eshop-filter-sidebar__list--scroll,
[dir="ltr"] .eshop-filter-sidebar__list--scroll {
    direction: ltr;
}

.eshop-filter-sidebar__list--scroll::-webkit-scrollbar {
    width: 3px;
}

.eshop-filter-sidebar__list--scroll::-webkit-scrollbar-track {
    background: transparent;
}

.eshop-filter-sidebar__list--scroll::-webkit-scrollbar-thumb {
    background: #c4bdd4;
    border-radius: 999px;
}

.eshop-filter-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.55rem;
    border-radius: 0.55rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    transition: background 0.15s ease, color 0.15s ease;
}

.eshop-filter-sidebar__link--with-thumb {
    justify-content: flex-start;
}

.eshop-filter-sidebar__link--with-thumb .eshop-filter-sidebar__link-text {
    flex: 1 1 auto;
    min-width: 0;
}

.eshop-filter-sidebar__link--with-thumb .eshop-filter-check__thumb--empty {
    visibility: hidden;
}

.eshop-filter-sidebar__link:hover {
    background: #f5f3f9;
}

.eshop-filter-sidebar__link.is-active {
    background: rgba(107, 91, 149, 0.12);
    color: #6b5b95;
}

.eshop-filter-sidebar__count {
    flex-shrink: 0;
    min-width: 1.5rem;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.eshop-filter-sidebar__link.is-active .eshop-filter-sidebar__count {
    background: rgba(107, 91, 149, 0.16);
    color: #6b5b95;
}

/* Checkbox filter rows (subcategories + product tags) */
.eshop-filter-check-list {
    gap: 0.15rem;
}

.eshop-filter-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    margin: 0;
    padding: 0.45rem 0.4rem;
    border-radius: 0.5rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.eshop-filter-check:hover {
    background: #f5f3f9;
}

.eshop-filter-check__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.eshop-filter-check__box {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    border: 1.5px solid #9ca3af;
    border-radius: 0.28rem;
    background: #fff;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.eshop-filter-check__thumb {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.4rem;
    overflow: hidden;
    background: #f3f1f8;
    border: 1px solid #ece9f3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eshop-filter-check__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eshop-filter-check__thumb-fallback {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6A5D8B;
    line-height: 1;
}

.eshop-filter-check__box::after {
    content: "";
    position: absolute;
    inset-inline-start: 0.28rem;
    top: 0.08rem;
    width: 0.28rem;
    height: 0.55rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.12s ease;
}

.eshop-filter-check__input:checked + .eshop-filter-check__box {
    background: #6b5b95;
    border-color: #6b5b95;
}

.eshop-filter-check__input:checked + .eshop-filter-check__box::after {
    transform: rotate(45deg) scale(1);
}

.eshop-filter-check__input:focus-visible + .eshop-filter-check__box {
    outline: 2px solid rgba(107, 91, 149, 0.45);
    outline-offset: 2px;
}

.eshop-filter-check__text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
}

.eshop-filter-check__input:checked ~ .eshop-filter-check__text {
    color: #6b5b95;
}

.eshop-filter-check .eshop-filter-sidebar__count {
    margin-inline-start: auto;
}

.eshop-filter-sidebar__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.eshop-filter-sidebar__chip {
    font-size: 0.8125rem !important;
    height: 2.15rem !important;
    padding: 0 0.8rem !important;
}

.eshop-filter-sidebar__price {
    display: none;
}

/* Dual price range — slider + من/إلى inputs with ر.س */
.eshop-price-range {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.eshop-price-range__slider {
    position: relative;
    height: 1.75rem;
    display: flex;
    align-items: center;
    margin: 0.15rem 0.15rem 0;
    direction: ltr; /* range thumbs always LTR for correct overlay math */
}

.eshop-price-range__track {
    position: absolute;
    inset-inline: 0;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: #dbe3f0;
    pointer-events: none;
}

.eshop-price-range__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: 100%;
    border-radius: inherit;
    background: #6b5b95;
}

.eshop-price-range__thumb {
    position: absolute;
    inset-inline: 0;
    width: 100%;
    height: 1.75rem;
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
}

.eshop-price-range__thumb::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border: none;
}

.eshop-price-range__thumb::-moz-range-track {
    height: 4px;
    background: transparent;
    border: none;
}

.eshop-price-range__thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: -6px;
    border-radius: 999px;
    border: 2px solid #fff;
    background: #372a58;
    box-shadow: 0 1px 4px rgba(55, 42, 88, 0.35);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.eshop-price-range__thumb::-moz-range-thumb {
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 999px;
    border: 2px solid #fff;
    background: #372a58;
    box-shadow: 0 1px 4px rgba(55, 42, 88, 0.35);
    cursor: pointer;
    pointer-events: auto;
}

.eshop-price-range__thumb--min {
    z-index: 3;
}

.eshop-price-range__thumb--max {
    z-index: 4;
}

.eshop-price-range__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.eshop-price-range__field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    margin: 0;
}

.eshop-price-range__label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #372a58;
    line-height: 1.2;
}

.eshop-price-range__input {
    width: 100%;
    height: 2.45rem;
    padding: 0 0.55rem;
    border: 1.5px solid #372a58;
    border-radius: 0.45rem;
    background: #fff;
    color: #372a58;
    font-size: 0.9375rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}

.eshop-price-range__input::-webkit-outer-spin-button,
.eshop-price-range__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.eshop-price-range__input:focus {
    border-color: #6b5b95;
    box-shadow: 0 0 0 3px rgba(107, 91, 149, 0.16);
}

.eshop-price-range__currency {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #372a58;
    line-height: 1;
    flex-shrink: 0;
}

.eshop-price-range__currency .partner-buy-sar-svg {
    width: 0.85em;
    height: 0.95em;
    display: block;
}

.eshop-filter-card__legend-sar {
    display: inline-flex;
    align-items: center;
    vertical-align: -0.12em;
    margin-inline: 0.15em;
}

.eshop-filter-card__legend-sar .partner-buy-sar-svg {
    width: 0.85em;
    height: 0.95em;
    display: block;
}

.eshop-filter-sidebar__price-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #6b7280;
}

.eshop-filter-sidebar__price-input {
    width: 100%;
    height: 2.4rem;
    padding: 0 0.65rem;
    border: 1px solid #e1dfe8;
    border-radius: 0.55rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #372a58;
    background: #fff;
}

.eshop-filter-sidebar__price-input:focus {
    outline: none;
    border-color: #6b5b95;
    box-shadow: 0 0 0 3px rgba(107, 91, 149, 0.15);
}

.eshop-filter-sidebar__apply {
    grid-column: 1 / -1;
    height: 2.45rem;
    border: none;
    border-radius: 0.55rem;
    background: #6b5b95;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.eshop-filter-sidebar__apply:hover {
    background: #5a4b82;
}

.eshop-filter-sidebar__hint {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8a849c;
}

.eshop-filter-sidebar__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.eshop-filter-sidebar__chip {
    font-size: 0.8125rem !important;
    height: 2.15rem !important;
    padding: 0 0.8rem !important;
}

.eshop-filter-sidebar__sort-label {
    display: block;
    min-width: 0;
}

.eshop-filter-sidebar .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.eshop-filter-sidebar__sort-select {
    width: 100%;
    height: 2.55rem;
    padding: 0 0.75rem;
    border: 1px solid #e1dfe8;
    border-radius: 0.55rem;
    background: #fff;
    color: #372a58;
    font-size: 0.875rem;
    font-weight: 600;
    outline: none;
}

.eshop-filter-sidebar__sort-select:focus {
    border-color: #6b5b95;
    box-shadow: 0 0 0 3px rgba(107, 91, 149, 0.15);
}

.eshop-filter-sidebar__footer {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(107, 91, 149, 0.08);
    background: transparent;
}

.eshop-filter-sidebar__back {
    display: inline-flex;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #6b5b95;
    text-decoration: none;
}

.eshop-filter-sidebar__back:hover {
    text-decoration: underline;
}

.retail-shop-filter-panel__mobile-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(107, 91, 149, 0.22);
    border-radius: 0.7rem;
    background: #fff;
    color: #372a58;
    font-family: "IBM Plex Sans Arabic", "DM Sans", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.retail-shop-filter-panel__mobile-filters:hover {
    background: #f5f3f9;
    border-color: rgba(107, 91, 149, 0.35);
}

.retail-shop-filter-panel__mobile-filters svg {
    width: 1rem;
    height: 1rem;
    color: #6b5b95;
}

.eshop-filter-sidebar__backdrop {
    position: fixed;
    inset: 0;
    z-index: 99980;
    background: rgba(17, 24, 39, 0.45);
}

/*
 * Drawer mode below xl (1280): keeps filters usable at ~1024 tablet widths.
 * Dock to inline-start and slide fully off that edge (RTL was previously
 * docking to inline-end + translateX(+), which parked the closed panel on-screen).
 */
@media (max-width: 1279.98px) {
    .eshop-filter-sidebar {
        position: fixed !important;
        top: 0;
        bottom: 0;
        inset-inline-start: 0;
        inset-inline-end: auto;
        z-index: 99990;
        width: min(100%, 22rem);
        max-width: min(88vw, 22rem);
        height: 100%;
        max-height: 100dvh;
        margin: 0;
        transform: translateX(-110%);
        transition: transform 0.22s ease, visibility 0.22s ease;
        pointer-events: none;
        visibility: hidden;
        grid-column: 1 / -1;
        background: transparent;
    }

    [dir="rtl"] .eshop-filter-sidebar,
    .shop-page[dir="rtl"] .eshop-filter-sidebar {
        transform: translateX(110%);
    }

    .eshop-catalog-products--with-sidebar .eshop-catalog-shell__grid {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .eshop-catalog-products--with-sidebar .eshop-catalog-shell__main {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
    }

    .eshop-filter-sidebar.is-open {
        transform: translateX(0) !important;
        pointer-events: auto;
        visibility: visible;
    }

    .eshop-filter-sidebar__panel {
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 0 0 1px #e1dfe8, 0 18px 40px rgba(39, 32, 66, 0.18);
    }

    .eshop-filter-sidebar__shell {
        height: 100%;
        border-radius: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: none;
        box-shadow: none;
    }

    body.eshop-filter-sidebar-open {
        overflow: hidden;
    }

    .eshop-filter-sidebar__close {
        display: inline-flex !important;
    }
}

@media (min-width: 1280px) {
    .eshop-filter-sidebar__backdrop {
        display: none !important;
    }
}

/* Mobile collapsible filter panel (native <details>) */
.retail-filter-trigger {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(220, 13%, 91%);
    background: #fff;
    color: hsl(261, 15%, 25%);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.retail-filter-trigger::-webkit-details-marker {
    display: none;
}
.retail-filter-trigger::marker {
    content: "";
}
.retail-filter-trigger:hover {
    background: hsl(263, 28%, 96%);
    border-color: rgba(107, 91, 149, 0.35);
    color: #6b5b95;
}
.retail-filter-trigger__dot {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #6b5b95;
    border: 2px solid #fff;
}
.retail-filter-details[open] .retail-filter-trigger {
    background: #6b5b95;
    color: #fff;
    border-color: #6b5b95;
}

@media (max-width: 1023.98px) {
    /* Sticky filter flush under fixed header (topBar + h-20); avoids scroll bleed in the gap */
    .shop-page .shop-filter-sticky {
        top: var(--client-fixed-header-offset, calc(5rem + 2.25rem + env(safe-area-inset-top, 0px)));
        margin-top: -1px;
    }

    .retail-filter-popover {
        display: none;
    }
    .retail-filter-details[open] .retail-filter-popover {
        display: flex;
        position: absolute;
        inset-inline: 1rem;
        top: calc(100% + 0.25rem);
        background: #fff;
        border: 1px solid rgba(107, 91, 149, 0.18);
        border-radius: 0.75rem;
        box-shadow: 0 18px 40px rgba(39, 32, 66, 0.18);
        padding: 0.75rem;
        z-index: 9991;
    }
}

/* Category card line — Extra-style horizontal browse strip */
.eshop-cat-line {
    background: #fafafa;
    border-bottom: 1px solid #eceaf2;
    padding: 1rem 0 1.15rem;
}

.eshop-cat-line__inner {
    position: relative;
}

.eshop-cat-line-slider {
    padding-inline: 0.25rem;
}

.eshop-cat-line__track {
    display: flex;
    align-items: stretch;
    gap: 0.35rem 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.35rem 0.5rem 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.eshop-cat-line__card {
    flex: 0 0 auto;
    width: 6.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: #1f2937;
    scroll-snap-align: start;
    padding: 0.35rem 0.25rem;
    border-radius: 12px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.eshop-cat-line__card:hover {
    color: #111827;
    background: rgba(55, 42, 88, 0.04);
}

.eshop-cat-line__card.is-active {
    color: var(--eshop-brand-hover);
}

.eshop-cat-line__card.is-active .eshop-cat-line__label {
    color: var(--eshop-brand-hover);
    font-weight: 800;
}

.eshop-cat-line__media {
    width: 5.5rem;
    height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: transparent;
    overflow: hidden;
}

.eshop-cat-line__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.eshop-cat-line__fallback {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #efeaf8;
    color: #372a58;
    font-family: "IBM Plex Sans Arabic", Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
}

.eshop-cat-line__label {
    display: block;
    width: 100%;
    text-align: center;
    font-family: "IBM Plex Sans Arabic", Helvetica, Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1f2937;
    word-break: break-word;
}

.eshop-cat-line__nav {
    border: 1.5px solid #3b82f6;
    color: #2563eb;
    background: #fff;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.12);
    opacity: 1;
}

.eshop-cat-line-slider:hover .eshop-cat-line__nav,
.eshop-cat-line__nav:focus-visible {
    opacity: 1;
    background: #fff;
}

.eshop-cat-line__nav:hover:not(:disabled) {
    background: #eff6ff;
}

@media (max-width: 640px) {
    .eshop-cat-line__card {
        width: 5.75rem;
    }

    .eshop-cat-line__media {
        width: 4.75rem;
        height: 4.75rem;
    }

    .eshop-cat-line__label {
        font-size: 0.75rem;
    }
}

/* Partners slider: hidden scrollbar, edge mask, fading nav arrows */
.retail-partners-slider {
    position: relative;
}
.retail-partners-track {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 32px,
        #000 calc(100% - 32px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 32px,
        #000 calc(100% - 32px),
        transparent 100%
    );
}
.retail-partners-track::-webkit-scrollbar {
    display: none;
}

.retail-partners-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.95);
    color: #2b2240;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.15s ease;
    border: none;
    cursor: pointer;
}
.retail-partners-nav:hover {
    background: #fff;
}
.retail-partners-slider:hover .retail-partners-nav,
.retail-partners-nav:focus-visible {
    opacity: 1;
}
.retail-partners-nav--prev {
    inset-inline-start: -0.5rem;
}
.retail-partners-nav--next {
    inset-inline-end: -0.5rem;
}
.retail-partners-nav[disabled] {
    opacity: 0.25;
    pointer-events: none;
}
/* No overflow (e.g. a single partner) → remove the arrows entirely so they never overlap a card. */
.retail-partners-nav.is-hidden {
    display: none !important;
}

/* Trending by city — Saudi Arabia top products per city */
.eshop-trending {
    margin-bottom: 0;
}

.eshop-trending-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.35rem 0.125rem 0.85rem;
}

/* Edge fade masks clip card borders — disable on e-shop city/store carousels */
.eshop-trending-track.retail-partners-track,
.eshop-featured-shops-track.retail-partners-track,
[dir="rtl"] .eshop-trending-track.retail-partners-track,
[dir="rtl"] .eshop-featured-shops-track.retail-partners-track {
    -webkit-mask-image: none;
    mask-image: none;
}

.eshop-trending-card {
    flex: 0 0 min(220px, 78vw);
    background: #fff;
    border: 1px solid #e1dfe8;
    border-radius: 12px;
    padding: 0.875rem 0.875rem 0.85rem;
    box-shadow: 0 1px 2px rgba(55, 42, 88, 0.04);
    box-sizing: border-box;
}

.eshop-trending-card__city {
    display: block;
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--eshop-brand-light);
    text-decoration: none;
    line-height: 1.3;
}

.eshop-trending-card__city:hover {
    color: var(--eshop-brand-hover);
}

.eshop-trending-card__city--static {
    cursor: default;
    pointer-events: none;
}

.eshop-trending-card__city--static:hover {
    color: inherit;
}

/* Best sellers — product cards for selected delivery city (no city carousel) */
.eshop-trending--products .eshop-trending-products-track {
    display: flex;
    align-items: stretch;
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.35rem 0.25rem 0.65rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.eshop-trending--products .eshop-trending-products-track[dir="rtl"],
[dir="rtl"] .eshop-trending--products .eshop-trending-products-track {
    direction: rtl;
}

.eshop-trending-page__products {
    direction: inherit;
    margin-top: 0.75rem;
}

.eshop-trending-page[dir="rtl"] .eshop-trending-page__products {
    direction: rtl;
}

.eshop-trending-products__item {
    position: relative;
    flex: 0 0 auto;
    width: min(16.5rem, 72vw);
    scroll-snap-align: start;
}

.eshop-trending-products__item .eshop-product-card-v2 {
    height: 100%;
}

.eshop-trending--products .retail-partners-nav {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.12);
    opacity: 1;
}

.eshop-trending--products .retail-partners-nav svg {
    width: 1.15rem;
    height: 1.15rem;
    stroke: #111827;
}

/* RTL: point arrows toward scroll direction (left ← / right →), not inward */
.eshop-trending--products[dir="rtl"] .retail-partners-nav svg,
[dir="rtl"] .eshop-trending--products .retail-partners-nav svg {
    transform: scaleX(-1);
}

.eshop-trending--products .retail-partners-nav:hover:not(:disabled) {
    background: #f9fafb;
    color: #000;
}

.eshop-trending--products .retail-partners-nav:hover:not(:disabled) svg {
    stroke: #000;
}


.eshop-trending-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.eshop-trending-card__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.eshop-trending-card__rank {
    flex: 0 0 1.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #d1d5db;
    line-height: 1;
    text-align: center;
}

.eshop-trending-card__link {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.eshop-trending-card__product-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #111827;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eshop-trending-card__link:hover .eshop-trending-card__product-title {
    color: #6b5b95;
}

.eshop-trending-card__thumb-wrap {
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.eshop-trending-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eshop-trending-card__thumb-wrap--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.eshop-trending-card__thumb-wrap--placeholder svg {
    width: 1.125rem;
    height: 1.125rem;
}

@media (min-width: 1024px) {
    .eshop-trending-card {
        flex-basis: 220px;
    }
}

/* Trending — full page */
.eshop-trending-page__subtitle {
    margin: 0 0 1.15rem;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

.eshop-trending-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}

@media (min-width: 768px) {
    .eshop-trending-page__grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1rem;
    }
}

.eshop-trending-page__grid .eshop-trending-card {
    flex: none;
    width: 100%;
    min-height: 100%;
}

.eshop-trending-page__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1rem;
}

.eshop-trending-page__empty--inline {
    padding: 1.25rem 0.5rem 0.75rem;
}

.eshop-trending-page__empty-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.eshop-trending-page__empty-desc {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    max-width: 26rem;
    line-height: 1.5;
}

.eshop-trending-page__empty-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 0.5rem;
    background: #6b5b95;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.eshop-trending-page__empty-cta:hover {
    opacity: 0.92;
    color: #fff;
}

/* Featured shops — always one horizontal row + swipe/nav */
.shop-page__section--shops,
.eshop-featured-shops {
    position: relative;
    z-index: 1;
}

.eshop-featured-shops {
    margin-bottom: 0;
}

.eshop-featured-shops-slider {
    position: relative;
}

.eshop-featured-shops-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0.65rem 0.125rem 0.95rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start !important;
    cursor: grab;
    touch-action: pan-x;
}

.eshop-featured-shops-track::-webkit-scrollbar {
    display: none;
}

.eshop-featured-shops-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.eshop-featured-shops-track.is-dragging a {
    pointer-events: none;
}

/* Light-surface nav (partners hero nav is white-on-dark) */
.eshop-featured-shops-slider.retail-partners-slider .retail-partners-nav {
    background: #fff;
    color: #372a58;
    border: 1px solid #e1dfe8;
    box-shadow: 0 2px 10px rgba(55, 42, 88, 0.12);
    opacity: 1;
}

.eshop-featured-shops-slider.retail-partners-slider .retail-partners-nav:hover:not(:disabled) {
    background: #faf9fc;
    color: #372a58;
}

.eshop-featured-shops-slider.retail-partners-slider .retail-partners-nav[disabled] {
    opacity: 0.35;
}

@media (min-width: 1024px) {
    .eshop-featured-shops-slider.retail-partners-slider .retail-partners-nav {
        background: #fff;
        color: #372a58;
        border: 1px solid #e1dfe8;
        box-shadow: 0 2px 10px rgba(55, 42, 88, 0.12);
    }

    .eshop-featured-shops-slider.retail-partners-slider .retail-partners-track {
        justify-content: flex-start !important;
    }
}

@media (max-width: 640px) {
    /* Keep swipe; show subtle overlay arrows when scrollable */
    .eshop-featured-shops-slider.is-scrollable .retail-partners-nav:not(.is-hidden) {
        display: inline-flex;
        opacity: 0.9;
    }
}

@media (min-width: 768px) {
    .eshop-featured-shops-slider:not(.is-scrollable) .eshop-featured-shops-track {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        gap: 1rem;
    }
}

.eshop-featured-shops__view-all {
    color: var(--eshop-brand, #6b5b95) !important;
    font-weight: 600;
}

.eshop-featured-shop-card {
    --shop-brand: #6b5b95;
    --fs-logo: 3.5rem;
    --fs-logo-overlap: 1.75rem;
    flex: 0 0 min(260px, 82vw);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: visible;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    isolation: isolate;
}

@media (hover: hover) {
    .eshop-featured-shop-card:hover {
        border-color: color-mix(in srgb, var(--eshop-brand, #6b5b95) 35%, #e5e7eb);
        box-shadow: 0 8px 20px rgba(55, 42, 88, 0.1);
        transform: translateY(-2px);
    }
}

/* Match storefront banner treatment (1920×480 / 4:1, object-fit: fill) */
.eshop-featured-shop-card__banner {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 1;
    min-height: 4.75rem;
    border-radius: 0.85rem 0.85rem 0 0;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--shop-brand) 72%, #fff) 0%, var(--shop-brand) 100%);
    border-bottom: 1px solid #e1dfe8;
    overflow: hidden;
    z-index: 0;
}

.eshop-featured-shop-card__banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    display: block;
}

.eshop-featured-shop-card--has-banner .eshop-featured-shop-card__banner {
    background: #f3f1f7;
}

.eshop-featured-shop-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-height: 6.75rem;
    padding: 0.7rem 0.85rem 0.9rem;
    border-radius: 0 0 0.85rem 0.85rem;
    background: #fff;
}

.eshop-featured-shop-card__identity {
    position: relative;
    display: block;
    min-height: calc(var(--fs-logo) - var(--fs-logo-overlap) + 0.35rem);
    /* Reserve space so name/rating never sit under the overlapping logo */
    padding-inline-start: calc(var(--fs-logo) + 0.7rem);
    padding-top: 0.1rem;
    margin: 0;
}

.eshop-featured-shop-card__logo-wrap {
    position: absolute;
    inset-inline-start: 0;
    top: calc(-1 * var(--fs-logo-overlap));
    width: var(--fs-logo);
    height: var(--fs-logo);
    border-radius: 9999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #e5e7eb, 0 2px 8px rgba(15, 23, 42, 0.08);
    z-index: 2;
    pointer-events: none;
}

.eshop-featured-shop-card__logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eshop-featured-shop-card__initial {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--shop-brand, #6b5b95);
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
}

.eshop-featured-shop-card__identity-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
    min-height: calc(var(--fs-logo) - var(--fs-logo-overlap));
}

.eshop-featured-shop-card__name {
    width: 100%;
    min-width: 0;
    text-align: start;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eshop-featured-shop-card:hover .eshop-featured-shop-card__name {
    color: var(--eshop-brand, #6b5b95);
}

.eshop-featured-shop-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.2;
    white-space: nowrap;
}

.eshop-featured-shop-card__rating-value {
    font-weight: 700;
    color: #334155;
}

.eshop-featured-shop-card__rating-star {
    color: #f59e0b;
    flex-shrink: 0;
}

.eshop-featured-shop-card__rating-label {
    font-weight: 500;
}

.eshop-featured-shop-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin-top: auto;
}

.eshop-featured-shop-card__stat {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.35rem 0.4rem;
    border-radius: 0.5rem;
    background: color-mix(in srgb, var(--eshop-brand, #6b5b95) 9%, #f8fafc);
    color: var(--eshop-brand, #6b5b95);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
}

@media (min-width: 640px) {
    .eshop-featured-shop-card {
        flex-basis: 260px;
    }
}

@media (min-width: 1024px) {
    .eshop-featured-shop-card {
        flex-basis: 280px;
    }
}

[dir="rtl"] .eshop-featured-shops-track {
    -webkit-mask-image: none;
    mask-image: none;
}

/* Product tag / feature filter chips */
.eshop-feature-chip {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border, #e5e7eb);
    background: #fff;
    color: var(--foreground, #111827);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.eshop-feature-chip:hover {
    border-color: var(--primary, #0d9488);
    color: var(--primary, #0d9488);
}
.eshop-feature-chip.is-active {
    background: var(--primary, #0d9488);
    border-color: var(--primary, #0d9488);
    color: #fff;
}
@media (min-width: 1024px) {
    .eshop-feature-chip {
        height: 2.5rem;
        font-size: 0.8125rem;
    }
}

/* Mobile app download banner */
.eshop-app-banner {
    padding: 0 0 1.25rem;
    background: #f3f4f6;
}

@media (min-width: 640px) {
    .eshop-app-banner {
        padding-bottom: 1.75rem;
    }
}

.eshop-app-banner__inner {
    padding-top: 0;
    padding-bottom: 0;
    max-width: 80rem;
}

.eshop-app-banner__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    background: linear-gradient(135deg, #ff5722 0%, #f4511e 100%);
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(244, 81, 30, 0.22);
}

@media (min-width: 768px) {
    .eshop-app-banner__grid {
        grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
        gap: 2rem;
        padding: 1.75rem 2rem;
    }
}

.eshop-app-banner__phone {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 0;
}

.eshop-app-banner__device {
    position: relative;
    width: min(168px, 42vw);
    aspect-ratio: 9 / 19;
    border-radius: 1.35rem;
    padding: 0.45rem;
    background: #111827;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    transform: translateY(0.75rem);
}

@media (min-width: 768px) {
    .eshop-app-banner__device {
        width: 190px;
        transform: translateY(1rem);
    }
}

.eshop-app-banner__device-notch {
    position: absolute;
    top: 0.55rem;
    left: 50%;
    transform: translateX(-50%);
    width: 28%;
    height: 0.55rem;
    border-radius: 9999px;
    background: #111827;
    z-index: 2;
}

.eshop-app-banner__device-screen {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.35rem 0.55rem 0.65rem;
}

.eshop-app-banner__mock-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.15rem;
}

.eshop-app-banner__mock-logo {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    flex-shrink: 0;
}

.eshop-app-banner__mock-greeting {
    font-size: 0.45rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eshop-app-banner__mock-search {
    height: 0.75rem;
    border-radius: 9999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.eshop-app-banner__mock-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
    flex: 1 1 auto;
}

.eshop-app-banner__mock-grid span {
    border-radius: 0.35rem;
    background: linear-gradient(145deg, #f9fafb 0%, #eef2ff 100%);
    border: 1px solid #e5e7eb;
    min-height: 1.75rem;
}

.eshop-app-banner__mock-grid span:nth-child(1) { background: linear-gradient(145deg, #ede9fe, #ddd6fe); }
.eshop-app-banner__mock-grid span:nth-child(2) { background: linear-gradient(145deg, #ecfdf5, #d1fae5); }
.eshop-app-banner__mock-grid span:nth-child(3) { background: linear-gradient(145deg, #f6f3fc, #ebe4f8); }
.eshop-app-banner__mock-grid span:nth-child(4) { background: linear-gradient(145deg, #eff6ff, #dbeafe); }

.eshop-app-banner__content {
    color: #fff;
    text-align: start;
}

.eshop-app-banner__title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    font-family: "Poppins", system-ui, sans-serif;
}

@media (min-width: 640px) {
    .eshop-app-banner__title {
        font-size: 1.65rem;
    }
}

.eshop-app-banner__subtitle {
    margin: 0 0 1.1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0.95;
    max-width: 28rem;
}

.eshop-app-banner__stores {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .eshop-app-banner__stores {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

.eshop-app-banner__store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-width: min(100%, 280px);
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (hover: hover) {
    .eshop-app-banner__store-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }
}

.eshop-app-banner__store-btn--static {
    cursor: default;
    pointer-events: none;
    opacity: 0.92;
}

@media (hover: hover) {
    .eshop-app-banner__store-btn--static:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
}

.eshop-app-banner__store-text {
    flex: 1 1 auto;
    min-width: 0;
}

.eshop-app-banner__store-icon {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eshop-app-banner__store-icon svg {
    width: 100%;
    height: 100%;
}

.eshop-app-banner__store-icon--apple {
    color: #111827;
}

/* Product card — gentle hover lift (raw CSS so it works without a Tailwind rebuild). */
.eshop-product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    will-change: transform;
}
@media (hover: hover) {
    .eshop-product-card:hover {
        transform: translateY(-4px);
    }
}

.eshop-product-card__add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 2.25rem;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, #7d6db5 0%, #6b5b95 55%, #5a4b80 100%);
    color: #ffffff;
    font-family: "DM Sans", "Open Sans", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(107, 91, 149, 0.35);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.eshop-product-card__add-btn-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}
.eshop-product-card__add-btn--outline {
    background: #ffffff;
    color: #6b5b95;
    border: 1.5px solid rgba(107, 91, 149, 0.45);
    box-shadow: none;
}
@media (hover: hover) {
    .eshop-product-card__add-btn:hover {
        background: linear-gradient(135deg, #6b5b95 0%, #574a75 55%, #4a3d6f 100%);
        color: #ffffff;
        box-shadow: 0 4px 14px rgba(74, 61, 111, 0.45);
    }
    .eshop-product-card__add-btn--outline:hover {
        background: rgba(107, 91, 149, 0.08);
        color: #574a75;
        border-color: rgba(107, 91, 149, 0.6);
    }
    .eshop-product-card:hover .eshop-product-card__add-btn:not(.eshop-product-card__add-btn--outline) {
        transform: translateY(-1px);
    }
}
.eshop-product-card__add-btn:active {
    transform: translateY(0);
}
.eshop-product-card__add-btn:focus-visible {
    outline: 2px solid rgba(107, 91, 149, 0.55);
    outline-offset: 2px;
}
@media (min-width: 640px) {
    .eshop-product-card__add-btn {
        min-height: 2.5rem;
        font-size: 0.875rem;
    }
}

/* ── Product card v2 (catalog grid — mock-aligned) ─────────────────────── */
.eshop-product-card-v2 {
    --eshop-card-accent: #6b5b95;
    --eshop-card-accent-hover: #574a75;
    --eshop-card-accent-soft: rgba(107, 91, 149, 0.1);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
    .eshop-product-card-v2:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    }
}

.eshop-product-card-v2__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
}

.eshop-product-card-v2__media-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.eshop-product-card-v2__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.eshop-product-card-v2__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.eshop-product-card-v2__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.eshop-product-card-v2__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.75rem;
    box-sizing: border-box;
}

.eshop-product-card-v2__slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(100, 116, 139, 0.45);
}

.eshop-product-card-v2__oos {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    z-index: 3;
    pointer-events: none;
}

.eshop-product-card-v2__oos span {
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
}

.eshop-product-card-v2__dots {
    position: absolute;
    left: 50%;
    bottom: 0.5rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 4;
    padding: 0.15rem 0.35rem;
    border-radius: 999px;
    transition: bottom 0.2s ease;
}

@media (hover: hover) {
    .eshop-product-card-v2:hover .eshop-product-card-v2__dots,
    .eshop-product-card-v2:focus-within .eshop-product-card-v2__dots {
        bottom: 3.35rem;
    }
}

.eshop-product-card-v2__dot {
    width: 0.4rem;
    height: 0.4rem;
    border: none;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.85);
    padding: 0;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.eshop-product-card-v2__dot.is-active {
    width: 1.1rem;
    background: var(--eshop-card-accent);
}

.eshop-product-card-v2__actions {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.5rem 0.625rem 0.625rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 65%, rgba(255, 255, 255, 0));
    opacity: 0;
    transform: translateY(0.35rem);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
    .eshop-product-card-v2:hover .eshop-product-card-v2__actions,
    .eshop-product-card-v2:focus-within .eshop-product-card-v2__actions {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .eshop-product-card-v2:hover .eshop-product-card-v2__dots,
    .eshop-product-card-v2:focus-within .eshop-product-card-v2__dots {
        bottom: 3.35rem;
    }
}

.eshop-product-card-v2__btn-icon {
    display: none;
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}

.eshop-product-card-v2__btn-label {
    min-width: 0;
}

/* Touch / no-hover devices (incl. touchscreen laptops & hybrids): reveal the action bar without a hover.
   NOTE: this must NOT change the button SIZE/shape — only its visibility — otherwise wide touch desktops
   collapse the labeled buttons into tiny icons. The icon-only compact treatment is width-based (below). */
@media (hover: none), (pointer: coarse) {
    .eshop-product-card-v2__actions {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    /* Action bar is permanently visible on touch — lift the image dots above it (mirrors the hover state).
       The narrow-viewport block below resets this for the compact mobile corner layout. */
    .eshop-product-card-v2__dots {
        bottom: 3.35rem;
    }
}

/* Compact icon-only action buttons — small (mobile) viewports ONLY. On wide screens the buttons keep their
   full labels even on touch-capable / hybrid devices (fixes the desktop-full-width tiny-icon-buttons bug). */
@media (max-width: 560px) {
    .eshop-product-card-v2__actions {
        opacity: 1;
        transform: none;
        pointer-events: auto;
        inset-inline-start: auto;
        inset-inline-end: 0.45rem;
        bottom: 0.45rem;
        width: auto;
        max-width: none;
        grid-template-columns: auto auto;
        justify-content: flex-end;
        gap: 0.35rem;
        padding: 0;
        background: none;
    }

    .eshop-product-card-v2__dots {
        inset-inline-start: 0.5rem;
        inset-inline-end: auto;
        left: auto;
        right: auto;
        transform: none;
        bottom: 0.5rem;
        background: rgba(255, 255, 255, 0.78);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    }

    .eshop-product-card-v2__btn {
        position: relative;
        width: 2.125rem;
        height: 2.125rem;
        min-width: 0;
        min-height: 0;
        max-width: none;
        padding: 0;
        border-radius: 999px;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
    }

    .eshop-product-card-v2__btn-icon {
        display: block;
    }

    .eshop-product-card-v2__btn-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

.eshop-product-card-v2__action-form {
    display: contents;
}

.eshop-product-card-v2__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 2rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.625rem;
    font-family: "DM Sans", "Open Sans", system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    border: 1.5px solid transparent;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 640px) {
    .eshop-product-card-v2__btn {
        min-height: 2.25rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.625rem;
    }
}

.eshop-product-card-v2__btn--primary {
    background: var(--eshop-card-accent);
    color: #fff;
    border-color: var(--eshop-card-accent);
}

.eshop-product-card-v2__btn--primary:hover:not(.is-disabled):not(:disabled) {
    background: var(--eshop-card-accent-hover);
    border-color: var(--eshop-card-accent-hover);
}

.eshop-product-card-v2__btn--ghost {
    background: #fff;
    color: var(--eshop-card-accent);
    border-color: var(--eshop-card-accent);
}

.eshop-product-card-v2__btn--ghost:hover:not(.is-disabled):not(:disabled) {
    background: var(--eshop-card-accent-soft);
}

.eshop-product-card-v2__btn.is-disabled,
.eshop-product-card-v2__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Catalog feature tags on product cards */
.eshop-product-card-v2__feature-tags {
    position: absolute;
    top: 0.5rem;
    inset-inline-start: 0.5rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    pointer-events: none;
}

.eshop-product-card-v2__feature-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.eshop-product-card-v2__feature-tag--new { background: #059669; }
.eshop-product-card-v2__feature-tag--trending { background: var(--eshop-brand); }
.eshop-product-card-v2__feature-tag--limited { background: #dc2626; }
.eshop-product-card-v2__feature-tag--exclusive { background: #7c3aed; }
.eshop-product-card-v2__feature-tag--best_seller { background: #1d4ed8; }

/* ── /eshop catalog grid card (reference layout) ───────────────────────── */
.shop-page #product-grid .eshop-product-card-v2--catalog {
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.shop-page #product-grid .eshop-product-card-v2--catalog.eshop-product-card-v2--has-props {
    overflow: visible;
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__props-wrap {
    position: absolute;
    /* Align to the card's outer border box (card uses 1px border). */
    top: 100%;
    left: -1px;
    right: -1px;
    inset-inline: -1px;
    width: auto;
    max-width: none;
    margin: -1px 0 0;
    box-sizing: border-box;
    box-shadow: none;
    /* Keep horizontal padding on the list so the wrap background stays full-bleed. */
    padding: 0;
    border: 1px solid transparent;
    border-top: none;
    border-radius: 0 0 1rem 1rem;
    background: #fff;
    background-clip: border-box;
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__props {
    padding-inline: 0.9rem;
}

.shop-page #product-grid .eshop-product-card-v2--catalog.eshop-product-card-v2--has-props:hover,
.shop-page #product-grid .eshop-product-card-v2--catalog.eshop-product-card-v2--has-props:focus-within,
.shop-page #product-grid .eshop-product-card-v2--catalog.eshop-product-card-v2--has-props.is-props-open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 24;
}

.shop-page #product-grid .eshop-product-card-v2--catalog.eshop-product-card-v2--has-props:hover .eshop-product-card-v2__props-wrap,
.shop-page #product-grid .eshop-product-card-v2--catalog.eshop-product-card-v2--has-props:focus-within .eshop-product-card-v2__props-wrap,
.shop-page #product-grid .eshop-product-card-v2--catalog.eshop-product-card-v2--has-props.is-props-open .eshop-product-card-v2__props-wrap {
    /* Same side border as the catalog card so the panel reads as one surface. */
    border-color: rgba(15, 23, 42, 0.06);
    border-top-color: rgba(15, 23, 42, 0.06);
    border-radius: 0 0 1rem 1rem;
    padding: 0.45rem 0 0.65rem;
    box-shadow: 0 12px 22px -6px rgba(15, 23, 42, 0.14);
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__props-more {
    margin-inline: 0.9rem;
}

.shop-page #product-grid .eshop-product-card-v2--catalog.eshop-product-card-v2--has-props .eshop-product-card-v2__footer {
    padding-bottom: 0.45rem;
}

@media (hover: hover) {
    .shop-page #product-grid .eshop-product-card-v2--catalog:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    }

    .shop-page #product-grid .eshop-product-card-v2--catalog.eshop-product-card-v2--has-props:hover,
    .shop-page #product-grid .eshop-product-card-v2--catalog.eshop-product-card-v2--has-props:focus-within {
        transform: none;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    }

    .shop-page #product-grid .eshop-product-card-v2--catalog.eshop-product-card-v2--has-props:hover .eshop-product-card-v2__props-wrap,
    .shop-page #product-grid .eshop-product-card-v2--catalog.eshop-product-card-v2--has-props:focus-within .eshop-product-card-v2__props-wrap {
        box-shadow: 0 12px 22px -6px rgba(15, 23, 42, 0.14);
    }
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0.8rem 0.9rem 0;
    gap: 0.5rem;
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__media {
    background: #f3f4f6;
    border-radius: 1rem 1rem 0 0;
    aspect-ratio: 1 / 1;
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__img {
    padding: 0.65rem;
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__feature-tags {
    top: 0.625rem;
    inset-inline-start: auto;
    inset-inline-end: 0.625rem;
    align-items: flex-end;
    gap: 0.35rem;
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__feature-tag {
    padding: 0.28rem 0.65rem;
    border-radius: 0.4rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
}

.shop-page #product-grid .eshop-product-card-v2__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem 0;
    min-width: 0;
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__shop {
    padding: 0;
    margin: 0;
    min-height: 0;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__shop:hover .eshop-product-card-v2__shop-name {
    color: #6b5b95;
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__shop-logo {
    width: 1.5rem;
    height: 1.5rem;
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__shop-name {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__title {
    padding: 0;
    margin: 0;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    color: #0f172a;
    -webkit-line-clamp: 2;
    min-height: calc(1.45em * 2);
    flex: 1 0 auto;
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__footer {
    padding: 0.35rem 0 0.65rem;
    margin-top: auto;
    flex-shrink: 0;
    direction: inherit;
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__price {
    margin-left: 0;
    margin-inline-start: auto;
    text-align: end;
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__price-row {
    gap: 0.2rem;
    align-items: baseline;
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__price-sar {
    color: #2563eb;
    opacity: 0.92;
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__price-sar .partner-buy-sar-svg {
    width: 0.82em;
    height: 0.82em;
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__price-value {
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__price-value {
        font-size: 0.9375rem;
    }
}

.shop-page #product-grid .eshop-product-card-v2--catalog .eshop-product-card-v2__fav {
    width: 2rem;
    height: 2rem;
}

.eshop-product-card-v2__shop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem 0.25rem;
    min-height: 0;
}

.eshop-product-card-v2__shop-logo {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.eshop-product-card-v2__shop-logo--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7d6db5 0%, #6b5b95 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.eshop-product-card-v2__shop-name {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eshop-product-card-v2__brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.25rem;
    padding: 0 0.75rem;
    min-width: 0;
}

.eshop-product-card-v2__brand-logo {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    border-radius: 0.2rem;
    flex-shrink: 0;
}

.eshop-product-card-v2__brand-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eshop-product-card-v2__title {
    margin: 0;
    padding: 0 0.75rem;
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
}

.eshop-product-card-v2__title a {
    color: inherit;
    text-decoration: none;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.eshop-product-card-v2__title a:hover {
    color: #6b5b95;
}

/* Product rating stars under the title (product reviews). */
.eshop-product-card-v2__rating {
    padding: 0 0.75rem;
    margin: 0.15rem 0 0;
    min-width: 0;
}

.eshop-product-card-v2--catalog .eshop-product-card-v2__rating {
    padding: 0;
}

.eshop-product-card-v2__rating .eshop-catalog-rating {
    gap: 0.15rem 0.3rem;
}

.eshop-product-card-v2__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.75rem;
    margin-top: auto;
    direction: ltr;
}

.eshop-product-card-v2__fav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 0.5rem;
    flex-shrink: 0;
    transition: color 0.15s ease, background 0.15s ease;
}

.eshop-product-card-v2__fav svg {
    width: 1.25rem;
    height: 1.25rem;
}

.eshop-product-card-v2__fav:hover {
    color: var(--eshop-card-accent);
    background: var(--eshop-card-accent-soft);
}

.eshop-product-card-v2__fav.is-active {
    color: var(--eshop-card-accent);
}

.eshop-product-card-v2__fav.is-active svg path {
    fill: var(--eshop-card-accent);
    stroke: var(--eshop-card-accent);
}

.eshop-product-card-v2__price {
    margin: 0;
    margin-left: auto;
    text-align: right;
    flex: 0 1 auto;
    min-width: 0;
}

.eshop-product-card-v2__price-row {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
    direction: ltr;
}

.eshop-product-card-v2__price-sar {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: #0f172a;
    line-height: 1;
}

.eshop-product-card-v2__price-sar .partner-buy-sar-svg {
    width: 1em;
    height: 1em;
    display: block;
}

.eshop-product-card-v2__price-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

/* Hover-reveal product properties (catalog flags) — overlay, no layout shift */
.eshop-product-card-v2--has-props {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.eshop-product-card-v2__props-wrap {
    position: absolute;
    /* Stretch to the card's outer edges (compensate 1px border on .eshop-product-card-v2). */
    top: 100%;
    left: -1px;
    right: -1px;
    inset-inline: -1px;
    margin: -1px 0 0;
    z-index: 6;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    border: 1px solid transparent;
    border-top: none;
    border-radius: 0 0 1rem 1rem;
    background: #fff;
    background-clip: border-box;
    box-shadow: none;
    pointer-events: none;
    transition:
        max-height 0.28s ease,
        opacity 0.22s ease,
        border-color 0.22s ease,
        padding 0.22s ease,
        box-shadow 0.22s ease;
}

.eshop-product-card-v2__props {
    list-style: none;
    margin: 0;
    padding: 0 0.75rem;
}

.eshop-product-card-v2__props-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: #64748b;
    margin-bottom: 0.45rem;
}

.eshop-product-card-v2__props-item:last-child {
    margin-bottom: 0;
}

.eshop-product-card-v2__props-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    margin-top: 0.05rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
}

.eshop-product-card-v2__props-icon svg {
    width: 0.8125rem;
    height: 0.8125rem;
    display: block;
}

.eshop-product-card-v2__props-icon--feature {
    color: #6A5D8B;
    background: #F3F2F6;
}

.eshop-product-card-v2__props-icon--stock {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.2);
    color: #059669;
}

.eshop-product-card-v2__props-icon--install {
    background: rgba(107, 91, 149, 0.1);
    border-color: rgba(107, 91, 149, 0.18);
    color: #6b5b95;
}

.eshop-product-card-v2__props-icon--fragile {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.22);
    color: #d97706;
}

.eshop-product-card-v2__props-icon--temp {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.2);
    color: #0284c7;
}

.eshop-product-card-v2__props-text {
    flex: 1 1 auto;
    min-width: 0;
}

.eshop-product-card-v2__props-text strong {
    font-weight: 700;
    color: #334155;
}

.eshop-product-card-v2__props-sep {
    color: #94a3b8;
}

.eshop-product-card-v2__props-wrap--truncated:not(.is-expanded) .eshop-product-card-v2__props-item--extra {
    display: none;
}

.eshop-product-card-v2__props-more {
    display: block;
    width: auto;
    margin: 0.35rem 0.75rem 0;
    padding: 0.2rem 0.5rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    border-radius: 0.35rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.eshop-product-card-v2__props-more:hover,
.eshop-product-card-v2__props-more:focus-visible {
    color: var(--eshop-card-accent, #6b5b95);
    background: var(--eshop-card-accent-soft, rgba(107, 91, 149, 0.1));
    outline: none;
}

.eshop-product-card-v2__props-wrap.is-expanded .eshop-product-card-v2__props-more {
    display: none;
}

@media (hover: hover) {
    .eshop-product-card-v2--has-props:hover,
    .eshop-product-card-v2--has-props:focus-within {
        z-index: 24;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .eshop-product-card-v2--has-props:hover .eshop-product-card-v2__props-wrap,
    .eshop-product-card-v2--has-props:focus-within .eshop-product-card-v2__props-wrap {
        max-height: 14rem;
        opacity: 1;
        border-color: rgba(15, 23, 42, 0.08);
        border-top-color: rgba(15, 23, 42, 0.06);
        padding: 0.55rem 0 0.75rem;
        box-shadow: 0 12px 22px -6px rgba(15, 23, 42, 0.14);
        pointer-events: auto;
    }

    .eshop-product-card-v2--has-props:hover .eshop-product-card-v2__props-wrap.is-expanded,
    .eshop-product-card-v2--has-props:focus-within .eshop-product-card-v2__props-wrap.is-expanded {
        max-height: 22rem;
    }
}

@media (hover: none) {
    .eshop-product-card-v2--has-props .eshop-product-card-v2__props-wrap {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        border-color: transparent;
        padding: 0;
        pointer-events: none;
        transition: max-height 0.28s ease, opacity 0.22s ease, border-color 0.22s ease, padding 0.22s ease, box-shadow 0.22s ease;
    }

    .eshop-product-card-v2--has-props.is-props-open {
        z-index: 24;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .eshop-product-card-v2--has-props.is-props-open .eshop-product-card-v2__props-wrap {
        max-height: 14rem;
        opacity: 1;
        border-color: rgba(15, 23, 42, 0.08);
        border-top-color: rgba(15, 23, 42, 0.06);
        padding: 0.55rem 0 0.75rem;
        box-shadow: 0 12px 22px -6px rgba(15, 23, 42, 0.14);
        pointer-events: auto;
    }

    .eshop-product-card-v2--has-props.is-props-open .eshop-product-card-v2__props-wrap.is-expanded {
        max-height: 22rem;
    }

    .eshop-product-card-v2--has-props .eshop-product-card-v2__body,
    .eshop-product-card-v2--has-props .eshop-product-card-v2__shop,
    .eshop-product-card-v2--has-props .eshop-product-card-v2__footer {
        cursor: pointer;
    }

    .eshop-product-card-v2--has-props .eshop-product-card-v2__title a,
    .eshop-product-card-v2--has-props button,
    .eshop-product-card-v2--has-props .eshop-product-card-v2__media {
        cursor: pointer;
    }
}

/* /eshop catalog: props overlay above lower row (no grid reflow) */
@media (hover: hover) {
    .shop-page #product-grid .eshop-product-card-v2--has-props:hover,
    .shop-page #product-grid .eshop-product-card-v2--has-props:focus-within {
        z-index: 24;
    }
}

@media (hover: none) {
    .shop-page #product-grid .eshop-product-card-v2--has-props.is-props-open {
        z-index: 24;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
    }
}

.shop-page #product-grid,
.shop-page #product-grid .eshop-product-grid,
.shop-page fieldset.eshop-products-fieldset,
.shop-page fieldset.eshop-products-fieldset > .eshop-section-fieldset__body {
    overflow: visible;
}

/* Desktop / large screens: keep the product image and the cart summary in view while scrolling. */
@media (min-width: 1024px) {
    .eshop-pdp-media {
        position: sticky;
        top: 6rem;
        align-self: start;
    }
    .eshop-cart-summary {
        position: sticky;
        top: 6rem;
    }
}

/* Desktop / large screens: center partner chips when the row is short, and place
   nav buttons in the layout flow (no overlap / edge fade). Mobile & tablet below
   lg keep the original overlay + mask behavior. */
@media (min-width: 1024px) {
    .retail-partners-slider {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 1rem;
    }

    .retail-partners-slider .retail-partners-nav {
        position: static;
        transform: none;
        opacity: 1;
        width: 2.5rem;
        height: 2.5rem;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.35);
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
    }

    .retail-partners-slider .retail-partners-nav:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.24);
        color: #fff;
    }

    .retail-partners-slider .retail-partners-nav:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.85);
        outline-offset: 2px;
    }

    .retail-partners-slider .retail-partners-nav[disabled] {
        opacity: 0.35;
    }

    .retail-partners-track {
        -webkit-mask-image: none;
        mask-image: none;
        justify-content: safe center;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .retail-partners-nav {
        display: none;
    }
    .retail-partners-track {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* Cart: page background comes from Tailwind gradient on inner wrapper */
.shop-page.eshop-cart-page {
    background-color: transparent;
}

@media (min-width: 1024px) {
    .eshop-cart-summary {
        position: sticky;
        top: calc(var(--client-fixed-header-offset, 120px) + 12px);
        z-index: 20;
        align-self: flex-start;
    }
}

/* Select city page: elevated background + map + searchable city grid */
.retail-select-city-page .retail-select-city-bg {
    background: linear-gradient(
        165deg,
        hsl(263, 28%, 96%) 0%,
        hsl(0, 0%, 99%) 42%,
        hsl(265, 24%, 93%) 100%
    );
}

.retail-select-city-page .retail-select-city-bg::before {
    content: "";
    position: absolute;
    width: 140%;
    height: 55%;
    top: -18%;
    left: -20%;
    background: radial-gradient(
        ellipse 70% 60% at 50% 40%,
        hsl(263, 35%, 42%, 0.09) 0%,
        transparent 72%
    );
}

.retail-select-city-page .retail-select-city-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(hsl(261, 15%, 18%, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.55;
}

.retail-select-city-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.retail-select-city-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.75rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #6b5b95 0%, #574a75 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(107, 91, 149, 0.28);
}

.retail-select-city-header__icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

/* Defeat global typography.css h1/h2 hero sizes on this page */
.retail-select-city-page h1.retail-select-city-header__title {
    margin: 0 0 0.35rem;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #111827;
    font-family: "Poppins", system-ui, sans-serif !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em !important;
}

@media (min-width: 640px) {
    .retail-select-city-page h1.retail-select-city-header__title {
        font-size: 1.25rem !important;
    }
}

.retail-select-city-page h2.retail-select-city-panel__title {
    margin: 0 0 0.25rem;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #111827;
    font-family: "Poppins", system-ui, sans-serif !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 768px) {
    .retail-select-city-page h1.retail-select-city-header__title {
        font-size: 1.125rem !important;
        font-weight: 700 !important;
    }

    .retail-select-city-page h2.retail-select-city-panel__title {
        font-size: 0.8125rem !important;
        font-weight: 600 !important;
    }
}

.retail-select-city-header__title {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    font-family: "Poppins", system-ui, sans-serif;
    line-height: 1.25;
}

@media (min-width: 640px) {
    .retail-select-city-header__title {
        font-size: 1.25rem;
    }
}

.retail-select-city-header__help {
    margin: 0 auto;
    max-width: 34rem;
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    color: #6b7280;
}

.retail-select-city-card {
    border-radius: 1rem;
    border: 1px solid rgba(229, 231, 235, 0.95);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 40px rgba(107, 91, 149, 0.1);
    backdrop-filter: blur(8px);
    padding: 1rem;
}

@media (min-width: 640px) {
    .retail-select-city-card {
        padding: 1.25rem 1.35rem;
    }
}

.retail-select-city-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .retail-select-city-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 1.35rem;
        align-items: start;
    }

    .retail-select-city-layout--list-only {
        grid-template-columns: 1fr;
        max-width: 36rem;
        margin-inline: auto;
    }
}

.retail-select-city-panel__title {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    font-family: "Poppins", system-ui, sans-serif;
}

.retail-select-city-panel__hint {
    margin: 0 0 0.65rem;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    line-height: 1.45;
    color: #6b7280;
}

.retail-select-city-map {
    width: 100%;
    height: min(52vw, 280px);
    min-height: 220px;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

@media (min-width: 900px) {
    .retail-select-city-map {
        height: 320px;
    }
}

.retail-select-city-map .mapboxgl-map {
    min-height: inherit;
}

.retail-select-city-map-status {
    margin-top: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    color: #6b7280;
    min-height: 2.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.retail-select-city-map-status.is-matched {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #5b21b6;
}

.retail-select-city-map-status.is-error {
    background: #f6f3fc;
    border-color: #d9d2ea;
    color: var(--eshop-brand-hover);
}

.retail-select-city-map-status__city {
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    color: inherit;
}

/* Modal on select-city page — keep confirm title readable, not hero-sized */
.retail-select-city-page #city-change-confirm-modal h3 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
}

.retail-select-city-map-continue {
    margin-top: 0.65rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background: #6b5b95;
    color: #fff;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    font-family: "DM Sans", system-ui, sans-serif !important;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.retail-select-city-map-continue:hover:not(:disabled) {
    background: #574a75;
}

.retail-select-city-map-continue:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.retail-select-city-map-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px dashed #d1d5db;
    background: #f9fafb;
    font-size: 0.8125rem;
    color: #6b7280;
    text-align: center;
}

.retail-select-city-search-wrap {
    position: relative;
    margin-bottom: 0.75rem;
}

.retail-select-city-search-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 0.75rem;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.retail-select-city-search {
    width: 100%;
    height: 2.5rem;
    padding-inline: 2.25rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 0.8125rem;
    color: #111827;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.retail-select-city-search:focus {
    border-color: #6b5b95;
    box-shadow: 0 0 0 3px rgba(107, 91, 149, 0.15);
}

.retail-select-city-picker-root {
    max-height: min(52vh, 360px);
    overflow-y: auto;
    padding-inline-end: 0.15rem;
}

.retail-select-city-loading,
.retail-select-city-empty {
    text-align: center;
    font-size: 0.8125rem;
    color: #6b7280;
    padding: 1rem 0.5rem;
}

.retail-city-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .retail-city-grid {
        gap: 0.6rem;
    }
}

button.retail-city-choice,
a.retail-city-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.5rem;
    font-family: "DM Sans", system-ui, sans-serif !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    line-height: 1.3;
    text-align: center;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    text-decoration: none;
}

button.retail-city-choice:hover,
a.retail-city-choice:hover {
    border-color: #c4b5fd;
    color: #6b5b95;
    background: #faf5ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(107, 91, 149, 0.12);
}

button.retail-city-choice.is-active,
a.retail-city-choice.is-active {
    border-color: #6b5b95;
    background: #6b5b95;
    color: #fff;
}

button.retail-city-choice.is-current,
a.retail-city-choice.is-current {
    box-shadow: inset 0 0 0 1px rgba(107, 91, 149, 0.35);
}

button.retail-city-choice:focus-visible,
a.retail-city-choice:focus-visible {
    outline: 2px solid #6b5b95;
    outline-offset: 2px;
}

.retail-city-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Legacy anchor-only list (if injected elsewhere) */
a.retail-city-choice:not(button) {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    background: #6b5b95;
    box-shadow: 0 1px 3px rgba(39, 32, 66, 0.2);
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

a.retail-city-choice:not(button):hover {
    background: #7d6ba8;
    box-shadow: 0 4px 14px rgba(107, 91, 149, 0.35);
    transform: translateY(-1px);
}

a.retail-city-choice:not(button):focus-visible {
    outline: 2px solid #6b5b95;
    outline-offset: 3px;
}

/* --- Shop catalog product cards: stable image frame + readable size ---
   Global rules (e.g. newhome.css `img { height: auto; }`) can fight `h-full` on card
   images and collapse the media area into thin strips. Grid items also need
   `min-width: 0` so columns don’t overflow oddly on narrow tracks. */

.shop-page #product-grid .grid > .group {
    min-width: 0;
}

.shop-page #product-grid .group > a:first-of-type {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 5rem;
    overflow: hidden;
    background-color: hsl(0, 0%, 94%);
}

.shop-page #product-grid .group > a:first-of-type > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.shop-page #product-grid .group > a:first-of-type > div:not(.absolute) {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Return request UI (My Order) --- */

.eshop-return-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.625rem;
    border-width: 1px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.eshop-return-banner__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.eshop-return-banner__text {
    margin: 0;
    font-family: "DM Sans", system-ui, sans-serif;
}

.eshop-return-banner--pending {
    border-color: rgb(251 191 36 / 0.45);
    background: rgb(255 251 235);
    color: rgb(146 64 14);
}

.eshop-return-banner--success {
    border-color: rgb(16 185 129 / 0.35);
    background: rgb(236 253 245);
    color: rgb(6 95 70);
}

.eshop-return-banner--refunded {
    border-color: rgb(251 191 36 / 0.45);
    background: rgb(255 251 235);
    color: rgb(146 64 14);
}

.eshop-return-banner--warning {
    border-color: rgb(251 191 36 / 0.4);
    background: rgb(255 251 235);
    color: rgb(120 53 15);
}

.eshop-return-banner--danger {
    border-color: rgb(248 113 113 / 0.45);
    background: rgb(254 242 242);
    color: rgb(153 27 27);
}

/* Return modal — explicit colors (avoids --card: transparent from theme) */
.eshop-return-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1.25rem, env(safe-area-inset-top, 0px)) 1rem max(1.25rem, env(safe-area-inset-bottom, 0px));
    isolation: isolate;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 640px) {
    .eshop-return-modal {
        align-items: center;
        padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.75rem max(0.75rem, env(safe-area-inset-bottom, 0px));
    }
}

html.eshop-return-modal-open,
html.eshop-return-modal-open body {
    overflow: hidden !important;
}

.eshop-return-modal.hidden {
    display: none !important;
}

.eshop-return-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(15 23 42 / 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.eshop-return-modal--open .eshop-return-modal__backdrop {
    opacity: 1;
}

.eshop-return-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 32rem;
    max-height: min(calc(100dvh - 2.5rem), 640px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #ece8f5;
    border-radius: 1.25rem;
    box-shadow:
        0 24px 64px -20px rgb(55 42 88 / 0.45),
        0 8px 24px -12px rgb(15 23 42 / 0.25);
    padding: 0;
    opacity: 0;
    transform: scale(0.94) translateY(14px);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    color-scheme: light;
}

@media (max-width: 640px) {
    .eshop-return-modal__panel {
        border-radius: 1.25rem;
        max-height: min(calc(100dvh - 1.5rem), 640px);
        padding-bottom: 0;
    }
}

.eshop-return-modal--open .eshop-return-modal__panel {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.eshop-return-modal__hero {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem 1.5rem 1.25rem;
    background: linear-gradient(135deg, #f6f3fc 0%, #efeafb 100%);
    border-bottom: 1px solid #e7e0f5;
    flex-shrink: 0;
}

.eshop-return-modal__icon-wrap {
    flex-shrink: 0;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: 0 0 0 5px rgb(107 91 149 / 0.10), 0 4px 12px rgb(107 91 149 / 0.18);
    color: #6b5b95;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eshop-return-modal__icon {
    width: 1.55rem;
    height: 1.55rem;
    color: #6b5b95;
}

.eshop-return-modal__title-block {
    flex: 1;
    min-width: 0;
    padding-top: 0.125rem;
}

.eshop-return-modal__title {
    margin: 0;
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    color: #2e2350;
    letter-spacing: -0.01em;
}

.eshop-return-modal__intro {
    margin: 0.375rem 0 0;
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #475569;
}

.eshop-return-modal__policy {
    margin: 0.5rem 0 0;
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #b45309;
    font-weight: 600;
}

.eshop-return-modal__policy-bar {
    flex-shrink: 0;
    padding: 0.65rem 1.5rem 0.25rem;
    text-align: center;
    border-top: 1px solid #f1edf8;
    background: #faf9fd;
}

.eshop-return-modal__policy-bar .eshop-checkout-return-disclosure {
    margin: 0;
}

.eshop-return-modal__policy-bar .eshop-checkout-return-disclosure__hint {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #64748b;
}

.eshop-return-modal__policy-bar .eshop-checkout-return-disclosure__link-wrap {
    margin: 0;
}

.eshop-return-modal__policy-bar .eshop-checkout-return-disclosure__link {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: #6a5d8b;
    font: inherit;
    font-family: "IBM Plex Sans Arabic", "Open Sans", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.eshop-return-modal__policy-bar .eshop-checkout-return-disclosure__link:hover {
    color: #55486f;
}

.eshop-return-modal__policy-link {
    margin: 0.35rem 0 0.75rem;
}

.eshop-return-modal__policy-link .eshop-checkout-return-disclosure {
    margin: 0;
}

.eshop-return-modal__policy-link .eshop-checkout-return-disclosure__link-wrap {
    margin: 0;
}

.eshop-return-modal__policy-link .eshop-checkout-return-disclosure__link {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: #6a5d8b;
    font: inherit;
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.eshop-return-modal__policy-link .eshop-checkout-return-disclosure__link:hover {
    color: #55486f;
}

.eshop-return-modal__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    margin: -0.25rem;
    border: none;
    background: #ffffff;
    border-radius: 9999px;
    color: #6b5b95;
    cursor: pointer;
    box-shadow: 0 0 0 1px #e7e0f5;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.eshop-return-modal__close:hover {
    background: #6b5b95;
    color: #ffffff;
    transform: rotate(90deg);
}

.eshop-return-modal__form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    background: #ffffff;
}

.eshop-return-modal__panel--stepper .eshop-return-modal__hero {
    padding: 1.25rem 1.75rem 1.1rem;
}

.eshop-return-modal__panel--stepper .eshop-return-modal__title {
    font-size: 1.25rem !important;
}

.eshop-return-modal__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 1.25rem 1.5rem 0.5rem;
    scrollbar-gutter: stable;
}

.eshop-return-modal__panel--stepper .eshop-return-modal__scroll,
.eshop-return-modal__panel--stepper .rr-modal-body {
    padding: 0;
    overflow: hidden;
}

.eshop-return-modal__scroll::-webkit-scrollbar {
    width: 8px;
}

.eshop-return-modal__scroll::-webkit-scrollbar-track {
    background: transparent;
}

.eshop-return-modal__scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
    border: 2px solid #ffffff;
}

.eshop-return-modal__scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.eshop-return-modal .fin-refund-category {
    margin: 0 0 1.25rem;
}

.eshop-return-modal .fin-refund-category__check {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.05rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    background: #fff;
}

.eshop-return-modal .fin-refund-category__check:has(.fin-refund-category__checkbox:checked) {
    border-color: #6b5b95;
    background: linear-gradient(135deg, #f6f3fc 0%, #fff 100%);
    box-shadow: 0 0 0 1px color-mix(in srgb, #6b5b95 18%, transparent);
}

.eshop-return-modal .fin-refund-category__checkbox {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0.15rem 0 0;
    accent-color: #6b5b95;
    cursor: pointer;
}

.eshop-return-modal .fin-refund-category__heading {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #2e2350;
}

.eshop-return-modal .fin-refund-category__options {
    display: grid;
    gap: 0.65rem;
}

.eshop-return-modal .fin-refund-category__option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    background: #fff;
}

.eshop-return-modal .fin-refund-category__option:has(input:checked) {
    border-color: #6b5b95;
    background: linear-gradient(135deg, #f6f3fc 0%, #fff 100%);
    box-shadow: 0 0 0 1px color-mix(in srgb, #6b5b95 18%, transparent);
}

.eshop-return-modal .fin-refund-category__option input[type="radio"] {
    flex: 0 0 auto;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0.2rem 0 0;
    accent-color: #6b5b95;
    cursor: pointer;
}

.eshop-return-modal .fin-refund-category__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1 1 auto;
}

.eshop-return-modal .fin-refund-category__title {
    font-weight: 700;
    font-size: 1.0625rem;
    line-height: 1.35;
    color: #2e2350;
}

.eshop-return-modal .fin-refund-category__hint {
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #64748b;
}

.eshop-return-modal__field {
    margin-bottom: 1.25rem;
}

.eshop-return-modal__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.eshop-return-modal__label {
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
}

.eshop-return-modal__counter {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #64748b;
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    background: #f1f5f9;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.eshop-return-modal__counter--warn {
    color: rgb(180 83 9);
    background: rgb(254 243 199);
    font-weight: 700;
}

.eshop-return-modal__counter--ok {
    color: rgb(5 120 80);
    background: rgb(220 252 231);
}

.eshop-return-modal__textarea {
    display: block;
    width: 100%;
    min-height: 8.5rem;
    padding: 0.85rem 1rem;
    font-family: "IBM Plex Sans Arabic", "Open Sans", system-ui, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #0f172a;
    background: #fbfaff;
    border: 1.5px solid #ddd4ee;
    border-radius: 0.85rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    box-sizing: border-box;
}

.eshop-return-modal__textarea::placeholder {
    color: #94a3b8;
    font-size: 0.9375rem;
}

.eshop-return-modal__textarea:focus {
    border-color: #6b5b95;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgb(107 91 149 / 0.12);
}

.eshop-return-modal__select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #0f172a;
    background: #fbfaff;
    border: 1.5px solid #ddd4ee;
    border-radius: 0.85rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.eshop-return-modal__select:focus {
    border-color: #6b5b95;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgb(107 91 149 / 0.12);
}

.eshop-return-upload {
    margin: 0 0 0.25rem;
}

.eshop-return-upload__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.eshop-return-upload__label {
    font-family: "Poppins", "IBM Plex Sans Arabic", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.eshop-return-upload__count {
    font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #6a5d8b;
    background: #f3f0f8;
    border: 1px solid #e1dfe8;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
}

.eshop-return-upload--has-files .eshop-return-upload__count {
    color: #5a4b80;
    background: #efeafb;
    border-color: #d8d0ea;
}

.eshop-return-upload__drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 8.5rem;
    padding: 1.15rem 1rem;
    border: 1.5px dashed #d4cae8;
    border-radius: 0.95rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(125, 109, 181, 0.08), transparent 45%),
        linear-gradient(180deg, #fbfaff 0%, #f6f3fc 100%);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    text-align: center;
}

.eshop-return-upload__drop:hover,
.eshop-return-upload__drop.is-dragover {
    border-color: #6b5b95;
    background:
        radial-gradient(circle at 20% 20%, rgba(125, 109, 181, 0.14), transparent 45%),
        linear-gradient(180deg, #ffffff 0%, #f3effa 100%);
    box-shadow: 0 0 0 3px rgba(107, 91, 149, 0.12);
}

.eshop-return-upload__drop:focus-within {
    outline: none;
    border-color: #6b5b95;
    box-shadow: 0 0 0 3px rgba(107, 91, 149, 0.14);
}

.eshop-return-upload__input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
}

.eshop-return-upload__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.85rem;
    background: #fff;
    color: #6b5b95;
    border: 1px solid #e7e0f5;
    box-shadow: 0 4px 12px rgba(107, 91, 149, 0.12);
    margin-bottom: 0.15rem;
}

.eshop-return-upload__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.eshop-return-upload__title {
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #2e2350;
    line-height: 1.35;
}

.eshop-return-upload__hint {
    font-family: "IBM Plex Sans Arabic", "Open Sans", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    line-height: 1.55;
}

.eshop-return-upload__preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.eshop-return-upload__preview[hidden] {
    display: none !important;
}

.eshop-return-upload__thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e1dfe8;
    background: #f8f6fc;
    box-shadow: 0 2px 8px rgba(55, 42, 88, 0.08);
}

.eshop-return-upload__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eshop-return-upload__remove {
    position: absolute;
    top: 0.3rem;
    inset-inline-end: 0.3rem;
    width: 1.35rem;
    height: 1.35rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.12s ease, transform 0.12s ease;
}

.eshop-return-upload__remove:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.eshop-return-modal__field:has(.eshop-return-upload) {
    margin-bottom: 0.35rem;
}

.eshop-return-modal__field .fin-ord-filter-select-wrap.eshop-cselect,
.eshop-return-modal__field .eshop-cselect--fin {
    width: 100%;
    display: block;
    position: relative;
}

.eshop-return-modal__field .eshop-cselect--fin.is-open {
    z-index: 2;
}

.eshop-return-modal__field .eshop-cselect--fin .eshop-cselect__trigger {
    width: 100%;
    min-height: 2.75rem;
    border-radius: 0.85rem;
    border: 1.5px solid #ddd4ee;
    background: #fbfaff;
    font-size: 0.9rem;
}

.eshop-return-modal__field .eshop-cselect--fin .eshop-cselect__panel {
    max-height: min(22.5rem, 65vh);
}

.eshop-return-modal__field .eshop-cselect--fin .eshop-cselect__option {
    padding: 0.65rem 1rem;
    min-height: 2.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.eshop-return-modal__field .eshop-cselect--fin.is-open .eshop-cselect__trigger,
.eshop-return-modal__field .eshop-cselect--fin .eshop-cselect__trigger:focus-visible {
    border-color: #6b5b95;
    background: #fff;
    box-shadow: 0 0 0 3px rgb(107 91 149 / 0.12);
}

/* Viewport-fixed list — keeps modal scroll/layout stable when open */
.eshop-return-modal__field .eshop-cselect--fin .eshop-cselect__panel.is-fixed-panel {
    position: fixed !important;
    inset-inline: unset !important;
    top: auto !important;
    z-index: 100600 !important;
    min-width: 0 !important;
    max-width: calc(100vw - 2rem) !important;
    border-radius: 0.85rem;
    border: 1.5px solid #ddd4ee;
    box-shadow: 0 14px 36px rgb(55 42 88 / 0.2);
}

.eshop-cselect__group {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eshop-cselect__group + .eshop-cselect__group {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid #ebe8f2;
}

.eshop-cselect__group-label {
    padding: 0.45rem 0.75rem 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6a5d8b;
}

.eshop-cselect__group-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eshop-return-reason-other {
    margin-top: 0.85rem;
}

.eshop-return-reason-other[hidden] {
    display: none !important;
}

.eshop-return-reason-other__label {
    margin-bottom: 0.35rem;
}

.eshop-return-modal__textarea:invalid:not(:placeholder-shown) {
    border-color: rgb(248 113 113);
}

.eshop-return-modal__hint {
    margin: 0.55rem 0 0;
    font-family: "IBM Plex Sans Arabic", "Open Sans", system-ui, sans-serif;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #475569;
}

.eshop-return-modal__footer {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 1rem 1.5rem 1.25rem;
    margin-top: 0;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

[dir="rtl"] .eshop-return-modal__footer {
    flex-direction: row-reverse;
}

.eshop-return-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.5rem 1.125rem;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.65rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, background-color 0.15s ease, box-shadow 0.2s ease, transform 0.12s ease;
    flex: 0 0 auto;
    min-width: 6.5rem;
    box-sizing: border-box;
}

.eshop-return-modal__btn:active:not(:disabled) {
    transform: translateY(1px);
}

.eshop-return-modal__btn--secondary {
    background: #ffffff;
    color: #475569;
    border: 1.5px solid #d9d2ea;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.eshop-return-modal__btn--secondary:hover {
    background: #f6f3fc;
    border-color: #b9add8;
    color: #2e2350;
}

.eshop-return-modal__btn--primary {
    background: linear-gradient(135deg, #7d6db5 0%, #6b5b95 50%, #5a4b80 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px -4px rgb(107 91 149 / 0.45);
}

.eshop-return-modal__btn--primary:hover:not(:disabled) {
    box-shadow: 0 10px 22px -6px rgb(107 91 149 / 0.6);
    transform: translateY(-1px);
}

.eshop-return-modal__btn--primary:disabled,
.eshop-return-modal__btn--loading {
    opacity: 0.65;
    cursor: not-allowed;
}

.eshop-return-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #6b5b95;
    background: rgb(107 91 149 / 0.08);
    border: 2px solid rgb(107 91 149 / 0.22);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.eshop-return-open-btn:hover {
    background: rgb(107 91 149 / 0.14);
    border-color: rgb(107 91 149 / 0.38);
}

.eshop-return-open-btn__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.fin-eshop-delivery-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    gap: 0.5rem;
}

.fin-eshop-delivery-photos__item {
    display: block;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--muted));
}

.fin-eshop-delivery-photos__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fin-eshop-delivery-upload__preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.fin-eshop-delivery-upload__preview[hidden] {
    display: none !important;
}

.fin-eshop-delivery-upload__thumb {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
}

.fin-eshop-delivery-upload__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stores directory: auto-fill grid so few stores still look intentional (no dead columns). */
.eshop-store-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem;}
@media (min-width:1024px){.eshop-store-grid{grid-template-columns:repeat(auto-fill,minmax(300px,360px));}}

/* ── Checkout: delivery map + address ── */
/* ── Checkout: fieldset cards (legend on border — same pattern as client/financial/orders) ── */
.shop-page fieldset.eshop-checkout-fieldset {
    border: 1px solid #e1dfe8;
    border-radius: 14px;
    padding: 1.1rem 1.15rem 1.15rem;
    margin: 0 0 1.25rem;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(55, 42, 88, 0.04),
        0 8px 24px rgba(55, 42, 88, 0.08);
}

.shop-page fieldset.eshop-checkout-fieldset > legend.eshop-checkout-fieldset__legend {
    width: auto;
    max-width: none;
    padding: 0 0.5rem;
    margin-inline-start: 0.5rem;
    float: none;
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: #372a58;
}

.shop-page .eshop-checkout-legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}

.shop-page fieldset.eshop-checkout-fieldset > .finance-platform-settings-card__body {
    margin-top: 0.65rem;
    padding: 0;
}

.shop-page .eshop-order-summary-card .eshop-summary-line__price .fin-currency-amount,
.shop-page .eshop-order-summary-card .eshop-summary-total-row .fin-currency-amount {
    font-weight: 700;
    color: #6b5b95;
}

.shop-page .eshop-order-summary-card .eshop-summary-total-row .fin-currency-amount {
    color: #372a58;
}

.eshop-section-card {
    background: #fff;
    border: 2px solid hsl(263 35% 42% / 0.14);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgb(55 42 88 / 0.07);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.eshop-section-card__body {
    padding: 1.25rem 1.375rem;
}

.eshop-order-summary-card .eshop-summary-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-height: 14rem;
    overflow-y: auto;
}

.eshop-order-summary-card .eshop-summary-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.eshop-order-summary-card .eshop-summary-line__title {
    flex: 1;
    min-width: 0;
    color: #3d3552;
    font-weight: 500;
}

.eshop-order-summary-card .eshop-summary-line__qty {
    color: #8a849c;
    font-weight: 600;
    white-space: nowrap;
}

.eshop-order-summary-card .eshop-summary-line__price {
    flex-shrink: 0;
    font-weight: 700;
    color: #6b5b95;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.eshop-order-summary-card .eshop-summary-totals {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid #ece8f2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.eshop-order-summary-card .eshop-summary-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.eshop-order-summary-card .eshop-summary-grand {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.625rem;
    margin-top: 0.25rem;
    border-top: 1px dashed #e4dfea;
}

.eshop-order-summary-card .eshop-summary-footnotes {
    margin-top: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.eshop-order-summary-card .eshop-summary-footnote {
    margin: 0;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: #8a849c;
}

.checkout-delivery-card,
.checkout-recipient-card {
    /* Outer chrome comes from fieldset.eshop-checkout-fieldset */
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
    overflow: visible;
}

.checkout-delivery-card__inner,
.checkout-recipient-card__inner {
    padding: 0;
}

.checkout-delivery-title,
.checkout-recipient-title {
    margin: 0;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #3d3552;
}

.checkout-delivery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkout-delivery-stack {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.checkout-address-panel {
    background: #faf9fc;
    border: 1px solid #ece8f2;
    border-radius: 0.875rem;
    padding: 1rem 1.125rem;
}

.checkout-address-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #6b5b95;
    background: #f0ecf8;
    border-radius: 9999px;
    padding: 0.25rem 0.7rem;
    margin-bottom: 0.625rem;
}

.checkout-address-line1 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: #2f2940;
}

.checkout-address-line2 {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #6b6580;
}

.checkout-address-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.875rem 0 0;
    padding: 0.875rem 0 0;
    border-top: 1px solid #ece8f2;
}

.checkout-address-meta__item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    min-width: 0;
}

.checkout-address-meta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    background: #f0ecf8;
    color: #6b5b95;
    flex-shrink: 0;
}

.checkout-address-meta__icon svg {
    width: 0.9375rem;
    height: 0.9375rem;
}

.checkout-address-meta__content {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem 0.375rem;
    min-width: 0;
}

.checkout-address-meta__label {
    margin: 0;
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #8a849c;
}

.checkout-address-meta__label::after {
    content: ":";
}

.checkout-address-meta__value {
    margin: 0;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3d3552;
    line-height: 1.35;
}

@media (min-width: 640px) {
    .checkout-address-meta {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        padding-top: 1rem;
    }

    .checkout-address-meta__item {
        flex: 1 1 0;
        align-items: flex-start;
        gap: 0.625rem;
        padding: 0 1.25rem;
        border-inline-end: 1px solid #e4dfea;
    }

    .checkout-address-meta__item:first-child {
        padding-inline-start: 0;
    }

    .checkout-address-meta__item:last-child {
        padding-inline-end: 0;
        border-inline-end: none;
    }

    .checkout-address-meta__icon {
        width: 2rem;
        height: 2rem;
        border-radius: 0.625rem;
        margin-top: 0.05rem;
    }

    .checkout-address-meta__icon svg {
        width: 1rem;
        height: 1rem;
    }

    .checkout-address-meta__content {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 0.3rem;
    }

    .checkout-address-meta__label {
        font-size: 0.6875rem;
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    .checkout-address-meta__label::after {
        content: none;
    }

    .checkout-address-meta__value {
        font-size: 0.9375rem;
    }
}

.checkout-delivery-map-wrap {
    position: relative;
    min-height: 10.5rem;
    height: 10.5rem;
    border-radius: 0.875rem;
    overflow: hidden;
    border: 1px solid #e8e4f0;
    background: #f3f1f8;
}

.checkout-view-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #dcd6ea;
    background: linear-gradient(180deg, #fff 0%, #f8f6fc 100%);
    color: #6b5b95;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.checkout-view-map-btn:hover {
    border-color: #6b5b95;
    box-shadow: 0 4px 14px rgb(107 91 149 / 0.14);
}

.checkout-view-map-btn:active {
    transform: translateY(1px);
}

.checkout-view-map-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.625rem;
    background: #f0ecf8;
}

.checkout-view-map-btn__icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.checkout-map-modal {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

html.checkout-map-modal-open,
html.checkout-map-modal-open body {
    overflow: hidden;
}

.checkout-map-modal.hidden {
    display: none !important;
}

.checkout-map-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(15 23 42 / 0.55);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkout-map-modal--open .checkout-map-modal__backdrop {
    opacity: 1;
}

.checkout-map-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 42rem);
    max-height: min(90vh, 36rem);
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 48px rgb(15 23 42 / 0.22);
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.checkout-map-modal--open .checkout-map-modal__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.checkout-map-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid #ece8f2;
}

.checkout-map-modal__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #3d3552;
}

.checkout-map-modal__hint {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #6b6580;
}

.checkout-map-modal__close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.5rem;
    background: #f3f1f8;
    color: #5c5278;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.checkout-map-modal__close:hover {
    background: #ece8f2;
}

.checkout-map-modal__map-wrap {
    position: relative;
    min-height: 18rem;
    height: min(58vh, 22rem);
    background: #f3f1f8;
}

.checkout-map-modal__map,
#checkout-map-modal-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#checkout-map-modal-map .mapboxgl-map,
#checkout-map-modal-map .mapboxgl-canvas-container {
    width: 100% !important;
    height: 100% !important;
}

.checkout-map-modal__fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.checkout-manage-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b5b95;
    white-space: nowrap;
    text-decoration: none;
}

.checkout-manage-link:hover {
    text-decoration: underline;
}

/* Checkout recipient */
.checkout-recipient-hint {
    margin: 0.35rem 0 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #6b6580;
}

.checkout-receive-mode {
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 0.875rem;
    border: 1px solid #e2dfec;
    background: #f3f1f8;
    margin-bottom: 1rem;
}

.checkout-receive-option {
    flex: 1 1 0;
    cursor: pointer;
    margin: 0;
    min-width: 0;
}

.checkout-receive-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.checkout-receive-option span {
    display: block;
    text-align: center;
    padding: 0.7rem 0.65rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #5c5278;
    background: #fff;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-receive-option--active span,
.checkout-receive-option:has(input:checked) span {
    background: #6b5b95;
    color: #fff;
    border-color: #6b5b95;
    box-shadow: 0 2px 8px rgb(107 91 149 / 0.22);
}

.checkout-field-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b6580;
}

.checkout-field-input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid #e2dfec;
    padding: 0.7rem 0.85rem;
    font-size: 0.9375rem;
    color: #2f2940;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    box-sizing: border-box;
}

.checkout-field-input:focus {
    border-color: #6b5b95;
    box-shadow: 0 0 0 3px rgb(107 91 149 / 0.14);
}

.checkout-field-readonly,
.checkout-field-readonly.aq-phone-plain-input {
    background: #f8f7fb !important;
    color: #3d3552 !important;
    cursor: default;
}

.checkout-field-readonly:focus,
.checkout-field-readonly.aq-phone-plain-input:focus {
    box-shadow: none;
    border-color: #e2dfec;
}

.checkout-recipient-fields .aq-phone-outer-field.checkout-phone-readonly,
.checkout-recipient-fields .aq-phone-outer-field:has(.checkout-field-readonly) {
    background: #f8f7fb;
    border-color: #e2dfec;
}

.checkout-recipient-fields .aq-phone-outer-field.checkout-phone-readonly .aq-phone-plain-input,
.checkout-recipient-fields .aq-phone-outer-field:has(.checkout-field-readonly) .aq-phone-plain-input {
    color: #3d3552;
}

.checkout-recipient-fields .checkout-phone-readonly .aq-phone-field,
.checkout-recipient-fields .aq-phone-outer-field.checkout-phone-readonly .aq-phone-field {
    pointer-events: none;
}

.checkout-recipient-fields .checkout-phone-readonly .aq-phone-local,
.checkout-recipient-fields .aq-phone-outer-field.checkout-phone-readonly .aq-phone-local {
    background: transparent;
    cursor: default;
}

/* Cart quantity stepper — outer border + RTL-safe internal dividers (no border-x/-s utilities are built). */
.eshop-qty-stepper{display:inline-flex;align-items:center;border:1px solid hsl(0 0% 88%);border-radius:0.5rem;overflow:hidden;background:#fff;}
.eshop-qty-stepper > * + *{border-inline-start:1px solid hsl(0 0% 88%);}

/* ── Order rating modal & stars ── */
/* Above #mainHeader (z-index 99997) and notification bell (~100050). */
.eshop-rating-modal {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
html.eshop-rating-modal-open,
html.eshop-rating-modal-open body {
    overflow: hidden;
}
.eshop-rating-modal.hidden { display: none !important; }
.eshop-rating-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(55 42 88 / 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.eshop-rating-modal--open .eshop-rating-modal__backdrop { opacity: 1; }
.eshop-rating-modal__panel {
    position: relative;
    width: min(100%, 44rem);
    max-height: min(94vh, 52rem);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e1dfe8;
    border-radius: 1rem;
    box-shadow:
        0 1px 2px rgba(55, 42, 88, 0.04),
        0 24px 48px rgba(55, 42, 88, 0.18);
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
    overflow: hidden;
}
.eshop-rating-modal--open .eshop-rating-modal__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.eshop-rating-modal__hero {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 1.15rem 0.75rem;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(234, 179, 8, 0.12) 0%, transparent 45%),
        linear-gradient(180deg, #f7f5fb 0%, #fff 72%);
    border-bottom: 1px solid #efeaf6;
}
.eshop-rating-modal__hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}
.eshop-rating-modal__title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    min-width: 0;
    flex: 1 1 auto;
}
.eshop-rating-modal__icon-wrap {
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #fef3c7 0%, #fde68a 100%);
    color: #a16207;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
    flex: 0 0 auto;
}
.eshop-rating-modal__icon { width: 1rem; height: 1rem; }
.eshop-rating-modal__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #2f2548;
}
.eshop-rating-modal__progress {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(106, 93, 139, 0.1);
    border: 1px solid rgba(106, 93, 139, 0.12);
    font-size: 0.72rem;
    font-weight: 700;
    color: #5b4d7a;
    white-space: nowrap;
}
.eshop-rating-modal__progress-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #ca8a04;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.22);
    flex: 0 0 auto;
}
.eshop-rating-modal__close {
    border: 0;
    background: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    border: 1px solid #e8e4ef;
    font-size: 1.25rem;
    line-height: 1;
    color: #98a2b3;
    cursor: pointer;
    flex: 0 0 auto;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.eshop-rating-modal__close:hover {
    color: #372a58;
    background: #f4f1f8;
    border-color: #d9d2e6;
}
.eshop-rating-modal__form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.eshop-rating-modal__scroll { padding: 0.75rem 1.15rem 0.35rem; overflow: auto; }
.eshop-rating-modal__steps {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
}
.eshop-rating-modal__step {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #98a2b3;
}
.eshop-rating-modal__step--active { color: #6a5d8b; }
.eshop-rating-modal__step--done { color: #2f8f63; }
.eshop-rating-modal__step-num {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    background: #f1eff6;
    color: inherit;
}
.eshop-rating-modal__step--active .eshop-rating-modal__step-num {
    background: #6a5d8b;
    color: #fff;
}
.eshop-rating-modal__step--done .eshop-rating-modal__step-num {
    background: rgba(73, 160, 120, 0.18);
    color: #2f8f63;
}
.eshop-rating-modal__step-line {
    flex: 1 1 1.5rem;
    min-width: 1rem;
    height: 1px;
    background: #e1dfe8;
}
.eshop-rating-modal__field { margin-bottom: 0.65rem; }
.eshop-rating-modal__field--stars { margin-bottom: 0.65rem; }
.eshop-rating-modal__label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #667085;
}
.eshop-rating-modal__textarea {
    width: 100%;
    min-height: 5rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e1dfe8;
    border-radius: 0.75rem;
    background: #fff;
    font: inherit;
    color: #372a58;
    resize: vertical;
}
.eshop-rating-modal__textarea--compact {
    min-height: 3.25rem;
    padding: 0.55rem 0.7rem;
}
.eshop-rating-modal__textarea:focus {
    outline: 2px solid rgb(106 93 139 / 0.28);
    border-color: #6a5d8b;
}
.eshop-rating-modal__hint { margin: 0.35rem 0 0; font-size: 0.75rem; color: #98a2b3; line-height: 1.4; }
.eshop-rating-modal__section { margin-bottom: 0.85rem; }
.eshop-rating-modal__section-head { margin-bottom: 0.45rem; }
.eshop-rating-modal__section-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #372a58;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.eshop-rating-modal__section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: #5b3d9a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}
.eshop-rating-modal__section-sub {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #667085;
}
.eshop-rating-modal__section--products {
    margin-bottom: 0.25rem;
}
.eshop-rating-modal__hint--section { margin: 0.35rem 0 0; }
.eshop-rating-modal__shop-card,
.eshop-rating-modal__product-row {
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    background: #f8f7fb;
    border: 1px solid #e1dfe8;
}
.eshop-rating-modal__product-row .eshop-rating-modal__field {
    margin-top: 0.5rem;
}
.eshop-rating-modal__product-row .eshop-rating-modal__field--stars {
    margin-top: 0;
}
.eshop-rating-modal__product-list { display: flex; flex-direction: column; gap: 0.55rem; }
.eshop-rating-modal__product-meta {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.4rem;
}
.eshop-rating-modal__product-index {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 0.4rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid #e1dfe8;
    color: #6a5d8b;
    font-size: 0.72rem;
    font-weight: 800;
}
.eshop-rating-modal__product-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #372a58;
    line-height: 1.4;
}
.fin-eshop-retail-panel__rating-block,
.fin-eshop-retail-panel__rating-products { margin-top: 0.75rem; }
.fin-eshop-retail-panel__rating-label {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}
.fin-eshop-retail-panel__rating-product-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.fin-eshop-retail-panel__rating-product-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}
.fin-eshop-retail-panel__rating-product-row:first-child { padding-top: 0; border-top: none; }
.fin-eshop-retail-panel__rating-product-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}
.eshop-rating-modal__footer {
    display: flex;
    gap: 0.65rem;
    padding: 0.9rem 1.25rem 1.15rem;
    border-top: 1px solid #f1eff6;
    background: #fff;
}
.eshop-rating-modal__btn {
    flex: 1;
    min-height: 2.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.eshop-rating-modal__btn-icon { width: 1rem; height: 1rem; }
.eshop-rating-modal__btn--secondary {
    background: #fff;
    color: #475569;
    border: 1px solid #e1dfe8;
}
.eshop-rating-modal__btn--secondary:hover { background: #f8f7fb; }
.eshop-rating-modal__btn--primary {
    background: linear-gradient(135deg, #6a5d8b 0%, #574a78 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(106, 93, 139, 0.28);
}
.eshop-rating-modal__btn--primary:hover { filter: brightness(1.04); }
.eshop-rating-modal__btn--primary:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; filter: none; }
.eshop-rating-modal__btn--primary.is-loading { opacity: 0.75; pointer-events: none; }

.fin-ord-actions--toolbar .fin-ord-action-btn--rate,
.fin-eshop-buyer-od__action-btn--rate {
    background: var(--eshop-brand-gradient);
    color: #fff;
    border: 1px solid var(--eshop-brand);
    box-shadow: 0 1px 2px rgba(107, 91, 149, 0.22);
}
.fin-ord-actions--toolbar .fin-ord-action-btn--rate:hover,
.fin-eshop-buyer-od__action-btn--rate:hover {
    filter: brightness(1.05);
    color: #fff;
}
.fin-ord-actions--toolbar .fin-ord-action-btn--rate .fin-ord-action__icon {
    color: #fff;
    fill: currentColor;
}

.eshop-star-picker,
.eshop-star-display {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.eshop-star-picker__btn,
.eshop-star-display__star {
    border: 0;
    background: transparent;
    padding: 0.15rem;
    cursor: pointer;
    color: #d0d5dd;
    line-height: 0;
    transition: color 0.12s ease, transform 0.12s ease;
}
.eshop-star-picker__btn:hover,
.eshop-star-picker__btn:focus-visible {
    transform: scale(1.08);
    outline: none;
}
.eshop-star-picker__btn--filled,
.eshop-star-display__star--filled {
    color: #f59e0b;
}
.eshop-star-picker__icon,
.eshop-star-display__icon {
    width: 1.55rem;
    height: 1.55rem;
    fill: currentColor;
}
.eshop-star-display__value {
    margin-inline-start: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #667085;
}

@media (max-width: 480px) {
    .eshop-rating-modal__panel { width: 100%; max-height: 94vh; border-radius: 1rem 1rem 0 0; align-self: flex-end; }
    .eshop-rating-modal { align-items: flex-end; padding: 0; }
    .eshop-rating-modal__footer { flex-direction: column-reverse; }
}

.eshop-rating-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    color: #fff;
    background: var(--eshop-brand-gradient);
    border: 1px solid var(--eshop-brand);
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(107, 91, 149, 0.22);
}
.eshop-rating-open-btn:hover { filter: brightness(1.05); }

.fin-eshop-retail-panel__card-icon--rating { color: #f59e0b; }
.fin-eshop-retail-panel__rating-comment {
    margin: 0.75rem 0 0;
    padding: 0.75rem 1rem;
    border-inline-start: 3px solid #f59e0b;
    background: #fffbeb;
    border-radius: 0.5rem;
    color: #78350f;
    font-size: 0.92rem;
}

.fin-eshop-rate-pending-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin: 0 0 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgb(255 251 235) 0%, rgb(254 243 199) 100%);
    border: 1px solid rgb(245 158 11 / 0.35);
}
.fin-eshop-rate-pending-banner__text {
    margin: 0;
    flex: 1 1 12rem;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #92400e;
    line-height: 1.4;
}
.fin-eshop-rate-pending-banner__actions,
.fin-eshop-rate-pending-banner__links {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
}
.fin-eshop-rate-pending-banner__chip {
    display: inline-flex;
    align-items: center;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgb(245 158 11 / 0.45);
    color: #b45309;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}
.fin-eshop-rate-pending-banner__chip:hover { background: #fffbeb; }
.fin-eshop-rate-pending-banner__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 1.85rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: rgba(180, 83, 9, 0.1);
    color: #92400e;
    font-size: 0.78rem;
    font-weight: 700;
}

.eshop-catalog-rating {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.35rem;
    line-height: 1.2;
}
.eshop-catalog-rating__stars {
    display: inline-flex;
    align-items: center;
    gap: 0.05rem;
}
.eshop-catalog-rating__star {
    width: 0.85rem;
    height: 0.85rem;
    fill: #e2e8f0;
}
.eshop-catalog-rating__star--filled {
    fill: #f59e0b;
}
.eshop-catalog-rating__value {
    font-size: 0.78rem;
    font-weight: 700;
    color: #92400e;
}
.eshop-catalog-rating__count {
    font-size: 0.72rem;
    color: #94a3b8;
}

/* CheckoutIntentPay styles → wwwroot/css/Client/eshop-checkout-pay.css */

/* Favorite category interests picker */
.shop-interests {
    background: #f8fafc;
    min-height: 60vh;
    padding: 2rem 1rem 3rem;
}
.shop-interests__wrap {
    max-width: 960px;
    margin: 0 auto;
}
.shop-interests__head {
    text-align: center;
    margin-bottom: 2rem;
}
.shop-interests__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
}
.shop-interests__lead {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}
.shop-interests__hint {
    color: #64748b;
    margin: 0;
    font-size: 0.92rem;
}
.shop-interests__alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}
.shop-interests__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}
@media (min-width: 640px) {
    .shop-interests__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .shop-interests__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.shop-interests__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 9.5rem;
    padding: 0.75rem 0.5rem 0.85rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}
.shop-interests__card.is-selected {
    border-color: #dc2626;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15);
}
.shop-interests__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.shop-interests__check {
    position: absolute;
    top: 0.45rem;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
}
[dir="rtl"] .shop-interests__check {
    transform: translateX(50%);
}
.shop-interests__card.is-selected .shop-interests__check {
    display: inline-flex;
}
.shop-interests__check svg {
    width: 0.85rem;
    height: 0.85rem;
}
.shop-interests__media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    min-height: 4.5rem;
    margin-bottom: 0.35rem;
}
.shop-interests__media img {
    max-width: 72%;
    max-height: 4.25rem;
    object-fit: contain;
}
.shop-interests__label {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}
.shop-interests__footer {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.shop-interests__count {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}
.shop-interests__save {
    min-width: 12rem;
    padding: 0.75rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--eshop-brand-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}
.shop-interests__save:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Return / refund 3-step stepper (shared rr-* namespace) */
.eshop-return-modal__panel.eshop-return-modal__panel--stepper,
.fin-refund-modal__panel.fin-refund-modal__panel--stepper {
    width: min(58rem, calc(100vw - 2rem));
    max-width: 58rem;
    max-height: min(calc(100dvh - 1.5rem), 840px);
}

.rr-stepper {
    flex-shrink: 0;
    padding: 1rem 1.75rem 1.15rem;
    border-bottom: 1px solid #ece8f5;
    background: linear-gradient(180deg, #f6f3fc 0%, #faf9fd 45%, #ffffff 100%);
}

.rr-stepper__list {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rr-stepper__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    position: relative;
    color: #94a3b8;
}

.rr-stepper__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.25rem;
    inset-inline-start: calc(50% + 1.35rem);
    width: calc(100% - 2.7rem);
    height: 3px;
    border-radius: 999px;
    background: #e7e0f5;
    z-index: 0;
    transition: background 0.2s ease;
}

.rr-stepper__item--completed:not(:last-child)::after {
    background: linear-gradient(90deg, #6b5b95 0%, #7d6db5 100%);
}

.rr-stepper__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 2px solid #d9d2ea;
    background: #ffffff;
    color: #64748b;
    box-shadow: 0 1px 2px rgb(55 42 88 / 0.05);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.rr-stepper__icon svg {
    width: 1.1rem;
    height: 1.1rem;
    transition: opacity 0.15s ease;
}

.rr-stepper__label {
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
    font-size: 0.8125rem;
    line-height: 1.35;
    text-align: center;
    font-weight: 600;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.rr-stepper__item--active {
    color: #372a58;
}

.rr-stepper__item--active .rr-stepper__icon {
    border-color: #6b5b95;
    background: linear-gradient(180deg, #ffffff 0%, #f6f3fc 100%);
    color: #6b5b95;
    box-shadow:
        0 0 0 4px rgb(107 91 149 / 0.14),
        0 2px 10px rgb(107 91 149 / 0.14);
}

.rr-stepper__item--active .rr-stepper__label {
    font-weight: 800;
    color: #372a58;
}

.rr-stepper__item--completed {
    color: #6b5b95;
}

.rr-stepper__item--completed .rr-stepper__icon {
    border-color: #6b5b95;
    background: linear-gradient(135deg, #7d6db5 0%, #6b5b95 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgb(107 91 149 / 0.22);
}

.rr-stepper__item--completed .rr-stepper__icon svg {
    opacity: 0;
}

.rr-stepper__item--completed .rr-stepper__icon::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

.rr-stepper__item--completed .rr-stepper__label {
    font-weight: 700;
    color: #6b5b95;
}

.rr-modal-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.rr-step {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.rr-step--hidden {
    display: none !important;
}

.rr-step__content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 1.35rem 1.75rem 1rem;
    scrollbar-gutter: stable;
}

.rr-step__content::-webkit-scrollbar {
    width: 8px;
}

.rr-step__content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
    border: 2px solid #ffffff;
}

.rr-step__header {
    margin: 0 0 1.15rem;
    padding: 0.9rem 1rem 1rem;
    border: 1px solid #ece8f5;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #faf9fd 0%, #ffffff 100%);
    box-shadow: 0 1px 2px rgb(55 42 88 / 0.04);
}

.rr-step__heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.4rem;
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
    color: #372a58;
    letter-spacing: -0.015em;
    line-height: 1.35;
}

.rr-step__heading::before {
    content: "";
    width: 4px;
    height: 1.05em;
    min-height: 1rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #7d6db5 0%, #6b5b95 100%);
    flex-shrink: 0;
}

.rr-step__intro {
    margin: 0;
    padding-inline-start: calc(4px + 0.55rem);
    font-family: "IBM Plex Sans Arabic", "Open Sans", system-ui, sans-serif;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #64748b;
}

.rr-step__header .rr-step__intro:last-child {
    margin-bottom: 0;
}

.rr-step__header .rr-step__heading:last-child {
    margin-bottom: 0;
}

.rr-step__nav,
.eshop-return-modal__panel--stepper .eshop-return-modal__footer.rr-step__nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    flex-shrink: 0;
    margin-top: 0;
    padding: 1rem 1.75rem 1.35rem;
    border-top: 1px solid #e8ecf2;
    background: #ffffff;
    box-shadow: 0 -10px 28px -18px rgb(15 23 42 / 0.28);
    z-index: 2;
}

[dir="rtl"] .rr-step__nav {
    flex-direction: row-reverse;
}

.eshop-return-modal__policy-inline {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #ece8f5;
    text-align: center;
}

.rr-item-select__table-wrap {
    overflow-x: auto;
    border: 1px solid #e7e0f5;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 1px 0 rgb(15 23 42 / 0.03);
}

.rr-item-select__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.rr-item-select__table th,
.rr-item-select__table td {
    padding: 0.75rem 0.65rem;
    border-bottom: 1px solid #f1edf8;
    vertical-align: middle;
}

.rr-item-select__table th.rr-item-select__th-check,
.rr-item-select__table td.rr-item-select__cell-check {
    width: 2.75rem;
    text-align: center;
}

.rr-item-select__table th.rr-item-select__th-product,
.rr-item-select__table td.rr-item-select__cell-product {
    text-align: start;
}

.rr-item-select__table th.rr-item-select__th-order,
.rr-item-select__table th.rr-item-select__th-qty,
.rr-item-select__table th.rr-item-select__th-price,
.rr-item-select__table td.rr-item-select__cell-order,
.rr-item-select__table td.rr-item-select__cell-qty,
.rr-item-select__table td.rr-item-select__cell-price {
    text-align: center;
}

.rr-item-select__cell-check .rr-item-select__check {
    display: block;
    margin-inline: auto;
}

.rr-item-select__cell-order,
.rr-item-select__cell-qty,
.rr-item-select__cell-price {
    white-space: nowrap;
}

.rr-item-select__cell-price .rr-currency {
    margin-inline: auto;
}

.rr-currency {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    direction: ltr;
    unicode-bidi: isolate;
    color: #1e293b;
}

.rr-currency--symbol-first {
    flex-direction: row;
}

.rr-currency__value {
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
    font-size: 0.875rem;
    font-weight: 600;
}

.rr-currency__symbol {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: #6b5b95;
    line-height: 0;
}

.rr-currency__symbol .partner-buy-sar-svg {
    width: 0.95em;
    height: 0.95em;
    display: block;
}

.rr-currency--emphasis .rr-currency__value {
    font-size: 1rem;
    font-weight: 700;
    color: #6b5b95;
}

.rr-currency--emphasis .rr-currency__symbol {
    color: #6b5b95;
}

.rr-currency--emphasis .rr-currency__symbol .partner-buy-sar-svg {
    width: 1em;
    height: 1em;
}

.rr-item-select__table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #faf9fd;
}

.rr-item-select__table tbody tr:last-child td {
    border-bottom: 0;
}

.rr-item-select__product {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 10rem;
}

.rr-item-select__thumb {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
}

.rr-item-select__thumb--placeholder {
    display: inline-block;
}

.rr-item-select__title {
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.rr-item-select__check {
    width: 1rem;
    height: 1rem;
    accent-color: #6b5b95;
}

.rr-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rr-qty__control {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #d9d2ea;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}

.rr-qty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: #f8f6fc;
    color: #5a4b80;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.rr-qty__btn:hover:not(:disabled) {
    background: #ede8f8;
    color: #433862;
}

.rr-qty__btn:focus-visible {
    outline: 2px solid rgb(107 91 149 / 0.45);
    outline-offset: -2px;
    z-index: 1;
}

.rr-qty__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.rr-qty__input {
    width: 2.75rem;
    height: 2rem;
    padding: 0 0.25rem;
    text-align: center;
    border: none;
    border-inline: 1px solid #e7e0f5;
    border-radius: 0;
    background: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}

.rr-qty__input::-webkit-outer-spin-button,
.rr-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rr-qty__input:focus {
    outline: none;
    background: #faf9fd;
    box-shadow: inset 0 0 0 1px rgb(107 91 149 / 0.35);
}

.rr-qty__input:disabled {
    background: #f8fafc;
    color: #94a3b8;
}

.rr-qty__max {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
}

.rr-item-select__estimate,
.rr-review__estimate {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    background: #f6f3fc;
    color: #2e2350;
    font-size: 0.8125rem;
}

.rr-review__breakdown {
    margin-top: 0.85rem;
    border: 1px solid #e7e0f5;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}

.rr-review__breakdown-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.8125rem;
    color: #372a58;
    border-bottom: 1px solid #f0ebf8;
}

.rr-review__breakdown-row[hidden] {
    display: none !important;
}

.rr-review__amount {
    margin-bottom: 1rem;
}

.rr-review__loading[hidden],
.rr-review__quote-error[hidden],
.rr-review__table-wrap[hidden] {
    display: none !important;
}

.rr-review__loading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.85rem 0;
    padding: 1rem 1.05rem;
    border: 1px solid #e7e0f5;
    border-radius: 0.85rem;
    background: #faf9fd;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 600;
}

.rr-review__loading-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid #ddd5eb;
    border-top-color: #6d28d9;
    border-radius: 50%;
    animation: rr-review-spin 0.75s linear infinite;
}

@keyframes rr-review-spin {
    to { transform: rotate(360deg); }
}

.rr-review__table-wrap {
    margin-top: 0.85rem;
    border: 1px solid #e7e0f5;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #fff;
}

.rr-review__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.rr-review__table th,
.rr-review__table td {
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid #f0ebf8;
    vertical-align: middle;
}

.rr-review__table thead th {
    background: #f8f5fc;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: start;
}

.rr-review__col-qty,
.rr-review__col-amount,
.rr-review__qty,
.rr-review__amount {
    text-align: end;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.rr-review__product-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.rr-review__product-thumb {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
}

.rr-review__product-title {
    min-width: 0;
    color: #1e293b;
    line-height: 1.35;
}

.rr-review__row--subtotal,
.rr-review__row--order-total {
    color: #475569;
}

.rr-review__row--shipping {
    color: #065f46;
}

.rr-review__row--deduction {
    background: #fffaf5;
    color: #9a3412;
}

.rr-review__amount--deduction .rr-currency__value {
    color: #9a3412;
}

.rr-review__amount--positive .rr-currency__value {
    color: #047857;
}

.rr-review__row--total {
    background: #f0fdf6;
    color: #065f46;
    font-weight: 700;
}

.rr-review__total-label {
    text-align: end;
}

.rr-review__deduction-inline {
    display: inline-flex;
    align-items: baseline;
    gap: 0.15rem;
}

.rr-review__math {
    margin: 0;
    padding: 0.75rem 0.85rem;
    border-top: 1px solid #f0ebf8;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.45;
}

.rr-review__quote-error {
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    background: #fef2f2;
}

.rr-review__quote-error-text {
    margin: 0 0 0.65rem;
    color: #b42318;
    font-size: 0.8125rem;
    font-weight: 600;
}

.rr-review__quote-retry {
    margin-top: 0.15rem;
}

.rr-review__confirm {
    margin-bottom: 0;
    padding: 1rem 1.05rem;
    border: 1px solid #e7e0f5;
    border-radius: 0.85rem;
    background: #faf9fd;
}

.rr-review__breakdown-row:last-child {
    border-bottom: 0;
}

.rr-review__breakdown-row--deduct {
    background: #fffaf5;
    color: #9a3412;
}

.rr-review__breakdown-row--deduct .rr-review__breakdown-value::before {
    content: "−";
    margin-inline-end: 0.15rem;
}

.rr-review__breakdown-row--total {
    background: #f0fdf6;
    color: #065f46;
    font-weight: 700;
}

.rr-review__breakdown-label {
    min-width: 0;
    line-height: 1.35;
}

.rr-review__breakdown-value {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.rr-item-select__estimate-value,
.rr-review__estimate .rr-currency--emphasis,
.rr-review__breakdown-row--total .rr-currency--emphasis {
    font-size: 1rem;
    color: #047857;
}

.rr-item-select__error {
    margin: 0.65rem 0 0;
    color: #b45309;
    font-size: 0.8125rem;
    font-weight: 600;
}

.rr-item-select__empty {
    margin: 0;
    padding: 1rem;
    border-radius: 0.65rem;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.8125rem;
}

.rr-review__section {
    margin-bottom: 1rem;
    padding: 1rem 1.05rem;
    border: 1px solid #e7e0f5;
    border-radius: 0.85rem;
    background: #faf9fd;
}

.rr-review__section-title {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
}

.rr-review__item {
    padding: 0.35rem 0;
    font-size: 0.8125rem;
    color: #1e293b;
    border-bottom: 1px dashed #f1edf8;
}

.rr-review__item:last-child {
    border-bottom: 0;
}

.rr-review__details {
    margin: 0;
}

.rr-review__detail {
    margin: 0 0 0.65rem;
}

.rr-review__detail dt {
    margin: 0 0 0.15rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.rr-review__detail dd {
    margin: 0;
    font-size: 0.8125rem;
    color: #1e293b;
    white-space: pre-wrap;
}

@media (max-width: 640px) {
    .rr-stepper {
        padding: 0.85rem 1rem 1rem;
    }

    .rr-stepper__icon {
        width: 2.15rem;
        height: 2.15rem;
    }

    .rr-stepper__icon svg {
        width: 0.95rem;
        height: 0.95rem;
    }

    .rr-stepper__item:not(:last-child)::after {
        top: 1.075rem;
        inset-inline-start: calc(50% + 1.15rem);
        width: calc(100% - 2.3rem);
        height: 2px;
    }

    .rr-stepper__label {
        font-size: 0.6875rem;
    }

    .rr-item-select__cell-order,
    .rr-item-select__th-price {
        display: none;
    }

    .rr-reason-picker__grid {
        grid-template-columns: 1fr;
    }
}

/* Reason step — card radio/checkmark picker */
.rr-reason-picker {
    margin-bottom: 1rem;
}

.rr-reason-picker__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.rr-reason-picker__panel {
    display: block;
    margin: 0;
    min-width: 0;
    border: 1px solid #e1dfe8;
    border-radius: 14px;
    padding: 1.1rem 1.15rem 1.15rem;
    background: #fff;
    box-shadow: 0 1px 3px rgb(55 42 88 / 0.05);
}

.rr-reason-picker__legend {
    display: block;
    width: auto;
    max-width: calc(100% - 1.5rem);
    margin: 0;
    margin-inline-start: 0.65rem;
    padding: 0 0.5rem;
    background: #fff;
    float: none;
    font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: #372a58;
    line-height: 1.35;
}

.rr-reason-picker__panel .rr-reason-cards {
    margin-top: 0.35rem;
}

.rr-reason-cards {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: min(22rem, 52vh);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.25rem 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #d9d2ea transparent;
}

.rr-reason-cards::-webkit-scrollbar {
    width: 5px;
}

.rr-reason-cards::-webkit-scrollbar-thumb {
    background: #d9d2ea;
    border-radius: 999px;
}

.rr-reason-cards--check .rr-reason-card {
    align-items: center;
    padding: 0.75rem 1rem;
}

.rr-reason-cards--check .rr-reason-card__mark {
    margin-top: 0;
}

.rr-reason-card {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.rr-reason-card:hover:not(:has(.rr-reason-card__input:checked)) {
    border-color: #c4b8e8;
    background: #fdfcff;
    box-shadow: 0 1px 4px rgb(107 91 149 / 0.08), 0 4px 12px rgb(107 91 149 / 0.1);
}

.rr-reason-card:has(.rr-reason-card__input:checked) {
    border-color: #6b5b95;
    background: #ffffff;
    box-shadow:
        0 0 0 2px rgb(107 91 149 / 0.14),
        0 1px 4px rgb(107 91 149 / 0.08),
        0 4px 14px rgb(107 91 149 / 0.12);
}

.rr-reason-card:focus-within {
    outline: 2px solid rgb(107 91 149 / 0.35);
    outline-offset: 1px;
}

.rr-reason-card__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.rr-reason-card__mark {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.05rem;
    border: 2px solid #cbd5e1;
    background: #fff;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.rr-reason-card__mark--circle {
    border-radius: 9999px;
}

.rr-reason-card__mark--square {
    border-radius: 0.35rem;
}

.rr-reason-card__input:checked + .rr-reason-card__mark {
    border-color: #6b5b95;
    background: #6b5b95;
    box-shadow: 0 0 0 3px rgb(107 91 149 / 0.15);
}

.rr-reason-card__input:checked + .rr-reason-card__mark--circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 9999px;
    background: #fff;
    transform: translate(-50%, -50%);
}

.rr-reason-card__input:checked + .rr-reason-card__mark--square::after {
    content: "";
    position: absolute;
    top: 0.14rem;
    inset-inline-start: 0.36rem;
    width: 0.35rem;
    height: 0.62rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.rr-reason-card:has(.rr-reason-card__input:checked) .rr-reason-card__title {
    color: #433862;
}

.rr-reason-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.rr-reason-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.45;
    color: #1e293b;
    transition: color 0.15s ease;
}

.rr-reason-card__hint {
    font-family: "IBM Plex Sans Arabic", "Open Sans", system-ui, sans-serif;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #475569;
}

.rr-reason-picker__error {
    margin: 0;
    padding: 0.65rem 1.05rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #b45309;
    background: rgb(180 83 9 / 0.06);
}

.rr-reason-picker--invalid .rr-reason-cards {
    outline: 1px solid rgb(180 83 9 / 0.35);
    border-radius: 0.65rem;
}

.fin-refund-modal .rr-reason-picker {
    margin-bottom: 0.75rem;
}
