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

:root {
    --primary-color: #8b7355;
    --secondary-color: #2c2c2c;
    --accent-color: #d4af37;
    --text-color: #333;
    --light-bg: #f8f6f3;
    --white: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

.tagline {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-style: italic;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-icon {
    position: relative;
    color: var(--text-color);
    font-size: 1.5rem;
    text-decoration: none;
}

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

.admin-btn {
    color: var(--text-color);
    font-size: 1.3rem;
    text-decoration: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 5px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #16130f;
    padding: 80px 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin-left: 60px;
    padding: 40px;
    background: rgba(255, 248, 240, 0.72);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    z-index: 1;
    background: linear-gradient(90deg, rgba(248, 246, 243, 0.96) 0%, rgba(248, 246, 243, 0.8) 36%, rgba(248, 246, 243, 0.12) 72%, rgba(248, 246, 243, 0.04) 100%);
}

/* Section Padding */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 300px;
}

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

.category-card:hover img {
    transform: scale(1.1);
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 40px 20px 20px;
}

.category-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.category-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card--clickable {
    cursor: pointer;
}

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

.product-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.product-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-add-cart {
    flex: 1;
    padding: 12px 14px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

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

.btn-secondary-outline {
    flex: 1;
    padding: 12px 14px;
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid rgba(44, 44, 44, 0.16);
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    gap: 10px;
}

.featured-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.featured-product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.featured-product-card:hover {
    transform: translateY(-5px);
}

/* Testimonials */
.testimonials {
    background: var(--light-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.rating {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    color: #666;
}

.client-name {
    font-weight: 600;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

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

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

.footer-col a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Product Modal */
.product-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
}

.product-modal.is-open {
    display: flex;
}

.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 16, 13, 0.62);
    backdrop-filter: blur(4px);
}

.product-modal-panel {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.product-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 2;
}

.product-modal-gallery {
    padding: 24px;
    background: #fbf8f4;
}

.product-modal-gallery > img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-modal-thumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.thumb {
    width: 82px;
    height: 82px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    background: none;
    cursor: pointer;
}

.thumb.active {
    border-color: var(--primary-color);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-modal-details {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.product-modal-category {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.product-modal-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 3vw, 3rem);
    color: var(--secondary-color);
}

.product-modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.product-modal-description {
    color: #666;
}

.product-modal-meta {
    display: grid;
    gap: 16px;
}

.product-modal-meta strong {
    display: block;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f3ebe3;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.chip-empty {
    opacity: 0.72;
}

.product-modal-add {
    margin-top: auto;
    width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid,
    .featured-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 15px 0;
    }

    .header .container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.7rem;
    }
    
    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.95);
        z-index: 9999;
        padding: 80px 20px 20px;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
    }

    .nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav a {
        display: block;
        padding: 20px;
        color: white;
        font-size: 1.2rem;
    }
    
    .mobile-menu-btn {
        display: block;
        color: var(--secondary-color);
        z-index: 10000;
        position: relative;
    }
    
    .hero {
        min-height: 500px;
        padding: 40px 0;
    }

    .hero-content {
        margin: 0 15px;
        padding: 25px 20px;
        max-width: 100%;
        border-radius: 20px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-card {
        height: 250px;
    }

    .products-grid,
    .featured-slider {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image {
        height: 280px;
    }

    .product-name {
        font-size: 1.2rem;
    }

    .product-price {
        font-size: 1.3rem;
    }

    .product-actions {
        flex-direction: row;
        gap: 8px;
    }

    .btn-add-cart,
    .btn-secondary-outline {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col {
        text-align: left;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.7rem;
        bottom: 20px;
        right: 20px;
    }

    .product-modal {
        padding: 12px;
        align-items: flex-start;
    }

    .product-modal-panel {
        grid-template-columns: 1fr;
        max-height: 95vh;
        margin-top: 20px;
    }

    .product-modal-gallery {
        padding: 20px;
    }

    .product-modal-gallery > img {
        height: 280px;
    }

    .product-modal-details {
        padding: 20px;
    }

    .product-modal-details h3 {
        font-size: 1.8rem;
    }

    .product-modal-price {
        font-size: 1.6rem;
    }

    .thumb {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .hero {
        min-height: 450px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-add-cart,
    .btn-secondary-outline {
        width: 100%;
    }

    .cart-icon {
        font-size: 1.3rem;
    }

    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }

    .product-price {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .product-modal-price {
        font-size: 1.6rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .product-modal-details h3 {
        font-size: 1.5rem;
    }
}
