/*
Theme Name: Cervezeria Pehuenche
Theme URI: https://example.com/cervezeria-pehuenche
Author: Antigravity
Author URI: https://google.deepmind.com
Description: A custom theme for Cervezeria Pehuenche, featuring a rustic modern design inspired by the Araucaria region.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cervezeria-pehuenche
*/

/* PRUEBA RUTA RELATIVA PEHUENCHE - 2026-01-09 23:45 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ========================================
   OPTIMIZACIONES DE RENDIMIENTO
   ======================================== */

/* Fade-in animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clase inicial para elementos que se animarán */
.fade-element {
    opacity: 0;
}

/* Clase que se aplica cuando el elemento entra en viewport */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Lazy loading placeholder para imágenes */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

/* Sticky header mejorado */


/* ======================================== */

:root {
    /* Color Palette */
    --color-primary: #2d4f3c;
    /* Deep Forest Green */
    --color-secondary: #5e4b35;
    /* Earthy Brown */
    --color-accent: #d4a017;
    /* Golden Amber */
    --color-bg-light: #f9f9f9;
    /* Light background */
    --color-bg-white: #ffffff;
    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-border: #eeeeee;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}

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

.btn-outline-light {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    gap: 2rem;
}

.logo {
    flex-shrink: 0;
}

.site-logo {
    display: block;
    height: auto;
    max-height: 65px;
    width: auto;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    list-style: none;
}

.main-navigation a {
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--color-accent);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.cart-menu-item {
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

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

.mobile-menu-toggle {
    display: none;
}

/* Hero Section */
.hero-section {
    height: 80vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Split Layout (used for Intro & About) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-content .subtitle {
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.split-content p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.split-image-container img {
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Mini Stats Grid (Intro) */
.mini-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Modern Gallery Grid */
.modern-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    /* Square images */
    background-color: #eee;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Hidden elements for Load More */
.gallery-hidden {
    display: none;
}

/* Load More Button Container */
.gallery-actions {
    margin-top: 3rem;
    text-align: center;
}

/* Responsive Gallery */
@media (max-width: 900px) {
    .modern-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .modern-gallery-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
        gap: 1.5rem;
    }
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Stats Bar (4 columns) */
.stats-bar {
    background-color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: left;
}

.stat-card {
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    transition: 0.3s;
}

.stat-card:hover {
    background-color: var(--color-bg-light);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Gallery Section */
.gallery-section {
    background-color: white;
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    /* Square images like Instagram */
    background-color: #eee;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.stars {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.author-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-primary);
}

.author-info span {
    font-size: 0.8rem;
    color: #999;
}

/* Footer CTA */
.footer-cta-section {
    padding-bottom: 0;
    margin-bottom: 8rem !important;
    /* Forzar espacio antes del footer */
}

.footer-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background-color: var(--color-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.cta-image {
    background-color: #254232;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.cta-image img {
    max-height: 350px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cta-box {
    padding: 4rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-box h2 {
    color: white;
    font-size: 2.5rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn-cta-primary {
    background-color: white;
    color: var(--color-primary);
    border: 2px solid white;
}

.btn-cta-primary:hover {
    background-color: transparent;
    color: white;
}

.btn-cta-outline {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cta-outline:hover {
    border-color: white;
}

/* Footer */
/* Footer */
.site-footer {
    background-color: #1a1a1a;
    /* Dark premium background */
    color: #cccccc;
    padding-top: 6rem;
    padding-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Optional: small underline for headers */
.footer-col h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
    margin-top: 0.5rem;
}

.footer-col p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.footer-col a {
    color: #cccccc;
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
}

/* Newsletter Input */
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-form input {
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid #333;
    background-color: #2a2a2a;
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {

    .split-layout,
    .stats-grid,
    .gallery-grid,
    .testimonials-grid,
    .footer-cta-grid,
    .footer-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-cta-grid,
    .footer-content-grid {
        text-align: center;
    }

    .cta-box {
        padding: 2rem 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
        /* Put image on top for About */
    }

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



    /* Hamburger Button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 10001;
        position: relative;
    }

    .hamburger-line {
        width: 100%;
        height: 3px;
        background-color: var(--color-primary);
        border-radius: 10px;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        transform-origin: center;
    }

    /* Hamburger turns WHITE when active */
    .mobile-menu-toggle.active .hamburger-line {
        background-color: white;
    }

    /* Hamburger Animation to X */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Mobile Menu Overlay - Removed */
    .mobile-menu-overlay {
        display: none !important;
    }

    .mobile-menu-overlay.active {
        display: none !important;
    }

    /* Mobile Navigation */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--color-primary), #1a3326);
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        overflow-y: auto;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .main-navigation li {
        width: 100%;
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.4s ease;
    }

    .main-navigation.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .main-navigation.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .main-navigation.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .main-navigation.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .main-navigation.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        color: white !important;
        font-size: 1.2rem;
        font-weight: 600;
        border-radius: var(--radius-sm);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
        transition: left 0.3s ease;
    }

    .nav-link:hover {
        background: rgba(212, 175, 55, 0.2);
        transform: translateX(10px);
    }

    .nav-link:hover::before {
        left: 0;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}


/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
    /* Ensure it stays in place */
}

#back-to-top:hover {
    background-color: var(--color-accent);
    transform: translateY(-5px);
}



/* =========================================
   PRODUCTS SECTION - VERTICAL PANELS
   ========================================= */

.products-cards-section {
    background-color: #ffffff;
    padding: 4rem 0;
}

/* Desktop: Horizontal stacked panels */
@media (min-width: 901px) {
    .products-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 3rem;
    }

    .product-card {
        display: flex;
        background: white;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        transition: all 0.4s ease;
        border-bottom: 1px solid #e0e0e0;
        height: 400px;
        position: relative;
    }

    .product-card:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        transform: scale(1.02);
        z-index: 10;
    }

    /* Alternate layout */
    .product-card:nth-child(even) {
        flex-direction: row-reverse;
    }

    .product-image {
        flex: 0 0 50%;
        height: 100%;
        background-size: cover;
        background-position: center;
        position: relative;
        transition: transform 0.6s ease;
    }

    .product-card:hover .product-image {
        transform: scale(1.1);
    }

    .product-info {
        flex: 1;
        padding: 3rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Tablet & Mobile: Cards */
@media (max-width: 900px) {
    .products-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .product-card {
        background: white;
        border-radius: var(--radius-md);
        overflow: hidden;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.4s ease;
    }

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

    .product-image {
        width: 100%;
        height: 280px;
        background-size: cover;
        background-position: center;
    }

    .product-info {
        padding: 1.5rem;
    }
}

/* Product image clickable cursor */
.product-image-clickable {
    cursor: pointer;
    position: relative;
}

.product-image-clickable::after {
    content: '🔍';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image-clickable:hover::after {
    opacity: 1;
}

@media (max-width: 900px) {
    .product-image-clickable::after {
        opacity: 1;
        font-size: 1rem;
        width: 35px;
        height: 35px;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    animation: zoomIn 0.4s ease;
}

.lightbox-title {
    color: white;
    font-size: 1.5rem;
    margin-top: 1rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    color: #333;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover {
    background: var(--color-accent);
    color: white;
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Common styles */
.product-category {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    background-color: rgba(212, 175, 55, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.product-info h3 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
}

.product-info p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-specs {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 1rem;
}

.product-specs span {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.product-specs strong {
    color: var(--color-primary);
    font-weight: 700;
}

.product-style {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Product Details Button */
.btn-product-details {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-product-details:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Product Details Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 1rem;
}

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

.product-modal-content {
    background: white;
    max-width: 800px;
    width: 100%;
    border-radius: var(--radius-md);
    position: relative;
    animation: slideInUp 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.product-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    color: var(--color-text);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-modal-close:hover {
    background: var(--color-accent);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    padding: 2.5rem 2rem 2rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.modal-header h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.modal-header span {
    display: block;
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body {
    padding: 2rem;
}

.modal-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.modal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.modal-section h3 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section .icon {
    font-size: 1.5rem;
}

.modal-section p {
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.spec-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-accent);
}

.spec-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.spec-value {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 600;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .modal-header h2 {
        font-size: 1.8rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   HISTORY SECTION
   ========================================= */

.history-section {
    margin-top: 4rem;
}

.history-content {
    max-width: 900px;
    margin: 3rem auto 0;
}

.history-card {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.history-year,
.history-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
}

.history-icon {
    font-size: 2.5rem;
}

.history-text {
    flex: 1;
}

.history-text h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.history-text p {
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.history-text p:last-child {
    margin-bottom: 0;
}

.about-cta {
    margin-top: 3rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

@media (max-width: 900px) {
    .history-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .history-year,
    .history-icon {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }

    .history-icon {
        font-size: 2rem;
    }

    .history-text h3 {
        font-size: 1.3rem;
    }
}


/* Mobile Menu Fixes */
.header-container {
    position: relative;
    /* Ensure menu positions relative to this */
}

@media (max-width: 900px) {
    .main-navigation {
        /* Ensure high z-index and proper background */
        z-index: 1001;
        background-color: white;
        border-top: 1px solid #eee;
    }

    .mobile-menu-toggle {
        z-index: 1002;
        /* Button above menu */
    }
}


/* =========================================
   CRITICAL REGRESSION FIXES
   ========================================= */

/* 1. Prevent Horizontal Overflow (without breaking position: sticky) */
html,
body {
    max-width: 100vw;
    overflow-x: clip;
    /* Use 'clip' instead of 'hidden' to allow sticky */
}

.diagonal-products-section,
.diagonal-container,
.product-panel {
    box-sizing: border-box;
}

/* 2. Stabilize Mobile Menu */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex !important;
        /* Force visible */
        z-index: 2000 !important;
        /* Super high z-index */
        position: relative;
    }

    .main-navigation {
        z-index: 1999 !important;
        /* Just below button */
    }
}

/* 3. Ensure Back to Top Visibility */
#back-to-top {
    z-index: 2147483647 !important;
    /* Max z-index */
    bottom: 30px !important;
    right: 20px !important;
}

/* =========================================
   MOBILE RESDESIGN: STACKED CARDS
   ========================================= */

@media (max-width: 900px) {
    .diagonal-container {
        flex-direction: column;
        height: auto;
        padding: 20px 10px;
    }

    /* Reset Panel to Card Style */
    .product-panel {
        flex: none !important;
        width: 100%;
        height: auto !important;
        /* Allow content to dictate height */
        min-height: 250px;
        margin-bottom: 20px;
        border-radius: 15px;
        overflow: hidden;
        border: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

        /* Remove Skew */
        transform: none !important;
    }

    /* Reset Background */
    .panel-background {
        transform: none !important;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        scale: 1 !important;
    }

    /* Simple Overlay */
    .panel-overlay {
        transform: none !important;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.4);
        /* Less dark initially */
    }

    /* Always show essential info */
    .panel-content-collapsed {
        transform: none !important;
        position: absolute;
        bottom: 20px;
        left: 20px;
        right: 20px;
        text-align: left;
        opacity: 1 !important;
        pointer-events: auto;
        /* Clickable */
    }

    .panel-content-collapsed h3 {
        font-size: 2rem;
        margin-bottom: 5px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    }

    .panel-subtitle {
        font-size: 1rem;
        background: var(--color-accent);
        color: #000;
        padding: 2px 8px;
        border-radius: 4px;
        display: inline-block;
    }

    /* Expanded Content - Accordion Style */
    .panel-content-expanded {
        position: relative;
        /* Flow normally? No, absolute for transition or just toggle display */
        /* Let's keep it overlay-like but fully covering? Or below? */
        /* Easiest for existing structure: overlay full card when active */

        transform: none !important;
        opacity: 0;
        width: 100%;
        left: 0;
        right: 0;
        bottom: auto;
        top: 0;
        height: 100%;
        background: rgba(0, 0, 0, 0.85);
        /* Dark background for text */
        padding: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        transition: opacity 0.3s ease;
        max-width: none;
    }

    .product-panel.active .panel-content-expanded {
        opacity: 1;
        pointer-events: auto;
    }


}


/* =========================================
   PHASE 16: FINAL POLISH (ANIMATIONS & MOBILE LAYOUT)
   ========================================= */

/* 1. Smoother, Slower Desktop Animations */
@media (min-width: 901px) {
    .product-panel {
        /* Slower transition (0.9s) and smoother bezier */
        transition: flex 0.9s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: flex;
        /* Performance hint */
    }

    .panel-background,
    .panel-overlay {
        transition-duration: 0.9s !important;
    }

    /* Verify content fade matches new speed */
    .panel-content-expanded {
        transition: all 0.8s ease 0.3s !important;
        /* Slight delay, long fade */
    }
}

/* 2. Fix Mobile Footer/Contact Alignment */
@media (max-width: 900px) {

    .footer-content-grid,
    .footer-col {
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .footer-col ul {
        padding-left: 0 !important;
        margin: 0 auto;
        display: inline-block;
        /* Helps centering lists */
        text-align: center;
    }

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

    /* Ensure container doesn't have offset */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* =========================================
   PHASE 17: FINAL REFINEMENTS (ANIMATION FIX & MOBILE CTA)
   ========================================= */

/* 1. Animation Fix: Avoid "Freeze" on Exit */
/* Default state (Exit): Fast transition, no delay */
.panel-content-expanded {
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    opacity: 0;
}

/* Active state (Enter): Slow transition with delay */
.product-panel.active .panel-content-expanded {
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s !important;
    opacity: 1;
}

/* 2. Mobile CTA Alignment Fix */
@media (max-width: 900px) {

    /* Reduce massive desktop padding */
    .cta-box {
        padding: 2rem 1.5rem !important;
        text-align: center;
        align-items: center;
        /* Center flex children (buttons) */
    }

    .cta-image {
        padding: 1.5rem !important;
    }

    .cta-box h2 {
        font-size: 1.8rem;
        /* Scale down title */
    }

    .cta-buttons {
        justify-content: center;
        /* Center buttons */
        width: 100%;
    }
}


/* =========================================
   PHASE 18: FOOTER UNDERLINE ALIGNMENT
   ========================================= */

@media (max-width: 900px) {

    /* 
       Centering the yellow underline (::after)
       Since we forced text-align: center previously, 
       we need margin: auto to center the block element.
    */
    .footer-col h3::after {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* DEPLOYMENT TIMESTAMP: 2026-01-19T04:01:37.408Z */
/* If you see this timestamp in browser DevTools, the deployment worked */


/* =========================================
   ULTRA-SPECIFIC ANIMATION FIXES v2
   ========================================= */


/* Product panels - eliminate ALL flickering */
.diagonal-products-section .product-panel {
    will-change: flex;
    transition: flex 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    transform: skewX(-15deg) translateZ(0) !important;
}

.diagonal-products-section .panel-background {
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    -webkit-transform: skewX(15deg) scale(1.3) translateZ(0) !important;
    transform: skewX(15deg) scale(1.3) translateZ(0) !important;
    transform-origin: center center !important;
}

/* Prevent scale change on hover - this causes the shake */
.diagonal-products-section .product-panel:hover .panel-background {
    transform: skewX(15deg) scale(1.3) translateZ(0) !important;
}

/* Gentle scale on active */
.diagonal-products-section .product-panel.active .panel-background {
    transform: skewX(15deg) scale(1.1) translateZ(0) !important;
}

/* Smooth overlay transition */
.diagonal-products-section .panel-overlay {
    transition: background 0.6s ease !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
}

/* Mobile sticky header */
@media (max-width: 900px) {

    html body .site-header,
    html body header.site-header {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        background-color: #ffffff !important;
    }
}

/* =========================================
   V2 EXPERIENCE (IMMERSIVE) STYLES
   ========================================= */

/* Hero V2 */
.hero-v2 {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.immersive-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.v2-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.eyebrow-text {
    display: block;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.v2-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Environment Section */
.environment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.env-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease;
}

.env-card:hover {
    transform: translateY(-10px);
}

.env-image {
    height: 300px;
    overflow: hidden;
}

.env-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.env-info {
    padding: 2rem;
}

.env-info h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Spotlight Section (Dark Mode) */
.spotlight-section.dark-mode {
    background-color: #1a1a1a;
    color: white;
}

.spotlight-section h2 {
    color: white;
    font-size: 3rem;
}

.spotlight-section .lead {
    color: #ccc;
}

.hero-product-img {
    max-height: 600px;
    filter: drop-shadow(0 0 30px rgba(212, 160, 23, 0.2));
    /* Gold glow */
}

.badge-gold {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-text);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.features-list {
    margin-top: 2rem;
}

.feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature .icon {
    font-size: 2rem;
}

.feature .text h4 {
    color: white;
    margin-bottom: 0.2rem;
}

.feature .text p {
    color: #aaa;
    margin: 0;
}

/* Beer Garden & Process Grid (Uniform) */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.exp-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.exp-item:hover {
    transform: translateY(-5px);
}

.exp-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

/* Contrast Utilities */
.bg-dark {
    background-color: #111;
    color: #f5f5f5;
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.bg-dark p,
.bg-dark span,
.bg-dark li,
.bg-dark .subtitle,
.bg-dark .lead {
    color: #f5f5f5 !important;
}

.bg-secondary {
    background-color: #222;
    color: #e0e0e0;
}

.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary h4,
.bg-secondary h5,
.bg-secondary h6,
.bg-secondary p,
.bg-secondary span,
.bg-secondary li,
.bg-secondary .subtitle {
    color: #e0e0e0 !important;
}

.bg-dark .section-header p,
.bg-secondary .section-header p {
    color: #ccc !important;
}

/* FIX: Ensure white cards inside dark sections have dark text */
.bg-dark .env-card h3,
.bg-dark .env-card p,
.bg-secondary .history-card h3,
.bg-secondary .history-card p,
.history-card .history-text h3,
.history-card .history-text p {
    color: #333 !important;
}

/* Location Map */
.route-steps {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.route-steps li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-num {
    background: var(--color-primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.map-placeholder {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive V2 */
@media (max-width: 768px) {
    .v2-content h1 {
        font-size: 2.5rem;
    }

    .environment-grid {
        grid-template-columns: 1fr;
    }
}

/* Process Section */
.process-timeline {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    flex: 1;
    text-align: center;
}

.process-step img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.process-step:hover img {
    transform: translateY(-5px);
}

.step-content h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .process-timeline {
        flex-direction: column;
    }

    .process-step img {
        height: 250px;
    }
}

/* Location Map */
.route-steps {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.route-steps li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-num {
    background: var(--color-primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.map-placeholder {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive V2 */
@media (max-width: 768px) {
    .v2-content h1 {
        font-size: 2.5rem;
    }

    .environment-grid {
        grid-template-columns: 1fr;
    }
}

/* Process Section */
.process-timeline {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    flex: 1;
    text-align: center;
}

.process-step img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.process-step:hover img {
    transform: translateY(-5px);
}

.step-content h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .process-timeline {
        flex-direction: column;
    }

    .process-step img {
        height: 250px;
    }
}

/* =========================================
   WOOCOMMERCE LIGHT THEME (Custom)
   ========================================= */

/* General Wrapper */
.shop-v2-container.light-theme {
    background-color: #f9f9f9;
    /* Soft Gray Background */
    min-height: 80vh;
}

.woocommerce-products-header__title {
    color: #111 !important;
}

/* 1. Shop Grid - Product Cards (Light) */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.woocommerce ul.products li.product {
    background: #fff;
    /* White Card */
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    width: 100%;
    margin: 0 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #111;
    /* Dark Title */
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    padding: 0.5rem 0;
}

.woocommerce ul.products li.product .price {
    color: var(--color-primary) !important;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Add to Cart Button (Card) */
.woocommerce ul.products li.product .button {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    /* White text on buttons */
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 0.5rem;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #333 !important;
    color: #fff !important;
}

/* 2. Custom Single Product Page (Light) */
.pd-page-container {
    background: #fff;
    color: #333;
    padding-bottom: 4rem;
}

.custom-product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .custom-product-layout {
        grid-template-columns: 1fr 1fr;
        /* 50/50 Split */
        align-items: start;
    }
}

/* Image Column */
.pd-main-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Info Column */
.pd-breadcrumb a {
    color: #888;
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 1rem;
    display: inline-block;
}

.pd-title {
    font-size: 3rem;
    color: #111;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.pd-price {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.pd-short-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
}

.pd-actions form.cart {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.pd-actions .quantity input {
    border: 1px solid #ddd;
    padding: 0.5rem;
    width: 60px;
    border-radius: 8px;
    font-size: 1.2rem;
    text-align: center;
}

.pd-actions button[type="submit"] {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: filter 0.3s;
}

.pd-actions button[type="submit"]:hover {
    filter: brightness(0.9);
}

.pd-meta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.9rem;
}

.pd-long-desc h3 {
    margin-bottom: 1.5rem;
    color: #111;
}

.pd-content-box {
    color: #444;
    line-height: 1.8;
}

/* --- Per-Category Accents (Light Mode adapted) --- */

/* Calafate (Purple) */
body.tax-product_cat-patagonia,
.term-patagonia {
    --color-primary: #8e44ad;
}

/* Hidromiel (Yellow) */
body.tax-product_cat-multiflora,
.term-multiflora {
    --color-primary: #f1c40f;
}

/* Kelu (Red/Amber) */
body.tax-product_cat-ambar,
.term-ambar {
    --color-primary: #d35400;
}

/* Kurru (Dark - Brown) */
body.tax-product_cat-negra,
.term-negra {
    --color-primary: #5d4037;
}

/* Chod (Blonde) */
body.tax-product_cat-rubia,
.term-rubia {
    --color-primary: #f39c12;
}

/* Piñón (Default Gold) */
body.tax-product_cat-araucaria,
.term-araucaria {
    --color-primary: #d4a017;
}

/* Force Button Colors Styles explicitly if vars fail or for higher specificity */
.term-patagonia .pd-actions button[type="submit"] {
    background-color: #8e44ad !important;
}

/* Calafate */
.term-multiflora .pd-actions button[type="submit"] {
    background-color: #f1c40f !important;
    color: #000 !important;
}

/* Hidromiel */
.term-ambar .pd-actions button[type="submit"] {
    background-color: #d35400 !important;
}

/* Kelu */
.term-negra .pd-actions button[type="submit"] {
    background-color: #5d4037 !important;
}

/* Kurru */
.term-rubia .pd-actions button[type="submit"] {
    background-color: #f39c12 !important;
}

/* Chod */
.term-araucaria .pd-actions button[type="submit"] {
    background-color: #d4a017 !important;
    color: #000 !important;
}

/* Piñón */

/* =========================================
   PREMIUM BESPOKE SINGLE PRODUCT
   ========================================= */

.pd-page-container {
    background: #fff;
    color: #2c2c2c;
    padding-bottom: 5rem;
}

.custom-product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .custom-product-layout {
        grid-template-columns: 55% 40%;
        /* Wider Image, narrower text */
        gap: 5%;
        align-items: start;
    }

    .pd-image-wrapper.sticky-col {
        position: sticky;
        top: 100px;
    }
}

/* 1. Image Styling */
.pd-main-image {
    width: auto;
    max-width: 100%;
    max-height: 80vh;
    /* Increased from 70vh */
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 20px;
    /* Softer corners */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    /* Premium shadow */
    transition: transform 0.5s ease;
}

.pd-main-image:hover {
    transform: scale(1.02);
}

/* 2. Typography & Header */
.pd-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.pd-breadcrumb a {
    color: #999;
    text-decoration: none;
    font-weight: 600;
}

.pd-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    /* Massive Title */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #111;
    letter-spacing: -1px;
}

/* 3. Specs Badges */
.pd-specs-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

.spec-badge {
    border: 1px solid #eee;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #555;
    background: #fafafa;
}

/* 4. Price */
.pd-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

/* 5. Short Desc */
.pd-short-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* 6. Action Pill (Quantity + Button) */
.pd-actions form.cart {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 60px;
    /* Pill Shape */
    width: fit-content;
    border: 1px solid #eee;
}

.pd-actions .quantity {
    margin-right: 0;
}

.pd-actions .quantity input {
    background: transparent;
    border: none;
    width: 60px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #111;
}

.pd-actions button[type="submit"] {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    margin-left: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pd-actions button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 7. Details Section */
.pd-details-list {
    margin-top: 4rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.detail-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #111;
}

/* =========================================
   PREMIUM SHOP GRID STYLE
   ========================================= */

.custom-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 1rem 0;
}

.premium-product-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.premium-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary, #ddd);
}

/* Card Image */
.card-img-wrapper {
    margin-bottom: 3.5rem;
    /* Space for image */
    transition: transform 0.4s ease;
}

.card-img-wrapper img {
    height: 220px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

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

/* Card Link */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Card Info */
.card-category {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #999;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 0.5rem 0;
}

.card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    /* Uses category var if working, else fallback */
    margin-bottom: 1.5rem;
}

/* Card Footer (Button) */
.card-footer {
    margin-top: auto;
}

.premium-product-card .button {
    background-color: var(--color-primary) !important;
    /* Force category color */
    color: #fff !important;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: none;
    transition: filter 0.3s;
    width: 100%;
    /* Full width button */
    display: block;
    text-align: center;
}

.premium-product-card .button:hover {
    background-color: var(--color-accent) !important;
    color: var(--color-primary) !important;
}

/* Pagination Style */
.shop-pagination .page-numbers {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.shop-pagination .page-numbers li span,
.shop-pagination .page-numbers li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.shop-pagination .page-numbers li span.current,
.shop-pagination .page-numbers li a:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* Separator for Intro Story */
.pd-story-intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 3rem !important;
    /* Force separation */
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
    /* Visual separator line */
}

.detail-content {
    color: #444;
    line-height: 1.8;
}

/* Tasting Cards Grid */
ul.tasting-cards {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

ul.tasting-cards li {
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

ul.tasting-cards li:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

ul.tasting-cards li strong {
    color: var(--color-primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Shopping Cart Styles === */
.cart-menu-item {
    display: flex;
    align-items: center;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

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

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #d32f2f;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge.bump {
    transform: scale(1.3);
}

.cart-badge.hidden {
    display: none;
}

/* Add to Cart Button in Modal */
.btn-add-to-cart {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.btn-add-to-cart:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cart-menu-item {
        margin-top: 1rem;
        justify-content: center;
    }

    .cart-link {
        font-size: 1.2rem;
    }
}

/* === Slide-out Cart Sidebar === */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #2d4f3c 0%, #5e4b35 100%);
    color: white;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
}

#close-cart-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

#close-cart-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* WooCommerce Mini Cart Styles */
.woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
    font-size: 1rem;
}

.woocommerce-mini-cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.woocommerce-mini-cart-item:last-child {
    border-bottom: none;
}

/* Product Image */
.woocommerce-mini-cart-item img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Product Details */
.woocommerce-mini-cart-item a:not(.remove) {
    flex: 1;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
}

.woocommerce-mini-cart-item a:not(.remove):hover {
    color: #d4a017;
}

/* Quantity */
.woocommerce-mini-cart-item .quantity {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Price */
.woocommerce-mini-cart-item .woocommerce-Price-amount {
    display: block;
    color: #d4a017;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0.25rem;
}

/* Remove Button */
.woocommerce-mini-cart-item .remove {
    position: absolute;
    top: 1rem;
    right: 0;
    background: #ff4444;
    color: white !important;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s;
    font-weight: 700;
}

.woocommerce-mini-cart-item .remove:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* Subtotal Section */
.woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 2px solid #eee;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.woocommerce-mini-cart__total strong {
    color: #333;
}

.woocommerce-mini-cart__total .woocommerce-Price-amount {
    color: #d4a017;
    font-size: 1.3rem;
}

/* Checkout Buttons */
.woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.woocommerce-mini-cart__buttons a {
    display: block;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
}

.woocommerce-mini-cart__buttons .button.checkout {
    background: linear-gradient(135deg, #2d4f3c 0%, #5e4b35 100%);
    color: white;
    border: none;
}

.woocommerce-mini-cart__buttons .button.checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 79, 60, 0.4);
}

.woocommerce-mini-cart__buttons .button.wc-forward {
    background: transparent;
    color: #2d4f3c;
    border: 2px solid #2d4f3c;
}

.woocommerce-mini-cart__buttons .button.wc-forward:hover {
    background: #2d4f3c;
    color: white;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }

    .cart-sidebar.active {
        right: 0;
    }
}

/* Cart Badge Bump Animation */
@keyframes badgeBump {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.cart-badge.bump {
    animation: badgeBump 0.3s ease;
}