* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
  --bg-dark: #1A1A1D;
  --panel-dark: #2A2A2D;
  --surface: #4E4E50;
  --muted: #6E6E70;
  --accent: #C3073F;
  --accent-dark: #A0052F;
  --white: #FFFFFF;
  --text-muted: #CCCCCC;
  --text-secondary: #AAAAAA;
  --gold: #FFD700;
  --card-border: rgba(78,78,80,0.3);
  --shadow-accent: rgba(195,7,63,0.3);
}

/* Scrollbar styling - rapi dan elegan */
html::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track {
    background: var(--bg-dark, #1A1A1D);
}

html::-webkit-scrollbar-thumb {
    background: var(--accent, #C3073F);
    border-radius: 5px;
    transition: background 0.3s ease;
}

html::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark, #A0052F);
}

/* Firefox scrollbar */
* {
    scrollbar-color: var(--accent, #C3073F) var(--bg-dark, #1A1A1D);
    scrollbar-width: thin;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1A1A1D;
    color: #FFFFFF;
    line-height: 1.6;
    box-sizing: border-box;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1A1A1D 0%, #4E4E50 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(195, 7, 63, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #C3073F;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #FFFFFF;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: #C3073F;
    transform: translateY(-2px);
}

.search-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    padding: 0.5rem 1rem;
    border: 2px solid #4E4E50;
    border-radius: 25px;
    background-color: #4E4E50;
    color: #FFFFFF;
    width: 250px;
}

.search-box::placeholder {
    color: #CCCCCC;
}

.cart-btn {
    background-color: #C3073F;
    color: #FFFFFF;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cart-btn:hover {
    background-color: #A0052F;
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #FFFFFF;
    color: #C3073F;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Main Content */
.main-content {
    min-height: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #C3073F 0%, #1A1A1D 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-btn {
    background-color: #FFFFFF;
    color: #C3073F;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background-color: #1A1A1D;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #C3073F;
}

.filters {
    background: linear-gradient(145deg, #4E4E50, #1A1A1D);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.filters-title {
    text-align: center;
    color: #C3073F;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.filter-group {
    background: rgba(26, 26, 29, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.filter-group:hover {
    border-color: #C3073F;
    transform: translateY(-2px);
}

.filter-group h4 {
    color: #C3073F;
    font-size: 1rem;
    margin: 0 0 1rem 0;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-dropdown {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #6E6E70;
    border-radius: 10px;
    background-color: #1A1A1D;
    color: #FFFFFF;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C3073F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.filter-dropdown:hover {
    border-color: #C3073F;
    background-color: #2A2A2D;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(195, 7, 63, 0.2);
}

.filter-dropdown:focus {
    outline: none;
    border-color: #C3073F;
    box-shadow: 0 0 0 3px rgba(195, 7, 63, 0.2);
}

.filter-dropdown option {
    background-color: #1A1A1D;
    color: #FFFFFF;
    padding: 0.5rem;
}

.products-grid {
    display: grid;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    max-width: 350px;
    justify-self: center;
    background: linear-gradient(145deg, #4E4E50, #1A1A1D);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: #C3073F;
    box-shadow: 0 15px 30px rgba(195, 7, 63, 0.3);
}

.product-image {
    width: 100%;
    height: 200px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #C3073F;
    overflow: hidden;
    position: relative;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* tampilkan seluruh gambar tanpa crop */
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}

.product-specs {
    font-size: 0.9rem;
    color: #CCCCCC;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.85rem;
    color: #AAAAAA;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #C3073F;
    margin-bottom: 1rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #FFD700;
}

.buy-btn {
    width: 100%;
    background-color: #C3073F;
    color: #FFFFFF;
    border: none;
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-btn:hover {
    background-color: #A0052F;
    transform: scale(1.02);
}

/* Cart Section */
.cart-section {
    padding: 2rem 0;
    background-color: #2f2f2f;
    display: none;
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    background-color: #1A1A1D;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total {
    text-align: right;
    font-size: 1.5rem;
    font-weight: bold;
    color: #C3073F;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 20%;
    background-color: #C3073F;
    color: #FFFFFF;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background-color: #A0052F;
}

/* Cart item layout: thumbnail + info + actions */
.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-thumb {
    width: 110px;
    height: 110px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-info {
    flex: 1;
}

.cart-info h4 {
    margin-bottom: 0.25rem;
    color: var(--white, #FFFFFF);
}

.cart-info p {
    margin: 0.25rem 0 0;
    color: var(--text-muted, #CCCCCC);
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.qty-btn {
    background: var(--accent, #C3073F);
    color: white;
    border: none;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
}

.remove-btn {
    background: #A0052F;
    color: white;
    border: none;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
}

/* Cart footer layout */
.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cart-total {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent, #C3073F);
}

.checkout-primary {
    background: linear-gradient(135deg, var(--accent, #C3073F), var(--accent-dark, #A0052F));
    color: var(--white, #FFFFFF);
    padding: 0.9rem 1.6rem;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.checkout-primary:hover {
    filter: brightness(0.95);
}

/* Footer */
.footer {
    background-color: #1A1A1D;
    padding: 3rem 0 1rem;
    border-top: 3px solid #C3073F;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #C3073F;
    margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
    color: #CCCCCC;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: #C3073F;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    background-color: #C3073F;
    width: 45px;
    height: 45px;
    color: #FFFFFF;
    padding: 0;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links a:hover {
    background-color: #A0052F;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4E4E50;
    margin-top: 2rem;
    color: #CCCCCC;
}

/* Contact: buat ikon dan teks sejajar, dan alamat multi-line ter-wrap rapi */
.footer-section .contact-item {
    display: flex;
    align-items: flex-start; /* agar alamat multi-line sejajar dari atas */
    gap: 0.6rem;
    color: #CCCCCC;
    margin-bottom: 0.6rem;
}

.contact-item:hover {
    color: #C3073F;
    cursor: pointer;
}

.footer-section .contact-icon {
    color: #C3073F;
    min-width: 22px; /* menyediakan ruang tetap sehingga teks sejajar */
    text-align: center;
    margin-top: 3px; /* sedikit dorongan agar icon sedikit sejajar dengan teks */
    font-size: 1.1rem;
}

/* Jika ada link di dalam contact-item (mis. email), pastikan tetap mewarisi warna */
.footer-section .contact-item a {
    color: inherit;
    text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hidden sections */
.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Product Detail Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, #4E4E50, #1A1A1D);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    border: 2px solid #C3073F;
    box-shadow: 0 20px 40px rgba(195, 7, 63, 0.3);
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(26, 26, 29, 0.5);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent, #C3073F);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark, #A0052F);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(135deg, #C3073F, #A0052F);
    padding: 2rem;
    border-radius: 18px 18px 0 0;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #FFFFFF;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-detail-image {
    background: linear-gradient(45deg, #4E4E50, #6E6E70);
    border-radius: 15px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #C3073F;
    border: 2px solid #6E6E70;
    overflow: hidden;
    position: relative;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 13px;
}

.product-detail-info h2 {
    color: #FFFFFF;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.product-detail-specs {
    background: rgba(26, 26, 29, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #4E4E50;
}

.product-detail-specs h4 {
    color: #C3073F;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.specs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.spec-item {
    color: #CCCCCC;
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

.spec-label {
    color: #C3073F;
    font-weight: bold;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: bold;
    color: #C3073F;
    margin-bottom: 1rem;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rating-stars {
    color: #FFD700;
    font-size: 1.2rem;
}

.rating-text {
    color: #CCCCCC;
    font-size: 1rem;
}

.product-detail-description {
    background: rgba(26, 26, 29, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #C3073F;
}

.product-detail-description h4 {
    color: #C3073F;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.product-detail-description p {
    color: #CCCCCC;
    line-height: 1.6;
    font-size: 0.95rem;
}

.product-detail-features {
    background: rgba(26, 26, 29, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.product-detail-features h4 {
    color: #C3073F;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    color: #CCCCCC;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(78, 78, 80, 0.3);
    position: relative;
    padding-left: 1.5rem;
}

.features-list li:before {
    content: "✓";
    color: #C3073F;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.features-list li:last-child {
    border-bottom: none;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid #4E4E50;
}

.modal-buy-btn {
    background: linear-gradient(135deg, #C3073F, #A0052F);
    color: #FFFFFF;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.modal-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(195, 7, 63, 0.4);
}

.modal-close-btn {
    background: linear-gradient(135deg, #6E6E70, #4E4E50);
    color: #FFFFFF;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 78, 80, 0.4);
}

/* Loading placeholder */
.image-loading {
    background: linear-gradient(90deg, #4E4E50 25%, #6E6E70 50%, #4E4E50 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #C3073F;
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 15px rgba(195, 7, 63, 0.4);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .search-box {
        width: 150px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .filters {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .filters-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-group {
        padding: 1rem;
    }
    
    .filter-group h4 {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: 95%;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-detail-image {
        height: 200px;
        font-size: 3rem;
    }

    .product-detail-info h2 {
        font-size: 1.5rem;
    }

    .product-detail-price {
        font-size: 1.5rem;
    }

    .specs-list {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-buy-btn,
    .modal-close-btn {
        min-width: auto;
        width: 100%;
    }

    /* Mobile bottom navigation styles */
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: linear-gradient(135deg, rgba(26,26,29,0.98), rgba(78,78,80,0.98));
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 0.5rem;
        padding: 0 0.5rem;
        border-top: 2px solid var(--accent, #C3073F);
        z-index: 2000;
        box-shadow: 0 -6px 18px rgba(0,0,0,0.6);
    }

    .mobile-nav-btn {
        background: transparent;
        border: none;
        color: var(--white, #FFFFFF);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font-size: 0.8rem;
        padding: 6px 10px;
        cursor: pointer;
    }

    .mobile-nav-btn i {
        font-size: 1.2rem;
    }

    .mobile-nav-label {
        font-size: 0.7rem;
        color: var(--text-muted, #CCCCCC);
    }

    .mobile-cart-count {
        position: absolute;
        top: 6px;
        right: 14px;
        background: var(--white, #FFFFFF);
        color: var(--accent, #C3073F);
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
    }

    /* add bottom padding so page content isn't hidden behind mobile nav */
    body {
        padding-bottom: 80px;
    }
}

/* Hide mobile nav on larger screens */
.mobile-nav {
    display: none;
}

/* Mobile-specific refinements for better responsiveness */
@media (max-width: 480px) {
    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .search-box {
        width: 120px;
    }

    .product-image {
        height: 140px; /* lebih kecil supaya tidak memakan layar */
    }

    .product-card {
        padding: 1rem;
        max-width: 100%;
    }

    .product-info h3 {
        font-size: 1.05rem;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .filters {
        padding: 1rem;
    }

    .filters-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Cart: tumpuk vertikal agar lebih enak di mobile */
    .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .cart-thumb {
        width: 100%;
        height: 140px;
        border-radius: 8px;
    }

    .cart-thumb img {
        object-fit: contain;
        width: 100%;
        height: 100%;
    }

    .cart-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .cart-actions span {
        display: inline-block;
        min-width: 28px;
        text-align: center;
    }

    .cart-footer {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 0.6rem;
    }

    .cart-total {
        text-align: left;
        font-size: 1.2rem;
    }

    .checkout-primary {
        width: 100%;
    }

    /* Mobile nav active state */
    .mobile-nav-btn.active {
        color: var(--accent, #C3073F);
        font-weight: 700;
    }
}

/* Make mobile nav visible on small screens */
@media (max-width: 768px) {
    .mobile-nav { display: flex; }
}