/* ============================================
   JASAPANDA - MODERN E-COMMERCE v3.0
   Style: Tokopedia/Shopee Premium
   ============================================ */

:root {
    /* COLORS */
    --primary:        #6366f1;
    --primary-dark:   #4f46e5;
    --primary-light:  #a5b4fc;
    --primary-50:     #eef2ff;
    --primary-100:    #e0e7ff;
    
    --accent:         #fbbf24;
    --accent-dark:    #f59e0b;
    --accent-light:   #fef3c7;
    
    --success:        #10b981;
    --success-light:  #d1fae5;
    --danger:         #ef4444;
    --danger-light:   #fee2e2;
    --warning:        #f59e0b;
    --info:           #3b82f6;
    
    --love:           #ec4899;
    --love-light:     #fce7f3;
    
    /* GRAY */
    --white:    #ffffff;
    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* SHADOWS */
    --shadow-sm:  0 1px 2px rgba(0,0,0,0.04);
    --shadow:     0 2px 6px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg:  0 10px 25px rgba(0,0,0,0.10);
    --shadow-xl:  0 20px 40px rgba(0,0,0,0.12);
    --shadow-primary: 0 8px 20px rgba(99,102,241,0.25);
    
    /* RADIUS */
    --radius-sm:  6px;
    --radius:     10px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-full: 9999px;
    
    /* SPACING */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    
    /* TRANSITIONS */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* LAYOUT */
    --container-max: 1280px;
    --header-height: 64px;
    --topbar-height: 36px;
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* CONTAINER */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

/* ============================================
   TOP BAR (Promo strip)
   ============================================ */
.top-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 8px 0;
    font-size: 12.5px;
    overflow: hidden;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.top-bar-promo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.top-bar-links {
    display: flex;
    gap: var(--space-5);
}

.top-bar-links a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    transition: var(--transition);
}

.top-bar-links a:hover { color: white; }

/* ============================================
   HEADER (Sticky)
   ============================================ */
.header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-height);
    gap: var(--space-5);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: var(--shadow-primary);
}

.logo-text { line-height: 1.2; }

.logo-text h1 {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.3px;
}

.logo-text span {
    font-size: 10px;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Bar Header (Sticky) */
.search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: var(--transition);
    overflow: hidden;
}

.search-input-wrap:focus-within {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

.search-input {
    flex: 1;
    height: 42px;
    padding: 0 var(--space-4) 0 44px;
    border: none;
    background: transparent;
    font-size: 13.5px;
    color: var(--gray-900);
    outline: none;
}

.search-input::placeholder { color: var(--gray-400); }

.search-icon-left {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
    font-size: 14px;
}

.search-btn {
    height: 42px;
    padding: 0 var(--space-5);
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
}

.search-btn:hover { background: var(--primary-dark); }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-action {
    width: 42px;
    height: 42px;
    background: var(--gray-50);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    position: relative;
    transition: var(--transition);
}

.header-action:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.header-action-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid white;
}

.header-action.wishlist {
    color: var(--love);
}

.header-action.wishlist:hover {
    background: var(--love-light);
}

/* ============================================
   HERO CAROUSEL/SLIDER
   ============================================ */
.hero-section {
    background: var(--white);
    padding: var(--space-6) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-4);
}

/* Main Slider */
.hero-slider {
    position: relative;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--space-10);
    overflow: hidden;
}

.slide-1 { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.slide-2 { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
.slide-3 { background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%); }

.slide::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.slide-content {
    flex: 1;
    color: white;
    z-index: 2;
    position: relative;
    max-width: 60%;
}

.slide-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
}

.slide-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-3);
    letter-spacing: -1px;
}

.slide-desc {
    font-size: 15px;
    opacity: 0.95;
    margin-bottom: var(--space-5);
    line-height: 1.5;
    max-width: 400px;
}

.slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--gray-900);
    padding: 12px 26px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.slide-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.slide-emoji {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 200px;
    line-height: 1;
    opacity: 0.95;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: var(--space-5);
    left: var(--space-10);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 32px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: white;
    width: 48px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.slider-arrow:hover {
    background: white;
    color: var(--gray-900);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* Side Banners */
.hero-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: var(--space-4);
}

.side-banner {
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.side-banner:hover { transform: translateY(-4px); }

.side-banner-1 { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.side-banner-2 { background: linear-gradient(135deg, var(--love), #db2777); }

.side-banner-content { z-index: 2; }
.side-banner-content small {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.side-banner-content h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 4px 0 8px;
    line-height: 1.2;
}

.side-banner-content span {
    font-size: 12px;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.side-banner-emoji {
    font-size: 60px;
    opacity: 0.9;
}

/* ============================================
   CATEGORY QUICK ACCESS
   ============================================ */
.category-quick {
    background: white;
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--gray-100);
}

.category-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: var(--space-3);
}

.category-quick-item {
    text-align: center;
    padding: var(--space-3);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.category-quick-item:hover {
    background: var(--primary-50);
    transform: translateY(-2px);
}

.category-quick-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-2);
    background: linear-gradient(135deg, var(--primary-50), var(--accent-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: var(--transition);
}

.category-quick-item:hover .category-quick-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.category-quick-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    line-height: 1.3;
}

/* ============================================
   SECTION
   ============================================ */
.section {
    padding: var(--space-10) 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.section-title-wrap h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.section-title-wrap p {
    font-size: 13px;
    color: var(--gray-500);
}

.section-title-emoji {
    font-size: 28px;
}

.section-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.section-link:hover {
    color: var(--primary-dark);
    gap: 10px;
}

/* ============================================
   PRODUCT CARD (E-commerce Style)
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-4);
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

/* Image */
.product-image {
    aspect-ratio: 1 / 1;
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
    display: block;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-image .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

/* Wishlist Button */
.btn-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
    box-shadow: var(--shadow);
    color: var(--gray-400);
    font-size: 14px;
}

.btn-wishlist:hover {
    background: white;
    color: var(--love);
    transform: scale(1.1);
}

.btn-wishlist.active {
    background: var(--love);
    color: white;
    animation: heartPop 0.4s ease;
}

@keyframes heartPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Badge */
.product-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: linear-gradient(135deg, var(--danger), #dc2626) !important;
    color: white !important;
    padding: 4px 10px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    box-shadow: var(--shadow) !important;
    z-index: 4 !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase;
}

.product-badge.discount {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent)) !important;
    color: var(--gray-900) !important;
}

/* Info */
.product-info {
    padding: var(--space-3);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.product-card:hover .product-name { color: var(--primary); }

.product-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
    line-height: 1;
}

.product-price-old {
    font-size: 11px;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--gray-500);
    margin-top: auto;
    padding-top: 8px;
}

.product-meta .rating {
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
}

.product-meta .sold { color: var(--gray-500); }

.product-meta .stok {
    background: var(--success-light);
    color: var(--success);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 10px;
}

/* Quick Add Button */
.btn-quick-add {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    border-top: 1px solid var(--gray-200);
    transition: var(--transition);
}

.btn-quick-add:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   TESTIMONI / REVIEW
   ============================================ */
.testimoni-section {
    background: linear-gradient(135deg, var(--primary-50), var(--accent-light));
    padding: var(--space-12) 0;
}

.testimoni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
}

.testimoni-card {
    background: white;
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimoni-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimoni-rating {
    display: flex;
    gap: 2px;
    color: var(--accent-dark);
    margin-bottom: var(--space-3);
    font-size: 16px;
}

.testimoni-text {
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: var(--space-4);
    font-style: italic;
}

.testimoni-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: var(--space-3);
    border-top: 1px solid var(--gray-100);
}

.testimoni-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.testimoni-name {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 13.5px;
}

.testimoni-role {
    font-size: 11.5px;
    color: var(--gray-500);
}

/* ============================================
   WHY US (Trust Badges)
   ============================================ */
.why-us-section {
    background: white;
    padding: var(--space-10) 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-5);
}

.why-us-card {
    text-align: center;
    padding: var(--space-5);
}

.why-us-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.why-us-icon.purple { background: var(--primary-50); color: var(--primary); }
.why-us-icon.yellow { background: var(--accent-light); color: var(--accent-dark); }
.why-us-icon.green  { background: var(--success-light); color: var(--success); }
.why-us-icon.pink   { background: var(--love-light); color: var(--love); }

.why-us-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.why-us-card p {
    font-size: 12.5px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: white;
    padding: var(--space-12) 0 var(--space-5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand p {
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    font-size: 13px;
}

.social-links {
    display: flex;
    gap: var(--space-2);
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
}

.footer-col ul li {
    margin-bottom: var(--space-2);
}

.footer-col ul a {
    color: var(--gray-400);
    font-size: 13px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-5);
    text-align: center;
    color: var(--gray-500);
    font-size: 12.5px;
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 6px 0 8px;
    z-index: 99;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    display: none;
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    color: var(--gray-500);
    font-size: 10px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.mobile-nav-item i { font-size: 19px; }
.mobile-nav-item.active { color: var(--primary); }

.mobile-nav-badge {
    position: absolute;
    top: 2px;
    right: 25%;
    background: var(--danger);
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ============================================
   FLOATING BUTTONS (Live chat, Back to top)
   ============================================ */
.floating-actions {
    position: fixed;
    right: 20px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 90;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    cursor: pointer;
}

.float-btn:hover { transform: scale(1.1); }

.float-btn.whatsapp {
    background: #25d366;
}

.float-btn.back-top {
    background: var(--primary);
    opacity: 0;
    visibility: hidden;
}

.float-btn.back-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 14px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    border-left: 4px solid var(--primary);
    min-width: 280px;
    animation: slideInRight 0.3s ease;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast.success .toast-icon { background: var(--success-light); color: var(--success); }
.toast.error .toast-icon { background: var(--danger-light); color: var(--danger); }
.toast .toast-icon { background: var(--primary-50); color: var(--primary); }

.toast-content { flex: 1; }
.toast-title { font-weight: 700; font-size: 13px; color: var(--gray-900); }
.toast-message { font-size: 12px; color: var(--gray-600); margin-top: 2px; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-side { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    
    /* Header */
    .header-inner { gap: var(--space-3); }
    .search-bar { order: 3; flex: 1 0 100%; padding-top: 8px; }
    .header-actions { gap: var(--space-2); }
    .header-action { width: 38px; height: 38px; }
    .logo-text span { display: none; }
    .logo-text h1 { font-size: 15px; }
    
    /* Hero */
    .hero-slider { height: 260px; }
    .slide { padding: var(--space-6); }
    .slide-content { max-width: 70%; }
    .slide-tag { font-size: 9px; padding: 4px 10px; }
    .slide-title { font-size: 22px; }
    .slide-desc { font-size: 12px; }
    .slide-cta { padding: 9px 18px; font-size: 12.5px; }
    .slide-emoji { font-size: 110px; right: 20px; }
    .slider-arrow { width: 36px; height: 36px; font-size: 13px; }
    .slider-arrow.prev { left: 10px; }
    .slider-arrow.next { right: 10px; }
    .slider-controls { left: var(--space-6); bottom: var(--space-3); }
    .slider-dot { width: 24px; }
    .slider-dot.active { width: 36px; }
    
    .hero-side { grid-template-columns: 1fr 1fr; }
    .side-banner { padding: var(--space-3); }
    .side-banner-content h3 { font-size: 14px; }
    .side-banner-content small { font-size: 9px; }
    .side-banner-content span { font-size: 10px; padding: 3px 8px; }
    .side-banner-emoji { font-size: 36px; }
    
    /* Section */
    .section { padding: var(--space-6) 0; }
    .section-title-wrap h2 { font-size: 18px; }
    .section-link { font-size: 12px; }
    
    /* Product Grid */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
    .product-name { font-size: 12px; min-height: 32px; }
    .product-price { font-size: 15px; }
    .product-meta { font-size: 10px; }
    .product-info { padding: var(--space-2); }
    .btn-quick-add { padding: 8px; font-size: 11.5px; }
    
    /* Category Quick */
    .category-quick-grid { grid-template-columns: repeat(4, 1fr); }
    .category-quick-icon { width: 48px; height: 48px; font-size: 22px; }
    .category-quick-name { font-size: 11px; }
    
    /* Why Us */
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }
    .why-us-icon { width: 56px; height: 56px; font-size: 26px; }
    .why-us-card h3 { font-size: 13px; }
    .why-us-card p { font-size: 11.5px; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
    .footer { padding-bottom: 80px; }
    
    /* Mobile Nav */
    .mobile-nav { display: block; }
    body { padding-bottom: 70px; }
    
    /* Floating */
    .floating-actions { bottom: 80px; right: 14px; }
    .float-btn { width: 48px; height: 48px; font-size: 18px; }
    
    /* Toast */
    .toast { top: auto; bottom: 90px; left: 14px; right: 14px; min-width: auto; }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--space-3); }
    .header-action { width: 36px; height: 36px; }
    .hero-slider { height: 200px; }
    .slide-title { font-size: 18px; }
    .slide-desc { display: none; }
    .slide-emoji { font-size: 80px; }
    .product-meta .stok { display: none; }
    .category-quick-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   AGGRESSIVE MOBILE FIX
   ============================================ */

/* Cegah horizontal scroll - TANPA merusak sticky */
html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-width: 100vw !important;
}

body {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    max-width: 100vw !important;
    position: relative !important;
}

img, video {
    max-width: 100% !important;
    height: auto !important;
}

/* DESKTOP: Container tetap punya max-width */
.container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
}

/* MOBILE: Container full width */
@media (max-width: 768px) {
    .container {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ════════════════════════════════════════
   TABLET (max 1024px)
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .hero-side {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto !important;
    }
    
    .hero-slider {
        height: 320px !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
    }
}

/* ════════════════════════════════════════
   MOBILE (max 768px)
   ════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Top bar - sembunyikan promo, hanya kontak */
    .top-bar {
        font-size: 11px !important;
    }
    .top-bar-content {
        flex-direction: column !important;
        gap: 4px !important;
    }
    .top-bar-promo span {
        font-size: 10.5px !important;
    }
    .top-bar-links {
        display: none !important;
    }
    
    /* Header - search di bawah */
    .header-inner {
        flex-wrap: wrap !important;
        height: auto !important;
        padding: 10px 0 !important;
        gap: 10px !important;
    }
    
    .logo {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .logo-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
    }
    
    .logo-text h1 {
        font-size: 14px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .logo-text span {
        display: none !important;
    }
    
    .header-actions {
        order: 2 !important;
        flex-shrink: 0 !important;
    }
    
    .header-action {
        width: 38px !important;
        height: 38px !important;
        font-size: 14px !important;
    }
    
    /* Search bar full width di mobile */
    .search-bar {
        order: 3 !important;
        flex: 1 0 100% !important;
        max-width: 100% !important;
        margin-top: 4px !important;
    }
    
    .search-input {
        height: 40px !important;
        font-size: 13px !important;
        padding-left: 40px !important;
    }
    
    .search-btn {
        height: 40px !important;
        padding: 0 14px !important;
        font-size: 12px !important;
    }
    
    .search-icon-left {
        font-size: 13px !important;
        left: 14px !important;
    }
    
    /* HERO SLIDER */
    .hero-section {
        padding: 12px 0 !important;
    }
    
    .hero-slider {
        height: 220px !important;
        border-radius: 12px !important;
    }
    
    .slide {
        padding: 20px !important;
    }
    
    .slide-content {
        max-width: 75% !important;
    }
    
    .slide-tag {
        font-size: 9px !important;
        padding: 4px 10px !important;
        margin-bottom: 8px !important;
    }
    
    .slide-title {
        font-size: 20px !important;
        line-height: 1.15 !important;
        margin-bottom: 8px !important;
        letter-spacing: -0.5px !important;
    }
    
    .slide-desc {
        font-size: 11.5px !important;
        margin-bottom: 12px !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    .slide-cta {
        padding: 8px 16px !important;
        font-size: 11.5px !important;
    }
    
    .slide-emoji {
        font-size: 90px !important;
        right: 15px !important;
    }
    
    .slider-arrow {
        width: 34px !important;
        height: 34px !important;
        font-size: 12px !important;
    }
    
    .slider-arrow.prev { left: 8px !important; }
    .slider-arrow.next { right: 8px !important; }
    
    .slider-controls {
        bottom: 10px !important;
        left: 20px !important;
    }
    
    .slider-dot {
        width: 20px !important;
        height: 3px !important;
    }
    
    .slider-dot.active {
        width: 30px !important;
    }
    
    /* SIDE BANNERS */
    .hero-side {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    .side-banner {
        padding: 12px !important;
        min-height: 80px !important;
    }
    
    .side-banner-content small {
        font-size: 9px !important;
    }
    
    .side-banner-content h3 {
        font-size: 13px !important;
        margin: 3px 0 6px !important;
    }
    
    .side-banner-content span {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }
    
    .side-banner-emoji {
        font-size: 32px !important;
    }
    
    /* CATEGORY QUICK */
    .category-quick {
        padding: 16px 0 !important;
    }
    
    .category-quick-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px !important;
    }
    
    .category-quick-item {
        padding: 8px !important;
    }
    
    .category-quick-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 22px !important;
        margin-bottom: 6px !important;
    }
    
    .category-quick-name {
        font-size: 10.5px !important;
        line-height: 1.2 !important;
    }
    
    /* SECTION */
    .section {
        padding: 24px 0 !important;
    }
    
    .section-header {
        margin-bottom: 16px !important;
    }
    
    .section-title-wrap h2 {
        font-size: 18px !important;
        gap: 8px !important;
    }
    
    .section-title-emoji {
        font-size: 22px !important;
    }
    
    .section-title-wrap p {
        font-size: 12px !important;
    }
    
    .section-link {
        font-size: 12px !important;
    }
    
    /* PRODUCT GRID */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .product-card {
        border-radius: 10px !important;
    }
    
    .product-info {
        padding: 10px !important;
    }
    
    .product-name {
        font-size: 12px !important;
        min-height: 32px !important;
        margin-bottom: 4px !important;
    }
    
    .product-price {
        font-size: 14px !important;
        margin-bottom: 4px !important;
    }
    
    .product-meta {
        font-size: 9.5px !important;
        gap: 6px !important;
        padding-top: 4px !important;
    }
    
    .product-meta .stok {
        display: none !important;
    }
    
    .btn-quick-add {
        padding: 8px !important;
        font-size: 11px !important;
    }
    
    .btn-wishlist {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
        top: 6px !important;
        right: 6px !important;
    }
    
    .product-badge {
        font-size: 9px !important;
        padding: 3px 7px !important;
        top: 6px !important;
        left: 6px !important;
    }
    
    /* TESTIMONI */
    .testimoni-section {
        padding: 24px 0 !important;
    }
    
    .testimoni-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .testimoni-card {
        padding: 16px !important;
    }
    
    .testimoni-text {
        font-size: 13px !important;
    }
    
    .testimoni-rating {
        font-size: 14px !important;
    }
    
    /* WHY US */
    .why-us-section {
        padding: 24px 0 !important;
    }
    
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .why-us-card {
        padding: 14px !important;
    }
    
    .why-us-icon {
        width: 52px !important;
        height: 52px !important;
        font-size: 24px !important;
        margin-bottom: 8px !important;
    }
    
    .why-us-card h3 {
        font-size: 13px !important;
    }
    
    .why-us-card p {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
    
    /* FOOTER */
    .footer {
        padding: 32px 0 80px !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .footer-brand h3 {
        font-size: 16px !important;
    }
    
    .footer-brand p {
        font-size: 12.5px !important;
    }
    
    .footer-col h4 {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }
    
    .footer-col ul a {
        font-size: 12px !important;
    }
    
    .footer-bottom {
        font-size: 11px !important;
    }
    
    /* MOBILE NAV - WAJIB TAMPIL */
    .mobile-nav {
        display: block !important;
    }
    
    body {
        padding-bottom: 65px !important;
    }
    
    /* FLOATING */
    .floating-actions {
        bottom: 76px !important;
        right: 12px !important;
    }
    
    .float-btn {
        width: 46px !important;
        height: 46px !important;
        font-size: 18px !important;
    }
    
    /* TOAST */
    .toast {
        top: auto !important;
        bottom: 80px !important;
        left: 12px !important;
        right: 12px !important;
        min-width: auto !important;
        font-size: 12px !important;
        padding: 12px 14px !important;
    }
    
    .toast-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }
    
    .toast-title {
        font-size: 12.5px !important;
    }
    
    .toast-message {
        font-size: 11px !important;
    }
}

/* ════════════════════════════════════════
   MOBILE KECIL (max 480px)
   ════════════════════════════════════════ */
@media (max-width: 480px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* Hero lebih kecil lagi */
    .hero-slider {
        height: 180px !important;
    }
    
    .slide {
        padding: 16px !important;
    }
    
    .slide-content {
        max-width: 100% !important;
    }
    
    .slide-tag {
        font-size: 8.5px !important;
        padding: 3px 8px !important;
    }
    
    .slide-title {
        font-size: 17px !important;
    }
    
    .slide-desc {
        display: none !important;
    }
    
    .slide-cta {
        padding: 7px 14px !important;
        font-size: 11px !important;
    }
    
    .slide-emoji {
        font-size: 70px !important;
        opacity: 0.5 !important;
        right: 0 !important;
    }
    
    /* Side banner stack */
    .hero-side {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    
    .side-banner {
        padding: 10px !important;
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        min-height: 70px !important;
    }
    
    .side-banner-emoji {
        font-size: 24px !important;
        margin-bottom: 4px !important;
    }
    
    .side-banner-content h3 {
        font-size: 11px !important;
    }
    
    .side-banner-content small {
        font-size: 8px !important;
    }
    
    .side-banner-content span {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
    
    /* Category 3 kolom di hp kecil */
    .category-quick-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    
    .category-quick-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }
    
    /* Product tetap 2 kolom */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .product-info {
        padding: 8px !important;
    }
    
    .product-name {
        font-size: 11.5px !important;
        min-height: 30px !important;
    }
    
    .product-price {
        font-size: 13px !important;
    }
    
    .product-meta .sold {
        display: none !important;
    }
    
    .btn-quick-add {
        padding: 6px !important;
        font-size: 10.5px !important;
    }
    
    /* Why us 2 kolom */
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* ════════════════════════════════════════
   MOBILE SANGAT KECIL (max 360px)
   ════════════════════════════════════════ */
@media (max-width: 360px) {
    .header-actions {
        gap: 6px !important;
    }
    
    .header-action {
        width: 34px !important;
        height: 34px !important;
        font-size: 13px !important;
    }
    
    .hero-slider {
        height: 160px !important;
    }
    
    .slide-title {
        font-size: 15px !important;
    }
    
    .product-grid {
        gap: 6px !important;
    }
    
    .category-quick-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .mobile-nav-item span {
        font-size: 9px !important;
    }
    
    .mobile-nav-item i {
        font-size: 17px !important;
    }
}

