:root {
    --primary-color: #D4A373; /* Soft Gold/Biscuit */
    --secondary-color: #FAEDCD; /* Cream */
    --accent-color: #D998BA; /* Soft Pink (Berry) */
    --text-dark: #4A403A; /* Dark Brown */
    --text-light: #FDFBF7; /* Off-white */
    --bg-light: #FDFBF7;
    --bg-card: #FFFFFF;
    --shadow: 0 4px 20px rgba(74, 64, 58, 0.08);
    --radius: 16px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- Header --- */
header {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    cursor: pointer;
    transition: background 0.3s ease;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-dark);
    margin: 0 auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.logo img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* --- Hero --- */


.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 120px 2rem 2rem;
    position: relative;
    overflow: hidden;
    background: #1f1b17;
}

.anchor-section {
    scroll-margin-top: 120px;
}

.hero-backgrounds {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-frame {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-bg-frame.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #c08b5c;
    transform: translateY(-2px);
}

/* --- About --- */
.about {
    padding: 5rem 2rem;
    background-color: white;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.about-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.about-logo {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.08));
}

.about-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-info p {
    margin-bottom: 1.5rem;
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.pillar-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    text-align: left;
}

.pillar-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* --- Catalog --- */
.catalog {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.catalog h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card-price {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: var(--radius);
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.8);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
}

.modal-image {
    width: 50%;
    object-fit: cover;
}

.modal-details {
    width: 50%;
    padding: 2rem;
    overflow-y: auto;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-description {
    color: #666;
    margin-bottom: 1.5rem;
    white-space: pre-line; /* Preserve line breaks */
}

.modal-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.option-group {
    margin-bottom: 1rem;
}

.option-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.option-group select, .option-group input, .option-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
}

.option-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* --- Cart --- */
.cart-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--text-dark);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1500;
    transition: transform 0.3s;
}

.cart-btn:hover {
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 2500;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 1rem;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-options {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.2rem;
}

.remove-item {
    color: #ff6b6b;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 0.5rem;
    display: inline-block;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: #fdfdfd;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

/* --- Footer --- */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

footer a {
    color: inherit;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-color);
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
}

.footer-logo {
    height: 80px;
    margin-bottom: 1rem;
}

.club {
    padding: 5rem 2rem;
    background: var(--secondary-color);
}

.club-card {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.club-text h2 {
    font-family: var(--font-heading);
    font-size: 2.7rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.club-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.club-text ul {
    list-style: none;
    margin-top: 1rem;
    padding-left: 0;
}

.club-text ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
}

.club-text ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.club-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.club-actions {
    margin-top: 1.5rem;
}

.club-btn {
    display: inline-block;
}

.club-btn:hover {
    text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-top {
        width: 100%;
        justify-content: space-between;
    }

    .nav-toggle {
        display: flex;
    }

    nav {
        width: 100%;
    }
    
    nav ul {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    header.nav-open nav ul {
        max-height: 400px;
    }
    
    .logo img {
        height: 60px;
    }

    .hero {
        padding-top: 140px; /* Provide space below the fixed header */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .anchor-section {
        scroll-margin-top: 160px;
    }

    .club-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .club-text ul li {
        padding-left: 0;
    }

    .club-text ul li::before {
        display: none;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pillar-card {
        text-align: center;
    }
    
    .modal-content {
        flex-direction: column;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .modal-image {
        width: 100%;
        height: 250px;
    }
    
    .modal-details {
        width: 100%;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}
