/* ========================================
   SUPPLYSTORE PREMIUM - BLOCKY AESTHETIC
   Dark theme + Cyan/Orange accents + Pixel UI
   ======================================== */

:root {
    --primary: #00e5c7;
    --primary-light: #33ffd9;
    --primary-dark: #00b89c;
    --accent: #ff6b35;
    --accent-light: #ff8f66;
    --accent-dark: #e5551f;
    --bg-main: #0d1117;
    --bg-card: #161b22;
    --bg-card-hover: #1c2430;
    --bg-section: #0f1419;
    --text-primary: #f0f6fc;
    --text-secondary: #9eabb8;
    --text-muted: #6b7b8d;
    --border: rgba(0, 229, 199, 0.12);
    --border-hover: rgba(0, 229, 199, 0.3);
    --gradient-primary: linear-gradient(135deg, #00e5c7, #00b89c);
    --gradient-accent: linear-gradient(135deg, #ff6b35, #ff8f66);
    --shadow-sm: 0 2px 8px rgba(0, 229, 199, 0.08);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 229, 199, 0.2);
    --radius: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --font-primary: 'Space Grotesk', sans-serif;
    --font-pixel: 'Press Start 2P', monospace;
    --transition: all 0.2s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-primary);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading { overflow: hidden; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; outline: none; cursor: pointer; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === LOADING SCREEN === */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.loader-content { text-align: center; }

.loader-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 60px;
    margin: 0 auto 24px;
}

.block {
    width: 27px;
    height: 27px;
    animation: blockPulse 1.2s ease-in-out infinite;
}

.b1 { background: var(--primary); animation-delay: 0s; }
.b2 { background: var(--accent); animation-delay: 0.2s; }
.b3 { background: var(--accent); animation-delay: 0.4s; }
.b4 { background: var(--primary); animation-delay: 0.6s; }

@keyframes blockPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.7); opacity: 0.5; }
}

.loader-brand {
    display: block;
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.loading-bar {
    width: 200px;
    height: 6px;
    background: rgba(0, 229, 199, 0.1);
    margin: 0 auto 12px;
    border: 1px solid var(--border);
}

.loading-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    animation: loadingFill 2.5s ease-in-out forwards;
}

.loading-dots { color: var(--text-muted); font-size: 0.85rem; }
.loading-dots span { animation: blink 1.4s infinite; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

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

.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { display: flex; }
.logo-text { font-weight: 700; font-size: 1.1rem; color: var(--text-primary); }

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

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    padding: 6px 12px;
    border: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    border-color: var(--border-hover);
    background: rgba(0, 229, 199, 0.05);
}

.btn-cart {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

.btn-cart:hover { border-color: var(--primary); box-shadow: var(--shadow-glow); }

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; padding: 5px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text-primary); }

/* === BUTTONS (BLOCKY) === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary);
    color: #0d1117;
    border-color: var(--primary);
    box-shadow: 4px 4px 0 rgba(0, 229, 199, 0.3);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 229, 199, 0.4);
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0 rgba(0, 229, 199, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
    box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 229, 199, 0.1);
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-elements { position: absolute; inset: 0; pointer-events: none; }

.pixel-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 199, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 199, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.floating-block {
    position: absolute;
    opacity: 0.08;
    animation: floatBlock 8s ease-in-out infinite;
}

.fb-1 { width: 80px; height: 80px; background: var(--primary); top: 15%; right: 10%; }
.fb-2 { width: 60px; height: 60px; background: var(--accent); bottom: 20%; left: 5%; animation-delay: 2s; }
.fb-3 { width: 40px; height: 40px; background: var(--primary); top: 60%; left: 35%; animation-delay: 4s; }

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 229, 199, 0.08);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title { margin-bottom: 20px; }

.title-line { display: block; }
.title-line:first-child { font-size: 2.8rem; font-weight: 700; line-height: 1.1; }
.title-line.accent {
    font-size: 3.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.title-line.small { font-size: 1.3rem; font-weight: 400; color: var(--text-secondary); margin-top: 8px; }

.hero-desc { font-size: 1rem; color: var(--text-muted); margin-bottom: 28px; max-width: 480px; line-height: 1.8; }

.hero-cta { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 36px; }
.stat { text-align: center; }
.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-pixel);
    font-size: 1.2rem;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Hero Visual */
.hero-visual { display: flex; justify-content: center; }
.mascot-card { position: relative; width: 100%; max-width: 380px; }
.anime-mascot {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 229, 199, 0.15));
    animation: floatMascot 5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    transform-origin: 50% 90%;
}
.mascot-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(0, 229, 199, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.float-block-anim { animation: floatBlock 3s ease-in-out infinite; }
.float-block-anim-delay { animation: floatBlock 3s ease-in-out infinite 1s; }

@keyframes floatMascot {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-7px) rotate(-0.6deg); }
    50% { transform: translateY(-11px) rotate(0deg); }
    75% { transform: translateY(-7px) rotate(0.6deg); }
}

/* === BLINKING EYES === */
.eyelid {
    transform-box: fill-box;
    transform-origin: center top;
    transform: scaleY(0);
    animation: blinkEye 5.5s ease-in-out infinite;
}
.eyelid-r { animation-delay: 0.04s; }

@keyframes blinkEye {
    0%, 92%, 100% { transform: scaleY(0); }
    95% { transform: scaleY(1); }
    97% { transform: scaleY(0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: bounce 2s infinite;
}
.scroll-arrow { font-size: 1.1rem; margin-top: 4px; }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

/* === SECTIONS === */
section { padding: 90px 0; position: relative; }

.section-header { text-align: center; margin-bottom: 50px; }

.section-tag {
    display: inline-block;
    font-family: var(--font-pixel);
    font-size: 0.6rem;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: 3px;
}

.section-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; }

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

/* === CATEGORIES === */
.categories { background: var(--bg-section); }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }

.category-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 28px 18px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--border);
    z-index: -1;
    transition: var(--transition);
}

.category-card:hover {
    transform: translate(-3px, -3px);
    border-color: var(--primary);
}

.category-card:hover::after { border-color: var(--primary); opacity: 0.5; }

.category-icon { font-size: 2.2rem; margin-bottom: 12px; }
.category-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.category-card p { font-size: 0.75rem; color: var(--text-muted); }

/* === PRODUCTS === */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.product-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover { transform: translate(-3px, -3px); border-color: var(--primary); box-shadow: 6px 6px 0 rgba(0, 229, 199, 0.1); }

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: var(--primary);
    color: #0d1117;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-badge.hot { background: var(--accent); color: #fff; }
.product-badge.sale { background: #10b981; color: #fff; }

.product-image { position: relative; height: 180px; overflow: hidden; }

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: var(--transition-slow);
}

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

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay { opacity: 1; }

.btn-quick-view {
    background: var(--primary);
    color: #0d1117;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info { padding: 18px; }
.product-category { font-size: 0.7rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.product-name { font-size: 1.05rem; margin: 6px 0; }
.product-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 14px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-weight: 700; font-size: 1.05rem; color: var(--primary); }
.price-old { text-decoration: line-through; color: var(--text-muted); font-size: 0.8rem; font-weight: 400; margin-right: 6px; }

.btn-add-cart {
    background: rgba(0, 229, 199, 0.1);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
}

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

.products-cta { text-align: center; margin-top: 40px; }

/* === TESTIMONIALS === */
.testimonials { background: var(--bg-section); }

.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.testimonial-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 24px;
    transition: var(--transition);
}

.testimonial-card:hover { border-color: var(--primary); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(0, 229, 199, 0.1); }

.testimonial-stars { margin-bottom: 14px; font-size: 0.85rem; }
.testimonial-card p { color: var(--text-secondary); font-style: italic; margin-bottom: 16px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 36px; height: 36px; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: #0d1117; }
.testimonial-author strong { display: block; font-size: 0.85rem; }
.testimonial-author span { font-size: 0.75rem; color: var(--text-muted); }

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-visual { display: flex; justify-content: center; }
.about-image-wrapper {
    width: 280px;
    height: 320px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-content .section-tag, .about-content .section-title { text-align: left; }
.about-content p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.8; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    transition: var(--transition);
}

.feature:hover { border-color: var(--primary); transform: translateX(3px); }
.feature-icon { font-size: 1.2rem; }

/* === NEWSLETTER === */
.newsletter { background: var(--bg-section); text-align: center; }
.newsletter-content { max-width: 550px; margin: 0 auto; }
.newsletter-content p { color: var(--text-muted); margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 0; max-width: 420px; margin: 0 auto; }

.newsletter-input {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-right: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.newsletter-input:focus { border-color: var(--primary); }
.newsletter-input::placeholder { color: var(--text-muted); }
.newsletter-form .btn { border-left: none; }

/* === FOOTER === */
.footer { border-top: 1px solid var(--border); padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 12px; line-height: 1.7; }
.footer-links h4 { font-size: 0.9rem; margin-bottom: 14px; }
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-muted); font-size: 0.8rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.8rem; }

/* === CART DRAWER === */
.cart-overlay { position: fixed; inset: 0; background: rgba(13,17,23,0.7); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 1500; }
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed; top: 0; right: 0; width: 100%; max-width: 380px; height: 100%;
    background: var(--bg-card); border-left: 2px solid var(--border); z-index: 1600;
    display: flex; flex-direction: column; transform: translateX(100%);
    transition: transform 0.3s ease;
}
.cart-drawer.active { transform: translateX(0); }

.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); }
.cart-header h3 { font-size: 1.1rem; }
.cart-close { background: none; color: var(--text-muted); font-size: 1.6rem; transition: var(--transition); }
.cart-close:hover { color: var(--accent); }

.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; padding: 50px 16px; color: var(--text-muted); }
.cart-empty-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.cart-empty p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 4px; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }

.cart-item { display: flex; gap: 12px; padding: 12px; background: var(--bg-section); border: 1px solid var(--border); align-items: center; }
.cart-item-icon { width: 40px; height: 40px; background: var(--bg-card); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 0.8rem; color: var(--primary); font-weight: 600; }
.cart-item-controls { display: flex; align-items: center; gap: 6px; }
.qty-btn { width: 24px; height: 24px; background: rgba(0,229,199,0.1); border: 1px solid var(--border); color: var(--text-primary); font-size: 0.9rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-btn:hover { background: var(--primary); color: #0d1117; }
.cart-item-qty { font-size: 0.8rem; min-width: 18px; text-align: center; }
.cart-item-remove { background: none; color: var(--text-muted); font-size: 1.1rem; transition: var(--transition); }
.cart-item-remove:hover { color: #ef4444; }

.cart-footer { padding: 20px; border-top: 1px solid var(--border); background: var(--bg-section); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cart-total-row span { color: var(--text-muted); }
.cart-total-row strong { font-size: 1.3rem; color: var(--primary); }
.cart-checkout-btn { width: 100%; justify-content: center; }
.cart-note { text-align: center; font-size: 0.7rem; color: var(--text-muted); margin-top: 10px; }

/* === CHECKOUT MODAL === */
.checkout-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: var(--transition); }
.checkout-modal.active { opacity: 1; visibility: visible; }
.checkout-backdrop { position: absolute; inset: 0; background: rgba(13,17,23,0.85); }

.checkout-content {
    position: relative; background: var(--bg-card); border: 2px solid var(--border);
    width: 100%; max-width: 400px; max-height: 90vh; overflow-y: auto;
    padding: 32px 24px; text-align: center;
    transform: scale(0.95); transition: transform 0.3s ease;
}
.checkout-modal.active .checkout-content { transform: scale(1); }
.checkout-close { position: absolute; top: 14px; right: 14px; background: none; color: var(--text-muted); font-size: 1.5rem; }
.checkout-close:hover { color: var(--accent); }
.checkout-state h3 { font-size: 1.2rem; margin-bottom: 6px; }
.checkout-state > p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px; }

.qris-spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; margin: 16px auto 20px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.qris-tag { display: inline-block; background: var(--primary); color: #0d1117; font-size: 0.65rem; font-weight: 700; letter-spacing: 2px; padding: 3px 12px; margin-bottom: 10px; }
.qris-card { background: #fff; padding: 18px; margin-bottom: 14px; }
.qris-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 14px; }
.qris-logos span { font-size: 0.6rem; font-weight: 700; color: #555; background: #f0f0f0; padding: 2px 6px; }
.qris-code { display: flex; align-items: center; justify-content: center; padding: 8px; }
.qris-amount { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #ddd; }
.qris-amount span { display: block; font-size: 0.7rem; color: #888; margin-bottom: 3px; }
.qris-amount strong { font-size: 1.4rem; color: #0d1117; }
.qris-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 14px; flex-wrap: wrap; gap: 6px; }
.qris-order span { color: var(--text-secondary); font-weight: 600; }
.qris-timer { background: rgba(0,229,199,0.1); color: var(--primary); padding: 3px 10px; font-weight: 600; }
.qris-status { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 14px; }
.status-dot { width: 8px; height: 8px; background: var(--primary); animation: statusPulse 1.5s infinite; }
@keyframes statusPulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
.btn-simulate { width: 100%; background: rgba(16,185,129,0.1); border: 1px dashed #10b981; color: #10b981; padding: 9px; font-size: 0.8rem; font-weight: 600; margin-bottom: 10px; transition: var(--transition); }
.btn-simulate:hover { background: #10b981; color: #fff; }
.qris-cancel { background: none; color: var(--text-muted); font-size: 0.8rem; text-decoration: underline; }
.qris-cancel:hover { color: #ef4444; }

.success-check { margin: 8px auto 16px; width: 80px; height: 80px; }
.check-svg { width: 100%; height: 100%; }
.check-circle { fill: none; stroke: #10b981; stroke-width: 4; stroke-dasharray: 226; stroke-dashoffset: 226; animation: drawCircle 0.6s ease forwards; }
.check-mark { fill: none; stroke: #10b981; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: drawCheck 0.4s ease 0.5s forwards; }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.error-icon { font-size: 2.5rem; margin: 8px 0 14px; }

/* === REVEAL === */
.reveal-up, .reveal-left, .reveal-right { opacity: 0; transition: var(--transition-slow); transition-delay: var(--delay, 0s); }
.reveal-up { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-up.revealed, .reveal-left.revealed, .reveal-right.revealed { opacity: 1; transform: translate(0); }

/* === KEYFRAMES === */
@keyframes loadingFill { 0% { width: 0; } 50% { width: 70%; } 100% { width: 100%; } }
@keyframes blink { 0%,20% { opacity:0; } 50% { opacity:1; } 100% { opacity:0; } }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 36px; }
    .hero-content { order: 1; }
    .hero-visual { order: 0; }
    .mascot-card { max-width: 280px; }
    .hero-desc { margin: 0 auto 28px; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .title-line:first-child { font-size: 2.2rem; }
    .title-line.accent { font-size: 2.8rem; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-content .section-tag, .about-content .section-title { text-align: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(13,17,23,0.98); flex-direction: column; padding: 16px; gap: 8px; border-bottom: 1px solid var(--border); }
    .nav-links.active { display: flex; }
    .nav-toggle { display: flex; }
    .hero { padding: 100px 0 50px; min-height: auto; }
    .title-line:first-child { font-size: 1.8rem; }
    .title-line.accent { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .products-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .newsletter-input { border-right: 2px solid var(--border); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .about-features { grid-template-columns: 1fr; }
    .hero-stats { gap: 20px; }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

::selection { background: rgba(0, 229, 199, 0.25); color: var(--text-primary); }


/* === STOCK / SOLD OUT === */
.product-stock-row { margin-bottom: 12px; }

.stock-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border: 1px solid;
}

.stock-badge.in {
    color: var(--primary);
    border-color: var(--border-hover);
    background: rgba(0, 229, 199, 0.08);
}

.stock-badge.out {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

.product-card.sold-out { opacity: 0.7; }

.product-card.sold-out .product-placeholder { filter: grayscale(0.6); }

.sold-out-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    letter-spacing: 1px;
}

.btn-add-cart.disabled {
    background: rgba(107, 123, 141, 0.15);
    border-color: rgba(107, 123, 141, 0.3);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn-add-cart.disabled:hover {
    background: rgba(107, 123, 141, 0.15);
    color: var(--text-muted);
}


/* === THEME TOGGLE CONTROL === */
.theme-control { display: flex; align-items: center; gap: 6px; }

.theme-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}
.theme-btn:hover { border-color: var(--primary); box-shadow: var(--shadow-glow); }

.theme-auto-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0 8px;
    height: 38px;
    transition: var(--transition);
}
.theme-auto-btn:hover { border-color: var(--primary); color: var(--text-secondary); }
.theme-auto-btn.active {
    background: var(--primary);
    color: #0d1117;
    border-color: var(--primary);
}

/* === SPEECH BUBBLE === */
.speech-bubble {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 5;
    background: var(--primary);
    color: #0d1117;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 16px;
    max-width: 200px;
    box-shadow: 4px 4px 0 rgba(0, 229, 199, 0.25);
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: bubbleFloat 3s ease-in-out infinite;
}

.speech-bubble.show { opacity: 1; transform: translateY(0) scale(1); }

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

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

/* === WAVING ARM === */
.waving-arm {
    transform-origin: 250px 320px;
    animation: wave 3s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes wave {
    0%, 45%, 100% { transform: rotate(0deg); }
    55% { transform: rotate(11deg); }
    65% { transform: rotate(-5deg); }
    75% { transform: rotate(11deg); }
    85% { transform: rotate(-4deg); }
    92% { transform: rotate(5deg); }
}

/* ============================================
   LIGHT THEME (landing page)
   ============================================ */
body.light {
    --primary: #00b89c;
    --primary-light: #00d4b5;
    --primary-dark: #009a82;
    --accent: #ff6b35;
    --bg-main: #f4f7f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f4f7;
    --bg-section: #eaeff3;
    --text-primary: #14202c;
    --text-secondary: #3d4d5c;
    --text-muted: #6b7b8d;
    --border: rgba(0, 184, 156, 0.18);
    --border-hover: rgba(0, 184, 156, 0.4);
}

body.light .navbar.scrolled {
    background: rgba(244, 247, 249, 0.95);
}

body.light .pixel-grid {
    background-image:
        linear-gradient(rgba(0, 184, 156, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 184, 156, 0.04) 1px, transparent 1px);
}

body.light .btn-primary {
    color: #ffffff;
}

body.light .btn-quick-view,
body.light .product-badge:not(.hot):not(.sale),
body.light .qris-tag {
    color: #ffffff;
}

body.light .author-avatar { color: #ffffff; }

body.light .loader { background: var(--bg-main); }
body.light .loader-brand { color: var(--primary); }

body.light .anime-mascot {
    filter: drop-shadow(0 16px 32px rgba(0, 184, 156, 0.18));
}

body.light .speech-bubble,
body.light .stock-badge.in { color: #ffffff; }

body.light .stock-badge.in { background: var(--primary); border-color: var(--primary); }
