/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

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

/* ===== IMPROVED NAVBAR STYLES ===== */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding-top: env(safe-area-inset-top);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 30px;
    min-height: 80px;
    position: relative;
}

/* Brand Logo - PERBESAR LOGO */
 .nav-brand {
            display: flex;
            align-items: center;
            gap: 15px;
            z-index: 1001;
            position: relative;
        }

        .brand-logo {
            width: 180px; /* Diperbesar dari 120px menjadi 180px */
            height: 180px; /* Diperbesar dari 120px menjadi 180px */
            border-radius: 8px;
            object-fit: cover;
            transition: all 0.3s ease;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e91e63;
    display: none;
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover {
    color: #e91e63;
    background: rgba(233, 30, 99, 0.05);
}

.nav-link.active {
    color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.8rem;
    right: 0.8rem;
    height: 2px;
    background: #e91e63;
    border-radius: 2px;
}

/* Admin Menu Styles */
.admin-menu {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid #e0e0e0;
}

.admin-link, .logout-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.logout-link {
    color: #e74c3c;
}

.logout-link:hover {
    color: #c0392b;
    background: rgba(231, 76, 60, 0.05);
}

/* Search Bar */
.search-bar {
    flex: 0 1 300px;
    margin: 0 1.5rem;
}

.search-container {
    position: relative;
    display: flex;
    background: #f8f9fa;
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: #e91e63;
    background: white;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    outline: none;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.search-btn:hover {
    color: #e91e63;
}

/* Mobile Actions */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.search-toggle, .hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #333;
}

.search-toggle:hover, .hamburger:hover {
    background: #f8f9fa;
    color: #e91e63;
}

/* Hamburger Menu */
.hamburger {
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Search */
.mobile-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-search.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-search .search-container {
    background: white;
    border: 2px solid #e91e63;
}

.mobile-search .search-close {
    background: none;
    border: none;
    padding: 0 1rem;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 80px;
    min-height: 44px;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.mobile-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: #e91e63;
    background: rgba(233, 30, 99, 0.05);
}

/* No Scroll */
body.no-scroll {
    overflow: hidden;
}

/* ===== MARQUEE KATEGORI MOBILE ===== */
.categories-marquee-container {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    padding: 10px 0;
    margin-top: 20px;
    overflow: hidden;
    position: relative;
    transform: translateZ(0);
    backface-visibility: hidden;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    transform: translateZ(0);
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-smooth 30s linear infinite;
    transform: translateZ(0);
    padding: 5px 0;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    margin: 0 8px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateZ(0);
    font-size: 0.9rem;
    min-height: 44px;
}

.category-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.category-tag.active {
    background: rgba(255, 255, 255, 0.9);
    color: #e91e63;
    font-weight: 600;
}

@keyframes marquee-smooth {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-content:hover {
    animation-play-state: paused;
}

/* ===== PRODUCTS GRID MOBILE FIX ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    transition: opacity 0.3s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    min-height: 400px;
}

.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transform: translateZ(0);
    will-change: transform;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    aspect-ratio: 4/3;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.4;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e91e63;
    margin: 0.5rem 0;
}

.description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 1rem;
}

.product-actions .btn-small {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 0.85rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== CATEGORY FILTER BUTTONS MOBILE ===== */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 10px;
}

.category-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 0 10px;
}

.category-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: #333;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    transform: translateZ(0);
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.category-btn:hover {
    border-color: #e91e63;
    color: #e91e63;
    transform: translateY(-2px);
}

.category-btn.active {
    background: #e91e63;
    border-color: #e91e63;
    color: white;
    transform: translateY(-2px);
}

/* ===== HERO CAROUSEL MOBILE ===== */
.hero-carousel {
    position: relative;
    height: 60vh;
    margin-top: 80px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.carousel-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

.carousel-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.carousel-content .btn-large {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Carousel Controls Mobile */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(10px);
    min-width: 44px;
    min-height: 44px;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

/* Carousel Indicators Mobile */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 12px;
    min-height: 12px;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

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

/* ===== BUTTONS MOBILE OPTIMIZATION ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e91e63;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
    min-height: 44px;
    font-size: 1rem;
}

.btn:hover {
    background: #c2185b;
    transform: translateY(-2px);
}

.btn-small {
    background: #4CAF50;
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-small:hover {
    background: #45a049;
    transform: translateY(-1px);
}

/* Tombol WhatsApp Mobile */
.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin: 5px 0;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-1px);
}

/* ===== MODAL MOBILE FIX ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 95%;
    max-width: 500px;
    position: relative;
    transform: translateZ(0);
    max-height: 90vh;
    overflow-y: auto;
}

/* ===== QUICK VIEW MODAL MOBILE ===== */
.quick-view-content {
    max-width: 800px;
    padding: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    width: 95%;
    margin: 5% auto;
}

.quick-view-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.quick-view-image {
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.quick-view-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
}

.quick-view-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quick-view-info h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.quick-view-info .price {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.quick-view-info .description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.quick-view-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1.5rem;
}

.quick-view-actions .btn {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    width: 100%;
}

.quick-view-actions .btn-whatsapp {
    background: #25D366;
    border: none;
}

.quick-view-actions .btn-whatsapp:hover {
    background: #128C7E;
}

/* ===== FOOTER MOBILE ===== */
footer {
    background: #333;
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #e91e63;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN - MOBILE FIRST ===== */

/* Tablet (768px ke atas) */
@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .brand-text {
        display: block;
    }
    
    .hero-carousel {
        height: 70vh;
        margin-top: 80px;
    }
    
    .carousel-content h1 {
        font-size: 3rem;
    }
    
    .carousel-content p {
        font-size: 1.2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .quick-view-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .quick-view-actions {
        flex-direction: row;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .nav-menu {
        gap: 2rem;
    }
    
    .nav-menu a {
        font-size: 1rem;
    }
    
    .mobile-bottom-nav {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* Desktop (1024px ke atas) */
@media (min-width: 1024px) {
    .hero-carousel {
        height: 80vh;
    }
    
    .carousel-content h1 {
        font-size: 3.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .category-buttons {
        justify-content: center;
    }
    
    .search-bar {
        display: block;
    }
    
    .mobile-actions .search-toggle {
        display: none;
    }
}

/* ===== PERUBAHAN UTAMA: MOBILE LAYOUT ===== */

/* Mobile (768px ke bawah) */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0.5rem 15px;
        min-height: 70px;
        justify-content: space-between;
    }
    
    /* LOGO DI TENGAH UNTUK MOBILE */
    .nav-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1002;
    }
    
    .brand-logo {
        width: 140px;
        height: 100px;
    }
    
    .brand-text {
        display: none;
    }
    
    /* PRODUCT GRID 2 KOLOM DI MOBILE */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-card h3 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .price {
        font-size: 1.1rem;
    }
    
    .description {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .product-actions .btn-small {
        font-size: 0.8rem;
        padding: 8px 10px;
        min-height: 40px;
    }
    
    /* Navigation Menu Mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 1.5rem 2rem;
        gap: 0;
        transition: all 0.3s ease;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-link {
        padding: 1rem 0.8rem;
        border-radius: 0;
        justify-content: flex-start;
        font-size: 1rem;
    }
    
    .nav-link.active::after {
        left: 0;
        right: auto;
        width: 4px;
        height: 100%;
        bottom: 0;
    }
    
    .admin-menu {
        flex-direction: column;
        border-left: none;
        border-top: 1px solid #f0f0f0;
        margin-left: 0;
        padding-left: 0;
        padding-top: 1rem;
        margin-top: 1rem;
    }
    
    .search-bar {
        display: none;
    }
    
    .mobile-actions {
        display: flex;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Adjust body padding for mobile bottom nav */
    body {
        padding-bottom: 70px;
    }
    
    /* Hero Carousel Mobile */
    .hero-carousel {
        height: 50vh;
        margin-top: 70px;
    }
    
    .carousel-content h1 {
        font-size: 2rem;
    }
    
    .carousel-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .carousel-content .btn-large {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Categories Marquee Mobile */
    .categories-marquee-container {
        margin-top: 70px;
        padding: 8px 0;
    }
    
    .category-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin: 0 5px;
        min-height: 40px;
    }
}

/* Small Mobile (480px ke bawah) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .navbar .container {
        padding: 0.5rem 10px;
        min-height: 65px;
    }
    
    .brand-logo {
        width: 70px;
        height: 70px;
    }
    
    .categories-marquee-container {
        margin-top: 65px;
        padding: 6px 0;
    }
    
    .category-tag {
        padding: 5px 10px;
        font-size: 0.75rem;
        margin: 0 3px;
        min-height: 36px;
    }
    
    .hero-carousel {
        height: 45vh;
        margin-top: 65px;
    }
    
    .carousel-content h1 {
        font-size: 1.8rem;
    }
    
    .carousel-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-card h3 {
        font-size: 0.9rem;
    }
    
    .price {
        font-size: 1rem;
    }
    
    .description {
        font-size: 0.75rem;
    }
    
    .nav-menu {
        width: 100%;
        padding: 70px 1rem 2rem;
    }
    
    .mobile-nav-item span {
        font-size: 0.65rem;
    }
    
    .mobile-nav-item i {
        font-size: 1.1rem;
    }
    
    .product-actions .btn-small {
        font-size: 0.75rem;
        padding: 6px 8px;
        min-height: 36px;
    }
}

/* Very Small Mobile (360px ke bawah) */
@media (max-width: 360px) {
    .brand-logo {
        width: 60px;
        height: 60px;
    }
    
    .navbar .container {
        min-height: 60px;
    }
    
    .categories-marquee-container {
        margin-top: 60px;
    }
    
    .hero-carousel {
        margin-top: 60px;
        height: 40vh;
    }
    
    .carousel-content h1 {
        font-size: 1.6rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .product-info {
        padding: 0.6rem;
    }
    
    .product-card h3 {
        font-size: 0.85rem;
    }
    
    .price {
        font-size: 0.9rem;
    }
    
    .description {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-carousel {
        height: 100vh;
    }
    
    .categories-marquee-container {
        margin-top: 60px;
        padding: 5px 0;
    }
    
    .modal-content {
        margin: 1% auto;
        max-height: 98vh;
    }
    
    .nav-menu {
        padding-top: 60px;
        padding-bottom: 1rem;
    }
    
    .nav-link {
        padding: 0.7rem 0.8rem;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .navbar,
    .nav-menu,
    .nav-link,
    .mobile-search,
    .hamburger span,
    .marquee-content,
    .category-tag,
    .product-card,
    .btn,
    .btn-small,
    .btn-whatsapp,
    .carousel-control,
    .indicator,
    .carousel-slide {
        transition: none;
        animation: none;
        transform: none;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    .carousel-content h1,
    .carousel-content p,
    .carousel-content .btn-large {
        animation: none;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-card {
        box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .product-card {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .product-card h3 {
        color: #e0e0e0;
    }
    
    .description {
        color: #b0b0b0;
    }
    
    .category-btn {
        background: #2a2a2a;
        color: #e0e0e0;
        border-color: #444;
    }
    
    .category-btn.active {
        background: #e91e63;
        color: white;
    }
}

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

/* Admin styles */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #34495e;
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #34495e;
}

.sidebar-menu a {
    display: block;
    padding: 1rem;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #34495e;
}

.sidebar-menu i {
    width: 20px;
    margin-right: 10px;
}

.main-content {
    flex: 1;
    background: #ecf0f1;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #bdc3c7;
}

.welcome-message {
    flex: 1;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.card h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.card p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

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

.dashboard-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-section h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

.list-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #ecf0f1;
}

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

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pending { background: #f39c12; color: white; }
.status-confirmed { background: #3498db; color: white; }
.status-processing { background: #9b59b6; color: white; }
.status-completed { background: #27ae60; color: white; }
.status-cancelled { background: #e74c3c; color: white; }

.unread {
    font-weight: bold;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
}

.action-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

.action-btn i {
    margin-right: 0.5rem;
}

/* Additional Styles for Index Page */

/* About Preview Section */
.about-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    text-align: center;
}

.about-content h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.about-content p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* No Products State */
.no-products {
    text-align: center;
    padding: 3rem 2rem;
    grid-column: 1 / -1;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.no-products i {
    font-size: 4rem;
    color: #e91e63;
    margin-bottom: 1.5rem;
    display: block;
}

.no-products h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-products p {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* View All Button */
.view-all-container {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #e91e63;
    color: #e91e63;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline:hover {
    background: #e91e63;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

/* Form Styles for Order Modal */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 4px solid #e91e63;
}

.order-summary h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.summary-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #e91e63;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid #dee2e6;
}

/* WhatsApp Button Large */
.btn-whatsapp-large {
    width: 100%;
    padding: 15px 20px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-whatsapp-large:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Responsive Design for Index Page */
@media (max-width: 768px) {
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .no-products {
        padding: 2rem 1rem;
    }
    
    .no-products i {
        font-size: 3rem;
    }
    
    .no-products h3 {
        font-size: 1.3rem;
    }
    
    .btn-outline {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .order-summary {
        padding: 1rem;
    }
    
    .summary-item {
        font-size: 0.9rem;
    }
    
    .btn-whatsapp-large {
        padding: 12px 15px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-preview {
        padding: 3rem 0;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .view-all-container {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}