@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Soft rose pink — lembut & nyaman dipandang, bukan pink terlalu terang/menyala */
    --color-bg: #fdf8f9;
    --color-card: #ffffff;
    --color-primary: #e8617e;
    --color-primary-light: #f0899f;
    --color-primary-dark: #c94868;
    --color-secondary: #10b981;
    --color-secondary-light: #d1fae5;
    --color-text: #34222a;
    --color-text-light: #8a6f76;
    --color-border: rgba(52, 34, 42, .09);
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    /* Font emoji warna (Segoe UI Emoji/Apple Color Emoji/Noto Color Emoji) diletakkan SEBELUM 'Segoe UI' —
       kalau tidak, Windows Chrome memilih glyph monokrom dari 'Segoe UI' untuk sebagian emoji (mis. 🎬),
       hasilnya ikon produk terlihat seperti gambar hitam-putih pecah, bukan emoji berwarna penuh. */
    --font-rounded: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', -apple-system, "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
    --font-emoji: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Symbol", sans-serif;
    --gradient-primary: linear-gradient(135deg, #e8617e 0%, #f0899f 100%);
    --radius-pill: 9999px;
    --shadow-soft: 0 1px 3px rgba(52, 34, 42, .06), 0 1px 2px rgba(52, 34, 42, .03);
    --shadow-hover: 0 20px 50px rgba(52, 34, 42, .12), 0 2px 8px rgba(52, 34, 42, .05);
}

/* ═══════════════════════════════════════════════════════════════
   THEME COLOR OVERRIDES — setiap tema menimpa CSS variables
   ═══════════════════════════════════════════════════════════════ */

/* 1. Default (Soft Rose Pink) */
body[data-theme="sakura"] {
    --color-bg: #fdf8f9;
    --color-card: #ffffff;
    --color-primary: #e8617e;
    --color-primary-light: #f0899f;
    --color-primary-dark: #c94868;
    --color-secondary: #10b981;
    --color-secondary-light: #d1fae5;
    --color-text: #34222a;
    --color-text-light: #8a6f76;
    --color-border: rgba(52, 34, 42, .09);
    --shadow-soft: 0 1px 3px rgba(52, 34, 42, .06), 0 1px 2px rgba(52, 34, 42, .03);
    --shadow-hover: 0 20px 50px rgba(52, 34, 42, .12), 0 2px 8px rgba(52, 34, 42, .05);
}
body[data-theme="sakura"] { background: radial-gradient(70% 55% at 72% 0%, rgba(232, 97, 126, .07) 0%, transparent 70%), var(--color-bg); }

/* 2. Lavender Neko */
body[data-theme="lavender"] {
    --color-bg: #f5f0ff;
    --color-card: #ffffff;
    --color-primary: #8b5cf6;
    --color-primary-light: #e9d5ff;
    --color-primary-dark: #6d28d9;
    --color-secondary: #a78bfa;
    --color-secondary-light: #f5f0ff;
    --color-text: #2e1065;
    --color-text-light: #6b5b95;
    --color-border: #c4b5fd;
    --shadow-soft: 0 8px 24px rgba(139, 92, 246, 0.12);
    --shadow-hover: 0 12px 30px rgba(139, 92, 246, 0.25);
}
body[data-theme="lavender"] { background: radial-gradient(circle at 15% 20%, #ede4ff 0%, transparent 40%), radial-gradient(circle at 85% 80%, #ddd6fe 0%, transparent 45%), var(--color-bg); }

/* 3. Matcha Mint */
body[data-theme="matcha"] {
    --color-bg: #ecfdf5;
    --color-card: #ffffff;
    --color-primary: #10b981;
    --color-primary-light: #a7f3d0;
    --color-primary-dark: #047857;
    --color-secondary: #34d399;
    --color-secondary-light: #ecfdf5;
    --color-text: #064e3b;
    --color-text-light: #3a8274;
    --color-border: #6ee7b7;
    --shadow-soft: 0 8px 24px rgba(16, 185, 129, 0.12);
    --shadow-hover: 0 12px 30px rgba(16, 185, 129, 0.25);
}
body[data-theme="matcha"] { background: radial-gradient(circle at 10% 15%, #d1fae5 0%, transparent 40%), radial-gradient(circle at 90% 85%, #a7f3d0 0%, transparent 45%), var(--color-bg); }

/* 4. Honey Peach */
body[data-theme="peach"] {
    --color-bg: #fffbeb;
    --color-card: #ffffff;
    --color-primary: #f59e0b;
    --color-primary-light: #fde68a;
    --color-primary-dark: #b45309;
    --color-secondary: #fbbf24;
    --color-secondary-light: #fffbeb;
    --color-text: #451a03;
    --color-text-light: #92400e;
    --color-border: #fcd34d;
    --shadow-soft: 0 8px 24px rgba(245, 158, 11, 0.12);
    --shadow-hover: 0 12px 30px rgba(245, 158, 11, 0.25);
}
body[data-theme="peach"] { background: radial-gradient(circle at 10% 15%, #fef3c7 0%, transparent 40%), radial-gradient(circle at 90% 85%, #fde68a 0%, transparent 45%), var(--color-bg); }

/* 5. Sky Blue Neko */
body[data-theme="skyblue"] {
    --color-bg: #f0f9ff;
    --color-card: #ffffff;
    --color-primary: #0ea5e9;
    --color-primary-light: #bae6fd;
    --color-primary-dark: #0369a1;
    --color-secondary: #38bdf8;
    --color-secondary-light: #f0f9ff;
    --color-text: #0c4a6e;
    --color-text-light: #0369a1;
    --color-border: #7dd3fc;
    --shadow-soft: 0 8px 24px rgba(14, 165, 233, 0.12);
    --shadow-hover: 0 12px 30px rgba(14, 165, 233, 0.25);
}
body[data-theme="skyblue"] { background: radial-gradient(circle at 10% 15%, #e0f2fe 0%, transparent 40%), radial-gradient(circle at 90% 85%, #bae6fd 0%, transparent 45%), var(--color-bg); }

/* 6. Blueberry */
body[data-theme="blueberry"] {
    --color-bg: #eef2ff;
    --color-card: #ffffff;
    --color-primary: #6366f1;
    --color-primary-light: #c7d2fe;
    --color-primary-dark: #4338ca;
    --color-secondary: #818cf8;
    --color-secondary-light: #eef2ff;
    --color-text: #1e1b4b;
    --color-text-light: #4338ca;
    --color-border: #a5b4fc;
    --shadow-soft: 0 8px 24px rgba(99, 102, 241, 0.12);
    --shadow-hover: 0 12px 30px rgba(99, 102, 241, 0.25);
}
body[data-theme="blueberry"] { background: radial-gradient(circle at 10% 15%, #e0e7ff 0%, transparent 40%), radial-gradient(circle at 90% 85%, #c7d2fe 0%, transparent 45%), var(--color-bg); }

/* 7. Strawberry Milk */
body[data-theme="strawberry"] {
    --color-bg: #fdf3f5;
    --color-card: #ffffff;
    --color-primary: #e11d48;
    --color-primary-light: #fecdd3;
    --color-primary-dark: #9f1239;
    --color-secondary: #fb7185;
    --color-secondary-light: #fff1f2;
    --color-text: #4c0519;
    --color-text-light: #9f1239;
    --color-border: #fda4af;
    --shadow-soft: 0 8px 24px rgba(225, 29, 72, 0.12);
    --shadow-hover: 0 12px 30px rgba(225, 29, 72, 0.25);
}
body[data-theme="strawberry"] { background: radial-gradient(circle at 10% 15%, #ffe4e6 0%, transparent 40%), radial-gradient(circle at 90% 85%, #fecdd3 0%, transparent 45%), var(--color-bg); }

/* 8. Lemon Chiffon */
body[data-theme="lemon"] {
    --color-bg: #fefce8;
    --color-card: #ffffff;
    --color-primary: #ca8a04;
    --color-primary-light: #fef08a;
    --color-primary-dark: #854d0e;
    --color-secondary: #eab308;
    --color-secondary-light: #fefce8;
    --color-text: #422006;
    --color-text-light: #854d0e;
    --color-border: #fde047;
    --shadow-soft: 0 8px 24px rgba(202, 138, 4, 0.12);
    --shadow-hover: 0 12px 30px rgba(202, 138, 4, 0.25);
}
body[data-theme="lemon"] { background: radial-gradient(circle at 10% 15%, #fef9c3 0%, transparent 40%), radial-gradient(circle at 90% 85%, #fef08a 0%, transparent 45%), var(--color-bg); }

/* 9. Cotton Candy */
body[data-theme="cottoncandy"] {
    --color-bg: #fdf2f8;
    --color-card: #ffffff;
    --color-primary: #ec4899;
    --color-primary-light: #fbcfe8;
    --color-primary-dark: #be185d;
    --color-secondary: #f472b6;
    --color-secondary-light: #fdf2f8;
    --color-text: #500724;
    --color-text-light: #9d174d;
    --color-border: #f9a8d4;
    --shadow-soft: 0 8px 24px rgba(236, 72, 153, 0.12);
    --shadow-hover: 0 12px 30px rgba(236, 72, 153, 0.25);
}
body[data-theme="cottoncandy"] { background: radial-gradient(circle at 10% 15%, #fce7f3 0%, transparent 40%), radial-gradient(circle at 90% 85%, #fbcfe8 0%, transparent 45%), var(--color-bg); }

/* 10. Creamsicle Orange */
body[data-theme="creamsicle"] {
    --color-bg: #fff7ed;
    --color-card: #ffffff;
    --color-primary: #ea580c;
    --color-primary-light: #fed7aa;
    --color-primary-dark: #9a3412;
    --color-secondary: #fb923c;
    --color-secondary-light: #fff7ed;
    --color-text: #431407;
    --color-text-light: #9a3412;
    --color-border: #fdba74;
    --shadow-soft: 0 8px 24px rgba(234, 88, 12, 0.12);
    --shadow-hover: 0 12px 30px rgba(234, 88, 12, 0.25);
}
body[data-theme="creamsicle"] { background: radial-gradient(circle at 10% 15%, #ffedd5 0%, transparent 40%), radial-gradient(circle at 90% 85%, #fed7aa 0%, transparent 45%), var(--color-bg); }

/* 11. Greetabl Pastel */
body[data-theme="greetabl"] {
    --color-bg: #e4f4f0;
    --color-card: #ffffff;
    --color-primary: #3a8274;
    --color-primary-light: #bfd8d2;
    --color-primary-dark: #1b5e50;
    --color-secondary: #86c4b6;
    --color-secondary-light: #e4f4f0;
    --color-text: #1b3630;
    --color-text-light: #3a8274;
    --color-border: #86c4b6;
    --shadow-soft: 0 8px 24px rgba(58, 130, 116, 0.12);
    --shadow-hover: 0 12px 30px rgba(58, 130, 116, 0.25);
}
body[data-theme="greetabl"] { background: radial-gradient(circle at 10% 15%, #d4ede7 0%, transparent 40%), radial-gradient(circle at 90% 85%, #bfd8d2 0%, transparent 45%), var(--color-bg); }

/* 12. One Piece */
body[data-theme="onepiece"] {
    --color-bg: #fffbeb;
    --color-card: #ffffff;
    --color-primary: #dc2626;
    --color-primary-light: #fecaca;
    --color-primary-dark: #991b1b;
    --color-secondary: #f59e0b;
    --color-secondary-light: #fef3c7;
    --color-text: #1c1917;
    --color-text-light: #78716c;
    --color-border: #fde047;
    --shadow-soft: 0 8px 24px rgba(220, 38, 38, 0.12);
    --shadow-hover: 0 12px 30px rgba(239, 68, 68, 0.25);
}
body[data-theme="onepiece"] { background: radial-gradient(circle at 10% 15%, #fef3c7 0%, transparent 40%), radial-gradient(circle at 90% 85%, #fecaca 0%, transparent 45%), var(--color-bg); }

/* 13. Midnight Neko (DARK THEME) */
body[data-theme="midnight"] {
    --color-bg: #0f172a;
    --color-card: #1e293b;
    --color-primary: #a78bfa;
    --color-primary-light: #312e81;
    --color-primary-dark: #c4b5fd;
    --color-secondary: #818cf8;
    --color-secondary-light: #1e1b4b;
    --color-text: #e2e8f0;
    --color-text-light: #94a3b8;
    --color-border: #334155;
    --color-success: #34d399;
    --color-success-light: #064e3b;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 30px rgba(167, 139, 250, 0.25);
}
body[data-theme="midnight"] {
    background: radial-gradient(circle at 10% 15%, #1e1b4b 0%, transparent 40%), radial-gradient(circle at 90% 85%, #172554 0%, transparent 45%), #0f172a;
}
body[data-theme="midnight"] .search-bar,
body[data-theme="midnight"] .modal-card,
body[data-theme="midnight"] .product-card,
body[data-theme="midnight"] .cart-drawer {
    background: var(--color-card);
    color: var(--color-text);
    border-color: var(--color-border);
}
body[data-theme="midnight"] .cat-face { background: #312e81; }
body[data-theme="midnight"] .cat-ear { background: #4c1d95; }
body[data-theme="midnight"] .cat-nose { background: #a78bfa; }
body[data-theme="midnight"] header { background: rgba(15, 23, 42, 0.95); border-color: #334155; }
body[data-theme="midnight"] .tab-btn { color: #94a3b8; }
body[data-theme="midnight"] .tab-btn.active { color: #a78bfa; border-color: #a78bfa; }
body[data-theme="midnight"] .cat-chip { background: #1e293b; color: #94a3b8; border-color: #334155; }
body[data-theme="midnight"] .cat-chip.active { background: #312e81; color: #c4b5fd; border-color: #6366f1; }
body[data-theme="midnight"] .btn.primary-btn { background: #7c3aed; border-color: #6d28d9; }

/* 14. Rose Gold */
body[data-theme="rosegold"] {
    --color-bg: #fdf2f2;
    --color-card: #ffffff;
    --color-primary: #b76e79;
    --color-primary-light: #f5d5d8;
    --color-primary-dark: #8e4553;
    --color-secondary: #d4a5a5;
    --color-secondary-light: #fdf2f2;
    --color-text: #3d1f25;
    --color-text-light: #8e4553;
    --color-border: #e8c4c8;
    --shadow-soft: 0 8px 24px rgba(183, 110, 121, 0.12);
    --shadow-hover: 0 12px 30px rgba(183, 110, 121, 0.25);
}
body[data-theme="rosegold"] { background: radial-gradient(circle at 10% 15%, #fce4ec 0%, transparent 40%), radial-gradient(circle at 90% 85%, #f5d5d8 0%, transparent 45%), var(--color-bg); }

body[data-theme="onepiece"] #adminViewDashboard > div:first-child,
body[data-theme="onepiece"] #adminViewLaporan > div:first-child,
body[data-theme="onepiece"] #adminViewBroadcast > div:first-child,
body[data-theme="onepiece"] #adminViewThumbnails > div:first-child {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.82), rgba(245, 158, 11, 0.88)), url('/onepiece_banner.jpg') center/cover no-repeat !important;
    border: 2.5px solid #fde047 !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25) !important;
}

/* Admin Luffy Mascot */
.admin-luffy-mascot {
    background: url('/luffy_avatar.jpg') center/cover no-repeat !important;
    border-radius: 50% !important;
    border: 3px solid #f59e0b !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
    width: 44px !important;
    height: 44px !important;
    cursor: pointer !important;
    transition: transform 0.15s ease !important;
}

.admin-luffy-mascot:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Kartu pilihan Mode Pembayaran (Otomatis/Manual) di panel admin */
.payment-mode-option {
    transition: all 0.15s ease;
}

input[name="paymentModeRadio"]:checked + .payment-mode-option {
    border-color: var(--color-primary) !important;
    background: rgba(232, 97, 126, .06);
    box-shadow: 0 0 0 3px rgba(232, 97, 126, .12);
}

/* Tombol buka sidebar admin (drawer) — hanya tampil di layar HP, lihat media query di bawah */
.admin-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--color-text);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.admin-sidebar-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f8eef0;
    color: var(--color-text);
    cursor: pointer;
    flex-shrink: 0;
}

.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(52, 34, 42, 0.45);
    z-index: 290;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.admin-sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-rounded);
}

body {
    background: radial-gradient(70% 55% at 72% 0%, rgba(232, 97, 126, .08) 0%, transparent 70%), var(--color-bg);
    background-attachment: fixed;
    color: var(--color-text);
    min-height: 100vh;
    padding: 1.5rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Dekorasi cat paw print dihilangkan — tampilan pembeli sekarang mengikuti gaya modern minimalis. */
.paw-bg-pattern {
    display: none;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* -------------------------------------------------------------
   HEADER & LOGO DESIGN
   ------------------------------------------------------------- */
header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px) saturate(1.8);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Logo monogram — menggantikan bentuk kepala kucing dengan lencana gradien ala STREAD */
.cat-logo {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(232, 97, 126, .28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-logo::before {
    content: 'T';
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
}

.cat-ear,
.cat-face,
.cat-eye,
.cat-nose {
    display: none;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.brand-emoji {
    display: none;
}

.tagline {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
}

/* Search Bar & Tab Controls */
.search-tab-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-wrapper {
    flex-grow: 1;
    position: relative;
    min-width: 250px;
}

.shop-search-wrapper {
    width: 100%;
    min-width: 0;
    margin-bottom: 1.25rem;
}

/* -------------------------------------------------------------
   HERO KATALOG PRODUK — pengganti banner carousel, statis & ringkas
   ------------------------------------------------------------- */
.shop-hero {
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffe1e8 0%, #ffc9d6 45%, #ffb0c4 100%);
    border: 1px solid #ffb3c8;
    box-shadow: 0 8px 24px rgba(232, 97, 126, .15);
}

.shop-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, .55);
    color: var(--color-primary-dark);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(232, 97, 126, .18);
}

.shop-hero-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    letter-spacing: -0.01em;
    margin-bottom: 0.65rem;
}

.shop-hero-title .accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.shop-hero-subtitle {
    font-size: 0.95rem;
    color: #9c4f63;
    max-width: 480px;
    margin: 0 auto;
}

@media (max-width: 500px) {
    .shop-hero {
        padding: 2rem 1rem;
    }
    .shop-hero-title {
        font-size: 1.5rem;
    }
    .shop-hero-subtitle {
        font-size: 0.85rem;
    }
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    width: 18px;
    height: 18px;
}

.search-bar {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--color-text);
    background-color: #f8eef0;
    outline: none;
    transition: all 0.2s ease;
}

.search-bar:focus {
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(232, 97, 126, .14);
}

.tab-controls {
    display: flex;
    background-color: #f6e9ec;
    padding: 0.3rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.tab-btn {
    padding: 0.55rem 1.1rem;
    border: none;
    background: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background-color: var(--color-card);
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-soft);
}

.tab-icon {
    width: 16px;
    height: 16px;
}

/* Shopping Cart Trigger */
.cart-trigger-container {
    margin-left: auto;
}

.cart-btn {
    background-color: #f8eef0;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.cart-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.cart-icon {
    width: 20px;
    height: 20px;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--color-card);
    box-shadow: 0 2px 8px rgba(232, 97, 126, .3);
}

/* -------------------------------------------------------------
   PROMO BANNER CAROUSEL
   ------------------------------------------------------------- */
.promo-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 200px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
    background: radial-gradient(70% 100% at 75% 0%, rgba(232, 97, 126, .08) 0%, transparent 70%), #ffffff;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    background: transparent !important;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-content {
    max-width: 70%;
}

.slide-badge {
    background-color: rgba(232, 97, 126, .08);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.slide-content h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.4rem;
}

.slide-content p {
    font-size: 0.88rem;
    color: var(--color-text-light);
}

.slide-graphic {
    font-size: 3.5rem;
    user-select: none;
    opacity: .85;
}

/* -------------------------------------------------------------
   CATEGORY CHIPS
   ------------------------------------------------------------- */
.category-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    scrollbar-width: none;
}

.category-row::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-card);
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cat-chip svg {
    width: 14px;
    height: 14px;
}

.cat-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

.cat-chip.active {
    background-color: rgba(232, 97, 126, .08);
    border-color: transparent;
    color: var(--color-primary-dark);
    box-shadow: none;
}

/* -------------------------------------------------------------
   PRODUCT LIST GRID
   ------------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.product-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s var(--ease-out, ease);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    /* Tanpa ini, gambar produk (elemen <img>) bisa memaksa kolom grid melebar mengikuti
       ukuran asli gambar, membuat satu kartu melebar dan kartu sebelahnya gepeng/terjepit. */
    min-width: 0;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(232, 97, 126, .3);
    box-shadow: var(--shadow-hover);
}

.card-visual {
    background: #f8eef0;
    border: none;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    height: auto;
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.2rem;
    margin-bottom: 0.75rem;
    user-select: none;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.card-visual-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.35s ease;
}

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

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.6rem;
}

.card-category {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-text-light);
    letter-spacing: 0.02em;
    text-transform: capitalize;
    background: rgba(100, 116, 139, .1);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    display: inline-block;
}

.card-stock-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.card-stock-badge.in {
    background: rgba(245, 158, 11, .12);
    color: #b45309;
}

.card-stock-badge.out {
    background: rgba(239, 68, 68, .09);
    color: #b91c1c;
}

.card-title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 0.2rem;
    height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 0.75rem;
    color: var(--color-text-light);
    line-height: 1.3;
    margin-bottom: 0.6rem;
    height: 19px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-price-row {
    margin-top: auto;
    padding-top: 0.25rem;
}

.card-price {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 0.6rem;
}

.card-cart-btn,
.card-buy-btn,
.card-soldout-btn {
    width: 100%;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.card-cart-btn {
    background: rgba(232, 97, 126, .1);
    color: var(--color-primary-dark);
}

.card-cart-btn:hover {
    background: rgba(232, 97, 126, .18);
}

.card-buy-btn {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(232, 97, 126, .28);
}

.card-buy-btn:hover {
    filter: brightness(1.06);
}

.card-soldout-btn {
    background: #f8eef0;
    color: #b3a1a6;
    cursor: not-allowed;
}

/* -------------------------------------------------------------
   CART DRAWER (SLIDING FROM RIGHT)
   ------------------------------------------------------------- */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(52, 34, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--color-card);
    border-left: 2px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.active .cart-drawer {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 1.25rem;
    border-bottom: 2px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.close-drawer-btn {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Empty cart state */
.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-light);
    gap: 0.75rem;
    text-align: center;
}

.empty-cart-icon {
    font-size: 4rem;
    animation: wiggle 2s infinite;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--color-bg);
    padding: 0.75rem;
    border-radius: 15px;
    border: 1px solid var(--color-border);
}

.cart-item-visual {
    font-size: 2.2rem;
    user-select: none;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2px;
}

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

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.cart-qty-btn {
    border: none;
    background: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
}

.cart-qty-btn:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.cart-qty-num {
    width: 24px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff5252;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
}

.cart-drawer-footer {
    padding: 1.25rem;
    border-top: 2px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--color-bg);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
}

.total-price {
    color: var(--color-primary-dark);
    font-size: 1.2rem;
}

.checkout-btn {
    width: 100%;
    padding: 0.85rem;
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(232, 97, 126, .28);
    transition: all 0.2s ease;
}

.checkout-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* -------------------------------------------------------------
   MODALS LAYOUT (DETAILS & CHECKOUT)
   ------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(52, 34, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 110;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: var(--shadow-hover);
    padding: 1.75rem 1.5rem 1.5rem;
    position: relative;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow: visible !important;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.25s var(--ease-out, ease);
    margin: auto;
}

/* Cute Inner Scrollable Container */
.modal-scroll-area {
    overflow-y: auto;
    max-height: calc(85vh - 50px);
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary-light) transparent;
}

.modal-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

.modal-scroll-area::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 10px;
}

.modal-scroll-area::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Telinga kucing di atas modal dihapus — gaya modern tidak pakai dekorasi ini lagi. */
.modal-card::before,
.modal-card::after {
    display: none;
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    background: #f8eef0;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--color-primary);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* -------------------------------------------------------------
   KAWAII LOGIN MODAL ORNAMENTS & DECORATIONS
   ------------------------------------------------------------- */
.auth-kawaii-card {
    position: relative;
    border: 3px solid var(--color-primary) !important;
    border-radius: 28px !important;
    background: #ffffff !important;
    box-shadow: 0 16px 40px rgba(240, 137, 159, 0.2) !important;
    overflow: visible !important;
}

/* Cute Input Field Group Styling */
.kawaii-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.kawaii-input-icon {
    position: absolute;
    left: 12px;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.kawaii-input {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.75rem 1rem 0.75rem 2.4rem !important;
    border: 2px solid var(--color-border) !important;
    border-radius: 16px !important;
    font-size: 0.88rem !important;
    background-color: var(--color-bg) !important;
    color: var(--color-text) !important;
    transition: all 0.2s ease !important;
}

.kawaii-input:focus {
    border-color: var(--color-primary) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px var(--color-primary-light) !important;
    outline: none !important;
}

/* Bounce Neko Logo */
.kawaii-neko-logo {
    animation: nekoPulse 2.5s infinite ease-in-out;
}

@keyframes nekoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

/* Interactive Cat Head Meow Bounce & Speech Bubble */
.cat-logo, .cat-head-clickable {
    cursor: pointer !important;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cat-logo:hover, .cat-head-clickable:hover {
    transform: scale(1.08) rotate(-3deg);
}

.cat-head-meow-anim {
    animation: meowHeadAction 0.45s ease-in-out !important;
}

@keyframes meowHeadAction {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.25) rotate(-12deg); }
    50% { transform: scale(0.9) rotate(10deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Floating Meow Speech Bubble */
.meow-speech-bubble {
    position: absolute;
    background: #ffffff;
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 12px;
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(240, 137, 159, 0.3);
    pointer-events: none;
    z-index: 1000;
    animation: bubblePopUp 1.2s ease-out forwards;
    white-space: nowrap;
}

@keyframes bubblePopUp {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    20% { opacity: 1; transform: translateY(-12px) scale(1.15); }
    80% { opacity: 1; transform: translateY(-20px) scale(1); }
    100% { opacity: 0; transform: translateY(-32px) scale(0.9); }
}

/* Product Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 500px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.detail-visual {
    background-color: var(--color-bg);
    border-radius: 20px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    user-select: none;
    overflow: hidden;
}

.detail-visual > div {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-tag {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

#detailName {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.detail-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    display: block;
    margin-bottom: 0.75rem;
}

.detail-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.stock-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--color-secondary-light);
    color: #d85f1c;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.detail-action-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
}

.qty-btn {
    border: none;
    background: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
}

.qty-btn:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.qty-val {
    width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.add-to-cart-btn {
    flex-grow: 1;
    padding: 0.75rem;
    border: 2px solid var(--color-primary-dark);
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(240, 137, 159, 0.2);
}

.add-to-cart-btn:hover {
    background-color: var(--color-primary-dark);
}

/* -------------------------------------------------------------
   CHECKOUT WIZARD MODAL
   ------------------------------------------------------------- */
.checkout-card {
    max-width: 450px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.payment-method-option input {
    display: none;
}

.payment-box {
    border: 2px solid var(--color-border);
    border-radius: 15px;
    padding: 0.85rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all 0.2s ease;
}

.payment-method-option input:checked + .payment-box {
    border-color: var(--color-primary);
    background-color: var(--color-primary-light);
}

.method-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.method-desc {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.checkout-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.primary-btn {
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary-dark);
    color: #fff;
}

.primary-btn:hover {
    background-color: var(--color-primary-dark);
}

/* Instant Delivery Lunchbox Success Screen */
.checkout-success {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.success-box-anim {
    height: 100px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CSS Lunchbox opening animation */
.lunchbox {
    position: relative;
    font-size: 4rem;
    animation: openBox 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes openBox {
    0% { transform: scale(0.6) rotate(0deg); }
    50% { transform: scale(1.1) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.delivery-receipt {
    width: 100%;
    background-color: var(--color-bg);
    border: 2px dashed var(--color-primary);
    border-radius: 18px;
    padding: 1.25rem;
    text-align: left;
    margin: 0.75rem 0;
}

.receipt-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.delivery-item-block {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.delivery-item-name {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.key-code-block {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    background-color: #f7ece1;
    border: 1px solid #e5d4c2;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    word-break: break-all;
}

.copy-hint {
    font-size: 0.65rem;
    color: var(--color-primary-dark);
    font-weight: 600;
}

.download-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-success-light);
    color: var(--color-success);
    border: 1px solid var(--color-success);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 4px;
}

/* -------------------------------------------------------------
   TOYBOX INVENTORY LIST (MY INVENTORI)
   ------------------------------------------------------------- */
.inventory-header {
    background: var(--color-card);
    border: 2px solid var(--color-border);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
}

.inventory-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.inventory-header p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-inventory-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    background: var(--color-card);
    border: 2px solid var(--color-border);
    border-radius: 20px;
    text-align: center;
    color: var(--color-text-light);
    gap: 0.75rem;
}

.empty-inv-icon {
    font-size: 4rem;
}

.inventory-card {
    background-color: var(--color-card);
    border: 2px solid var(--color-border);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.inventory-card-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.inventory-details h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.inventory-details span {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.inventory-card-right {
    min-width: 200px;
}

/* -------------------------------------------------------------
   FLOATING CAT MASCOT
   ------------------------------------------------------------- */
/* Mascot kucing dihilangkan dari tampilan pembeli — gaya baru tidak pakai maskot. */
.mascot-container {
    display: none !important;
}

.speech-bubble {
    background-color: var(--color-card);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    max-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
    margin-bottom: 30px;
    animation: floatBubble 4s ease-in-out infinite;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 12px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid var(--color-card);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    right: -11px;
    bottom: 11px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 9px solid var(--color-border);
    z-index: -1;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* CSS Mami-chan mascot design */
.mami-mascot {
    width: 60px;
    height: 60px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mami-mascot:hover {
    transform: scale(1.1) rotate(5deg);
}

.mami-ear {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 16px solid var(--color-secondary);
    top: -10px;
}

.mami-left-ear { left: 4px; transform: rotate(-20deg); }
.mami-right-ear { right: 4px; transform: rotate(20deg); }

.mami-face {
    position: relative;
    width: 100%;
    height: 100%;
}

.mami-blush {
    position: absolute;
    width: 8px;
    height: 4px;
    background-color: rgba(240, 137, 159, 0.5);
    border-radius: 50%;
    top: 32px;
}
.mami-blush:first-child { left: 8px; }
.mami-blush { right: 8px; }

.mami-eyes {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    top: 24px;
}

.mami-eye {
    width: 5px;
    height: 5px;
    background-color: var(--color-text);
    border-radius: 50%;
}

.mami-mouth {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 28px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
    user-select: none;
}

.mami-body {
    position: absolute;
    width: 36px;
    height: 20px;
    background-color: var(--color-secondary);
    bottom: -10px;
    left: 12px;
    border-radius: 10px 10px 0 0;
    z-index: -1;
}

.mami-paws {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    margin-top: 4px;
}

.mami-paw {
    width: 8px;
    height: 8px;
    background-color: var(--color-border);
    border-radius: 50%;
}

.mami-tail {
    position: absolute;
    width: 8px;
    height: 24px;
    background-color: var(--color-secondary);
    border-radius: 4px;
    bottom: -6px;
    left: -2px;
    transform-origin: bottom center;
    animation: wiggle 2.5s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(35deg); }
}

/* -------------------------------------------------------------
   ADMIN PANEL & COMPLAINTS STYLING
   ------------------------------------------------------------- */
.admin-header {
    background: var(--color-card);
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
}

.admin-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.admin-header p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.complaint-item {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
}

.complaint-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.complaint-status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}

.status-pending {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.status-resolved {
    background-color: var(--color-success-light);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.complaint-text-block {
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--color-text);
    margin-top: 4px;
    white-space: pre-wrap;
    word-break: break-all;
}

.complaint-resolve-btn {
    align-self: flex-end;
    background-color: var(--color-success-light);
    border: 1px solid var(--color-success);
    color: var(--color-success);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.complaint-resolve-btn:hover {
    background-color: var(--color-success);
    color: #fff;
}

/* Auth Gateway Profile Badge styles */
#userProfileBadge {
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

#userProfileBadge:hover {
    transform: scale(1.03);
}

#logoutBtn:hover {
    background-color: #d32f2f !important;
    border-color: #d32f2f !important;
    color: #ffffff !important;
    transform: scale(1.05);
}

/* Dropdown Item Hover/Active Styling */
.dropdown-item {
    transition: all 0.2s ease;
}
.dropdown-item:hover, .dropdown-item.active {
    background-color: var(--color-primary-light) !important;
    color: var(--color-primary-dark) !important;
}

/* -------------------------------------------------------------
   MODERN ADMIN KELOLA PRODUK DASHBOARD TABLE STYLES
   ------------------------------------------------------------- */
.admin-stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1.5px solid var(--color-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.admin-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.admin-table-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1.5px solid var(--color-border);
    overflow: hidden;
}

.admin-product-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 0.83rem;
}

.admin-product-table th {
    background: #fbf9f6;
    color: #8c7b70;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    border-bottom: 1.5px solid var(--color-border);
    white-space: nowrap;
    text-transform: uppercase;
}

.admin-product-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f4eae0;
    vertical-align: middle;
    color: var(--color-text);
}

.admin-product-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-product-table tbody tr:hover {
    background-color: #fffbf7;
}

/* Badge Styles */
.badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    white-space: nowrap;
}

.badge-stock-zero {
    background-color: #fee2e2;
    color: #ef4444;
}

.badge-stock-positive {
    background-color: #d1fae5;
    color: #10b981;
}

.badge-variant-yes {
    background-color: #e0e7ff;
    color: #4f46e5;
}

.badge-source {
    background-color: #ffffff;
    border: 1.5px solid #e5e7eb;
    color: #8a6f76;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}

.action-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8a6f76;
}

.action-icon-btn:hover {
    background: #f3f4f6;
    color: var(--color-text);
}

.action-icon-btn.delete:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Toggle Switch Styling */
.switch-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--color-text-light);
    cursor: pointer;
    user-select: none;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 22px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--color-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(16px);
}

/* Outlined Fieldset Styles (Matching User Reference Image) */
.outlined-field-group {
    position: relative;
    width: 100%;
}

.outlined-label {
    position: absolute;
    top: -9px;
    left: 14px;
    background: #fff;
    padding: 0 6px;
    font-size: 0.73rem;
    font-weight: 700;
    color: #64748b;
    z-index: 2;
    pointer-events: none;
}

.outlined-input {
    width: 100%;
    height: 44px;
    padding: 0 1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    background: #fff;
    outline: none;
    transition: all 0.2s ease;
}

.outlined-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(240, 137, 159, 0.25);
}

/* -------------------------------------------------------------
   FLASH SALE & STOK MENIPIS STYLING
   ------------------------------------------------------------- */
.flash-sale-banner {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.35);
    border: 2px solid #ff7f50;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.flash-sale-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    animation: flashPulse 3s infinite linear;
    pointer-events: none;
}

@keyframes flashPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.9; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.flash-sale-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.flash-badge {
    background: #ff4757;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.4);
    animation: pulseBadge 1.5s infinite ease-in-out;
}

.low-stock-badge {
    background: #ff9f1a;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 99px;
    box-shadow: 0 2px 6px rgba(255, 159, 26, 0.4);
    animation: pulseBadge 1.5s infinite ease-in-out;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.original_price_struck {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    margin-right: 4px;
}

/* =============================================================
   ULTRA-PREMIUM KAWAII AESTHETIC DESIGN SYSTEM (HIGH-END WOW)
   ============================================================= */

/* Glassmorphism & Floating Elevation */
header,
.product-card,
.admin-card,
aside,
.modal-card,
.promo-banner,
.inventory-header,
.checkout-card {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(18px) !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: var(--shadow-soft) !important;
    border-radius: 14px !important;
}

/* Product Card Dynamic Hover Elevation */
.product-card {
    transition: all 0.2s var(--ease-out, ease) !important;
}

.product-card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(232, 97, 126, .3) !important;
    box-shadow: var(--shadow-hover) !important;
}

.product-card:hover .card-visual {
    transform: scale(1.02) !important;
}

/* Vibrant Gradient Primary Buttons */
.btn.primary-btn,
.checkout-btn,
.add-to-cart-btn,
.pay-btn,
#payBtn {
    background: linear-gradient(135deg, #e8617e 0%, #f0899f 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 6px 20px rgba(232, 97, 126, 0.35) !important;
    transition: all 0.25s ease !important;
}

.btn.primary-btn:hover,
.checkout-btn:hover,
.add-to-cart-btn:hover,
#payBtn:hover {
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: 0 12px 28px rgba(232, 97, 126, 0.48) !important;
    background: linear-gradient(135deg, #b83a5c 0%, #d9647f 100%) !important;
}

/* Admin Nav Active Items (Vibrant Gradient Pill) */
.admin-nav-item.active {
    background: linear-gradient(135deg, #e8617e 0%, #f0899f 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(232, 97, 126, 0.35) !important;
    border: none !important;
    transform: translateX(5px) !important;
    font-weight: 800 !important;
}

.admin-nav-item:hover:not(.active) {
    background: #fdf3f5 !important;
    color: #e8617e !important;
    transform: translateX(4px) !important;
}

/* Active Category Chips */
.cat-chip.active {
    background: linear-gradient(135deg, #e8617e 0%, #f0899f 100%) !important;
    border-color: #e8617e !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(232, 97, 126, 0.3) !important;
    font-weight: 800 !important;
}

/* Cart Button */
.cart-btn {
    background: #f8eef0 !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-text) !important;
    box-shadow: none !important;
}

.cart-btn:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(232, 97, 126, .3) !important;
}

.cart-badge {
    background: linear-gradient(135deg, #e8617e, #c94868) !important;
    box-shadow: 0 3px 10px rgba(201, 72, 104, 0.4) !important;
}

/* Promo Banner */
.promo-banner {
    border: 1px solid var(--color-border) !important;
    box-shadow: var(--shadow-soft) !important;
}

/* Search Bar Glowing Focus */
.search-bar:focus {
    border-color: #e8617e !important;
    box-shadow: 0 0 0 4px rgba(232, 97, 126, 0.25) !important;
    background: #ffffff !important;
}

/* Mascot Pulse & Shimmer */
.mami-mascot {
    filter: drop-shadow(0 8px 16px rgba(232, 97, 126, 0.3)) !important;
    animation: mascotBounce 3s ease-in-out infinite !important;
}

@keyframes mascotBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

.speech-bubble {
    background: #ffffff !important;
    border: 2px solid #e8617e !important;
    box-shadow: 0 6px 20px rgba(232, 97, 126, 0.2) !important;
    color: #4a0e17 !important;
    font-weight: 800 !important;
}

/* =============================================================
   ULTRA-DELUXE KAWAII VISUAL ENGINE (MAXIMUM WOW FACTOR)
   ============================================================= */

/* Custom Cute Kawaii Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #fbe8ec;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f0899f 0%, #e8617e 100%);
    border-radius: 99px;
    border: 2px solid #fbe8ec;
}

::-webkit-scrollbar-thumb:hover {
    background: #c94868;
}

/* Animasi shimmer sweep dihapus — terlalu ramai untuk gaya minimalis baru. */
.promo-banner {
    position: relative;
    overflow: hidden;
}

/* Cute Floating Badge Pulse */
.flash-badge, .low-stock-badge, .badge-pill {
    font-family: var(--font-rounded) !important;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(232, 97, 126, 0.25) !important;
}

/* Admin Stat Cards Glow Elevation */
#adminViewDashboard > div:nth-child(2) > div {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f7 100%) !important;
}

#adminViewDashboard > div:nth-child(2) > div:hover {
    transform: translateY(-5px) scale(1.03) !important;
    box-shadow: 0 12px 28px rgba(232, 97, 126, 0.2) !important;
    border-color: #e8617e !important;
}

/* Table Row Aesthetic Hover Accent */
table tbody tr {
    transition: all 0.2s ease;
}

table tbody tr:hover {
    background-color: #fdf3f5 !important;
}

/* Outlined Input Focus Ring */
.outlined-input:focus,
.modal-card input:focus,
.modal-card textarea:focus {
    border-color: #e8617e !important;
    box-shadow: 0 0 0 4px rgba(232, 97, 126, 0.2) !important;
    outline: none !important;
}

/* =============================================================
   KAWAII INPUT FIELD ALIGNMENT FIX (PREVENT ICON OVERLAPPING)
   ============================================================= */
.kawaii-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.kawaii-input-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 1.15rem !important;
    z-index: 5 !important;
    pointer-events: none !important;
    line-height: 1 !important;
}

.kawaii-input {
    width: 100% !important;
    height: 46px !important;
    padding-left: 48px !important; /* Pushes placeholder & text safely past the icon! */
    padding-right: 14px !important;
    border-radius: 14px !important;
    border: 2px solid #f7e2e8 !important;
    background: #ffffff !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #2b2d42 !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.kawaii-input:focus {
    border-color: #e8617e !important;
    box-shadow: 0 0 0 4px rgba(232, 97, 126, 0.2) !important;
}

#authModal .modal-card {
    max-width: 90vw !important;
    padding: 1.25rem 1rem !important;
    border-radius: 20px !important;
    border: 2px solid #f7e2e8 !important;
    box-shadow: 0 10px 35px rgba(232, 97, 126, 0.25) !important;
}

/* =============================================================
   MOBILE MASTER RESPONSIVE ENGINE (ALL PHONES & IPHONES)
   ============================================================= */

@media (max-width: 768px) {
    /* 1. Global Reset & Body Padding */
    body {
        padding: 0.4rem 0.25rem !important;
        font-size: 13.5px !important;
    }

    .app-container {
        gap: 0.6rem !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* 2. Header & Navigation Bar */
    header {
        padding: 0.75rem 0.6rem !important;
        border-radius: 16px !important;
        gap: 0.6rem !important;
        flex-direction: column !important;
        align-items: stretch !important;
        box-shadow: 0 4px 15px rgba(232, 97, 126, 0.12) !important;
    }

    .logo-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    .logo-container h1 {
        font-size: 1.1rem !important;
    }

    .cat-logo {
        /* Pakai transform:scale, bukan resize width/height — telinga & mata kucing posisinya pakai pixel tetap
           relatif ke ukuran asli, jadi kalau width/height dipaksa kecil, bagian-bagiannya jadi berantakan/hilang. */
        transform: scale(0.62) !important;
        transform-origin: left center !important;
    }

    #userProfileBadge {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
    }

    .search-tab-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
    }

    .search-wrapper {
        width: 100% !important;
    }

    .search-bar {
        height: 38px !important;
        font-size: 0.8rem !important;
        padding-left: 36px !important;
        border-radius: 99px !important;
    }

    .tab-controls {
        width: 100% !important;
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 4px !important;
        padding-bottom: 2px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .tab-controls::-webkit-scrollbar {
        display: none !important;
    }

    .tab-btn {
        flex-shrink: 0 !important;
        width: auto !important;
        justify-content: center !important;
        padding: 0.45rem 0.75rem !important;
        font-size: 0.76rem !important;
        white-space: nowrap !important;
        border-radius: 99px !important;
    }

    /* 3. Banners */
    .promo-banner {
        border-radius: 14px !important;
        margin-bottom: 0.65rem !important;
    }

    /* 4. Product Grid (Ultra-Neat 2 Columns on Phones) */
    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    .product-card {
        border-radius: 14px !important;
        padding: 0.6rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .card-visual {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        border-radius: 10px !important;
    }

    .card-title {
        font-size: 0.8rem !important;
        margin-top: 0.3rem !important;
        line-height: 1.25 !important;
    }

    .card-price {
        font-size: 0.85rem !important;
        font-weight: 800 !important;
    }

    .card-add-btn {
        padding: 6px 8px !important;
        font-size: 0.73rem !important;
        border-radius: 8px !important;
        width: 100% !important;
    }

    /* 5. Admin Container Layout on Mobile — sidebar jadi drawer yang bisa dibuka/tutup,
       BUKAN lagi baris tab horizontal yang gampang kepotong/susah dibaca di HP. */
    .admin-layout-container,
    #adminSection > div.admin-layout-container {
        flex-direction: row !important;
        min-height: auto !important;
        border-radius: 14px !important;
        box-shadow: none !important;
        width: 100% !important;
    }

    .admin-sidebar-toggle {
        display: flex !important;
    }

    #adminSection aside {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        width: 82vw !important;
        max-width: 300px !important;
        min-width: 0 !important;
        z-index: 300 !important;
        border-right: none !important;
        box-shadow: var(--shadow-hover) !important;
        padding: 1.25rem 0 !important;
        transform: translateX(-105%) !important;
        transition: transform 0.28s var(--ease-out, ease) !important;
        overflow-y: auto !important;
    }

    #adminSection aside.open {
        transform: translateX(0) !important;
    }

    #adminSection aside > div:first-child {
        padding: 0 1rem 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }

    .admin-sidebar-close {
        display: flex !important;
    }

    #adminSection aside nav {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: visible !important;
        white-space: normal !important;
        gap: 2px !important;
        padding: 0 0.75rem !important;
        width: 100% !important;
    }

    #adminSection aside nav .admin-nav-item {
        flex-shrink: 0 !important;
        width: 100% !important;
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
        border-radius: 12px !important;
        white-space: normal !important;
    }

    /* Judul kategori (Produk, Keuangan, dst) tetap tampil di dalam drawer, seperti di desktop */
    #adminSection aside nav > div {
        display: block !important;
    }

    /* 6. Admin Main Content Area */
    #adminSection main {
        padding: 0.65rem 0.3rem !important;
        gap: 0.65rem !important;
        background: transparent !important;
        width: 100% !important;
    }

    /* Welcome Banner */
    #adminViewDashboard > div:first-child {
        padding: 0.75rem 0.85rem !important;
        border-radius: 12px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.3rem !important;
    }

    #adminViewDashboard > div:first-child h2 {
        font-size: 1rem !important;
    }

    #adminViewDashboard > div:first-child p {
        font-size: 0.73rem !important;
    }

    /* Stat Cards Grid (2 Equal Columns) */
    #adminViewDashboard > div:nth-child(2) {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.4rem !important;
    }

    #adminViewDashboard > div:nth-child(2) > div {
        padding: 0.6rem 0.45rem !important;
        gap: 0.35rem !important;
        border-radius: 10px !important;
    }

    #adminViewDashboard > div:nth-child(2) > div > div:first-child {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.9rem !important;
        border-radius: 6px !important;
    }

    #adminViewDashboard > div:nth-child(2) > div > div:last-child > div:first-child {
        font-size: 0.58rem !important;
    }

    #adminViewDashboard > div:nth-child(2) > div > div:last-child > div:last-child {
        font-size: 0.8rem !important;
    }

    /* 7. Tables & Horizontal Scroll Container */
    .admin-table-container {
        border-radius: 10px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-shadow: 0 2px 8px rgba(232, 97, 126, 0.06) !important;
        width: 100% !important;
    }

    .admin-product-table {
        min-width: 540px !important;
        font-size: 0.74rem !important;
    }

    .admin-product-table th,
    .admin-product-table td {
        padding: 6px 8px !important;
    }

    /* 8. Admin Forms, Grids & Toolbar */
    #adminViewProducts > div:first-child {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.45rem !important;
    }

    #adminViewProducts > div:first-child > div {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.35rem !important;
    }

    .admin-grid {
        grid-template-columns: 1fr !important;
        gap: 0.65rem !important;
    }

    .complaint-item {
        padding: 0.6rem !important;
        border-radius: 10px !important;
    }

    /* 9. Modal Dialogs (Fits 100% on Mobile Screens without overflow) */
    .modal-overlay {
        padding: 0.4rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .modal-card {
        padding: 0.85rem 0.65rem !important;
        width: 95vw !important;
        max-width: 95vw !important;
        max-height: 88vh !important;
        border-radius: 14px !important;
        overflow-y: auto !important;
        box-shadow: 0 8px 30px rgba(232, 97, 126, 0.25) !important;
    }

    .modal-card h2, .modal-card h3 {
        font-size: 0.95rem !important;
    }

    .modal-card input, .modal-card select, .modal-card textarea {
        font-size: 0.78rem !important;
        padding: 7px 9px !important;
        border-radius: 8px !important;
    }

    .modal-card button {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }

    /* 10. Sembunyikan maskot kucing di HP — nutupin tombol/menu di layar kecil */
    .mascot-container {
        display: none !important;
    }
}
