/* ============================================================
   TST HOMEWARE — Apple-Inspired Glassmorphism Design
   Theme: White, Gold, Black
   ============================================================ */

/* --- CSS Variables --- */
:root {
    /* Core Palette */
    --black: #0a0a0a;
    --black-light: #1a1a1a;
    --black-soft: #2d2d2d;
    --white: #ffffff;
    --white-off: #fafafa;
    --white-warm: #f5f5f7;
    --gold: #c9a84c;
    --gold-light: #dfc06a;
    --gold-dark: #a8872e;
    --gold-pale: #f5ecd7;
    --gold-glow: rgba(201, 168, 76, 0.15);

    /* Semantic */
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --text-on-dark: #f5f5f7;
    --text-gold: #c9a84c;

    --bg: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-dark: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.72);

    --border: rgba(0, 0, 0, 0.08);
    --border-gold: rgba(201, 168, 76, 0.3);
    --border-strong: rgba(0, 0, 0, 0.15);

    --success: #30d158;
    --warning: #ff9f0a;
    --danger: #ff453a;
    --info: #64d2ff;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-bg-dark: rgba(10, 10, 10, 0.75);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-blur: 20px;
    --glass-blur-heavy: 40px;

    /* Typography */
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows — Apple-style layered */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.06);
    --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.2);
    --shadow-inset: inset 0 1px 2px rgba(0,0,0,0.05);

    /* Transitions — Apple smooth */
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: all 0.3s var(--ease);
    --transition-slow: all 0.5s var(--ease);
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--gold-pale); color: var(--black); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 var(--space-lg); }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 var(--space-lg); }

/* --- Typography — Apple Scale --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { color: var(--text-secondary); line-height: 1.7; }

.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header h2 { margin-bottom: var(--space-sm); }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.section-header .divider {
    width: 48px; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: var(--space-md) auto 0;
    border-radius: 2px;
}

/* --- Sections --- */
.section { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-2xl) 0; }

/* --- Buttons — Apple Aesthetic --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn i { font-size: 0.85em; }

/* Primary — Gold gradient */
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(201, 168, 76, 0.35);
}
.btn-primary:active { transform: translateY(0); }

/* Dark — Black Apple style */
.btn-dark {
    background: var(--black);
    color: var(--white);
}
.btn-dark:hover {
    background: var(--black-soft);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Outline */
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-strong);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: var(--gold-glow);
}

/* Gold outline */
.btn-gold-outline {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
}
.btn-gold-outline:hover {
    background: var(--gold);
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

/* Ghost — minimal Apple link-button */
.btn-ghost {
    background: transparent;
    color: var(--gold);
    padding: 8px 4px;
    font-weight: 600;
}
.btn-ghost:hover { color: var(--gold-dark); }
.btn-ghost::after {
    content: ' →';
    transition: var(--transition);
}
.btn-ghost:hover::after { margin-left: 4px; }

/* White glass */
.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    color: var(--text);
}
.btn-glass:hover { background: rgba(255,255,255,0.85); box-shadow: var(--shadow); }

/* Sizes */
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Danger */
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { opacity: 0.9; transform: translateY(-1px); }

/* --- Forms — Clean Apple inputs --- */
.form-group { margin-bottom: var(--space-lg); }
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-glow);
}
.form-input::placeholder { color: var(--text-tertiary); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; }
.form-help { color: var(--text-tertiary); font-size: 0.8rem; margin-top: 4px; }

/* Checkbox */
input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(var(--glass-blur));
    -webkit-backdrop-filter: saturate(180%) blur(var(--glass-blur));
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

/* Top bar */
.top-bar {
    background: var(--black);
    color: var(--text-on-dark);
    font-size: 0.75rem;
    padding: 5px 0;
    letter-spacing: 0.02em;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a { color: var(--gold-light); }
.top-bar a:hover { color: var(--gold); }

/* Header top row: logo + search + actions */
.header-top {
    padding: 10px 0 6px;
    border-bottom: 1px solid var(--border);
}
.header-top .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.logo .logo-accent { color: var(--gold); }

/* Header search bar */
.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}
.header-search input {
    width: 100%;
    padding: 9px 42px 9px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    background: var(--bg-secondary);
    outline: none;
    transition: var(--transition);
}
.header-search input:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.header-search input::placeholder { color: var(--text-tertiary); }
.header-search button {
    position: absolute;
    right: 4px; top: 50%;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.header-search button:hover { background: var(--gold-dark); }

/* Nav actions (icons + auth buttons) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.nav-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}
.nav-action-btn:hover {
    background: var(--bg-secondary);
    color: var(--gold);
}

/* Cart badge */
.cart-badge {
    position: absolute;
    top: 0; right: -2px;
    min-width: 17px; height: 17px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Auth nav buttons */
.nav-auth-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.nav-auth-btns .btn-signin {
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-auth-btns .btn-signin:hover { color: var(--gold); }
.nav-auth-btns .btn-signup {
    padding: 7px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    background: var(--black);
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-auth-btns .btn-signup:hover {
    background: var(--black-soft);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Header bottom row: nav links */
.header-nav {
    padding: 0;
}
.header-nav .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* User dropdown */
.user-menu {
    position: relative;
}
.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.user-menu-toggle:hover { background: var(--border); }
.user-menu-toggle .avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    z-index: 100;
    animation: dropdownIn 0.2s var(--ease);
}
.user-dropdown.show { display: block; }
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 0.87rem;
    color: var(--text-secondary);
}
.user-dropdown a:hover {
    background: var(--bg-secondary);
    color: var(--text);
}
.user-dropdown a i { width: 16px; text-align: center; font-size: 0.85rem; }
.user-dropdown .divider { height: 1px; background: var(--border); margin: 4px 0; }

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    margin-left: 4px;
    border-radius: var(--radius-sm);
    -webkit-tap-highlight-color: transparent;
}
.mobile-toggle:active { background: var(--bg-secondary); }
.mobile-toggle span {
    width: 24px; height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Body offset for fixed header */
body { padding-top: 105px; }

/* --- Hero — Apple keynote style --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--black);
    color: var(--white);
    overflow: hidden;
    margin-top: -105px;
    padding-top: 105px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(201,168,76,0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 120%, rgba(201,168,76,0.08) 0%, transparent 40%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: var(--space-2xl) var(--space-lg);
}
.hero-content h1 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
}
.hero-content h1 .gold { color: var(--gold-light); }
.hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 520px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}
.hero .btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--black);
    font-weight: 700;
}
.hero .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
}
.hero .btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(201,168,76,0.1);
}

/* Floating gold particles in hero */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-particles span {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 8s infinite ease-in-out;
}
.hero-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 30%; top: 60%; animation-delay: 2s; }
.hero-particles span:nth-child(3) { left: 60%; top: 30%; animation-delay: 4s; }
.hero-particles span:nth-child(4) { left: 80%; top: 70%; animation-delay: 1s; }
.hero-particles span:nth-child(5) { left: 50%; top: 80%; animation-delay: 3s; }
.hero-particles span:nth-child(6) { left: 90%; top: 15%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 0.6; }
}

/* --- Category Grid --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.category-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: var(--bg-secondary);
    transition: var(--transition);
}
.category-card img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.category-card:hover img { transform: scale(1.06); }
.category-card .overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--space-lg);
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}
.category-card .overlay h3 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.category-card .overlay span {
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 500;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* --- Product Card — Clean, Apple-like --- */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card .image-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
}
.product-card .image-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.product-card:hover .image-wrap img { transform: scale(1.05); }

.product-card .badges {
    position: absolute;
    top: 12px; left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 3;
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
}
.badge-sale { background: var(--danger); color: #fff; }
.badge-featured { background: var(--gold); color: var(--black); }
.badge-new { background: var(--black); color: var(--white); }
.badge-out { background: var(--text-tertiary); color: #fff; }

/* Card hover actions */
.product-card .card-actions {
    position: absolute;
    top: 12px; right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(8px);
    transition: var(--transition);
    z-index: 3;
}
.product-card:hover .card-actions { opacity: 1; transform: translateX(0); }
.action-btn {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--text);
    font-size: 0.85rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.action-btn:hover { background: var(--gold); color: var(--white); box-shadow: var(--shadow-gold); }

/* Card body */
.product-card .card-body {
    padding: var(--space-md) var(--space-md) var(--space-lg);
}
.product-card .category-name {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold);
    margin-bottom: 6px;
}
.product-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.product-card h3 a { color: var(--text); }
.product-card h3 a:hover { color: var(--gold-dark); }

.price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}
.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.price-old {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.75rem;
    color: var(--gold);
}

.stock-in { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-out { color: var(--danger); }
.stock-status { font-size: 0.78rem; font-weight: 500; }

/* --- Shop Page --- */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-xl);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 110px;
    align-self: start;
}
.filter-group {
    margin-bottom: var(--space-xl);
}
.filter-group h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: var(--space-md);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.filter-group ul li a {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.filter-group ul li a:hover,
.filter-group ul li a.active {
    background: var(--gold-glow);
    color: var(--gold-dark);
}
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-range-inputs input {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Shop header */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}
.results-count { font-size: 0.88rem; color: var(--text-secondary); }
.sort-select {
    padding: 10px 36px 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236e6e73' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 14px center;
    background-size: 10px;
    -webkit-appearance: none;
    cursor: pointer;
}
.sort-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }

/* --- Product Detail --- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    padding: var(--space-xl) 0;
}
.product-gallery .main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    aspect-ratio: 1;
}
.product-gallery .main-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.product-gallery .thumbnail-list {
    display: flex;
    gap: 10px;
    margin-top: var(--space-md);
}
.product-gallery .thumbnail-list img {
    width: 72px; height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
}
.product-gallery .thumbnail-list img:hover,
.product-gallery .thumbnail-list img.active {
    border-color: var(--gold);
    opacity: 1;
}

.product-info h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: var(--space-md);
}
.product-info .meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-md);
}

/* Quantity selector */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.quantity-selector button {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text);
    background: transparent;
    transition: var(--transition);
}
.quantity-selector button:hover { background: var(--bg-secondary); }
.quantity-selector input {
    width: 48px;
    text-align: center;
    border: none;
    font-weight: 600;
    padding: 0;
    font-size: 0.95rem;
}
.quantity-selector input:focus { box-shadow: none; }

/* --- Cart --- */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}
.cart-table th {
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    padding: 0 var(--space-md) var(--space-md);
    border-bottom: 1px solid var(--border);
}
.cart-table td {
    padding: var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
    vertical-align: middle;
}
.cart-item-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.cart-item-info img {
    width: 72px; height: 72px;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Cart Summary */
.cart-summary {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: sticky;
    top: 110px;
}
.cart-summary h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
}
.summary-total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
    border-top: 1.5px solid var(--border);
}

/* --- Checkout --- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: var(--space-xl);
}
.checkout-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}
.checkout-section h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
}
.checkout-section h3 i { color: var(--gold); }

/* --- Auth Pages — Premium glassmorphism --- */
.auth-page {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-lg);
    background: var(--black);
    position: relative;
    overflow: hidden;
    margin-top: -90px;
    padding-top: calc(90px + var(--space-2xl));
}
.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(201,168,76,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(201,168,76,0.08) 0%, transparent 50%);
}
.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur-heavy));
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-xl);
}
.auth-card h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 4px;
    color: var(--text);
}
.auth-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: var(--space-xl);
}

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-xl);
    padding: var(--space-md) 0;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--text-tertiary); font-size: 0.7rem; }

/* --- Staff Dashboard Mode: hide public header/footer --- */
body.staff-dash {
    padding-top: 0 !important;
}
body.staff-dash .top-bar,
body.staff-dash .site-header,
body.staff-dash .site-footer {
    display: none !important;
}

/* Dashboard topbar */
.dash-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.dash-topbar-logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.02em;
}
.dash-topbar-logo span { color: var(--gold); }
.dash-topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}
.dash-topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.dash-topbar-user .avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}
.dash-topbar-logout {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    transition: var(--transition);
}
.dash-topbar-logout:hover { color: var(--danger); }
.dash-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.dash-sidebar-toggle:hover { background: var(--bg-secondary); }

/* Dashboard sidebar overlay (mobile) */
.dash-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.dash-sidebar-overlay.open {
    display: block;
    opacity: 1;
}

/* Dashboard sidebar close button */
.dash-sidebar-close {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
}
.dash-sidebar-close:hover { color: var(--white); }

/* --- Dashboard --- */
.dash-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    min-height: calc(100vh - 52px);
}

.dash-sidebar {
    background: var(--black);
    padding: var(--space-lg);
    align-self: start;
    position: sticky;
    top: 52px;
    overflow-y: auto;
    max-height: calc(100vh - 52px);
    border-radius: 0;
}
.dash-logo {
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 700;
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
}
.dash-logo i { color: var(--gold); }
.dash-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.dash-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    font-size: 0.87rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.dash-sidebar nav a:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
}
.dash-sidebar nav a.active {
    background: rgba(201,168,76,0.12);
    color: var(--gold-light);
}
.dash-sidebar nav a i { width: 18px; text-align: center; font-size: 0.88rem; }

.dash-content { padding: var(--space-lg) var(--space-xl); }

/* Stat cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.stat-card.success::before { background: linear-gradient(90deg, var(--success), #5ae17c); }
.stat-card.warning::before { background: var(--warning); }
.stat-card.danger::before { background: var(--danger); }
.stat-card.info::before { background: var(--info); }
.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}

/* Dashboard table */
.dash-table {
    width: 100%;
    border-collapse: collapse;
}
.dash-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    padding: var(--space-sm) var(--space-md) var(--space-md);
    border-bottom: 1px solid var(--border);
}
.dash-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    vertical-align: middle;
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: var(--bg-secondary); }

/* Status badges */
.status-badge {
    display: inline-flex;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}
.status-pending, .status-unpaid { background: #fef3c7; color: #92400e; }
.status-paid, .status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped { background: #e0e7ff; color: #3730a3; }
.status-delivered, .status-completed { background: #d1fae5; color: #065f46; }
.status-cancelled, .status-failed { background: #fee2e2; color: #991b1b; }
.status-refunded { background: #f3f4f6; color: #4b5563; }

/* --- Search Form --- */
.search-form {
    position: relative;
    width: 100%;
}
.search-form input {
    width: 100%;
    padding: 12px 48px 12px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    background: var(--white);
}
.search-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.search-form button {
    position: absolute;
    right: 6px; top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.85rem;
}

/* --- Messages / Alerts --- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown 0.3s var(--ease);
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    color: inherit;
}
.close-btn:hover { opacity: 1; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: var(--space-xl);
}
.pagination a, .pagination .current {
    min-width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}
.pagination a { color: var(--text-secondary); }
.pagination a:hover { background: var(--bg-secondary); color: var(--text); }
.pagination .current {
    background: var(--black);
    color: var(--white);
    font-weight: 600;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}
.empty-state .icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}
.empty-state h3 { font-size: 1.3rem; margin-bottom: var(--space-sm); }
.empty-state p { color: var(--text-secondary); margin-bottom: var(--space-lg); }

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    top: 100px; right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    padding: 14px 22px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 0.88rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.4s var(--ease-spring);
    max-width: 360px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--gold); }
.toast-exit { animation: toastOut 0.3s var(--ease) forwards; }

@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* --- Footer — Apple minimal --- */
.site-footer {
    background: var(--black);
    color: rgba(255,255,255,0.5);
    padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}
.footer-about .footer-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-about .footer-logo .gold { color: var(--gold); }
.footer-about p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
    max-width: 320px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-lg);
}
.footer-col a {
    display: block;
    padding: 5px 0;
    font-size: 0.87rem;
    color: rgba(255,255,255,0.45);
    transition: var(--transition);
}
.footer-col a:hover { color: var(--gold-light); transform: translateX(4px); }

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}
.footer-bottom .social-links { display: flex; gap: 14px; }
.footer-bottom .social-links a {
    color: rgba(255,255,255,0.35);
    font-size: 1rem;
    transition: var(--transition);
}
.footer-bottom .social-links a:hover { color: var(--gold); transform: translateY(-2px); }

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold { color: var(--gold) !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* --- Trust Bar --- */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
    padding: var(--space-2xl) 0;
}
.trust-item {
    padding: var(--space-lg);
}
.trust-item .icon {
    width: 56px; height: 56px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold-glow);
    color: var(--gold);
    font-size: 1.3rem;
}
.trust-item h4 { font-size: 0.92rem; margin-bottom: 4px; }
.trust-item p { font-size: 0.82rem; color: var(--text-tertiary); }

/* --- Promo Banner --- */
.promo-banner {
    background: var(--black);
    color: var(--white);
    padding: var(--space-2xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(201,168,76,0.1) 0%, transparent 60%);
}
.promo-banner h2 {
    color: var(--white);
    font-family: var(--font-heading);
    position: relative;
}
.promo-banner p { color: rgba(255,255,255,0.6); position: relative; }
.promo-banner .btn { position: relative; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
    .checkout-layout { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero { min-height: 70vh; margin-top: -56px; padding-top: 56px; }
    .hero-content h1 { font-size: 2rem; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-bar { grid-template-columns: repeat(2, 1fr); }

    .shop-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }

    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar {
        position: static;
        max-height: none;
        border-radius: var(--radius);
    }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }

    .auth-page { margin-top: -56px; padding-top: calc(56px + var(--space-xl)); }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr; }
    .trust-bar { grid-template-columns: 1fr; }
    .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; }
}

/* --- Hero Carousel / Slideshow --- */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: -105px;
}
.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.carousel-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16/6;
    min-height: 420px;
    max-height: 600px;
    overflow: hidden;
}
.carousel-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-slide .carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
    display: flex;
    align-items: center;
    padding: 0 6%;
    padding-top: 105px;
}
.carousel-slide .carousel-text {
    max-width: 520px;
    color: var(--white);
}
.carousel-slide .carousel-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.15;
}
.carousel-slide .carousel-text p {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
    line-height: 1.6;
}
/* Carousel controls */
.carousel-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}
.carousel-btn:hover {
    background: rgba(255,255,255,0.3);
}
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }
.carousel-dots {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.carousel-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}
.carousel-dots span.active {
    background: var(--gold);
    width: 28px;
    border-radius: 5px;
}

/* Carousel fallback hero (no slides) */
.hero-carousel .hero-fallback {
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--black);
    color: var(--white);
    position: relative;
    padding-top: 105px;
}
.hero-carousel .hero-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(201,168,76,0.1) 0%, transparent 50%);
}

/* --- Auth Slider (Login/Signup combined) --- */
.auth-slider {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    position: relative;
    overflow: hidden;
    margin-top: -105px;
    padding-top: 105px;
}
.auth-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(201,168,76,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(201,168,76,0.08) 0%, transparent 50%);
}
.auth-slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    min-height: 560px;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin: var(--space-xl) var(--space-lg);
}
.auth-slider-panels {
    display: flex;
    min-height: 560px;
    position: relative;
}
/* Form panels */
.auth-form-panel {
    width: 55%;
    padding: var(--space-xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}
.auth-form-panel.login-panel {
    position: absolute;
    inset: 0;
    width: 55%;
    z-index: 2;
    opacity: 1;
    transform: translateX(0);
}
.auth-form-panel.register-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    left: auto;
    width: 55%;
    z-index: 1;
    opacity: 0;
    transform: translateX(40px);
}
/* Overlay panel (side) */
.auth-overlay-panel {
    width: 45%;
    position: absolute;
    right: 0; top: 0; bottom: 0;
    background: linear-gradient(135deg, var(--black) 0%, var(--black-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    text-align: center;
    z-index: 5;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-overlay-panel h3 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.auth-overlay-panel p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 28px;
    max-width: 280px;
}
.auth-overlay-panel .btn-switch {
    padding: 10px 32px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-full);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.auth-overlay-panel .btn-switch:hover {
    background: var(--gold);
    color: var(--black);
}
/* Active state: signup */
.auth-slider-container.signup-active .login-panel {
    z-index: 1;
    opacity: 0;
    transform: translateX(-40px);
}
.auth-slider-container.signup-active .register-panel {
    z-index: 2;
    opacity: 1;
    transform: translateX(0);
}
.auth-slider-container.signup-active .auth-overlay-panel {
    transform: translateX(calc(-100% / 0.45 * 0.55));
}
.auth-form-panel h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 2px;
    color: var(--text);
}
.auth-form-panel .subtitle {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-bottom: var(--space-md);
}
.auth-form-panel .form-group {
    margin-bottom: 10px;
}
.auth-form-panel .form-group label {
    font-size: 0.78rem;
    margin-bottom: 3px;
}
.auth-form-panel input[type="text"],
.auth-form-panel input[type="email"],
.auth-form-panel input[type="password"],
.auth-form-panel input[type="tel"] {
    padding: 9px 12px;
    font-size: 0.84rem;
}
.auth-form-panel .btn-block {
    padding: 10px;
    font-size: 0.85rem;
    margin-top: 6px;
}

/* Mobile auth slider */
@media (max-width: 768px) {
    .auth-slider-container {
        max-width: 420px;
        min-height: auto;
    }
    .auth-slider-panels {
        flex-direction: column;
        min-height: auto;
    }
    .auth-overlay-panel { display: none; }
    .auth-form-panel.login-panel,
    .auth-form-panel.register-panel {
        position: relative;
        width: 100%;
        padding: var(--space-xl) var(--space-lg);
        opacity: 1;
        transform: none;
    }
    .auth-form-panel.register-panel {
        display: none;
    }
    .auth-slider-container.signup-active .login-panel {
        display: none;
    }
    .auth-slider-container.signup-active .register-panel {
        display: flex;
        opacity: 1;
        transform: none;
    }
    .auth-mobile-switch {
        display: block;
        text-align: center;
        padding: 0 0 var(--space-lg);
    }
    .auth-mobile-switch a {
        color: var(--gold);
        font-weight: 600;
        font-size: 0.88rem;
        cursor: pointer;
    }
}
@media (min-width: 769px) {
    .auth-mobile-switch { display: none; }
}

/* Mobile header adjustments */
@media (max-width: 768px) {
    body { padding-top: 56px; }
    .top-bar { display: none; }
    .header-top { padding: 8px 0; border-bottom: none; }
    .header-top .container { gap: 10px; }
    .header-search { display: none; }
    .header-nav { display: none; }
    .mobile-toggle { display: flex !important; }
    .nav-auth-btns { display: none; }
    .user-menu-toggle span:not(.avatar) { display: none; }
    .user-menu-toggle { padding: 6px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 56px;
        left: 0; right: 0; bottom: 0;
        background: var(--white);
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        gap: 0;
        z-index: 999;
        overflow-y: auto;
    }
    .nav-links.open a {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        font-size: 0.95rem;
    }
    .nav-links.open a:last-child { border-bottom: none; }
    /* Mobile search in open menu */
    .mobile-search {
        display: block;
        padding: 0 0 var(--space-md);
    }
    .mobile-search form { position: relative; }
    .mobile-search input {
        width: 100%;
        padding: 10px 44px 10px 16px;
        border: 1.5px solid var(--border);
        border-radius: var(--radius-full);
        font-size: 0.85rem;
    }
    .mobile-search button {
        position: absolute;
        right: 6px; top: 50%;
        transform: translateY(-50%);
        width: 32px; height: 32px;
        background: var(--gold);
        color: var(--white);
        border: none;
        border-radius: 50%;
        font-size: 0.8rem;
        cursor: pointer;
    }

    /* Hero carousel mobile */
    .hero-carousel { margin-top: -56px; }
    .carousel-slide { min-height: 280px; max-height: 400px; aspect-ratio: auto; }
    .carousel-slide img { min-height: 280px; }
    .carousel-slide .carousel-overlay { padding-top: 56px; padding-left: 5%; padding-right: 5%; }
    .carousel-slide .carousel-text h2 { font-size: 1.3rem; }
    .carousel-slide .carousel-text p { font-size: 0.85rem; margin-bottom: 16px; }
    .carousel-slide .carousel-text .btn { padding: 8px 20px; font-size: 0.8rem; }
    .carousel-btn { width: 36px; height: 36px; font-size: 0.85rem; }
    .carousel-btn.prev { left: 10px; }
    .carousel-btn.next { right: 10px; }
    .carousel-dots { bottom: 12px; }
    .carousel-dots span { width: 8px; height: 8px; }
    .carousel-dots span.active { width: 22px; }
    .hero-carousel .hero-fallback { padding-top: 56px; min-height: 300px; }

    /* Auth slider mobile */
    .auth-slider { margin-top: -56px; padding-top: 56px; }

    /* Dashboard mobile: sidebar becomes slide-out drawer */
    .dash-sidebar-toggle { display: block !important; }
    .dash-sidebar-close { display: block !important; }
    .dash-topbar { padding: 10px 16px; }
    .dash-topbar-user span:not(.avatar) { display: none; }
    .dash-layout { grid-template-columns: 1fr; gap: 0; }
    .dash-sidebar {
        position: fixed;
        top: 0; left: -280px; bottom: 0;
        width: 270px;
        max-height: 100vh;
        z-index: 200;
        border-radius: 0;
        padding: var(--space-lg);
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    .dash-sidebar.open { left: 0; }
    .dash-content { padding: var(--space-md) 16px; }
    .dash-content h2 { font-size: 1.2rem; }

    /* Dashboard table horizontal scroll on mobile */
    .dash-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .dash-table { min-width: 600px; }
    .dash-table th, .dash-table td { font-size: 0.78rem; padding: 8px 10px; white-space: nowrap; }

    /* Stat cards mobile */
    .stat-grid { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
    .stat-card { padding: var(--space-md); }
    .stat-value { font-size: 1.4rem; }
    .stat-label { font-size: 0.7rem; }

    /* Search form mobile */
    .search-form input { padding: 10px 42px 10px 14px; font-size: 0.82rem; }
    .search-form button { width: 32px; height: 32px; font-size: 0.8rem; }

    /* Footer mobile */
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }

    /* General mobile */
    .container { padding-left: 16px; padding-right: 16px; }
    .section-sm { padding: var(--space-lg) 0; }
    .btn { padding: 9px 18px; font-size: 0.82rem; }
    .btn-lg { padding: 11px 24px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .carousel-slide { min-height: 220px; max-height: 320px; }
    .carousel-slide .carousel-text h2 { font-size: 1.1rem; }
    .carousel-slide .carousel-text p { font-size: 0.78rem; }
    .carousel-btn { width: 30px; height: 30px; font-size: 0.75rem; }
    .stat-grid { grid-template-columns: 1fr; }
    .dash-content { padding: var(--space-sm) 12px; }
}

@media (min-width: 769px) {
    .mobile-toggle { display: none !important; }
    .mobile-search { display: none; }
    #mobile-nav { display: none !important; }
}
