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


/* ============================================
   TICKER STRIP
   ============================================ */
.ticker-strip {
    background: var(--dark-card);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1001;
    height: 38px;
    display: flex;
    align-items: center;
}

:root[data-theme="light"] .ticker-strip {
    background: #f0faf6;
    border-bottom: 1px solid rgba(34, 211, 160, 0.15);
}

.ticker-track {
    display: inline-flex;
    animation: tickerScroll 20s linear infinite;
    will-change: transform;
}

/* Pause animasi saat disorot kursor */
.ticker-strip:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 3rem;
}

.ticker-item {
    color: #000000;
    text-decoration: none;
    font-size: 0.82rem;
    padding: 0 1rem;
    transition: color 0.2s;
    white-space: nowrap;
}

.ticker-item:hover {
    color: var(--neon-green);
}

.ticker-item s {
    color: #000000;
    margin-right: 4px;
}

:root[data-theme="light"] .ticker-item {
    color: #000000;
}

:root[data-theme="light"] .ticker-item:hover {
    color: #000000;
}

.ticker-sep {
    color: rgba(0, 0, 0, 0.3);
    font-size: 0.8rem;
    padding: 0 0.3rem;
}

:root[data-theme="light"] .ticker-sep {
    color: rgba(0, 180, 45, 0.3);
}

@keyframes tickerScroll {
    0% {
        transform: translateX(100vw);
    }

    100% {
        transform: translateX(-100%);
    }
}

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    /* ── Accent ── */
    --neon-green: #d4d4d4;
    /* Accent - terang untuk dark mode */
    --neon-hover: #e0e0e0;
    /* Accent hover - lebih terang */
    --primary-color: #e0e0e0;
    /* Primary color - terang untuk dark mode */
    --accent-2: #6366f1;
    /* Indigo - kontras elegan */
    --accent-glow: rgba(16, 185, 129, 0.18);

    /* ── Surface ── */
    --dark-bg: #09090b;
    /* Zinc-950 - sangat premium */
    --dark-bg-2: #111115;
    --dark-card: #18181b;

    /* Zinc-900 */
    --dark-card-2: #27272a;
    /* Zinc-800 */
    --dark-elevated: #1c1c1f;

    /* ── Border ── */
    --border-color: rgba(63, 63, 70, 0.7);
    --border-accent: rgba(16, 185, 129, 0.25);
    --border-subtle: rgba(255, 255, 255, 0.04);

    /* ── Text ── */
    --text-light: #e8e8e8;
    /* Zinc-50 - terang untuk dark mode */
    --text-secondary: #a1a1aa;
    /* Zinc-400 */
    --text-muted: #71717a;
    /* Zinc-500 */
    --text-dark: #09090b;

    /* ── Shadows ── */
    --shadow-card: 0 0 0 1px rgba(63, 63, 70, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 0 0 1px rgba(16, 185, 129, 0.3),
        0 8px 32px rgba(16, 185, 129, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-neon: 0 0 0 1px rgba(16, 185, 129, 0.25),
        0 4px 20px rgba(16, 185, 129, 0.15);
    --shadow-button: 0 1px 2px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04);

    /* ── Misc ── */
    --logo-color: #000000;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

:root[data-theme="light"] {
    --neon-green: #0d0d0f;
    --primary-color: #0d0d0f;
    /* Dark for contrast */
    --neon-hover: #047857;
    --accent-2: #4f46e5;
    --accent-glow: rgba(5, 150, 105, 0.12);

    --dark-bg: #ffffff;
    /* Pure white instead of warm white */
    --dark-bg-2: #f8fafc;
    /* Very clean slate instead of gray #f4f4f5 */
    --dark-card: #ffffff;
    --dark-card-2: #ffffff;
    /* Pure white instead of gray #f4f4f5 */
    --dark-elevated: #ffffff;

    --border-color: rgba(228, 228, 231, 0.8);
    --border-accent: rgba(5, 150, 105, 0.2);
    --border-subtle: rgba(0, 0, 0, 0.04);

    --text-light: #0f172a;
    /* Deeper slate instead of raw #09090b */
    --text-secondary: #475569;
    /* Clearer secondary text */
    --text-muted: #94a3b8;
    --text-dark: #fafafa;

    --shadow-card: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 0 0 1px rgba(5, 150, 105, 0.15), 0 8px 32px rgba(5, 150, 105, 0.06), 0 16px 48px rgba(0, 0, 0, 0.06);
    --shadow-neon: 0 0 0 1px rgba(5, 150, 105, 0.1), 0 4px 24px rgba(5, 150, 105, 0.08);
    --shadow-button: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.04);

    --logo-color: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.65;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.1px;
}

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

/* ========== Header ========== */
.header {
    background: rgba(13, 17, 23, 0.85);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(48, 54, 61, 0.5), 0 4px 24px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

:root[data-theme="light"] .header {
    background: rgba(246, 248, 250, 0.88);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 0 rgba(208, 215, 222, 0.5), 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo .highlight {
    color: #000000;
    text-shadow: none;
}

/* Logo gambar auto-responsive — berapapun ukuran upload */
.logo img {
    max-height: 42px;
    /* Batas tinggi = sesuai header */
    max-width: 160px;
    /* Batas lebar agar tidak terlalu lebar */
    width: auto;
    height: auto;
    object-fit: contain;
    /* Tidak distorsi, aspek rasio terjaga */
    display: block;
    transition: opacity 0.2s;
}


/* Mobile: logo sedikit lebih kecil */
@media (max-width: 768px) {
    .logo img {
        max-height: 34px;
        max-width: 120px;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.06);
    text-shadow: none;
}

.header-icons {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.cart-btn {
    position: relative;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.cart-btn:hover {
    background: rgba(34, 211, 160, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: none;
}

.admin-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.admin-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    border-color: rgba(139, 148, 158, 0.5);
    box-shadow: none;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    border-color: rgba(139, 148, 158, 0.5);
    box-shadow: none;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--dark-bg);
    color: var(--text-light);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 0 0 2px var(--dark-card);
}

/* ========== Search Bar (Expandable) ========== */
.search-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    border-color: rgba(139, 148, 158, 0.5);
}

.search-bar-wrap {
    display: none;
    padding: 0.5rem 0 0.65rem;
    position: relative;
}

.search-bar-wrap.active {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

:root[data-theme="light"] .search-input {
    background: #f4f4f5;
    border-color: #e0e0e0;
    color: #111;
}

.search-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.4rem;
    transition: var(--transition);
}

.search-close-btn:hover {
    color: var(--text-light);
}

/* ========== Icon Bar Navigation ========== */
.icon-bar {
    background: var(--dark-card);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.icon-bar::-webkit-scrollbar {
    display: none;
}

:root[data-theme="light"] .icon-bar {
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.icon-bar-track {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0;
    min-width: max-content;
}

.icon-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0.6rem 1.2rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.icon-bar-item i {
    font-size: 1.15rem;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s;
}

.icon-bar-item:hover,
.icon-bar-item.active {
    color: var(--neon-green);
}

.icon-bar-item:hover i,
.icon-bar-item.active i {
    transform: translateY(-2px) scale(1.08);
}

.icon-bar-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2.5px;
    background: var(--neon-green);
    border-radius: 2px;
}

:root[data-theme="light"] .icon-bar-item:hover,
:root[data-theme="light"] .icon-bar-item.active {
    color: #000000;
}

:root[data-theme="light"] .icon-bar-item.active::after {
    background: var(--dark-bg);
}

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Tinggi mengikuti gambar — tidak ada padding/height tetap */
}

.hero-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slides {
    display: flex;
    align-items: flex-start;
    /* Penting: tidak stretch slide ke tinggi tertinggi */
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
}

.hero-slide-img {
    width: 100%;
    height: auto;
    /* Gambar menentukan tinggi sendiri */
    display: block;
    /* Hapus inline whitespace */
    max-width: 100%;
}

/* Bagian Navigator (Panah) agar tetap di tengah gambar */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Bagian Indikator (Titik-titik) agar nempel di atas batas bawah gambar */
.slider-indicators {
    position: absolute;
    bottom: 0px;
    /* Jarak dari bawah gambar */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;

}

:root[data-theme="light"] .hero-slide {
    background-color: #f0f0f0;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(9, 9, 11, 0.75);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.slider-nav:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: var(--shadow-neon);
    transform: translateY(-50%) scale(1.05);
}

.slider-nav.prev {
    left: 30px;
}

.slider-nav.next {
    right: 30px;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition-slow);
}

.indicator.active {
    background: var(--neon-green);
    width: 24px;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

@keyframes slideInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Featured Products Section ========== */
.featured-products {
    padding: 2rem 0;
    background: var(--dark-bg-2);
    border-bottom: 1px solid var(--border-color);
}

/* Sembunyikan section saat grid masih kosong (JS belum load) */
.featured-products:has(#featuredGrid:empty) {
    display: none;
}

:root[data-theme="light"] .featured-products {
    background: var(--dark-bg-2);
    border-bottom: 1px solid var(--border-color);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.product-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

.product-grid .product-card {
    width: 100%;
    max-width: 650px;
    /* Lebar kartu yang ideal agar tidak terlalu melar */
}

/* ============================================
   MODERN CARD SHARED STYLES
   ============================================ */
.product-card,
.featured-card {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

:root[data-theme="light"] .product-card,
:root[data-theme="light"] .featured-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.product-card:hover,
.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-accent);
}

:root[data-theme="light"] .product-card:hover,
:root[data-theme="light"] .featured-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--border-accent);
}

/* Featured card accent */
.featured-card {
    border-color: rgba(34, 211, 160, 0.2);
}

.featured-card:hover {
    box-shadow: var(--shadow-hover);
}

/* ============ Card Image ============ */
.product-image,
.featured-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--dark-bg);
    overflow: hidden;
    position: relative;
}

:root[data-theme="light"] .product-image,
:root[data-theme="light"] .featured-image {
    background: #f5f5f5;
}

.product-image img,
.featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card .product-image {
    aspect-ratio: auto;
}

.product-card:hover .product-image img,
.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

/* ============ Overlay on hover ============ */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.product-overlay .btn-view {
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
}

.product-overlay .btn-view:hover {
    transform: scale(1.05);
}

/* ============ Badges ============ */
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e53935;
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    letter-spacing: 0.3px;
}

.badge-unggulan {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: #FFD700;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============ Card Info ============ */
.product-info,
.featured-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name,
.featured-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-clamp: 2;
    line-clamp: 2;
    line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    color: var(--neon-green);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-description {
    font-size: 0.82rem;
    color: var(--text-secondary, #999);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ Card Footer / Prices ============ */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
}

.product-prices {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.product-price-original,
.featured-price-original {
    font-size: 0.75rem;
    color: #000000;
    text-decoration: line-through;
    font-weight: 400;
    line-height: 1;
}

.product-price,
.featured-price {
    font-size: 1.05rem;
    color: var(--neon-green);
    font-weight: 700;
    line-height: 1.3;
}

.btn-add-cart {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--neon-green), #000000);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.9rem;
    flex-shrink: 0;
    font-weight: 700;
}

.btn-add-cart:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
}

:root[data-theme="light"] .btn-add-cart {
    background: linear-gradient(135deg, #0d0d0f, var(--dark-bg-2));
    color: #ffffff;
}

/* ============ Tags ============ */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.product-tags .tag {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary, #aaa);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.68rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .product-tags .tag {
    background: #f0f0f0;
    color: #000000;
    border: 1px solid #e0e0e0;
}

/* Featured-specific info */
.featured-info .btn-small {
    display: inline-block;
    background: var(--dark-bg);
    color: var(--text-light);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
    align-self: flex-start;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.featured-info .btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    filter: brightness(1.05);
}

/* ========== Hero Section =========== */

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

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #000000;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(16, 185, 129, 0.2);
    letter-spacing: -0.1px;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.4), 0 0 0 1px rgba(16, 185, 129, 0.3);
    filter: brightness(1.05);
}

/* ========== Products Section ========== */
.products {
    padding: 2rem 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #000000, #6366f1);
    border-radius: 99px;
}

.filter-section {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 8px;
    background: var(--dark-card);
    border-radius: 50px;
    /* More rounded pill style */
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.filter-btn:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    background: var(--text-light);
    color: var(--dark-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
}

.filter-btn.active {
    background: var(--dark-bg);
    color: var(--text-light);
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.35), 0 0 0 1px rgba(16, 185, 129, 0.3);
    font-weight: 700;
}

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

/* Product card & featured card styles defined above in MODERN CARD SHARED STYLES */

/* Tags, price-original, product-btn styles defined above in MODERN CARD SHARED STYLES */

/* ========== Modal Styles ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--dark-card);
    border: 2px solid var(--neon-green);
    border-radius: 10px;
    padding: 2rem;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

:root[data-theme="light"] .modal-content {
    background: #ffffff;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 204, 51, 0.2);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--neon-green);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.close-modal:hover {
    transform: rotate(90deg);
}

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

.modal-image {
    position: relative;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.modal-info .category {
    color: var(--neon-green);
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.modal-info .description {
    color: #000000;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.price-section {
    margin-bottom: 2rem;
}

.price {
    font-size: 2rem;
    color: var(--neon-green);
    font-weight: 700;
    text-shadow: 0 0 10px var(--neon-green);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.add-to-cart-btn,
.buy-now-btn {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    text-align: center;
}

.add-to-cart-btn {
    background: var(--neon-green);
    color: var(--dark-bg);
}

.add-to-cart-btn:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.buy-now-btn {
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
}

.buy-now-btn:hover {
    background: var(--neon-green);
    color: var(--dark-bg);
}

/* ========== Cart Sidebar ========== */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--dark-card);
    border-left: 2px solid var(--neon-green);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

:root[data-theme="light"] .cart-sidebar {
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 204, 51, 0.1);
}

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

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

.close-cart {
    background: transparent;
    border: none;
    color: var(--neon-green);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--dark-bg);
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

:root[data-theme="light"] .cart-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--neon-green);
    font-weight: 600;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-empty {
    text-align: center;
    padding: 2rem;
    color: #000000;
}

.cart-summary {
    padding: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.summary-row strong {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--neon-green);
    color: var(--dark-bg);
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-btn:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.checkout-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    box-shadow: none;
}

/* ========== Checkout Modal ========== */
.checkout-modal {
    max-width: 600px;
}

.checkout-form h2 {
    margin-bottom: 1.5rem;
    color: var(--neon-green);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-light);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

:root[data-theme="light"] .form-group input,
:root[data-theme="light"] .form-group select {
    background: #ffffff;
    border: 2px solid var(--border-color);
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: var(--shadow-neon);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

:root[data-theme="light"] .payment-option {
    background: #ffffff;
    border: 2px solid var(--border-color);
}

.payment-option input {
    width: auto;
    margin-right: 1rem;
    cursor: pointer;
}

.payment-option:has(input:checked) {
    border-color: var(--neon-green);
    background: rgba(0, 0, 0, 0.1);
}

.order-summary {
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

:root[data-theme="light"] .order-summary {
    background: var(--dark-bg-2);
}

.order-summary h3 {
    margin-bottom: 1rem;
    color: var(--neon-green);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.summary-total {
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--neon-green);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--neon-green);
    color: var(--dark-bg);
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== Payment Details Container ========== */
.payment-details-container {
    margin: 1rem 0;
}

.pd-detail-title {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

.bank-list {
    display: grid;
    gap: 10px;
}

.bank-card {
    padding: 14px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

:root[data-theme="light"] .bank-card {
    background: #ffffff;
    border-color: var(--border-color);
}

.bank-card:hover {
    border-color: var(--neon-green);
}

.bank-card.selected {
    border-color: var(--neon-green);
    background: rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

.bank-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 4px;
}

.bank-account-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bank-account-number {
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    color: var(--neon-green);
    font-weight: 700;
    margin-top: 6px;
    letter-spacing: 1px;
}

.qris-image {
    max-width: 250px;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
    background: #fff;
}

.qris-hint {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* ========== Upload Payment Proof ========== */
.upload-proof-box {
    margin-top: 8px;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 20px;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--dark-bg);
    color: var(--text-secondary);
}

:root[data-theme="light"] .upload-placeholder {
    background: var(--dark-bg-2);
    border-color: var(--border-color);
}

.upload-placeholder:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.upload-placeholder i {
    font-size: 2rem;
}

.upload-placeholder span {
    font-weight: 600;
    font-size: 0.95rem;
}

.upload-placeholder small {
    font-size: 0.8rem;
    opacity: 0.7;
}

.upload-preview {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.upload-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    border: 2px solid var(--neon-green);
    object-fit: contain;
}

.remove-proof {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ff4444;
    color: var(--text-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
}

.remove-proof:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* ========== Success Modal ========== */
.success-modal {
    text-align: center;
    max-width: 500px;
}

.success-icon {
    font-size: 4rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--neon-green);
}

.success-modal h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--neon-green);
}

.success-modal p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.success-detail {
    color: #000000;
    font-size: 0.9rem;
}

.close-success {
    padding: 1rem 2rem;
    background: var(--neon-green);
    color: var(--dark-bg);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.close-success:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* ========== About Section ========== */
.about {
    padding: 2rem 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.about-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

:root[data-theme="light"] .feature {
    background: #ffffff;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .feature:hover {
    box-shadow: 0 8px 20px rgba(0, 204, 51, 0.15);
}

.feature:hover {
    border-color: var(--neon-green);
    box-shadow: var(--shadow-neon);
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.feature p {
    color: #000000;
    font-size: 0.9rem;
}

/* ========== Contact Section ========== */
.contact {
    padding: 2rem 0;
}

.contact-content {
    margin-top: 1.5rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    background: var(--dark-card);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] .contact-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .contact-item:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.1);
}

.contact-item i,
.contact-item svg {
    font-size: 2rem;
    color: var(--neon-green);
    background: rgba(16, 185, 129, 0.1);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.contact-item:hover i,
.contact-item:hover svg {
    background: var(--neon-green);
    color: var(--dark-bg);
    fill: var(--dark-bg);
    transform: scale(1.05);
}

.contact-item h3 {
    margin-bottom: 0.25rem;
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 700;
}

.contact-item a,
.contact-item p {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-item a:hover {
    color: var(--neon-green);
}

/* ========== Footer ========== */
.footer {
    background: var(--dark-card);
    border-top: 2px solid var(--neon-green);
    padding: 1.5rem 0;
    text-align: center;
    color: #000000;
    transition: var(--transition);
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

:root[data-theme="light"] .footer {
    background: #ffffff;
    border-top: 2px solid var(--border-color);
    color: var(--text-light);
}

/* ========== Responsive Design ========== */

/* === TABLET (769px - 1024px) === */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .nav-links {
        gap: 1.2rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .header-icons {
        gap: 0.8rem;
    }

    /* Hero: tinggi ditentukan oleh gambar slider, tidak ada fixed height */

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.2rem;
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-info {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.5rem;
    }
}

/* === MOBILE LARGE (max 768px) === */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* --- Header --- */
    .nav {
        display: none;
    }

    /* --- Sections --- */
    .featured-products {
        padding: 1rem 0;
    }

    .products {
        padding: 1rem 0;
    }

    /* --- Icon Bar: pindah ke bottom di mobile --- */
    body {
        padding-bottom: 60px;
        /* Space for fixed bottom nav */
    }

    .icon-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: rgba(9, 9, 11, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-color);
        border-bottom: none;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    :root[data-theme="light"] .icon-bar {
        background: rgba(255, 255, 255, 0.92);
        border-top: 1px solid #e8e8e8;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    }

    .icon-bar-track {
        justify-content: space-around;
    }

    .icon-bar-item {
        padding: 0.5rem 0.4rem;
        font-size: 0.6rem;
    }

    .icon-bar-item i {
        font-size: 1.2rem;
    }

    .cart-count {
        top: -4px;
        right: -4px;
    }

    /* --- Hero / Slider --- */
    /* Dengan padding-top trick pada base CSS,
       tidak perlu override apapun di mobile.
       Slider otomatis proporsional di semua ukuran layar. */

    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .slider-nav {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }

    .slider-indicators {
        bottom: 15px;
        gap: 6px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    /* --- Section Titles --- */
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .section-title::after {
        width: 32px;
    }

    /* --- Filter Categories --- */
    .filter-section {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 10px 1.5rem;
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        /* Mask Gradient for Fade Effect */
        -webkit-mask-image: linear-gradient(to right, transparent, black 1.5rem, black calc(100% - 1.5rem), transparent);
        mask-image: linear-gradient(to right, transparent, black 1.5rem, black calc(100% - 1.5rem), transparent);
    }

    .filter-section::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
        border-radius: 50px;
    }

    /* --- Products Grid --- */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    /* --- Product Card --- */
    .product-card,
    .featured-card {
        border-radius: 10px;
    }

    .product-image,
    .featured-image {
        height: 130px;
    }

    .product-info,
    .featured-info {
        padding: 0.55rem 0.65rem;
    }

    .product-name,
    .featured-name {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .product-price,
    .featured-price {
        font-size: 0.88rem;
    }

    .price-original {
        font-size: 0.7rem;
    }

    .product-btn,
    .featured-btn {
        padding: 0.4rem;
        font-size: 0.75rem;
    }

    /* --- Cart Sidebar --- */
    .cart-sidebar {
        width: 100%;
        right: -100%;
        /* ensure content doesn't go behind fixed icon-bar at bottom */
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }

    .cart-summary {
        /* sticky to bottom of sidebar with clearance for icon-bar */
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }

    /* --- Modal --- */
    .modal {
        /* Ensure modal overlay doesn't extend behind the fixed icon-bar */
        height: calc(100% - 70px - env(safe-area-inset-bottom, 0px));
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
        padding: 1.2rem;
        margin: 5vh auto;
    }

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

    .modal-actions {
        flex-direction: column;
        gap: 0.6rem;
    }

    .add-to-cart-btn,
    .buy-now-btn {
        min-width: auto;
        width: 100%;
    }

    /* --- Checkout Modal --- */
    .checkout-modal {
        max-width: 100%;
        max-height: calc(100vh - 70px - env(safe-area-inset-bottom, 0px));
        margin-top: 5vh;
        overflow-y: auto;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }

    .checkout-form h2 {
        font-size: 1.2rem;
    }

    .form-group input,
    .form-group select {
        font-size: 0.9rem;
        padding: 0.65rem;
    }

    .payment-option {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* --- About --- */
    .about {
        padding: 0.75rem 0;
    }

    .about-content {
        margin-bottom: 0.75rem;
    }

    .about-content p {
        font-size: 0.9rem;
    }

    .about-features {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .feature {
        padding: 1rem;
    }

    .feature i {
        font-size: 1.5rem;
    }

    .feature h3 {
        font-size: 0.88rem;
    }

    .feature p {
        font-size: 0.78rem;
    }

    /* --- Contact --- */
    .contact {
        padding: 0.75rem 0;
    }

    .contact-content {
        margin-top: 1rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .contact-item {
        padding: 0.9rem 1rem;
        gap: 0.6rem;
    }

    .contact-item i {
        font-size: 1.1rem;
        width: 44px;
        height: 44px;
    }

    .contact-item h3 {
        font-size: 0.9rem;
    }

    .contact-item a,
    .contact-item p {
        font-size: 0.8rem;
    }

    /* --- Footer --- */
    .footer {
        padding: 0.8rem 0;
        font-size: 0.8rem;
    }

    /* --- Ticker --- */
    .ticker-bar {
        font-size: 0.8rem;
        padding: 6px 0;
    }
}

/* === MOBILE SMALL (max 480px) === */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    /* --- Header tighter --- */
    .header-content {
        padding: 0.6rem 0;
    }

    .logo h1 {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
    }

    .header-icons {
        gap: 0.4rem;
    }

    .admin-btn,
    .theme-toggle,
    .cart-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
        border-width: 1.5px;
    }

    .cart-btn {
        padding: 0.35rem 0.55rem;
        font-size: 0.8rem;
        border-width: 1.5px;
    }

    .menu-toggle {
        font-size: 1.2rem;
    }

    /* --- Hero (padding-top trick auto-scales) --- */

    .hero-content h1 {
        font-size: 1.25rem;
        padding: 0 10px;
    }

    .hero-content p {
        font-size: 0.8rem;
        padding: 0 10px;
    }

    .hero-content .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.85rem;
    }

    .slider-nav {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .slider-nav.prev {
        left: 6px;
    }

    .slider-nav.next {
        right: 6px;
    }

    /* --- Section titles --- */
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }

    /* --- Products --- */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .product-image,
    .featured-image {
        height: 140px;
    }

    .product-info,
    .featured-info {
        padding: 0.6rem;
    }

    .product-name,
    .featured-name {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .product-price,
    .featured-price {
        font-size: 0.88rem;
    }

    .price-original {
        font-size: 0.7rem;
    }

    .product-btn,
    .featured-btn {
        padding: 0.4rem;
        font-size: 0.75rem;
    }

    .product-tags .tag,
    .featured-tags .tag {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .product-badge,
    .featured-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    /* --- Filter scrollable --- */
    .filter-btn {
        padding: 0.35rem 0.8rem;
        font-size: 0.75rem;
    }

    /* --- Modal --- */
    .modal-content {
        width: 98%;
        padding: 1rem;
        margin: 2vh auto;
        max-height: 96vh;
    }

    .modal-close {
        top: 8px;
        right: 8px;
        font-size: 1.2rem;
    }

    /* --- About --- */
    .about {
        padding: 2.5rem 0;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature {
        padding: 1.2rem;
    }

    /* --- Contact --- */
    .contact {
        padding: 2.5rem 0;
    }

    .contact-item {
        padding: 1rem;
        gap: 0.8rem;
    }

    .contact-item i {
        font-size: 1.3rem;
        min-width: 35px;
    }

    /* --- Footer --- */
    .footer {
        padding: 1.2rem 0;
        font-size: 0.8rem;
    }

    /* --- Checkout --- */
    .checkout-form h2 {
        font-size: 1.1rem;
    }

    .order-summary {
        padding: 1rem;
    }

    .submit-btn,
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

/* === VERY SMALL SCREENS (max 360px) === */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 1rem;
    }

    .header-icons {
        gap: 0.3rem;
    }

    .admin-btn,
    .theme-toggle,
    .cart-btn {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
        border-width: 1.5px;
    }

    /* Hero auto-scales via padding-top trick */

    .hero-content h1 {
        font-size: 1.1rem;
    }

    .products-grid,
    .featured-grid {
        gap: 0.5rem;
    }

    .product-image,
    .featured-image {
        height: 120px;
    }

    .product-info,
    .featured-info {
        padding: 0.5rem;
    }

    .product-name,
    .featured-name {
        font-size: 0.72rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .product-price,
    .featured-price {
        font-size: 0.82rem;
    }
}

/* ========== Loading Animation ========== */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* ========== Scrollbar Styling ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-bg);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-section {
    padding: 1rem 0;
    margin-top: 80px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--neon-green);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.breadcrumb span:last-child {
    color: var(--text-secondary);
}

/* ============================================
   PRODUCT DETAIL PAGE — MODERN
   ============================================ */
.product-detail-section {
    padding: 2rem 0 3rem;
    min-height: 60vh;
}

.product-detail-loading,
.product-detail-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.product-detail-error i {
    color: #f44336;
}

.product-detail-error h2 {
    color: var(--text-primary);
}

/* --- Two Column Layout --- */
.pd-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* --- Image Area --- */
.pd-image-wrap {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.03), var(--card-bg));
    border: 1px solid var(--border-color);
}

.pd-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pd-badge {
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(8px);
}

.pd-badge-discount {
    background: rgba(244, 67, 54, 0.9);
    color: var(--text-light);
}

.pd-badge-featured {
    background: rgba(255, 152, 0, 0.9);
    color: var(--text-light);
}

.pd-badge-stock {
    background: rgba(76, 175, 80, 0.85);
    color: var(--text-light);
}

.pd-badge-outstock {
    background: rgba(244, 67, 54, 0.85);
    color: var(--text-light);
}

.pd-image-box {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.25rem;
}

.pd-image-box img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    transition: transform 0.4s ease;
}

.pd-image-box img:hover {
    transform: scale(1.03);
}

/* --- Info Area --- */
.pd-info-wrap {
    display: flex;
    flex-direction: column;
}

.pd-category {
    display: inline-block;
    color: var(--neon-green);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.6rem;
    opacity: 0.85;
}

.pd-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

/* --- Price Box --- */
.pd-price-box {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pd-price-original {
    font-size: 1rem;
    color: #000000;
    text-decoration: line-through;
}

.pd-price-current {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--neon-green);
}

.pd-price-save {
    background: #f44336;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

:root[data-theme="light"] .pd-price-box {
    background: linear-gradient(135deg, rgba(0, 150, 30, 0.06), rgba(0, 150, 30, 0.02));
    border-color: rgba(0, 150, 30, 0.2);
}

/* --- Stock --- */
.pd-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4CAF50;
    margin-bottom: 1.2rem;
}

.pd-stock.out-of-stock {
    color: #f44336;
}

.pd-stock.out-of-stock i::before {
    content: "\f057";
}

.pd-divider {
    height: 1px;
    background: var(--border-color);
    margin-bottom: 1.2rem;
}

/* --- Description Box --- */
.pd-desc-box {
    margin-bottom: 1.2rem;
}

.pd-desc-box h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pd-desc-box h3 i {
    color: var(--neon-green);
    font-size: 0.85rem;
}

.pd-desc-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-line;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    max-height: 250px;
    overflow-y: auto;
}

:root[data-theme="light"] .pd-desc-text {
    background: rgba(0, 0, 0, 0.02);
}

/* --- Tags --- */
.pd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.pd-tags .tag {
    background: rgba(0, 0, 0, 0.08);
    color: var(--neon-green);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.pd-tags .tag:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* --- Actions --- */
.pd-actions {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.pd-btn-cart {
    flex: 1;
    background: var(--neon-green);
    color: var(--dark-bg);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.pd-btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.pd-btn-cart:disabled {
    background: var(--dark-card-2);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pd-btn-cart.added {
    background: #4CAF50;
    color: var(--text-light);
}

.pd-btn-share {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-btn-share:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

/* --- Share Dropdown --- */
.pd-share-dropdown {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    animation: fadeInDown 0.2s ease;
}

.pd-share-option {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.pd-share-option:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Trust Badges --- */
.pd-trust {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.pd-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pd-trust-item i {
    color: var(--neon-green);
    font-size: 0.9rem;
}

/* ============================================
   BEST SELLER SECTION
   ============================================ */
.pd-bestseller-section {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
}

.pd-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.pd-section-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pd-section-header h2 i {
    color: var(--neon-green);
}

.pd-see-all {
    color: var(--neon-green);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: opacity 0.2s;
}

.pd-see-all:hover {
    opacity: 0.8;
}

.pd-bestseller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
}

.pd-bs-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.pd-bs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.3);
}

.pd-bs-card-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--border-color), var(--dark-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    position: relative;
}

.pd-bs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pd-bs-discount {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #f44336;
    color: #000000;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.pd-bs-card-info {
    padding: 0.8rem;
}

.pd-bs-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pd-bs-card-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--neon-green);
}

.pd-bs-card-price-old {
    font-size: 0.78rem;
    color: #000000;
    text-decoration: line-through;
    margin-right: 0.4rem;
}

/* ============================================
   COMMENTS SECTION
   ============================================ */
.pd-comments-section {
    padding: 2.5rem 0 4rem;
    border-top: 1px solid var(--border-color);
}

.pd-comment-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Comment Form */
.pd-comment-form-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.pd-comment-form-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.pd-comment-form-row {
    margin-bottom: 0.8rem;
    position: relative;
}

.pd-comment-form-row input,
.pd-comment-form-row textarea {
    width: 100%;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    resize: vertical;
}

.pd-comment-form-row input:focus,
.pd-comment-form-row textarea:focus {
    outline: none;
    border-color: var(--neon-green);
}

:root[data-theme="light"] .pd-comment-form-row input,
:root[data-theme="light"] .pd-comment-form-row textarea {
    background: #f9f9f9;
}

.pd-char-count {
    position: absolute;
    bottom: 0.5rem;
    right: 0.8rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.pd-btn-comment {
    background: var(--neon-green);
    color: var(--dark-bg);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s;
}

.pd-btn-comment:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.pd-btn-comment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pd-comment-alert {
    margin-top: 0.8rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.pd-comment-alert.success {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.pd-comment-alert.error {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Comments List */
.pd-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pd-comment-item {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.pd-comment-item:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

.pd-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-green), #000000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.pd-comment-body {
    flex: 1;
    min-width: 0;
}

.pd-comment-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.pd-comment-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.pd-comment-time {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Star rating */
.pd-star-filled {
    color: #fbbf24;
    font-size: 0.85rem;
}

.pd-star-empty {
    color: #000000;
    font-size: 0.85rem;
}

.pd-comment-stars {
    display: flex;
    gap: 2px;
}

.pd-star-rating {
    display: flex;
    gap: 4px;
    cursor: pointer;
}

.pd-star-rating i {
    font-size: 1.3rem;
    transition: transform 0.15s;
}

.pd-star-rating i:hover {
    transform: scale(1.2);
}

.pd-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-rating-row label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Avg rating display */
.pd-avg-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.pd-avg-stars {
    display: flex;
    gap: 2px;
}

.pd-avg-stars i {
    font-size: 1rem;
}

.pd-avg-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fbbf24;
}

.pd-avg-count {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.pd-comment-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    word-wrap: break-word;
}

.pd-btn-load-more {
    display: block;
    margin: 1.5rem auto 0;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.7rem 2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pd-btn-load-more:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.pd-no-comments {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-size: 0.9rem;
}

/* ============================================
   PRODUCT DETAIL RESPONSIVE
   ============================================ */
/* === Product Detail Tablet === */
@media (max-width: 1024px) {
    .pd-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* === Product Detail Mobile === */
@media (max-width: 768px) {
    .pd-content {
        display: block !important;
        /* override JS inline style (display:grid/flex) */
        gap: 0;
    }

    .breadcrumb-section {
        padding: 0.4rem 0;
        margin-top: 0;
        /* icon-bar is fixed at bottom on mobile, no need to clear it */
    }

    .product-detail-section {
        padding: 0.5rem 0;
        min-height: 0;
        /* remove 60vh that creates empty space on mobile */
    }

    .breadcrumb {
        font-size: 0.78rem;
    }

    /* ---- Image: full-width hero on mobile ---- */
    .pd-image-wrap {
        border-radius: 8px;
        width: 100%;
    }

    .pd-image-box {
        padding: 0.75rem;
    }

    .pd-image-box img {
        width: 100%;
        height: auto;
        max-height: 260px;
        object-fit: contain;
        display: block;
        border-radius: 6px;
    }

    .pd-badges {
        top: 0.75rem;
        left: 0.75rem;
    }

    .pd-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    /* ---- Info block padding ---- */
    .pd-info-wrap {
        padding: 0.75rem 1rem 1rem;
    }

    .pd-category {
        font-size: 0.72rem;
        letter-spacing: 1.5px;
    }

    .pd-title {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-top: 0.4rem;
    }

    /* ---- Price row wraps on mobile ---- */
    .pd-price-box {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem 0.75rem;
        margin-top: 0.75rem;
    }

    .pd-price-current {
        font-size: 1.35rem;
    }

    .pd-price-original {
        font-size: 0.85rem;
    }

    .pd-price-save {
        font-size: 0.72rem;
        padding: 3px 9px;
    }

    /* ---- Stock ---- */
    .pd-stock {
        font-size: 0.85rem;
        margin-top: 0.6rem;
    }

    /* ---- Description: clamp with "Selengkapnya" button ---- */
    .pd-desc-box {
        margin-top: 1rem;
    }

    .pd-desc-box h3 {
        font-size: 0.92rem;
    }

    .pd-desc-text {
        font-size: 0.875rem;
        line-height: 1.65;
        max-height: 160px;
        overflow: hidden;
        position: relative;
        transition: max-height 0.4s ease;
    }

    .pd-desc-text.expanded {
        max-height: none;
    }

    /* Fade gradient at bottom of clamped desc */
    .pd-desc-text:not(.expanded)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 48px;
        background: linear-gradient(to bottom, transparent, var(--dark-bg));
        pointer-events: none;
    }

    :root[data-theme="light"] .pd-desc-text:not(.expanded)::after {
        background: linear-gradient(to bottom, transparent, #ffffff);
    }

    /* Read more button */
    .pd-desc-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.82rem;
        color: var(--neon-green);
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.4rem 0;
        margin-top: 0.25rem;
        font-weight: 600;
    }

    /* ---- Tags ---- */
    .pd-tags {
        margin-top: 0.75rem !important;
        gap: 0.4rem !important;
    }

    .pd-tags .tag {
        font-size: 0.72rem;
        padding: 4px 10px;
    }


    /* ---- Actions: keep visible on all sizes, sticky bar is just a bonus ---- */
    .pd-actions {
        flex-direction: row;
        gap: 0.75rem;
    }

    .pd-btn-cart {
        font-size: 0.9rem;
        padding: 0.85rem 1rem;
    }

    .pd-btn-share {
        width: 46px;
        height: 46px;
        flex-shrink: 0;
    }

    /* ---- Sticky bottom CTA bar ---- */
    .pd-sticky-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: var(--card-bg);
        border-top: 1px solid var(--border-color);
        padding: 0.8rem 1rem;
        gap: 0.75rem;
        align-items: center;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    }

    .pd-sticky-price {
        flex: 1;
        min-width: 0;
    }

    .pd-sticky-price .sticky-old {
        font-size: 0.72rem;
        color: var(--text-secondary);
        text-decoration: line-through;
        display: block;
    }

    .pd-sticky-price .sticky-new {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-primary);
        white-space: nowrap;
    }

    .pd-sticky-btn {
        background: var(--neon-green);
        color: var(--dark-bg);
        border: none;
        padding: 0.8rem 1.4rem;
        border-radius: 10px;
        font-size: 0.9rem;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        white-space: nowrap;
        transition: transform 0.2s, box-shadow 0.2s;
        flex-shrink: 0;
    }

    .pd-sticky-btn:active {
        transform: scale(0.97);
    }

    .pd-sticky-btn:disabled {
        background: #555;
        color: #999;
        cursor: not-allowed;
    }

    .pd-sticky-share {
        position: relative;
        flex-shrink: 0;
    }

    .pd-sticky-share .pd-btn-share {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    /* Share dropdown: open ABOVE on mobile */
    .pd-share-dropdown {
        bottom: calc(100% + 8px) !important;
        top: auto !important;
        right: 0;
        left: auto !important;
    }

    /* ---- Trust bar: compact 3-col ---- */
    .pd-trust {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .pd-trust-item {
        flex-direction: column;
        text-align: center;
        font-size: 0.75rem;
        gap: 0.25rem;
        padding: 0.6rem 0.4rem;
        background: var(--card-bg);
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }

    .pd-trust-item i {
        font-size: 1.1rem;
    }

    /* ---- Bestseller grid ---- */
    .pd-bestseller-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .pd-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* ---- Comments ---- */
    .pd-comments-section {
        padding: 1.5rem 0 3rem;
    }

    .pd-comment-form-box {
        padding: 1.1rem;
    }

    .pd-comment-item {
        padding: 0.9rem;
    }

    .pd-comment-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.72rem;
    }

    .pd-comment-name {
        font-size: 0.85rem;
    }

    .pd-comment-text {
        font-size: 0.85rem;
    }

    .pd-comment-time {
        font-size: 0.71rem;
    }

    .pd-comment-header {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .pd-star-rating i {
        font-size: 1rem;
    }

    .pd-avg-rating {
        flex-wrap: wrap;
    }
}

/* === Product Detail Small Mobile (≤ 480px) === */
@media (max-width: 480px) {
    .pd-image-box img {
        max-height: 240px;
    }

    .pd-title {
        font-size: 1.1rem;
    }

    .pd-price-current {
        font-size: 1.2rem;
    }

    .pd-category {
        font-size: 0.68rem;
    }

    .pd-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .pd-tags .tag {
        font-size: 0.68rem;
        padding: 3px 8px;
    }

    .pd-trust {
        grid-template-columns: repeat(3, 1fr);
    }

    .pd-bestseller-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .pd-comment-header {
        flex-wrap: wrap;
    }

    .pd-star-filled,
    .pd-star-empty {
        font-size: 0.75rem;
    }
}

/* ========================================
   DARK MODE TEXT VISIBILITY OVERRIDES
   Elemen yang di-hardcode #000000 perlu
   dikembalikan ke warna terang di dark mode
   ======================================== */
:root:not([data-theme="light"]) .ticker-item {
    color: var(--text-secondary);
}

:root:not([data-theme="light"]) .ticker-item s {
    color: var(--text-muted);
}

:root:not([data-theme="light"]) .ticker-sep {
    color: rgba(255, 255, 255, 0.2);
}

:root:not([data-theme="light"]) .hero-content p {
    color: var(--text-secondary);
}

:root:not([data-theme="light"]) .hero-content h1 {
    color: var(--text-light);
}

:root:not([data-theme="light"]) .modal-info .description {
    color: var(--text-secondary);
}

:root:not([data-theme="light"]) .cart-empty {
    color: var(--text-secondary);
}

:root:not([data-theme="light"]) .success-detail {
    color: var(--text-secondary);
}

:root:not([data-theme="light"]) .feature p {
    color: var(--text-secondary);
}

:root:not([data-theme="light"]) .footer-text,
:root:not([data-theme="light"]) footer.footer {
    color: var(--text-secondary);
}

:root:not([data-theme="light"]) .product-price-original,
:root:not([data-theme="light"]) .featured-price-original {
    color: var(--text-muted);
}

:root:not([data-theme="light"]) .pd-price-original {
    color: var(--text-muted);
}

:root:not([data-theme="light"]) .pd-bs-card-price-old {
    color: var(--text-muted);
}

:root:not([data-theme="light"]) .pd-btn-cart:disabled {
    color: var(--text-muted);
}

/* Icon bar hover + active state - dark mode */
:root:not([data-theme="light"]) .icon-bar-item:hover,
:root:not([data-theme="light"]) .icon-bar-item.active {
    color: var(--text-light);
}

:root:not([data-theme="light"]) .icon-bar-item.active::after {
    background: #ffffff;
}







/* ===== LATEST ARTICLES HOME SECTION (PREMIUM & RESPONSIVE) ===== */
/* ===== LATEST ARTICLES HOME SECTION (PREMIUM & RESPONSIVE) ===== */
.latest-articles-home {
    padding: 80px 0;
    background: var(--dark-bg);
    position: relative;
    z-index: 10;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 20px;
}

.section-header-flex .section-title {
    margin-bottom: 0px !important;
    font-size: 32px;
    text-align: left;
    color: var(--text-light);
}

.section-subtitle {
    color: #a1a1aa;
    font-size: 14px;
}

.view-all-link {
    color: var(--primary-color, #00ff41);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color, #00ff41);
    transform: translateY(-2px);
}

.articles-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.article-card-home {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card-home:hover {
    transform: translateY(-12px);
    border-color: var(--primary-color, #00ff41);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.article-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--dark-card-2);
}

.article-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s ease;
}

.article-card-home:hover .article-card-img img {
    transform: scale(1.08);
}

.article-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color, #00ff41);
    color: #000000 !important;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

:root[data-theme="light"] .article-badge {
    color: #ffffff !important;
}

.article-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-content h3 {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 20px 0;
    line-height: 1.5;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #a1a1aa;
}

.read-btn {
    color: var(--primary-color, #00ff41);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .articles-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .latest-articles-home {
        padding: 50px 0;
    }

    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }

    .view-all-link {
        width: 100%;
        justify-content: center;
    }

    .articles-grid-home {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header-flex .section-title {
        font-size: 26px !important;
    }
}

@media (max-width: 480px) {
    .latest-articles-home {
        padding: 40px 0;
    }

    .article-card-content {
        padding: 20px;
    }

    .article-card-content h3 {
        font-size: 17px;
    }
}