:root {
    --bg-color: #FAFAF8;
    --text-primary: #1A1A1A;
    --text-secondary: #6B6B6B;
    --accent-color: #8B7355;
    --card-bg: #FFFFFF;
    --border-color: #EAEAEA;
    --overlay-bg: rgba(0, 0, 0, 0.6);
    --cart-bg: #F8F8F6;
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 6%;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover, nav a.active { color: var(--accent-color); }

.search-container {
    position: relative;
}

.search-input {
    padding: 8px 30px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    width: 200px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    width: 250px;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.cart-icon { 
    cursor: pointer; 
    position: relative;
    font-size: 1.2rem;
}

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

/* Hero Section */
.hero {
    height: 80vh;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                      url('../image/Gemini_Generated_Image_kscusokscusokscu(1).png'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    padding: 12px 35px;
    background-color: white;
    color: black;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

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

/* Category Filter */
.filter-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Product Grid Section */
.products-section {
    padding: 80px 6%;
    max-width: 1500px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 55px;
}

.section-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.product-card {
    background: var(--card-bg);
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.img-container {
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.add-cart-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-card:hover .add-cart-btn {
    opacity: 1;
}

.add-cart-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
    flex: 1;
}

.product-price {
    font-size: 1.05rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

/* Product Detail Modal */
.product-modal {
    background: white;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.modal-close:hover { color: var(--text-primary); }

.modal-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.modal-info {
    padding: 20px 0;
}

.modal-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.modal-price {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    font-size: 1rem;
}

.qty-btn:hover { background-color: var(--bg-color); }

.qty-value {
    min-width: 40px;
    text-align: center;
    font-size: 1rem;
}

.btn-secondary {
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #7a634a;
}

/* Cart Modal */
.cart-modal {
    background: white;
    width: 100%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-title {
    font-size: 1.4rem;
    font-weight: 500;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

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

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--accent-color);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.cart-qty-btn {
    width: 25px;
    height: 25px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    font-size: 0.8rem;
}

.cart-qty-value {
    min-width: 30px;
    text-align: center;
    font-size: 0.85rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 8px;
}

.cart-item-remove:hover { color: #ff4444; }

.cart-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
}

.cart-summary {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.cart-subtotal,
.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-total {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* About Section */
.about-section {
    padding: 100px 6%;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    padding: 80px 5%;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 55px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 28px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

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

.form-textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 6% 40px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 55px;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1px solid #333;
    padding-bottom: 55px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 15px; }

.footer-col a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col a:hover { color: white; }

.copyright {
    text-align: center;
    padding-top: 30px;
    color: #666;
    font-size: 0.85rem;
}

/* Page Content */
.page-content {
    min-height: 60vh;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .search-input { width: 150px; }

    .hero-content h1 { font-size: 2.5rem; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .img-container { height: 200px; }

    .product-modal { grid-template-columns: 1fr; }
    .modal-img { height: 250px; }

    .about-content { grid-template-columns: 1fr; }
    .about-img { height: 250px; }

    .contact-form { padding: 20px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
}