/*
Theme Name: La Barra del Mercat
Theme URI: 
Author: Vicen
Author URI: 
Description: Conversión de proyecto estático HTML a Tema de WordPress para La Barra del Mercat.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: barramercat
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    --primary-color: #ffd78e;
    /* Gold updated */
    --hover-color: #eec57e;
    /* Slightly varied for hover if needed, or keep logic */
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --text-color: #f4f4f4;
    --text-muted: #a0a0a0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --spacing-md: 4rem;
    --spacing-lg: 8rem;
    --transition: all 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    min-height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section {
    padding: var(--spacing-lg) 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    height: 50px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-color);
    position: relative;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-reserva {
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    color: var(--primary-color) !important;
}

.btn-reserva:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark) !important;
}

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

/* HERO SLIDER */
.hero-slider {
    height: 100vh;
    position: fixed;
    /* Fixed for parallax/reveal effect */
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: -1;
    /* Behind content */
}

/* Background Layers */
.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 10s ease;
    z-index: -2;
    transform: scale(1.05);
    /* Slight zoom start */
}

.bg-layer.active {
    opacity: 1;
    transform: scale(1);
    /* Movement effect */
    animation: zoomSlow 20s infinite alternate;
}

#bg-comedor {
    background-image: url('assets/images/2-barra.jpg');
}

#bg-barra {
    background-image: url('assets/images/1-barra.jpg');
}

#bg-bodega {
    background-image: url('assets/images/3-barra.jpg');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Lighter overlay to let image shine */
    z-index: -1;
}

.slider-content {
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    /* Safety padding */
}

.hero-logo {
    max-width: 150px;
    width: 79%;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
    cursor: pointer;
}

.hero-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 215, 142, 0.3));
    /* Gentle gold glow */
}

.slider-menu {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.slider-item {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    white-space: nowrap;
}

.slider-item a {
    position: relative;
}

.slider-item .line {
    width: 0px;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
    opacity: 0.7;
}

/* Active/Hover State */
.slider-item:hover,
.slider-item.active {
    color: var(--text-color);
    transform: scale(1.05);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.slider-item:hover .line,
.slider-item.active .line {
    width: 60px;
    /* Expands lines on sides */
}

/* Animations */
@keyframes zoomSlow {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    z-index: 10;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards;
}

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

/* Section Header Shared */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .subtitle {
    display: block;
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
}

.separator {
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 1.5rem auto 0;
}

/* About Section */
.about {
    background-color: var(--bg-darker);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Menu (Carta) Section */
.carta {
    background-color: var(--bg-dark);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.menu-item {
    margin-bottom: 1rem;
}

.item-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.item-header h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    flex-shrink: 0;
}

.item-line {
    flex-grow: 1;
    border-bottom: 1px dotted var(--text-muted);
    margin: 0 15px;
    position: relative;
    top: -5px;
    opacity: 0.5;
}

.item-header .price {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
}

.item-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Footer Section */
.footer-section {
    background-color: #000;
    padding: 5rem 0 3rem;
    border-top: 0px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    position: relative;
    width: 100%;
    z-index: 100;
    min-height: 400px;
}

/* Dark Veil/Overlay */
.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    /* Pure black as original */
    z-index: 1;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    /* Ensure content is above the veil */
}

.footer-logo img {
    height: auto;
    width: 80%;
    max-width: 200px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer-logo h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    letter-spacing: 4px;
    margin-bottom: 3rem;
    text-transform: uppercase;
    color: #f4f4f4;
    text-shadow: 2px 2px 0px rgba(255, 215, 142, 0.2), -1px -1px 0 rgba(255, 0, 0, 0.1);
    /* Subtle 3D/glitch hint */
}

.footer-info {
    display: flex;
    gap: 60px;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.info-item i {
    color: #ffd78e;
    /* Brighter Gold/Yellow updated */
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.info-item p {
    color: #ccc;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

.social-links {
    margin-bottom: 3rem;
    display: flex;
    gap: 20px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    /* Larger circles */
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    padding-top: 2rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        /* Fixed overlay */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.98);
        /* Opaque dark background */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 0;
        text-align: center;
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
        /* Above the menu overlay */
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
        /* Larger font for mobile */
    }

    .slider-item {
        font-size: 1.5rem;
    }

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

    .footer-info {
        flex-direction: column;
        gap: 20px;
    }
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: block;
    width: 100%;
}

.home .content-wrapper,
.front-page .content-wrapper {
    margin-top: 100vh;
}

/* --- WooCommerce Fixes --- */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    display: none !important;
}

/* --- WooCommerce Top Gaps --- */
.woocommerce-shop .content-wrapper,
.woocommerce-page .content-wrapper {
    margin-top: 0 !important;
    padding-top: 50px !important;
}

body.single-product .content-wrapper,
body.woocommerce-page .content-wrapper,
.bm-single-product-wrapper {
    margin-top: 0 !important;
    padding-top: 100px !important;
}

/* Clear any inherited margins from containers */
body.single-product #primary,
body.single-product #main,
body.single-product .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Force hide breadcrumbs */
.woocommerce-breadcrumb,
.single-product .woocommerce-breadcrumb {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.content-wrapper {
    /* Ensure background covers hero */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    /* Shadow for depth */
    border-radius: 0px;
    /* Start flat */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Virtual Menu Book 3D */
.book-container {
    perspective: 1500px;
    width: 45%;
    max-width: 500px;
    /* A4 width roughly relative */
    height: 900px; /* Increased height to avoid overlap */
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
}

.book {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.page {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: left center;
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform-style: preserve-3d;
    z-index: 5;
    cursor: pointer;
}

.page.flipped {
    transform: rotateY(-180deg);
}

/* Page Sides */
.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background-color: #fffef9;
    /* Paper color */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    padding: 50px 40px; /* Adjusted padding */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.front {
    transform: rotateY(0deg) translateZ(1px);
    z-index: 2;
}

.back {
    transform: rotateY(180deg) translateZ(1px);
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #fdfbf7;
}

/* Texture overlay */
.paper-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Simple noise mimicking paper */
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0) 5%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Content Styling */
.menu-content-page {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #222;
    /* Ink color */
    font-family: 'Times New Roman', Times, serif;
    /* Classic Serif for the menu look */
}

.menu-page-logo {
    width: 140px;
    margin: 0 auto 15px;
    display: block;
    opacity: 0.9;
    filter: none !important;
    /* Override hero logo filter */
}

.menu-tagline {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    font-style: italic;
    color: #444;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
    border-bottom: 0px;
}

.menu-category {
    flex-grow: 0; /* Changed from 1 to avoid stretching and allow footer to push up */
    margin-bottom: 2rem;
}

.menu-category:last-child {
    margin-bottom: 0;
}

.menu-category h3 {
    text-align: center;
    font-size: 1.6rem; /* Slightly smaller for multiple categories */
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #000;
    font-family: 'Playfair Display', serif;
}

.menu-row-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 0.8rem;
    padding-right: 0px;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.price-header {
    width: 70px;
    text-align: center;
}

.menu-list-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.6rem;
    font-size: 1rem;
    line-height: 1.4;
}

.item-name {
    flex-grow: 1;
    font-weight: 400;
    /* Regular weight for classic look */
}

.item-prices {
    display: flex;
    gap: 10px;
}

.item-prices span {
    width: 70px;
    text-align: center;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Navigation */
.next-page-btn,
.prev-page-btn {
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.next-page-btn {
    align-self: flex-end;
    margin-left: auto;
}

.prev-page-btn {
    align-self: flex-start;
}

.page-number {
    position: relative;
    margin-top: auto; /* Pushes the whole footer area to the bottom */
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    font-weight: 700;
}

.next-prev-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }
}

/* Responsive adjustments for book */
@media (max-width: 768px) {
    .book-container {
        width: 95%;
        height: 800px; /* Increased from 600px */
    }

    @media (max-width: 480px) {        .book-container {
            height: 950px; /* Increased to fit 2 categories + footer */
            /* Increase height for mobile content */
            width: 100%;
        }

        .front,
        .back {
            padding: 20px 15px;
            /* Tighter padding */
        }

        .menu-page-logo {
            width: 40%;
        }

        .menu-tagline {
            font-size: 0.7rem;
            margin-bottom: 1.5rem;
        }

        .menu-category h3 {
            font-size: 1.2rem;
            margin-bottom: 1rem;
        }

        .menu-row-header {
            font-size: 0.7rem;
            margin-bottom: 10px;
        }

        .menu-list-item {
            margin-bottom: 10px;
        }

        .item-name {
            font-size: 0.8rem;
        }

        .item-prices span {
            width: 40px;
            text-align: center;
            font-size: 0.8rem;
        }

        .price-header:last-child {
            text-align: right;
        }

        /* Keep left origin for book effect */
        .page {
            transform-origin: left center;
        }
    }

    .front,
    .back {
        padding: 40px 20px;
    }

    .menu-category h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .menu-list-item {
        font-size: 0.85rem;
    }

    .price-header,
    .item-prices span {
        width: 50px;
        font-size: 0.8rem;
    }
}

/* ============================
   Reservation Page Styles
   ============================ */

.page-header {
    height: 40vh;
    background: url('assets/images/4-barra.jpg') center/cover no-repeat;
    /* Use one of the existing bgs */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    margin-top: 0;
}

.page-header .header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.page-header .header-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    /* Offset for navbar */
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-header p {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 300;
}

/* Reservation Wrapper */
/* Reservation Wrapper */
.reservation-page-wrapper {
    margin-top: 0 !important;
    padding-bottom: 5rem;
    background: url('assets/images/4-barra.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Global Overlay */
.reservation-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Header Section inside wrapper */
.reservation-header-section {
    position: relative;
    padding: 180px 0 60px;
    text-align: center;
    color: #fff;
    z-index: 2;
}

.reservation-header-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 2rem;
    font-weight: 400;
    color: #fff;
    /* Override var(--primary) from old header if needed */
}

.reservation-header-section p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: #e0e0e0;
}

.reservation-container {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Connect to Footer Logic */
.reservation-page-wrapper+.footer-section {
    position: relative;
    z-index: 2;
    bottom: auto;
    width: 100%;
    visibility: visible !important;
    /* Always visible on static pages */
    opacity: 1 !important;
}

/* Widget Styles */
.reservation-widget {
    background-color: #fff;
    width: 100%;
    max-width: 800px;
    border-radius: 4px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.widget-header h3 {
    text-align: center;
    color: #555;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Legend */
.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #666;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    /* Rounded rect as in image */
    display: inline-block;
}

.dot.available {
    background-color: var(--primary-color);
}

.dot.selected {
    background-color: #008080;
    /* Teal/Green */
}

.dot.closed {
    background-color: #ddd;
}

.dot.full {
    border: 1px solid #ff4444;
    background: transparent;
}

/* Steps */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.step.active {
    color: #333;
}

.step-num {
    width: 30px;
    height: 30px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    font-weight: 700;
    color: #ddd;
}

.step.active .step-num {
    border-color: #333;
    color: #333;
}

/* Form Elements */
.people-selector-wrapper {
    margin-bottom: 30px;
}

.people-selector,
.zone-select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}

.info-text {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Calendar */
.calendar-container {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.calendar-header i {
    cursor: pointer;
    color: #aaa;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: #333;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    border-radius: 50%;
    cursor: default;
    color: #ccc;
}

.day.empty {
    cursor: default;
}

.day.available {
    background-color: #fff8e1;
    /* Light yellow bg */
    color: #333;
    cursor: pointer;
    border: 1px solid var(--primary-color);
}

.day.available:hover {
    background-color: var(--primary-color);
}

.day.selected {
    background-color: var(--primary-color);
    /* Use our Gold for selection or the Teal? Step consistency... let's use the Legend color teal */
    background-color: #008080;
    color: #fff;
}

/* Slots */
.zone-selector {
    margin-bottom: 20px;
}

.shift-label {
    text-align: center;
    font-weight: 600;
    text-decoration: underline;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #555;
    text-transform: uppercase;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.time-slot {
    background-color: #008080;
    /* Teal like image */
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s;
}

.time-slot:hover {
    opacity: 0.9;
}

.slot-desc {
    font-size: 0.6rem;
    margin-top: 5px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 600px) {
    .reservation-widget {
        padding: 20px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .steps-indicator span {
        display: none;
    }

    /* Hide text steps on mobile */
    .time-slots {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================
   Gift Page Styles
   ============================ */

.gift-page-wrapper {
    margin-top: 0 !important;
    background: url('assets/images/3-barra.jpg') center/cover no-repeat fixed;
    /* Bar shelves background */
    min-height: 100vh;
    padding-bottom: 5rem;
    position: relative;
    z-index: 1;
    /* Context */
}

/* Global Overlay for the whole page wrapper */
.gift-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
    /* Behind content but above bg */
}

/* Header Section inside wrapper to share bg */
.gift-header-section {
    position: relative;
    padding: 180px 0 60px;
    /* Space for Navbar */
    text-align: center;
    color: #fff;
}

.gift-header-section .header-overlay {
    display: none;
    /* Replaced by global overlay */
}

.gift-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.gift-header-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.gift-header-content p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: #e0e0e0;
}

.gift-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 3rem;
}

.gift-btn {
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.gift-btn:hover {
    background: #fff;
    color: #000;
}

.gift-btn.outline {
    background: transparent;
    border: 1px solid #fff;
}

/* Gift Cards Layout */
.gift-cards-container {
    padding-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.gift-card-row {
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.gift-section-title {
    text-align: center;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.gift-widget {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

/* Steps inside widget */
.gift-steps {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 30px 20px;
    border-bottom: 1px solid #f0f0f0;
}

/* Reusing .step styles but adjusting gap */
.gift-widget .step {
    flex-direction: column;
    color: #999;
}

/* Product View */
.gift-product-view {
    display: flex;
    flex-wrap: wrap;
}

.gift-image {
    flex: 1;
    min-width: 300px;
    background-color: #f9f9f9;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f0f0f0;
    /* Neutral background instead of image */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gift-img-placeholder.dark {
    background: #222;
    /* Specific for Vale */
}

.gift-img-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.gift-details {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gift-details h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1rem;
}

.gift-details p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.gift-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
    font-weight: 600;
    color: #444;
}

.gift-price-row .price {
    font-size: 1.5rem;
    color: #333;
}

.gift-selector {
    margin-bottom: 2rem;
}

.gift-selector label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.gift-selector select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-compra {
    background-color: #008080;
    /* Teal like reservations */
    color: #fff;
    border: none;
    padding: 15px;
    width: 100%;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

.btn-compra:hover {
    background-color: #006666;
}

/* Relative Footer for this page if needed specifically */


@media (max-width: 768px) {
    .gift-header-content h1 {
        font-size: 2.5rem;
    }

    .gift-product-view {
        flex-direction: column;
    }
}

/* Gift Form Styles */
.container.section {
    padding: 100px 0;
    min-height: 80vh;
    display: block;
    width: 100%;
    clear: both;
}

.gift-form-container,
.gift-payment-container {
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.gift-form-container h3,
.gift-payment-container h3,
.mock-card-form h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.gift-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
}

.gift-input.textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-back {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: transparent;
    border: 1px solid #ccc;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 500;
}

.btn-back:hover {
    background: #f9f9f9;
}

/* Payment Summary */
.payment-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.payment-summary p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #555;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
}

.total-price {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.mock-card-form {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- Mobile Horizontal Scroll Fixes --- */
body {
    overflow-x: hidden !important;
    width: 100%;
}

/* Reset 100vh margin for all inner pages */
.page-template-page-reservas .content-wrapper,
.page-template-page-regala .content-wrapper,
.reservation-page-wrapper,
.gift-page-wrapper,
.woocommerce-page .content-wrapper,
.single-product .content-wrapper {
    margin-top: 0 !important;
    padding-top: 100px !important; /* Space for navbar */
    background-color: #121212; /* Fallback to prevent transparency issues */
}

/* Responsive fixes for our custom pages */
.gift-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.gift-btn {
    margin: 5px;
    padding: 12px 20px;
    white-space: nowrap;
}

.reservation-widget-external,
.reservation-widget-external iframe {
    max-width: 100% !important;
    min-width: auto !important;
}

/* Rogue element from plugin pushing width */
.ue-sidebar-container,
.uael-sidebar-container {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}