/* static/css/style.css */
/* ASTRA STORE - Luxury Minimalist Fashion System */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-color: #000000;
    --primary-hover: #1c1c1c;
    --bg-color: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-color: #000000;
    --text-muted: #7a7a7a;
    --silver-chrome: #c0c0c0;
    --border-color: #e5e5e5;
    
    /* Interactive & Feedback Colors */
    --accent-red: #d93838;
    --accent-green: #27ae60;
    --gold: #dfb15b;
    
    /* Blur Effects & Overlays */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-blur: blur(20px);
    
    /* Borders & Spacing */
    --border-radius: 16px;
    --btn-radius: 50px;
    --transition-speed: 0.4s;
    --transition-curve: cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    
    /* Fonts */
    --font-main: 'Poppins', 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

/* Dark Mode Variables Override */
body.dark-mode {
    --primary-color: #ffffff;
    --primary-hover: #e5e5e5;
    --bg-color: #0a0a0a;
    --bg-secondary: #121212;
    --text-color: #f5f5f5;
    --text-muted: #9e9e9e;
    --silver-chrome: #8a8a8a;
    --border-color: #222222;
    
    --glass-bg: rgba(10, 10, 10, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);
}

/* ================= BASIC SYSTEM SETUPS ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed) var(--transition-curve), 
                color var(--transition-speed) var(--transition-curve);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.85;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
}

/* ================= KEYFRAME ANIMATIONS ================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.animated {
    animation: slideUp 0.8s var(--transition-curve) forwards;
}

/* ================= BRAND SYSTEM UTILS ================= */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-padding {
    padding: 6rem 0;
}

.text-center { text-align: center; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 0.75rem auto 0;
}

/* ================= NAVIGATION BAR (GLASSMORPHIC) ================= */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-speed) var(--transition-curve);
}

.navbar {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.logo-icon {
    width: 32px;
    height: 32px;
    fill: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.nav-link {
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-action-btn {
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.nav-action-btn:hover {
    background-color: var(--bg-secondary);
}

.badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-color);
}

/* ================= HERO SLIDER & HOME PAGE BANNERS ================= */
.hero-slider {
    position: relative;
    height: calc(100vh - 80px);
    width: 100%;
    background-color: #000;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--transition-curve), visibility 1s var(--transition-curve);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 600px;
    padding-left: 5%;
}

.hero-tagline {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s 0.2s var(--transition-curve);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s 0.4s var(--transition-curve);
}

.hero-descr {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s 0.6s var(--transition-curve);
}

.hero-cta {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s 0.8s var(--transition-curve);
}

.hero-slide.active .hero-tagline,
.hero-slide.active .hero-title,
.hero-slide.active .hero-descr,
.hero-slide.active .hero-cta {
    opacity: 1;
    transform: translateY(0);
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 1rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-dot.active {
    background-color: #ffffff;
    transform: scale(1.3);
}

/* ================= PREMIUM BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.75rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.btn-silver {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-silver:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

.btn-wide {
    width: 100%;
}

/* ================= GRID COLLECTION PANELS ================= */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.collection-card {
    position: relative;
    height: 480px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.collection-img-wrap {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s var(--transition-curve);
}

.collection-card:hover .collection-img-wrap {
    transform: scale(1.05);
}

.collection-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: #ffffff;
    z-index: 3;
}

.collection-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* ================= PRODUCT CARDS GRID ================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem 1.5rem;
}

.product-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform var(--transition-speed) var(--transition-curve);
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    background-color: var(--bg-secondary);
    overflow: hidden;
    border-radius: var(--border-radius);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-curve), opacity 0.4s ease;
}

.product-image.alternate {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card:hover .product-image.primary {
    opacity: 0;
}

.product-card:hover .product-image.alternate {
    opacity: 1;
}

.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 5;
}

.badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    color: #ffffff;
}

.badge-new { background-color: var(--primary-color); }
.badge-sale { background-color: var(--accent-red); }
.badge-featured { background-color: var(--gold); }
.badge-outofstock { background-color: #7f8c8d; }

.wishlist-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.wishlist-toggle:hover {
    transform: scale(1.1);
    color: var(--accent-red);
}

.quick-view-overlay {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: all 0.4s var(--transition-curve);
    z-index: 5;
    width: 85%;
}

.product-card:hover .quick-view-overlay {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.product-details-summary {
    padding: 1.25rem 0.5rem 0.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-brand {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.35rem;
}

.product-name-link {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1.3;
}

.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.product-price.original {
    color: var(--text-muted);
    text-decoration: line-line-through;
    text-decoration: line-through;
    font-size: 0.95rem;
    font-weight: 400;
}

.product-price.sale {
    color: var(--accent-red);
}

/* ================= SWATCH SELECTION & INPUTS ================= */
.color-swatch-list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin-top: 0.5rem;
}

.color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.active::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-color);
}

/* ================= SLIDING DRAWER SYSTEM (MINI-CART, SIDE-MENU) ================= */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--transition-curve), visibility 0.4s var(--transition-curve);
    backdrop-filter: blur(4px);
}

.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 460px;
    height: 100%;
    background-color: var(--bg-color);
    box-shadow: var(--shadow-lg);
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.4s var(--transition-curve);
    display: flex;
    flex-direction: column;
}

.drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.drawer-close {
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.drawer-close:hover {
    background-color: var(--bg-secondary);
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

/* Drawer Cart Item Card */
.cart-drawer-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    background-color: var(--bg-secondary);
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.cart-item-variant {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-counter {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    overflow: hidden;
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.qty-btn:hover {
    background-color: var(--border-color);
}

.qty-val {
    width: 32px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-item-remove {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
}

.cart-item-remove:hover {
    color: var(--accent-red);
}

/* ================= MODERN SHOPIFY PRODUCT DETAILS PAGE ================= */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
}

.product-gallery {
    display: flex;
    gap: 1rem;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 80px;
}

.gallery-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-thumb.active, .gallery-thumb:hover {
    border-color: var(--primary-color);
}

.gallery-stage {
    flex-grow: 1;
    height: 650px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--bg-secondary);
    position: relative;
    cursor: zoom-in;
}

.gallery-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Product Info Right Column */
.details-headline {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.details-brand {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.details-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.details-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.stars {
    color: var(--gold);
}

.details-price-line {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.details-price-line .original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1.35rem;
    margin-right: 1rem;
}

.details-price-line .sale {
    color: var(--accent-red);
}

/* Variant Selectors Details */
.option-select-block {
    margin-bottom: 1.75rem;
}

.option-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-guide-trigger {
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: none;
    color: var(--text-muted);
}

.size-guide-trigger:hover {
    color: var(--primary-color);
}

.size-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.size-swatch {
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 55px;
    text-align: center;
}

.size-swatch:hover {
    border-color: var(--primary-color);
}

.size-swatch.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

.size-swatch.disabled {
    opacity: 0.35;
    text-decoration: line-through;
    cursor: not-allowed;
    border-style: dashed;
}

.stock-indicator {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-indicator::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stock-indicator.in-stock::before { background-color: var(--accent-green); }
.stock-indicator.low-stock::before { background-color: var(--gold); }
.stock-indicator.out-of-stock::before { background-color: var(--accent-red); }

.details-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.details-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--btn-radius);
    height: 54px;
    padding: 0 0.5rem;
}

.details-qty button {
    width: 32px;
    height: 100%;
    cursor: pointer;
    font-size: 1.1rem;
}

.details-qty input {
    width: 45px;
    text-align: center;
    font-weight: 600;
}

.detail-btn-cart {
    height: 54px;
}

/* Accordion Tab Sheets */
.details-tabs {
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.tab-accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.tab-accordion-title {
    padding: 1.25rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.tab-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--transition-curve);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tab-accordion-item.active .tab-accordion-content {
    max-height: 400px;
    padding-bottom: 1.5rem;
}

.tab-accordion-title i {
    transition: transform 0.3s ease;
}

.tab-accordion-item.active .tab-accordion-title i {
    transform: rotate(180deg);
}

/* ================= MODERN COLLAPSIBLE FILTER SIDEBAR ================= */
.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}

.filter-sidebar {
    background-color: var(--bg-color);
}

.filter-widget {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.filter-widget-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--bg-color);
    font-size: 0.6rem;
}

/* Range input slider styling */
.price-range-wrapper {
    padding: 0 0.5rem;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.range-val-input {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.4rem 0.75rem;
    width: 80px;
    text-align: center;
}

/* ================= POPUP MODALS SYSTEM ================= */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--transition-curve), visibility 0.4s var(--transition-curve);
    backdrop-filter: blur(4px);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s var(--transition-curve);
    position: relative;
    padding: 2.5rem;
}

.modal-backdrop.active .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: var(--bg-secondary);
}

/* Size Guide Table Style */
.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.size-guide-table th, .size-guide-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.size-guide-table th {
    background-color: var(--bg-secondary);
    font-weight: 600;
}

/* ================= SHOPPING CART PAGE ================= */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th, .cart-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-table th {
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cart-product-cell {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.cart-product-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cart-product-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cart-summary-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.cart-summary-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.summary-row.total {
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    font-weight: 700;
    font-size: 1.35rem;
}

/* Promo coupon inputs */
.promo-input-group {
    display: flex;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--btn-radius);
    overflow: hidden;
    background-color: var(--bg-color);
}

.promo-input {
    flex-grow: 1;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    background: transparent;
}

.promo-btn {
    padding: 0 1.25rem;
    background-color: var(--primary-color);
    color: var(--bg-color);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
}

/* ================= 2-COLUMN CHECKOUT SYSTEM ================= */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
}

.checkout-block {
    margin-bottom: 3rem;
}

.checkout-block-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

/* Float-label styled Inputs */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-control {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.95rem 1.25rem;
    font-size: 0.95rem;
    background-color: var(--bg-color);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Payment Selector Radio Styling */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.25s ease;
}

.payment-label:hover {
    background-color: var(--bg-secondary);
}

.payment-radio:checked + .payment-label {
    border-color: var(--primary-color);
    background-color: var(--bg-secondary);
}

.payment-icons {
    margin-left: auto;
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* ================= CUSTOMER PORTAL & ACCOUNT DASHBOARD ================= */
.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
}

.dashboard-sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dashboard-menu-link:hover, .dashboard-menu-link.active {
    background-color: var(--bg-secondary);
    font-weight: 600;
}

.dashboard-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

/* Order timeline pipeline tracker */
.order-timeline-wrapper {
    padding: 2rem 0;
}

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--border-color);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex-grow: 1;
}

.timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 3px solid var(--border-color);
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.4s ease;
}

.timeline-step.completed .timeline-icon {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-color);
}

.timeline-step.active .timeline-icon {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.timeline-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ================= MODERN ADMIN ERP PANEL & SALES CHARTS ================= */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background-color: #000000;
    color: #ffffff;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.admin-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 3rem;
    text-align: center;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #a0a0a0;
    transition: all 0.3s ease;
}

.admin-menu-link:hover, .admin-menu-link.active {
    color: #ffffff;
    background-color: #1a1a1a;
}

.admin-main {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.admin-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.metric-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.metric-data {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-size: 1.5rem;
    font-weight: 700;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.admin-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.admin-card-glass {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

/* ================= MODERN RESPONSIVE SCREEN ADJUSTMENTS ================= */

/* MOBILE RESPONSIVE BOTTOM NAVIGATION BAR */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    gap: 0.25rem;
    position: relative;
    padding: 0.5rem 1rem;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    color: var(--text-color);
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

/* Mobile Sticky Checkout CTA Bar */
.mobile-sticky-cart {
    display: none;
    position: fixed;
    bottom: 60px; /* Right above bottom navigation bar */
    left: 0;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    z-index: 998;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .product-detail-layout, .catalog-layout, .cart-layout, .checkout-layout, .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .product-gallery {
        flex-direction: column-reverse;
    }
    
    .gallery-thumbs {
        flex-direction: row;
        width: 100%;
    }
    
    .gallery-thumb {
        width: 80px;
    }
    
    .gallery-stage {
        height: 500px;
    }
    
    .metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hide primary navigation list on mobile */
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 60px; /* Give room to mobile bottom nav */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .collection-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-card {
        height: 350px;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .details-actions {
        grid-template-columns: 1fr;
    }
    
    .details-qty {
        width: 100%;
        justify-content: center;
    }
    
    .mobile-sticky-cart {
        display: block;
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        display: none;
    }
}

/* WhatsApp Float Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 990;
    transition: transform 0.3s ease;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════════════
   ASTRA STORE — RESPONSIVE DESIGN SYSTEM
   Mobile-first breakpoints + all new components
   ═══════════════════════════════════════════════════════════════════ */

/* ── Accessibility ─────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 8px 8px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.2s;
    text-decoration: none;
}
.skip-link:focus { top: 0; }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}
.footer-main { padding: 4rem 0 3rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}
.footer-brand .footer-logo { margin-bottom: 1.25rem; display: inline-flex; }
.footer-about {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 280px;
}
.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}
.footer-social a:hover { background: var(--primary-color); color: var(--bg-color); border-color: var(--primary-color); transform: translateY(-2px); }
.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}
.footer-links {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text-color); }
.footer-contact-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.footer-contact-icon { margin-top: 3px; flex-shrink: 0; width: 14px; }
.footer-contact-list a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-contact-list a:hover { color: var(--text-color); }
.footer-newsletter-form {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
.footer-newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.625rem 0.875rem;
    font-size: 0.8rem;
    color: var(--text-color);
    outline: none;
    font-family: var(--font-body);
}
.footer-newsletter-form input::placeholder { color: var(--text-muted); }
.footer-newsletter-form button {
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: opacity 0.2s;
}
.footer-newsletter-form button:hover { opacity: 0.85; }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--text-color); }

/* ── Mobile Menu ───────────────────────────────────────────── */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}
.hamburger-btn:hover { background: var(--bg-secondary); }
.hamburger-line {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--bg-color);
    border-left: 1px solid var(--border-color);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.25rem;
}
.mobile-menu-nav { padding: 1.5rem; flex: 1; }
.mobile-menu-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s;
}
.mobile-menu-link i { width: 20px; text-align: center; color: var(--text-muted); }
.mobile-menu-link:hover { color: var(--text-muted); }
.mobile-menu-social {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
}
.mobile-menu-social a {
    font-size: 1.4rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-menu-social a:hover { color: var(--text-color); }
.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-menu-backdrop.open { opacity: 1; pointer-events: all; }

/* ── Mobile Bottom Nav ─────────────────────────────────────── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
    z-index: 900;
    display: none;
    grid-template-columns: repeat(4, 1fr);
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
    position: relative;
}
.mobile-nav-item i { font-size: 1.2rem; }
.mobile-nav-item:hover,
.mobile-nav-item.active { color: var(--text-color); }
.mobile-nav-badge {
    position: absolute;
    top: 4px; right: 25%;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* ── Nav links wrapper (desktop) ───────────────────────────── */
.nav-links-wrapper { display: flex; }
.nav-menu { padding: 0; margin: 0; }

/* ═══════════════════════════════════════════════════════════
   BREAKPOINT: ≤ 1200px — Large tablets / small laptops
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .container { padding: 0 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .footer-brand { grid-column: span 2; }
    .footer-about { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   BREAKPOINT: ≤ 992px — Tablets
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    /* Product grid: 2 columns */
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1.25rem; }

    /* Catalog layout: stack filter above */
    .catalog-layout { grid-template-columns: 1fr !important; }
    .filter-sidebar {
        position: fixed !important;
        top: 0; left: 0;
        width: min(300px, 85vw) !important;
        height: 100% !important;
        background: var(--bg-color);
        border-right: 1px solid var(--border-color);
        z-index: 2100;
        box-shadow: 0 0 25px rgba(0,0,0,0.15);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        padding: 2rem !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
    }
    .filter-sidebar.open {
        transform: translateX(0) !important;
    }
    .filter-close-btn {
        display: block !important;
    }
    .mobile-filter-trigger {
        display: flex !important;
    }

    /* Product detail: stack */
    .product-detail-layout { grid-template-columns: 1fr !important; }

    /* Checkout: stack */
    .checkout-layout { grid-template-columns: 1fr !important; }

    /* Dashboard: stack */
    .dashboard-layout { grid-template-columns: 1fr !important; }
    .dashboard-sidebar { border-right: none !important; border-bottom: 1px solid var(--border-color); padding-bottom: 1.5rem; margin-bottom: 2rem; }
    .dashboard-sidebar-menu { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .dashboard-menu-link { padding: 0.5rem 0.875rem !important; border-radius: 6px; border-bottom: none !important; font-size: 0.8rem !important; }

    /* Cart: stack */
    .cart-layout { grid-template-columns: 1fr !important; }
    .cart-summary-card { position: static !important; }
}

/* ═══════════════════════════════════════════════════════════
   BREAKPOINT: ≤ 768px — Mobile / Small Tablet
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* ── Mobile Native Performance Overrides (iOS & Android) ── */
    html, body { overflow-x: hidden; width: 100%; position: relative; }
    * { -webkit-tap-highlight-color: transparent; }
    a, button, .btn, .color-swatch, .size-swatch { touch-action: manipulation; }
    input, select, textarea { font-size: 16px !important; } /* Prevents iOS auto-zoom on focus */
    .mobile-menu, .drawer, .filter-sidebar, .cart-table, .size-guide-table { -webkit-overflow-scrolling: touch; }

    /* ── Body padding for bottom nav ── */
    body { padding-bottom: 65px; }

    /* ── Container ── */
    .container { padding: 0 1rem; }

    /* ── Navbar: hide desktop links, show hamburger ── */
    .nav-links-wrapper { display: none !important; }
    .hamburger-btn { display: flex !important; }

    /* ── Mobile bottom nav ── */
    .mobile-bottom-nav { display: grid !important; }

    /* ── Hero section ── */
    .hero-section,
    .hero-banner { min-height: 55vh !important; }
    .hero-content h1,
    .hero-title { font-size: clamp(1.75rem, 6vw, 3rem) !important; }
    .hero-subtitle { font-size: 0.9rem !important; }
    .hero-buttons { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
    .hero-buttons .btn { width: 100%; max-width: 280px; }

    /* ── Section padding ── */
    .section-padding { padding-top: 3rem !important; padding-bottom: 3rem !important; }

    /* ── Section titles ── */
    .section-title { font-size: clamp(1.25rem, 4vw, 1.75rem) !important; }

    /* ── Product grid: 2 columns on mobile ── */
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.875rem !important; }
    .product-card-title,
    .product-name-link { font-size: 0.8rem !important; }
    .product-img-wrapper { height: 200px !important; }

    /* ── Footer ── */
    .footer-grid { grid-template-columns: 1fr !important; gap: 2rem; }
    .footer-brand { grid-column: span 1; }
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: 0.75rem; }
    .footer-legal { justify-content: center; }

    /* ── Cart drawer ── */
    .drawer { width: 100% !important; max-width: 100% !important; border-radius: 20px 20px 0 0; top: auto !important; bottom: 0 !important; height: 90vh !important; }

    /* ── Tables: horizontal scroll ── */
    .cart-table,
    .size-guide-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }

    /* ── Checkout ── */
    .checkout-layout { gap: 2rem !important; }
    .checkout-block { padding: 1.5rem !important; }

    /* ── Cart layout ── */
    .cart-layout { gap: 2rem !important; }
    .cart-product-cell { flex-direction: column !important; gap: 0.5rem !important; }
    .cart-item-img { width: 70px !important; height: 90px !important; }

    /* ── Dashboard ── */
    .dashboard-layout { gap: 1.5rem !important; }

    /* ── Typography ── */
    h1 { font-size: clamp(1.5rem, 5vw, 2.25rem) !important; }
    h2 { font-size: clamp(1.25rem, 4vw, 1.75rem) !important; }

    /* ── Buttons ── */
    .btn { min-height: 46px; }
    .btn-wide { width: 100% !important; }

    /* ── Forms ── */
    .form-grid { grid-template-columns: 1fr !important; }
    .form-control { height: 48px; font-size: 16px !important; } /* 16px prevents iOS zoom */

    /* ── Admin sidebar ── */
    .admin-layout { grid-template-columns: 1fr !important; }
    .admin-sidebar { display: none !important; }
    .admin-mobile-toggle { display: flex !important; }

    /* ── Timeline ── */
    .timeline { gap: 0 !important; }
    .timeline-step { font-size: 0.55rem !important; }
    .timeline-icon { width: 36px !important; height: 36px !important; font-size: 0.8rem !important; }

    /* ── Product detail ── */
    .gallery-stage { height: 300px !important; }
    .gallery-thumbs { display: none !important; }
    .details-actions { flex-direction: column !important; gap: 1rem !important; }
    .detail-btn-cart,
    .details-actions .btn { width: 100% !important; }

    /* ── Contact cards ── */
    .contact-cards-grid { grid-template-columns: 1fr !important; gap: 1rem; }

    /* ── Review section ── */
    .reviews-summary { flex-direction: column !important; gap: 1.5rem !important; text-align: center !important; }
    .reviews-summary > div:first-child { border-right: none !important; border-bottom: 1px solid var(--border-color) !important; padding-right: 0 !important; padding-bottom: 1.5rem !important; }
}

/* ═══════════════════════════════════════════════════════════
   BREAKPOINT: ≤ 480px — Small Mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    /* Single column product grid on very small screens */
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.625rem !important; }
    .product-img-wrapper { height: 160px !important; }
    .product-details-summary { padding: 0.5rem 0.25rem !important; }

    /* Cart drawer full screen */
    .drawer { height: 95vh !important; }

    /* Auth cards */
    .auth-card { padding: 2rem 1.25rem !important; }
    .auth-card h1.auth-title { font-size: 1.1rem !important; }

    /* Qty counter compact */
    .qty-counter { gap: 0.25rem; }
    .qty-btn { width: 30px !important; height: 30px !important; font-size: 1rem !important; }
    .qty-val { min-width: 30px !important; }

    /* Flash messages */
    .flash-message { font-size: 0.85rem; padding: 0.875rem 1rem; }

    /* Invoice */
    .invoice-card { padding: 1.5rem !important; }
}

/* ═══════════════════════════════════════════════════════════
   BREAKPOINT: ≤ 320px — Very small (Galaxy Fold etc.)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 320px) {
    .container { padding: 0 0.75rem; }
    .product-grid { grid-template-columns: 1fr !important; }
    .nav-actions { gap: 0.25rem !important; }
    .nav-action-btn { width: 32px !important; height: 32px !important; font-size: 0.8rem !important; }
}

/* ═══════════════════════════════════════════════════════════
   FLASH MESSAGES
   ═══════════════════════════════════════════════════════════ */
.flash-messages { margin-bottom: 1.5rem; }
.flash-message {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.4s ease;
}
.flash-message.success { background: rgba(39,174,96,0.12); border: 1px solid rgba(39,174,96,0.3); color: #27ae60; }
.flash-message.error   { background: rgba(217,56,56,0.12);  border: 1px solid rgba(217,56,56,0.3);  color: var(--accent-red); }
.flash-message.info    { background: rgba(41,128,185,0.12); border: 1px solid rgba(41,128,185,0.3); color: #2980b9; }
@keyframes slideDown { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:translateY(0); } }

/* ═══════════════════════════════════════════════════════════
   PAGE CONTENT PADDING (accounts for fixed header)
   ═══════════════════════════════════════════════════════════ */
.page-content { padding-top: 0; min-height: 60vh; }

/* ═══════════════════════════════════════════════════════════
   LAZY LOADING PLACEHOLDER
   ═══════════════════════════════════════════════════════════ */
img[loading="lazy"] {
    background: var(--bg-secondary);
}
img.lazy-loaded { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

