/* ============================================================
   SpesialisBaut - Frontend CSS
   Apple-Inspired Premium Industrial Design
   
   MINIMAL. BOLD. PREMIUM. INDUSTRIAL.
   ============================================================ */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray-50: #FAFAFA;
    --color-gray-100: #F5F5F5;
    --color-gray-200: #E8E8ED;
    --color-gray-300: #D2D2D7;
    --color-gray-400: #AEAEB2;
    --color-gray-500: #86868B;
    --color-gray-600: #6E6E73;
    --color-gray-700: #424245;
    --color-gray-800: #2D2D2F;
    --color-gray-900: #1D1D1F;
    --color-green: #1D1D1F;
    --color-green-dark: #000000;
    --color-green-light: #F5F5F7;
    --color-red: #D32F2F;
    --color-blue: #0071E3;
    --color-blue-light: #E3F2FD;
    
    --font-primary: 'SF Pro Display', 'SF Pro Text', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
    
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --radius-full: 9999px;
    
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.03);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.05);
    
    --transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 220ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --max-width: 1120px;
    --header-height: 44px;
    --bottom-nav-height: 60px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

#kontak {
    scroll-margin-bottom: 70px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-gray-900);
    background: var(--color-white) url("../images/bg-mobile.png") center/cover no-repeat fixed;
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: clip;
}

@media (min-width: 769px) {
    body {
        background-image: url("../images/bg-desktop.png");
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--color-green-dark); }

ul, ol { list-style: none; }

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 64px 0;
    background: rgba(255, 255, 255, 0.88);
}

.section--gray {
    background: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 16px;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--color-gray-900);
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--color-gray-500);
    margin-top: 6px;
    font-weight: 400;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-gray-500); }
.text-green { color: var(--color-green); }
.text-small { font-size: 0.85rem; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ============================================================
   HEADER / TOP NAVIGATION
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: saturate(200%) blur(24px);
    -webkit-backdrop-filter: saturate(200%) blur(24px);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
    height: var(--header-height);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--color-green-600);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3), 0 0 0 0.5px var(--color-green-600);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.site-logo-img {
    height: 24px;
    width: auto;
    border-radius: 3px;
    object-fit: contain;
    filter: brightness(1.1);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--color-gray-900);
    color: var(--color-white);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: -0.02em;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo-subtitle {
    font-size: 0.35rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    line-height: 1;
    margin-top: 1px;
}

.logo-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-white);
    text-transform: uppercase;
    display: inline-block;
    line-height: 1.1;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.logo-text strong {
    font-weight: 800;
}

/* Premium logo shimmer: restrained metallic text with a soft green accent. */
.logo-shimmer {
    position: relative;
    display: inline-block;
    font-weight: 900;
    -webkit-text-stroke: 0.15px rgba(255,255,255,0.18);
    color: transparent;
    background: linear-gradient(
        112deg,
        #ffffff 0%,
        #ffffff 34%,
        #d9ffe4 45%,
        #ffffff 52%,
        #b9f6c8 58%,
        #ffffff 70%,
        #ffffff 100%
    );
    background-size: 220% 100%;
    background-position: 120% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.16));
    animation: premiumLogoShimmer 6.5s cubic-bezier(0.22, 0.61, 0.36, 1) infinite,
               premiumLogoGlow 4.5s ease-in-out infinite;
}

/* A fine accent line gives the title a polished, restrained finish. */
.logo-shimmer::after {
    content: "";
    position: absolute;
    left: 2%;
    right: 2%;
    bottom: -3px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(134,239,172,0.8), transparent);
    opacity: 0.65;
    transform: scaleX(0.45);
    transform-origin: center;
    animation: premiumLogoAccent 4.5s ease-in-out infinite;
    pointer-events: none;
}

.logo-shimmer::before {
    content: none;
}

@keyframes premiumLogoShimmer {
    0%, 22% { background-position: 120% 50%; }
    52%, 100% { background-position: -25% 50%; }
}

@keyframes premiumLogoGlow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(255,255,255,0.12)); }
    50% { filter: drop-shadow(0 0 8px rgba(134,239,172,0.24)); }
}

@keyframes premiumLogoAccent {
    0%, 100% { opacity: 0.35; transform: scaleX(0.35); }
    50% { opacity: 0.85; transform: scaleX(0.8); }
}

@media (prefers-reduced-motion: reduce) {
    .logo-shimmer {
        animation: none;
        background-position: 50% 50%;
    }

    .logo-shimmer::after {
        animation: none;
        opacity: 0.55;
        transform: scaleX(0.65);
    }
}

.logo-text-anim {
    display: inline-block;
    animation: logoSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: translateY(6px);
}

@keyframes logoSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
    position: relative;
    padding: 4px 0;
    letter-spacing: -0.01em;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-white);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--color-white);
    border-radius: 1px;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-dropdown-trigger:hover {
    color: var(--color-white);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border: 1px solid var(--color-gray-100);
    padding: 6px 0;
    z-index: 100;
    margin-top: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 6px;
    background: transparent;
}

.nav-dropdown-item {
    display: block;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-gray-700);
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background: var(--color-gray-50);
    color: var(--color-green-600);
}

.nav-dropdown-all {
    border-top: 1px solid var(--color-gray-100);
    margin-top: 4px;
    padding-top: 10px;
    color: var(--color-green-600);
    font-weight: 600;
}

/* Search */
.header-search {
    display: none;
}

.search-toggle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.65);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.search-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

.search-input-wrap {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-search.active .search-toggle {
    opacity: 0;
    pointer-events: none;
}

.header-search.active .search-input-wrap {
    width: 280px;
    opacity: 1;
    pointer-events: auto;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400);
    pointer-events: none;
}

.search-input-wrap input {
    width: 100%;
    height: 40px;
    padding: 0 36px 0 36px;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: var(--color-gray-900);
    outline: none;
}

.search-input-wrap input::placeholder {
    color: var(--color-gray-400);
}

.search-close {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--color-gray-100);
    border-radius: 50%;
    font-size: 1rem;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.search-close:hover {
    background: var(--color-gray-200);
}

/* Header Cart */
.header-cart {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.65);
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-left: 6px;
}

.header-cart:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
}

.header-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #22C55E;
    color: var(--color-white);
    font-size: 0.5rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 4px;
}

@keyframes cartShake {
    0% { transform: rotate(0); }
    15% { transform: rotate(-12deg) scale(1.15); }
    30% { transform: rotate(10deg) scale(1.15); }
    45% { transform: rotate(-8deg) scale(1.1); }
    60% { transform: rotate(6deg) scale(1.1); }
    75% { transform: rotate(-3deg); }
    100% { transform: rotate(0); }
}

.header-cart.shake {
    animation: cartShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes badgePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.header-cart-count.pop {
    animation: badgePop 0.35s ease;
}

.header-search .search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--color-white);
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 200;
    max-height: 380px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.header-search .search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.04);
    transition: background var(--transition-fast);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--color-gray-50); }

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--color-gray-100);
}

.search-result-info h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-gray-900);
}

.search-result-info p {
    font-size: 0.72rem;
    color: var(--color-gray-500);
}

.search-no-result {
    padding: 20px;
    text-align: center;
    color: var(--color-gray-400);
    font-size: 0.82rem;
}

/* ============================================================
   HERO BANNER CAROUSEL
   ============================================================ */
.hero-banner {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
    margin: 8px auto 0;
    max-width: var(--max-width);
    border-radius: 0;
    isolation: isolate;
    transform: translateZ(0); /* cegah flicker backdrop-filter anak */
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-carousel {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.banner-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: stretch;
}

/* Gambar slide — rasio ASLI gambar, tidak ada yang terpotong
   (lebar penuh kartu, tinggi mengikuti rasio asli) */
.banner-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Vignette halus di tepi untuk kesan depth */
.banner-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.16);
}

/* Kilau premium yang melintas perlahan */
.banner-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0.02) 54%, transparent 62%);
    background-size: 300% 100%;
    background-position: 130% 0;
    animation: bannerShine 6.5s ease-in-out infinite;
}

@keyframes bannerShine {
    0%   { background-position: 130% 0; }
    55%  { background-position: -130% 0; }
    100% { background-position: -130% 0; }
}

/* Gradient overlay — hidden when banner images contain their own text/design */
.banner-overlay {
    display: none;
}

.banner-content {
    padding: 0 clamp(24px, 5vw, 80px);
    max-width: 620px;
    width: 100%;
    color: var(--color-white);
}

.banner-content h2 {
    font-size: clamp(1.5rem, 4.2vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 12px;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* Green accent text inside banner title — matches the green highlight in the design */
.banner-content h2 .accent-green {
    color: #4ADE80;
    text-shadow: 0 0 30px rgba(74, 222, 128, 0.3);
}

.banner-content p {
    font-size: clamp(0.78rem, 1.3vw, 1rem);
    opacity: 0.85;
    margin-bottom: 24px;
    max-width: 400px;
    line-height: 1.55;
    font-weight: 400;
    letter-spacing: -0.005em;
}

/* CTA Button inside banner — green background matching the design images */
.banner-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: #22C55E;
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}

.banner-content .btn:hover {
    background: #16A34A;
    box-shadow: 0 6px 28px rgba(34, 197, 94, 0.45);
    transform: translateY(-1px);
    color: var(--color-white);
}

.banner-content .btn svg {
    width: 16px;
    height: 16px;
}

/* Bottom feature bar — hidden when banner images contain their own feature strip */
.banner-features {
    display: none;
}

.banner-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 clamp(10px, 2vw, 28px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
}

.banner-feature-item:last-child {
    border-right: none;
}

.banner-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.15);
    color: #4ADE80;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.banner-feature-icon svg {
    width: 14px;
    height: 14px;
}

.banner-feature-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.banner-feature-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.banner-feature-desc {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    line-height: 1.3;
}

/* Navigation dots — glass pill melayang di dalam banner, dengan progress sinkron autoplay */
.banner-nav {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    background: rgba(12, 12, 12, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-full);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    z-index: 10;
}

.banner-dot {
    position: relative;
    width: 22px;
    height: 6px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    overflow: hidden;
    border: none;
    padding: 0;
    transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.45);
}

.banner-dot.active {
    background: rgba(255, 255, 255, 0.25);
    width: 36px;
}

/* Progress bar di dot aktif — sinkron dengan autoplay 5 detik */
.banner-dot.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--color-white);
    transform-origin: left center;
    animation: bannerProgress 5s linear forwards;
}

@keyframes bannerProgress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Navigation arrows — glass premium, muncul saat kursor menyentuh banner */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    backdrop-filter: blur(14px) saturate(1.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 0.35s ease, background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hero-banner:hover .banner-arrow {
    opacity: 1;
}

.banner-arrow:hover {
    background: rgba(10, 10, 10, 0.55);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.06);
}

.banner-arrow:active {
    transform: translateY(-50%) scale(0.97);
}

.banner-arrow.prev { left: 18px; }
.banner-arrow.next { right: 18px; }

/* Hormati preferensi pengguna yang mematikan animasi */
@media (prefers-reduced-motion: reduce) {
    .banner-slide::after { animation: none; background: none; }
    .banner-dot.active::after { animation: none; transform: scaleX(1); }
}

/* ============================================================
   SEARCH BAR (below banner)
   ============================================================ */
.search-bar-section {
    padding: 20px 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-100);
}

.search-bar-wrap {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-gray-50);
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-full);
    padding: 0 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.search-bar-wrap:focus-within {
    border-color: var(--color-gray-900);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.08);
    transform: scale(1.02);
}

.search-bar-icon {
    flex-shrink: 0;
    color: var(--color-gray-400);
    transition: color 0.3s ease, transform 0.3s ease;
}

.search-bar-wrap:focus-within .search-bar-icon {
    color: var(--color-gray-900);
    transform: scale(1.1);
}

.search-bar-icon {
    flex-shrink: 0;
    color: var(--color-gray-400);
}

.search-bar-input {
    flex: 1;
    height: 48px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--color-gray-900);
    outline: none;
    padding: 0 12px;
}

.search-bar-input::placeholder {
    color: var(--color-gray-400);
}

.search-bar-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--color-white);
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 200;
    max-height: 380px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.search-bar-results.active {
    display: block;
}

/* ============================================================
   CATEGORY CAROUSEL
   ============================================================ */
.category-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 8px;
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    text-align: center;
    padding: 16px 20px 14px;
    background: linear-gradient(145deg, #ffffff, #f8faf8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    min-width: 76px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.category-card:hover {
    background: linear-gradient(145deg, #f0faf3, #e8f5eb);
    border-color: var(--color-green-400);
    box-shadow: 0 4px 16px rgba(34, 139, 87, 0.12);
    transform: translateY(-3px);
}

.category-card:active {
    transform: scale(0.95);
}

.category-card .cat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-green-50), #d1fae5);
    color: var(--color-green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
}

.category-card:hover .cat-icon {
    background: linear-gradient(135deg, var(--color-green-100), var(--color-green-200));
    transform: scale(1.1);
}

.category-card .cat-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-gray-800);
    white-space: nowrap;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* ============================================================
   CATEGORY LIST (Level 1 & 2)
   ============================================================ */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-list-item {
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    background: var(--color-white);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.category-list-item:hover {
    box-shadow: var(--shadow-sm);
}

.category-list-parent {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--color-gray-900);
    transition: background 0.15s;
}

.category-list-parent:hover {
    background: var(--color-gray-50);
}

.category-list-name {
    flex: 1;
    font-weight: 700;
    font-size: 0.95rem;
}

.category-list-count {
    font-size: 0.75rem;
    color: var(--color-gray-400);
    font-weight: 500;
}

.category-list-parent svg {
    color: var(--color-gray-300);
    flex-shrink: 0;
}

.category-list-subs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 16px 12px;
}

.category-list-sub {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.78rem;
    color: var(--color-gray-600);
    text-decoration: none;
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-sm);
    margin: 0 4px 4px 0;
    transition: all 0.15s;
    background: var(--color-gray-50);
}

.category-list-sub:hover,
.category-list-sub.cat-active {
    background: var(--color-green-50, #f0fdf4);
    border-color: var(--color-green-200, #bbf7d0);
    color: var(--color-green-700, #15803d);
    font-weight: 600;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--color-white);
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: var(--shadow-xs);
}

.product-card:hover {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card .product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-gray-50);
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-card .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #22C55E;
    color: var(--color-white);
}

.product-card .product-badge.badge-promo { background: #16A34A; }
.product-card .product-badge.badge-baru { background: #4ADE80; }
.product-card .product-badge.badge-stok-habis { background: var(--color-gray-500); }

.product-card .product-info {
    padding: 14px 14px 16px;
}

.product-card .product-category {
    font-size: 0.65rem;
    color: var(--color-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 3px;
}

.product-card .product-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-gray-900);
    line-height: 1.3;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.product-card .product-sku {
    font-size: 0.68rem;
    color: var(--color-gray-400);
    font-family: var(--font-mono);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.product-card .product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-gray-900);
    letter-spacing: -0.02em;
}

.product-card .product-price-from {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--color-gray-400);
}

.product-card .product-price-hidden {
    font-size: 0.78rem;
    color: var(--color-gray-700);
    font-weight: 600;
}

/* ============================================================
   BRAND CAROUSEL
   ============================================================ */
.brand-scroll {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: center;
    padding: 12px 0;
}

.brand-scroll::-webkit-scrollbar { display: none; }

.brand-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    opacity: 0.35;
    transition: opacity var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
}

.brand-item:hover { opacity: 1; }

.brand-item img {
    max-height: 32px;
    max-width: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter var(--transition-normal);
}

.brand-item:hover img { filter: grayscale(0%); }

/* Brands Auto-Scroll Carousel */
.brands-section {
    overflow: hidden;
    padding: 50px 0;
}

.brands-track-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.brands-track {
    display: flex;
    gap: 70px;
    align-items: center;
    width: max-content;
    animation: brandsScroll 25s linear infinite;
}

.brands-track:hover {
    animation-play-state: paused;
}

@keyframes brandsScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 110px;
    padding: 15px 30px;
    transition: transform 0.3s ease;
}

.brand-logo-item:hover {
    transform: scale(1.1);
}

.brand-logo-item img {
    max-height: 100px;
    max-width: 180px;
    object-fit: contain;
}

.brand-item .brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-gray-400);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.brand-item:hover .brand-name { color: var(--color-gray-900); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--color-gray-900);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-gray-800);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-green {
    background: var(--color-green);
    color: var(--color-white);
}

.btn-green:hover {
    background: var(--color-green-dark);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-gray-600);
    border: 0.5px solid var(--color-gray-300);
}

.btn-outline:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-400);
    color: var(--color-gray-900);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--color-white);
}

.btn-whatsapp:hover {
    background: #1DA851;
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-lg { padding: 14px 28px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 0.75rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--color-white);
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.card-header {
    padding: 18px 20px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.04);
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card-body { padding: 20px; }

/* ============================================================
   COMPANY INFO
   ============================================================ */
.company-info {
    background: var(--color-gray-50);
    border-top: 0.5px solid var(--color-gray-200);
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.company-col h3 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-400);
    margin-bottom: 14px;
}

.company-col p,
.company-col a,
.company-col span {
    font-size: 0.82rem;
    color: var(--color-gray-600);
    line-height: 1.7;
    display: block;
}

.company-col a:hover { color: var(--color-green-dark); }

.company-col .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.company-col .contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-gray-400);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-gray-900);
    color: var(--color-gray-400);
    padding: 48px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-brand-row .footer-logo {
    width: 36px;
    height: 36px;
    background: var(--color-gray-700);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--color-white);
    flex-shrink: 0;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-text {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.footer-logo-sub {
    font-size: 0.55rem;
    font-weight: 500;
    color: var(--color-gray-500);
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.footer-brand .footer-logo {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.footer-brand p {
    font-size: 0.78rem;
    line-height: 1.65;
    margin-bottom: 14px;
    color: var(--color-gray-500);
}

.footer-col h4 {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-500);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: 0.78rem;
    color: var(--color-gray-400);
    padding: 3px 0;
    transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--color-white); }

.footer-bottom {
    border-top: 0.5px solid rgba(255,255,255,0.08);
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--color-gray-500);
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a { color: var(--color-gray-500); }
.footer-social a:hover { color: var(--color-white); }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail { padding: 32px 0; }

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.gallery-main {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-gray-50);
    border: 0.5px solid rgba(0, 0, 0, 0.06);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--transition-fast);
    background: var(--color-gray-50);
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--color-gray-900);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 8px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.product-meta span {
    font-size: 0.78rem;
    color: var(--color-gray-500);
}

.product-meta strong {
    color: var(--color-gray-700);
    font-weight: 600;
}

.detail-price {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
}

.detail-price .price-main {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-gray-900);
    letter-spacing: -0.03em;
}

.detail-price .price-label {
    font-size: 0.78rem;
    color: var(--color-gray-500);
    display: block;
    margin-bottom: 2px;
}

/* Catatan grosir via WhatsApp (detail produk) */
.wa-grosir-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 7px 12px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 500;
    color: #128C4B;
    transition: all var(--transition-fast);
}

.wa-grosir-note:hover {
    background: rgba(37, 211, 102, 0.18);
    border-color: #25D366;
    color: #0F7A40;
}

.wa-grosir-note svg { flex-shrink: 0; }

/* Variant Selection */
.variant-section { margin-bottom: 16px; }

.variant-section label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-gray-700);
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.variant-option {
    padding: 7px 14px;
    border: 0.5px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--color-white);
}

.variant-option:hover { border-color: var(--color-gray-900); }

.variant-option.active {
    border-color: var(--color-gray-900);
    background: var(--color-gray-900);
    color: var(--color-white);
}

.variant-stock {
    margin-top: 8px;
    font-size: 0.72rem;
    color: var(--color-gray-500);
}

/* Quantity */
.qty-section {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.qty-section label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-gray-700);
    flex-shrink: 0;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 0.5px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--color-gray-50);
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-gray-700);
    transition: background var(--transition-fast);
}

.qty-btn:hover { background: var(--color-gray-200); }

.qty-input {
    width: 52px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 0.5px solid var(--color-gray-300);
    border-right: 0.5px solid var(--color-gray-300);
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    font-family: var(--font-mono);
}

.qty-unit {
    font-size: 0.78rem;
    color: var(--color-gray-500);
}

/* Subtotal */
.subtotal-section {
    padding: 14px;
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 0.5px solid rgba(0, 0, 0, 0.04);
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.subtotal-row.total {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 0.5px solid var(--color-gray-200);
    letter-spacing: -0.02em;
}

/* Action buttons */
.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 0.5px solid var(--color-gray-100);
}

.specs-table tr:last-child { border-bottom: none; }

.specs-table td {
    padding: 9px 0;
    font-size: 0.82rem;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--color-gray-600);
    width: 150px;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    padding: 12px 0;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    color: var(--color-gray-400);
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 3px;
    color: var(--color-gray-300);
}

.breadcrumb a { color: var(--color-gray-400); }
.breadcrumb a:hover { color: var(--color-green-dark); }
.breadcrumb li:last-child {
    color: var(--color-gray-700);
    font-weight: 500;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-inner {
    display: flex;
    gap: 4px;
}

.pagination-btn {
    padding: 7px 12px;
    border: 0.5px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-600);
    transition: all var(--transition-fast);
}

.pagination-btn:hover {
    border-color: var(--color-gray-400);
    color: var(--color-gray-900);
}

.pagination-btn.active {
    background: var(--color-gray-900);
    border-color: var(--color-gray-900);
    color: var(--color-white);
}

.pagination-dots {
    padding: 7px 6px;
    font-size: 0.75rem;
    color: var(--color-gray-400);
}

/* ============================================================
   CART
   ============================================================ */
.cart-page {
    padding: 32px 0 100px;
}

.cart-empty {
    text-align: center;
    padding: 50px 20px;
}

.cart-empty h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.cart-empty p {
    color: var(--color-gray-500);
    margin-bottom: 20px;
    font-size: 0.88rem;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 0.5px solid var(--color-gray-100);
}

.cart-item-image {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-gray-50);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.cart-item-variant {
    font-size: 0.72rem;
    color: var(--color-gray-500);
    margin-bottom: 6px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-item-price {
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.cart-item-remove {
    color: var(--color-gray-400);
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    transition: color var(--transition-fast);
}

.cart-item-remove:hover { color: var(--color-red); }

.cart-summary {
    margin-top: 20px;
    padding: 20px;
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    border: 0.5px solid rgba(0, 0, 0, 0.04);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */
.search-header {
    padding: 28px 0;
    border-bottom: 0.5px solid var(--color-gray-200);
}

.search-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.search-header .search-count {
    color: var(--color-gray-500);
    font-size: 0.82rem;
    margin-top: 3px;
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-hero {
    padding: 40px 0 28px;
    background: var(--color-gray-50);
    border-bottom: 0.5px solid var(--color-gray-200);
}

.category-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.category-hero p {
    color: var(--color-gray-500);
    margin-top: 6px;
    max-width: 560px;
    font-size: 0.88rem;
}

/* ============================================================
   MOBILE BOTTOM NAVIGATION — Premium Glassmorphism Floating
   ============================================================ */
/* Bottom nav floating bob animation */
@keyframes navFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    height: auto;
    padding-bottom: env(safe-area-inset-bottom, 4px);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: saturate(200%) blur(24px) brightness(1.1);
    -webkit-backdrop-filter: saturate(200%) blur(24px) brightness(1.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    z-index: 100;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    animation: navFloat 4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

.bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px 4px 4px;
    gap: 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--color-gray-500);
    padding: 6px 0;
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease, transform 0.2s ease;
    letter-spacing: -0.01em;
    border-radius: 14px;
    min-width: 0;
    flex: 1;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    background: transparent;
    border: none;
    box-shadow: none;
}

.bottom-nav-item:active {
    transform: scale(0.92);
    opacity: 0.8;
}

.bottom-nav-item:hover {
    color: var(--color-green-600);
}

.bottom-nav-item.active {
    color: var(--color-green-600);
    background: rgba(27, 94, 32, 0.08);
    border-radius: 14px;
    box-shadow: none;
}

.bottom-nav-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--color-green-500);
    border-radius: 0 0 4px 4px;
}

/* WhatsApp CTA — premium order action with a subtle typing cue. */
.whatsapp-cta {
    color: #16a34a !important;
    background: transparent !important;
    border-radius: 14px;
    box-shadow: none;
    overflow: visible;
}

.whatsapp-order-label {
    position: absolute;
    top: -23px;
    left: 50%;
    width: max-content;
    max-width: 82px;
    transform: translateX(-50%);
    padding: 4px 8px;
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #15803d;
    box-shadow: 0 5px 16px rgba(22, 163, 74, 0.14), inset 0 1px 0 rgba(255,255,255,0.9);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.1;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    clip-path: inset(0 100% 0 0 round 999px);
    animation: orderTyping 5s steps(12, end) infinite;
}

.whatsapp-order-label::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 0.75em;
    margin-left: 3px;
    vertical-align: -1px;
    background: currentColor;
    animation: orderCaret 0.75s step-end infinite;
}

.whatsapp-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 50%;
    background: linear-gradient(145deg, #25d366, #128c7e);
    color: #fff;
    box-shadow: 0 5px 14px rgba(18, 140, 126, 0.28), 0 0 0 4px rgba(37, 211, 102, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-icon::before {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: inherit;
    animation: whatsappPulse 2.4s ease-out infinite;
    pointer-events: none;
}

.whatsapp-cta svg {
    width: 17px;
    height: 17px;
    transition: transform 0.25s ease;
}

.whatsapp-cta:hover .whatsapp-icon,
.whatsapp-cta:focus-visible .whatsapp-icon {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 20px rgba(18, 140, 126, 0.34), 0 0 0 5px rgba(37, 211, 102, 0.1);
}

.whatsapp-cta:active .whatsapp-icon {
    transform: scale(0.88);
}

@keyframes orderTyping {
    0%, 8% { opacity: 0; clip-path: inset(0 100% 0 0 round 999px); }
    12%, 48% { opacity: 1; clip-path: inset(0 0 0 0 round 999px); }
    55%, 100% { opacity: 0; clip-path: inset(0 100% 0 0 round 999px); }
}

@keyframes orderCaret {
    0%, 45% { opacity: 1; }
    46%, 100% { opacity: 0; }
}

@keyframes whatsappPulse {
    0% { opacity: 0.65; transform: scale(0.82); }
    70%, 100% { opacity: 0; transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-order-label,
    .whatsapp-order-label::after,
    .whatsapp-icon::before {
        animation: none;
    }

    .whatsapp-order-label {
        opacity: 1;
        clip-path: inset(0 round 999px);
    }
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    stroke-width: 1.8;
}

.bottom-nav-item.active svg {
    transform: none;
}

/* ============================================================
   KATEGORI POPUP — Glassmorphism
   ============================================================ */
.kategori-popup {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 50vh;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(200%) blur(24px) brightness(1.05);
    -webkit-backdrop-filter: saturate(200%) blur(24px) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    overflow: hidden;
    z-index: 101;
    animation: kategoriSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.kategori-popup.active {
    display: block;
}

@keyframes kategoriSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kategori-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.kategori-popup-header span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

.kategori-popup-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--color-gray-400);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}

.kategori-popup-close:hover {
    color: var(--color-gray-700);
}

.kategori-popup-list {
    overflow-y: auto;
    max-height: calc(50vh - 50px);
    padding: 6px 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.kategori-popup-item {
    display: block;
    padding: 10px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-gray-700);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kategori-popup-item:hover,
.kategori-popup-item:active {
    background: rgba(27, 94, 32, 0.08);
    color: var(--color-green-600);
}

/* Kategori expand/collapse */
.kategori-popup-parent {
    grid-column: 1 / -1;
}

.kategori-expand-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gray-800);
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.kategori-expand-btn:hover {
    background: rgba(27, 94, 32, 0.05);
}

.kategori-expand-btn svg {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.kategori-expand-btn.active svg {
    transform: rotate(180deg);
}

.kategori-sub-list {
    display: none;
    padding: 0 0 4px 12px;
    grid-column: 1 / -1;
}

.kategori-sub-list.active {
    display: block;
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.kategori-parent-link {
    font-size: 0.75rem;
    color: var(--color-green-600) !important;
    font-weight: 600;
}

/* ============================================================
   FLOATING WHATSAPP BUTTON (Desktop)
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: all var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: var(--color-white);
}

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */
.home-products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 12px;
}

.home-products-header .view-all {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-gray-600);
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.home-products-header .view-all:hover { color: var(--color-gray-900); }

/* Product carousel for featured */
.products-scroll-wrap {
    position: relative;
    margin: 0 -20px;
}

.products-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48px;
    background: linear-gradient(90deg, transparent, var(--color-white));
    pointer-events: none;
    z-index: 2;
}

.products-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 20px 12px;
    cursor: grab;
}

.products-scroll:active { cursor: grabbing; }

.products-scroll::-webkit-scrollbar { display: none; }

.products-scroll .product-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
}

/* Mobile Menu (removed - clean header) */
.mobile-menu-btn { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 769px) {
    .hero-banner {
        border-radius: var(--radius-xl);
        width: calc(100% - 48px);
        margin-top: 14px;
        box-shadow:
            0 30px 70px -22px rgba(0, 0, 0, 0.35),
            0 12px 28px -12px rgba(0, 0, 0, 0.18),
            0 0 0 1px rgba(0, 0, 0, 0.05);
    }
    /* Tinggi mengikuti rasio asli gambar — tanpa crop */
    .hero-banner img {
        height: auto;
    }
}

@media (max-width: 1024px) {
    .product-detail-grid { gap: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .company-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --header-height: 48px; }
    
    .main-nav { display: none; }
    
    .header-search {
        max-width: none;
        flex: 1;
        justify-content: flex-end;
    }
    
    .header-search.active .search-input-wrap {
        width: 220px;
    }
    
    .banner-arrow { display: none; }
    .hero-banner {
        border-radius: 16px;
        width: calc(100% - 20px);
        margin: 10px auto 0;
        box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(0, 0, 0, 0.04);
    }
    /* Tinggi mengikuti rasio asli gambar — tanpa crop */
    .banner-slide img { height: auto; }
    /* Nav mobile: bar tipis di BAWAH gambar, tidak menutupi banner */
    .banner-nav {
        position: static;
        transform: none;
        width: 100%;
        gap: 5px;
        padding: 9px 0;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }
    .banner-dot { width: 16px; height: 5px; }
    .banner-dot.active { width: 26px; }
    .search-bar-section { padding: 14px 0; }
    .search-bar-input { height: 42px; font-size: 0.85rem; }
    
    .section { padding: 40px 0; }
    .section-title { font-size: 1.25rem; }
    .section-header { margin-bottom: 28px; }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card .product-info { padding: 10px; }
    .product-card .product-name { font-size: 0.78rem; }
    .product-card .product-price { font-size: 0.85rem; }
    .product-card .product-category { font-size: 0.58rem; }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-detail-info h1 { font-size: 1.35rem; }
    .detail-price .price-main { font-size: 1.35rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .bottom-nav { display: block; }
    .whatsapp-float { display: none; }
    .cart-page { padding-bottom: 100px; }
    .company-grid { grid-template-columns: 1fr; gap: 20px; }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .category-card { min-width: 64px; padding: 12px 12px 10px; }
    .cart-item { flex-wrap: wrap; }
    .qty-section { flex-wrap: wrap; }
    .hero-banner { width: calc(100% - 16px); }
    .banner-nav { padding: 8px 0; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.35s ease forwards; }

/* ============================================================
   GRID LAYOUT HELPER
   ============================================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 {
    text-align: center;
    padding: 72px 20px;
}

.page-404 h1 {
    font-size: 5rem;
    font-weight: 700;
    color: var(--color-gray-200);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-404 p {
    font-size: 1.1rem;
    color: var(--color-gray-600);
    margin: 14px 0 28px;
}
