/* ===== NOBLE - Dark Luxury Theme ===== */

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* Typography */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
.text-gold { color: #d4a853; }
.text-gray-500 { color: #a0a0a0; }
.text-gray-600 { color: #888888; }
.text-sm { font-size: 0.875rem; }

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.logo img { height: 32px; }
.nav-links { display: flex; gap: 0.25rem; }
.nav-links a {
    color: #a0a0a0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}
.nav-links a:hover, .nav-links a.active { color: #d4a853; background: rgba(212,168,83,0.08); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-icon {
    position: relative;
    color: #a0a0a0;
    transition: color 0.3s ease;
    display: flex;
    padding: 0.5rem;
}
.nav-icon:hover { color: #d4a853; }
.cart-badge {
    position: absolute;
    top: 0; right: 0;
    background: #d4a853;
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Language Switcher */
.lang-switcher { display: flex; gap: 0.25rem; align-items: center; font-size: 0.8rem; }
.lang-switcher a { color: #666; text-decoration: none; padding: 0.25rem 0.5rem; border-radius: 4px; }
.lang-switcher a.active, .lang-switcher a:hover { color: #d4a853; }

/* Dropdown */
.dropdown { position: relative; z-index: 10000; }
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 10000;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #ccc;
    text-decoration: none;
    font-size: 0.875rem;
}
.dropdown-menu a:hover { background: rgba(212,168,83,0.1); color: #d4a853; }
.dropdown-avatar-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    padding: 0;
    border: 2px solid transparent;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dropdown-avatar-btn:hover { border-color: #d4a853; }
.dropdown-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dropdown-avatar-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #a0a0a0;
}
.dropdown-user-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dropdown-header-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.dropdown-header-placeholder {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #888;
    flex-shrink: 0;
}
.dropdown-header-info { min-width: 0; }
.dropdown-header-name {
    font-size: 0.875rem;
    color: #e0e0e0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dropdown-header-email {
    font-size: 0.75rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dropdown-menu-items { padding: 0.25rem 0; }
.dropdown-menu-items a {
    display: block;
    padding: 0.5rem 1rem;
    color: #ccc;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.dropdown-menu-items a:hover { background: rgba(212,168,83,0.1); color: #d4a853; }
.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 0.25rem 0;
}
.dropdown-logout { color: #ef4444 !important; }
.dropdown-logout:hover { color: #ef4444 !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }
.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #0a0a0a;
    border-bottom: 1px solid #2a2a2a;
    padding: 1rem 0;
    z-index: 49;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 0.75rem 1.5rem; color: #ccc; text-decoration: none; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-gold {
    background: linear-gradient(135deg, #d4a853, #f6d365);
    color: #000;
    box-shadow: 0 4px 20px rgba(212,168,83,0.2);
}
.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 30px rgba(212,168,83,0.35);
}
.btn-outline {
    background: transparent;
    border: 1px solid #d4a853;
    color: #d4a853;
}
.btn-outline:hover {
    background: rgba(212,168,83,0.1);
    box-shadow: 0 0 20px rgba(212,168,83,0.2);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }

/* Ripple effect */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn:active::after { opacity: 1; }

/* ===== INPUTS ===== */
.input, .textarea, .select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}
.input:focus, .textarea:focus, .select:focus {
    border-color: #d4a853;
    box-shadow: 0 0 0 3px rgba(212,168,83,0.1);
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #555; }
.form-label { display: block; font-size: 0.85rem; color: #a0a0a0; margin-bottom: 0.5rem; font-weight: 500; }

/* ===== CARD ===== */
.card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    transition: all 0.4s ease;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(212,168,83,0.3);
    box-shadow: 0 12px 40px rgba(212,168,83,0.08);
}

/* ===== PRODUCT CARD ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}
.product-card { position: relative; }
.product-card .card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .card-img { transform: scale(1.05); }
.product-card .card-body { padding: 1rem; }
.product-card .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .card-price {
    color: #d4a853;
    font-weight: 700;
    font-size: 1.1rem;
}
.product-card .card-price .original {
    color: #666;
    text-decoration: line-through;
    font-weight: 400;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}
.product-card .feature-tag {
    display: inline-block;
    background: rgba(212,168,83,0.1);
    border: 1px solid rgba(212,168,83,0.2);
    color: #d4a853;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}
.product-card .stock-badge {
    font-size: 0.75rem;
    color: #22c55e;
}
.product-card .sold-count {
    font-size: 0.75rem;
    color: #888;
}
.product-card .rating-stars {
    color: #d4a853;
    font-size: 0.8rem;
}

/* ===== SECTION ===== */
.section { padding: 4rem 0; }
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.section-title p {
    color: #888;
    font-size: 0.95rem;
}

/* ===== HERO BANNER ===== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #151510 50%, #0a0a0a 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(212,168,83,0.06) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; padding: 2rem; }
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #fef3c7, #d4a853, #f6d365);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 40px rgba(212,168,83,0.3));
}
.hero-subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ===== COUNTDOWN ===== */
.countdown {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}
.countdown-item { text-align: center; }
.countdown-item .number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #d4a853;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}
.countdown-item .label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.25rem;
}

/* ===== FOOTER ===== */
.footer {
    background: #0d0d0d;
    border-top: 1px solid #1a1a1a;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-links h4, .footer-social h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-links a {
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.25rem 0;
    transition: color 0.3s;
}
.footer-links a:hover { color: #d4a853; }
.social-icons { display: flex; gap: 0.75rem; }
.social-icons a {
    color: #666;
    transition: color 0.3s;
}
.social-icons a:hover { color: #d4a853; }
.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 2rem;
    text-align: center;
}

/* ===== PARTICLES CANVAS ===== */
#particlesCanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px;
    background: #0d0d0d;
    border-right: 1px solid #1a1a1a;
    padding: 1.5rem 0;
    flex-shrink: 0;
}
.admin-sidebar h2 { padding: 0 1.5rem; margin-bottom: 2rem; font-size: 1.2rem; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #888;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.875rem;
}
.admin-nav a:hover, .admin-nav a.active { color: #d4a853; background: rgba(212,168,83,0.05); }
.admin-main { flex: 1; padding: 2rem; }
.admin-header { margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.5rem; }

/* ===== TABLE ===== */
.table-container { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.875rem;
}
.table th { color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.75rem; }
.table tr:hover td { background: rgba(212,168,83,0.02); }

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}
.badge-pending { background: rgba(234,179,8,0.15); color: #eab308; }
.badge-paid, .badge-shipped { background: rgba(34,197,94,0.15); color: #22c55e; }
.badge-cancelled { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-delivered { background: rgba(59,130,246,0.15); color: #3b82f6; }
.badge-refunded { background: rgba(168,85,247,0.15); color: #a855f7; }

/* ===== STATS CARD ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 700; color: #d4a853; }
.stat-card .stat-label { font-size: 0.8rem; color: #888; margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== ALERTS ===== */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: #22c55e; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #ef4444; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .lang-switcher { display: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero { min-height: 60vh; }
    .hero-title { font-size: 2.2rem; }
    .admin-sidebar { width: 60px; overflow: hidden; }
    .admin-sidebar h2, .admin-nav a span { display: none; }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== STAR RATING ===== */
.stars { color: #d4a853; font-size: 1rem; letter-spacing: 2px; }

/* ===== LOADING SPINNER ===== */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid #2a2a2a;
    border-top-color: #d4a853;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== MISC ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.relative { position: relative; }
.hidden { display: none; }
.border { border: 1px solid #2a2a2a; }
.rounded-lg { border-radius: 8px; }
.object-cover { object-fit: cover; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }




/* ===== AUTH PAGES (Login/Register) ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    font-family: "Inter", -apple-system, sans-serif;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}
.auth-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 83, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(212, 168, 83, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 0%, rgba(212, 168, 83, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}
.auth-card {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 168, 83, 0.05);
    animation: authFadeIn 0.5s ease-out;
}
@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-header img {
    height: 32px;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}
.auth-header h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}
.auth-subtitle {
    font-size: 0.85rem;
    color: #888;
    font-weight: 400;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.input-group .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    color: #555;
    pointer-events: none;
    transition: color 0.3s ease;
    flex-shrink: 0;
}
.input-wrapper .input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}
.input-wrapper .input:focus {
    border-color: rgba(212, 168, 83, 0.4);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.08), 0 4px 20px rgba(0, 0, 0, 0.2);
}
.input-wrapper .input:focus ~ .input-icon,
.input-wrapper:focus-within .input-icon {
    color: #d4a853;
}
.input-wrapper .input::placeholder {
    color: #444;
    font-size: 0.85rem;
}
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-top: -0.25rem;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #999;
    user-select: none;
}
.checkbox-label input[type="checkbox"] {
    display: none;
}
.checkbox-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #444;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}
.checkbox-label input:checked + .checkbox-custom {
    background: #d4a853;
    border-color: #d4a853;
}
.checkbox-label input:checked + .checkbox-custom::after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    top: 1px;
}
.forgot-link {
    color: #d4a853;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}
.forgot-link:hover {
    color: #f6d365;
    text-decoration: underline;
}
.btn-auth {
    width: 100%;
    padding: 0.9rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}
.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.divider-text {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}
.social-login {
    display: flex;
    gap: 0.75rem;
}
.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #aaa;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-social:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-1px);
}
.auth-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #888;
}
.auth-link {
    color: #d4a853;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.auth-link:hover {
    color: #f6d365;
    text-decoration: underline;
}
.alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-bottom: 1rem;
    text-align: center;
}
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}
.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
}
@media (max-width: 480px) {
    .auth-card { padding: 2rem 1.25rem; border-radius: 16px; }
    .social-login { flex-direction: column; }
}
/* ===== AUTH: BUTTON CODE ===== */
.btn-code {
    flex-shrink: 0;
    padding: 0.5rem 0.9rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #d4a853, #f6d365);
    color: #111;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-code:hover {
    background: linear-gradient(135deg, #f6d365, #d4a853);
    transform: translateY(-1px);
}
.btn-code:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
#particlesCanvas { z-index: -1 !important; }
/* Responsive product grid */
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .product-grid { grid-template-columns: repeat(1, 1fr); } }
/* Product detail page responsive */
@media (max-width: 768px) { .detail-grid { grid-template-columns: 1fr; } }
#app { position: relative; z-index: auto; }
img { max-width: 100%; display: block; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 768px) { .detail-grid { grid-template-columns: 1fr; } }
/* ===== CATEGORY BANNER ===== */
.category-banner {
    position: relative;
    padding: 4rem 0;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #151510 50%, #0a0a0a 100%);
}
.category-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(212,168,83,0.08) 0%, transparent 60%);
}
.category-banner-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.category-banner-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(212,168,83,0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(246,211,101,0.03) 0%, transparent 50%);
    animation: bannerGlow 8s ease-in-out infinite alternate;
}
@keyframes bannerGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-5%, -5%); }
}
.category-banner-content {
    position: relative;
    z-index: 1;
}
.category-banner-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #fef3c7, #d4a853, #f6d365);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.category-banner-subtitle {
    font-size: 1.05rem;
    color: #a0a0a0;
    max-width: 500px;
    margin: 0 auto;
}
/* Search section */
.search-section {
    max-width: 500px;
    margin: 0 auto 2rem;
}
.search-form {
    display: flex;
    gap: 0.5rem;
    position: relative;
}
.search-form .input {
    padding-left: 2.5rem;
}
.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    pointer-events: none;
}
/* Enhanced card image link */
.card-img-link {
    position: relative;
    display: block;
    overflow: hidden;
}
.card-img-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
}
.product-card:hover .card-img-overlay {
    opacity: 1;
}


/* ===== ACCOUNT PAGES ===== */
.account-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.account-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d4a853;
    flex-shrink: 0;
}
.account-avatar-placeholder {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    color: #888;
    flex-shrink: 0;
}
.account-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f0f0f0;
}
.account-email {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.15rem;
}
.account-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.account-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    border-radius: 8px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.2s ease;
}
.account-link:hover {
    background: rgba(212,168,83,0.08);
    color: #d4a853;
}
.ml-auto { margin-left: auto; }
.order-card {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.order-card:last-child { border-bottom: none; }
.order-no {
    font-size: 0.875rem;
    font-weight: 500;
    color: #e0e0e0;
}
.order-date {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.15rem;
}
.order-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    color: #aaa;
}
.order-status-completed { background: rgba(34,197,94,0.15); color: #22c55e; }
.order-status-processing { background: rgba(212,168,83,0.15); color: #d4a853; }
.order-status-cancelled { background: rgba(239,68,68,0.15); color: #ef4444; }
.order-status-shipped { background: rgba(59,130,246,0.15); color: #3b82f6; }
.order-total {
    font-size: 0.95rem;
    font-weight: 600;
    color: #d4a853;
    margin-top: 0.25rem;
}
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }

/* ===== PROFILE PAGE ===== */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
.back-link {
    display: inline-block;
    color: #d4a853;
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}
.back-link:hover { color: #f6d365; }
.profile-form { display: flex; flex-direction: column; gap: 1.25rem; }
.profile-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 1.75rem;
    transition: border-color 0.3s;
}
.profile-card:hover { border-color: rgba(212,168,83,0.2); }
.card-title-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #d4a853;
    margin-bottom: 1.25rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
.form-group { margin-bottom: 1rem; }
.form-group:last-child { margin-bottom: 0; }
.form-hint {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.3rem;
}
.avatar-section {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}
.avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(212,168,83,0.3);
    cursor: pointer;
}
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
}
.avatar-wrapper:hover .avatar-overlay { opacity: 1; }
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr 1fr; }
}


/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    align-items: start;
}
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212,168,83,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #d4a853;
}
.contact-info-label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.1rem;
}
.contact-info-value {
    font-size: 0.9rem;
    color: #e0e0e0;
}
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: #a0a0a0;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-link:hover {
    background: rgba(212,168,83,0.1);
    color: #d4a853;
}
.textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}
.textarea:focus {
    outline: none;
    border-color: #d4a853;
}
.space-y-2 > * + * { margin-top: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ===== ADMIN ENHANCEMENTS ===== */
.admin-sidebar-header {
    padding: 1.5rem 1.5rem 0.5rem;
}
.admin-sidebar-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.5rem;
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
    color: #d4a853;
    background: rgba(212,168,83,0.05);
    border-left-color: #d4a853;
}
.admin-nav-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.admin-sidebar-footer {
    padding: 1.5rem;
    margin-top: auto;
}
.admin-view-site {
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}
.admin-view-site:hover { color: #d4a853; }
.admin-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s;
}
.admin-card:hover { border-color: rgba(212,168,83,0.15); }
.admin-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    color: #d4a853;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.admin-filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.admin-filter-bar .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
}
.stat-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #1f1f1a 100%);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover {
    border-color: rgba(212,168,83,0.2);
    transform: translateY(-2px);
}
.admin-welcome {
    margin-bottom: 2rem;
}
.admin-welcome h1 {
    font-size: 1.5rem;
    font-weight: 700;
}
.admin-welcome p {
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}
.admin-alert-card {
    background: rgba(239,68,68,0.05);
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.admin-alert-card h3 {
    color: #ef4444;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.admin-alert-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.04);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #ccc;
    margin-right: 0.5rem;
    margin-bottom: 0.3rem;
}
@media (max-width: 768px) {
    .admin-sidebar-header h2 { display: none; }
    .admin-nav a span:last-child { display: none; }
    .admin-nav-icon { margin: 0; }
    .admin-nav a { justify-content: center; padding: 0.75rem; }
    .admin-sidebar-footer { display: none; }
}

/* ===== CART PAGE ENHANCEMENTS ===== */
.cart-item-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.cart-item-img-link {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.3s;
}
.cart-item-img-link:hover {
    border-color: rgba(212,168,83,0.3);
}
.cart-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cart-item-body {
    flex: 1;
    min-width: 0;
}
.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}
.cart-item-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-item-name:hover {
    color: #d4a853;
}
.cart-item-remove-form {
    flex-shrink: 0;
}
.cart-item-remove {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}
.cart-item-remove:hover {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.2);
    color: #ef4444;
}
.cart-item-price {
    font-size: 0.85rem;
    color: #d4a853;
    font-weight: 600;
    margin-top: 0.2rem;
}
.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.cart-qty {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.cart-qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #d4a853;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}
.cart-qty-btn:hover {
    background: rgba(212,168,83,0.1);
}
.cart-qty-input {
    width: 36px;
    height: 30px;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.06);
    border-right: 1px solid rgba(255,255,255,0.06);
    background: transparent;
    color: #fff;
    text-align: center;
    font-size: 0.85rem;
    -moz-appearance: textfield;
}
.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cart-qty-update {
    font-size: 0.7rem;
    color: #888;
    background: none;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}
.cart-qty-update:hover {
    color: #d4a853;
    border-color: rgba(212,168,83,0.2);
}
.cart-item-subtotal {
    text-align: right;
}
.cart-subtotal-label {
    display: block;
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cart-subtotal-value {
    font-size: 1rem;
    font-weight: 700;
    color: #d4a853;
}
.cart-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}
.cart-coupon-card {
    padding: 1.25rem;
}
.cart-coupon-form {
    display: flex;
    gap: 0.5rem;
}
.cart-summary-card {
    padding: 1.25rem;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
}
.cart-summary-label {
    font-size: 0.85rem;
    color: #a0a0a0;
}
.cart-summary-amount {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0e0e0;
}
.cart-summary-total {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.5rem 0 0;
}
.cart-summary-total > span:first-child {
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
}
.cart-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.cart-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}
@media (max-width: 640px) {
    .cart-bottom-grid {
        grid-template-columns: 1fr;
    }
    .cart-item-img-link {
        width: 64px;
        height: 64px;
    }
    .cart-item-name {
        font-size: 0.85rem;
    }
    .cart-actions {
        flex-direction: column;
    }
    .cart-actions .btn {
        width: 100%;
        text-align: center;
    }
}


/* ===== PRODUCT DETAIL ENHANCEMENTS ===== */
.detail-gallery { position: sticky; top: 6rem; }
.detail-main-img {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    margin-bottom: 0.75rem;
}
.detail-thumbs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.detail-thumb {
    width: 64px; height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    flex-shrink: 0;
}
.detail-thumb:hover,
.detail-thumb.active {
    opacity: 1;
    border-color: #d4a853;
}
.detail-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.detail-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #f0f0f0;
}
.detail-model {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
}
.detail-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.detail-stars { color: #d4a853; font-size: 1rem; }
.detail-rating-text { color: #888; font-size: 0.85rem; }
.detail-price-box {
    background: rgba(212,168,83,0.05);
    border: 1px solid rgba(212,168,83,0.15);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.detail-price-current {
    font-size: 2rem;
    font-weight: 700;
    color: #d4a853;
}
.detail-price-original {
    font-size: 1.1rem;
    color: #666;
    text-decoration: line-through;
    margin-left: 0.75rem;
    font-weight: 400;
}
.detail-tags { margin-bottom: 1rem; }
.detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.detail-meta-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.detail-meta-value {
    font-size: 0.9rem;
    color: #e0e0e0;
}
.detail-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0;
    font-size: 0.9rem;
    font-weight: 500;
}
.detail-stock.in-stock { color: #22c55e; }
.detail-stock.low-stock { color: #eab308; }
.detail-stock.out-of-stock { color: #ef4444; }
.detail-stock-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
/* Detail page quantity controls (larger than cart) */
.detail-qty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.detail-qty-label {
    font-size: 0.85rem;
    color: #a0a0a0;
}
.detail-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.detail-qty-btn {
    width: 36px; height: 36px;
    border: none;
    background: transparent;
    color: #d4a853;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}
.detail-qty-btn:hover { background: rgba(212,168,83,0.1); }
.detail-qty-input {
    width: 48px; height: 36px;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.06);
    border-right: 1px solid rgba(255,255,255,0.06);
    background: transparent;
    color: #fff;
    text-align: center;
    font-size: 0.95rem;
    -moz-appearance: textfield;
}
.detail-qty-input::-webkit-inner-spin-button,
.detail-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.detail-description {
    margin-top: 2rem;
}
.detail-description h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f0f0f0;
}
.detail-description p {
    color: #a0a0a0;
    line-height: 1.8;
    font-size: 0.95rem;
}
.detail-buy-section {
    margin-top: 1.5rem;
}
.related-section { margin-top: 3rem; }
.related-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #f0f0f0;
}
@media (max-width: 768px) {
    .detail-name { font-size: 1.4rem; }
    .detail-price-current { font-size: 1.5rem; }
    .detail-meta { grid-template-columns: 1fr; }
    .detail-gallery { position: static; }
}

/* Product list enhancements */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.list-count {
    font-size: 0.85rem;
    color: #888;
}

/* Product card action area */
.product-card .card-actions {
    padding: 0 1rem 1rem;
}
.product-card .card-actions .btn {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* ===== INDEX PAGE PRODUCT CARD OVERLAY ===== */
.product-card .card-img-link {
    display: block;
    position: relative;
    overflow: hidden;
}
.product-card .card-img-link .card-img-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
}
.product-card:hover .card-img-link .card-img-overlay {
    opacity: 1;
}


/* ===== ORDER DETAIL ===== */
.order-timeline { padding: 1.25rem; }
.timeline-steps {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}
.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    text-align: center;
    position: relative;
}
.timeline-step::after {
    content: '';
    position: absolute;
    top: 14px;
    left: calc(50% + 16px);
    right: calc(-50% + 16px);
    height: 2px;
    background: rgba(255,255,255,0.06);
}
.timeline-step:last-child::after { display: none; }
.timeline-step.completed::after { background: #d4a853; }
.timeline-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.timeline-step.completed .timeline-icon {
    background: rgba(212,168,83,0.15);
    border-color: #d4a853;
    color: #d4a853;
}
.timeline-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.timeline-step.completed .timeline-label { color: #d4a853; }
.timeline-date {
    font-size: 0.65rem;
    color: #444;
}

/* Order items */
.order-item-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.order-item-img {
    width: 56px; height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.order-item-info { flex: 1; min-width: 0; }
.order-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 0.1rem;
}
.order-item-model {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.1rem;
}
.order-item-price {
    font-size: 0.8rem;
    color: #888;
}
.order-item-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: #d4a853;
    flex-shrink: 0;
}

/* Order info cards */
.order-info-card { padding: 1.25rem; }
.order-info-text p {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 0.15rem;
}
.order-summary-rows { }
.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: #e0e0e0;
}

/* Order card links */
.order-card-link {
    transition: all 0.3s ease;
    cursor: pointer;
}
.order-card-link:hover {
    border-color: rgba(212,168,83,0.3);
    box-shadow: 0 4px 20px rgba(212,168,83,0.06);
    transform: translateY(-1px);
}

/* Form row for edit */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .timeline-steps { gap: 0.25rem; }
    .timeline-label { font-size: 0.6rem; }
    .form-row { grid-template-columns: 1fr; }
}
