/* Beranda Utama (Landing Page) Styles */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    height: 100%;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.navbar.scrolled::after {
    opacity: 1;
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

/* Hamburger – hidden by default on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--dark);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: background 0.2s;
    align-items: center;
    justify-content: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    order: 1;
    flex-shrink: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
    order: 2;
    padding-left: 48px;
    flex: 1;
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-buttons {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-left: 32px;
    order: 3;
    flex-shrink: 0;
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero {
    /* Option 1: Shopping/Store theme */
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(14, 11, 16, 0.9) 100%),
        url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=1920&q=80') center/cover;
    
    /* Option 2: Handcraft/UMKM theme - Uncomment to use
    background: 
        linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%),
        url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=1920&q=80') center/cover;
    */
    
    /* Option 3: Market/Products theme - Uncomment to use
    background: 
        linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%),
        url('https://images.unsplash.com/photo-1472851294608-062f824d29cc?w=1920&q=80') center/cover;
    */
    
    /* Option 4: Local image - Uncomment and add your image to public/images/
    background: 
        linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%),
        url('/images/hero-bg.jpg') center/cover;
    */
    
    padding: 120px 40px 100px;
    position: relative;
    overflow: hidden;
    background-attachment: fixed; /* Parallax effect */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Animated Background Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.2);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.3);
    bottom: -50px;
    right: 10%;
    animation-delay: 5s;
}

.hero-shape-3 {
    width: 250px;
    height: 250px;
    background: rgba(236, 72, 153, 0.2);
    top: 50%;
    right: -50px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: rise 15s infinite ease-in;
}

@keyframes rise {
    0% {
        bottom: -10px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 100%;
        opacity: 0;
    }
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero p {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 16px 40px;
    font-size: 16px;
    border-radius: 12px;
}

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

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    z-index: 10;
    cursor: pointer;
}

.scroll-indicator span {
    display: block;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: scrollBounce 1.5s infinite;
}

.scroll-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollBounce {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

.scroll-indicator:hover span {
    background: rgba(255, 255, 255, 0.8);
}

.stats {
    background: white;
    padding: 60px 40px;
    position: relative;
    z-index: 2;
}

/* Remove ::before wave if it exists or override it */
.stats::before {
    display: none;
}

.stats-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--gray);
    font-size: 16px;
    font-weight: 500;
}

/* Products Section */
.products-section {
    max-width: 1280px;
    margin: 80px auto;
    padding: 0 40px;
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.products-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

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

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 20px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
    border-radius: 20px;
}

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

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.product-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.product-info {
    padding: 28px;
    position: relative;
    z-index: 1;
}

.product-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.product-description {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.product-price {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-detail {
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-detail:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 100px 40px;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
}

/* Geometric shapes in CTA */
.cta-shape {
    position: absolute;
    opacity: 0.1;
}

.cta-shape-1 {
    width: 200px;
    height: 200px;
    border: 3px solid white;
    border-radius: 50%;
    top: 10%;
    left: 5%;
    animation: rotate 20s linear infinite;
}

.cta-shape-2 {
    width: 150px;
    height: 150px;
    border: 3px solid white;
    transform: rotate(45deg);
    bottom: 10%;
    right: 10%;
    animation: rotate 15s linear infinite reverse;
}

.cta-shape-3 {
    width: 100px;
    height: 100px;
    border: 3px solid white;
    border-radius: 20px;
    top: 50%;
    right: 5%;
    animation: float 10s ease-in-out infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-container h2 {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-container p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 80px 40px 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="footer-pattern" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1.5" fill="rgba(99,102,241,0.1)"/><circle cx="0" cy="0" r="1.5" fill="rgba(99,102,241,0.1)"/><circle cx="60" cy="60" r="1.5" fill="rgba(99,102,241,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23footer-pattern)"/></svg>');
    opacity: 0.5;
}

.footer::after {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%230f172a" fill-opacity="1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,213.3C672,224,768,224,864,208C960,192,1056,160,1152,154.7C1248,149,1344,171,1392,181.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   RESPONSIVE BREAKPOINTS - CLEAN & UNIFIED
   ============================================ */

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .nav-menu {
        gap: 28px;
    }
}

/* ──────────────────────────────────────────
   TABLET / MOBILE  ≤ 768px
   ────────────────────────────────────────── */
@media (max-width: 768px) {
    /* --- Navbar container --- */
    .navbar {
        padding: 0;
    }
    .navbar.scrolled {
        padding: 0;
    }
    .nav-container {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 8px;
        align-items: center;
        justify-content: space-between;
    }

    /* --- Logo (row 1 left) --- */
    .logo {
        font-size: 16px;
        flex-shrink: 0;
        order: 1;
    }
    .logo i { font-size: 14px; }

    /* --- Nav menu (row 1 center) - Always visible --- */
    .nav-menu {
        display: flex !important;
        order: 2;
        flex: 1;
        justify-content: center;
        gap: 16px;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .nav-menu li {
        display: inline-block;
    }
    
    .nav-menu a {
        display: block;
        padding: 6px 10px;
        color: #333 !important;
        font-weight: 600;
        font-size: 12px;
        text-decoration: none;
        border-radius: 6px;
        transition: all 0.2s;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: var(--light-gray);
        color: var(--primary) !important;
    }
    
    .nav-menu a::after { 
        display: none; 
    }

    /* --- Nav buttons (row 1 right) --- */
    .nav-buttons {
        order: 3;
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }
    
    .nav-buttons .btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
    }
    
    /* Hide hamburger on mobile since menu is always visible */
    .nav-toggle {
        display: none !important;
    }

    /* --- Hero --- */
    .hero {
        background-attachment: scroll;
        padding: 60px 16px 48px;
    }
    .hero h1 { font-size: 30px; letter-spacing: -0.5px; }
    .hero p  { font-size: 15px; }
    .hero-buttons { flex-direction: column; gap: 12px; }
    .btn-hero { padding: 13px 28px; font-size: 14px; width: 100%; justify-content: center; }
    .hero-shape, .cta-shape { display: none; }

    /* --- Stats --- */
    .stats { padding: 32px 12px; }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 24px 16px;
    }

    /* --- Sections --- */
    .section-header h2  { font-size: 28px; }
    .products-grid      { grid-template-columns: 1fr; }
    .kategori-grid      { grid-template-columns: repeat(3, 1fr); }
    .toko-grid          { grid-template-columns: 1fr; }
    .fitur-grid         { grid-template-columns: 1fr 1fr; }
    .hero-trust         { gap: 16px; }
    .cta-container h2   { font-size: 28px; }

    /* --- Footer --- */
    .footer {
        padding: 48px 16px 24px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }

    /* --- Cart items --- */
    .cart-item-row   { gap: 8px !important; }
    .cart-item-qty   { transform: scale(0.85); transform-origin: right; }
    .cart-item-price { font-size: 13px !important; }
}

/* ──────────────────────────────────────────
   SMALL MOBILE  ≤ 480px
   ────────────────────────────────────────── */
@media (max-width: 480px) {
    .logo { 
        font-size: 14px;
    }
    .logo i {
        font-size: 13px;
    }

    /* Nav menu - smaller text on very small screens */
    .nav-menu {
        gap: 8px;
    }
    
    .nav-menu a {
        padding: 5px 8px;
        font-size: 11px;
    }

    /* Search Form Mobile */
    .search-group, .filter-select {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .input-group.search-group .form-control {
        font-size: 14px;
    }

    /* Show only icon on very small screens */
    .nav-buttons .btn-text { 
        display: none; 
    }
    .nav-buttons .btn i { 
        margin: 0 !important; 
    }
    .nav-buttons .btn { 
        padding: 6px 8px !important;
        min-width: 32px;
    }
    .nav-buttons { 
        gap: 6px !important; 
    }

    .hero h1 { font-size: 24px; }
    .hero-badge { font-size: 12px; padding: 6px 14px; }

    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 16px 8px;
    }

    .kategori-grid { grid-template-columns: repeat(2, 1fr); }
    .fitur-grid    { grid-template-columns: 1fr; }
    .cta-container h2 { font-size: 22px; }
}

/* ── Always hide toggle on desktop ── */
@media (min-width: 769px) {
    .nav-toggle { display: none !important; }
    .nav-menu   { display: flex !important; max-height: none !important; overflow: visible !important; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== TAMBAHAN: UMKM STORE REDESIGN ===== */

/* Navbar tambahan */
/* .logo merged into main rule above */
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
/* .nav-toggle base defined above in .nav-container section */

/* Hero tambahan */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-highlight {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    transform: translateY(-3px);
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
}
.trust-item i { color: #ffd700; }

/* Stats icon */
.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    margin: 0 auto 12px;
}

/* Kategori Section */
.kategori-section {
    max-width: 1280px;
    margin: 80px auto;
    padding: 0 40px;
}

.kategori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.kategori-card {
    background: white;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}
.kategori-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(99,102,241,0.15);
    border-color: var(--primary);
}
.kategori-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
}
.kategori-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}
.kategori-count {
    font-size: 13px;
    color: var(--gray);
}

/* Product card tambahan */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.9);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}
.product-store {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.product-store i { color: var(--primary); }

.text-center { text-align: center; }
.mt-5 { margin-top: 48px; }

/* Toko Section */
.toko-section {
    background: var(--light-gray);
    background-image: radial-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.toko-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.toko-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.toko-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.toko-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.toko-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, rgba(99, 102, 241, 0.05) 50%);
    border-radius: 0 0 0 60px;
    transition: all 0.4s;
}

.toko-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.toko-card:hover::after {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(99, 102, 241, 0.03) 100%);
    border-radius: 0;
}

.toko-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
    transition: all 0.4s;
    border: 4px solid white;
}

.toko-card:hover .toko-avatar {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.35);
}

.toko-info {
    flex-grow: 1;
}

.toko-name { 
    font-size: 18px; 
    font-weight: 800; 
    color: var(--dark); 
    margin-bottom: 6px; 
    letter-spacing: -0.5px;
}

.toko-meta { 
    font-size: 14px; 
    color: var(--gray); 
    margin-bottom: 5px; 
    display: flex; 
    align-items: center; 
    gap: 8px;
    font-weight: 500;
}

.toko-meta i { 
    color: var(--primary); 
    width: 16px; 
    font-size: 14px;
}

.toko-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #eafaf6, #d1f3e9);
    color: #1a7a5e;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(26, 122, 94, 0.1);
    border: 1px solid rgba(26, 122, 94, 0.1);
}

.toko-status-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Fitur Section */
.fitur-section {
    max-width: 1280px;
    margin: 80px auto;
    padding: 0 40px;
}
.fitur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 32px;
}
.fitur-card {
    background: white;
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s;
}
.fitur-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(99,102,241,0.12);
}
.fitur-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin: 0 auto 20px;
}
.fitur-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.fitur-card p { font-size: 15px; color: var(--gray); line-height: 1.7; }

/* CTA tambahan */
.cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 24px;
}

/* Footer icon links */
.footer-links a { display: flex; align-items: center; gap: 8px; }
.footer-links a i { font-size: 11px; color: var(--primary); }

/* Mobile nav */
.product-image-responsive {
    aspect-ratio: 1/1;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-image-placeholder {
    aspect-ratio: 1/1;
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

@media (max-width: 575px) {
    .row.gx-2 {
        margin-right: -8px;
        margin-left: -8px;
    }
    
    .col.mb-5 {
        margin-bottom: 12px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    
    .card-body.p-4 {
        padding: 10px !important;
    }
    
    .card-footer.p-2 {
        padding: 8px !important;
    }
    
    h5.fw-bolder {
        font-size: 0.95rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.8rem;
    }
    
    .text-muted.small {
        display: none; /* Hide product description on mobile like Lazada */
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .card {
        border-radius: 8px !important;
    }
    
    .badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Fix for elongated cards */
.card.h-100 {
    display: flex;
    flex-direction: column;
}

.card-body {
    flex-grow: 1;
}

/* ── Additional cart-info mobile styles ── */
@media (max-width: 768px) {
    /* Cart item text wrapping */
    .cart-item-info h6 {
        font-size: 14px !important;
        margin-bottom: 2px !important;
        white-space: normal !important;
    }
    .cart-item-info p {
        font-size: 11px !important;
        margin-bottom: 4px !important;
        white-space: normal !important;
    }
    /* Product grid small screens */
    @media (max-width: 575px) {
        .row.gx-2 { margin-right: -8px; margin-left: -8px; }
        .col.mb-5 { margin-bottom: 12px !important; padding-left: 6px !important; padding-right: 6px !important; }
        .card-body.p-4 { padding: 10px !important; }
        .card-footer.p-2 { padding: 8px !important; }
        h5.fw-bolder { font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.8rem; }
        .badge { font-size: 10px; padding: 3px 6px; }
    }
}


/* ──────────────────────────────────────────
   MOBILE FIX - Hero
   ────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Fix hero section */
    .hero {
        background-attachment: scroll !important;
        padding: 60px 20px 40px !important;
        min-height: 280px !important;
    }

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

    .hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Fix stats section - HORIZONTAL LAYOUT */
    .stats {
        padding: 30px 15px;
    }

    .stats-container {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 12px !important;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .stat-item {
        flex: 0 0 auto !important;
        min-width: 140px !important;
        padding: 20px 16px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .stat-icon {
        margin-bottom: 12px;
    }

    .stat-number {
        font-size: 1.8rem !important;
        margin-bottom: 8px;
    }

    .stat-label {
        font-size: 0.85rem !important;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 16px !important;
    }

    .nav-buttons {
        gap: 8px !important;
    }

    .nav-buttons .btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    .nav-buttons .btn-text {
        display: none !important;
    }

    .nav-buttons .btn i {
        margin: 0 !important;
        font-size: 14px;
    }

    .nav-buttons .btn[style*="margin-right"] {
        margin-right: 10px !important;
    }

    .hero {
        padding: 50px 15px 30px !important;
        min-height: 240px !important;
    }

    .hero h1 {
        font-size: 1.4rem !important;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 16px;
    }

    /* Stats horizontal scroll for mobile */
    .stats {
        padding: 20px 10px;
    }

    .stats-container {
        gap: 10px !important;
        padding: 0 5px 10px 5px;
    }

    .stat-item {
        min-width: 120px !important;
        padding: 18px 14px !important;
    }

    .stat-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 20px !important;
        margin-bottom: 10px;
    }

    .stat-number {
        font-size: 1.6rem !important;
        margin-bottom: 6px;
    }

    .stat-label {
        font-size: 0.8rem !important;
    }
}

/* ============================================
   USER DROPDOWN - CLEAN & MOBILE FRIENDLY
   ============================================ */

.user-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.user-dropdown-btn {
    white-space: nowrap;
    cursor: pointer;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 10000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.user-dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border: none;
    background: white;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item i {
    color: #26b99a;
    width: 18px;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #f8fafc;
}

.dropdown-item-danger {
    color: #ef4444 !important;
}

.dropdown-item-danger i {
    color: #ef4444 !important;
}

.dropdown-item-danger:hover {
    background: #fef2f2 !important;
}

/* Mobile specific dropdown styles */
@media (max-width: 768px) {
    .user-dropdown-menu {
        position: fixed;
        right: 10px;
        top: 60px;
        min-width: 180px;
        max-width: 200px;
    }
    
    .dropdown-item {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .dropdown-item i {
        width: 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .user-dropdown-menu {
        right: 5px;
        top: 55px;
        min-width: 160px;
    }
    
    .dropdown-item {
        padding: 9px 12px;
        font-size: 12px;
    }
}
