:root {
    --brand: #0d6efd;
    --brand-dark: #0a58ca;
    --text-main: #1f2937;
    --text-soft: #6b7280;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --line: #e5e7eb;
    --success: #0f766e;
}

body {
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-main);
    background: #f3f4f6;
}

[dir="rtl"] body {
    font-family: "Noto Sans Arabic", "Inter", "Segoe UI", Arial, sans-serif;
    text-align: right;
}

[dir="rtl"] .text-md-end,
[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .me-1 { margin-left: 0.25rem !important; margin-right: 0 !important; }
[dir="rtl"] .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
[dir="rtl"] .ms-1 { margin-right: 0.25rem !important; margin-left: 0 !important; }
[dir="rtl"] .ms-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }
[dir="rtl"] .ms-auto { margin-right: auto !important; margin-left: 0 !important; }
[dir="rtl"] .me-auto { margin-left: auto !important; margin-right: 0 !important; }

[dir="rtl"] .announcement-bar,
[dir="rtl"] .footer-text,
[dir="rtl"] .muted,
[dir="rtl"] .account-note,
[dir="rtl"] .form-field label,
[dir="rtl"] .form-label,
[dir="rtl"] .panel,
[dir="rtl"] .table,
[dir="rtl"] .dropdown-menu,
[dir="rtl"] .alert {
    text-align: right;
}

[dir="rtl"] input:not([type="email"]):not([type="url"]):not([type="number"]),
[dir="rtl"] textarea,
[dir="rtl"] select {
    text-align: right;
}

[dir="rtl"] .navbar-modern .container {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-search {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .header-utility-strip,
[dir="rtl"] .header-desktop-links,
[dir="rtl"] .product-share,
[dir="rtl"] .account-actions,
[dir="rtl"] .footer-trust,
[dir="rtl"] .hero-meta {
    flex-direction: row-reverse;
}

[dir="rtl"] .cart-pill-floating {
    right: auto;
    left: -0.2rem;
}

[dir="rtl"] .whatsapp-agent {
    right: auto;
    left: 1rem;
}

[dir="rtl"] .cart-drawer-line {
    grid-template-columns: minmax(0, 1fr) 84px;
}

[dir="rtl"] .cart-drawer-line-top,
[dir="rtl"] .cart-drawer-line-bottom,
[dir="rtl"] .cart-drawer-total-row,
[dir="rtl"] .cart-drawer-actions,
[dir="rtl"] .shop-toolbar,
[dir="rtl"] .shop-results-meta,
[dir="rtl"] .search-result-bar,
[dir="rtl"] .address-card-top,
[dir="rtl"] .order-card-head {
    flex-direction: row-reverse;
}

[dir="rtl"] .cart-drawer-line-price,
[dir="rtl"] .order-card-head .text-md-end {
    text-align: left;
}

[dir="rtl"] .product-breadcrumb,
[dir="rtl"] .product-price-line,
[dir="rtl"] .product-qty-row,
[dir="rtl"] .product-share-row,
[dir="rtl"] .product-related-head,
[dir="rtl"] .mobile-buy-bar,
[dir="rtl"] .product-gallery-nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .product-specs-table th,
[dir="rtl"] .product-specs-table td {
    text-align: right;
}

[dir="rtl"] .product-corner-badge {
    left: 1.35rem;
    right: auto;
    top: auto;
    bottom: 1.35rem;
}

[dir="rtl"] .featured-tags,
[dir="rtl"] .product-card-media-tags {
    right: auto;
    left: 0.75rem;
    align-items: flex-start;
}

[dir="rtl"] .product-share a,
[dir="rtl"] .footer-social {
    flex: 0 0 auto;
}

[dir="rtl"] .gallery-thumb-video i,
[dir="rtl"] .account-chip i,
[dir="rtl"] .product-benefits i {
    margin-right: 0;
    margin-left: 0.25rem;
}

[dir="rtl"] .hero-controls,
[dir="rtl"] .product-share,
[dir="rtl"] .address-card-actions {
    justify-content: flex-start;
}

[dir="rtl"] .dropdown-menu-end {
    --bs-position: start;
}

[dir="rtl"] .navbar-toggler {
    margin-right: 0.25rem;
    margin-left: 0;
}

.announcement-bar {
    background: #0f172a;
    color: #dbeafe;
    font-size: 0.85rem;
    padding: 0.45rem 0;
}

.navbar-modern {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.navbar-modern .container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.9rem;
}

.navbar-modern .navbar-brand {
    color: #111827;
    letter-spacing: -0.02em;
    margin-right: 0;
    padding-top: 0;
    padding-bottom: 0;
}


.navbar-modern .nav-link {
    color: #374151;
    font-weight: 500;
}

.navbar-modern .nav-link:hover {
    color: #111827;
}

.brand-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.04rem;
    flex: 0 0 auto;
}

.brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
}

.brand-logo {
    display: block;
    height: 2.75rem;
    width: auto;
    max-width: 14rem;
    object-fit: contain;
    background: #ffffff;
}

.nav-modern-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 0.65rem;
    padding: 0.45rem 0.7rem !important;
}

.nav-modern-link:hover {
    background: #f3f4f6;
}

.cart-pill {
    min-width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.73rem;
    font-weight: 700;
}

.header-utility-strip {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.45rem;
    margin-left: auto;
}

.header-icon-link {
    position: relative;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.96);
    color: #374151;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.3rem;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.header-icon-link:hover {
    color: #111827;
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.language-switch-link {
    width: auto;
    padding: 0 1rem;
    gap: 0.55rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.language-switch-label {
    font-size: 0.98rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.cart-icon-link {
    font-size: 1.2rem;
}

.header-desktop-links {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 0.35rem;
}

@media (max-width: 1199px) {
    .language-switch-link {
        width: 2.9rem;
        padding: 0;
        justify-content: center;
    }

    .language-switch-label {
        display: none;
    }
}

.cart-pill-floating {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    background: #8b7be0;
    color: #fff;
    min-width: 1.65rem;
    height: 1.65rem;
    box-shadow: 0 8px 16px rgba(139, 123, 224, 0.24);
}

.nav-search {
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 0.85rem;
    padding: 0.35rem 0.45rem;
    margin-left: 1rem;
    width: min(520px, 100%);
}

.nav-search i {
    color: #64748b;
}

.nav-search input {
    border: 0;
    outline: none;
    box-shadow: none;
    flex: 1;
    min-width: 100px;
    font-size: 0.92rem;
    background: transparent;
}

.search-result-bar {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 0.9rem;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.ui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid transparent;
    border-radius: 0.78rem;
    padding: 0.58rem 1rem;
    font-size: 0.93rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    cursor: pointer;
}

.ui-btn:hover {
    transform: translateY(-1px);
}

.ui-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.ui-btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--brand) 35%, transparent);
}

.ui-btn-primary:hover {
    color: #fff;
    box-shadow: 0 14px 24px color-mix(in srgb, var(--brand) 40%, transparent);
}

.ui-btn-soft {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.ui-btn-soft:hover {
    color: #1d4ed8;
    background: #dbeafe;
}

.ui-btn-outline {
    background: #fff;
    color: #374151;
    border-color: #d1d5db;
}

.ui-btn-outline:hover {
    color: #111827;
    border-color: #9ca3af;
}

.ui-btn-danger {
    background: #ef4444;
    color: #fff;
}

.ui-btn-danger:hover {
    color: #fff;
    background: #dc2626;
}

.ui-btn-whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.25);
}

.ui-btn-whatsapp:hover {
    color: #fff;
    background: #1ebe5b;
}

.ui-btn-sm {
    padding: 0.44rem 0.75rem;
    font-size: 0.82rem;
    border-radius: 0.62rem;
}

.ui-btn-icon {
    width: 2rem;
    height: 2rem;
    padding: 0;
}

.ui-btn-block {
    width: 100%;
}

.hero-shop {
    background: linear-gradient(135deg, #0f172a, #1d4ed8 60%, #0ea5e9);
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.hero-shop h1 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.25rem;
}

.hero-pill {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
}

.hero-carousel {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    min-height: 0;
    padding: 0.55rem;
    touch-action: pan-y;
}

.hero-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
}

.hero-track::-webkit-scrollbar {
    display: none;
}

.hero-slide {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    padding: 0;
    min-height: 0;
    max-height: none;
    background: #f1f5f9;
    border-radius: 0.85rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero-slide-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    background: #f1f5f9;
    border-radius: 0.85rem;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    vertical-align: middle;
}

.hero-slide-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
}

.hero-controls {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.hero-dots {
    position: absolute;
    left: 2rem;
    bottom: 1.25rem;
    display: flex;
    gap: 0.45rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.28);
}

.hero-dot.active {
    background: #0f172a;
}

.hero-offer-badge {
    display: inline-flex;
    padding: 0.3rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

@keyframes heroFade {
    from { opacity: 0.4; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.featured-wrap {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    padding: 1.1rem;
}

.featured-kicker {
    color: #4f46e5;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.featured-tile {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.featured-tile .product-card-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.featured-tile .quick-add-btn,
.featured-tile [data-cart-add],
.featured-tile [data-price-option],
.featured-tile .product-card-actions,
.featured-tile .product-card-pricing {
    position: relative;
    z-index: 2;
}

.featured-image-wrap {
    position: relative;
}

.featured-image-wrap.product-card-media {
    margin: 0;
}

.featured-image {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center center;
    background: #f8fafc;
    border-radius: 0.75rem;
}

.featured-tags,
.product-card-media-tags {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    left: auto;
    top: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    max-width: calc(100% - 1.5rem);
    pointer-events: none;
}

.featured-tags .item-tag,
.product-card-media-tags .item-tag {
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.featured-tags .item-tag-gold,
.product-card-media-tags .item-tag-gold {
    background: rgba(255, 247, 237, 0.96);
    border-color: rgba(254, 215, 170, 0.85);
}

.featured-tags .item-tag-sale,
.product-card-media-tags .item-tag-sale {
    background: rgba(254, 242, 242, 0.96);
    border-color: rgba(254, 202, 202, 0.85);
}

.featured-tags .item-tag-soft,
.product-card-media-tags .item-tag-soft {
    background: rgba(248, 250, 252, 0.96);
}

/* Boutique overlays (shown by Fashion Boutique / similar skins) */
.product-card-size-strip,
.product-card-soldout,
.product-card-view-cue {
    display: none;
}

.featured-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 0.9rem;
    min-height: 0;
}

.featured-desc {
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.45;
    margin-bottom: 0.65rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.45em * 2);
    max-height: calc(1.45em * 2);
    word-break: break-word;
}

@media (max-width: 767px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.product-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 1rem;
    overflow: hidden;
    background: var(--surface);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.08);
}

.product-card-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Let the stretched card link receive clicks on image/title; keep buttons interactive. */
.product-card-media,
.product-card-media .product-image,
.product-card-media .featured-image,
.featured-image-wrap.product-card-media,
.product-card .product-content,
.featured-tile .featured-content {
    pointer-events: none;
}

.product-card-actions,
.product-card-pricing,
.product-card .quick-add-btn,
.product-card [data-cart-add],
.product-card [data-price-option],
.product-card [data-share-url],
.featured-tile .product-card-actions,
.featured-tile .product-card-pricing,
.featured-tile [data-cart-add],
.featured-tile [data-price-option],
.featured-tile [data-share-url] {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.product-card-spotlight {
    /* Keep same look as standard cards — no blue fill */
    border: 1px solid var(--line);
    background: var(--surface);
    color: inherit;
}

.product-card-spotlight .product-desc {
    color: var(--text-soft);
}

.product-card-minimal {
    border-style: solid;
    background: var(--surface);
}

.product-image {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center center;
    background: #f8fafc;
    border-radius: 0.75rem;
}

.product-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.product-name {
    font-weight: 600;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 2.6em;
    line-height: 1.3;
}

.product-desc {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 0.65rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.45em * 2);
    max-height: calc(1.45em * 2);
    word-break: break-word;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.item-tag {
    display: inline-flex;
    width: fit-content;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card-spotlight .item-tag {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

.item-tag-gold {
    background: #fff7ed;
    color: #b45309;
    border-color: #fed7aa;
}

.item-tag-sale {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.panel-body {
    padding: 1.3rem;
}

.checkout-summary-item,
.line-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.muted {
    color: var(--text-soft);
}

.badge-soft {
    background: #ecfeff;
    color: var(--success);
    border: 1px solid #99f6e4;
}

.gallery-thumb {
    width: 100%;
    height: 88px;
    object-fit: cover;
    border-radius: 0.6rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.gallery-thumb:hover {
    transform: translateY(-2px);
}

.gallery-thumb.active {
    border-color: var(--brand);
}

.gallery-thumb-button {
    width: 100%;
    border: 2px solid transparent;
    border-radius: 0.6rem;
    padding: 0;
    background: transparent;
}

.gallery-thumb-button.active {
    border-color: var(--brand);
}

.gallery-thumb-video {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 88px;
    border-radius: 0.45rem;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-showcase {
    display: grid;
    gap: 2rem;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-breadcrumb a,
.product-breadcrumb strong {
    color: inherit;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: #2563eb;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
}

.product-gallery-shell {
    display: grid;
    gap: 1rem;
}

.product-gallery-colors {
    gap: 0.55rem;
    padding: 0 0.15rem;
}

.product-gallery-colors .product-color-swatches {
    gap: 0.45rem;
}

.product-media-card {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1rem;
    padding: 0.55rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.product-media-stage {
    position: relative;
    width: min(100%, 420px);
    max-height: 420px;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    overflow: hidden;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #f8fafc;
    padding: 0.55rem;
    box-sizing: border-box;
}

.product-gallery-main {
    position: absolute;
    inset: 0.55rem;
    width: calc(100% - 1.1rem);
    height: calc(100% - 1.1rem);
    min-width: calc(100% - 1.1rem);
    min-height: calc(100% - 1.1rem);
    object-fit: cover;
    object-position: center center;
    background: #f8fafc;
    border-radius: 0.75rem;
}

video.product-gallery-main {
    background: #0f172a;
    z-index: 1;
}

.shop-video.product-gallery-main {
    display: none;
    background: #0f172a;
    z-index: 1;
    overflow: hidden;
}
.shop-video.product-gallery-main.is-active {
    display: block;
}
.shop-video .shop-video-el {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f172a;
    display: block;
}
.shop-video-quality {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    z-index: 5;
}
.shop-video-quality-btn {
    border: 0;
    border-radius: 0.55rem;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.65rem;
    cursor: pointer;
}
.shop-video-quality-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    min-width: 7rem;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 12px 28px rgba(2, 8, 23, 0.35);
}
.shop-video-quality-menu li {
    color: #e2e8f0;
    font-size: 0.82rem;
    padding: 0.4rem 0.55rem;
    border-radius: 0.4rem;
    cursor: pointer;
}
.shop-video-quality-menu li:hover,
.shop-video-quality-menu li.is-active {
    background: rgba(37, 99, 235, 0.85);
    color: #fff;
}

.product-gallery-embed {
    border: 0;
    object-fit: unset;
    background: #0f172a;
}

.product-thumb-video-label {
    position: absolute;
    left: 0.35rem;
    bottom: 0.35rem;
    padding: 0.1rem 0.35rem;
    border-radius: 0.35rem;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    font-size: 0.65rem;
    line-height: 1.2;
}

.product-gallery-main.is-active {
    display: block;
}

.product-gallery-main[hidden] {
    display: none !important;
}

.product-corner-badge {
    position: absolute;
    right: 1.35rem;
    bottom: 1.35rem;
    left: auto;
    top: auto;
    width: fit-content;
    max-width: calc(100% - 2.7rem);
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.74rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.22);
    z-index: 2;
}

.product-info-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.75rem;
    padding: 1.35rem;
    background: #fff;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 92px;
}

.product-info-shell {
    display: grid;
    gap: 1.35rem;
}

.product-meta-stack {
    display: grid;
    gap: 0.6rem;
}

.product-vendor-label {
    margin: 0;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.product-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.product-description-lead {
    margin: 0;
    color: #667085;
    line-height: 1.65;
    font-size: 0.92rem;
}

.product-bundle-includes {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
}

.product-bundle-includes-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475467;
    margin-bottom: 0.45rem;
}

.product-bundle-includes-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #344054;
    font-size: 0.92rem;
}

.product-bundle-includes-list a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.product-bundle-qty {
    color: #667085;
    font-size: 0.85em;
}

.product-bundle-item-price {
    color: #101828;
    font-weight: 600;
    font-size: 0.9em;
}

.product-price-cluster {
    display: grid;
    gap: 0.65rem;
}

.product-price-line {
    display: flex;
    align-items: end;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.product-price-large {
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.product-price-compare {
    font-size: 1.05rem;
    padding-bottom: 0.2rem;
    color: #98a2b3;
    text-decoration: line-through;
}

.product-price-after-discount {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    color: #344054;
    font-size: 0.95rem;
    font-weight: 600;
}

.product-price-after-discount strong {
    color: #027a48;
    font-size: 1.05rem;
}

.product-price-save {
    color: #b42318;
    font-weight: 700;
    font-size: 0.88rem;
}

.product-qty-discount-box {
    margin-top: 0.15rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(2, 122, 72, 0.18);
    border-radius: 0.9rem;
    background: linear-gradient(180deg, rgba(236, 253, 243, 0.9), rgba(255, 255, 255, 0.95));
}

.product-qty-discount-title {
    font-weight: 700;
    color: #027a48;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
}

.product-qty-discount-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.3rem;
    color: #344054;
    font-size: 0.9rem;
}

.product-qty-discount-hint {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    color: #667085;
    margin-bottom: 0.15rem;
}

.product-qty-discount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.product-qty-discount-option {
    appearance: none;
    border: 1px solid rgba(2, 122, 72, 0.28);
    background: #fff;
    color: #101828;
    border-radius: 0.75rem;
    padding: 0.55rem 0.7rem;
    min-width: 5.5rem;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    cursor: pointer;
    line-height: 1.15;
    text-align: start;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.product-qty-discount-option:hover {
    border-color: #027a48;
}

.product-qty-discount-option.is-active {
    border-color: #027a48;
    background: #027a48;
    color: #fff;
    box-shadow: 0 8px 18px rgba(2, 122, 72, 0.22);
}

.product-qty-discount-option-qty {
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.9;
}

.product-qty-discount-option-price {
    font-size: 0.95rem;
    font-weight: 800;
}

.product-qty-discount-option-off {
    font-size: 0.72rem;
    font-weight: 700;
    color: #b54708;
}

.product-qty-discount-option.is-active .product-qty-discount-option-off,
.product-qty-discount-option.is-active .product-qty-discount-each {
    color: rgba(255, 255, 255, 0.88);
}

.product-qty-discount-each {
    color: #667085;
    font-size: 0.82rem;
}

.product-price-option-list {
    display: grid;
    gap: 0.55rem;
}

.product-price-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.85rem 0.95rem;
    border: 1.5px solid var(--line, #e2e8f0);
    border-radius: 0.9rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.product-price-option:hover {
    border-color: #94a3b8;
}

.product-price-option.is-active {
    border-color: #0f172a;
    background: #f8fafc;
    box-shadow: 0 0 0 1px #0f172a;
}

.product-price-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-price-option-radio {
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid #94a3b8;
    border-radius: 999px;
    flex: 0 0 auto;
    position: relative;
    background: #fff;
}

.product-price-option.is-active .product-price-option-radio {
    border-color: #0f172a;
}

.product-price-option.is-active .product-price-option-radio::after {
    content: "";
    position: absolute;
    inset: 0.2rem;
    border-radius: 999px;
    background: #0f172a;
}

.product-price-option-body {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.product-price-option-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

.product-price-option-meta {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
    font-size: 0.92rem;
}

.product-price-option-meta strong {
    font-weight: 800;
}

.product-price-option-each {
    color: #64748b;
    font-size: 0.8rem;
}

.product-price-option-off {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 800;
}

.product-stock-line {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #047857;
    font-size: 0.92rem;
    font-weight: 700;
}

.product-stock-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 0.28rem rgba(16, 185, 129, 0.12);
}

.product-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.product-benefits-grid span {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
}

.product-benefits-grid i {
    color: #2563eb;
    font-size: 0.95rem;
}

.product-option-group {
    display: grid;
    gap: 0.75rem;
}

.product-option-label {
    color: #475569;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.product-unit-options {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.product-unit-options-list {
    display: grid;
    gap: 0.65rem;
}

.product-unit-row {
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #f8fafc;
}

.product-unit-row-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
}

.product-unit-row-fields {
    display: grid;
    gap: 0.65rem;
}

.product-unit-field {
    display: grid;
    gap: 0.28rem;
    margin: 0;
}

.product-unit-field span {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
}

.product-unit-color-name {
    font-style: normal;
    font-weight: 700;
    color: #0f172a;
    text-transform: none;
    letter-spacing: 0;
}

.product-unit-field-color .product-unit-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.product-unit-swatch {
    width: 1.85rem;
    height: 1.85rem;
}

.product-color-selected-name {
    letter-spacing: 0;
    text-transform: none;
    font-weight: 700;
    color: #0f172a;
}

.product-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.product-color-swatch {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    background: var(--swatch, #94a3b8);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    padding: 0;
    transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}

.product-color-swatch.is-light {
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.22);
}

.product-color-swatch:hover {
    transform: translateY(-1px);
    border-color: #94a3b8;
}

.product-color-swatch.is-selected {
    border-color: #0f172a;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0f172a;
}

.product-color-swatch.is-sold-out,
.product-color-swatch:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none;
    position: relative;
}
.product-color-swatch.is-sold-out::after,
.product-color-swatch:disabled::after {
    content: '';
    position: absolute;
    inset: 45% 12%;
    height: 2px;
    background: rgba(15, 23, 42, 0.75);
    transform: rotate(-35deg);
    border-radius: 2px;
}

.product-buy-form {
    display: grid;
    gap: 1rem;
}

.product-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-qty-control {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.product-qty-btn {
    width: 3rem;
    height: 3rem;
    border: 0;
    background: transparent;
    color: #0f172a;
}

.product-qty-input {
    width: 4rem;
    text-align: center;
    border: 0;
    background: transparent;
    font-weight: 800;
    box-shadow: none !important;
}

.product-qty-input::-webkit-outer-spin-button,
.product-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-total-preview {
    display: grid;
    gap: 0.15rem;
    color: #64748b;
    font-size: 0.82rem;
}

.product-total-preview strong {
    color: #0f172a;
    font-size: 1rem;
}

.product-buy-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.85rem;
}

.product-buy-actions .product-support-btn {
    grid-column: 1 / -1;
}

.product-add-btn,
.product-buy-now-btn,
.product-support-btn {
    min-height: 3.5rem;
}

.product-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.product-share {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.product-share a,
.product-share-copy {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #fff;
    padding: 0;
}

.product-share a:hover,
.product-share-copy:hover {
    color: #1d4ed8;
    border-color: #93c5fd;
    background: #eff6ff;
}

.product-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.product-share-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.product-share-btn-primary {
    min-height: 2rem;
}

.product-share-btn-card {
    padding: 0.42rem 0.7rem;
    position: relative;
    z-index: 3;
}

.product-share-btn-card span {
    display: none;
}

.product-card-action-btns {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.45rem;
    width: 100%;
    position: relative;
    z-index: 3;
}

.affiliate-banner {
    margin-bottom: 1rem;
}

.product-share-toast {
    position: fixed;
    inset-inline: 0;
    bottom: 1.25rem;
    margin-inline: auto;
    width: fit-content;
    max-width: calc(100% - 2rem);
    z-index: 2100;
    background: #0f172a;
    color: #fff;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-size: 0.86rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-share-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-gallery-nav {
    position: absolute;
    inset-inline: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    pointer-events: none;
    z-index: 2;
}

.product-gallery-nav-btn {
    width: 2.8rem;
    height: 2.8rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
    pointer-events: auto;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.product-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0.3rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.7rem;
    overflow: hidden;
    background: #f8fafc;
    cursor: pointer;
    box-sizing: border-box;
}

.product-thumb.is-color-hidden,
.product-thumb[hidden] {
    display: none !important;
}

.product-thumb img,
.product-thumb video {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 0.5rem;
    border: 0;
}

.product-thumb span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
}

.product-thumb.is-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.product-thumb:hover {
    border-color: #93c5fd;
}

.product-tabs-shell {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.75rem;
    background: #fff;
    padding: 1.35rem;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.06);
}

.product-tabs-nav {
    display: flex;
    gap: 0.35rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.product-tabs-nav::-webkit-scrollbar {
    display: none;
}

.product-tab {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.product-tab.is-active {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

.product-tab-panel {
    display: none;
}

.product-tab-panel.is-active {
    display: block;
}

.product-tab-copy {
    max-width: 48rem;
    color: #667085;
    line-height: 1.8;
    white-space: pre-line;
}

.product-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs-table th,
.product-specs-table td {
    padding: 0.95rem 0;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.92rem;
    text-align: left;
}

.product-specs-table th {
    width: 32%;
    color: #0f172a;
    font-weight: 800;
}

.product-specs-table td {
    color: #667085;
}

.product-reviews-placeholder {
    min-height: 16rem;
    display: grid;
    place-items: center;
    gap: 0.75rem;
    padding: 1rem;
    text-align: center;
}

.product-social-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.1rem;
    align-items: center;
    margin: 0.35rem 0 0.55rem;
}
.product-review-inline,
.product-sold-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #475569;
    font-size: 0.92rem;
}
.product-review-inline a {
    color: #2563eb;
    text-decoration: none;
}
.product-review-inline-stars {
    color: #f59e0b;
    letter-spacing: 0.04em;
}
.product-sold-chip {
    margin-inline-start: 0.35rem;
    color: #64748b;
    font-weight: 600;
}

.product-card-sold {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0 0 0.55rem;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 600;
}

.product-reviews-panel {
    display: grid;
    gap: 1.25rem;
}
.product-reviews-summary {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.product-reviews-list {
    display: grid;
    gap: 0.85rem;
}
.product-review-item {
    padding: 0.95rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #fff;
}
.product-review-item-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    align-items: center;
    margin-bottom: 0.45rem;
}
.product-review-item p {
    margin: 0;
    color: #334155;
    line-height: 1.55;
    white-space: pre-wrap;
}
.product-review-form {
    padding: 1.1rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.product-review-score {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    color: #0f172a;
}

.product-review-copy {
    max-width: 28rem;
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.product-related-shell {
    display: grid;
    gap: 1.25rem;
}

.product-related-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.mobile-buy-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1035;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(14px);
    box-shadow: 0 -18px 30px rgba(15, 23, 42, 0.08);
}

.mobile-buy-bar-meta {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.mobile-buy-bar-meta span {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.mobile-buy-bar-meta strong {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 800;
}

.mobile-buy-bar-btn {
    flex: 1;
    min-height: 3.3rem;
}

.mobile-buy-bar-actions {
    display: flex;
    gap: 0.45rem;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

.mobile-buy-bar-actions .ui-btn {
    min-height: 3.1rem;
    white-space: nowrap;
}

.site-footer {
    background: #0b1220;
    color: #d1d5db;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.footer-brand .brand-logo {
    height: 3rem;
    max-width: 16rem;
}

.footer-title {
    color: #f8fafc;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.footer-text {
    color: #94a3b8;
    font-size: 0.93rem;
    line-height: 1.55;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer-social:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.footer-newsletter {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.footer-newsletter input {
    flex: 1;
    min-width: 190px;
    border-radius: 0.7rem;
    border: 1px solid #334155;
    background: #111827;
    color: #e2e8f0;
    padding: 0.54rem 0.68rem;
}

.footer-newsletter input::placeholder {
    color: #64748b;
}

.footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 0.95rem;
    color: #cbd5e1;
    font-size: 0.84rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #070d18;
}

.footer-muted {
    color: #94a3b8;
    font-size: 0.83rem;
}

.whatsapp-agent {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    line-height: 0;
    padding: 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    z-index: 1040;
}

.whatsapp-agent svg {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
}

.whatsapp-agent:hover {
    color: #fff;
    background: #1ebe5b;
}

/* Keep WhatsApp above the sticky mobile Buy now / Add to cart bar */
@media (max-width: 991.98px) {
    body:has(.mobile-buy-bar) .whatsapp-agent {
        bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
    }

    body:has(.mobile-buy-bar) {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
}

.page-loader-active {
    overflow: hidden;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(243, 244, 246, 0.74);
    backdrop-filter: blur(8px);
}

.page-loader-panel {
    min-width: min(20rem, 100%);
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.page-loader-spinner {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    border: 3px solid #dbeafe;
    border-top-color: #2563eb;
    animation: page-loader-spin 0.8s linear infinite;
}

.page-loader-copy {
    color: #334155;
    font-weight: 700;
    letter-spacing: -0.01em;
}

@keyframes page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.account-shell {
    position: relative;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    padding: clamp(1.25rem, 2vw, 2rem);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.account-page-frame .account-shell:not(.account-shell-auth) {
    max-height: none;
    overflow-y: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
    scroll-behavior: auto;
}

.account-shell-auth {
    width: min(100%, 58rem);
    margin-inline: auto;
    padding: 0;
}

.account-page-frame {
    position: relative;
}

.account-page-stage {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: transform 240ms ease, opacity 240ms ease;
    will-change: transform, opacity;
}

.account-page-stage.is-visible {
    opacity: 1;
}

.account-page-stage.is-swiping-out-left {
    opacity: 0;
    transform: translate3d(-46px, 0, 0);
}

.account-page-stage.is-swiping-out-right {
    opacity: 0;
    transform: translate3d(46px, 0, 0);
}

.account-page-stage.is-swiping-in-left {
    opacity: 0;
    transform: translate3d(-46px, 0, 0);
}

.account-page-stage.is-swiping-in-right {
    opacity: 0;
    transform: translate3d(46px, 0, 0);
}

.account-page-frame.is-loading {
    pointer-events: none;
}

.account-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.account-shell > * + * {
    margin-top: 1.5rem;
}

.auth-shell {
    position: relative;
    display: block;
}

.auth-main,
.auth-side {
    position: relative;
    z-index: 1;
}

.auth-main {
    min-height: clamp(34rem, 72vh, 46rem);
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-side {
    padding: 2rem;
    background: linear-gradient(160deg, #1d4ed8, #4f46e5 68%, #0f172a);
    color: #eff6ff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-kicker,
.account-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
}

.auth-kicker {
    color: #bfdbfe;
}

.auth-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.auth-copy {
    color: rgba(236, 254, 255, 0.82);
    max-width: 28rem;
    line-height: 1.6;
}

.auth-points {
    display: grid;
    gap: 0.85rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.auth-points li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.auth-point-icon {
    flex: 0 0 auto;
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.auth-point-title {
    display: block;
    font-weight: 700;
    color: #fff;
}

.auth-point-copy {
    display: block;
    color: rgba(236, 254, 255, 0.78);
    font-size: 0.92rem;
}

.auth-panel {
    width: min(100%, 34rem);
    max-width: 34rem;
    margin: 0 auto;
}

.auth-main > .auth-form-card {
    width: min(100%, 34rem);
}

.auth-panel .auth-form-card {
    width: 100%;
}

.auth-form-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.auth-form-grid {
    display: grid;
    gap: 1rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.form-field {
    display: grid;
    gap: 0.42rem;
}

.form-field label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1d4ed8;
}

.form-field .form-control,
.form-field .form-select {
    border-radius: 0.95rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 0.85rem 0.95rem;
    min-height: 3rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.form-field .form-control:focus,
.form-field .form-select:focus,
.auth-form-card .form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.12);
}

.auth-links-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-links-row a,
.auth-inline-link {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.auth-links-row a:hover,
.auth-inline-link:hover {
    color: #4338ca;
}

.auth-footer-note {
    color: #64748b;
    font-size: 0.9rem;
}

.auth-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
}

.auth-stat {
    padding: 0.95rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-stat strong {
    display: block;
    font-size: 1.15rem;
    color: #fff;
}

.auth-stat span {
    color: rgba(236, 254, 255, 0.8);
    font-size: 0.82rem;
}

.account-hero {
    position: relative;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 1.4rem;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(29, 78, 216, 0.96) 60%, rgba(14, 165, 233, 0.92)),
        #0f172a;
    color: #eff6ff;
    padding: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
}

.account-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    top: -80px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
}

.account-hero h1 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.account-hero-copy {
    color: rgba(219, 234, 254, 0.9);
    max-width: 42rem;
}

.account-hero-meta {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.account-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #eff6ff;
    font-size: 0.84rem;
    font-weight: 600;
}

.account-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.account-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    text-decoration: none;
    border: 1px solid #dbe4ea;
    background: rgba(255, 255, 255, 0.88);
    color: #1e3a8a;
    font-weight: 700;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.account-tab:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    color: #1e3a8a;
}

.account-tab.is-active {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(59, 130, 246, 0.24);
}

.account-grid {
    display: grid;
    gap: 1.5rem;
}

.account-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.account-card {
    position: relative;
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.account-card-body {
    padding: 1.75rem;
}

.account-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1.15rem;
}

.account-card-title h2,
.account-card-title h3 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.account-summary-list {
    display: grid;
    gap: 1.15rem;
}

.account-summary-row {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.account-summary-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    flex: 0 0 auto;
}

.account-summary-label {
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.account-summary-value {
    display: block;
    color: #0f172a;
    font-weight: 600;
}

.account-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.account-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 1.65rem;
    background: #f8fafc;
    color: #475569;
}

.account-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.account-stat-card {
    padding: 1.2rem 1.2rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid rgba(59, 130, 246, 0.12);
}

.account-stat-card strong {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    color: #1e3a8a;
}

.account-stat-card span {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.84rem;
}

.order-card {
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.order-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.55rem 1.65rem 1rem;
}

.order-card-body {
    padding: 0 1.65rem 1.65rem;
}

.order-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.76rem;
    font-weight: 700;
}

.order-items-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.order-item-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.1rem;
    background: #fff;
}

.tracking-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.tracking-step {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.95rem 1rem;
    color: #64748b;
    font-weight: 700;
    font-size: 0.88rem;
}

.tracking-step-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    background: #cbd5e1;
    flex-shrink: 0;
}

.tracking-step.is-complete {
    border-color: rgba(37, 99, 235, 0.18);
    background: linear-gradient(180deg, #eff6ff, #ffffff);
    color: #1e3a8a;
}

.tracking-step.is-complete .tracking-step-dot {
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.order-item-card a {
    color: inherit;
    text-decoration: none;
}

.address-stack {
    display: grid;
    gap: 1.25rem;
}

.address-card {
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.address-card-body {
    padding: 1.5rem;
}

.address-card-top {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.address-card-lines {
    display: grid;
    gap: 0.3rem;
    color: #64748b;
    margin-top: 1rem;
    margin-bottom: 1.15rem;
}

.address-card-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.form-section-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: 0.02em;
    margin: 0 0 0.35rem;
}

.account-note {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.55;
}

.account-page-spacer {
    display: grid;
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-side {
        order: -1;
    }

    .account-grid-2,
    .order-items-grid,
    .tracking-steps {
        grid-template-columns: 1fr;
    }

    .account-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-quick-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .account-page-frame .account-shell:not(.account-shell-auth) {
        max-height: none;
        overflow-y: visible;
        scrollbar-gutter: auto;
    }

    .account-shell {
        padding: 1rem;
    }

    .account-shell > * + * {
        margin-top: 1rem;
    }

    .account-page-stage.is-swiping-out-left,
    .account-page-stage.is-swiping-in-right {
        transform: translate3d(-24px, 0, 0);
    }

    .account-page-stage.is-swiping-out-right,
    .account-page-stage.is-swiping-in-left {
        transform: translate3d(24px, 0, 0);
    }

    .account-hero {
        padding: 1.35rem;
    }

    .auth-main,
    .auth-side,
    .account-card-body,
    .address-card-body,
    .order-card-head,
    .order-card-body {
        padding: 1.1rem;
    }

    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .auth-stat-row,
    .account-tabs {
        grid-template-columns: 1fr;
    }
}

body.cart-drawer-open {
    overflow: hidden;
}

body.cart-drawer-open .mobile-buy-bar,
body.cart-drawer-open .whatsapp-agent {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.shop-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.shop-toolbar,
.shop-results-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.shop-toolbar {
    justify-content: space-between;
    margin-bottom: 1rem;
}

.filter-panel,
.mobile-filter-panel {
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.filter-panel {
    position: sticky;
    top: 6rem;
    padding: 1rem;
}

.filter-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.7rem;
}

.filter-list,
.active-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.filter-link,
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.48rem 0.78rem;
    border-radius: 999px;
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
}

.filter-link.active,
.filter-chip {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.filter-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid #dbe3ee;
    border-radius: 1rem;
    padding: 0.8rem 0.95rem;
    color: #334155;
    text-decoration: none;
    font-weight: 700;
}

.filter-drawer {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: none;
}

.filter-drawer.is-open {
    display: block;
}

.filter-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.mobile-filter-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 85vh;
    overflow-y: auto;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 1rem;
}

.product-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0.55rem;
    aspect-ratio: 1 / 1;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0;
    background: #f8fafc;
    box-sizing: border-box;
}

.product-card-media.is-loading {
    animation: product-media-shimmer 1.1s ease-in-out infinite;
    background:
        linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 100%);
    background-size: 200% 100%;
}

.product-card-media .product-image,
.product-card-media .featured-image {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center center;
    border-radius: 0.75rem;
}

.product-card-media .product-image.product-image-secondary {
    position: absolute;
    inset: 0.55rem;
    width: calc(100% - 1.1rem);
    height: calc(100% - 1.1rem);
    min-width: calc(100% - 1.1rem);
    min-height: calc(100% - 1.1rem);
    z-index: 1;
    object-fit: cover;
    object-position: center center;
}

/* Visible by default so slow mobile JS / blocked images never leave blank white cards. */
.product-card-media .product-image:not(.product-image-secondary) {
    opacity: 1;
    transition: opacity 180ms ease;
}

.product-card-media.is-loading .product-image:not(.product-image-secondary):not(.is-loaded) {
    opacity: 0.35;
}

.product-card-media .product-image:not(.product-image-secondary).is-loaded {
    opacity: 1;
}

@keyframes product-media-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.product-image-secondary {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.product-card:hover .product-image-secondary {
    opacity: 1;
}

.product-card-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.8rem;
}

.product-card-actions > span,
.product-card-actions > .product-price,
.product-card-actions > .product-card-pricing {
    display: block;
}

.product-card-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.product-card-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.product-card-price-options-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-soft);
    margin-bottom: 0.3rem;
}

.product-card-price-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.product-card-price-option {
    appearance: none;
    border: 1px solid var(--line);
    background: var(--surface);
    color: inherit;
    border-radius: 0.55rem;
    padding: 0.35rem 0.55rem;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    min-width: 4.25rem;
    cursor: pointer;
    line-height: 1.15;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.product-card-price-option:hover {
    border-color: #94a3b8;
}

.product-card-price-option.is-active {
    border-color: #0f172a;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.product-card-price-option-qty {
    font-size: 0.68rem;
    font-weight: 600;
    opacity: 0.85;
}

.product-card-price-option-amount {
    font-size: 0.86rem;
    font-weight: 800;
}

.product-card-price-option-off {
    font-size: 0.65rem;
    font-weight: 700;
    color: #b45309;
}

.product-card-price-option.is-active .product-card-price-option-off {
    color: #fcd34d;
}

.product-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.product-availability::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #dc2626;
}

.product-availability.in-stock {
    color: #0f766e;
}

.product-availability.in-stock::before {
    background: #10b981;
}

.product-availability.low-stock {
    color: #b45309;
}

.product-availability.low-stock::before {
    background: #f59e0b;
}

.quick-add-btn {
    min-width: 130px;
}

.quick-add-btn[disabled] {
    background: #cbd5e1;
    box-shadow: none;
}

.cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(15, 23, 42, 0.44);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.cart-drawer-backdrop.is-open {
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100vw, 420px);
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    z-index: 1200;
    pointer-events: none;
    /* Keep closed drawer out of the compositor — avoids blank/black overlays on some phones. */
    visibility: hidden;
}

.cart-drawer-panel {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    background: #fff;
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform 0.26s ease;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.cart-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.cart-drawer.is-open .cart-drawer-panel {
    transform: translateX(0);
}

[dir="rtl"] .cart-drawer {
    left: 0;
    right: auto;
}

[dir="rtl"] .cart-drawer-panel {
    box-shadow: 18px 0 40px rgba(15, 23, 42, 0.18);
    transform: translateX(-100%);
}

.cart-drawer-head {
    padding: 1rem 1rem 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
}

.cart-drawer-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.cart-drawer-subtitle,
.cart-drawer-note {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.84rem;
}

.cart-drawer-close {
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
}

.cart-drawer-status {
    margin: 0.9rem 1rem 0;
    padding: 0.72rem 0.85rem;
    border-radius: 0.9rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.cart-drawer-status[data-state="success"] {
    background: #ecfdf5;
    color: #047857;
}

.cart-drawer-status[data-state="error"] {
    background: #fef2f2;
    color: #b91c1c;
}

.cart-drawer-progress {
    padding: 0.95rem 1rem 0;
}

.cart-drawer-progress-copy {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cart-drawer-progress-track {
    height: 0.45rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.cart-drawer-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
    transition: width 0.25s ease;
}

.cart-drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 1rem 1rem;
}

.cart-drawer-foot {
    flex: 0 0 auto;
    border-top: 1px solid var(--line);
    background: #fff;
    position: relative;
    z-index: 3;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06);
}

.cart-drawer-actions {
    margin-top: 0.9rem;
}

.cart-drawer-actions .ui-btn,
.cart-drawer-actions [data-cart-checkout] {
    position: relative;
    z-index: 4;
    pointer-events: auto;
    min-height: 3rem;
}

.cart-drawer-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--text-soft);
}

.cart-drawer-empty-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.cart-drawer-line {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eef2f7;
}

.cart-drawer-line-media {
    display: flex;
    width: 84px;
    height: 84px;
    border-radius: 1rem;
    overflow: hidden;
    background: #f8fafc;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.cart-drawer-line-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-drawer-line-content {
    min-width: 0;
}

.cart-drawer-line-top,
.cart-drawer-line-bottom,
.cart-drawer-total-row,
.cart-drawer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cart-drawer-line-title {
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
}

.cart-drawer-line-meta,
.cart-drawer-line-warning,
.cart-drawer-line-compare {
    color: var(--text-soft);
    font-size: 0.78rem;
}

.cart-drawer-line-warning {
    color: #b91c1c;
    font-weight: 700;
}

.cart-drawer-remove {
    border: 0;
    background: transparent;
    color: #64748b;
}

.cart-drawer-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    overflow: hidden;
}

.cart-drawer-qty button {
    width: 2rem;
    height: 2rem;
    border: 0;
    background: #fff;
    color: #0f172a;
}

.cart-drawer-qty span {
    min-width: 2rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
}

.cart-drawer-line-price {
    text-align: right;
}

.cart-drawer-actions > * {
    flex: 1;
}

.variant-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.variant-pill {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    padding: 0.58rem 0.95rem;
    font-weight: 700;
    font-size: 0.86rem;
}

.variant-pill.active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.mobile-nav-links {
    display: grid;
    gap: 0.2rem;
}

.mobile-nav-section-title {
    margin-top: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pdp-sticky-buy {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    padding-top: 0.75rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.hero-carousel-home .hero-slide {
    min-height: 0;
    max-height: none;
}

@media (min-width: 992px) {
    /* Desktop: keep full width, 20% shorter than natural 16:9 */
    .hero-slide-image,
    .hero-carousel-home .hero-slide-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 7.2;
        object-fit: cover;
        object-position: center center;
    }
}

.hero-controls .ui-btn-outline {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
}

.home-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.9fr);
    gap: 1.5rem;
    align-items: end;
    width: 100%;
}

.home-hero-aside {
    display: grid;
    gap: 1rem;
}

.home-hero-card {
    padding: 1.1rem 1.15rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    display: grid;
    gap: 0.25rem;
}

.home-hero-card strong {
    font-size: 2rem;
    line-height: 1;
}

.home-hero-card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.72);
}

.home-section {
    display: grid;
    gap: 1.5rem;
}

.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-section-head.compact {
    align-items: center;
}

.brands-marquee {
    position: relative;
    overflow: hidden;
    border-radius: 1.4rem;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 30%),
        linear-gradient(180deg, #f8fbff, #ffffff);
    padding: 1rem 0;
}

.brands-marquee-group {
    display: flex;
    width: max-content;
    min-width: 100%;
    animation: brand-marquee 22s linear infinite;
    will-change: transform;
}

.brands-track {
    display: flex;
    flex: 0 0 auto;
    gap: 0.9rem;
    padding-inline: 1rem;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 9rem;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.gift-guide-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.25rem;
    padding: clamp(1.4rem, 2vw, 2rem);
    border-radius: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.11), transparent 32%),
        linear-gradient(135deg, #f8fbff, #ffffff);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.gift-guide-copy {
    max-width: 34rem;
}

.gift-guide-actions,
.shop-cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.gift-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.gift-guide-card {
    min-height: 12rem;
    padding: 1rem;
    border-radius: 1.1rem;
    text-decoration: none;
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
    display: grid;
    align-content: end;
    gap: 0.45rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gift-guide-card:hover {
    transform: translateY(-4px);
    color: #0f172a;
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.gift-guide-card-kicker {
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.shop-cta-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.3rem 1.4rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.item-tag-soft {
    background: #eef2ff;
    color: #4338ca;
}

@keyframes brand-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 0.45rem));
    }
}

[dir="rtl"] .brands-marquee-group {
    animation-name: brand-marquee-rtl;
}

@keyframes brand-marquee-rtl {
    from {
        transform: translateX(calc(-50% - 0.45rem));
    }
    to {
        transform: translateX(0);
    }
}

@media (max-width: 991px) {
    .home-hero-layout,
    .gift-guide-panel {
        grid-template-columns: 1fr;
    }

    .navbar-modern .container {
        flex-wrap: wrap;
    }

    .navbar-modern .navbar-collapse {
        order: 4;
        flex-basis: 100%;
        width: 100%;
        margin-top: 0.75rem;
        padding: 0.9rem 1rem 0.4rem;
        border: 1px solid var(--line);
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    }

    .navbar-modern .navbar-collapse:not(.show) {
        display: none;
    }

    .navbar-modern .navbar-toggler {
        margin-left: 0;
    }

    .gift-guide-grid {
        grid-template-columns: 1fr;
    }

    .shop-cta-panel {
        align-items: start;
    }

    .shop-shell {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        display: none !important;
        position: static;
        top: auto;
    }

    .shop-shell > section.row {
        width: 100%;
        margin-inline: 0;
    }

    .shop-shell > section.row > [class*="col-"] {
        padding-inline: 0;
    }

    .mobile-filter-panel {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        max-height: calc(100vh - 5rem);
        border-radius: 1.2rem;
        padding: 1rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .product-info-card {
        position: static;
        top: auto;
    }

    .product-media-card {
        border-radius: 0.95rem;
        padding: 0.45rem;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    }

    .product-media-stage {
        width: min(100%, 360px);
        max-height: 360px;
        aspect-ratio: 1 / 1;
        border-radius: 0.75rem;
        padding: 0.45rem;
    }

    .product-gallery-main {
        inset: 0.45rem;
        width: calc(100% - 0.9rem);
        height: calc(100% - 0.9rem);
        border-radius: 0.65rem;
    }

    .product-gallery-nav {
        inset-inline: 0.45rem;
    }

    .product-gallery-nav-btn {
        width: 2.35rem;
        height: 2.35rem;
    }

    .product-gallery-thumbs {
        display: flex;
        gap: 0.55rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0.15rem 0.1rem 0.35rem;
        margin-top: 0.65rem;
        scrollbar-width: thin;
    }

    .product-gallery-colors {
        order: 2;
        margin-top: 0.15rem;
        padding: 0.15rem 0.2rem 0.1rem;
    }

    .product-gallery-colors .product-option-label {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
    }

    .product-gallery-colors .product-color-swatch {
        width: 1.9rem;
        height: 1.9rem;
    }

    .product-thumb {
        flex: 0 0 4.25rem;
        width: 4.25rem;
        aspect-ratio: 1 / 1;
        scroll-snap-align: start;
    }

    .product-corner-badge {
        right: 0.85rem;
        bottom: 0.85rem;
        left: auto;
        top: auto;
        font-size: 0.68rem;
        padding: 0.28rem 0.65rem;
    }

    .product-buy-actions {
        grid-template-columns: 1fr 1fr;
    }

    .product-buy-actions .product-support-btn {
        grid-column: 1 / -1;
    }

    .product-benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .announcement-bar {
        font-size: 0.78rem;
    }

    .navbar-modern .container {
        gap: 0.55rem;
    }

    .brand-modern span:last-child {
        display: none;
    }

    .brand-mark {
        width: 2.35rem;
        height: 2.35rem;
    }

    .brand-logo {
        height: 2.35rem;
        max-width: 11rem;
    }

    .header-utility-strip {
        gap: 0.35rem;
    }

    .header-icon-link {
        width: 2.7rem;
        height: 2.7rem;
        font-size: 1.2rem;
    }

    .language-switch-link {
        padding: 0 0.85rem;
    }

    .language-switch-label {
        font-size: 0.9rem;
    }

    .hero-carousel-home .hero-slide {
        min-height: 0;
        max-height: none;
    }

    .hero-slide {
        max-height: none;
    }

    .hero-slide-image {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .home-hero-card strong {
        font-size: 1.6rem;
    }

    .brand-pill {
        min-width: 7.5rem;
    }

    .product-card-actions {
        flex-direction: column;
    }

    .quick-add-btn,
    .buy-now-btn {
        flex: 1 1 auto;
        min-width: 0;
    }

    .cart-drawer-panel {
        width: 100vw;
    }

    .cart-drawer-actions {
        flex-direction: column;
    }

    .cart-drawer-actions > * {
        width: 100%;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .product-showcase {
        gap: 1.25rem;
    }

    .product-media-card {
        border-radius: 0.85rem;
        padding: 0.35rem;
        margin-inline: -0.15rem;
    }

    .product-media-stage {
        width: min(100%, 320px);
        max-height: 320px;
        aspect-ratio: 1 / 1;
        border-radius: 0.7rem;
        background: #eef2f7;
        padding: 0.4rem;
    }

    .product-gallery-main {
        inset: 0.4rem;
        width: calc(100% - 0.8rem);
        height: calc(100% - 0.8rem);
        object-fit: cover;
        object-position: center;
        border-radius: 0.6rem;
        background: #f8fafc;
    }

    .product-gallery-nav-btn {
        width: 2.15rem;
        height: 2.15rem;
        font-size: 0.95rem;
    }

    .product-thumb {
        flex: 0 0 3.85rem;
        width: 3.85rem;
        border-radius: 0.55rem;
    }

    .product-info-card,
    .product-tabs-shell {
        border-radius: 1.15rem;
        padding: 1.05rem;
    }

    .product-title {
        font-size: 1.35rem;
    }

    .product-price-large {
        font-size: 1.4rem;
    }
}
