﻿/* =========================================================================
   SILVORA HOUSE - CORE VISUAL STYLE SHEET (Obsidian Black & Antique Gold)
   Palette sampled from the silvorahouse.in launch page.
   ========================================================================= */

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

:root {
    /* Brand palette */
    --primary: #0e0c11;
    --primary-light: #16151a;
    --primary-dark: #0b080f;

    --accent: #8a6e2f;
    --accent-hover: #6f5726;
    --gold: #c7a84d;
    --gold-hover: #b39340;

    /* Light surfaces, used by print/invoice views */
    --background: #f8f7f5;
    --surface: #ffffff;
    --text: #1c1c1c;
    --text-light: #666666;
    --border: #e5e5e5;

    /* Status */
    --success: #28a745;
    --warning: #f5a623;
    --danger: #e53935;

    /* Dark UI surfaces */
    --bg-dark-deep: var(--primary-dark);
    --bg-dark-main: var(--primary);
    --bg-dark-card: #16151a;
    --bg-dark-elevated: #1d1b22;
    --bg-dark-sunken: #131218;

    --color-gold: var(--gold);
    --color-gold-hover: var(--gold-hover);
    --color-gold-dark: #8f7530;
    --color-gold-light: #e1d4aa;

    --color-silver: #e8e8e8;
    --color-silver-hover: #cccccc;
    --color-silver-dark: #8b8990;

    --text-white: #ffffff;
    --text-muted: #9d9ba0;
    --text-muted-dark: #84828a;

    --border-glass: rgba(255, 255, 255, 0.07);
    --border-glass-thick: rgba(255, 255, 255, 0.14);
    --bg-glass: rgba(255, 255, 255, 0.045);

    /* Signature gradients */
    --gradient-brand: linear-gradient(135deg, #0b080f 0%, #16151a 50%, #1d1b22 100%);
    --gradient-hero: radial-gradient(ellipse 80% 65% at 50% 30%, #191622 0%, #0e0c11 55%, #0b080f 100%);
    --gradient-gold: linear-gradient(135deg, #e1d4aa 0%, #c7a84d 55%, #8f7530 100%);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;

    --radius-card: 16px;

    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 1. Base Styles & Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark-main);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-tap-highlight-color: rgba(199, 168, 77, 0.18);
}

/* Long unbroken strings (SKUs, order numbers, URLs) must not widen the viewport */
h1, h2, h3, h4, h5, h6, p, a, span, td, th, li, label {
    overflow-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    letter-spacing: 1px;
}

/* 2. Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass-thick);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    padding: 24px;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(199, 168, 77, 0.35);
}

.glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 12px 30px rgba(199, 168, 77, 0.15);
}

/* 3. Typography Presets */
.text-gold {
    color: var(--color-gold) !important;
}

.text-silver {
    color: var(--color-silver) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.heading-lg {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.heading-md {
    font-size: clamp(1.35rem, 3.5vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* 4. Core Button Design System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

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

.btn-gold:hover {
    background: var(--color-gold-hover);
    box-shadow: 0 6px 20px rgba(199, 168, 77, 0.35);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: var(--text-white);
    border: 1px solid var(--accent);
}

.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(138, 110, 47, 0.4);
    transform: translateY(-2px);
}

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

.btn-outline-gold:hover {
    background: rgba(199, 168, 77, 0.08);
    color: var(--color-gold-light);
    transform: translateY(-2px);
}

.btn-silver {
    background: linear-gradient(135deg, var(--color-silver) 0%, #b8b8b8 100%);
    color: var(--bg-dark-deep);
    border: 1px solid var(--color-silver);
}

.btn-silver:hover {
    background: linear-gradient(135deg, var(--color-silver-hover) 0%, #a6a6a6 100%);
    box-shadow: 0 0 15px rgba(229, 229, 229, 0.3);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--bg-dark-elevated);
    color: var(--text-white);
    border: 1px solid var(--border-glass);
}

.btn-dark:hover {
    background: var(--bg-dark-card);
    border-color: var(--text-muted);
}

/* 5. Custom Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-gold);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(199, 168, 77, 0.18);
    background: var(--bg-dark-elevated);
}

/* 6. Layout Master & Navigation (Site.Master) */
.header-store {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 8, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 24px;
}

.logo-brand {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 1px;
}

.logo-brand span {
    color: var(--color-gold);
}

.logo-mark {
    height: 52px;
    width: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(199, 168, 77, 0.35));
    transition: var(--transition-bounce);
}

.logo-brand:hover .logo-mark {
    transform: scale(1.06) rotate(-2deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

/* The drawer exists only below the mobile-nav breakpoint */
.nav-drawer-shell {
    display: none;
}

.nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-glass);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold);
    position: sticky;
    top: 0;
    background: var(--bg-dark-deep);
    z-index: 2;
}

.nav-drawer-close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 8px;
}

.nav-drawer-close:hover {
    color: var(--color-gold);
}

/* Drawer lists always stack, since the drawer is mobile-only */
.nav-menu-drawer {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
}

.nav-menu-drawer li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-menu-drawer .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    font-size: 0.9rem;
    min-height: 48px;
}

.nav-menu-drawer .nav-link:active {
    background: rgba(199, 168, 77, 0.08);
}

.nav-menu-secondary {
    margin-top: 10px;
    border-top: 1px solid var(--border-glass);
}

.nav-menu-secondary .nav-link {
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0.3px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-gold);
}

.nav-auth-link {
    font-size: 0.85rem;
}

.nav-logout-link {
    font-size: 0.8rem;
    color: var(--text-muted-dark);
    margin-left: 5px;
}

.nav-admin-link {
    font-size: 0.8rem;
    border: 1px solid var(--color-gold);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--color-gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-icon {
    font-size: 1.3rem;
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-icon:hover {
    color: var(--color-gold);
}

/* Hamburger — hidden until the desktop nav no longer fits */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-right: 4px;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.nav-toggle:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.nav-toggle-bars {
    position: relative;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: '';
    position: absolute;
}

.nav-toggle-bars::before {
    transform: translateY(-6px);
}

.nav-toggle-bars::after {
    transform: translateY(6px);
}

.nav-toggle.active .nav-toggle-bars {
    background: transparent;
}

.nav-toggle.active .nav-toggle-bars::before {
    transform: rotate(45deg);
}

.nav-toggle.active .nav-toggle-bars::after {
    transform: rotate(-45deg);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1400;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-backdrop.visible {
    opacity: 1;
}

body.nav-open {
    overflow: hidden;
}

.badge-cart {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-gold);
    color: var(--bg-dark-deep);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer layout */
.footer-store {
    background: var(--bg-dark-deep);
    border-top: 1px solid var(--border-glass);
    padding: 60px 24px 20px;
    margin-top: 60px;
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    color: var(--color-gold);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    font-size: 1.15rem;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    border-color: var(--color-gold);
    background: rgba(199, 168, 77, 0.1);
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted-dark);
    font-size: 0.85rem;
}

/* 7. Storefront Homepage (Default.aspx) */
.hero-slider {
    position: relative;
    height: clamp(420px, 62vh, 600px);
    background: var(--gradient-hero);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11, 8, 15, 0.9) 0%, rgba(11, 8, 15, 0.4) 100%);
}

.slide-content {
    position: relative;
    max-width: 800px;
    margin-left: 10%;
    padding: 0 24px;
    z-index: 10;
}

.slide-subtitle {
    color: var(--color-gold);
    font-size: clamp(0.8rem, 2.2vw, 1.1rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.slide-title {
    font-size: clamp(1.9rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.slide-text {
    color: var(--text-muted);
    font-size: clamp(0.92rem, 2.2vw, 1.1rem);
    margin-bottom: 30px;
}

.section-padding {
    padding: clamp(44px, 7vw, 80px) clamp(16px, 4vw, 24px);
}

.container-wide {
    max-width: 1300px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(30px, 5vw, 50px);
}

.section-header h2 {
    font-size: clamp(1.45rem, 4.2vw, 2.2rem);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--color-gold) 100%);
}

/* Category circles grid */
.categories-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.category-circle-card {
    text-align: center;
    width: 150px;
}

.circle-img-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 2px solid var(--border-glass);
    overflow: hidden;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark-card);
}

.category-circle-card:hover .circle-img-wrap {
    border-color: var(--color-gold);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(199, 168, 77, 0.3);
}

.category-circle-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-white);
}

/* Products card grids */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.product-card:hover {
    border-color: rgba(199, 168, 77, 0.4);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

.product-img-box {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-dark-sunken);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img-box img {
    transform: scale(1.08);
}

.badge-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5;
}

.badge-featured {
    background: var(--color-gold);
    color: var(--bg-dark-deep);
}

.badge-discount {
    background: var(--danger);
    color: var(--text-white);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 48px;
    overflow: hidden;
}

.product-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 15px;
}

.price-actual {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
}

.price-old {
    font-size: 0.95rem;
    color: var(--text-muted-dark);
    text-decoration: line-through;
}

/* Split Segment CTA section */
.segment-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 30px;
}

.segment-panel {
    position: relative;
    height: clamp(320px, 46vw, 450px);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: clamp(20px, 3.5vw, 40px);
    border: 1px solid var(--border-glass);
}

.segment-panel.silver {
    background: linear-gradient(rgba(0,0,0,0.1) 50%, rgba(11, 8, 15,0.95) 100%), url('/Assets/images/banners/silver-cta.jpg') center/cover no-repeat;
}

.segment-panel.art {
    background: linear-gradient(rgba(0,0,0,0.1) 50%, rgba(11, 8, 15,0.95) 100%), url('/Assets/images/banners/art-cta.jpg') center/cover no-repeat;
}

.segment-panel-content {
    position: relative;
    z-index: 10;
}

.segment-panel-content h3 {
    font-size: clamp(1.3rem, 3.4vw, 2rem);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.segment-panel-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Influencer Gallery Showcase */
.influencer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 20px;
}

.influencer-card {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 0.8;
}

.influencer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.influencer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 8, 15, 0.95) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.influencer-card:hover .influencer-overlay {
    opacity: 1;
}

.influencer-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.influencer-insta {
    color: var(--color-gold);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 8. Products List / Details Layout (Products.aspx & ProductDetails.aspx) */
.layout-shop {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.shop-sidebar {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    padding: 24px;
    height: fit-content;
}

/* Mobile-only trigger for the filter panel */
.filter-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    min-height: 48px;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.filter-toggle:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.filter-toggle-chevron {
    transition: transform 0.25s ease;
    font-size: 0.8rem;
}

.filter-toggle.active .filter-toggle-chevron {
    transform: rotate(180deg);
}

.filter-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-title {
    font-size: 1rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.filter-list {
    list-style: none;
}

.filter-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.filter-checkbox {
    accent-color: var(--color-gold);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sort-select {
    padding: 8px 12px;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    font-family: var(--font-body);
    border-radius: 4px;
}

/* Product details row */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 50px;
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-main {
    aspect-ratio: 1;
    background: var(--bg-dark-sunken);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumbs {
    display: flex;
    gap: 15px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    border: 1px solid var(--border-glass);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-dark-sunken);
}

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

.detail-meta h1 {
    font-size: clamp(1.5rem, 4.5vw, 2.5rem);
    margin-bottom: 10px;
}

.detail-sku {
    color: var(--text-muted-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.detail-prices {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.detail-price-actual {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--color-gold);
}

.detail-purity-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.spec-badge {
    background: rgba(199, 168, 77, 0.1);
    border: 1px solid rgba(199, 168, 77, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold-light);
}

.detail-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.detail-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    overflow: hidden;
}

.quantity-btn {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.02);
    border: none;
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.quantity-btn:hover {
    background: rgba(255,255,255,0.06);
}

.quantity-input {
    width: 50px;
    height: 45px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
}

/* Reviews styles */
.reviews-section {
    margin-top: 60px;
}

.review-item {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

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

.review-author {
    font-weight: 600;
}

.review-text {
    color: var(--text-muted);
}

/* 9. Shopping Cart Layout (Cart.aspx) */
.cart-table-panel {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 30px;
}

/* Panels holding a .data-table must allow horizontal scrolling */
.cart-table-panel:has(.data-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

/* Admin grids keep their tabular shape and scroll sideways on small screens */
.data-table {
    min-width: 720px;
}

.cart-th {
    background: var(--bg-dark-deep);
    color: var(--color-gold);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

.cart-td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background: var(--bg-dark-sunken);
    object-fit: cover;
}

.cart-item-title {
    font-weight: 500;
}

.cart-item-sku {
    color: var(--text-muted-dark);
    font-size: 0.75rem;
}

.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-qty-input {
    width: 64px;
    padding: 6px;
    text-align: center;
}

.cart-qty-update {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.cart-td-total {
    font-weight: 600;
}

.cart-remove-btn {
    color: var(--danger);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-remove-btn:hover {
    text-decoration: underline;
}

.cart-summary-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

/* 10. Checkout Two-Column Layout (Checkout.aspx) */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 50px;
}

.checkout-summary-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    padding: 30px;
    height: fit-content;
}

.summary-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

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

.summary-total {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
}

/* 11. Admin Panel Master Layout (Admin.Master) */
.layout-admin {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--bg-dark-deep);
    border-right: 1px solid var(--border-glass);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.admin-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 20px;
}

.admin-logo span {
    color: var(--color-gold);
}

.admin-logo .logo-mark {
    height: 64px;
    margin: 0 auto 10px;
}

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

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.admin-menu-link:hover, .admin-menu-link.active {
    background: rgba(199, 168, 77, 0.08);
    color: var(--color-gold);
}

.admin-main {
    padding: 40px;
    background-color: var(--bg-dark-main);
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 15px;
}

.admin-date-chip {
    font-size: 0.9rem;
    border: 1px solid var(--border-glass);
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--bg-dark-card);
    white-space: nowrap;
}

/* Mobile-only admin top bar */
.admin-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(11, 8, 15, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.admin-topbar-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-right: auto;
}

.admin-topbar-title span {
    color: var(--color-gold);
}

/* Admin Dashboard widgets */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.metric-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    padding: 24px;
}

.metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
}

.admin-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.dashboard-panel {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    padding: 24px;
}

.dashboard-panel h3 {
    font-size: 1.1rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.segment-bar-row {
    margin-bottom: 20px;
}

.segment-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.segment-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--bg-dark-deep);
    border-radius: 4px;
    overflow: hidden;
}

.segment-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.segment-bar-fill.silver {
    background: var(--color-silver);
}

.segment-bar-fill.art {
    background: linear-gradient(90deg, var(--accent) 0%, var(--color-gold) 100%);
}

/* Warnings */
.warning-alert {
    background: rgba(229, 57, 53, 0.08);
    border: 1px solid rgba(229, 57, 53, 0.3);
    color: var(--danger);
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================================================
   12. RESPONSIVE LAYER
   Breakpoints: 1200 (small desktop) / 992 (tablet + mobile nav) /
                768 (large phone) / 576 (phone) / 380 (compact phone)
   ========================================================================= */

/* Reusable responsive form rows, so pages stop hardcoding fixed column counts */
.form-row-2,
.form-row-3 {
    display: grid;
    gap: 20px;
}

.form-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Wide data tables scroll horizontally instead of stretching the page */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll > table {
    min-width: 720px;
}

@media (max-width: 1200px) {
    /* The full nav still fits here, but only once it is tightened up */
    .nav-container {
        padding: 12px 16px;
    }
    .logo-brand {
        font-size: 1.25rem;
        gap: 8px;
    }
    .logo-mark {
        height: 44px;
    }
    .nav-menu {
        gap: 16px;
    }
    .nav-link {
        font-size: 0.78rem;
        letter-spacing: 0.2px;
    }
    .nav-actions {
        gap: 14px;
    }
    .action-icon {
        font-size: 1.15rem;
    }

    .cart-summary-grid {
        grid-template-columns: 1fr minmax(0, 340px);
        gap: 24px;
    }
    .checkout-grid {
        grid-template-columns: 1fr minmax(0, 380px);
        gap: 30px;
    }
    .layout-shop {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 26px;
    }
    .admin-main {
        padding: 30px 24px;
    }
}

/* ---------- 992px: switch to mobile navigation and single-column shells ---------- */
@media (max-width: 992px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-container {
        padding: 10px 16px;
        gap: 10px;
    }

    .logo-brand {
        font-size: 1.15rem;
        gap: 8px;
        margin-right: auto;
    }

    .logo-mark {
        height: 40px;
    }

    /* The desktop link row gives way to the drawer */
    .nav-menu-desktop {
        display: none;
    }

    /* Viewport-sized shell clips the closed drawer so it cannot widen the page */
    .nav-drawer-shell {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1500;
        overflow: hidden;
        pointer-events: none;
        visibility: hidden;
    }

    .nav-drawer-shell.open {
        pointer-events: auto;
        visibility: visible;
    }

    .nav-drawer {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(86vw, 340px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg-dark-deep);
        border-left: 1px solid var(--border-glass);
        box-shadow: -18px 0 46px rgba(0, 0, 0, 0.55);
        padding: 0 0 calc(24px + env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .nav-drawer-shell.open .nav-drawer {
        transform: translateX(0);
    }

    /* Header keeps only the essentials; the rest lives in the drawer */
    .action-icon-desktop,
    .nav-logout-link {
        display: none;
    }

    .nav-actions {
        gap: 14px;
    }

    .nav-label {
        display: none;
    }

    .nav-auth-link,
    .nav-admin-link {
        font-size: 1.15rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    .nav-admin-link {
        padding: 0 8px;
    }

    .action-icon {
        width: 44px;
        height: 44px;
    }

    /* Layout shells collapse */
    .layout-shop,
    .layout-admin,
    .checkout-grid,
    .cart-summary-grid,
    .admin-grid-two {
        grid-template-columns: 1fr;
    }

    .layout-shop {
        gap: 24px;
    }

    .checkout-grid,
    .cart-summary-grid {
        gap: 24px;
    }

    /* Filters become a collapsible block above the results */
    .filter-toggle {
        display: flex;
    }

    .shop-sidebar {
        padding: 18px;
        display: none;
    }

    .shop-sidebar.open {
        display: block;
    }

    .filter-section {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .detail-grid {
        gap: 30px;
    }

    .slide-content {
        margin-left: 0;
        padding: 0 20px;
    }

    /* A horizontal scrim leaves headline text over the bright side of the photo */
    .slide-overlay {
        background: linear-gradient(to top, rgba(11, 8, 15, 0.96) 12%, rgba(11, 8, 15, 0.72) 55%, rgba(11, 8, 15, 0.5) 100%);
    }

    .admin-main {
        padding: 24px 16px;
    }

    .admin-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .admin-topbar {
        display: flex;
    }

    /* The admin sidebar slides in rather than disappearing entirely */
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(84vw, 300px);
        z-index: 1500;
        padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
        border-right: 1px solid var(--border-glass);
        box-shadow: 18px 0 46px rgba(0, 0, 0, 0.55);
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
        visibility: hidden;
    }

    .admin-sidebar.open {
        transform: translateX(0);
        visibility: visible;
    }

    .admin-logo {
        margin-bottom: 24px;
    }

    .admin-menu-link {
        min-height: 48px;
    }
}

/* ---------- 768px: phone layout ---------- */
@media (max-width: 768px) {
    /* Two-up product grid is the e-commerce norm on phones */
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 0.9rem;
        height: 40px;
        margin-bottom: 6px;
    }

    .product-type {
        font-size: 0.65rem;
    }

    .price-actual {
        font-size: 1rem;
    }

    .price-old {
        font-size: 0.8rem;
    }

    .product-prices {
        gap: 6px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .badge-tag {
        top: 8px;
        left: 8px;
        font-size: 0.6rem;
        padding: 3px 7px;
    }

    /* Category circles shrink and scroll rather than wrapping awkwardly */
    .categories-row {
        gap: 14px;
    }

    .category-circle-card {
        width: 96px;
    }

    .circle-img-wrap {
        width: 82px;
        height: 82px;
        margin-bottom: 10px;
    }

    .category-circle-card h3 {
        font-size: 0.72rem;
    }

    /* Influencer captions can't rely on hover on touch devices */
    .influencer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .influencer-overlay {
        opacity: 1;
        padding: 14px;
        background: linear-gradient(to top, rgba(11, 8, 15, 0.95) 0%, rgba(0, 0, 0, 0) 70%);
    }

    .influencer-name {
        font-size: 0.95rem;
    }

    .influencer-insta {
        font-size: 0.78rem;
    }

    /* Product detail */
    .detail-actions {
        flex-wrap: wrap;
        gap: 12px;
    }

    .detail-actions .btn {
        flex: 1 1 100%;
    }

    .quantity-selector {
        flex: 0 0 auto;
    }

    .detail-purity-specs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .gallery-thumbs {
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gallery-thumbs::-webkit-scrollbar {
        display: none;
    }

    .gallery-thumb {
        width: 64px;
        height: 64px;
        flex: 0 0 auto;
    }

    /* Shop toolbar */
    .shop-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 20px;
    }

    .sort-select {
        width: 100%;
        padding: 12px;
    }

    /* Cart table reflows into stacked cards */
    .cart-table thead {
        display: none;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        padding: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .cart-table tr:last-child {
        border-bottom: none;
    }

    .cart-td {
        padding: 6px 0;
        border-bottom: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    /* Header text comes from the column label so rows stay readable */
    .cart-td[data-label]::before {
        content: attr(data-label);
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-muted-dark);
        flex-shrink: 0;
    }

    .cart-td.cart-td-product {
        display: block;
        padding-bottom: 12px;
    }

    .cart-item-img {
        width: 68px;
        height: 68px;
    }

    /* Footer */
    .footer-store {
        padding: 40px 18px 18px;
        margin-top: 40px;
    }

    /* Two columns keeps the mobile footer from becoming an endless list */
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 20px;
        margin-bottom: 22px;
    }

    /* The brand blurb spans the full width above the link columns */
    .footer-col:first-child {
        grid-column: 1 / -1;
    }

    .footer-col h4 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    /* Padding rather than margin, so the whole row is tappable */
    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        font-size: 0.87rem;
        display: block;
        padding: 9px 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
        font-size: 0.78rem;
    }

    /* Panels and cards get tighter padding */
    .glass-panel {
        padding: 18px;
    }

    .checkout-summary-card,
    .dashboard-panel,
    .metric-card {
        padding: 18px;
    }

    .review-item {
        padding: 16px;
    }

    .review-header {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Forms: 16px minimum stops iOS Safari zooming on focus */
    .form-input,
    .sort-select,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px;
    }

    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .btn {
        padding: 12px 20px;
        min-height: 44px;
    }

    .metric-value {
        font-size: 1.45rem;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ---------- 576px: small phones ---------- */
@media (max-width: 576px) {
    .logo-brand {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .logo-mark {
        height: 34px;
    }

    .product-grid {
        gap: 10px;
    }

    .segment-panel {
        padding: 18px;
    }

    .detail-gallery {
        gap: 14px;
    }

    .cart-summary-grid,
    .checkout-grid {
        gap: 18px;
    }

    .table-scroll > table {
        min-width: 560px;
    }
}

/* ---------- 380px: compact phones ---------- */
@media (max-width: 380px) {
    .nav-actions {
        gap: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .logo-brand span {
        display: none;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .influencer-grid {
        grid-template-columns: 1fr;
    }
}

/* Hover effects only where a real pointer exists, so taps don't stick */
@media (hover: none) {
    /* Comfortable tap areas on touch devices at any width, including tablets */
    .footer-links a {
        display: block;
        padding: 9px 0;
    }
    .footer-links li {
        margin-bottom: 0;
    }
    .action-icon {
        min-width: 44px;
        min-height: 44px;
    }
    .cart-remove-btn,
    .filter-item label {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }

    .product-card:hover {
        transform: none;
        box-shadow: none;
    }
    .product-card:hover .product-img-box img {
        transform: none;
    }
    .glass-card:hover {
        transform: none;
    }
    .category-circle-card:hover .circle-img-wrap {
        transform: none;
    }
    .footer-links a:hover {
        padding-left: 0;
    }
}

/* Landscape phones: the hero should not eat the whole screen */
@media (max-height: 520px) and (orientation: landscape) {
    .hero-slider {
        height: 400px;
    }
}



/* WhatsApp floating chat */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    z-index: 1200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    transition: var(--transition-smooth);
}
.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    color: #fff;
}

/* Sticky Add to Cart / Buy Now (mobile product page) */
.sticky-buy-bar {
    display: none;
}
@media (max-width: 768px) {
    .sticky-buy-bar {
        display: flex;
        gap: 10px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
        background: rgba(11, 8, 15, 0.96);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-glass);
    }

    .sticky-buy-bar .btn {
        flex: 1;
    }

    /* Only reserve space on pages that actually render the bar */
    body:has(.sticky-buy-bar) {
        padding-bottom: 80px;
    }

    body:has(.sticky-buy-bar) .whatsapp-float {
        bottom: calc(86px + env(safe-area-inset-bottom));
    }
}
