/* ========================================== */
/* DIOJUBEL - MODERN PROFESSIONAL STYLESHEET */
/* THEME: 70% PUTIH + 30% BIRU MUDA          */
/* VERSION: 4.1 (SIDEBAR UPDATE)             */
/* ========================================== */

/* ========== RESET & VARIABLES ========== */
:root {
    /* Primary - Biru Muda */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --primary-bg: #eff6ff;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    
    /* Secondary */
    --secondary: #1e293b;
    --secondary-light: #475569;
    
    /* Status */
    --success: #22c55e;
    --success-bg: #dcfce7;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    /* Neutral */
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #94a3b8;
    --light: #f8fafc;
    --white: #ffffff;
    
    /* Shadows */
    --shadow: 0 1px 3px 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.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(37, 99, 235, 0.10);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
    
    /* Borders */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Radius */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Sizes */
    --navbar-height: 72px;
    
    /* Font */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--light);
    color: var(--dark);
    padding-top: var(--navbar-height);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================== */
/* ========== NAVBAR GLOBAL ========== */
/* ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: var(--navbar-height);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Burger Menu */
.burger-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--dark);
    padding: 8px 12px;
    display: none;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.burger-btn:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--dark);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark);
}

.logo-text span {
    color: var(--primary);
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 14px;
    color: var(--gray);
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
    border-radius: 10px;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--dark);
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-btn {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.logout-btn {
    color: var(--danger);
    font-size: 16px;
    transition: var(--transition);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.logout-btn:hover {
    background: var(--danger-bg);
    transform: scale(1.05);
}

/* ========================================== */
/* ========== SIDEBAR - UPDATED ========== */
/* ========================================== */

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Container */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 1000;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    left: 0;
}

/* Sidebar Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Sidebar Brand - Logo + Close Button */
.sidebar-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--white);
}

.brand-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--primary);
    padding: 4px;
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

/* Close Button - Styled & Visible */
.sidebar-close {
    background: var(--primary-bg);
    border: 1px solid var(--border);
    color: var(--dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-close:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: rotate(90deg);
}

.sidebar-close i {
    font-size: 18px;
}

/* Sidebar Menu */
.sidebar-menu {
    flex: 1;
    padding: 8px 0 20px;
    overflow-y: auto;
}

.sidebar-section {
    padding: 0 16px;
    margin-bottom: 16px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--light-gray);
    padding: 0 12px;
    margin-bottom: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.sidebar-link i {
    width: 20px;
    font-size: 16px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.sidebar-link.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}

.sidebar-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    min-width: 20px;
    text-align: center;
}

/* Logout Link */
.sidebar-logout {
    color: var(--danger);
}

.sidebar-logout:hover {
    background: #fee2e2;
    color: var(--danger);
}

/* Contact Links */
.sidebar-contact {
    padding-top: 4px;
    margin-top: 4px;
}

.sidebar-wa {
    color: #25D366;
}

.sidebar-wa:hover {
    background: #ecfdf5;
    color: #059669;
}

.sidebar-ig {
    color: #E4405F;
}

.sidebar-ig:hover {
    background: #fdf2f4;
    color: #c13584;
}

.sidebar-empty {
    padding: 8px 14px;
    color: var(--light-gray);
    font-size: 13px;
}

/* ========================================== */
/* ========== SIDEBAR ANIMATIONS ========== */
/* ========================================== */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-link {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.sidebar-link:nth-child(1) { animation-delay: 0.05s; }
.sidebar-link:nth-child(2) { animation-delay: 0.10s; }
.sidebar-link:nth-child(3) { animation-delay: 0.15s; }
.sidebar-link:nth-child(4) { animation-delay: 0.20s; }
.sidebar-link:nth-child(5) { animation-delay: 0.25s; }
.sidebar-link:nth-child(6) { animation-delay: 0.30s; }
.sidebar-link:nth-child(7) { animation-delay: 0.35s; }
.sidebar-link:nth-child(8) { animation-delay: 0.40s; }
.sidebar-link:nth-child(9) { animation-delay: 0.45s; }
.sidebar-link:nth-child(10) { animation-delay: 0.50s; }

/* Brand Animation */
.sidebar-brand {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar.open .sidebar-brand {
    opacity: 1;
    transform: translateY(0);
}

/* Close Button Animation */
.sidebar-close {
    opacity: 0;
    transform: scale(0.8) rotate(-90deg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 0.1s;
}

.sidebar.open .sidebar-close {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* ========================================== */
/* ========== RESPONSIVE - SIDEBAR ========== */
/* ========================================== */

/* Toggle Button for Mobile */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
}

.sidebar-toggle:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar {
        width: 280px;
        left: -300px;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .sidebar-brand {
        padding: 14px 16px;
    }
    
    .sidebar-logo {
        width: 30px;
        height: 30px;
    }
    
    .brand-name {
        font-size: 16px;
    }
    
    .sidebar-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .sidebar-close {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .sidebar-close i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 260px;
        left: -280px;
    }
    
    .sidebar-brand {
        padding: 12px 14px;
    }
    
    .sidebar-logo {
        width: 28px;
        height: 28px;
    }
    
    .brand-name {
        font-size: 15px;
    }
    
    .sidebar-link {
        padding: 7px 10px;
        font-size: 13px;
    }
    
    .sidebar-link i {
        font-size: 14px;
        width: 18px;
    }
    
    .sidebar-close {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .sidebar-close i {
        font-size: 14px;
    }
}

/* ========================================== */
/* ========== SECTION HEADER ========== */
/* ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header .badge {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    color: var(--gray);
    font-size: 16px;
    margin-top: 4px;
}

/* ========================================== */
/* ========== BANNER SLIDER ========== */
/* ========================================== */
.slider-section {
    padding: 20px 0 40px;
}

.slider-wrapper-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.slider-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16 / 9;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.slide {
    min-width: 100%;
    position: relative;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide::after {
    display: none;
}

.slide-content {
    display: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    color: var(--dark);
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50%;
    z-index: 10;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.slider-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-md);
}

.slider-btn.prev {
    left: 12px;
}

.slider-btn.next {
    right: 12px;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background: var(--white);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ========================================== */
/* ========== CATEGORY GRID ========== */
/* ========================================== */
.katalog-section {
    padding: 48px 0 64px;
    background: var(--white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1;
    position: relative;
}

.category-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.category-item .cat-image-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--light);
    position: relative;
    flex-shrink: 0;
}

.category-item .cat-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-item:hover .cat-image-wrap img {
    transform: scale(1.05);
}

.category-item .cat-image-wrap .icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    color: var(--primary);
    gap: 6px;
}

.category-item .cat-image-wrap .icon-fallback i {
    font-size: 36px;
    color: var(--primary);
}

.category-item .cat-image-wrap .icon-fallback .fallback-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.category-item .cat-image-wrap .icon-fallback .fallback-count {
    font-size: 11px;
    color: var(--gray);
}

.category-item .cat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px 12px;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0) 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
    pointer-events: none;
}

.category-item:hover .cat-overlay {
    background: linear-gradient(0deg, rgba(37, 99, 235, 0.75) 0%, rgba(37, 99, 235, 0) 100%);
}

.category-item .cat-overlay .cat-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.category-item .cat-overlay .cat-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 4px;
}

.category-item .cat-overlay .cat-count i {
    font-size: 10px;
}

.category-item .cat-overlay .arrow-hint {
    margin-top: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.category-item:hover .cat-overlay .arrow-hint {
    color: var(--white);
    gap: 6px;
}

.category-item:hover .cat-overlay .arrow-hint i {
    transform: translateX(4px);
}

/* ========================================== */
/* ========== PRODUCT GRID ========== */
/* ========================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.product-card-link:hover {
    transform: translateY(-4px);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border);
    height: 100%;
}

.product-card-link:hover .product-card {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.product-card .product-image {
    height: 200px;
    overflow: hidden;
    background: var(--light);
    position: relative;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card-link:hover .product-image img {
    transform: scale(1.05);
}

.product-card .product-image .flash-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.product-card .product-image .stock-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(8px);
    z-index: 5;
}

.product-card .product-image .stock-badge.in-stock { background: var(--success); }
.product-card .product-image .stock-badge.low-stock { background: #f59e0b; color: var(--dark); }
.product-card .product-image .stock-badge.out-of-stock { background: var(--danger); }

.product-card .product-body {
    padding: 14px 16px 16px;
}

.product-card .product-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-body .category {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 6px;
}

.product-card .product-body .price {
    margin-top: 4px;
}

.product-card .product-body .original-price {
    text-decoration: line-through;
    color: var(--light-gray);
    font-size: 13px;
    margin-right: 6px;
}

.product-card .product-body .discount-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--danger);
}

.product-card .product-body .normal-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

/* ========================================== */
/* ========== FLASH SALE ========== */
/* ========================================== */
.flash-sale {
    padding: 40px 0;
    background: var(--primary-bg);
}

.flash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.flash-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.flash-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.flash-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--light);
    flex-shrink: 0;
}

.flash-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.flash-card:hover .flash-image img {
    transform: scale(1.05);
}

.flash-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--danger);
    color: white;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.flash-stock-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(8px);
}

.flash-stock-badge.in-stock { background: var(--success); }
.flash-stock-badge.low-stock { background: #f59e0b; color: var(--dark); }
.flash-stock-badge.out-of-stock { background: var(--danger); }

.flash-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.flash-body .flash-category {
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
}

.flash-body h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin: 3px 0 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flash-body .flash-meta {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 4px;
}

.flash-body .flash-price {
    margin: 6px 0;
}

.flash-body .original-price {
    text-decoration: line-through;
    color: var(--light-gray);
    font-size: 12px;
    margin-right: 6px;
}

.flash-body .discount-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--danger);
}

.flash-body .normal-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
}

.flash-body .flash-stock-info {
    font-size: 11px;
    color: var(--gray);
    margin: 4px 0 8px;
}

.flash-buy-btn {
    width: 100%;
    padding: 8px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: var(--font-primary);
    margin-top: auto;
}

.flash-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.flash-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
    width: 100%;
    grid-column: 1 / -1;
}

.flash-empty i {
    font-size: 36px;
    color: var(--light-gray);
    margin-bottom: 12px;
    display: block;
}

/* ========================================== */
/* ========== CEK AKUN ========== */
/* ========================================== */
.cek-akun-section {
    padding: 40px 0;
    background: var(--white);
}

.cek-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 480px;
    margin: 0 auto;
}

.cek-form input {
    flex: 1;
    min-width: 160px;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 13px;
    font-family: var(--font-primary);
    transition: var(--transition);
    background: var(--white);
}

.cek-form input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.cek-form input::placeholder {
    color: var(--light-gray);
}

.cek-form button {
    padding: 10px 22px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.cek-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.hasil-cek {
    text-align: center;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hasil-cek.success {
    background: var(--success-bg);
    border: 1px solid #86efac;
    color: #166534;
}

.hasil-cek.error {
    background: var(--danger-bg);
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.hasil-cek.loading {
    background: var(--warning-bg);
    border: 1px solid #fde047;
    color: #854d0e;
}

.cek-info {
    text-align: center;
    margin-top: 10px;
    color: var(--gray);
    font-size: 12px;
}

.cek-info i {
    color: var(--primary);
    margin-right: 4px;
}

/* ========================================== */
/* ========== FOOTER ========== */
/* ========================================== */
.footer {
    background: var(--secondary);
    color: var(--light-gray);
    padding: 40px 16px 0;
    margin-top: 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-col h4 {
    color: var(--white);
    font-size: 15px;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 25px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 10px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.footer-brand .footer-logo h3 {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
}

.footer-brand .footer-logo h3 span {
    color: var(--primary-light);
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.footer-social {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: var(--light-gray);
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-social-links a {
    color: var(--light-gray);
    font-size: 12px;
    transition: var(--transition);
}

.footer-social-links a:hover {
    color: var(--primary-light);
}

.footer-social-links a i {
    width: 18px;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul li a {
    color: var(--light-gray);
    font-size: 13px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-col ul li a i {
    font-size: 9px;
    color: var(--primary-light);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 6px;
}

.footer-contact li i {
    width: 18px;
    color: var(--primary-light);
    font-size: 14px;
}

.footer-contact li a {
    color: var(--light-gray);
    transition: var(--transition);
}

.footer-contact li a:hover {
    color: var(--white);
}

.biolink-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 20px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.biolink-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.footer-payment {
    margin-top: 12px;
}

.footer-payment p {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 4px;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.payment-icons i,
.payment-icons span {
    background: rgba(255,255,255,0.06);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--light-gray);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 12px 16px;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--gray);
}

.footer-bottom p strong {
    color: var(--primary-light);
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
}

.footer-bottom-links a {
    color: var(--gray);
    font-size: 12px;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ========================================== */
/* ========== RESPONSIVE ========== */
/* ========================================== */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    .flash-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .burger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-right .admin-btn span {
        display: none;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .slider-wrapper-container {
        padding: 0 12px;
    }
    .slider-container {
        border-radius: var(--radius-sm);
    }
    .slider-btn {
        width: 28px;
        height: 28px;
        padding: 4px 8px;
        font-size: 11px;
    }
    .slider-btn.prev { left: 4px; }
    .slider-btn.next { right: 4px; }
    .slider-dots .dot {
        width: 5px;
        height: 5px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .category-item .cat-overlay .cat-name {
        font-size: 13px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    .product-card .product-image {
        height: 160px;
    }
    
    .flash-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
    .flash-image {
        height: 150px;
    }
    .flash-body {
        padding: 10px 12px 12px;
    }
    .flash-body h4 {
        font-size: 13px;
    }
    .flash-body .discount-price,
    .flash-body .normal-price {
        font-size: 15px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .slider-wrapper-container {
        padding: 0 8px;
    }
    .slider-container {
        border-radius: var(--radius-sm);
    }
    .slider-btn {
        width: 24px;
        height: 24px;
        padding: 3px 6px;
        font-size: 10px;
    }
    .slider-btn.prev { left: 3px; }
    .slider-btn.next { right: 3px; }
    .slider-dots .dot {
        width: 4px;
        height: 4px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .category-item .cat-overlay .cat-name {
        font-size: 12px;
    }
    .category-item .cat-overlay .cat-count {
        font-size: 10px;
    }
    .category-item .cat-overlay .arrow-hint {
        font-size: 10px;
        margin-top: 4px;
    }
    .category-item .cat-overlay {
        padding: 8px 10px 10px;
    }
    .category-item .cat-image-wrap .icon-fallback i {
        font-size: 28px;
    }
    .category-item .cat-image-wrap .icon-fallback .fallback-name {
        font-size: 12px;
    }
    .category-item .cat-image-wrap .icon-fallback .fallback-count {
        font-size: 10px;
    }
    
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .product-card .product-image {
        height: 140px;
    }
    .product-card .product-body {
        padding: 10px 12px 12px;
    }
    .product-card .product-body h3 {
        font-size: 13px;
    }
    .product-card .product-body .normal-price,
    .product-card .product-body .discount-price {
        font-size: 15px;
    }
    
    .flash-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .flash-image {
        height: 130px;
    }
    .flash-body {
        padding: 8px 10px 10px;
    }
    .flash-body h4 {
        font-size: 12px;
    }
    .flash-body .discount-price,
    .flash-body .normal-price {
        font-size: 14px;
    }
    .flash-body .flash-category {
        font-size: 10px;
    }
    .flash-body .flash-stock-info {
        font-size: 10px;
    }
    .flash-buy-btn {
        font-size: 11px;
        padding: 6px;
    }
    .flash-discount-badge {
        font-size: 9px;
        padding: 2px 8px;
    }
    .flash-stock-badge {
        font-size: 9px;
        padding: 2px 8px;
    }
    .flash-sale {
        padding: 20px 0 30px;
    }
    .section-header h2 {
        font-size: 22px;
    }
    
    .cek-form input {
        min-width: 100%;
        padding: 10px 14px;
        font-size: 12px;
    }
    .cek-form button {
        width: 100%;
        padding: 10px;
        font-size: 12px;
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 360px) {
    .flash-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .flash-image {
        height: 110px;
    }
    .flash-body h4 {
        font-size: 11px;
    }
    .flash-body .discount-price,
    .flash-body .normal-price {
        font-size: 13px;
    }
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .product-card .product-image {
        height: 120px;
    }
    .product-card .product-body h3 {
        font-size: 12px;
    }
}

/* ========================================== */
/* ========== UTILITY CLASSES ========== */
/* ========================================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--gray); }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

/* ========================================== */
/* ========== ANIMATIONS ========== */
/* ========================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================== */
/* ========== END OF FILE ========== */
/* ========================================== */