:root {
    --primary: #6B1F3F;
    --secondary: #8B4513;
    --accent: #D4AF37;
    --text: #2C2C2C;
    --bg: #FAF9F6;
    --white: #FFFFFF;
    --border: #E5E5E5;
    --error: #C41E3A;
    --success: #2E7D32;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    color: var(--text);
    background-image: url('/images/background.jpg');
    background-size: 1500px auto;
    background-repeat: repeat;
    background-position: center top;
    line-height: 1.6;
}

/* Original Hero Section */
.hero-original {
    background: rgba(255, 255, 255, 0.75);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.hero-left {
    flex: 1;
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-style: italic;
    color: #6B8E23;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-nav-btn {
    background: #8B9F5A;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-nav-btn:hover {
    background: #7A8E49;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero-right {
    flex: 0 0 auto;
}

.hero-grapes {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* Top Right Controls */
.top-right-controls {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 1000;
}

.page-header {
    text-align: center;
    padding: 2rem 0 1rem;
    background: rgba(255, 255, 255, 0.75);
}

.cart-icon-top {
    position: relative;
}

.cart-icon-top a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

.lang-switcher-top {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 0.25rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.lang-btn img {
    width: 30px;
    height: auto;
    display: block;
}

.lang-btn.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.lang-btn:hover {
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.all-prices {
    text-align: right;
    color: #C41E3A;
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Product Grid */
.category-section {
    margin-bottom: 4rem;
}

.category-section h2 {
    color: #6B8E23;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    font-weight: normal;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.product-card img {
    max-width: 100%;
    height: 300px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.product-card .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    text-decoration: none;
}

.btn:hover {
    background: var(--secondary);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--white);
    margin-left: 1rem;
    font-size: 1.5rem;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.7;
}

/* Cart Page */
.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    align-items: center;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
}

.quantity-control input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--border);
    padding: 0.25rem;
}

.cart-summary {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2rem;
    max-width: 400px;
    margin-left: auto;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.cart-summary-row.total {
    border-top: 2px solid var(--border);
    padding-top: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Checkout Form */
.checkout-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-section {
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.error-message {
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
    }
    
    .hero-grapes {
        max-width: 300px;
    }
    
    .top-right-controls {
        position: static;
        justify-content: center;
        margin: 1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .product-detail {
        flex-direction: column;
    }
}

/* Product Detail Page */
.product-detail {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.product-detail-image {
    flex: 1;
    max-width: 500px;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h1 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.product-actions {
    margin-top: 2rem;
}
