/* ========================
   Variables
======================== */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Color Variables for easy theming */
    --primary-bg: #F9F5F0;
    --card-dark: #8D5524;
    --card-light: #eaddcf;
    --text-main: #2C2C2C;
    --text-muted: #666666;
    --accent-red: #9B1B30;
    --text-light: #eaddcf;
    --text-headers: #4A3B32;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 35px rgba(0,0,0,0.1);
}

/* ========================
   Reset & Base
======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--primary-bg);
}

/* ========================
   Layout & Typography
======================== */
h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
    color: var(--text-headers);
}

.site-header {
    background: var(--primary-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo{
    width: 150px;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.nav a:hover, .nav a.active {
    color: var(--card-dark);
}

.nav a.active {
    font-weight: bold;
    color: var(--card-dark);
    border-bottom: 2px solid var(--card-dark);
}

.site-footer {
    background-color: #4A3B32;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 4rem;
}

/* ========================
   Components
======================== */
.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 12px 24px;
    background: var(--card-dark);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: background 0.3s ease, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #6b3e18;
    transform: translateY(-2px);
}

/* ========================
   Sections
======================== */
/* Hero */
.hero {
    padding: 4rem 1rem;
    text-align: center;
    background: var(--card-light);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
}

/* Products */
.featured, .catalog, .product-detail, .contact {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.featured h3 {
    font-size: 1.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--white);
    max-width: 500px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card img {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
    margin-bottom: 1rem;
    object-fit: cover;
    filter: sepia(10%) contrast(105%);
}

.product-card h3 {
    margin-bottom: 0.25rem;
}

/* Catalog */
.catalog {
    margin: 3rem auto;
    padding: 0 1rem;
}

.catalog h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.product-card h3 {
    margin-top: 0.75rem;
    font-size: 1.1rem;
}

.product-card a {
    color: inherit;
    text-decoration: none;
}

.product-variant {
    font-size: 0.9rem;
    color: #666;
}

.price {
    font-weight: 700;
    color: var(--card-dark);
    font-size: 1.1rem;
}


/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Image wider than text */
    gap: 4rem;
    align-items: start;
}

/*Contact*/
.contact {
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact p {
    margin-bottom: 2rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background-color: var(--card-light);
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: none;
}

.contact-card h3 {
    color: var(--card-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/*
.social-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: bold;
    text-decoration: none;
}
*/

/* ========================
   Product Gallery
======================== */
.agotado {
    position: relative;
    width: 100%;
    top: 6px;
    background: var(--accent-red);
    color: white;
    padding: 6px 10px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-radius: 4px;
    z-index: 5;
}

.hidden {
    display: none;
}

.product-images img {
    width: 100%;
    max-height: 400px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.thumbnail-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    gap: 0.75rem;
    margin-top: 1rem;
}

.thumbnail-row img {
    width: 70px;
    height: 70px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
    touch-action: manipulation;
}

.thumbnail-row img.active {
    outline: 2px solid var(--text-muted);
    opacity: 1;
}

.thumbnail-row img:hover {
    opacity: 1;
    border: 2px solid var(--card-dark);
}

.product-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.product-info .price {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.description {
    margin-bottom: 1.5rem;
}

.color-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-list li {
    font-size: 0.85rem;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-list li.active {
    background: var(--card-dark);
    color: white;
    border-color: var(--card-dark);
}

.color-list li:hover {
    border-color: var(--card-dark);
    color: var(--card-dark);
}

.whatsapp-btn {
    display: inline-block;
    width: 100%; /* Full width button on mobile */
    text-align: center;
    padding: 1rem;
    background-color: var(--text-main);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 1rem;
    transition: background 0.3s;
}

.whatsapp-btn:hover {
    background-color: var(--card-dark);
}

/* ========================
   Responsive
======================== */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .logo {
        width: 120px;
    }

    .nav {
        flex-direction: column;
        gap: 0.7rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        font-size: 0.95rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .thumbnail-row {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 0.5rem;
    }

    .thumbnail-row img {
        width: 100%;
        max-width: 100px;
        height: auto;
    }

    .product-images img#mainImage {
        max-width: 100%;
        height: auto;
    }
}
