/* index.css */

html {
    scroll-behavior: smooth;
}

/* Design Tokens - Colors matching the original screenshots */
:root {
    --primary-bg: #ffffff;
    --outer-bg: #ece5c8; /* Creamy color fallback */
    
    --top-bar-bg: #dda652; /* Mustard golden/yellow top bar */
    --top-bar-text: #3d251e;
    
    --menu-text: #3d251e;
    --menu-active-green: #829c38; /* Green line under active menu */
    
    --announcement-bg: #bc360a; /* Dark Orange/Red banner background */
    --announcement-text: #ffffff;
    
    --button-gold: #cc8400; /* Mustard gold for buttons */
    --button-gold-hover: #b87500;
    
    --footer-bg: #5a371c; /* Deep Chocolate Brown footer background */
    --footer-text: #ffffff;
    
    --text-earth: #3d251e;
    --text-muted: #6e5852;
    
    --font-headers: 'Bitter', serif;
    --font-body: 'Open Sans', sans-serif;
    
    --border-color: rgba(198, 139, 89, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Global Reset & Body */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--outer-bg);
    color: var(--text-earth);
    line-height: 1.6;
}

/* Apply repeating wallpaper background */
body.custom-background {
    background-image: url('public/images/layout/fondo-01.webp');
    background-position: right top;
    background-repeat: repeat;
    background-attachment: scroll;
}

/* Boxed Layout Container */
#page-container {
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--primary-bg);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.container {
    width: 90%;
    max-width: 1020px;
    margin: 0 auto;
}

/* Top Contact Bar */
#top-header {
    background-color: var(--top-bar-bg);
    color: var(--top-bar-text);
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-info span {
    margin-right: 20px;
}

/* Main Header (Sticky Navigation) */
#main-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
}

#logo {
    height: 60px;
    display: block;
    transition: var(--transition);
}

#logo:hover {
    transform: scale(1.03);
}

/* Header Navigation Menu */
#top-menu-nav {
    display: block;
}

#top-menu {
    list-style: none;
    display: flex;
    gap: 24px;
}

.menu-item {
    font-family: var(--font-headers);
    font-size: 1.05rem;
    font-weight: 700;
}

.menu-item a {
    text-decoration: none;
    color: var(--menu-text);
    padding: 6px 0;
    display: block;
    transition: var(--transition);
}

.menu-item a:hover, .menu-item.active a {
    color: var(--menu-active-green);
}

.menu-item.active a {
    border-bottom: 3px solid var(--menu-active-green);
}

/* Announcement Banner Box (Redesigned: Warm Premium Style) */
.announcement-banner {
    padding: 30px 0 10px 0;
}

.banner-box {
    background-color: #fdf9f0; /* Soft warm cream */
    color: var(--text-earth);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
    border: 1px solid rgba(221, 166, 82, 0.4); /* Soft gold border */
    box-shadow: 0 4px 15px rgba(90, 55, 28, 0.05);
}

.banner-box h2 {
    font-family: var(--font-headers);
    color: var(--announcement-bg); /* Keeping the brand dark red accent for the primary title */
    font-size: 1.65rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.banner-box h3 {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 600;
}

.banner-box ul {
    list-style-type: none; /* Custom bullet icons */
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.8;
}

.banner-box li::before {
    content: "📍 ";
    margin-right: 8px;
}

.banner-box li {
    margin-bottom: 6px;
}

/* Home Page Photo Slider */
.home-slider {
    padding: 20px 0;
}

.slider-container {
    position: relative;
    width: 90%;
    max-width: 920px;
    height: 420px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

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

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(61, 37, 30, 0.5);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background-color: rgba(61, 37, 30, 0.85);
}

.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

/* Catalog Section */
.catalog-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.catalog-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Base title styles */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -1px;
    display: inline-block;
    margin-bottom: 24px;
    color: var(--text-earth);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: var(--button-gold);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Filters and Search box */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto 32px auto;
    flex-wrap: wrap;
    gap: 16px;
}

#search-input {
    padding: 10px 20px;
    border: 1px solid rgba(90, 55, 28, 0.25);
    border-radius: 4px;
    width: 280px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

#search-input:focus {
    border-color: var(--button-gold);
    box-shadow: 0 0 5px rgba(221, 166, 82, 0.3);
}

.category-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background-color: #ffffff;
    border: 1px solid rgba(90, 55, 28, 0.2);
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-earth);
    transition: var(--transition);
}

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

.catalog-counter {
    width: 90%;
    margin: -16px auto 24px auto;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 90%;
    margin: 0 auto;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid rgba(90, 55, 28, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(90, 55, 28, 0.1);
    border-color: rgba(221, 166, 82, 0.4);
}

.product-img-wrapper {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.product-title {
    font-family: var(--font-headers);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-earth);
}

.product-description {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--announcement-bg);
}

.add-btn {
    background-color: var(--button-gold);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-btn:hover {
    background-color: var(--button-gold-hover);
}

/* Info Sections (History and Location) */
.info-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Offset for sections during anchor navigation due to sticky header */
section[id] {
    scroll-margin-top: 100px;
}

.info-section.alternate-bg {
    background-color: #fcfaf3;
}

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

.info-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.info-container p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.info-container h3 {
    font-family: var(--font-headers);
    font-size: 1.3rem;
    margin-bottom: 24px;
    font-weight: 700;
}

.media-mentions {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-weight: 700;
    font-family: var(--font-headers);
    margin-bottom: 30px;
    color: var(--text-muted);
}

.btn-golden {
    display: inline-block;
    background-color: var(--button-gold);
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-headers);
    transition: var(--transition);
}

.btn-golden:hover {
    background-color: var(--button-gold-hover);
}

.address {
    font-weight: 700;
}

/* Footer Feedback Form Section */
.footer-form-section {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0;
}

.footer-form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    width: 90%;
    max-width: 920px;
    margin: 0 auto;
}

.comment-form-box h3 {
    font-family: var(--font-headers);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.quick-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-btn-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.contact-btn-item:hover {
    background-color: white;
    color: var(--footer-bg);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-btn-item.wa:hover {
    border-color: #25D366;
    color: #25D366;
}

.contact-icon {
    font-size: 1.25rem;
}

/* Social links box */
.social-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: white;
    font-weight: 800;
}

.fb .social-icon { background-color: #3b5998; }
.yt .social-icon { background-color: #cc181e; }
.ig .social-icon { background-color: #3f729b; }

/* Small Copyright Colophon */
#colophon {
    background-color: #4a2d16;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
    font-weight: 300;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--text-earth);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    #top-menu-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }

    #top-menu-nav.open {
        display: block;
    }

    #top-menu {
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
    }

    .menu-item a {
        padding: 12px 24px;
        border-bottom: 1px solid rgba(90, 55, 28, 0.06);
    }

    .menu-item.active a {
        border-bottom: 1px solid rgba(90, 55, 28, 0.06);
        border-left: 4px solid var(--menu-active-green);
    }
    
    .top-header-content {
        justify-content: center;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .footer-form-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .press-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Interactive Press Grid Styling */
.press-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.press-card {
    background-color: #ffffff;
    border: 1px solid rgba(90, 55, 28, 0.15);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 160px;
}

.press-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(90, 55, 28, 0.12);
    border-color: var(--button-gold);
}

.press-logo-box {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-earth);
    margin-bottom: 8px;
}

.press-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 12px;
}

.press-action {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--button-gold);
}

.press-card:hover .press-action {
    color: var(--button-gold-hover);
    text-decoration: underline;
}

/* CSS Modals (Unified Styles) */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(61, 37, 30, 0.7); /* Deep brown semi-transparent shadow */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 780px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: zoomIn 0.3s ease-out;
}

.report-modal-content {
    max-width: 820px;
    background-color: #1a0f0a; /* Dark background for media */
    padding: 40px 20px 20px 20px;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 20px;
    color: #aaaaaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover {
    color: var(--announcement-bg);
}

/* Modal Inner Structures */
#report-modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 300px;
}

#report-modal-body img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

#report-modal-body iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 8px;
}

/* Keyframes */
@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 1500;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
}

/* Product Details Modal Layout */
.product-modal-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    margin-top: 15px;
    text-align: left;
}

@media (max-width: 768px) {
    .product-modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Modal Image Gallery */
.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-main-image-wrapper {
    position: relative;
    padding-top: 75%;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(90, 55, 28, 0.1);
}

.modal-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumb-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumb-img.active, .thumb-img:hover {
    border-color: var(--button-gold);
}

/* Modal Info Panel */
.modal-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.modal-product-title {
    font-family: var(--font-headers);
    font-size: 1.8rem;
    color: var(--text-earth);
    margin-bottom: 8px;
    font-weight: 700;
}

.modal-product-category {
    display: inline-block;
    background-color: var(--outer-bg);
    color: var(--text-earth);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 16px;
    width: fit-content;
}

.modal-product-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Size Selector and Price */
.size-selector-container {
    margin-bottom: 20px;
}

.size-selector-label {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
    color: var(--text-earth);
}

.size-selector-select {
    width: 100%;
    padding: 12px;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid rgba(90, 55, 28, 0.25);
    border-radius: 6px;
    background-color: white;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.size-selector-select:focus {
    border-color: var(--button-gold);
}

.modal-price-container {
    margin-bottom: 24px;
}

.modal-price-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.modal-price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--announcement-bg);
    display: block;
    margin-top: 4px;
}

/* WhatsApp CTA Button */
.btn-order-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-order-wa:hover {
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transform: translateY(-2px);
    color: white;
}

.btn-order-wa svg {
    width: 24px;
    height: 24px;
}

/* Drawer Overlays (Unified Slide-in from Right) */
.cart-drawer-modal, #product-modal {
    display: none;
    position: fixed;
    z-index: 2100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 37, 30, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    justify-content: flex-end;
    align-items: stretch;
}

.cart-drawer-modal.active, #product-modal.active {
    display: flex;
}

/* Drawer Content Cards (Product details & Cart) */
.cart-drawer, #product-modal .modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 520px; /* Wider drawer on PC */
    height: 100%;
    height: 100dvh;
    max-height: 100%;
    max-height: 100dvh;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease-out;
    border-radius: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.cart-drawer-header {
    padding: 20px;
    border-bottom: 1px solid rgba(90, 55, 28, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    font-family: var(--font-headers);
    font-size: 1.4rem;
    color: var(--text-earth);
}

.close-cart {
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    color: #aaaaaa;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--announcement-bg);
}

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 20px 10px 20px;
}

.cart-empty-state {
    text-align: center;
    color: var(--text-muted);
    margin-top: 50px;
    font-size: 1rem;
}

/* Cart Item Cards */
.cart-item {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid rgba(90, 55, 28, 0.08);
    padding-bottom: 16px;
    text-align: left;
}

.cart-item-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(90, 55, 28, 0.1);
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-earth);
}

.cart-item-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-item-note {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--button-gold-hover);
    background-color: #fdf9f0;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 4px;
    border-left: 3px solid var(--button-gold);
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

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

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(90, 55, 28, 0.2);
    background-color: white;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.9rem;
}

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

.qty-val {
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--announcement-bg);
}

.cart-item-remove {
    background: none;
    border: none;
    color: #aaaaaa;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    align-self: flex-start;
    padding: 0;
    line-height: 1;
}

.cart-item-remove:hover {
    color: var(--announcement-bg);
}

/* Cart Scrollable Body & Sticky Footer */
.cart-scrollable-body {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cart-shipping-form {
    padding: 20px;
    background-color: #fdf9f0;
    border-top: 1px solid rgba(90, 55, 28, 0.06);
}



/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Stylized item note input inside product modal */
.modal-note-container {
    margin-bottom: 16px;
}

.modal-note-label {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
    color: var(--text-earth);
}

.modal-note-input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(90, 55, 28, 0.25);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    transition: var(--transition);
}

.modal-note-input:focus {
    border-color: var(--button-gold);
}

/* Quantity selector inside product modal */
.modal-qty-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-qty-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-earth);
}

.modal-qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(90, 55, 28, 0.3);
    background-color: white;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-family: inherit;
}

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

.modal-qty-val {
    font-weight: 700;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Cart Shipping Form Styles */
.cart-shipping-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(90, 55, 28, 0.08);
    text-align: left;
}

.shipping-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shipping-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-earth);
}

.shipping-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(90, 55, 28, 0.25);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    background-color: white;
    transition: var(--transition);
}

.shipping-input:focus {
    border-color: var(--button-gold);
}

.shipping-toggle-group {
    display: flex;
    gap: 8px;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid rgba(90, 55, 28, 0.25);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
}

.phone-input-wrapper:focus-within {
    border-color: var(--button-gold);
}

.phone-prefix {
    padding: 8px 10px;
    background-color: #fdf9f0;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    border-right: 1px solid rgba(90, 55, 28, 0.15);
    user-select: none;
}

.phone-input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
}

.toggle-btn-label {
    flex: 1;
    cursor: pointer;
}

.toggle-btn-label input {
    display: none;
}

.toggle-btn-label span {
    display: block;
    padding: 8px;
    text-align: center;
    border: 1px solid rgba(90, 55, 28, 0.2);
    border-radius: 4px;
    background-color: white;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.toggle-btn-label input:checked + span {
    background-color: var(--button-gold);
    color: white;
    border-color: var(--button-gold);
}

/* Order Tracking Timeline Styling */
.tracking-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 40px auto 20px auto;
    max-width: 600px;
}

.tracking-timeline::before {
    content: "";
    position: absolute;
    background-color: #e0e0e0;
    height: 4px;
    width: 100%;
    top: 18px;
    left: 0;
    z-index: 1;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #777777;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 3px solid #ffffff;
    transition: var(--transition);
}

.step-label {
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

/* Timeline status active states */
.timeline-step.completed .step-dot {
    background-color: var(--menu-active-green);
    color: white;
}

.timeline-step.completed .step-label {
    color: var(--menu-active-green);
}

.timeline-step.active .step-dot {
    background-color: var(--button-gold);
    color: white;
    box-shadow: 0 0 10px rgba(204, 132, 0, 0.4);
}

.timeline-step.active .step-label {
    color: var(--button-gold-hover);
}

/* Product Modal Sticky Layout */
#product-modal .modal-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#product-modal .modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(90, 55, 28, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

#product-modal .modal-header h3 {
    font-family: var(--font-headers);
    font-size: 1.4rem;
    color: var(--text-earth);
    margin: 0;
}

#product-modal .close-modal {
    position: static;
    font-size: 1.8rem;
    line-height: 1;
    color: #aaaaaa;
    cursor: pointer;
    transition: var(--transition);
}

#product-modal .close-modal:hover {
    color: var(--announcement-bg);
}

.modal-body-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    text-align: left;
}

.modal-product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    background-color: var(--outer-bg);
    color: var(--text-earth);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-top: 16px;
    margin-bottom: 8px;
}

.modal-product-title {
    font-family: var(--font-headers);
    font-size: 1.6rem;
    color: var(--text-earth);
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.2;
}

.modal-product-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 24px;
}

.size-selector-container,
.modal-qty-container,
.modal-note-container {
    margin-bottom: 24px;
}

.size-selector-label,
.modal-qty-label,
.modal-note-label {
    font-weight: 700;
    color: var(--text-earth);
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.modal-footer-sticky {
    padding: 16px 20px;
    border-top: 1px solid rgba(90, 55, 28, 0.1);
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(90, 55, 28, 0.05);
    z-index: 100;
}

.modal-footer-sticky .modal-price-container {
    margin-bottom: 0;
    text-align: left;
}

.modal-footer-sticky .modal-price-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.modal-footer-sticky .modal-price-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--announcement-bg);
    margin-top: 2px;
    display: block;
}

.modal-footer-sticky .btn-order-wa {
    margin-top: 0;
    width: auto;
    padding: 10px 24px;
    font-size: 1.05rem;
}

/* Mobile Optimizations for Product Modal */
@media (max-width: 768px) {
    /* Prevent iOS auto-zoom on form fields by ensuring they are at least 16px */
    .shipping-input,
    .modal-note-input,
    .size-selector-select,
    select,
    textarea,
    input[type="text"],
    input[type="number"],
    input[type="tel"] {
        font-size: 16px !important;
    }

    /* General modal fallback for non-drawer modals */
    .modal-content {
        height: 82vh;
        max-height: 82vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 20px 16px;
        width: 92%;
    }

    /* Product details modal behaves as a drawer */
    #product-modal {
        justify-content: flex-end;
    }

    #product-modal .modal-content, .cart-drawer {
        height: 100%;
        height: 100dvh;
        max-height: 100%;
        max-height: 100dvh;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        animation: slideInRight 0.3s ease-out;
        padding: 0; /* Padding managed inside child sections */
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    #product-modal .modal-header {
        padding: 20px 16px;
    }

    .modal-body-scroll {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 16px;
    }

    .modal-footer-sticky {
        padding: 20px 16px;
    }
    
    .modal-main-image-wrapper {
        padding-top: 70%; /* Restored large aspect ratio */
        max-height: 240px;
    }
    
    .modal-product-title {
        font-size: 1.45rem;
        margin-bottom: 4px;
    }
    
    .modal-product-category {
        margin-top: 12px;
        margin-bottom: 8px;
    }
    
    .modal-product-description {
        font-size: 0.88rem;
        margin-bottom: 16px;
        line-height: 1.4;
    }
    
    .size-selector-container,
    .modal-qty-container,
    .modal-note-container {
        margin-bottom: 20px;
    }
    
    .size-selector-select {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .modal-note-input {
        font-size: 0.9rem;
        padding: 8px;
    }
    
    .modal-price-value {
        font-size: 1.55rem;
    }
    
    .modal-footer-sticky .btn-order-wa {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
}

/* Prevent scroll chaining from drawer modals to the background page */
.cart-drawer-modal, #product-modal, .modal-body-scroll, .cart-scrollable-body {
    overscroll-behavior: contain;
}

body.modal-open {
    overflow: hidden !important;
}

/* Premium Toast Notification System */
#toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 90%;
    max-width: 420px;
    pointer-events: none;
}

.toast-message {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    color: var(--text-earth);
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(90, 55, 28, 0.18);
    border-left: 4px solid var(--button-gold);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: auto;
    animation: slideDownToast 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

.toast-message.success {
    border-left-color: #2ec4b6;
}

.toast-message.error {
    border-left-color: #e71d36;
}

.toast-message.warning {
    border-left-color: #ff9f1c;
}

.toast-message.info {
    border-left-color: var(--button-gold-hover);
}

.toast-message.fade-out {
    opacity: 0;
    transform: translate(-50%, -15px) scale(0.95);
}

@keyframes slideDownToast {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================
   CLASES UTILITARIAS REUTILIZABLES (SOPORTE)
   ========================================== */

/* Text colors */
.text-success { color: #25D366 !important; }
.text-danger { color: #bc360a !important; }
.text-warning { color: var(--button-gold) !important; }
.text-muted { color: var(--text-muted) !important; }

/* Reusable Info Card */
.info-card {
    background-color: #ffffff;
    border: 1px solid rgba(90, 55, 28, 0.15);
    border-radius: var(--border-radius);
    padding: 12px;
    margin-top: 14px;
    text-align: left;
}

.info-card-title {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.info-card-footer {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(90, 55, 28, 0.06);
}

/* Reusable Info Card Table */
.info-card-table {
    width: 100%;
    font-size: 0.85rem;
    line-height: 1.6;
    border-collapse: collapse;
}
.info-card-table td {
    padding: 4px 0;
    vertical-align: middle;
}
.info-card-table td.label {
    color: var(--text-muted);
}
.info-card-table td.value {
    font-weight: 600;
    text-align: right;
}
.info-card-table tr.total-row td {
    font-weight: bold;
    border-top: 1px dashed rgba(90, 55, 28, 0.15);
    padding-top: 6px;
}

/* Green Action Button */
.btn-green {
    display: inline-block;
    width: 100%;
    padding: 10px 16px;
    background-color: var(--menu-active-green);
    color: #ffffff !important;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
}
.btn-green:hover {
    background-color: #6e842f;
}

/* Outline Button */
.btn-outline {
    display: inline-block;
    width: 100%;
    padding: 8px;
    background: transparent;
    color: var(--text-earth);
    border: 1px solid rgba(90, 55, 28, 0.2);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    transition: var(--transition);
    text-align: center;
}
.btn-outline:hover {
    background-color: rgba(90, 55, 28, 0.05);
}

/* Highlight Box (Success Modal Code) */
.highlight-box {
    background-color: #fdf9f0;
    border: 2px solid var(--button-gold);
    border-radius: var(--border-radius);
    padding: 12px;
    margin: 16px 0;
    text-align: center;
}
.highlight-box-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.highlight-box-value {
    font-size: 2rem;
    font-weight: 900;
    font-family: monospace;
    letter-spacing: 2px;
    color: var(--announcement-bg);
}
.success-checkmark {
    font-size: 3rem;
    margin-bottom: 12px;
    color: #2ec4b6;
}

/* Specific Modal and Notification Helpers */
.tracking-error-hint {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--text-muted);
    margin-top: 10px;
}

.success-modal-body {
    padding: 20px 16px;
    text-align: center;
}

.success-modal-title {
    font-family: var(--font-headers);
    margin-bottom: 8px;
    color: var(--text-earth);
    font-size: 1.5rem;
}

.highlight-box-link {
    font-size: 0.82rem;
    color: var(--button-gold-hover);
    text-decoration: underline;
    font-weight: 600;
    display: inline-block;
}

.alert-info-box {
    background-color: #fff8f0;
    border-left: 3px solid var(--button-gold);
    padding: 12px;
    text-align: left;
    border-radius: 4px;
    margin-bottom: 10px;
}

.alert-info-box-text {
    font-size: 0.8rem;
    color: var(--text-earth);
    line-height: 1.5;
    margin: 0;
}

.modal-caption-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.btn-order-wa-full {
    text-decoration: none;
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sub-layout elements to completely eliminate inline styles */
.info-card .btn-outline {
    margin-top: 12px;
}

.success-modal-footer {
    padding: 16px;
}



