/* #################################################################
# TRANQUILATEA - MAIN STYLESHEET
# Table of Contents:
# 1. Variables & Root
# 2. Global Resets & Typography
# 3. Header & Navigation
# 4. Hero Section
# 5. Welcome Section
# 6. Featured Products
# 7. Banner Components (Events & Seasonal)
# 8. Footer Section
#################################################################
*/

/* --- 1. VARIABLES & ROOT --- */
:root {
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
    --primary-green: #2d5a4c;
    --text-dark: #333333;
    --cream-bg: #fcf6f0;
    --border-color: #e0d8d0;
}

/* --- 2. GLOBAL RESETS & TYPOGRAPHY --- */
body {
    font-family: var(--body-font);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--primary-green);
    margin-top: 0;
}

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

/* --- 3. HEADER & NAVIGATION --- */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--cream-bg);
    border-bottom: 1px solid var(--border-color);
}

.header-navigation-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.site-branding {
    position: relative;
    width: 200px; /* Space for absolute logo */
}

.custom-logo-link img {
    max-width: 275px;
    position: absolute;
    top: -20px;
    z-index: 999;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation a {
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 0.95rem;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary-green);
}

.button-header-order {
    background-color: var(--primary-green) !important;
    color: #fff !important;
    padding: 8px 28px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid var(--primary-green);
    transition: all 0.2s ease;
    text-decoration: none;
}

.button-header-order:hover {
    background-color: transparent;
    color: var(--primary-green) !important;
    transform: translateY(-2px);
}

/* --- 4. HERO SECTION --- */
.hero-section {
    position: relative;
    height: 70vh; 
    min-height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-left: calc(10% + 215px);
    color: #fff;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    background: rgba(3, 3, 3, 0.1); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 60px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 25px;
    color: #ffffff;
    letter-spacing: -2px;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle-wrapper {
    position: relative;
    padding-top: 30px;
    margin-bottom: 40px;
}

.hero-subtitle-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 1px;
    background-color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: #fff; /* Changed from #000 for visibility on image */
    margin: 0;
}

/* --- 5. WELCOME SECTION --- */
.welcome-section {
    padding: 80px 0;
    text-align: center;
    background-color: #ffffff;
}

.welcome-intro {
    max-width: 750px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.section-title-wrapper::before,
.section-title-wrapper::after {
    content: '';
    height: 1px;
    background-color: #d1c8be;
    flex-grow: 1;
    max-width: 150px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-green);
    margin: 0 30px;
    font-weight: 400;
    font-style: italic;
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    font-weight: 300;
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.welcome-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- 6. FEATURED PRODUCTS --- */
.featured-products {
    padding: 30px 0;
    background-color: #fdfaf7;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.product-card {
    background: #ffffff;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #e0d8d0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border-color: var(--primary-green);
    transform: translateY(-5px);
}

.product-image img {
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: #333;
}

.product-price {
    font-weight: 300;
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 20px;
}

.button-outline {
    background-color: var(--primary-green);
    color: #fff;
    border: 1px solid var(--primary-green);
    padding: 12px 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button-outline:hover {
    color: var(--primary-green);
    background-color: transparent;
}

/* --- 7. BANNER COMPONENTS (Events & Seasonal) --- */
.upcoming-events-section{
    margin-top: 30px;
}

.events-full-banner {
    position: relative;
    width: 100%;
    height: 200px; /* Refined from 200px for better vertical presence */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.events-banner-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.events-floating-box {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px;
    max-width: 380px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.events-floating-box h3, 
.seasonal-banner h3 {
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-size:2em;
}

.events-button-wrapper {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.button-primary {
    background-color: var(--primary-green);
    color: #fff;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: inline-block;
    border: 2px solid var(--primary-green);
    transition: all 0.3s ease;
}

.button-primary:hover {
    background-color: #fff;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.seasonal-favorites-section {
    margin: 80px 0;
}

.seasonal-banner .events-floating-box {
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
}

/* --- 8. FOOTER SECTION --- */
.site-footer {
    background-color: var(--cream-bg);
    padding: 80px 5% 40px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0; /* Remove gap so lines sit perfectly between sections */
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    padding: 0 40px; /* Add internal padding to replace the gap */
    border-right: 1px solid #dcd3c9; /* Soft tan line */
}

/* Remove the line from the last column */
.footer-col:last-child {
    border-right: none;
}

/* Optional: Center the content within columns if they feel too left-heavy */
.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-col h4 {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border-bottom: 1px solid #dcd3c9;
    padding-bottom: 10px;
    display: inline-block;
}

.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
    margin: 0;
}

.social-links a {
    text-decoration: none;
    color: #555;
    font-size: 1.2rem;
    transition: color 0.3s;
    margin:10px;
}

.social-links a:hover {
    color: var(--primary-green);
}

.newsletter-form-wrapper input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcd3c9;
    margin-bottom: 10px;
}

.newsletter-form-wrapper input[type="submit"] {
    width: 100%;
    background-color: var(--primary-green);
    color: #fff;
    font-weight: 700;
    padding: 12px;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.newsletter-form-wrapper input[type="submit"]:hover {
    opacity: 0.9;
}


/* ##################################
# 9. Interior Pages - About Us Refined
##################################
*/
.inner-page-header {
    padding: 50px 0 60px;
    background-color: #fff;
    text-align: center; /* This fixes the floating subtitle */
}



/*
##################
## WOOCOMMERCE
*/

/* Custom Tea Shop Grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px 30px;
    margin: 60px 0;
}

.tea-product-card {
    background: #fff;
    text-align: center;
    border: 1px solid #f2ede8;
    padding: 20px;
    transition: all 0.3s ease;
}

.tea-product-card:hover {
    border-color: #b5a48b; /* Using that gold/tan accent from your menu */
    transform: translateY(-5px);
}

.product-image-wrapper img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.woocommerce-loop-product__title {
    font-family: var(--heading-font);
    font-style: italic;
    color: var(--primary-green);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.price {
    font-family: var(--body-font);
    color: #444;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 20px;
}

/* Style the 'Add to Cart' button to match your site buttons */
.woocommerce .button.add_to_cart_button {
    background-color: var(--primary-green);
    color: #fff;
    padding: 12px 25px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-radius: 0;
}

/* Shop Container Spacing */
.shop-container {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.shop-main-title {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    color: var(--primary-green);
    font-style: italic;
    margin-bottom: 40px;
}

/* The Product Grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.woocommerce ul.products li.product {
    padding: 0 !important; /* Remove Woo default padding */
    border: 1px solid #f2ede8;
    background: #fff;
    text-align: center;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Thumbnail Area */
.woocommerce-loop-product__link img {
    background-color: #f9f7f4; /* Matches your footer/intro background */
    padding: 20px;
    margin-bottom: 0 !important;
}

/* Title and Price */
.woocommerce-loop-product__title {
    font-family: var(--heading-font) !important;
    font-style: italic;
    font-size: 1.8rem !important;
    color: var(--primary-green) !important;
    padding: 20px 15px 5px !important;
}

.price {
    font-family: var(--body-font);
    color: #b5a48b !important; /* The gold/tan accent */
    font-size: 1.2rem !important;
    margin-bottom: 20px !important;
    display: block;
}

/* The Add to Cart Button */
.woocommerce ul.products li.product .button {
    background-color: var(--primary-green) !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 15px 30px !important;
    font-family: var(--body-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-top: 0 !important;
}

/* Fix for that "Default Sorting" dropdown */
.woocommerce-ordering {
    margin-bottom: 40px !important;
}

.woocommerce-ordering select {
    padding: 10px;
    border: 1px solid #e0d8d0;
    font-family: var(--body-font);
    color: #666;
}

/* 1. Force the Grid to be Wide and Centered */
.woocommerce ul.products {
    display: grid !important;
    /* This creates 3 equal columns. Change '3' to '4' if you want more per row */
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 30px !important;
    margin: 40px auto !important;
    max-width: 1200px;
    padding: 0 20px;
    list-style: none !important;
}

/* 2. Style the Category/Product Card */
.woocommerce ul.products li.product {
    width: 100% !important; /* Overrides the narrow WooCommerce % width */
    margin: 0 !important;
    float: none !important; /* Kills the old float layout */
    background: #fff;
    border: 1px solid #f2ede8;
    padding: 0 0 20px 0 !important;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* 3. Style the Images/Placeholders */
.woocommerce ul.products li.product img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover; /* Ensures images fill the box without stretching */
    background-color: #f9f7f4;
    margin-bottom: 20px !important;
}

/* 4. Category & Product Titles */
.woocommerce-loop-category__title, 
.woocommerce-loop-product__title {
    font-family: var(--heading-font) !important;
    font-style: italic;
    font-size: 1.5rem !important;
    color: var(--primary-green) !important;
    line-height: 1.2;
    padding: 10px 15px !important;
}

/* 5. Style the (Count) number */
.woocommerce-loop-category__title .count {
    display: block;
    font-family: var(--body-font);
    font-style: normal;
    font-size: 0.9rem;
    color: #b5a48b; /* Using your tan accent color */
    background: none;
    margin-top: 5px;
}

/* Responsive: Drop to 2 columns on tablets, 1 on mobile */
@media (max-width: 992px) {
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .woocommerce ul.products { grid-template-columns: 1fr !important; }
}


/* Remove the WooCommerce clearfix that creates white space in Grid layouts */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    content: none !important;
    display: none !important;
}


.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    /* Ensure no stray margin/padding is pushing the grid down */
    padding: 0 !important;
    margin-top: 20px !important; 
}


/*
#######
Mobile
#######
*/


/* #################################################################
# 10. MOBILE RESPONSIVENESS (Max-width: 1050px)
#################################################################
*/

@media (max-width: 1050px) {
    
    .header-cta{ display:none;}
    /* Header & Navigation */
    .header-container {
        flex-direction: column;
        padding: 15px 5%;
    }

    .site-branding {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: -105px; /* Space for the floating logo */
    }

    .custom-logo-link img {
        position: relative; /* Stop floating on mobile so it doesn't cover text */
        top: 0;
        max-width: 230px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .button-header-order {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }

    /* Hero Section */
    .hero-section {
        padding-left: 5%;
        padding-right: 5%;
        height: auto;
        min-height: 400px;
        text-align: center;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 2.5rem; /* Shrink that 4.5rem title */
        letter-spacing: -1px;
    }

    /* Welcome & Grid Sections */
    .welcome-grid, 
    .products-grid,
    .footer-container {
        grid-template-columns: 1fr !important; /* Force everything to 1 column */
        padding: 0 20px;
    }

    .welcome-image img {
        height: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Banner Components */
    .events-floating-box {
        max-width: 100%;
        padding: 20px;
    }

    .events-full-banner {
        height: auto;
        padding: 60px 0;
    }

    /* Footer Section */
    .footer-col {
        border-right: none;
        border-bottom: 1px solid #dcd3c9;
        padding: 30px 0;
        align-items: center;
        text-align: center;
    }

    .footer-col:last-child {
        border-bottom: none;
    }

    /* Interior Pages Header */
    .inner-page-header {
        padding: 120px 20px 40px; /* Space for logo */
    }
}


@media (max-width: 1050px) {

    .page-content-wrapper {
        margin-top: 0px !important;
    }
    .site-main {
        padding:15px !important;
    }
    .events-button-wrapper {  
        bottom: -33px;
    }
    .site-footer {        
        padding: 0px 5% 40px;
    }
    .shop-container {
        padding: 0px 20px;
    }

    .single-product-main {
        padding: 0px 20px !important;
    }
    /* Interior Pages Header */
    .inner-page-header {
        padding: 30px 20px 10px; /* Space for logo */
    }


    /* Hide the default nav and position it absolutely */
    .main-navigation {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%; /* Sits right under the header */
        left: 0;
        background: var(--cream-bg);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        z-index: 998;
    }

    /* Show it when JS adds 'is-active' */
    .main-navigation.is-active {
        display: block;
    }

    /* The Hamburger Button Styling */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1000;
    }

    .hamburger-line {
        width: 30px;
        height: 3px;
        background-color: var(--primary-green);
        transition: all 0.3s ease;
    }

    /* Simple X animation when open */
    .menu-toggle.is-open .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-open .hamburger-line:nth-child(2) { opacity: 0; }
    .menu-toggle.is-open .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .header-navigation-wrapper {
        width: 100%;
        justify-content: space-between;
        margin-top: 20px;
    }
}

/* Hide toggle on desktop */
@media (min-width: 1051px) {
    .menu-toggle {
        display: none;
    }
}


@media (max-width: 1050px) {
    /* 1. Ensure the header itself doesn't hide overflow */
    .site-header {
        position: relative;
        overflow: visible !important;
    }

    /* 2. Position the menu correctly */
    .main-navigation {
        display: none; /* JS will toggle this to block */
        position: absolute;
        top: 100%; /* Sits exactly at the bottom of the header */
        left: 0;
        width: 100%;
        background-color: #fcf6f0 !important; /* Force the cream color */
        padding: 40px 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 9999 !important; /* High enough to beat the logo and hero */
        border-bottom: 1px solid var(--border-color);
    }

    /* 3. When active, make it visible */
    .main-navigation.is-active {
        display: block !important;
    }

    /* 4. Style the links so they are easy to tap */
    .main-navigation ul {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .main-navigation a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }




/* Force 1-column grid on mobile for WooCommerce loops */
.woocommerce ul.products {
    grid-template-columns: 1fr !important; /* One big card per row */
    gap: 30px !important;
    padding: 0 20px !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 0 0 30px 0 !important; /* Space at the bottom of the card */
    display: flex;
    flex-direction: column;
}

/* Make the image large and impactful again */
.woocommerce ul.products li.product img {
    height: 300px !important; /* Or 'auto' if you want natural proportions */
    width: 100% !important;
    object-fit: cover;
    margin-bottom: 20px !important;
}

/* Scale typography back up for readability */
.woocommerce-loop-product__title,
.woocommerce-loop-category__title {
    font-size: 1.8rem !important;
    padding: 0 20px !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
}

.woocommerce ul.products li.product .price {
    font-size: 1.2rem !important;
    padding: 0 20px !important;
    margin-bottom: 20px !important;
}

/* Button stays full width and easy to tap */
.woocommerce ul.products li.product .button {
    margin: 0 20px !important;
    padding: 15px !important;
    font-size: 0.9rem !important;
    text-align: center;
}

/* Category count styling */
.woocommerce-loop-category__title .count {
    display: inline-block;
    font-size: 0.9rem;
    margin-left: 10px;
}

}
