/*--------------------------------------
  1. Base Styles & Variables
--------------------------------------*/
:root {
    /* Base Colors for Elegant Contrast (Deep Burgundy/Cream) */
    --primary-color: #720026;         /* Deep Burgundy / Wine Red (For CTAs, Buttons) */
    --secondary-color: #A62141;       /* Muted Red / Raspberry (For Hover, Active states) */
    
    /* Backgrounds */
    --background-light: #FBF7F0;      /* Cream / Light Beige (Main background) */
    --background-darker: #EAE3D9;     /* Off-White / Muted Tan (Section separators, cards) */
    
    /* Text Colors */
    --text-dark: #2B2B2B;             /* Charcoal Black (Main text, headings) */
    --text-light: #FBF7F0;            /* Cream (Text on dark backgrounds) */
    
    /* Shadows */
    --shadow-color: rgba(0, 0, 0, 0.15); 
    
    /* Spacing */
    --padding-sm: 15px;
    --padding-md: 40px;
    --padding-lg: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--padding-sm);
}

h1, h2 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 2.2rem;
}

section {
    padding: var(--padding-lg) 0;
    border-bottom: 1px solid var(--background-darker);
}

/* style.css - Section 1. Base Styles & Variables (or new section) */

/* General Image Sizing for Content Areas (Detail Pages) */
img {
    max-width: 100%; /* 🌟 Ensures images never exceed the width of their parent container 🌟 */
    height: auto;    /* Maintains the image's original aspect ratio */
    display: block;  
    margin: 0 auto 20px auto; /* Centers the image and adds bottom spacing */
    border-radius: 8px; 
}

/* Links and Buttons (CTAs) */
a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s;
}

.cta-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--text-light) !important; 
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s, transform 0.1s;
    border: none; 
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/*--------------------------------------
  2. Header & Navigation
--------------------------------------*/
.main-header {
    background-color: var(--background-light);
    box-shadow: 0 2px 8px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px var(--padding-sm);
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color); 
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-dark); 
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

/* Hide the contact button on desktop nav to avoid clutter */
.nav-contact-btn {
    display: none; 
}

/*--------------------------------------
  3. Hero Section 
--------------------------------------*/
.hero-section {
    height: 75vh; /* Tighter vertical space */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-bg.jpg') center center / cover no-repeat;
    z-index: 1;
}
.background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Lighter overlay */
}

.hero-text-overlay {
    position: relative;
    z-index: 5;
    max-width: 700px; 
    padding: 15px; 
}

.hero-text-overlay h1 {
    font-size: 3.2rem; 
    margin-bottom: 10px; 
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text-overlay p {
    font-size: 1.1rem;
    margin-bottom: 25px; 
}

/*--------------------------------------
  4. Collections Carousel
--------------------------------------*/
.product-carousel {
    background-color: var(--background-darker);
    padding: var(--padding-lg) 0;
    text-align: center;
}

.swiper {
    width: 100%;
    height: auto;
    padding: 40px 0;
}

.swiper-slide {
    background: var(--background-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
}

.slide-image {
    width: 100%;
    max-height: 250px; /* FIXED HEIGHT for carousel uniformity */
    height: auto;
    object-fit: cover;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--background-darker); 
}

.product-slide h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin: 0 0 10px;
}

.product-slide p {
    padding: 0 20px 15px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/*--------------------------------------
  5. About Section
--------------------------------------*/
.about-section {
    text-align: center;
    background-color: var(--background-light);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/*--------------------------------------
  6. Contact Form & Messages
--------------------------------------*/
.contact-form-section {
    background-color: var(--background-darker);
    padding: var(--padding-lg) 0;
}

.contact-form-section h2 {
    color: var(--text-dark);
}

#contactForm {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-instruction {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
    padding: 12px;
    border: 1px solid var(--background-darker);
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: var(--background-light);
}

input:focus, textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(166, 33, 65, 0.1); 
    outline: none;
}

textarea {
    resize: vertical;
}

#contactForm button {
    grid-column: 1 / -1;
    margin-top: 10px;
    width: 100%;
    max-width: 250px;
    justify-self: center;
}

/* Form Submission Message Styles (TEXT COLOR ONLY) */
#form-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    display: none; 
    transition: color 0.3s;
}

/* Success Message Style: Green Text Only */
#form-message.success {
    background-color: transparent !important; 
    border: none !important; 
    color: #4CAF50 !important; 
}

/* Error Message Style: Red Text Only */
#form-message.error {
    background-color: transparent !important;
    border: none !important;
    color: #F44336 !important; 
}

/*--------------------------------------
  7. Footer
--------------------------------------*/
footer {
    background-color: var(--text-dark); 
    color: var(--background-light);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/*--------------------------------------
  8. Media Queries (Responsiveness)
--------------------------------------*/

/* Tablet and smaller screens */
@media (max-width: 768px) {
    
    .header-content {
        padding: 15px var(--padding-sm);
    }
    
    .main-nav {
        /* Hide main nav on small screens */
        display: none; 
    }
    
    .nav-contact-btn {
        display: inline-block; 
    }

    .hero-text-overlay h1 {
        font-size: 2.5rem;
    }
    
    .hero-text-overlay p {
        font-size: 1rem;
    }

    #contactForm {
        grid-template-columns: 1fr; /* Stack form fields vertically */
        padding: 25px;
    }

    .form-group {
        grid-column: 1 / -1; 
    }
}

/* Mobile screens */
@media (max-width: 480px) {
    h2 {
        font-size: 1.8rem;
    }

    .hero-section {
        height: 70vh;
    }
    
    .hero-text-overlay h1 {
        font-size: 2rem;
    }
    
    .hero-text-overlay p {
        font-size: 0.9rem;
    }
}
/* style.css - (Añade esta regla en una sección lógica, quizás cerca de "General Image Sizing") */

/* 🌟 Control específico para imágenes en páginas de detalle 🌟 */
.detail-page-image, /* Si tus imágenes tienen esta clase directamente */
.product-detail-image, /* O si es una clase que envuelve la imagen */
.detail-content img /* O si es una imagen dentro de un contenedor .detail-content */
{
    max-width: 800px; /* Ancho máximo para las imágenes de detalle */
    height: auto;
    max-height: 500px; /* Altura máxima para las imágenes de detalle */
    object-fit: contain; /* Asegura que la imagen completa sea visible */
    
    /* Replicamos algunas reglas generales para mayor seguridad */
    display: block;  
    margin: 0 auto 30px auto; /* Centrar y más margen inferior para separación */
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Una sombra sutil para destacarlas */
}

/* También, si tus páginas de detalle tienen un contenedor principal para el texto e imágenes,
   asegúrate de que este contenedor limite su ancho. */
.detail-page-content { /* Ejemplo: Si tienes un div principal en tus páginas de detalle */
    max-width: 900px; /* Ancho máximo del contenido principal */
    margin: 0 auto; /* Centrar el contenido principal */
    padding: var(--padding-lg) var(--padding-sm); /* Padding arriba/abajo y lateral */
    line-height: 1.8;
}

