/* ═══════════════════════════════════════════════════════════
   Dana Fiore — Luxury Jewellery E-Commerce
   Design System & Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
    /* Core Palette */
    --rose-gold:        #B76E79;
    --rose-gold-light:  #D4A0A7;
    --rose-gold-dark:   #9A5560;
    --champagne:        #F7E7CE;
    --champagne-light:  #FFF5E6;
    --gold:             #D4AF37;
    --gold-light:       #E8C967;
    --gold-glow:        rgba(212, 175, 55, 0.15);

    /* Backgrounds */
    --bg-primary:       #0D0D0D;
    --bg-secondary:     #151515;
    --bg-card:          #1A1A1A;
    --bg-elevated:      #222222;
    --bg-glass:         rgba(26, 26, 26, 0.75);

    /* Text */
    --text-primary:     #FFFDF7;
    --text-secondary:   #A8A8A8;
    --text-muted:       #666666;

    /* Accent */
    --success:          #4ADE80;
    --error:            #F87171;
    --warning:          #FBBF24;
    --info:             #60A5FA;

    /* Borders */
    --border-subtle:    rgba(255, 253, 247, 0.06);
    --border-light:     rgba(255, 253, 247, 0.12);
    --border-gold:      rgba(212, 175, 55, 0.3);

    /* Shadows */
    --shadow-sm:        0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md:        0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg:        0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow:      0 0 40px rgba(183, 110, 121, 0.15);

    /* Typography */
    --font-display:     'Playfair Display', Georgia, serif;
    --font-body:        'Inter', -apple-system, sans-serif;

    /* Spacing */
    --container-width:  1280px;
    --section-padding:  100px 0;

    /* Transitions */
    --ease:             cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce:      cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Border Radius */
    --radius-sm:        8px;
    --radius-md:        12px;
    --radius-lg:        20px;
    --radius-xl:        28px;
}


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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

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

ul { list-style: none; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}


/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: all 0.35s var(--ease);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
    color: #fff;
    box-shadow: 0 4px 20px rgba(183, 110, 121, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(183, 110, 121, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-outline:hover {
    border-color: var(--rose-gold);
    color: var(--rose-gold-light);
    background: rgba(183, 110, 121, 0.08);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
}

.btn-danger:hover {
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}


/* ── Page Preloader ───────────────────────────────────────── */
.page-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo-wrap {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-spinner-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed rgba(212, 175, 55, 0.3);
    animation: preloaderSpin 8s linear infinite reverse;
}

.preloader-spinner {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 3px solid rgba(212, 175, 55, 0.15);
    border-top-color: #D4AF37;
    border-right-color: #EED596;
    animation: preloaderSpin 1.2s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
}

.preloader-center-logo {
    position: absolute;
    width: 100px;
    height: 100px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
    animation: preloaderLogoMotion 2.4s ease-in-out infinite;
}

.preloader-text {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 18px;
    animation: preloaderFade 1.5s ease-in-out infinite;
}

@keyframes preloaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes preloaderLogoMotion {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 0.92;
        filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
    }
    50% {
        transform: scale(1.12) translateY(-4px);
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.7));
    }
}

@keyframes preloaderFade {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}


/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    flex-shrink: 0;
}

.nav-logo:hover .logo-img {
    transform: scale(1.05);
    opacity: 0.9;
}

.footer-logo-img {
    height: 80px;
}

.login-logo-img {
    height: 110px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 8px;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--rose-gold);
    transition: width 0.35s var(--ease);
}

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

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

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

/* ── Search Bar ───────────────────────────────────────────── */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 100px;
    transition: all 0.35s var(--ease);
}

.search-input {
    width: 0;
    opacity: 0;
    padding: 0;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    border-radius: 100px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.35s var(--ease);
    outline: none;
}

.search-wrapper.active .search-input {
    width: 200px;
    padding: 8px 36px 8px 16px;
    opacity: 1;
    border-color: var(--border-subtle);
}

.search-input:focus {
    border-color: var(--rose-gold) !important;
    box-shadow: 0 0 12px rgba(183, 110, 121, 0.25);
}

.search-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease);
}

.search-toggle-btn:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.search-wrapper.active .search-toggle-btn {
    color: var(--rose-gold-light);
}

.search-clear-btn {
    position: absolute;
    right: 46px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s var(--ease);
}

.search-clear-btn:hover {
    color: var(--text-primary);
    background: var(--border-subtle);
}

@media (max-width: 768px) {
    .search-wrapper.active .search-input {
        width: 130px;
    }
}

/* ── Search Suggestions ───────────────────────────────────── */
.search-suggestions {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: rgba(13, 13, 13, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), var(--shadow-glow);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp 0.3s var(--ease) both;
}

.search-suggestions.active {
    display: flex;
}

.suggestion-group {
    padding: 8px 0;
}

.suggestion-group + .suggestion-group {
    border-top: 1px solid var(--border-subtle);
}

.suggestion-group-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--rose-gold-light);
    padding: 6px 16px;
    opacity: 0.8;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.suggestion-item:hover {
    background: rgba(183, 110, 121, 0.12);
    color: var(--text-primary);
    padding-left: 20px; /* subtle micro-interaction */
}

.suggestion-item svg {
    flex-shrink: 0;
    color: var(--rose-gold);
}

.suggestion-item-img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
    .search-suggestions {
        position: fixed;
        top: 76px;
        left: 16px;
        right: 16px;
        width: auto;
    }
}

.cart-btn {
    position: relative;
    padding: 10px;
    color: var(--text-secondary);
    transition: color 0.3s var(--ease);
    border-radius: var(--radius-sm);
}

.cart-btn:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--rose-gold);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease-bounce);
}

.cart-badge.bump {
    transform: scale(1.4);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 10;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ── Hero Section ─────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(183, 110, 121, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(183, 110, 121, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, #0A0A0A 100%);
    animation: heroGradientShift 12s ease-in-out infinite alternate;
}

@keyframes heroGradientShift {
    0% {
        background: 
            radial-gradient(ellipse at 20% 50%, rgba(183, 110, 121, 0.15) 0%, transparent 60%),
            radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
            radial-gradient(ellipse at 50% 80%, rgba(183, 110, 121, 0.08) 0%, transparent 50%),
            linear-gradient(180deg, var(--bg-primary) 0%, #0A0A0A 100%);
    }
    100% {
        background: 
            radial-gradient(ellipse at 70% 30%, rgba(183, 110, 121, 0.18) 0%, transparent 55%),
            radial-gradient(ellipse at 20% 70%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 80%, rgba(183, 110, 121, 0.1) 0%, transparent 50%),
            linear-gradient(180deg, var(--bg-primary) 0%, #0A0A0A 100%);
    }
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--rose-gold-light);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 8s infinite;
}

@keyframes floatParticle {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--rose-gold-light);
    margin-bottom: 24px;
    font-weight: 400;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.hero-accent {
    background: linear-gradient(135deg, var(--rose-gold), var(--gold), var(--rose-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--rose-gold-light);
}

.stat .stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.hero-scroll-indicator {
    display: none !important;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 1.5px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: var(--rose-gold-light);
    border-radius: 2px;
    animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}


/* ── Section Styles ───────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-subtitle {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rose-gold-light);
    margin-bottom: 16px;
    font-weight: 400;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.accent {
    background: linear-gradient(135deg, var(--rose-gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    font-size: 1rem;
}


/* ── Collection Section ───────────────────────────────────── */
.collection {
    padding: var(--section-padding);
    background: var(--bg-primary);
    position: relative;
}

.collection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.category-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1.5px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-secondary);
    transition: all 0.35s var(--ease);
    background: transparent;
}

.filter-btn:hover {
    border-color: var(--rose-gold);
    color: var(--rose-gold-light);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
    border-color: var(--rose-gold);
    color: #fff;
    box-shadow: 0 4px 16px rgba(183, 110, 121, 0.3);
}


/* ── Products Grid ────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.product-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.45s var(--ease);
    cursor: pointer;
    animation: fadeInUp 0.6s var(--ease) both;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow), 0 20px 50px rgba(0,0,0,0.3);
}

.product-card .card-image {
    position: relative;
    width: 100%;
    padding-top: 110%;
    overflow: hidden;
    background: var(--bg-elevated);
}

.product-card .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

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

.product-card .card-image .no-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    z-index: 2;
}

.card-quick-view {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    padding: 10px 24px;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 100px;
    transition: all 0.4s var(--ease);
    white-space: nowrap;
    z-index: 2;
}

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

.card-body {
    padding: 20px;
}

.card-category {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--rose-gold-light);
    margin-bottom: 6px;
}

.card-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.card-price {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--champagne);
}

.card-original-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.card-discount {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(74, 222, 128, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

.card-add-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.35s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.card-add-btn:hover {
    background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
    border-color: var(--rose-gold);
    box-shadow: 0 4px 16px rgba(183, 110, 121, 0.3);
}

.card-add-btn svg {
    width: 16px;
    height: 16px;
}


/* ── Loading Spinner ──────────────────────────────────────── */
.loading-spinner {
    display: none;
    justify-content: center;
    padding: 60px 0;
}

.loading-spinner.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--rose-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ── About Section ────────────────────────────────────────── */
.about {
    padding: var(--section-padding);
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(26, 26, 26, 0.95), rgba(10, 10, 10, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(212, 175, 55, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.12) 0%, transparent 65%),
        url('/static/images/emblem-gold.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 70% auto;
    opacity: 0.25;
    animation: aboutPatternRotate 40s linear infinite;
}

@keyframes aboutPatternRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.08); }
    100% { transform: rotate(360deg) scale(1); }
}

.about-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, rgba(183, 110, 121, 0.15) 45%, transparent 70%);
    opacity: 0.4;
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.about-centered-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    z-index: 3;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 15px rgba(212, 175, 55, 0.35));
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-centered-logo {
    transform: translate(-50%, -50%) scale(1.05);
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.25; }
}

.about-content .section-title {
    text-align: left;
}

.about-content .section-subtitle {
    text-align: left;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 36px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease);
}

.about-feature:hover {
    border-color: var(--border-gold);
    transform: translateX(8px);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about-feature h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.about-feature p {
    font-size: 0.82rem;
    color: var(--text-muted);
}


/* ── Footer ───────────────────────────────────────────────── */
.footer {
    padding: 80px 0 32px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand .social-links {
    justify-content: center;
}

.quick-links-col {
    text-align: right;
}

.quick-links-col ul {
    align-items: flex-end;
}

.footer-desc {
    color: var(--text-secondary);
    margin: 16px 0 24px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
}

.social-link:hover {
    border-color: var(--rose-gold);
    color: var(--rose-gold-light);
    background: rgba(183, 110, 121, 0.1);
    transform: translateY(-3px);
}

.footer-links-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col a,
.footer-links-col li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.3s var(--ease);
}

.footer-links-col a:hover {
    color: var(--rose-gold-light);
}

.contact-info li {
    font-size: 0.85rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.82rem;
}


/* ── Cart Sidebar ─────────────────────────────────────────── */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s var(--ease);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-subtle);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: right 0.45s var(--ease);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.cart-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.cart-close {
    padding: 8px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease);
}

.cart-close:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
    animation: fadeInUp 0.3s var(--ease);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-elevated);
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-img .no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--champagne);
    font-weight: 600;
}

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

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
}

.qty-btn:hover {
    border-color: var(--rose-gold);
    color: var(--rose-gold-light);
}

.cart-item-qty span {
    font-size: 0.85rem;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    align-self: flex-start;
    padding: 6px;
    color: var(--text-muted);
    transition: color 0.3s var(--ease);
}

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

.cart-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    padding: 60px 24px;
    color: var(--text-secondary);
}

.cart-empty.active {
    display: flex;
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.cart-empty p {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.cart-empty span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border-subtle);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

.cart-total-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--champagne);
}


/* ── Product Modal ────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.4s var(--ease);
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 10px;
    color: var(--text-secondary);
    border-radius: 50%;
    background: var(--bg-card);
    z-index: 10;
    transition: all 0.3s var(--ease);
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-image {
    padding-top: 110%;
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    overflow: hidden;
}

.modal-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-category {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose-gold-light);
    margin-bottom: 12px;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.modal-pricing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.modal-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--champagne);
}

.modal-original-price {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.modal-discount {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(74, 222, 128, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.modal-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    font-size: 0.95rem;
}

/* Quick View Modal Carousel */
.modal-carousel-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.modal-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeIn 0.4s var(--ease);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 5;
}

.carousel-arrow:hover {
    background: var(--rose-gold);
    color: #fff;
    border-color: var(--rose-gold-light);
}

.carousel-arrow.prev {
    left: 12px;
}

.carousel-arrow.next {
    right: 12px;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.carousel-dot.active {
    background: var(--rose-gold);
    transform: scale(1.2);
}


/* ── Toast Notifications ──────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    transform: translateX(120%);
    transition: transform 0.35s var(--ease);
    max-width: 380px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 3px solid var(--success);
}

.toast-error {
    border-left: 3px solid var(--error);
}

.toast-info {
    border-left: 3px solid var(--info);
}


/* ── Reveal Animations ────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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


/* ═══════════════════════════════════════════════════════════
   ADMIN PANEL STYLES
   ═══════════════════════════════════════════════════════════ */

.admin-body {
    background: var(--bg-primary);
}

.admin-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
}

.admin-badge-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
    color: #fff;
    padding: 3px 10px;
    border-radius: 100px;
    margin-left: 8px;
}

.admin-nav-actions {
    display: flex;
    gap: 8px;
}


/* ── Login ─────────────────────────────────────────────── */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    animation: fadeInUp 0.6s var(--ease);
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-header h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 16px 0 8px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-error {
    display: none;
    text-align: center;
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 16px;
    padding: 10px;
    background: rgba(248, 113, 113, 0.08);
    border-radius: var(--radius-sm);
}


/* ── Forms ────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: border-color 0.3s var(--ease);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--rose-gold);
    box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A8A8A8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px;
    color: var(--text-muted);
    transition: color 0.3s var(--ease);
}

.toggle-password:hover {
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox-group {
    display: flex;
    align-items: flex-end;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    padding-bottom: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--rose-gold);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}


/* ── Image Upload ─────────────────────────────────────────── */
.image-upload-area {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease);
    cursor: pointer;
    overflow: hidden;
}

.image-upload-area:hover,
.image-upload-area.drag-over {
    border-color: var(--rose-gold);
    background: rgba(183, 110, 121, 0.05);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-muted);
}

.upload-placeholder p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.upload-placeholder span {
    font-size: 0.78rem;
}

.upload-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--bg-elevated);
}

.upload-preview img {
    max-height: 200px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 113, 113, 0.2);
    color: var(--error);
    border-radius: 50%;
    font-size: 0.8rem;
    transition: all 0.3s var(--ease);
}

.remove-image:hover {
    background: var(--error);
    color: #fff;
}

/* Upload Gallery in Admin Product Form */
.upload-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.gallery-thumb-wrapper {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    background: var(--bg-primary);
}

.gallery-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.gallery-thumb-remove:hover {
    background: var(--error);
}


/* ── Admin Dashboard ──────────────────────────────────────── */
.admin-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease);
}

.admin-stat-card:hover {
    border-color: var(--border-gold);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--champagne);
}

.admin-stat-card .stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ── Admin Panels ─────────────────────────────────────────── */
.admin-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s var(--ease);
}

.panel-header:hover {
    background: var(--bg-elevated);
}

.panel-header h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
}

.panel-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.panel-header-actions .search-input {
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s var(--ease);
    width: 240px;
}

.panel-header-actions .search-input:focus {
    border-color: var(--rose-gold);
}

.panel-header-actions .search-input::placeholder {
    color: var(--text-muted);
}

.panel-toggle-btn {
    padding: 6px;
    color: var(--text-secondary);
    transition: transform 0.3s var(--ease);
}

.panel-toggle-btn.open {
    transform: rotate(180deg);
}

.panel-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease);
    padding: 0 24px;
}

.panel-body.open {
    max-height: 2000px;
    padding: 0 24px 24px;
}

/* Products panel always open */
.admin-panel:last-child .panel-header {
    cursor: default;
}

.admin-panel:last-child .panel-header:hover {
    background: transparent;
}

.admin-panel:last-child .panel-body {
    max-height: none;
    overflow: visible;
    padding: 0 24px 24px;
}


/* ── Products Table ───────────────────────────────────────── */
.products-table-wrapper {
    overflow-x: auto;
}

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

.products-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
}

.products-table td {
    padding: 14px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

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

.products-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.table-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.table-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.table-id {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: monospace;
}

.table-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(183, 110, 121, 0.1);
    color: var(--rose-gold-light);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.table-price {
    font-weight: 600;
    color: var(--champagne);
}

.table-original {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.table-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--gold-glow);
    color: var(--gold-light);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 6px;
}

.action-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
}

.edit-btn:hover {
    border-color: var(--info);
    color: var(--info);
    background: rgba(96, 165, 250, 0.08);
}

.delete-btn:hover {
    border-color: var(--error);
    color: var(--error);
    background: rgba(248, 113, 113, 0.08);
}

.empty-table {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}


/* ── Delete Modal ─────────────────────────────────────────── */
.delete-modal {
    max-width: 420px;
    padding: 36px;
    text-align: center;
}

.delete-modal h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.delete-modal p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}


/* ── Admin Tab Navigation ─────────────────────────────────── */
.admin-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 6px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.admin-tab {
    flex: 1;
    padding: 12px 20px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease);
    text-align: center;
    white-space: nowrap;
}

.admin-tab:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.admin-tab.active {
    background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
    color: #fff;
    box-shadow: 0 4px 16px rgba(183, 110, 121, 0.3);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeInUp 0.4s var(--ease);
}


/* ── Orders Panel ─────────────────────────────────────────── */
.orders-summary-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.order-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s var(--ease);
}

.order-summary-card:hover {
    border-color: var(--border-gold);
}

.order-summary-icon {
    font-size: 1.3rem;
}

.order-summary-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--champagne);
    display: block;
    line-height: 1.2;
}

.order-summary-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    transition: all 0.3s var(--ease);
}

.order-card:hover {
    border-color: var(--border-gold);
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.order-id {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--rose-gold-light);
    font-weight: 600;
}

.order-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.status-delivered {
    background: rgba(74, 222, 128, 0.1);
    color: var(--success);
}

.status-shipped {
    background: rgba(96, 165, 250, 0.1);
    color: var(--info);
}

.status-processing {
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning);
}

.status-cancelled {
    background: rgba(248, 113, 113, 0.1);
    color: var(--error);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.order-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.order-item-name {
    color: var(--text-primary);
    font-weight: 500;
}

.order-item-qty {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.order-item-price {
    color: var(--champagne);
    font-weight: 600;
}

.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.order-total-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-total-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--champagne);
}

.order-customer {
    font-size: 0.82rem;
    color: var(--text-secondary);
}


/* ── Sales Report Panel ───────────────────────────────────── */
.sales-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.sales-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: all 0.3s var(--ease);
}

.sales-summary-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
}

.sales-card-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.sales-card-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--champagne);
    display: block;
}

.sales-card-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
}

.sales-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 100px;
}

.trend-up {
    color: var(--success);
    background: rgba(74, 222, 128, 0.1);
}

.trend-down {
    color: var(--error);
    background: rgba(248, 113, 113, 0.1);
}

.sales-chart-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sales-chart-panel h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.chart-container {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 0 8px;
}

.chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.chart-bar {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, var(--rose-gold), var(--rose-gold-dark));
    border-radius: 4px 4px 0 0;
    transition: all 0.6s var(--ease);
    position: relative;
    min-height: 4px;
}

.chart-bar:hover {
    filter: brightness(1.2);
}

.chart-bar-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-bar-value {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.sales-table-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.sales-table-panel h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 20px 24px 16px;
}

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

.sales-table th {
    text-align: left;
    padding: 10px 24px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
}

.sales-table td {
    padding: 12px 24px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
}

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

.sales-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}


/* ── Inventory Panel ──────────────────────────────────────── */
.inventory-summary-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.inventory-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s var(--ease);
}

.inventory-card:hover {
    border-color: var(--border-gold);
}

.inventory-icon {
    font-size: 1.5rem;
}

.inventory-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--champagne);
    display: block;
}

.inventory-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inventory-table-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.inventory-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
}

.inventory-table-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

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

.inventory-table th {
    text-align: left;
    padding: 10px 24px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
}

.inventory-table td {
    padding: 14px 24px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

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

.inventory-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
}

.stock-in {
    background: rgba(74, 222, 128, 0.1);
    color: var(--success);
}

.stock-low {
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning);
}

.stock-out {
    background: rgba(248, 113, 113, 0.1);
    color: var(--error);
}

/* Stock Editor in Inventory Table */
.inventory-stock-editor {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 2px;
    max-width: 120px;
}

.stock-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s var(--ease);
}

.stock-btn:hover {
    background: var(--rose-gold);
    color: #fff;
}

.stock-input {
    width: 48px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.stock-input::-webkit-outer-spin-button,
.stock-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stock-input:focus {
    outline: none;
}

.inventory-sku {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--rose-gold-light);
    background: rgba(183, 110, 121, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.category-breakdown {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
}

.category-breakdown h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.category-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.category-bar-name {
    width: 90px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.category-bar-track {
    flex: 1;
    height: 10px;
    background: var(--bg-elevated);
    border-radius: 100px;
    overflow: hidden;
}

.category-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rose-gold), var(--gold));
    border-radius: 100px;
    transition: width 0.8s var(--ease);
}

.category-bar-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    min-width: 24px;
    text-align: right;
}

.no-data-message {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Order Status Editor in Dashboard */
.order-status-editor {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.status-select {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    transition: all 0.3s var(--ease);
    text-align: center;
    width: fit-content;
}

.status-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.select-received { color: var(--info) !important; border-color: rgba(96, 165, 250, 0.4) !important; background: rgba(96, 165, 250, 0.1) !important; }
.select-pending { color: var(--warning) !important; border-color: rgba(251, 191, 36, 0.4) !important; background: rgba(251, 191, 36, 0.1) !important; }
.select-dispatched { color: #C084FC !important; border-color: rgba(192, 132, 252, 0.4) !important; background: rgba(192, 132, 252, 0.1) !important; }
.select-on-the-way { color: #F472B6 !important; border-color: rgba(244, 114, 182, 0.4) !important; background: rgba(244, 114, 182, 0.1) !important; }
.select-delivered { color: var(--success) !important; border-color: rgba(74, 222, 128, 0.4) !important; background: rgba(74, 222, 128, 0.1) !important; }
.select-returned { color: #F87171 !important; border-color: rgba(248, 113, 113, 0.4) !important; background: rgba(248, 113, 113, 0.1) !important; }

.tracking-input-wrapper {
    display: flex;
    gap: 6px;
    align-items: center;
    animation: fadeIn 0.3s var(--ease);
}

.tracking-input {
    width: 140px;
    height: 28px;
    font-size: 0.72rem;
    padding: 4px 8px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s var(--ease);
}

.tracking-input:focus {
    border-color: var(--rose-gold);
}

.btn-save-tracking {
    padding: 4px 8px !important;
    font-size: 0.7rem !important;
    height: 28px !important;
    min-width: 48px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual { display: none; }

    .about-content .section-title,
    .about-content .section-subtitle {
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
        order: 1;
    }

    .contact-col {
        order: 2;
        text-align: left;
    }

    .quick-links-col {
        order: 3;
        text-align: right;
    }

    .quick-links-col ul {
        align-items: flex-end;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        padding-top: 60%;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .modal-details {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .orders-summary-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-img {
        height: 45px;
    }

    .nav-container:has(.search-wrapper.active) .nav-logo {
        display: none;
    }

    .nav-container:has(.search-wrapper.active) .nav-actions {
        width: 100%;
        justify-content: space-between;
    }

    .nav-container:has(.search-wrapper.active) .search-wrapper.active {
        flex-grow: 1;
    }

    .nav-container:has(.search-wrapper.active) .search-wrapper.active .search-input {
        width: 100%;
    }

    .navbar:has(.search-wrapper.active),
    .navbar.menu-active {
        background: rgba(13, 13, 13, 0.98) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transition: none !important;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(13, 13, 13, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1000;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .product-card .card-body {
        padding: 16px;
    }
    .product-card .card-name {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    .product-card .card-pricing {
        margin-bottom: 12px;
    }
    .product-card .card-price {
        font-size: 1rem;
    }
    .product-card .card-add-btn {
        padding: 10px;
        font-size: 0.76rem;
    }

    .hero-stats {
        gap: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-brand {
        order: 1;
    }

    .quick-links-col {
        order: 2;
        text-align: center;
    }

    .quick-links-col ul {
        align-items: center;
    }

    .contact-col {
        order: 3;
        text-align: center;
    }

    .admin-stats-row {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .products-table th:nth-child(5),
    .products-table td:nth-child(5) {
        display: none;
    }

    .sales-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .inventory-summary-row {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-tab {
        padding: 10px 14px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-card .card-body {
        padding: 10px;
    }
    .product-card .card-name {
        font-size: 0.82rem;
        margin-bottom: 4px;
        height: 2.6em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .product-card .card-pricing {
        gap: 6px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }
    .product-card .card-price {
        font-size: 0.9rem;
    }
    .product-card .card-original-price {
        font-size: 0.72rem;
    }
    .product-card .card-discount {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    .product-card .card-add-btn {
        padding: 8px;
        font-size: 0.68rem;
        gap: 4px;
    }
    .product-card .card-add-btn svg {
        width: 12px;
        height: 12px;
    }
    .card-badge {
        top: 8px;
        left: 8px;
        padding: 2px 6px;
        font-size: 0.55rem;
    }
    .card-quick-view {
        display: none;
    }

    .category-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}
