:root {
    --accent: #b07d4d; 
    --dark: #1a1a1a;
    --light-bg: #fdfaf7;
    --white: #ffffff;
    --success: #25D366;
}

body { 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    background-color: var(--light-bg); 
    color: var(--dark);
    line-height: 1.6;
}

/* Header & Logo */
header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 1.2rem 8%; 
    background: var(--white); 
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky; 
    top: 0; 
    z-index: 1000;
}

header h1 { 
    margin: 0; 
    font-size: 1.4rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    font-weight: 700;
}

#cart-status { 
    cursor: pointer; 
    font-weight: 600; 
    background: var(--dark); 
    color: white; 
    padding: 10px 20px; 
    border-radius: 50px;
    transition: all 0.3s ease;
}

#cart-status:hover { background: var(--accent); transform: translateY(-2px); }

/* Product Gallery */
#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px; 
    padding: 40px 8%;
}

.product-card {
    background: var(--white); 
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
}

.product-card img { 
    width: 100%; 
    height: 320px; 
    object-fit: cover; 
    background: #f0f0f0; 
}

.product-info { padding: 20px; }

.product-card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--dark); }

.price { 
    font-weight: 700; 
    color: var(--accent); 
    font-size: 1.3rem; 
    margin-bottom: 15px; 
}

.controls { display: flex; gap: 10px; align-items: center; }

input[type="number"] { 
    width: 50px; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    text-align: center;
}

.add-btn {
    background: var(--dark); 
    color: white; 
    border: none;
    padding: 12px; 
    border-radius: 8px; 
    cursor: pointer; 
    flex-grow: 1;
    font-weight: 600;
    transition: 0.2s;
}

.add-btn:hover { background: var(--accent); }

/* Modal & Cart System */
.hidden { display: none !important; }

#cart-modal {
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); 
    backdrop-filter: blur(8px); 
    z-index: 2000;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.cart-content { 
    background: white; 
    padding: 30px; 
    border-radius: 20px; 
    width: 90%; 
    max-width: 400px; 
    max-height: 80vh;
    overflow-y: auto;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin: 20px 0;
}

.checkout-btn { 
    background: var(--success); 
    color: white; 
    border: none; 
    padding: 16px; 
    width: 100%; 
    border-radius: 12px;
    font-size: 1.1rem; 
    font-weight: 700; 
    cursor: pointer;
}

.close-btn {
    background: transparent; 
    border: none; 
    color: #888;
    width: 100%; 
    padding: 15px; 
    cursor: pointer;
    text-decoration: underline;
}