* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ee4d2d;
    --primary-dark: #d43c1e;
    --text: #222;
    --text-light: #757575;
    --border: #e8e8e8;
    --bg: #f5f5f5;
    --white: #fff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container-header{
max-width:1200px;
margin:auto;
padding:0 20px;
display:flex;
align-items:center;
justify-content:space-between;
gap:2rem;
width:100%;
}

/* Navbar Styles */
.navbar{
background: linear-gradient(to bottom, #808080, #666666);
min-height:120px;
display:flex;
align-items:center;
position: sticky;
top:0;
z-index:1000;
}

.container{
max-width:1200px;
margin:auto;
padding:0 20px;
}

/* Brand Styles */
.nav-brand a{
display:flex;
align-items:center;
gap:10px;
color:white;
text-decoration:none;
font-size:1.5rem;
font-weight:bold;
}

.nav-logo {
    height: 60px;
    width: auto;
}

/* Search Section */
.search-section {
    flex: 1;
    max-width: 500px;
}

.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    padding: 12px 24px;
    background: #404040;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #333333;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #f0f0f0;
}

.nav-menu li a.active {
    color: white;
    font-weight: 600;
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: white;
    border-radius: 2px;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    padding: 5px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .search-section {
        max-width: 350px;
    }
    
    .nav-menu {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-brand {
        order: 1;
    }
    
    .cart-icon {
        order: 2;
    }
    
    .search-section {
        order: 3;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .nav-menu {
        order: 4;
        width: 100%;
        justify-content: center;
        padding: 1rem 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .search-btn {
        padding: 12px 16px;
    }
}

/* HERO */

.hero{
padding:80px 0;
min-height:500px;
display:flex;
align-items:center;
}

.hero-grid{
display:grid;
grid-template-columns:55% 45%;
gap:40px;
align-items:center;
}

.hero-image img{
width:100%;
height:100%;
object-fit:cover;
border-radius:10px;
}

.hero-features{
display:flex;
flex-direction:column;
gap:10px;
position:relative;
overflow:hidden;
}

.hero-features::before {
content: '';
position: absolute;
top: -50%;
right: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(238,77,45,0.03) 0%, transparent 50%);
animation: rotate 30s linear infinite;
}

@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

.section-title {
text-align: center;
font-size: 32px;
margin-bottom: 40px;
color: var(--text);
position: relative;
}

.section-title::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 3px;
background: var(--primary);
border-radius: 2px;
}

.features-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
max-width: 1000px;
margin: 0 auto;
padding: 0 20px;
}

.feature-card {
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
position: relative;
z-index: 1;
padding: 25px 15px;
border-radius: 8px;
text-align: center;
box-shadow: 0 5px 20px rgba(0,0,0,0.05);
transition: all 0.3s ease;
border: 1px solid rgba(238, 77, 45, 0.1);
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}

.feature-card::after {
content: '';
position: absolute;
bottom: -5px;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 2px;
background: var(--primary);
transition: width 0.3s;
}

.feature-card:hover::after {
width: 50px;
}

.feature-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(238, 77, 45, 0.15);
border-color: var(--primary);
}

.feature-icon {
font-size: 48px;
margin-bottom: 20px;
animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
}

.feature-card:nth-child(1) .feature-icon {
animation-delay: 0s;
}

.feature-card:nth-child(2) .feature-icon {
animation-delay: 0.3s;
}

.feature-card:nth-child(3) .feature-icon {
animation-delay: 0.6s;
}

.feature-title {
font-size: 20px;
font-weight: 700;
margin-bottom: 10px;
color: var(--text);
}

.feature-description {
font-size: 14px;
color: var(--text-light);
line-height: 1.6;
margin: 0;
}

/* ========== FILTER OPTIONS ========== */
.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-options-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-options-bar select {
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
    min-width: 150px;
    transition: all 0.3s;
}

.filter-options-bar select:hover {
    border-color: var(--primary);
}

.filter-options-bar select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ========== PRODUCT GRID ========== */
.page-title {
    margin: 30px 0;
    font-size: 28px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.product-card {
    background: var(--white);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.35s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 12px;
}

.product-title {
    font-size: 14px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
}

/* Varian Tags */
.varian-tags {
    display: flex;
    gap: 5px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.varian-tag {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

/* ========== DETAIL PRODUK ========== */
.product-detail {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    background: var(--white);
    padding: 20px;
    border-radius: 3px;
    margin: 30px 0;
}

.detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.detail-info h1 {
    margin-bottom: 10px;
}

.detail-price {
    background: #fafafa;
    padding: 20px;
    margin: 20px 0;
    border-radius: 3px;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

/* Varian Selector */
.varian-section {
    margin: 20px 0;
}

.varian-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.varian-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.varian-option {
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 3px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.varian-option:hover {
    border-color: var(--primary);
}

.varian-option.selected {
    border-color: var(--primary);
    background: #fceae8;
    color: var(--primary);
}

/* Quantity */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #f0f0f0;
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--border);
}

/* Buttons */
.btn-add-cart,
.btn-buy-now {
    padding: 15px 30px;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-cart {
    background: #fceae8;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-right: 10px;
}

.btn-add-cart:hover {
    background: var(--primary);
    color: white;
}

.btn-buy-now {
    background: var(--primary);
    color: white;
}

.btn-buy-now:hover {
    background: var(--primary-dark);
}

/* ========== CHECKOUT ========== */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    margin: 30px 0;
}

.checkout-card {
    background: white;
    padding: 20px;
    border-radius: 3px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.checkout-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.checkout-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-weight: 700;
    font-size: 18px;
}

.btn-whatsapp {
    width: 100%;
    padding: 15px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

/* Tombol quantity */
.qty-btn {
    width: 30px;
    height: 30px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

/* Tombol hapus */
.delete-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0 5px;
}

.delete-btn:hover {
    opacity: 1;
    color: #ff4444;
}

/* ========== FORCE FIX PRODUK KATEGORI ========== */
.produk-kategori {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important; /* Paksa 5 kolom */
    gap: 15px !important;
    margin: 20px 0 40px 0 !important;
    width: 100% !important;
}

.produk-kategori .product-card {
    width: 100% !important;
    margin: 0 !important;
}

/* Responsive */
@media (max-width: 992px) {
    .produk-kategori {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .produk-kategori {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .produk-kategori {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 400px) {
    .produk-kategori {
        grid-template-columns: 1fr !important;
    }
}

/* ========== TOAST NOTIFICATION ========== */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 320px;
    overflow: hidden;
    z-index: 10000;
    animation: toastSlideIn 0.3s ease;
    border-left: 4px solid #4CAF50;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.toast-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.toast-text {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text);
}

.toast-message {
    font-size: 13px;
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 4px;
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    font-size: 10px;
}

.toast-action {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s;
}

.toast-action:hover {
    background: var(--primary-dark);
}

.toast-progress {
    height: 3px;
    background: var(--primary);
    width: 100%;
    animation: progressShrink 3s linear forwards;
}

.toast-hide {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes progressShrink {
    from { width: 100%; }
    to { width: 0%; }
}

/* ========== MODAL KONFIRMASI (untuk hapus item) ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.2s ease;
}

.modal-confirm {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.modal-confirm h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text);
}

.modal-confirm p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    flex: 1;
    padding: 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-danger {
    flex: 1;
    padding: 12px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #cc0000;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========== TOMBOL QUANTITY DI CHECKOUT ========== */
.qty-btn {
    width: 30px;
    height: 30px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.delete-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0 5px;
}

.delete-btn:hover {
    opacity: 1;
    color: #ff4444;
}

/* ========== FOOTER ========== */
footer {
text-align: center;
padding: 30px;
background: linear-gradient(to top, #808080, #666666);
color: white;
margin-top: 40px;
width: 100%;
}

