:root {
    --primary: #0a0a0a;
    --primary-light: #1a1a1a;
    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --gold-glow: rgba(201, 168, 76, 0.18);
    --bg: #080808;
    --text: #F5F0E8;
    --text-muted: #9A8F7E;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(201, 168, 76, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* === Animated Background Canvas === */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

#page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: #080808;
    min-height: 100vh;
    isolation: isolate;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Cormorant', serif; font-weight: 600; }

/* === Glassmorphism === */
.glass {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(201,168,76,0.18);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.glass-dark {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(201, 168, 76, 0.2);
}
.glass-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201,168,76,0.15);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    background: rgba(201,168,76,0.07);
    box-shadow: 0 12px 40px rgba(201,168,76,0.12);
    transform: translateY(-4px);
}

/* === Navigation === */
.navbar {
    background: rgba(5,5,5,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201,168,76,0.12);
}
.nav-link {
    position: relative;
    color: rgba(245,240,232,0.75);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 2px;
    transition: color 0.3s;
}
.nav-link:hover { color: var(--gold); }
.nav-link.active { color: var(--gold); }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
}

/* === Alerts === */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}
.alert-success {
    background: rgba(202, 138, 4, 0.1);
    color: #FBBF24;
    border: 1px solid rgba(202, 138, 4, 0.25);
}
.alert-error {
    background: rgba(220, 38, 38, 0.08);
    color: #FCA5A5;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* === Hero === */
.hero-section {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(202, 138, 4, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(202, 138, 4, 0.04) 0%, transparent 50%),
        linear-gradient(135deg, #1C1917 0%, #292524 30%, #44403C 60%, #292524 80%, #1C1917 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 3rem;
    border-radius: 1.5rem;
    margin: 1rem;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(202, 138, 4, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(202, 138, 4, 0.06) 0%, transparent 40%);
    animation: heroPulse 8s ease-in-out infinite alternate;
}
@keyframes heroPulse {
    0% { opacity: 0.5; transform: scale(1) translate(0, 0); }
    50% { opacity: 0.8; transform: scale(1.02) translate(10px, -5px); }
    100% { opacity: 0.5; transform: scale(1) translate(-5px, 5px); }
}
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(202, 138, 4, 0.015) 40px, rgba(202, 138, 4, 0.015) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(202, 138, 4, 0.015) 40px, rgba(202, 138, 4, 0.015) 41px);
    pointer-events: none;
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: heroDrift 16s ease-in-out infinite;
    pointer-events: none;
}
.hero-glow:nth-child(1) {
    width: 500px;
    height: 500px;
    background: rgba(202, 138, 4, 0.08);
    top: -150px;
    right: -100px;
}
.hero-glow:nth-child(2) {
    width: 350px;
    height: 350px;
    background: rgba(202, 138, 4, 0.05);
    bottom: -100px;
    left: -80px;
    animation-delay: -6s;
}
@keyframes heroDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.1); }
    50% { transform: translate(-20px, 10px) scale(0.95); }
    75% { transform: translate(15px, -25px) scale(1.05); }
}

/* === Product Cards === */
.product-card {
    background: rgba(18,16,12,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(201,168,76,0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.product-card:hover {
    background: rgba(25,22,15,0.95);
    border-color: rgba(201,168,76,0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.6), 0 0 30px rgba(201,168,76,0.08);
}
.product-card img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover img { transform: scale(1.08); }

/* === Buttons === */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}
.btn-primary:hover { background: #292524; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(28, 25, 23, 0.2); }
.btn-primary:active { transform: translateY(0); }

.btn-gold {
    background: var(--gold);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}
.btn-gold:hover { background: #B37A04; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(202, 138, 4, 0.3); }
.btn-gold:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(202, 138, 4, 0.08); }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 0.375rem;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid rgba(168, 162, 158, 0.2);
    background: transparent;
    color: #A8A29E;
}
.btn-icon:hover { color: var(--gold); border-color: var(--gold); background: rgba(202, 138, 4, 0.08); }
.btn-icon:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

.btn-danger {
    background: #DC2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-danger:hover { background: #B91C1C; }

/* === Forms === */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(201,168,76,0.2);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s;
    background: rgba(0,0,0,0.4);
    color: var(--text);
}
.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.form-input.error { border-color: #DC2626; }
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.8);
}

/* === Cards === */
.card {
    background: rgba(15,13,10,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: 1rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.card-body { padding: 1.5rem; }

/* === Badges === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.badge-primary { background: rgba(28, 25, 23, 0.08); color: var(--text); }
.badge-warning { background: rgba(202, 138, 4, 0.12); color: #FBBF24; }
.badge-danger { background: rgba(220, 38, 38, 0.1); color: #FCA5A5; }
.badge-info { background: rgba(59, 130, 246, 0.1); color: #93C5FD; }
.badge-success { background: rgba(5, 150, 105, 0.12); color: #34D399; }

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

/* === Category Cards === */
.category-card {
    background: rgba(15,13,10,0.85);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 20px rgba(201,168,76,0.1);
    border-color: rgba(201,168,76,0.35);
}
.category-card img { width: 100%; height: 180px; object-fit: cover; }

.section-title {
    font-family: 'Cormorant', serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #F5F0E8;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--gold);
}

/* === Admin Sidebar === */
.admin-sidebar {
    width: 260px;
    background: var(--primary);
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: all 0.2s;
    border-radius: 0.5rem;
    margin: 0.25rem 0.75rem;
    white-space: nowrap;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(202, 138, 4, 0.15);
    color: var(--gold);
}
.admin-sidebar .logo {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0;
}
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}
.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 0;
    flex-shrink: 0;
}
.admin-main { margin-left: 260px; min-height: 100vh; }

/* === Data Tables === */
.data-table {
    width: 100%;
    background: rgba(12,10,8,0.9);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.1);
}
.data-table th {
    background: rgba(201,168,76,0.06);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
    border-bottom: 1px solid rgba(201,168,76,0.1);
}
.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.85rem;
    color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(201,168,76,0.04); }

/* === Stat Cards === */
.stat-card {
    background: rgba(15,12,8,0.85);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(201,168,76,0.12);
    transition: all 0.3s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 15px rgba(201,168,76,0.07);
}

/* === Footer === */
.luxury-footer {
    background: rgba(4,3,2,0.95);
    position: relative;
    border-top: 1px solid rgba(201,168,76,0.1);
}
.luxury-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.4), transparent);
}

/* === Hero Carousel === */
.hero-carousel-col { display: none; }
@media (min-width: 1024px) { .hero-carousel-col { display: block; } }
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,168,76,0.12);
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 8s cubic-bezier(0.4,0,0.2,1);
}
.hero-slide.active img { transform: scale(1); }
.hero-slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 60%, rgba(201,168,76,0.08) 100%);
}
.hero-slide-caption {
    position: absolute;
    bottom: 2rem; left: 2rem; right: 2rem;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.8s 0.4s cubic-bezier(0.4,0,0.2,1);
}
.hero-slide.active .hero-slide-caption {
    opacity: 1;
    transform: translateY(0);
}
.hero-slide-caption p {
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #C9A84C;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.hero-slide-caption h3 {
    font-family: 'Cormorant', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}
/* Dots */
.hero-dots {
    position: absolute;
    bottom: 1.5rem; right: 1.5rem;
    display: flex; gap: 0.4rem;
    z-index: 10;
}
.hero-dot {
    width: 6px; height: 6px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}
.hero-dot.active {
    background: #C9A84C;
    width: 22px;
}
/* Arrows */
.hero-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 10;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s;
    opacity: 0;
}
.hero-carousel:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(201,168,76,0.5); border-color: #C9A84C; }
.hero-arrow-prev { left: 1rem; }
.hero-arrow-next { right: 1rem; }
/* Progress bar */
.hero-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 2px;
    background: #C9A84C;
    width: 0%;
    transition: width linear;
    z-index: 10;
}
/* === Animations === */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.slide-up {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Glass Divider === */
.glass-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(28, 25, 23, 0.08), transparent);
    margin: 3rem 0;
}

/* === Skeleton === */
.skeleton {
    background: linear-gradient(90deg, #E7E5E4 25%, #F5F5F4 50%, #E7E5E4 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === Mobile Overlay === */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 45;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (pointer: coarse) {
    .group:hover .group-hover\:opacity-100 { opacity: 0; }
    .group:hover .group-hover\:visible { visibility: hidden; }
    .touch-show { display: none; }
    .touch-active .touch-show { display: flex; }
    .touch-active .touch-hide { display: none; }
}

/* === Responsive === */
@media (max-width: 768px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .hero-section { padding: 2.5rem 1.25rem; margin: 0.5rem; border-radius: 1rem; }
    .section-title { font-size: 1.5rem; }
    .hero-section .grid { gap: 1.5rem; }
    .hero-stats { flex-wrap: wrap; gap: 1rem; }
    .hero-stats > div { flex: 1 1 40%; }
    .hero-cta { flex-direction: column; }
    .hero-cta > * { width: 100%; justify-content: center; }
    .product-card img { height: 200px; }
    .product-page-sidebar { margin-bottom: 1rem; }
    .cart-item-card .card-body { flex-wrap: wrap; }
    .admin-search-input { width: 100% !important; }
}
@media (max-width: 480px) {
    .hero-section { padding: 1.75rem 1rem; }
    .hero-stats > div { flex: 1 1 100%; text-align: center; }
    .product-card img { height: 180px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form > * { width: 100%; border-radius: 0.5rem !important; }
    .footer-grid { gap: 1.5rem; }
    .cart-qty-input { width: 2.5rem; }
}

/* === Printify Shop Modal === */
.shop-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    padding: 1rem;
}
.shop-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.shop-modal {
    background: #1C1917;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.25s;
}
.shop-modal-overlay.open .shop-modal {
    transform: scale(1);
}
.shop-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.shop-modal-header h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
}
.shop-modal-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: #A8A29E;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.shop-modal-close:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}
.shop-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}
.shop-modal-body::-webkit-scrollbar {
    width: 4px;
}
.shop-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.shop-card {
    background: #292524;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 140px;
    transition: all 0.2s;
    cursor: default;
}
.shop-card:hover {
    border-color: rgba(202, 168, 76, 0.3);
    background: #2f2a26;
}
.shop-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(201, 168, 76, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: #C9A84C;
    font-size: 1.25rem;
}
.shop-card-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.25rem;
    word-break: break-word;
}
.shop-card-id {
    font-size: 0.7rem;
    font-family: monospace;
    color: #A8A29E;
    margin-bottom: 0.75rem;
}
.shop-card .btn-use-shop {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(201, 168, 76, 0.3);
    background: rgba(201, 168, 76, 0.1);
    color: #C9A84C;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.shop-card .btn-use-shop:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: #C9A84C;
}
.shop-card .btn-use-shop:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.shop-card.used {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.08);
}
.shop-card.used .btn-use-shop {
    background: rgba(5, 150, 105, 0.15);
    border-color: #059669;
    color: #059669;
}
.shop-modal-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: #A8A29E;
    gap: 1rem;
}
.shop-modal-loader .spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid rgba(255,255,255,0.08);
    border-top-color: #C9A84C;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.shop-modal-error {
    text-align: center;
    padding: 2rem 1rem;
    color: #ef4444;
}
.shop-modal-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #A8A29E;
}

/* === Shipping Components === */
.shipping-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.shipping-tier-essential {
    background: rgba(168, 162, 158, 0.12);
    border: 1px solid rgba(168, 162, 158, 0.2);
    color: #A8A29E;
}
.shipping-tier-signature {
    background: rgba(202, 168, 76, 0.12);
    border: 1px solid rgba(202, 168, 76, 0.25);
    color: #C9A84C;
}
.shipping-tier-grand {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: #FCA5A5;
}
.free-shipping-progress {
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
}
.free-shipping-progress i {
    color: #059669;
    margin-right: 0.5rem;
}
.free-shipping-progress .progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}
.free-shipping-progress .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #059669, #10B981);
    border-radius: 2px;
    transition: width 0.4s ease;
}
.customs-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(202, 168, 76, 0.05);
    border: 1px solid rgba(202, 168, 76, 0.12);
    border-radius: 0.5rem;
    font-size: 0.75rem;
}
.customs-notice i {
    color: #C9A84C;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* === Bottom Navigation Bar === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(8,6,4,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(201,168,76,0.1);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 12px;
    min-width: 48px;
    min-height: 44px;
    transition: color 0.2s;
    text-decoration: none;
}

/* === Desktop: hide bottom nav === */
@media (min-width: 768px) {
    .bottom-nav {
        display: none !important;
    }
}

/* === User Dropdown Show State === */
#user-dropdown.show #user-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

#user-dropdown-menu {
    transform: translateY(-4px);
}

/* === Mobile Body Scroll Lock === */
body.menu-open,
body.filter-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* === Floating Messaging Widget === */
.msg-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 49;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
@media (min-width: 768px) {
    .msg-widget { bottom: 32px; right: 32px; }
}
.msg-widget-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.msg-widget.open .msg-widget-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.msg-channel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(201,168,76,0.2);
    background: rgba(28,25,23,0.96);
    backdrop-filter: blur(12px);
    color: #D6D3D1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.msg-channel:hover {
    background: rgba(201,168,76,0.12);
    border-color: rgba(201,168,76,0.4);
    color: #fff;
    transform: translateX(-4px);
}
.msg-channel i { font-size: 18px; }
.msg-channel[data-channel="whatsapp"] i { color: #25D366; }
.msg-channel[data-channel="email"] i { color: #C9A84C; }
.msg-channel[data-channel="chat"] i { color: #60A5FA; }
.msg-widget-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #C9A84C, #A8882E);
    color: #1C1917;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(201,168,76,0.35);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.msg-widget-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(201,168,76,0.5);
}
.msg-widget.open .msg-widget-toggle {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #A8882E, #8A6A1E);
}
.msg-widget-toggle .msg-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #EF4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 767px) {
    body.has-bottom-nav .msg-widget { bottom: 76px; }
}

/* === Messaging Live Chat Modal === */
#msg-chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 99;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
#msg-chat-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
#msg-chat-modal {
    background: #1C1917;
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
#msg-chat-overlay.open #msg-chat-modal {
    transform: translateY(0);
}
@media (min-width: 768px) {
    #msg-chat-overlay { align-items: center; }
    #msg-chat-modal { border-radius: 20px; }
}
#msg-chat-modal .chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
#msg-chat-modal .chat-header h3 {
    font-family: 'Cormorant', serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}
#msg-chat-modal .chat-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: #A8A29E;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
#msg-chat-modal .chat-close:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
#msg-chat-modal .chat-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #A8A29E;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}
#msg-chat-modal .chat-form input,
#msg-chat-modal .chat-form textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s;
    outline: none;
}
#msg-chat-modal .chat-form input:focus,
#msg-chat-modal .chat-form textarea:focus {
    border-color: rgba(201,168,76,0.4);
}
#msg-chat-modal .chat-form textarea {
    resize: vertical;
    min-height: 100px;
}
#msg-chat-modal .chat-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #C9A84C, #A8882E);
    color: #1C1917;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
#msg-chat-modal .chat-submit:hover { opacity: 0.9; }
#msg-chat-modal .chat-submit:disabled { opacity: 0.5; cursor: not-allowed; }
#msg-chat-modal .chat-success {
    display: none;
    text-align: center;
    padding: 32px 0;
}
#msg-chat-modal .chat-success.show { display: block; }
#msg-chat-modal .chat-success i {
    font-size: 48px;
    color: #22C55E;
    margin-bottom: 12px;
}
#msg-chat-modal .chat-success p {
    color: #D6D3D1;
    font-size: 14px;
}

/* === Utilities === */
.hidden { display: none !important; }

/* === Themed Checkbox === */
input[type="checkbox"].theme-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 0.3rem;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}
input[type="checkbox"].theme-checkbox:hover {
    border-color: rgba(201, 168, 76, 0.5);
}
input[type="checkbox"].theme-checkbox:checked {
    background: #C9A84C;
    border-color: #C9A84C;
}
input[type="checkbox"].theme-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #1C1917;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
input[type="checkbox"].theme-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

/* Mobile hero responsive */
@media (max-width: 480px) {
  .hero-section {
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    margin: 0.5rem;
  }
  .hero-heading {
    font-size: 1.875rem !important;
  }
  .hero-stats > div {
    flex: 1 1 100%;
    text-align: center;
    padding: 0.5rem;
  }
  .categories-grid {
    gap: 1rem;
  }
}

/* Improved mobile touch targets */
@media (max-width: 640px) {
  .product-card .add-to-cart {
    min-height: 44px;
    font-size: 0.75rem;
  }
  .category-card .shop-now-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Mobile hero background image */
@media (max-width: 639px) {
  .hero-section {
    background-image: var(--mobile-bg);
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 60vh;
  }
  .hero-section::before {
    background: rgba(0,0,0,0.55);
    z-index: 1;
  }
  .hero-glow {
    display: none;
  }
  .hero-section .relative.z-10 {
    position: relative;
    z-index: 2;
  }
}

/* Product Variant Selectors */
.variant-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 2rem;
    background: transparent;
    color: #D6D3D1;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s;
}
.variant-pill:hover {
    border-color: rgba(201, 168, 76, 0.5);
    color: #C9A84C;
}
.variant-pill.selected {
    background: rgba(201, 168, 76, 0.12);
    border-color: #C9A84C;
    color: #C9A84C;
}
.variant-swatch {
    transition: all 0.2s;
}
.variant-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.3);
}
.variant-swatch.selected {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px #C9A84C;
    border-color: #C9A84C !important;
}
.variant-selectors label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9A8F7E;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Mobile product page responsive */
@media (max-width: 640px) {
    .product-grid {
        gap: 1rem;
    }
    .product-card-img {
        height: 180px;
    }
}
@media (max-width: 480px) {
    .product-card .card-body {
        padding: 0.75rem;
    }
    .product-card .product-name {
        font-size: 1rem;
    }
}

/* === GLOBAL RESPONSIVE UTILITIES === */

/* Missing btn-cta class (used by cart.php, checkout.php) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #C9A84C;
  color: #080808;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  min-height: 44px;
}
.btn-cta:hover {
  background: #D4B85C;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.2);
}
.btn-cta:active {
  transform: translateY(0);
}

/* Touch target helper */
.touch-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile container padding */
@media (max-width: 640px) {
  .mobile-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Improved focus styles for touch/keyboard */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}

/* Prevent iOS zoom on input focus */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
  font-size: 16px;
}

/* Smooth touch scrolling for overflow containers */
.overflow-touch {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

/* Cart page mobile */
@media (max-width: 640px) {
    .cart-item-card .card-body {
        flex-direction: column;
        gap: 0.75rem;
    }
    .cart-item-card .card-body label {
        width: 100%;
    }
    .cart-item-card .card-body > div:last-child {
        width: 100%;
    }
    .cart-qty-input {
        width: 3rem;
    }
}

/* Checkout mobile sticky bar */
.checkout-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(8,6,4,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(201,168,76,0.1);
    z-index: 50;
    padding: 0.75rem 1rem;
    padding-bottom: env(safe-area-inset-bottom, 0.75rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Order detail mobile */
@media (max-width: 640px) {
    .order-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .order-item-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Admin Mobile Card Grid */
.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 0.75rem;
}
@media (min-width: 480px) {
  .admin-card-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) {
  .admin-card-grid { display: none; }
}

.admin-card {
  background: #1C1917;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s;
}
.admin-card:active { transform: scale(0.97); }

.admin-card-img {
  aspect-ratio: 1 / 1;
  background: #292524;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.admin-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-card-img .no-img {
  color: #57534E;
  font-size: 1.5rem;
}

.admin-card-body {
  padding: 0.5rem 0.625rem 0.375rem;
}
.admin-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #F5F0E8;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.admin-card-sub {
  font-size: 0.65rem;
  color: #A8A29E;
  margin-top: 0.125rem;
}
.admin-card-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
  flex-wrap: wrap;
}
.admin-card-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: #C9A84C;
}
.admin-card-stock {
  font-size: 0.65rem;
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: #A8A29E;
}
.admin-card-stock.low { color: #CA8A04; background: rgba(202,138,4,0.15); }
.admin-card-stock.out { color: #ef4444; background: rgba(239,68,68,0.15); }

.admin-card-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.625rem 0.625rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.admin-card-actions a,
.admin-card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  color: #A8A29E;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.admin-card-actions a:hover,
.admin-card-actions button:hover {
  background: rgba(255,255,255,0.06);
}
.admin-card-actions .action-edit { color: #3b82f6; }
.admin-card-actions .action-delete { color: #ef4444; }
.admin-card-actions .action-view { color: #A8A29E; }

@media (max-width: 639px) {
  .admin-products-table { display: none; }
  .admin-categories-table { display: none; }
  .admin-orders-table { display: none; }
  .admin-users-table { display: none; }
  .admin-discounts-table { display: none; }
}

/* Admin Mobile Bottom Nav */
.admin-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(28,25,23,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 0.375rem 0 env(safe-area-inset-bottom, 0.375rem) 0;
  justify-content: space-around;
  align-items: stretch;
}
.admin-bottom-nav a,
.admin-bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  padding: 0.375rem 0.5rem;
  color: #6B6560;
  text-decoration: none;
  font-size: 0.6rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  min-width: 3rem;
  font-family: 'Montserrat', sans-serif;
}
.admin-bottom-nav a.active,
.admin-bottom-nav button.active {
  color: #C9A84C;
}
.admin-bottom-nav a i,
.admin-bottom-nav button i {
  font-size: 1.1rem;
}
@media (max-width: 767px) {
  .admin-bottom-nav { display: flex; }
  .admin-main { padding-bottom: 4rem; }
  body.admin-pinned-bottom { padding-bottom: 3.5rem; }
}

@media (max-width: 639px) {
  .admin-search-wrap { width: 100%; }
  .admin-search-wrap input { width: 100% !important; }
}

.admin-mobile-top {
  display: none;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  align-items: center;
  gap: 0.75rem;
}
.admin-mobile-top .back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  color: #A8A29E;
  background: rgba(255,255,255,0.05);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}
.admin-mobile-top .page-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #F5F0E8;
  font-family: 'Cormorant', serif;
}
@media (max-width: 767px) {
  .admin-mobile-top { display: flex; }
}

.data-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 639px) {
  .data-table { font-size: 0.7rem; }
  .data-table th,
  .data-table td { padding: 0.5rem 0.375rem !important; }
  .data-table .hide-mobile { display: none; }
}

.admin-cat-card-img {
  aspect-ratio: 1 / 1;
  background: #292524;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.admin-cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-cat-card-img .cat-icon {
  font-size: 2rem;
  color: #57534E;
}
.admin-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 0.5rem;
}
.admin-cat-overlay .cat-count {
  font-size: 0.65rem;
  color: #C9A84C;
  background: rgba(0,0,0,0.5);
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* === Brand Story Animations === */
@keyframes brandFadeUp {
    0%   { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-brand {
    opacity: 0;
    animation: brandFadeUp 0.7s ease-out forwards;
}

@keyframes crownPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.2); opacity: 0.8; }
}

.animate-crown {
    display: inline-block;
    animation: crownPulse 2.5s ease-in-out infinite;
}

.brand-story-section .animate-brand {
    animation: brandFadeUp 0.7s ease-out forwards;
}

/* scroll-triggered — reset then animate */
.brand-story-section .animate-brand:not(.in-view) {
    opacity: 0;
    transform: translateY(24px);
    animation: none;
}
.brand-story-section .animate-brand.in-view {
    opacity: 0;
    animation: brandFadeUp 0.7s ease-out forwards;
}

/* === Cart: Toolbar === */
.cart-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: 0.75rem;
}

.cart-btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    color: #f87171;
    background: transparent;
    border: 1px solid rgba(248,113,113,0.25);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 36px;
}
.cart-btn-danger:hover:not(:disabled) {
    background: rgba(248,113,113,0.1);
    border-color: rgba(248,113,113,0.5);
    color: #fca5a5;
}
.cart-btn-danger:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* === Cart: Checkbox === */
.cart-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.125rem;
    height: 1.125rem;
    min-width: 1.125rem;
    border: 2px solid #44403C;
    border-radius: 0.375rem;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    outline: none;
}
.cart-checkbox:hover {
    border-color: #CA8A04;
}
.cart-checkbox:checked {
    background: #CA8A04;
    border-color: #CA8A04;
}
.cart-checkbox:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.cart-checkbox:focus-visible {
    box-shadow: 0 0 0 2px rgba(202,138,4,0.3);
}

/* === Cart: Scrollable Container === */
.cart-items-scroll {
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.125rem 0.5rem 0.125rem 0.125rem;
}

.cart-item-card-wrapper {
    width: 100%;
    min-width: 0;
    flex-shrink: 0;
}

.cart-item-card .card-body {
    min-width: 0;
    width: 100%;
}
.cart-item-card .card-body label {
    min-width: 0;
    overflow: hidden;
}

.cart-items-scroll::-webkit-scrollbar {
    width: 5px;
}
.cart-items-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.cart-items-scroll::-webkit-scrollbar-thumb {
    background: rgba(201,168,76,0.25);
    border-radius: 999px;
}
.cart-items-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(201,168,76,0.4);
}

/* === Cart: Item Enter Animation === */
@keyframes cartItemFadeIn {
    0%   { opacity: 0; transform: translateY(12px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.cart-item-card-wrapper.cart-item-enter {
    animation: cartItemFadeIn 0.4s ease-out forwards;
}

/* checked item highlight */
.cart-item-card-wrapper:has(.item-checkbox:checked) .cart-item-card {
    border-color: rgba(202,138,4,0.35);
    background: rgba(202,138,4,0.04);
}
.cart-item-card-wrapper:has(.guest-item-cb:checked) .cart-item-card {
    border-color: rgba(202,138,4,0.35);
    background: rgba(202,138,4,0.04);
}

/* === Cart: Guest Layout === */
#guest-cart-items .cart-items-scroll {
    max-height: 420px;
}

