/*
Theme Name: KIWI WOOL
Theme URI: https://kiwiwool.nz
Author: KIWI WOOL
Author URI: https://kiwiwool.nz
Description: Custom WordPress theme for KIWI WOOL - Luxurious New Zealand Made Duvet Inners. Includes full WooCommerce support.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kiwi-wool
Tags: e-commerce, woocommerce, custom-menu, featured-images, theme-options
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
WC requires at least: 5.0
WC tested up to: 8.0
*/

:root {
    /* Color Scheme */
    --color-white: #ffffff; 
    --color-ivory: #fcfbf9; 
    --color-beige: #f2ebe6; 
    --color-sand: #e6ddd5; 
    --color-burgundy: #782329; 
    --color-burgundy-dark: #54181c; 
    --color-text-dark: #3b2f2f; 
    --color-text-brown: #5c4a46; 
    --color-deep-brown: #2b1b1b; 
    --color-badge: #8a5a44; 
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Raleway', sans-serif;
    
    --header-height: 80px;
    --announce-height: 40px;
    --scroll-padding: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-padding);
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-ivory);
    color: var(--color-text-dark);
    line-height: 1.6;
    font-size: 16px;
    position: relative;
}

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

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
    overflow: hidden;
}

section:nth-of-type(odd) { background-color: var(--color-ivory); }
section:nth-of-type(even) { background-color: var(--color-beige); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; text-align: center; margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { 
    margin-bottom: 1rem; 
    color: var(--color-text-brown); 
    font-size: 0.95rem;
}

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

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1rem auto;
    color: var(--color-burgundy);
    font-size: 1.05rem;
    font-family: var(--font-serif);
    font-style: italic;
}

/* Shop Specific Texts */
.shop-intro {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    font-size: 1rem;
    color: var(--color-text-dark);
}

.shop-outro {
    max-width: 800px;
    margin: 4rem auto 0 auto;
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--color-sand);
}
.shop-outro h4 {
    font-size: 1.5rem;
    color: var(--color-burgundy);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--color-burgundy-dark);
    border-color: var(--color-burgundy-dark);
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-text-dark);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-text-dark);
    border: 1px solid var(--color-sand);
}
.btn-outline-dark:hover {
    border-color: var(--color-burgundy);
    background-color: var(--color-burgundy);
    color: var(--color-white);
}

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

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-burgundy-dark);
    transform: translateY(-5px);
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--color-burgundy);
    color: var(--color-white);
    text-align: center;
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1001;
}
.announcement-bar a {
    text-decoration: underline;
    font-weight: 700;
    margin-left: 10px;
    color: #fff;
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-beige);
    box-shadow: 0 2px 10px rgba(61, 46, 43, 0.05);
    padding: 0;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled {
    background-color: rgba(242, 235, 230, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(61, 46, 43, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--color-text-dark);
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-burgundy);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after, .current-menu-item .nav-link::after { width: 100%; }

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-icon-link {
    color: var(--color-text-dark);
    font-size: 1.1rem;
    transition: color 0.3s;
}
.nav-icon-link:hover { color: var(--color-burgundy); }
.nav-cta-phone {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    border-right: 1px solid var(--color-sand);
    padding-right: 1.5rem;
    color: var(--color-text-dark);
}

.hamburger { display: none; cursor: pointer; border: none; background: none; }
.bar { display: block; width: 25px; height: 2px; margin: 6px auto; background-color: var(--color-text-dark); transition: all 0.3s ease; }

/* --- HERO SECTION (Homepage) --- */
#hero {
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: var(--color-deep-brown); 
    padding: 0;
    overflow: hidden;
}

/* --- HERO SECTION (Inner Pages) --- */
#shop-hero, #about-hero, #blog-hero, #contact-hero, .page-hero {
    height: 55vh; 
    min-height: 440px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: var(--color-deep-brown); 
    padding: 0;
    overflow: hidden;
}

/* Hero Slider Shared Styles */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
    animation: zoomEffect 20s infinite alternate;
    filter: brightness(0.9);
}

.hero-slide.active { opacity: 1; }

@keyframes zoomEffect {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* Original Overlay Styling (Applies to Index) */
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(43, 27, 27, 0.9) 0%, rgba(43, 27, 27, 0.5) 50%, rgba(43, 27, 27, 0) 100%); 
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4rem;
    pointer-events: none;
}

/* Specific Overlay Styling for Inner Pages */
#shop-hero .hero-overlay, 
#about-hero .hero-overlay, 
#blog-hero .hero-overlay,
#contact-hero .hero-overlay,
.page-hero .hero-overlay {
    height: 100%;
    align-items: center;
    padding-bottom: 0;
    background: linear-gradient(to top, rgba(43, 27, 27, 0.9) 0%, rgba(43, 27, 27, 0.3) 100%);
}

.hero-content {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    position: relative;
    z-index: 2;
    animation: fadeIn 1.5s ease-in-out;
    pointer-events: auto;
}

.hero-subheading {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: #e6cbb3;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 3.8rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #f2ebe6;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

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

/* Category Grid */
.category-section {
    padding: 3rem 0;
    background-color: var(--color-ivory);
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.category-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.category-card:hover img { transform: scale(1.08); }
.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(59, 47, 47, 0.8));
    color: var(--color-white);
}

/* Editorial Services Section */
.editorial-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.editorial-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.editorial-images {
    position: relative;
    height: 600px;
    width: 100%;
}

.editorial-main-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    height: 85%;
    object-fit: cover;
    z-index: 1;
    box-shadow: 10px 10px 30px rgba(59, 47, 47, 0.15);
}

.editorial-sec-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    object-fit: cover;
    z-index: 2;
    border: 8px solid var(--color-ivory);
    box-shadow: -10px -10px 30px rgba(59, 47, 47, 0.1);
}

.editorial-feature {
    border-left: 3px solid var(--color-sand);
    padding-left: 1.5rem;
}
.editorial-feature h4 { 
    font-family: var(--font-serif); 
    font-size: 1.4rem; 
    margin-bottom: 0.5rem; 
    color: var(--color-burgundy);
}
.editorial-feature p { font-size: 0.9rem; margin-bottom: 0; }

/* Story Section */
.story-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.story-layout.reversed {
    grid-template-columns: 1.2fr 1fr;
}

.story-media-wrapper {
    position: relative;
}

.story-main-img {
    width: 100%;
    height: auto;
    display: block;
}

.story-video-loop {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 250px;
    object-fit: cover;
    z-index: 2;
    border: 5px solid var(--color-ivory);
    box-shadow: 10px 10px 30px rgba(59, 47, 47, 0.15);
}

/* =========================================
   WooCommerce Product Grid & Cards
   ========================================= */

/* Hide default WC Title because we use a Custom Hero */
.woocommerce-products-header__title.page-title {
    display: none;
}

/* Main Grid Layout - 5 Columns by default */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem; /* Tighter gap for cleaner look */
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual Card Styling */
.woocommerce ul.products li.product {
    background-color: var(--color-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    justify-content: space-between; /* Spreads content out */
    box-shadow: 0 5px 15px rgba(59, 47, 47, 0.05);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
    margin: 0;
    padding: 0;
    width: 100% !important;
    height: 100%; /* Ensures all cards in a row are same height */
    text-align: center; /* Centers all text inside card */
}

/* Hover Effect */
.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(59, 47, 47, 0.1);
    z-index: 2;
}

/* Product Image */
.woocommerce ul.products li.product a img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1; /* Enforces square image */
    object-fit: cover;
    margin: 0;
    border-bottom: 1px solid var(--color-beige);
}

/* Sale Badge */
.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--color-badge);
    color: var(--color-white);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    border-radius: 2px;
    min-height: auto;
    line-height: 1.5;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text-dark);
    line-height: 1.3;
    padding: 1.5rem 1rem 0.5rem; /* Clean spacing */
    margin: 0;
}

/* Price */
.woocommerce ul.products li.product .price {
    padding: 0 1rem;
    color: var(--color-text-brown);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
}

.woocommerce ul.products li.product .price del {
    color: #b0aead;
    font-size: 0.85rem;
    margin-right: 5px;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: var(--color-burgundy);
    font-weight: 700;
}

/* Add to Cart Button - The Alignment Fix */
.woocommerce ul.products li.product .button {
    margin-top: auto; /* Pushes button to the very bottom */
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    padding: 10px 24px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: transparent;
    color: var(--color-text-dark);
    border: 1px solid var(--color-sand);
    border-radius: 0;
    width: 80%; /* Consistent button width */
}

.woocommerce ul.products li.product .button:hover {
    border-color: var(--color-burgundy);
    background-color: var(--color-burgundy);
    color: var(--color-white);
}

/* =========================================
   Responsive Grid Adjustments
   ========================================= */

/* Large Laptops: 4 Columns */
@media (max-width: 1400px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Laptops/Tablets Landscape: 3 Columns */
@media (max-width: 1100px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
    h1 { font-size: 3rem; }
    
    /* Fix Hero Heights on tablet */
    #shop-hero, #about-hero, #blog-hero, #contact-hero, .page-hero { 
        height: 45vh; 
    }
}

/* Tablets Portrait: 2 Columns */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr); /* 2 cols looks better on mobile than 1 for products */
        gap: 1rem;
    }
    
    /* Adjust Hero for Mobile */
    #shop-hero, #about-hero, #blog-hero, #contact-hero, .page-hero { 
        height: 55vh; 
        min-height: 350px; 
    }
    
    /* Navigation fixes */
    :root { --header-height: 60px; }
    .nav-menu {
        top: calc(var(--header-height)); 
    }
}
/* Single Product */
.woocommerce div.product div.images {
    float: none;
    width: 100%;
}

.woocommerce div.product div.summary {
    float: none;
    width: 100%;
}

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

.woocommerce div.product .woocommerce-tabs {
    grid-column: 1 / -1;
}

.woocommerce div.product .related.products {
    grid-column: 1 / -1;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: var(--color-burgundy);
    color: var(--color-white);
    border: 1px solid var(--color-burgundy);
    padding: 12px 28px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: var(--color-burgundy-dark);
    border-color: var(--color-burgundy-dark);
    color: var(--color-white);
}

/* Cart */
.woocommerce-cart .woocommerce {
    padding: 3rem 0;
}

.woocommerce table.shop_table {
    border: 1px solid var(--color-sand);
    border-radius: 0;
}

.woocommerce table.shop_table th {
    background-color: var(--color-beige);
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

/* Checkout */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border: 1px solid var(--color-sand);
    padding: 12px;
    font-family: var(--font-sans);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--color-burgundy);
    outline: none;
}

/* Trust & Certifications */
.certifications-section {
    background-color: var(--color-ivory);
    padding: 3rem 0;
    border-bottom: 1px solid var(--color-beige);
}
.cert-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}
.cert-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: sepia(100%) hue-rotate(-50deg) saturate(0.5) opacity(0.7);
    transition: all 0.3s ease;
}
.cert-logo:hover { filter: sepia(0%) opacity(1); }

/* USP Strip */
.usp-strip {
    background-color: #e8e0da;
    padding: 2rem 0;
    border-top: 1px solid var(--color-sand);
}
.usp-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}
.usp-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.usp-item i { font-size: 1.5rem; color: var(--color-burgundy); }
.usp-text h4 { font-size: 0.9rem; margin-bottom: 0; font-weight: 700; color: var(--color-text-dark); }
.usp-text p { font-size: 0.8rem; margin-bottom: 0; color: var(--color-text-brown); }

/* Testimonials */
.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: var(--color-ivory);
    border: 1px solid var(--color-sand);
    position: relative;
    box-shadow: 0 10px 30px rgba(59, 47, 47, 0.05);
}
.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--color-text-dark);
    line-height: 1.4;
}

/* Blog Page Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.blog-card {
    background-color: var(--color-white);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(59, 47, 47, 0.05);
    transition: transform 0.3s ease;
}
.blog-card:hover { transform: translateY(-5px); }
.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-content { padding: 1.5rem; }
.blog-date { color: var(--color-burgundy); font-size: 0.8rem; font-weight: 600; margin-bottom: 0.5rem; display: block; }
.blog-content h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* Map Section */
#map { padding: 0; }
#map iframe {
    width: 100%;
    height: 500px;
    border: 0;
    filter: sepia(0.4) opacity(0.9);
}

/* Footer */
footer {
    background-color: var(--color-deep-brown);
    color: var(--color-white);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo { filter: invert(1) sepia(0.2); opacity: 0.9; margin-bottom: 1rem; height: 60px; }
.footer-col h4 { color: var(--color-white); margin-bottom: 1.5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.8rem; list-style: none; }
.footer-col a { color: var(--color-white); transition: color 0.3s ease; }
.footer-col a:hover { opacity: 0.7; }

/* Footer Widget */
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-widget a {
    color: var(--color-white);
}

/* Contact Specifics */
#contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: var(--color-ivory);
    padding: 2rem;
    border: 1px solid var(--color-sand);
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-sand);
    background-color: #fff;
    font-family: var(--font-sans);
    color: var(--color-text-dark);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-burgundy);
}
.full-width { grid-column: 1 / -1; }

/* WordPress specific */
.wp-block-image img {
    height: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* About Page Styles */
.about-mission-section {
    background-color: var(--color-white);
    padding: 5rem 0;
}

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

.about-layered-images {
    position: relative;
    height: 400px;
    width: 100%;
    margin: 0 auto;
    max-width: 90%;
}
.about-main-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 85%;
    object-fit: cover;
    z-index: 1;
    box-shadow: 10px 10px 30px rgba(59, 47, 47, 0.15);
}
.about-sec-img {
    position: absolute;
    bottom: 0;
    right: 0; 
    width: 45%;
    height: 50%;
    object-fit: cover;
    z-index: 2;
    border: 6px solid var(--color-ivory); 
    box-shadow: -5px -5px 20px rgba(59, 47, 47, 0.1);
}

.story-layout.reversed .about-sec-img {
    right: auto;
    left: 0;
    bottom: 0;
}
.story-layout.reversed .about-main-img {
    left: auto;
    right: 0;
}

/* Policies Grid */
.policies-section {
    padding-top: 2rem;
    border-top: 1px solid var(--color-sand);
    margin-top: 4rem;
}

.policies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.policy-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border: 1px solid var(--color-sand);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.policy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(59,47,47,0.08);
    border-color: var(--color-burgundy);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 27, 27, 0.7);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background-color: var(--color-white);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-sand);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-ivory);
}

.modal-header h3 {
    margin: 0;
    font-family: var(--font-serif);
    color: var(--color-burgundy);
    font-size: 1.8rem;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-brown);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
}

.modal-close-btn:hover {
    color: var(--color-burgundy);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    line-height: 1.7;
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

.modal-body h4 {
    font-family: var(--font-sans);
    color: var(--color-burgundy);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: var(--color-text-brown);
}

.policy-card .open-modal-btn {
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
    color: var(--color-burgundy);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    cursor: pointer;
    margin-top: 1rem;
    display: inline-block;
}

.policy-card .open-modal-btn:hover {
    color: var(--color-burgundy-dark);
}

/* Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 8px;
}
.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.modal-body::-webkit-scrollbar-thumb {
    background: var(--color-sand); 
    border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--color-badge); 
}

/* Cart Icon Count */
.cart-contents {
    position: relative;
}

.cart-contents-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-burgundy);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pagination */
.pagination,
.woocommerce-pagination {
    text-align: center;
    margin-top: 3rem;
}

.pagination .page-numbers,
.woocommerce-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 3px;
    border: 1px solid var(--color-sand);
    color: var(--color-text-dark);
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers:hover {
    background-color: var(--color-burgundy);
    border-color: var(--color-burgundy);
    color: var(--color-white);
}

/* Responsive */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
    .category-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .editorial-grid, .story-layout, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .story-layout.reversed { grid-template-columns: 1fr; }
    
    .story-layout.reversed .story-media-wrapper, 
    .story-layout.reversed .about-layered-images { order: -1; }
    
    .editorial-images { order: -1; height: 400px; }
    .usp-grid { display: grid; grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .story-video-loop { width: 150px; height: 200px; bottom: -20px; left: -10px; }
    .policies-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    
    #shop-hero, #about-hero, #blog-hero, #contact-hero, .page-hero { height: 45vh; }
    
    .woocommerce div.product {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root { --header-height: 60px; }
    .navbar { padding: 0 1rem; }
    .nav-logo { font-size: 1.2rem; }
    .nav-menu {
        position: fixed;
        top: calc(var(--header-height) + var(--announce-height)); 
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--color-beige);
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: 0.3s;
        box-shadow: inset 0 5px 10px rgba(0,0,0,0.05);
    }
    .nav-menu.active { left: 0; }
    .hamburger { display: block; }
    .nav-cta-phone, .nav-icons { display: none; }
    
    #hero { height: auto; min-height: 85vh; }
    #shop-hero, #about-hero, #blog-hero, #contact-hero, .page-hero { height: 55vh; min-height: 350px; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 2rem auto 0; }
    .btn { width: 100%; }
    
    .category-grid, .blog-grid { gap: 1rem; }
    .category-card { height: 200px; }
    .woocommerce ul.products { grid-template-columns: 1fr; gap: 1.5rem; }
    .cert-grid { gap: 2rem; }
    .cert-logo { height: 40px; }
    .usp-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .story-video-loop { position: static; width: 100%; height: auto; margin-top: 1rem; }
    .editorial-sec-img { display: none; }
    .editorial-main-img { width: 100%; height: 100%; position: static; }
    .editorial-images { height: 300px; }
    .contact-grid { display: block; }
    .about-layered-images { height: 300px; }
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* =========================================
   WooCommerce Footer Logo Fix
   ========================================= */

/* 
   WooCommerce default styles set images to 'height: auto', 
   which overrides the 60px height on the shop page. 
   This forces the logo back to the correct size.
*/
body.woocommerce .footer-logo,
body.woocommerce-page .footer-logo {
    height: 60px !important;
    width: auto !important;
    max-width: none; /* Prevents width expansion */
}

/* =========================================
   Contact Page Styles
   ========================================= */

/* General Layout (Desktop Default) */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-wrapper h2 {
    font-size: 2.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--color-burgundy);
}

.contact-desc {
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    margin-top: 5px;
    color: var(--color-burgundy);
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.contact-item p {
    margin-bottom: 0;
}

/* Form Specifics */
#contact-form {
    display: grid; /* Desktop has 2 columns inside form */
    grid-template-columns: 1fr 1fr; 
    gap: 1rem;
    background: var(--color-ivory);
    padding: 2rem;
    border: 1px solid var(--color-sand);
}

.form-title {
    grid-column: 1/-1;
    margin-bottom: 1rem;
}

.btn-block {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 1rem; 
    margin-bottom: 2rem; 
    text-align: center; 
    border-radius: 2px;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }


/* =========================================
   MOBILE / RESPONSIVE ADJUSTMENTS
   ========================================= */

@media (max-width: 768px) {
    /* 1. Switch Main Layout to Single Column */
    .contact-grid {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    /* 2. Form adjustments for Mobile */
    #contact-form {
        grid-template-columns: 1fr; /* Stacks Name/Email vertically */
        padding: 1.5rem 1rem; /* Slightly less padding on sides for mobile */
        width: 100%;
        box-sizing: border-box;
    }

    /* 3. Ensure Inputs are easy to tap and spaced */
    .form-control {
        height: 50px; /* Taller touch targets */
        font-size: 16px; /* Prevents iOS zooming on focus */
    }

    textarea.form-control {
        height: auto;
    }

    /* 4. Contact Info Spacing */
    .contact-info {
        padding: 0 0.5rem;
        text-align: left; /* Keep left alignment, or change to center if preferred */
    }
    
    .contact-item {
        align-items: flex-start;
    }

    /* 5. Title Sizing */
    .section-title-wrapper h2 {
        font-size: 2rem;
    }
    
    /* 6. Ensure container padding is comfortable */
    .container {
        padding: 0 1.5rem;
    }
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--color-sand);
}

.language-switcher ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-switcher li {
    list-style: none;
}

.language-switcher a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--color-text-dark);
    transition: opacity 0.3s ease;
}

.language-switcher a:hover {
    opacity: 0.7;
}

.language-switcher img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

/* Current language highlight */
.language-switcher .current-lang a {
    font-weight: 700;
}

@media (max-width: 768px) {
    .language-switcher {
        display: none; /* Hide in mobile nav, add to mobile menu instead */
    }
}