/* ==========================================================================
   LEND — new Tailwind-based storefront theme (Phase 1: home/category/product)
   Shared by templates/base.html and everything that extends it.
   Ported from the supplied design templates (index.html / category.html /
   product.html) — class names and behaviour kept identical so the look is
   reproduced exactly, just wired to real Django data instead of mock markup.
   ========================================================================== */

:root {
    --gold-3: #d4b47c;
    --gold-2: #8f6f3e;
    --ink: #1a1815;
    --ink-3: #6b6460;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; background-color: #ffffff; padding-top: 75px; }
.rounded, .rounded-md, .rounded-lg, .rounded-xl, .rounded-full,
button, input, a, img, .card, [class*="rounded"] { border-radius: 4px; }
.rounded-full { border-radius: 50% !important; }

/* ============ NAVBAR ============ */
#mainNav {
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(25px) saturate(1.4);
    -webkit-backdrop-filter: blur(25px) saturate(1.4);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: all 0.3s ease;
}
.nav-link-lux { position: relative; transition: color .3s var(--ease); }
.nav-link-lux::after {
    content: ''; position: absolute; left: 50%; bottom: -6px; width: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-3), transparent);
    transition: width .4s var(--ease), left .4s var(--ease);
}
.nav-link-lux:hover::after { width: 100%; left: 0; }

.lang-switcher { display: flex; gap: 2px; align-items: center; margin-right: 0.25rem; }
.lang-btn-wrap {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1px; padding: 2px 4px; border-radius: 4px; min-width: 28px;
    transition: all 0.3s ease; cursor: pointer;
    background: transparent; border: 1px solid transparent;
}
.lang-btn-wrap:hover { background: rgba(255,255,255,0.08); }
.lang-btn-wrap.active { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.15); }
.lang-flag {
    width: 16px; height: 10px; object-fit: cover; border-radius: 1px;
    opacity: 0.55; transition: opacity 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.lang-btn-wrap.active .lang-flag { opacity: 1; }
.lang-btn-wrap:hover .lang-flag { opacity: 0.9; }
.lang-text { font-size: 8px; font-weight: 700; letter-spacing: 0.05em; color: rgba(255,255,255,0.6); transition: color 0.3s; }
.lang-btn-wrap.active .lang-text { color: #fbbf24; }
.lang-btn-wrap:hover .lang-text { color: #ffffff; }
@media (min-width: 1024px) {
    .lang-switcher { gap: 4px; margin-right: 0.75rem; }
    .lang-btn-wrap { gap: 3px; padding: 4px 8px; min-width: 40px; }
    .lang-flag { width: 22px; height: 14px; border-radius: 2px; }
    .lang-text { font-size: 10px; }
}

/* Mega Menu */
.mega-menu {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.98);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.group\/menu:hover > .mega-menu, .group\/menu:focus-within > .mega-menu {
    opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.mega-menu a {
    padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.25s ease, padding-left 0.25s ease;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; letter-spacing: 0.08em; color: rgba(255,255,255,0.8);
}
.mega-menu a:last-child { border-bottom: none; }
.mega-menu a:hover { background: rgba(255,255,255,0.08); color: #ffffff; padding-left: 24px; }

.sub-menu {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    opacity: 0; visibility: hidden; transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.group\/sub:hover > .sub-menu, .group\/sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateX(0); }
.sub-menu a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.sub-menu a:hover { padding-left: 24px; }

.nav-caret { font-size: 10px; margin-left: 4px; opacity: 0.85; transition: transform 0.3s ease, opacity 0.3s ease; display: inline-block; }
.group\/menu:hover .nav-caret { transform: rotate(180deg); opacity: 1; }

/* ============ SEARCH OVERLAY ============ */
#searchOverlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 12vh; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
#searchOverlay.open { opacity: 1; pointer-events: auto; }
#searchOverlay .search-inner { width: 100%; max-width: 720px; padding: 0 24px; transform: translateY(-30px); transition: transform 0.45s var(--ease); }
#searchOverlay.open .search-inner { transform: translateY(0); }
#searchInput {
    width: 100%; background: transparent; border: none; border-bottom: 2px solid rgba(255,255,255,0.3);
    color: #ffffff; font-size: 28px; padding: 16px 48px; outline: none;
    transition: border-color 0.3s ease; font-family: 'Playfair Display', serif;
}
#searchInput:focus { border-color: #d4b47c; }
#searchInput::placeholder { color: rgba(255,255,255,0.35); }
#searchResults::-webkit-scrollbar { width: 6px; }
#searchResults::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 10px; }
#searchResults::-webkit-scrollbar-thumb { background: rgba(212, 180, 124, 0.5); border-radius: 10px; }
#searchResults::-webkit-scrollbar-thumb:hover { background: rgba(212, 180, 124, 0.8); }

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.animate-marquee { animation: marquee 40s linear infinite; }

.img-zoom-container { overflow: hidden; }
.img-zoom { transition: transform 1.5s var(--ease); }
.img-zoom-container:hover .img-zoom { transform: scale(1.06); }

.link-underline { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.4s var(--ease); background-position-y: calc(100% - 2px); padding-bottom: 3px; }
.link-underline:hover { background-size: 100% 1px; }

/* ============ Trust badge ============ */
.trust-badge-section { background: linear-gradient(180deg, #FAF8F3 0%, #F5F1E8 50%, #FAF8F3 100%); position: relative; overflow: hidden; }
.trust-badge-section::before { content: ''; position: absolute; top: -120px; left: -120px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(194, 168, 120, 0.16) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.trust-badge-section::after { content: ''; position: absolute; bottom: -140px; right: -120px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(180, 160, 120, 0.14) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.trust-icon-wrap { position: relative; width: 92px; height: 92px; margin: 0 auto 1.5rem; }
.trust-icon-ring { position: absolute; inset: 0; border-radius: 50%; padding: 2px; transition: transform 0.7s var(--ease); }
.trust-icon-inner { position: absolute; inset: 3px; border-radius: 50%; background: #ffffff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.08), inset 0 1px 2px rgba(255,255,255,0.9); transition: all 0.5s var(--ease); }
.trust-icon-inner i { font-size: 2.15rem; transition: all 0.5s var(--ease); }
.trust-card-blue .trust-icon-ring { background: conic-gradient(from 220deg, #3B82F6 0%, #93C5FD 30%, #3B82F6 60%, #93C5FD 100%); }
.trust-card-blue .trust-icon-inner i { color: #2563EB; }
.trust-card-blue:hover .trust-icon-inner { box-shadow: 0 10px 26px rgba(59, 130, 246, 0.35), inset 0 1px 2px rgba(255,255,255,0.9); }
.trust-card-green .trust-icon-ring { background: conic-gradient(from 220deg, #10B981 0%, #6EE7B7 30%, #10B981 60%, #6EE7B7 100%); }
.trust-card-green .trust-icon-inner i { color: #059669; }
.trust-card-green:hover .trust-icon-inner { box-shadow: 0 10px 26px rgba(16, 185, 129, 0.35), inset 0 1px 2px rgba(255,255,255,0.9); }
.trust-card-purple .trust-icon-ring { background: conic-gradient(from 220deg, #8B5CF6 0%, #C4B5FD 30%, #8B5CF6 60%, #C4B5FD 100%); }
.trust-card-purple .trust-icon-inner i { color: #7C3AED; }
.trust-card-purple:hover .trust-icon-inner { box-shadow: 0 10px 26px rgba(139, 92, 246, 0.35), inset 0 1px 2px rgba(255,255,255,0.9); }
.trust-card-orange .trust-icon-ring { background: conic-gradient(from 220deg, #F59E0B 0%, #FCD34D 30%, #F59E0B 60%, #FCD34D 100%); }
.trust-card-orange .trust-icon-inner i { color: #D97706; }
.trust-card-orange:hover .trust-icon-inner { box-shadow: 0 10px 26px rgba(245, 158, 11, 0.35), inset 0 1px 2px rgba(255,255,255,0.9); }
.trust-card { position: relative; background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(10px); border: 1px solid rgba(220, 210, 190, 0.6); padding: 1.5rem 1rem; text-align: center; transition: all 0.55s var(--ease); overflow: hidden; }
.trust-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; opacity: 0; transition: opacity 0.5s ease; }
.trust-card-blue::after { background: linear-gradient(90deg, transparent, #3B82F6, transparent); }
.trust-card-green::after { background: linear-gradient(90deg, transparent, #10B981, transparent); }
.trust-card-purple::after { background: linear-gradient(90deg, transparent, #8B5CF6, transparent); }
.trust-card-orange::after { background: linear-gradient(90deg, transparent, #F59E0B, transparent); }
.trust-card:hover { background: #ffffff; border-color: rgba(194, 168, 120, 0.4); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.15); transform: translateY(-8px); }
.trust-card:hover::after { opacity: 1; }
.trust-card:hover .trust-icon-ring { transform: rotate(180deg); }
.trust-card:hover .trust-icon-inner i { transform: scale(1.12); }

/* ============ Category tiles ============ */
.category-tile { position: relative; overflow: hidden; background: #EBE7DE; }
.category-tile .bg-blur { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.1); opacity: 0.55; transform: scale(1.1); transition: transform 1.5s var(--ease); }
.category-tile:hover .bg-blur { transform: scale(1.2); }
.category-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s var(--ease); z-index: 1; }
.category-tile:hover img { transform: scale(1.06); }

/* ============ Product image frame ============ */
.product-img-frame { background: #faf7f2; overflow: hidden; position: relative; }
.product-img-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .8s var(--ease); }

.hover-add { opacity: 0; transform: translateY(12px) scale(0.92); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); pointer-events: none; }
.product-card:hover .hover-add, .banner-card:hover .hover-add { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.size-btn.active { background-color: #0a0a0a; color: #fff; border-color: #0a0a0a; }

.glass-section-bg { position: relative; background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); overflow: hidden; }
.glass-section-bg::before { content: ''; position: absolute; top: -10%; left: -5%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(232, 215, 194, 0.6) 0%, transparent 70%); border-radius: 50%; filter: blur(60px); pointer-events: none; }
.glass-section-bg::after { content: ''; position: absolute; bottom: -10%; right: -5%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(200, 210, 220, 0.6) 0%, transparent 70%); border-radius: 50%; filter: blur(60px); pointer-events: none; }
.glass-newsletter { background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 20px 50px rgba(0,0,0,0.05); }

/* ============ Cart drawer ============ */
#cartDrawer { transform: translateX(100%); transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border-left: 1px solid rgba(255,255,255,0.6); box-shadow: -10px 0 40px rgba(0,0,0,0.12); }
#cartDrawer.open { transform: translateX(0); }
#cartOverlay { opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
#cartOverlay.open { opacity: 1; pointer-events: auto; }
.cart-header-glass { background: rgba(255, 255, 255, 0.5); border-bottom: 1px solid rgba(255,255,255,0.5); }
.cart-footer-glass { background: rgba(255, 255, 255, 0.6); border-top: 1px solid rgba(255,255,255,0.6); box-shadow: 0 -10px 30px rgba(0,0,0,0.03); }
.cart-close-btn { transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.cart-close-btn:hover { transform: rotate(90deg) scale(1.1); background: rgba(0,0,0,0.05); color: #dc2626; }
.cart-item { transition: all 0.3s var(--ease); }
.cart-item.removing { opacity: 0; transform: translateX(60px) scale(0.9); pointer-events: none; }
.qty-btn { transition: all 0.2s ease; }
.qty-btn:active { transform: scale(0.85); }
.shipping-progress-bg { background: rgba(0,0,0,0.06); overflow: hidden; }
.shipping-progress-fill { background: linear-gradient(90deg, #d4af37, #8a6d3e); transition: width 0.6s var(--ease); }

.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

.flying-cart-clone { position: fixed; pointer-events: none; z-index: 9999; will-change: transform, opacity; object-fit: cover; border-radius: 4px; }

/* Mobile Bottom Nav */
@media (max-width: 1023px) { body { padding-bottom: 70px; } }
.mobile-bottom-nav { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); box-shadow: 0 -4px 20px rgba(0,0,0,0.05); border-top: 1px solid rgba(0,0,0,0.05); }

/* Add to bag button */
.add-bag-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 22px; font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.18em; background: #0a0a0a; color: #ffffff; border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25); transition: background 0.3s ease, transform 0.3s ease;
    border: none; cursor: pointer;
}
.add-bag-btn:hover { background: #b45309; transform: translateY(-1px); color: #fff; }

/* Mobile drawer accordion styles */
.mobile-menu-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-menu-item .toggle-submenu { transition: transform 0.3s ease; }
.mobile-menu-item .toggle-submenu.open { transform: rotate(180deg); }
.submenu { transition: max-height 0.3s ease, opacity 0.3s ease; overflow: hidden; max-height: 0; opacity: 0; }
.submenu.open { max-height: 600px; opacity: 1; }

/* Toasts (shared with legacy base.js visual language, restyled) */
.toast-notif-new {
    position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
    background: #0a0a0a; color: #fff; padding: 12px 24px; border-radius: 4px;
    font-size: 13px; letter-spacing: 0.02em; z-index: 9998; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 1; transition: opacity 0.3s ease;
}
@media (min-width: 1024px) { .toast-notif-new { bottom: 32px; } }

/* Hero */
.hero-title-main { font-size: 21px; }
@media (min-width: 768px) { .hero-title-main { font-size: 36px; } }
@media (min-width: 1024px) { .hero-title-main { font-size: 43px; } }
.hero-sub-text { font-size: 17px; }
@media (min-width: 768px) { .hero-sub-text { font-size: 19px; } }
.hero-cta-text { font-size: 13px; }
@media (min-width: 768px) { .hero-cta-text { font-size: 15px; } }
.hero-fade { opacity: 0; transition: opacity 1.2s ease; position: absolute; inset: 0; }
.hero-fade.active { opacity: 1; }

/* ================= RESPONSIVE OVERRIDES ================= */
@media (max-width: 767px) {
    .mobile-section-title { text-align: center !important; }
    .mobile-section-title h2, .mobile-section-title .title-text {
        font-size: 1.5rem !important; line-height: 1.25 !important;
    }
    .mobile-section-title .flex { justify-content: center !important; text-align: center !important; }
}
@media (max-width: 767px) {
    .trust-badge-section .grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.5rem !important; }
    .trust-card { background: #ffffff !important; border: 1px solid rgba(220, 210, 190, 0.6) !important; box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important; padding: 1rem 0.5rem !important; transform: none !important; }
    .trust-card:hover { transform: none !important; }
    .trust-card h3 { font-size: 10px !important; line-height: 1.2 !important; margin-top: 0.5rem !important; margin-bottom: 0 !important; text-align: center !important; }
    .trust-card p { display: none !important; }
    .trust-icon-wrap { width: 50px !important; height: 50px !important; margin-bottom: 0 !important; }
    .trust-icon-inner i { font-size: 1.3rem !important; }
}
@media (max-width: 767px) {
    .category-tile .bottom-6 { bottom: 1.5rem !important; left: 1.5rem !important; }
    .category-tile h2 { font-size: 3rem !important; }
    .category-tile span { font-size: 22px !important; }
}
@media (min-width: 1024px) { .banner-img { aspect-ratio: 3/4 !important; } }
@media (max-width: 767px) {
    .banner-grid { padding-left: 0.75rem !important; padding-right: 0.75rem !important; gap: 5px !important; }
    .banner-img { aspect-ratio: 3/4 !important; }
}
@media (max-width: 1023px) {
    .product-card .hover-add, .product-card .size-options { display: none !important; }
    .product-card .px-3 { padding-left: 4px !important; padding-right: 4px !important; }
    .product-card h4 { font-size: 16px !important; }
    .product-card .price { font-size: 1rem !important; }
    .product-grid-container { padding-left: 0 !important; padding-right: 0 !important; max-width: 100% !important; }
    .product-grid { gap: 2px !important; }
}
.blog-img { object-fit: cover; object-position: top; }

/* ==========================================================================
   CATEGORY / SHOP LISTING PAGE (templates/catalog/category.html)
   ========================================================================== */

/* Product card hover-lift (unused by any prior rule, so safe to apply to
   every .product-card everywhere — home.html's cards pick this up too). */
.product-card {
    background: #ffffff; border: 1px solid #e8e2d6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.4s var(--ease);
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
}
.product-card:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.08); transform: translateY(-5px); border-color: var(--gold-3); }

/* Category/product pages show the whole garment rather than a cropped lifestyle shot. */
.page-category .product-img-frame img, .page-product .product-img-frame img { object-fit: contain; object-position: center; }

/* Category-page "Add to Bag" button (gradient + shine sweep) — a distinct
   class so it never changes the simpler .add-bag-btn already used on home.html. */
.add-bag-btn-cat {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 15px 20px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.2em;
    background: linear-gradient(135deg, #1a1815 0%, #3d3733 100%);
    color: #ffffff; border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.1);
    position: relative; overflow: hidden; width: 80%; margin: 0 auto;
}
.add-bag-btn-cat::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.add-bag-btn-cat:hover::before { left: 100%; }
.add-bag-btn-cat:hover {
    background: linear-gradient(135deg, #b45309 0%, #8f6f3e 100%);
    box-shadow: 0 12px 30px rgba(184, 147, 90, 0.4); transform: translateY(-2px); color: #fff;
}

/* Dark glass size-selector pills shown over a variable product's card on hover */
.size-options {
    background: rgba(20, 18, 15, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    padding: 10px 16px; border-radius: 30px;
}
.size-btn {
    background: transparent; color: #ffffff; border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.25s var(--ease); width: 32px; height: 32px; border-radius: 50%; font-size: 12px;
}
.size-btn:hover { background: #d4b47c; color: #0a0a0a; border-color: #d4b47c; transform: scale(1.1); box-shadow: 0 0 15px rgba(212, 180, 124, 0.5); }

/* Pagination */
.page-btn, .page-nav-btn {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border: 1px solid #e0dad0; font-weight: 600; font-size: 14px;
    transition: all 0.3s var(--ease); background: #fff; border-radius: 4px;
}
.page-btn { color: var(--ink); }
.page-nav-btn { color: var(--ink-3); }
.page-btn:hover, .page-nav-btn:hover:not(.disabled) { border-color: var(--gold-3); color: var(--gold-2); background: #fdfbf7; }
.page-btn.active { background: var(--ink); color: #ffffff; border-color: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.page-nav-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* Filter sidebar accordion */
.filter-group { border-bottom: 1px solid #e7e2d9; padding-bottom: 1rem; padding-right: 4px; }
.filter-group:last-child { border-bottom: none; }
.filter-toggle { cursor: pointer; transition: color .3s var(--ease); padding-right: 8px; background: none; border: none; }
.filter-toggle:hover { color: var(--gold-2); }
.filter-toggle .chev { transition: transform .35s var(--ease); }
.filter-group.open .filter-toggle .chev { transform: rotate(180deg); }
.filter-body { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.filter-group.open .filter-body { max-height: 2000px; }

.size-opt, .color-opt, .cat-opt { cursor: pointer; transition: all .25s var(--ease); user-select: none; text-decoration: none; display: block; }
.size-opt { border: 1px solid #e0dad0; padding: 6px 10px; font-size: 12.5px; background: #fff; color: var(--ink); }
.size-opt:hover { border-color: var(--ink); }
.size-opt.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.color-opt { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; transition: all .3s var(--ease); }
.color-opt:hover { transform: scale(1.1); }
.color-opt.active { border-color: var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink); }
.cat-opt { font-size: 13px; padding: 6px 4px 6px 0; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.cat-opt:hover { color: var(--gold-2); }
.cat-opt.active { font-weight: 600; color: var(--gold-2); }
.cat-opt .count { font-size: 11px; color: #a29a92; padding-right: 4px; }

input[type="range"] { -webkit-appearance: none; width: 100%; height: 3px; background: #e0dad0; outline: none; border-radius: 2px; margin-right: 4px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; background: var(--ink); cursor: pointer; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; background: var(--ink); cursor: pointer; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }

.sort-select { border: 1px solid #e0dad0; padding: 8px 32px 8px 12px; font-size: 13px; appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%231a1815' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; transition: border-color .3s var(--ease); color: var(--ink); }
.sort-select:focus { outline: none; border-color: var(--ink); }

@media (max-width: 1023px) {
    #filterPanel { position: fixed; top: 0; left: -100%; width: 90%; max-width: 380px; height: 100vh; background: #fff; z-index: 150; overflow-y: auto; transition: left .4s var(--ease); box-shadow: 4px 0 40px rgba(0,0,0,.15); padding: 1.5rem; }
    #filterPanel.mobile-open { left: 0; }
    #filterBackdrop { opacity: 0; pointer-events: none; transition: opacity .3s ease; }
    #filterBackdrop.mobile-open { opacity: 1; pointer-events: auto; }
}
#filterPanel { scrollbar-width: thin; scrollbar-color: #d4b47c #f4efe6; }
#filterPanel::-webkit-scrollbar { width: 8px; }
#filterPanel::-webkit-scrollbar-track { background: #f4efe6; border-radius: 10px; margin-block: 10px; }
#filterPanel::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #d4b47c 0%, #e8b4bc 50%, #8f6f3e 100%); border-radius: 10px; border: 2px solid #f4efe6; }

.geo-text h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--ink); margin-bottom: 1rem; line-height: 1.2; }
.geo-text h3 { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--ink); margin-top: 1.75rem; margin-bottom: .75rem; }
.geo-text p { color: #3d3733; line-height: 1.85; margin-bottom: 1rem; font-size: 15px; }
.geo-text ul { margin: 1rem 0; padding-left: 1.25rem; }
.geo-text li { color: #3d3733; line-height: 1.85; margin-bottom: .5rem; font-size: 15px; list-style: disc; }
.geo-text strong { color: var(--ink); }

.section-kicker { display: inline-flex; align-items: center; gap: 12px; letter-spacing: .42em; font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.section-kicker::before, .section-kicker::after { content: ''; width: 28px; height: 1px; background: var(--gold-3); }

.breadcrumb-link { transition: color .3s var(--ease); color: inherit; }
.breadcrumb-link:hover { color: var(--ink); }

.filter-chip { display: inline-flex; align-items: center; gap: 6px; background: #f4efe6; border: 1px solid #e0dad0; padding: 5px 10px; font-size: 12px; border-radius: 20px; color: #3d3733; text-decoration: none; }
.filter-chip:hover { color: #dc2626; border-color: #dc2626; }

@media (max-width: 1023px) {
    .product-card .size-options { display: none !important; }
}

/* ==========================================================================
   PRODUCT DETAIL PAGE (templates/catalog/product_detail.html)
   ========================================================================== */

.btn-lux { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.6rem; font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid transparent; transition: all .35s var(--ease); overflow: hidden; cursor: pointer; text-decoration: none; }
.btn-lux::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,.15) 50%, transparent 100%); transform: translateX(-100%); transition: transform .8s var(--ease); pointer-events: none; }
.btn-lux:hover::before { transform: translateX(100%); }
.btn-lux:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(135deg,#1a1815 0%,#2c2621 100%); color: #fff; border-color: #1a1815; box-shadow: 0 4px 14px -4px rgba(26,24,21,.4); }
.btn-primary:hover { background: linear-gradient(135deg,#2c2621 0%,#1a1815 100%); box-shadow: 0 8px 24px -6px rgba(26,24,21,.5); transform: translateY(-1px); border-color: var(--gold-3); color: #fff; }
.btn-outline-lux { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline-lux:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg,#b8935a 0%,#8f6f3e 100%); color: #fff; border-color: transparent; box-shadow: 0 4px 14px -4px rgba(184,147,90,.5); }
.btn-gold:hover { background: linear-gradient(135deg,#a37f48 0%,#7a5c32 100%); box-shadow: 0 8px 24px -6px rgba(184,147,90,.6); transform: translateY(-1px); color: #fff; }
.btn-lux:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.shake-anim { animation: shake .45s cubic-bezier(.36,.07,.19,.97); }

/* Gallery */
.product-gallery-column { display: flex; flex-direction: column; width: 100%; }
.gallery-img { scroll-margin-top: 100px; aspect-ratio: 4/5; transition: all .5s var(--ease); background: var(--cream, #faf7f2); }
.gallery-img img { transition: transform 1s var(--ease); }
.gallery-img:hover img { transform: scale(1.03); }
.gallery-main-card { background: linear-gradient(180deg,#fff 0%,#fdfbf7 100%); padding: 10px; border: 1px solid var(--line, #e8e2d6); box-shadow: 0 8px 24px -4px rgba(28,25,23,.1); margin-bottom: 26px; position: relative; transition: all .5s var(--ease); }
@media (min-width: 768px) { .gallery-main-card { padding: 14px; margin-bottom: 30px; } }
.gallery-thumbs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; width: 100%; padding: 0 11px; margin: 0 auto; }
@media (min-width: 768px) { .gallery-thumbs { gap: 20px; padding: 0 15px; } }
.gallery-thumbs .gallery-img { border: 1px solid var(--line, #e8e2d6); transition: all .4s var(--ease); cursor: zoom-in; }
.gallery-thumbs .gallery-img:hover { box-shadow: 0 4px 12px -2px rgba(28,25,23,.08); border-color: var(--gold-3); transform: translateY(-2px); }

/* Colour swatches */
.colour-swatch { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line, #e8e2d6); padding: 3px; background: #fff; transition: all .3s var(--ease); position: relative; cursor: pointer; flex-shrink: 0; }
.colour-swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.colour-swatch:hover { transform: translateY(-2px); }
.colour-swatch[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink); transform: translateY(-2px); }

/* Size buttons on the product detail page (distinct from category.html's pill .size-btn) */
.size-btn-pdp { transition: all .3s var(--ease); position: relative; letter-spacing: .04em; }
.size-btn-pdp:hover:not(:disabled) { border-color: var(--ink); background: var(--cream, #faf7f2); transform: translateY(-1px); }
.size-btn-pdp[aria-checked="true"] { background: linear-gradient(135deg,#1a1815,#2c2621); color: #fff; border-color: var(--ink); transform: translateY(-1px); }
.size-btn-pdp:disabled { background: repeating-linear-gradient(-45deg,transparent,transparent 6px,rgba(0,0,0,.025) 6px,rgba(0,0,0,.025) 12px); color: var(--ink-4, #a29a92); cursor: not-allowed; border-color: var(--line-2, #f0ebe0) !important; }

/* "The LEND Edit" editorial box */
.lend-edit { position: relative; overflow: hidden; background: radial-gradient(ellipse at top right, rgba(242,230,208,.5) 0%, transparent 60%), linear-gradient(160deg,#fdfbf7 0%,#fff 45%,#f7f2e6 100%); border: 1px solid var(--line, #e8e2d6); box-shadow: 0 8px 24px -4px rgba(28,25,23,.1); border-radius: 10px; }
.lend-edit::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg,var(--gold-3),#b8935a,#8f6f3e,#b8935a,var(--gold-3)); }
.lend-edit-kicker { letter-spacing: .42em; display: inline-flex; align-items: center; gap: 8px; }
.lend-edit-kicker::before, .lend-edit-kicker::after { content: ''; width: 24px; height: 1px; background: linear-gradient(90deg,transparent,#8f6f3e,transparent); }
.lend-edit-benefit { background: linear-gradient(180deg,rgba(255,255,255,.9),rgba(253,251,247,.7)); border: 1px solid var(--line, #e8e2d6); padding: 18px 20px; transition: all .4s var(--ease); position: relative; overflow: hidden; }
.lend-edit-benefit::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: #b8935a; transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.lend-edit-benefit:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 12px 28px -12px rgba(184,147,90,.4); border-color: var(--gold-3); }
.lend-edit-benefit:hover::before { transform: scaleY(1); }
.editorial-lead { font-weight: 400; letter-spacing: -.005em; }
.lend-edit .geo-text { text-align: left; }
.lend-edit .geo-text h2, .lend-edit .geo-text h3 { text-align: left; }

/* Lightbox / size guide modal */
#lightbox, #sizeModal { display: none; animation: fadeInPdp .35s var(--ease); }
#lightbox.open, #sizeModal.open { display: flex; }
@keyframes fadeInPdp { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalEnterPdp { from { opacity: 0; transform: scale(.94) translateY(16px); } to { opacity: 1; transform: none; } }
.modal-shell { animation: modalEnterPdp .5s var(--ease); }
.measurement-row:hover td { background: #fef7ec !important; }
.measurement-row td { transition: background .25s var(--ease); }

/* Mobile sticky add-to-bag bar */
#stickyBar { transform: translateY(110%); transition: transform .5s var(--ease); background: linear-gradient(180deg,rgba(255,255,255,.96),rgba(250,247,242,.92)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(232,226,214,.8); box-shadow: 0 -12px 30px -10px rgba(28,25,23,.15); }
#stickyBar.show { transform: translateY(0); }
@media (min-width: 1024px) { #stickyBar { display: none !important; } }

/* FAQ / spec accordions (shared look across product + category pages) */
details.faq-item, details.product-acc { transition: all .3s var(--ease); border-bottom: 1px solid var(--line, #e8e2d6); }
details.faq-item summary::-webkit-details-marker, details.product-acc summary::-webkit-details-marker { display: none; }
details.faq-item summary, details.product-acc summary { list-style: none; cursor: pointer; position: relative; }
details.faq-item summary:hover, details.product-acc summary:hover { color: var(--gold-2); }
details.faq-item[open] .faq-chevron, details.product-acc[open] .acc-chevron { transform: rotate(180deg); color: var(--gold-3); }
.faq-chevron, .acc-chevron { transition: transform .4s var(--ease), color .3s var(--ease); }

/* Small trust icon row (compact variant used on the product page) */
.trust-icon-wrap-sm { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.trust-icon-ring-sm { position: absolute; inset: 0; border-radius: 50%; opacity: .9; }
.trust-icon-inner-sm { position: absolute; inset: 2px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .3s var(--ease); }
.trust-icon-wrap-sm:hover .trust-icon-inner-sm { transform: scale(1.08); }
.trust-blue-sm .trust-icon-ring-sm { background: conic-gradient(from 220deg,#60a5fa,#93c5fd,#3b82f6); } .trust-blue-sm .trust-icon-inner-sm i { color: #1d4ed8; }
.trust-green-sm .trust-icon-ring-sm { background: conic-gradient(from 220deg,#34d399,#6ee7b7,#10b981); } .trust-green-sm .trust-icon-inner-sm i { color: #047857; }
.trust-purple-sm .trust-icon-ring-sm { background: conic-gradient(from 220deg,#a78bfa,#c4b5fd,#8b5cf6); } .trust-purple-sm .trust-icon-inner-sm i { color: #6d28d9; }
.trust-orange-sm .trust-icon-ring-sm { background: conic-gradient(from 220deg,#fbbf24,#fcd34d,#f59e0b); } .trust-orange-sm .trust-icon-inner-sm i { color: #b45309; }

/* Recently viewed marquee */
@keyframes marqueePdp { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rv-track { display: flex; gap: 1.75rem; width: max-content; animation: marqueePdp 60s linear infinite; }
.rv-track:hover { animation-play-state: paused; }
.rv-card { transition: all .45s var(--ease); }
.rv-card:hover { transform: translateY(-8px); }
.rv-card:hover .rv-img { transform: scale(1.05); }
.rv-img { transition: transform .8s var(--ease); }

.prod-grid-card { transition: all .4s var(--ease); }
.prod-grid-card:hover { transform: translateY(-3px); }
.prod-grid-card:hover img { transform: scale(1.04); }
.prod-grid-card img { transition: transform .8s var(--ease); }


/* ==========================================================================
   PHASE 2 — JOURNAL (Blog + Magazine/Interviews) and PROMO CODES
   Ported 1:1 from blogarticle.html / interview.html / bloglists.html /
   interviewlists.html / promopage.html. Everything sits under `.jscope`
   (a wrapper div) so the mock's "every corner is 4px" rule doesn't leak into
   the shop pages, the header or the footer.
   ========================================================================== */
:root {
    --cream: #faf7f2;
    --line: #e8e2d6;
    --ink-4: #a29a92;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Article pages run their hero under the fixed nav, so drop the body offset. */
body.page-journal-article { padding-top: 0; }
body.page-promo { background-color: #fcfbf9; }

.jscope * { border-radius: 4px !important; }
.jscope .rounded-full { border-radius: 9999px !important; }
.jscope ::selection { background: var(--gold-3); color: var(--ink); }

/* ---- Reading progress bar */
#readProgress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
    z-index: 60; transition: width .1s linear; box-shadow: 0 0 10px rgba(184,147,90,.5);
}

/* ---- Interview cover */
.hero-interview { position: relative; min-height: 90vh; background: #0e0d0b; overflow: hidden; }
.hero-interview::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,.55) 50%, rgba(10,10,10,.92) 100%);
}
.hero-interview > .relative { position: relative; z-index: 10; }

/* ---- Article typography */
.article-body p { font-size: 18px; line-height: 1.85; color: #3d3733; margin-bottom: 24px; font-weight: 400; letter-spacing: -0.005em; }
.article-body p strong { color: var(--ink); font-weight: 600; }
.article-body p em { font-style: italic; color: var(--ink); }
.article-body p a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(143,111,62,.4); transition: text-decoration-color .3s var(--ease); }
.article-body p a:hover { text-decoration-color: var(--gold-2); }
.article-body h2 { font-family: 'Playfair Display', serif; font-size: 32px; line-height: 1.25; color: var(--ink); margin-top: 56px; margin-bottom: 20px; letter-spacing: -0.01em; font-weight: 500; }
.article-body h3 { font-family: 'Playfair Display', serif; font-size: 24px; line-height: 1.35; color: var(--ink); margin-top: 40px; margin-bottom: 16px; font-weight: 500; }
@media (min-width: 768px) {
    .article-body h2 { font-size: 38px; }
    .article-body h3 { font-size: 26px; }
}
.article-body ul, .article-body ol { margin: 24px 0; padding-left: 4px; }
.article-body ul li, .article-body ol li { font-size: 17.5px; line-height: 1.75; color: #3d3733; margin-bottom: 14px; padding-left: 28px; position: relative; list-style: none; }
.article-body ul li::before { content: ''; position: absolute; left: 6px; top: 12px; width: 6px; height: 6px; background: var(--gold-2); transform: rotate(45deg); }
.article-body ol { counter-reset: item; }
.article-body ol li { counter-increment: item; }
.article-body ol li::before { content: counter(item) '.'; position: absolute; left: 0; top: 0; font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--gold-2); }
.article-body li strong { color: var(--ink); font-weight: 600; }

.drop-cap::first-letter {
    font-family: 'Playfair Display', serif; font-size: 5.5rem; line-height: 0.85; font-weight: 700;
    float: left; margin: 8px 14px 0 0; color: var(--gold-2); letter-spacing: -0.02em;
}

.pull-quote { position: relative; padding: 36px 0 36px 48px; margin: 48px 0; border-left: 3px solid var(--gold-3); }
.pull-quote::before { content: '\201C'; position: absolute; top: -12px; left: 12px; font-family: 'Playfair Display', serif; font-size: 90px; line-height: 1; color: rgba(184,147,90,.2); font-weight: 400; }
.article-body .pull-quote p { font-family: 'Fraunces', 'Playfair Display', serif; font-size: 24px; line-height: 1.5; font-style: italic; color: var(--ink); margin: 0; font-weight: 400; }
@media (min-width: 768px) { .article-body .pull-quote p { font-size: 28px; } }

.callout { background: linear-gradient(135deg, #faf7f2, #f4efe6); border: 1px solid var(--line); border-left: 3px solid var(--gold-2); padding: 24px 28px; margin: 32px 0; }
.article-body .callout p { margin-bottom: 0 !important; font-size: 15px !important; color: var(--ink-3) !important; }
.callout strong { color: var(--ink); }

/* ---- Interview Q&A */
.qa-block { margin: 48px 0; }
.qa-q { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.qa-q .q-marker { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--gold-2); letter-spacing: .02em; flex-shrink: 0; min-width: 32px; }
.qa-q .q-text { font-family: 'Fraunces', 'Playfair Display', serif; font-size: 22px; line-height: 1.45; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
@media (min-width: 768px) { .qa-q .q-text { font-size: 24px; } }
.qa-a { padding-left: 0; }
.qa-a p { font-size: 18px; line-height: 1.85; color: #3d3733; margin-bottom: 20px; }
.qa-a p:last-child { margin-bottom: 0; }
.qa-a p em { font-style: italic; color: var(--ink); }

/* ---- Small furniture */
.kicker { display: inline-flex; align-items: center; gap: 12px; letter-spacing: .42em; font-size: 10.5px; text-transform: uppercase; font-weight: 700; color: var(--gold-2); }
.kicker::before, .kicker::after { content: ''; width: 24px; height: 1px; background: var(--gold-3); }

.meta-bar { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--ink-3); }
.meta-item i { color: var(--gold-2); font-size: 12px; }

.author-card { display: flex; gap: 20px; align-items: center; padding: 24px; background: linear-gradient(135deg, #faf7f2, #f4efe6); border: 1px solid var(--line); border-left: 3px solid var(--gold-2); }
.author-avatar { width: 64px; height: 64px; border-radius: 50% !important; object-fit: cover; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.1); flex-shrink: 0; }
.author-initial { display: grid; place-items: center; background: var(--ink); color: #fff; font-family: 'Playfair Display', serif; font-size: 24px; }

.share-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink-3); transition: all .3s var(--ease); cursor: pointer; }
.share-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }

.related-card { transition: all .4s var(--ease); display: block; }
.related-card:hover { transform: translateY(-4px); }
.related-card:hover .related-img { transform: scale(1.05); }
.related-img { transition: transform .8s var(--ease-out); }

.divider-ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 60px 0; }
.divider-ornament::before, .divider-ornament::after { content: ''; flex: 1; height: 1px; background: var(--line); max-width: 80px; }
.divider-ornament span { width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--gold-3); }

#backTop { position: fixed; bottom: 32px; right: 32px; width: 48px; height: 48px; background: var(--ink); color: #fff; display: grid; place-items: center; border-radius: 50% !important; cursor: pointer; opacity: 0; pointer-events: none; transition: all .4s var(--ease-out); z-index: 40; box-shadow: 0 12px 32px rgba(26,24,21,.35); border: 0; }
#backTop.show { opacity: 1; pointer-events: auto; }
#backTop:hover { transform: translateY(-4px); background: var(--gold-2); }
@media (max-width: 1023px) { #backTop { bottom: 88px; right: 16px; } }

.editorial-frame { position: relative; overflow: hidden; background: var(--cream); border: 1px solid var(--line); }
.editorial-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
.editorial-frame:hover img { transform: scale(1.03); }
.editorial-frame.is-empty, .gallery-item.is-empty { background: linear-gradient(135deg, #1c1a17, #3a342c); }

/* ---- Table of contents */
.toc-wrap { position: sticky; top: 100px; }
.toc-link { display: block; padding: 10px 0 10px 18px; font-size: 13px; color: var(--ink-3); border-left: 2px solid transparent; margin-left: -1px; transition: all .3s var(--ease); position: relative; line-height: 1.5; }
.toc-link:hover { color: var(--ink); border-left-color: var(--gold-3); }
.toc-link.active { color: var(--ink); font-weight: 600; border-left-color: var(--gold-2); background: linear-gradient(90deg, rgba(212,180,124,.08), transparent); }

/* ---- FAQ accordion */
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary { list-style: none; cursor: pointer; }
details.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-chev { transition: transform .35s var(--ease); }

/* ---- Photo gallery + lightbox (interview) */
.photo-gallery { margin: 60px 0; }
.gallery-item { position: relative; overflow: hidden; background: var(--cream); border: 1px solid var(--line); cursor: zoom-in; transition: all .4s var(--ease); }
.gallery-item:hover { border-color: var(--gold-3); box-shadow: 0 12px 32px -12px rgba(28,25,23,.25); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .gallery-number { position: absolute; bottom: 12px; left: 12px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .2em; padding: 5px 10px; border-radius: 3px; }
.gallery-item .gallery-zoom-icon { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-radius: 50% !important; display: grid; place-items: center; color: var(--ink); font-size: 12px; opacity: 0; transform: scale(.85); transition: all .3s var(--ease); }
.gallery-item:hover .gallery-zoom-icon { opacity: 1; transform: scale(1); }
.gallery-caption { font-size: 11.5px; color: var(--ink-4); font-style: italic; margin-top: 8px; line-height: 1.5; }

#galleryLightbox { position: fixed; inset: 0; z-index: 250; background: rgba(8,8,8,.96); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .4s var(--ease); }
#galleryLightbox.open { display: flex; opacity: 1; }
#galleryLightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.glb-close, .glb-nav { position: absolute; border-radius: 50% !important; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; cursor: pointer; transition: all .3s var(--ease); border: 1px solid rgba(255,255,255,.15); }
.glb-close { top: 24px; right: 24px; width: 48px; height: 48px; }
.glb-close:hover { background: rgba(255,255,255,.25); transform: rotate(90deg); }
.glb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.glb-nav:hover { background: rgba(255,255,255,.25); }
.glb-prev { left: 20px; }
.glb-next { right: 20px; }
.glb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 12px; letter-spacing: .3em; font-weight: 600; }
@media (max-width: 640px) { .glb-nav { width: 42px; height: 42px; } .glb-prev { left: 10px; } .glb-next { right: 10px; } }

/* ---- Listing pages */
.blog-hero-bg { position: relative; background: radial-gradient(ellipse at top right, rgba(212,180,124,.18) 0%, transparent 55%), radial-gradient(ellipse at bottom left, rgba(143,111,62,.10) 0%, transparent 60%), linear-gradient(135deg, #faf7f2 0%, #ffffff 50%, #f7f2e6 100%); overflow: hidden; }
.blog-hero-bg::before { content: ''; position: absolute; top: -120px; right: -80px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(212,180,124,.22) 0%, transparent 70%); border-radius: 50% !important; filter: blur(60px); pointer-events: none; }
.blog-hero-bg::after { content: ''; position: absolute; bottom: -140px; left: -100px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(143,111,62,.12) 0%, transparent 70%); border-radius: 50% !important; filter: blur(70px); pointer-events: none; }

.featured-card { background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 70px -28px rgba(28,25,23,.28), 0 8px 24px -12px rgba(28,25,23,.14); transition: all .5s var(--ease); overflow: hidden; }
.featured-card:hover { box-shadow: 0 32px 90px -28px rgba(28,25,23,.35), 0 12px 32px -12px rgba(184,147,90,.25); transform: translateY(-3px); }

.jr-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.4rem; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; border: 1px solid var(--line); background: #fff; color: #3d3733; transition: all .35s var(--ease); cursor: pointer; white-space: nowrap; text-decoration: none; }
.jr-chip:hover { border-color: #1a1815; background: #faf7f2; transform: translateY(-1px); }
.jr-chip.active { background: linear-gradient(135deg, #1a1815 0%, #2c2621 100%); border-color: #1a1815; color: #fff; box-shadow: 0 8px 20px -8px rgba(26,24,21,.5); }

.blog-list-card, .interview-list-card { background: #fff; border: 1px solid #efeae0; transition: all .45s var(--ease); overflow: hidden; display: flex; flex-direction: column; }
.blog-list-card:hover, .interview-list-card:hover { box-shadow: 0 20px 50px -20px rgba(28,25,23,.22), 0 8px 20px -12px rgba(184,147,90,.18); border-color: #d4b47c; transform: translateY(-5px); }
.blog-list-card:hover .blog-list-img, .interview-list-card:hover .interview-list-img { transform: scale(1.06); }
.blog-list-img, .interview-list-img { transition: transform 1.2s var(--ease); }
.jr-noimg { background: linear-gradient(135deg, #1c1a17, #3a342c); }

.jr-page { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; color: #3d3733; font-size: 13px; font-weight: 600; transition: all .3s var(--ease); cursor: pointer; text-decoration: none; }
.jr-page:hover { border-color: #1a1815; background: #faf7f2; }
.jr-page.active { background: linear-gradient(135deg, #1a1815 0%, #2c2621 100%); border-color: #1a1815; color: #fff; box-shadow: 0 6px 16px -6px rgba(26,24,21,.5); }
.jr-page.disabled { opacity: .35; pointer-events: none; }

.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Promo codes page */
.promo-card { position: relative; background: #fff; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); box-shadow: 0 10px 30px -10px rgba(0,0,0,.08); }
.jscope .promo-card { border-radius: 16px !important; }
.promo-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px -12px rgba(0,0,0,.15); }
.ticket-cutout { position: absolute; width: 24px; height: 24px; background: #fcfbf9; border-radius: 50% !important; z-index: 10; }
.ticket-left { top: 50%; left: -12px; transform: translateY(-50%); }
.ticket-right { top: 50%; right: -12px; transform: translateY(-50%); }
.bg-grad-eid { background: linear-gradient(135deg, #fdfbfb 0%, #f4efe6 100%); }
.bg-grad-winter { background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%); }
.bg-grad-women { background: linear-gradient(135deg, #fdf2f8 0%, #fbcfe8 100%); }
.bg-grad-men { background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%); }
.bg-grad-app { background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%); }
.bg-grad-ship { background: linear-gradient(135deg, #f5f3ff 0%, #ddd6fe 100%); }
#copyToast { position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 20px); background: #1a1815; color: #fff; padding: 12px 24px; border-radius: 8px !important; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: all .3s cubic-bezier(0.22, 1, 0.36, 1); z-index: 300; display: flex; align-items: center; gap: 8px; }
#copyToast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1023px) { #copyToast { bottom: 90px; } }
.article-body .photo-gallery p { font-size: 13.5px; line-height: 1.6; color: #78716c; margin: 12px auto 0; }

/* ==========================================================================
   HOME: Magazine teaser + Journal row (ported from index.html mock)
   ========================================================================== */
.magazine-quote { position: relative; padding-left: 1.5rem; border-left: 3px solid #c2a878; font-style: italic; }
.magazine-quote::before { content: '\201C'; position: absolute; top: -1rem; left: 0.5rem; font-size: 3rem; color: rgba(194, 168, 120, 0.3); font-family: 'Playfair Display', serif; }
@media (max-width: 767px) {
    .magazine-summary { font-size: 1rem !important; line-height: 1.6 !important; }
    .magazine-read-btn { font-size: 16px !important; padding: 0.75rem 1.5rem !important; }
    .magazine-cover-name { font-size: 2rem !important; }
    .magazine-cover-designation { font-size: 16px !important; }
    .blog-card .read-link { font-size: 14px !important; }
    .blog-card .meta-text { font-size: 12px !important; }
}

/* ==========================================================================
   BANGLA (/bn/) — typography tuned for Bengali script (ported from the mock).
   Applied server-side via <body class="lang-bn">.
   ========================================================================== */
.lang-btn-wrap { text-decoration: none; }
body.lang-bn { font-family: 'Noto Serif Bengali', 'Inter', serif; }
body.lang-bn .font-serif,
body.lang-bn .font-fashion,
body.lang-bn .font-sans { font-family: 'Noto Serif Bengali', serif; }
body.lang-bn .font-serif { font-weight: 600; }
body.lang-bn p { font-size: 1.1rem; line-height: 1.75; }
body.lang-bn h1, body.lang-bn h2, body.lang-bn h3, body.lang-bn h4 { line-height: 1.35; }
body.lang-bn h3 { font-size: 1.5rem; }
body.lang-bn button, body.lang-bn input, body.lang-bn textarea, body.lang-bn select { font-family: 'Noto Serif Bengali', serif; }
/* Bengali conjuncts break apart with tracking */
body.lang-bn *, body.lang-bn h1, body.lang-bn h2, body.lang-bn h3, body.lang-bn h4 { letter-spacing: 0 !important; }
body.lang-bn .uppercase { text-transform: none; }
/* Nav */
body.lang-bn #mainNav .nav-link, body.lang-bn #mainNav .nav-link span { font-size: 17px !important; }
body.lang-bn #mainNav .lang-text, body.lang-bn #mainNav .lang-btn-wrap { font-family: 'Inter', sans-serif; }
/* Small caps-style labels need more size in Bengali to stay legible */
body.lang-bn [class*="text-[10px]"], body.lang-bn [class*="text-[11px]"] { font-size: 13px !important; }
body.lang-bn [class*="text-[12px]"], body.lang-bn [class*="text-[13px]"] { font-size: 14.5px !important; }
body.lang-bn .trust-card h3 { font-size: 24px !important; text-align: center !important; }
body.lang-bn .trust-card p { font-size: 18px !important; line-height: 1.4 !important; text-align: center !important; }
body.lang-bn .blog-card h3 { font-size: 1.15rem !important; line-height: 1.4 !important; }
body.lang-bn .blog-card p { font-size: 0.95rem !important; line-height: 1.5 !important; }
body.lang-bn footer a, body.lang-bn footer p, body.lang-bn footer li { font-size: 1rem; }
body.lang-bn .product-card h4 { font-size: 1.05rem; }
body.lang-bn .jscope .article-body p { line-height: 1.9; }

/* Phase 5: portrait 600x800 (3:4) tiles + hero video fade-in over its placeholder image */
.category-tile { aspect-ratio: 3 / 4; }
.category-tile img { padding: 0 !important; object-fit: cover !important; }
.hero-video { opacity: 0; transition: opacity 0.9s ease; }
.hero-video.is-playing { opacity: 1; }
/* once the video is fully faded in, the placeholder image is removed completely so
   nothing shows through the video (keeps it sharp); it comes back if the video errors */
.hero-fade.video-ready > img { opacity: 0 !important; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* ============ Fixed 600x800 (3:4) product images + carousel (Phase 5.2) ============ */
/* The frame is always 3:4; whatever size/ratio was uploaded is scaled to fill it (centre-cropped),
   and is taken out of the layout flow so a huge or tiny file can never resize the card. */
.product-img-frame.frame-34 { aspect-ratio: 3 / 4; }
.product-img-frame.frame-34 > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; max-width: none; }
/* carousel cards have a fixed width (never the image's own width), so every card is identical */
.carousel-item { flex: 0 0 calc(50% - 8px); width: calc(50% - 8px); min-width: 0; max-width: calc(50% - 8px); }
@media (min-width: 640px)  { .carousel-item { flex-basis: 45%; width: 45%; max-width: 45%; } }
@media (min-width: 768px)  { .carousel-item { flex-basis: calc(33.333% - 16px); width: calc(33.333% - 16px); max-width: calc(33.333% - 16px); } }
@media (min-width: 1024px) { .carousel-item { flex-basis: calc(25% - 18px); width: calc(25% - 18px); max-width: calc(25% - 18px); } }
/* arrows sit at the vertical middle of the product image (value set from JS, 35% fallback) */
.carousel-arrow { margin: 0; }
