/*
Theme Name: Helix Christian Store
Theme URI: https://dev.emcerium.com/
Template: storefront
Author: Helix Engineering
Description: A custom TCS.co.uk inspired theme integrating modern WooCommerce storefront layout
Version: 1.2.4
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;800;900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

:root {
    /* New Boutique Christian Lifestyle Palette */
    --color-ivory: #fdfbf7;
    --color-sage: #9cada3;
    --color-sage-dark: #7a8a81;
    --color-charcoal: #2f2f2f;
    --color-charcoal-dark: #2D3A40; /* The deep slate/charcoal used for headings */
    --color-slate: #5A6B73;         /* The greyish slate used for body text and icons */
    --color-gold: #bfa272;
    --color-off-white: #f5f3f0;
    --color-creme: #fdfbf7;
    --color-oatmeal: #f5f3f0;
    --color-border: #e6e6e6;
    --color-border-light: #efefef;
    --color-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-ui: 'Roboto', sans-serif;
    --font-script: 'Great Vibes', cursive;
    
    /* Spacing & Borders */
    --header-height: 100px;
    --border-radius: 4px;
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--color-ivory);
    color: var(--color-charcoal);
    font-family: var(--font-ui);
    margin: 0;
    padding: 0;
    overflow-x: clip;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

html {
    overflow-x: clip;
    width: 100%;
}

#page {
    width: 100%;
    overflow-x: clip;
    margin: 0 auto;
}

.content-area,
#primary,
#main {
    float: none;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1400px;
}

.heritage-serif {
    font-family: var(--font-heading);
    color: var(--color-slate);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
    text-transform: none;
    font-style: normal;
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.heritage-serif .cap {
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-charcoal-dark);
}

/* Trust Bar */
.helix-announcement-bar {
    background-color: var(--color-charcoal);
    color: var(--color-ivory);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 10px 0;
    text-align: center;
}

.helix-announcement-bar .sep {
    margin: 0 15px;
    opacity: 0.3;
}

/* 2. Main Header Redesign */
.helix-boutique-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border-light);
    position: relative;
    z-index: 10005;
}

.helix-boutique-header {
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 10002;
    overflow: visible !important;
}

.helix-site-branding svg {
    height: 50px;
}

.helix-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* Logo | Search | Icons */
    align-items: center;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100px;
    overflow: visible !important;
}

/* Logo */
.header-logo .helix-wordmark {
    font-size: 32px;
    text-decoration: none;
    color: var(--color-charcoal);
}

.header-logo .cap {
    font-size: 42px;
}


/* Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-icon-link {
    color: var(--color-charcoal);
    transition: color 0.2s;
    position: relative;
}

.header-icon-link:hover {
    color: var(--color-sage);
}

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

/* Nav */
.helix-boutique-nav {
    padding: 20px 0;
    position: relative;
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border-light);
    z-index: 10001; /* Above the header if necessary, and definitely above the page content */
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.nav-list li {
    position: relative; /* Anchor for sub-menu */
    padding: 10px 0;
}

.nav-list a {
    text-decoration: none;
    color: var(--color-charcoal);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s;
    display: block;
}

/* Dropdown styling */
.sub-menu {
    display: none; /* Switched to display: none for reliability */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-white);
    min-width: 200px;
    padding: 15px 0;
    list-style: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: var(--border-radius);
    z-index: 1000;
}

.nav-list li:hover .sub-menu {
    display: block;
}

.sub-menu li {
    padding: 0;
    margin: 0;
    text-align: left;
}

.sub-menu a {
    padding: 10px 25px;
    text-transform: none;
    font-size: 14px;
    letter-spacing: 0;
    white-space: nowrap;
    font-weight: 400;
    color: var(--color-charcoal);
}

.sub-menu a:hover {
    background-color: #f9f9f9;
    color: var(--color-sage);
}

.nav-list li.has-mega-menu {
    position: static; /* Important for full-width mega menu */
}

/* Mega Menu Styles */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #f1f3ee;
    padding: 30px 0;
    border-top: 1px solid #e0e4da;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mega-menu.is-active {
    opacity: 1 !important;
    visibility: visible !important;
}

.mega-content {
    display: none;
}

.mega-content.is-active {
    display: block;
}

.mega-top-bar {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.explore-all {
    color: #233123; /* Deep Green from image */
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.explore-all:hover {
    color: var(--color-sage);
}

.mega-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    text-align: left;
}

.mega-col {
    min-width: 180px;
}

.mega-col h4 {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 15px;
    color: #233123;
    margin-bottom: 15px;
}

.mega-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-col li {
    margin-bottom: 8px;
}

.mega-col li a {
    color: #444444;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.mega-col li a:hover {
    color: var(--color-sage);
}

.mega-col li.see-all a {
    color: #233123;
    font-weight: 700;
    margin-top: 5px;
    display: block;
}

.nav-list a:hover {
    color: var(--color-sage);
}

.sale-item a {
    color: #b33;
}

/* Branding — Wordmark */
.helix-site-branding a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.helix-wordmark-svg {
    display: block;
    line-height: 1;
}

.helix-wordmark-svg svg {
    display: block;
    height: 40px;
    width: auto;
}



/* Extend the T's vertical stroke upward to form a cross */
.wm-cross::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5px;
    height: 9px;
    background-color: #1a1a1a;
    border-radius: 1px;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 500px;
    width: 100%;
    justify-self: center;
}

.helix-search-form {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: all 0.2s;
    height: 50px; /* Fixed height for clean alignment */
    align-items: center;
}

.helix-search-form:focus-within {
    border-color: var(--color-sage);
}

.helix-search-field {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: var(--color-charcoal-dark);
}

.helix-search-field::placeholder {
    color: var(--color-slate);
}

.helix-search-button {
    background: transparent;
    border: none;
    padding: 0 16px;
    color: var(--color-charcoal-dark);
    cursor: pointer;
    transition: color 0.2s;
}

.helix-search-button:hover {
    color: var(--color-sage);
}

/* Action Icons */
.helix-header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.helix-action-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-slate);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    gap: 4px;
    position: relative;
    transition: color 0.2s;
}

.helix-action-link:hover {
    color: var(--color-sage);
}

.helix-cart-count {
    position: absolute;
    top: -6px;
    right: 5px;
    background-color: var(--color-gold);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}




/* Storefront override fixes */
.site-header {
    margin-bottom: 0 !important;
}

/* -------------------------------------
   TCS Exact Homepage Layout 
-------------------------------------- */
.tcs-literal-homepage {
    background-color: var(--color-ivory);
}

.tcs-literal-section {
    width: 100%;
    max-width: 100%;
    padding: 40px 0 60px;
    margin: 0;
    background-color: #f0ebe4;
}

/* Charities Section */
.tcs-charities-section {
    padding: 60px 0;
    background-color: var(--color-off-white);
    text-align: center;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 40px;
}

.charities-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.charities-link-wrapper:hover {
    opacity: 0.85;
}

.charities-heading {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-slate);
    margin: 0 0 15px 0;
    font-weight: 600;
}

.charities-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.charity-item {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-charcoal);
    font-weight: 600;
    opacity: 0.7;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.charity-item:hover {
    color: var(--color-sage);
    opacity: 1;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .charities-list {
        gap: 20px;
    }
    .charity-item {
        font-size: 22px;
    }
}

.tcs-bestseller-cards {
    margin-top: 0 !important; 
}

.tcs-hero-block {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.col-full,
.helix-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

.tcs-heading {
    font-family: var(--font-heading);
    font-size: clamp(28px, 6vw, 56px) !important;
    font-weight: 500 !important;
    color: #1A1A1A !important;
    letter-spacing: 0.01em;
    margin-bottom: 30px !important;
    text-align: center;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    
    /* Technical Rasterization Fixes */
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 1. Boutique Hero Slider Section */
.helix-boutique-hero-slider {
    position: relative;
    height: 600px;
    background-color: var(--color-off-white);
    overflow: hidden;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 10s linear;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.7) 0%,   /* Darker at top for contrast */
        rgba(0,0,0,0.2) 100%
    );
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1.05);
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 10;
}

.hero-text-box {
    margin-bottom: 30px;
    max-width: 650px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(47, 47, 47, 0.2);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--color-sage);
    width: 30px;
    border-radius: 10px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 8vw, 72px);
    line-height: 1.1;
    color: #ffffff !important;
    margin: 0 0 20px;
    font-weight: 600;
    
    /* Technical Rasterization Fixes */
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased; /* Use antialiased for crisp light-on-dark text */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Solid shadow for contrast */
}

.hero-subtitle {
    font-size: clamp(16px, 4vw, 22px);
    color: #ffffff !important;
    margin-bottom: 40px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--color-sage);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 800; /* Bolder to fight the low contrast of sage green */
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--border-radius);
    transition: background 0.3s;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Crisp shadow to prevent blurring */
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 14px 20px !important;
        font-size: 13px !important;
        width: 100%;
        display: block;
        box-sizing: border-box;
    }
    
    .slider-dots {
        display: none !important;
    }
}

.btn-primary:hover {
    background-color: var(--color-sage-dark);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 14px 30px; /* adjusted for border */
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--border-radius);
    transition: all 0.3s;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--color-charcoal);
}

/* 2. Trust Signals Bar */
.helix-trust-signals {
    background-color: var(--color-white);
    padding: 15px 0; /* Reduced from 30px */
    border-bottom: 1px solid #eee;
}

.signals-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.signal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-charcoal);
    font-size: 13px;
    font-weight: 500;
    opacity: 0.7;
    flex: 1 1 auto;
    justify-content: center;
}

@media (max-width: 768px) {
    .signal-item {
        font-size: 11px;
        gap: 6px;
        flex: 0 0 calc(50% - 10px);
        justify-content: center;
        text-align: center;
    }
}

/* 3. Category Tiles */
.helix-category-tiles {
    padding: 40px 0 80px; /* Reduced top padding from 80px to 40px */
    background-color: var(--color-ivory);
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .tiles-grid {
        grid-template-columns: 1fr;
    }
    .tile-item {
        height: 350px !important;
    }
}

.tile-item {
    position: relative;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tile-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.15);
}

.tile-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.tile-item:hover::after {
    opacity: 1;
}

.tile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}

.tile-item:hover .tile-image {
    transform: scale(1.06);
}

.tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 40px;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.85) 0%, 
        rgba(0,0,0,0.4) 50%, 
        rgba(0,0,0,0) 100%
    );
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 50%;
    z-index: 3;
}

.tile-title {
    font-family: var(--font-heading);
    font-size: 36px !important;
    margin: 0 0 10px;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    
    /* Technical Rasterization Fixes */
    font-optical-sizing: auto;
    -webkit-font-smoothing: subpixel-antialiased;
    text-shadow: 0.2px 0.2px 0.5px rgba(0,0,0,0.2); /* Fattening for white text on images */
}

@media (max-width: 768px) {
    .tile-title {
        font-size: 26px !important;
        word-break: keep-all; /* Prevent breaking mid-word */
    }
    .tile-overlay {
        padding: 40px 20px 30px !important;
    }
}

.tile-link {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    border-bottom: 2px solid var(--color-sage);
    padding-bottom: 5px;
}

/* 2. Most Popular 6-col density */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 15px !important;
}

ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    background: #ffffff;
    border: none;
    border-radius: 4px;
    transition: box-shadow 0.3s;
    padding-bottom: 10px;
    text-align: left;
}

ul.products li.product:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-ui);
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--color-charcoal-dark);
    padding: 0 10px;
    margin-bottom: 5px;
}

ul.products li.product .author-name {
    font-size: 13px;
    color: var(--color-charcoal);
    font-weight: 500;
    padding: 0 10px;
    margin-bottom: 15px;
}

ul.products li.product .price {
    padding: 0 10px;
    color: #c00;
    font-weight: 700;
    font-size: 15px;
}

ul.products li.product img {
    margin-bottom: 10px;
    border-radius: 12px;
}

/* Removed global button hiding rule */

/* -------------------------------------
   Best Selling Greeting Cards (Homepage)
-------------------------------------- */
.tcs-bestseller-cards .tcs-bestseller-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0 25px;
}

/* Consolidating into global .tcs-heading */

.tcs-bestseller-cards .tcs-bestseller-nav {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

.tcs-bestseller-cards .tcs-bestseller-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: #f2f2f2;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background 0.15s;
}

.tcs-bestseller-cards .tcs-bestseller-btn:hover {
    transform: scale(1.04);
    background: #ebebeb;
}

.tcs-bestseller-cards ul.products {
    display: flex !important;
    gap: 18px !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 5px 0 15px;
}

.tcs-bestseller-cards ul.products::-webkit-scrollbar {
    display: none;
}

.tcs-bestseller-cards ul.products li.product {
    flex: 0 0 320px;
    scroll-snap-align: start;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tcs-bestseller-cards ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}

/* Image wrapper: inset border effect inside the card */
.tcs-bestseller-cards ul.products li.product .product-image-container {
    display: block;
    padding: 10px;
    border-bottom: 1px solid var(--color-border-light);
    background: #fff;
    margin-bottom: 0;
    border-radius: 0;
    aspect-ratio: auto;
}

.tcs-bestseller-cards ul.products li.product .product-image-container a.woocommerce-LoopProduct-link {
    display: block;
    width: 100%;
}

.tcs-bestseller-cards ul.products li.product img {
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: #fff;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
}

/* Name & price sit below the image area */
.tcs-bestseller-cards ul.products li.product .woocommerce-loop-product__title {
    padding: 12px 14px 4px !important;
    margin: 0;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3;
    color: var(--color-charcoal-dark) !important;
    white-space: normal;
}

.tcs-bestseller-cards ul.products li.product .tcs-product-price,
.tcs-bestseller-cards ul.products li.product .tcs-product-price {
    padding: 0 14px 16px !important;
    margin: 0;
    color: var(--color-charcoal-dark) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    display: block;
}

.tcs-bestseller-cards ul.products li.product .tcs-product-promo,
.tcs-bestseller-cards ul.products li.product .tcs-new-badge {
    display: none !important;
}

/* -------------------------------------
   Latest Products (Homepage)
-------------------------------------- */
.tcs-latest-products .tcs-latest-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0 25px;
}

.tcs-latest-products .tcs-latest-nav {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

.tcs-latest-products .tcs-latest-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: #f2f2f2;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background 0.15s;
}

.tcs-latest-products .tcs-latest-btn:hover {
    transform: scale(1.04);
    background: #ebebeb;
}

.tcs-latest-products ul.products {
    display: flex !important;
    gap: 18px !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 0 16px;
}

.tcs-latest-products ul.products::-webkit-scrollbar {
    display: none;
}

.tcs-latest-products ul.products li.product {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tcs-latest-products ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}

.tcs-latest-products ul.products li.product img {
    border-radius: 10px;
    border: 1px solid var(--color-border-light);
    background: #fff;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    width: 100%;
    margin: 0;
}

.tcs-latest-products ul.products li.product .product-image-container {
    display: block;
    background-color: transparent !important;
    padding: 10px !important;
    border: none;
    border-bottom: 1px solid var(--color-border-light) !important;
    border-radius: 0;
    margin-bottom: 0 !important;
    aspect-ratio: auto;
}

.tcs-latest-products ul.products li.product .woocommerce-loop-product__title {
    padding: 12px 14px 4px !important;
    margin: 0;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3;
    color: var(--color-charcoal-dark) !important;
    white-space: normal;
    display: block !important;
}

.tcs-latest-products ul.products li.product .tcs-product-price {
    padding: 0 14px 16px !important;
    margin: 0;
    color: var(--color-charcoal-dark) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    display: block !important;
}

.tcs-latest-products ul.products li.product .tcs-product-promo,
.tcs-latest-products ul.products li.product .tcs-new-badge {
    display: none !important;
}

@media (max-width: 900px) {
    .tcs-latest-products ul.products li.product { flex-basis: 155px; }
    .tcs-latest-products .tcs-latest-btn { width: 40px; height: 40px; }
}

@media (max-width: 900px) {
    .tcs-bestseller-cards .tcs-heading { 
        font-size: clamp(22px, 3vw, 36px) !important; 
    }
    .tcs-bestseller-cards ul.products li.product { 
        flex: 0 0 155px !important;
        max-width: 155px !important;
    }
}

@media (max-width: 768px) {
    /* Stack controls under title on mobile */
    .tcs-bestseller-header, .tcs-latest-header, .tcs-occasion-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .tcs-bestseller-nav, .tcs-latest-nav, .tcs-occasion-nav {
        position: static !important;
        transform: none !important;
        width: 100%;
        justify-content: space-between;
        display: flex !important; /* Ensure they aren't hidden */
    }
}

/* -------------------------------------
   Potty Mouse Cards Promo Banner
-------------------------------------- */
.tcs-promo-banner {
    display: flex;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    margin: 40px 0 50px; /* Added 40px top margin for white gap */
}

/* Match the "white / pink / white" strip rhythm shown in the reference */
.potty-mouse-banner {
    min-height: 0;
    background: #faf6f7; /* Soft, muted blush */
    border-top: 1px solid #f2efed;
    border-bottom: 1px solid #f2efed;
}

/* Left half: 3 coloured card columns */
.pmb-cards-panel {
    display: flex;
    flex: 0 0 56%;
    max-width: 56%;
}

.pmb-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(14px, 2.6vw, 34px);
    padding: clamp(14px, 2.2vw, 26px) clamp(10px, 1.4vw, 14px);
}

/* Column background colours - whispered pastels */
.pmb-col--white {
    background-color: #fdfdfd;
}

.pmb-col--green {
    background-color: #f0f4f1; /* Whisper sage */
}

.pmb-col--rose {
    background-color: #fcf4f6; /* Whisper rose */
}

/* Thin vertical divider strips */
.pmb-divider {
    flex: 0 0 clamp(10px, 1.6vw, 18px);
    width: clamp(10px, 1.6vw, 18px);
    align-self: stretch;
}

.pmb-div--purple {
    background: linear-gradient(90deg, #f5eef1 0 46%, #ffffff 46% 100%);
}
.pmb-div--pink {
    background: linear-gradient(90deg, #ffffff 0 33%, #f5eef1 33% 66%, #ffffff 66% 100%);
}
.pmb-div--white {
    background: #ffffff;
}

.pmb-card-frame {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 auto;
    padding: clamp(10px, 1.4vw, 14px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05); /* Softer shadow */
}

.pmb-card-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

/* Right half: CTA */
.pmb-cta-panel {
    flex: 1;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 4.4vw, 70px) clamp(24px, 4.4vw, 70px);
}

.pmb-title {
    font-family: var(--font-heading); /* Match site editorial style */
    font-size: clamp(36px, 4.2vw, 56px);
    font-weight: 500;
    color: var(--color-charcoal);
    margin: 0 0 12px;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.pmb-subtitle {
    font-family: var(--font-ui);
    font-size: clamp(16px, 1.7vw, 18px);
    color: var(--color-slate);
    margin: 0 0 32px;
    line-height: 1.5;
}

.pmb-btn {
    display: inline-block;
    background: var(--color-charcoal);
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: clamp(14px, 1.2vw, 16px) clamp(26px, 2.6vw, 38px);
    border-radius: 4px; /* Match standard site buttons */
    text-transform: uppercase;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.3s, transform 0.3s;
}

.pmb-btn:hover {
    background: #000000;
    transform: translateY(-2px);
}

@media (max-width: 1050px) {
    .tcs-promo-banner {
        flex-direction: column;
    }
    .pmb-cards-panel {
        flex: none;
        max-width: 100%;
        min-height: 220px;
    }
    .pmb-cta-panel {
        padding: 34px 24px;
    }
    .pmb-title { font-size: 32px; }
    .pmb-subtitle { font-size: 16px; }
    .pmb-card-frame img { height: auto; }
}

@media (max-width: 768px) {
    .pmb-cards-panel {
        display: none !important;
    }
    .pmb-cta-panel {
        text-align: center;
        align-items: center;
        padding: 50px 30px;
    }
    .pmb-btn {
        align-self: center;
    }
}

/* -------------------------------------
   Browse By Occasion (Homepage)
-------------------------------------- */
.tcs-browse-occasion {
    margin-top: 10px;
}

.tcs-occasion-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0 22px;
}

.tcs-browse-occasion .tcs-occasion-heading {
    margin: 0;
}

.tcs-occasion-nav {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

.tcs-occasion-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: #f2f2f2;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background 0.15s;
}

.tcs-occasion-btn:hover {
    transform: scale(1.04);
    background: #ebebeb;
}

.tcs-occasion-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 0 16px;
}

.tcs-occasion-track::-webkit-scrollbar {
    display: none;
}

.tcs-occasion-card {
    flex: 0 0 190px; /* Matched to 6-column product card width */
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    transition: transform 0.15s, opacity 0.15s;
}

.tcs-occasion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.tcs-occasion-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--color-border-light);
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tcs-occasion-label {
    display: block;
    margin-top: 12px;
    font-family: var(--font-ui);
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--color-charcoal-dark) !important;
    text-align: center;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .tcs-occasion-card { flex-basis: 160px; }
    .tcs-occasion-btn { width: 40px; height: 40px; }
}

/* -------------------------------------
   Olive Wood Crosses Feature (Homepage)
-------------------------------------- */
.tcs-olivewood-feature {
    display: flex;
    align-items: stretch;
    background: #f4efe7;
    border-radius: 18px;
    overflow: hidden;
    margin: 30px auto 60px;
    max-width: 1440px;
    width: calc(100% - 40px);
}

.tcs-olivewood-media {
    position: relative;
    flex: 0 0 56%;
    max-width: 56%;
    overflow: hidden;
    padding: clamp(18px, 2.5vw, 32px);
}

.tcs-olivewood-media::before {
    content: "";
    position: absolute;
    width: 140%;
    height: 160%;
    left: -55%;
    top: -30%;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, #3d9aa0 0%, #2b7f84 55%, #236d71 100%);
}

/* ISOLATED BOUTIQUE SECTION: OLIVEWOOD CROSSES (FLUSH) */
#tcs-artisanal-olivewood-feature {
    display: block !important;
    background-color: #f5f3ee !important; /* Muted Oatmeal BG */
    max-width: 100% !important; /* Flush Full-Width */
    margin: 40px 0 !important; /* White gap top and bottom */
    padding: 100px 0 !important;
    border-radius: 0 !important; /* Removed rounded corners */
    box-shadow: none !important; /* Removed shadow for flush look */
    overflow: hidden !important;
    position: relative !important;
}

#tcs-artisanal-olivewood-feature .banner-inner {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr !important;
    align-items: center !important;
    gap: 80px !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
}

/* Visual Stack: Horizontal Fan-Out */
#tcs-artisanal-olivewood-feature .olivewood-visuals {
    position: relative !important;
    height: 600px !important;
    width: 100% !important;
}

#tcs-artisanal-olivewood-feature .visual-stack {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

#tcs-artisanal-olivewood-feature .wall-shot {
    position: absolute !important;
    width: 380px !important;
    height: 500px !important;
    left: 0 !important;
    top: 20px !important;
    z-index: 1 !important; /* BACK - LEFT */
    border: 8px solid #fff !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06) !important;
    transform: rotate(-3deg) !important;
    overflow: hidden !important;
}

#tcs-artisanal-olivewood-feature .hand-shot-bg {
    position: absolute !important;
    width: 320px !important;
    height: 420px !important;
    left: 140px !important;
    bottom: 20px !important;
    z-index: 2 !important; /* MIDDLE - CENTERED */
    background: url('assets/images/olivewood-artisanal-hero.png') center/cover no-repeat !important;
    border: 8px solid #fff !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1) !important;
    transform: rotate(2deg) !important;
}

#tcs-artisanal-olivewood-feature .standing-shot {
    position: absolute !important;
    width: 340px !important;
    height: 340px !important;
    right: 20px !important;
    top: 60px !important;
    z-index: 3 !important; /* FRONT - RIGHT */
    border: 8px solid #fff !important;
    box-shadow: 0 35px 70px rgba(0,0,0,0.15) !important;
    transform: rotate(-2deg) !important;
    overflow: hidden !important;
}

#tcs-artisanal-olivewood-feature .visual-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Copy & Typography */
#tcs-artisanal-olivewood-feature .banner-headline {
    font-family: 'Playfair Display', serif !important;
    font-size: 58px !important;
    line-height: 1.1 !important;
    color: #233123 !important;
    margin-bottom: 24px !important;
    letter-spacing: -0.02em !important;
}

#tcs-artisanal-olivewood-feature .banner-body {
    font-size: 18px !important;
    line-height: 1.7 !important;
    color: #555 !important;
    margin-bottom: 40px !important;
    max-width: 480px !important;
}

#tcs-artisanal-olivewood-feature .btn-teal {
    display: inline-block !important;
    background-color: var(--color-charcoal-dark) !important;
    color: #ffffff !important;
    padding: 18px 45px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

#tcs-artisanal-olivewood-feature .btn-teal:hover {
    background-color: #233123 !important;
    transform: translateY(-2px) !important;
}

@media (max-width: 1050px) {
    #tcs-artisanal-olivewood-feature {
        margin: 40px 0 !important;
        padding: 60px 20px !important;
    }
    #tcs-artisanal-olivewood-feature .banner-inner {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 60px !important;
    }
    #tcs-artisanal-olivewood-feature .olivewood-visuals {
        height: 380px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    #tcs-artisanal-olivewood-feature .banner-body {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    #tcs-artisanal-olivewood-feature .wall-shot {
        width: 60% !important;
        height: 300px !important;
        left: -5% !important;
    }
    #tcs-artisanal-olivewood-feature .hand-shot-bg {
        width: 50% !important;
        height: 250px !important;
        left: 50% !important;
        transform: translateX(-50%) rotate(2deg) !important;
    }
    #tcs-artisanal-olivewood-feature .standing-shot {
        width: 50% !important;
        height: 200px !important;
        right: -5% !important;
    }
}

@media (max-width: 768px) {
    #tcs-artisanal-olivewood-feature .banner-headline {
        font-size: 32px !important;
    }
    #tcs-artisanal-olivewood-feature .banner-body {
        font-size: 16px !important;
        margin-bottom: 20px !important;
    }
    #tcs-artisanal-olivewood-feature .btn-teal {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center;
    }
    #tcs-artisanal-olivewood-feature .olivewood-visuals {
        height: 220px !important; 
    }
    #tcs-artisanal-olivewood-feature .wall-shot {
        width: 45% !important;
        height: 180px !important;
        left: 0 !important;
        top: 20px !important;
        border-width: 4px !important;
    }
    #tcs-artisanal-olivewood-feature .hand-shot-bg {
        width: 45% !important;
        height: 200px !important;
        left: 50% !important;
        bottom: 0 !important;
        transform: translateX(-50%) rotate(2deg) !important;
        border-width: 4px !important;
    }
    #tcs-artisanal-olivewood-feature .standing-shot {
        width: 45% !important;
        height: 160px !important;
        right: 0 !important;
        top: 40px !important;
        border-width: 4px !important;
    }
}

@media (max-width: 640px) {
    .tcs-olivewood-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.did-you-know-section {
    background-color: #f0ebe4 !important; /* Bold, warm off-white */
    padding: 80px 0 !important; /* Give it more breathing room to stand out */
    max-width: 100% !important;
    margin: 40px 0 !important; /* White gap top and bottom */
}

.dyk-container {
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
}

.did-you-know-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto 20px;
}

.see-all-link {
    color: var(--color-charcoal-dark);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--color-charcoal-dark);
    padding-bottom: 2px;
}

/* CENTERED HEADERS */
.did-you-know-header,
.tcs-latest-header {
    text-align: center !important;
    margin-bottom: 40px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.did-you-know-header .see-all-link,
.tcs-latest-header .see-all-link {
    margin-top: 10px !important;
    float: none !important;
}

/* UNIFIED ARTISANAL GRID: DYK & LATEST PRODUCTS */
.dyk-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 1440px;
    margin: 0 auto;
}

.tcs-latest-products .products {
    display: flex; /* Scroller needs flex, not grid */
    flex-wrap: nowrap;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tcs-latest-products .products::-webkit-scrollbar { display: none !important; }

.dyk-card {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: inherit !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.15s ease !important;
}

.tcs-latest-products .products .product {
    flex: 0 0 190px !important; /* FIXED WIDTH MATCHING OCCASION */
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: inherit !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.15s ease !important;
}

.dyk-card:hover,
.tcs-latest-products .products .product:hover {
    transform: translateY(-2px) !important;
}

.dyk-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    background-size: cover !important;
    background-position: center !important;
    background-color: #ffffff !important;
    border-radius: 10px !important;
    border: 1px solid var(--color-border-light) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    object-fit: cover !important;
    display: block !important;
}

.tcs-latest-products .products .product img,
.tcs-latest-products .products .product a img {
    width: 190px !important;
    height: 190px !important;
    aspect-ratio: 1 / 1 !important;
    background-size: cover !important;
    background-position: center !important;
    background-color: #ffffff !important;
    border-radius: 10px !important;
    border: 1px solid var(--color-border-light) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    object-fit: cover !important;
    display: block !important;
}

.dyk-content,
.tcs-latest-products .products .product h2 {
    padding: 12px 0 !important;
    text-align: center !important;
    width: 100% !important;
}

.dyk-card h3,
.tcs-latest-products .products .product h2,
.tcs-latest-products .products .product a h2 {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: var(--color-charcoal-dark) !important;
    margin: 12px 0 0 0 !important;
    font-family: var(--font-ui) !important;
}

/* Hide WooCommerce clutter for Latest Products */
.tcs-latest-products .products .product .star-rating,
.tcs-latest-products .products .product .onsale {
    display: none !important;
}

.dyk-cta {
    display: none !important; 
}

/* 5. Boutique Feature Banners (Reusable) */
.tcs-boutique-feature {
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 40px 0;
    overflow: hidden;
}

#tcs-event-reminder-banner { background-image: url('assets/images/event-reminder-bg.png'); }
#tcs-bible-guide-banner { background-image: url('assets/images/bible-guide-bg.png'); }
#tcs-newsletter-banner { background-image: url('assets/images/newsletter-bg.png'); }

#tcs-newsletter-banner .feature-inner {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    max-width: 800px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

#tcs-newsletter-banner .feature-headline {
    color: var(--color-charcoal-dark) !important;
    font-size: 42px !important;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 1), 
        0 0 35px rgba(255, 255, 255, 1), 
        0 0 50px rgba(255, 255, 255, 0.8),
        0 0 70px rgba(255, 255, 255, 0.6) !important; /* Strong multi-layer glow */
    margin-bottom: 15px !important;
}

#tcs-newsletter-banner .feature-body {
    color: var(--color-charcoal-dark) !important; /* Darker for contrast */
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1), 
        0 0 30px rgba(255, 255, 255, 1), 
        0 0 45px rgba(255, 255, 255, 0.8) !important;
    max-width: 500px !important;
    margin-bottom: 30px !important;
    font-weight: 500 !important; /* Slightly heavier for weight */
}

/* Integrated Form Layout */
.feature-form {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 500px !important;
    margin-bottom: 15px !important;
}

.feature-input {
    flex: 1 !important;
    padding: 14px 20px !important;
    border-radius: 0 !important;
    border: 1px solid var(--color-border-light) !important;
    background: #ffffff !important;
    font-size: 15px !important;
    color: var(--color-charcoal-dark) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    outline: none !important;
}

.feature-input:focus {
    border-color: #8bd3c7 !important;
    box-shadow: 0 4px 15px rgba(139, 197, 199, 0.2) !important;
}

#tcs-newsletter-banner .feature-actions .btn-teal {
    background-color: #79c0b5 !important; /* Slightly deeper for contrast */
    color: #ffffff !important;
    padding: 14px 28px !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

#tcs-newsletter-banner .feature-actions .btn-teal:hover {
    background-color: #68aca1 !important;
}

.compliance-text {
    font-size: 12px !important;
    color: #8D9BA3 !important;
    opacity: 0.8 !important;
    margin-top: 5px !important;
}

@media (max-width: 600px) {
    .feature-form {
        flex-direction: column !important;
    }
    .feature-input, 
    #tcs-newsletter-banner .feature-actions .btn-teal {
        width: 100% !important;
    }
}

.tcs-boutique-feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.feature-inner {
    max-width: 800px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(255, 254, 252, 0.85); /* Frosted glass effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-headline {
    font-size: 36px !important;
    color: var(--color-charcoal-dark) !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.02em !important;
    font-family: var(--font-serif) !important;
}

.feature-body {
    font-size: 18px !important;
    line-height: 1.6 !important;
    color: #5A6B73 !important;
    margin-bottom: 30px !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.feature-actions .btn-teal {
    display: inline-block;
    background-color: var(--color-charcoal-dark) !important;
    color: #ffffff !important;
    padding: 14px 36px !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    transition: all 0.2s ease !important;
}

.feature-actions .btn-teal:hover {
    background-color: #4A5D66 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 6. Popular Categories */
.bibles-circle-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

.bible-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.b-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: #f4f4f4;
    background-size: cover;
    background-position: center;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #666;
    border: 1px solid #e1e1e1;
}

.bible-circle-item span {
    font-size: 14px;
    color: var(--color-charcoal-dark);
}

/* 6. Popular Categories */
.pop-cats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.pop-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pc-circle {
    width: 160px; /* Larger Category Circles */
    height: 160px;
    border-radius: 50%;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.pop-cat-item:hover .pc-circle {
    transform: scale(1.05);
}

.pop-cat-item span {
    font-size: 15px;
    color: var(--color-charcoal-dark);
}

/* Footer & Newsletter */
.helix-custom-footer {
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
}

.helix-footer-newsletter {
    background-color: var(--color-oatmeal);
    padding: 80px 20px;
    text-align: center;
}

.helix-newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
}

.helix-newsletter-inner h3 {
    margin-bottom: 15px;
}

.helix-newsletter-inner p {
    color: var(--color-slate);
    margin-bottom: 30px;
    font-size: 15px;
}

.helix-newsletter-form {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.helix-newsletter-form input {
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 300px;
    font-family: var(--font-ui);
    outline: none;
}

.helix-newsletter-form input:focus {
    border-color: var(--color-sage);
}

.helix-newsletter-form button {
    padding: 15px 30px;
    background: var(--color-sage);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.helix-newsletter-form button:hover {
    background: var(--color-slate);
}

.helix-footer-bottom {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background-color: var(--color-charcoal-dark);
    color: #fff;
}

.helix-footer-links {
    display: flex;
    gap: 30px;
}

.helix-footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.helix-footer-links a:hover {
    opacity: 1;
}

.helix-site-info {
    font-size: 12px;
    opacity: 0.6;
}

/* -------------------------------------
   Single Product - The Blueprint Layout
-------------------------------------- */

/* Blueprint Background */
body.single-product {
    background-color: #FCFAF8 !important;
}

body.single-product #page,
body.single-product #content,
body.single-product .site-main {
    background-color: transparent !important;
    overflow: visible !important;
}

body.single-product .site-main {
    max-width: 1400px !important;
    margin: 40px auto 120px !important;
    padding: 0 40px !important;
}

/* 1. Hero Section (60/40 Split) */
body.single-product div.product {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 60px !important;
    align-items: flex-start !important;
    width: 100% !important;
    overflow: visible !important;
}

/* Left Column: Large Image (60%) */
body.single-product div.product .woocommerce-product-gallery {
    width: calc(60% - 30px) !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 120px !important; /* Offset for sticky header */
    align-self: flex-start !important;
    height: max-content !important;
    z-index: 10 !important;
}

body.single-product div.product .woocommerce-product-gallery img {
    border-radius: 12px !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 600px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Right Column: Actions (40%) */
body.single-product div.product .summary.entry-summary {
    width: calc(40% - 30px) !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Tablet Stacking Override */
@media (max-width: 1199px) {
    body.single-product main.site-main div.product {
        display: block !important;
    }
    body.single-product main.site-main div.product .woocommerce-product-gallery {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        position: relative !important; /* Disable sticky */
        top: 0 !important;
        margin: 0 0 40px 0 !important;
    }
    body.single-product main.site-main div.product .woocommerce-product-gallery img {
        max-height: none !important; 
        width: 100% !important;
    }
    body.single-product main.site-main div.product .summary.entry-summary {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }
}

/* Title & Price */
body.single-product h1.product_title {
    font-family: var(--font-heading) !important; /* Serif Elegant */
    font-size: 48px !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    color: var(--color-charcoal-dark) !important;
    margin: 0 0 10px 0 !important;
}

body.single-product div.product .price {
    font-family: var(--font-ui) !important; /* Sans-Serif Clean */
    font-size: 22px !important;
    font-weight: 400 !important;
    color: var(--color-slate) !important;
    margin-bottom: 30px !important;
    display: block !important;
}

/* Interaction: Slim Qty + Wide Button */
body.single-product div.product form.cart {
    display: flex !important;
    gap: 15px !important;
    margin: 40px 0 30px !important;
}

body.single-product div.product form.cart .quantity input.qty {
    height: 52px !important;
    width: 55px !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 2px !important; /* Nearly Square */
    font-family: var(--font-ui) !important;
    background: white !important;
}

body.single-product div.product form.cart button.single_add_to_cart_button {
    height: 52px !important;
    background-color: var(--color-sage) !important; /* Sage Green */
    color: white !important;
    border: none !important;
    border-radius: 2px !important; /* 2px Radius */
    padding: 0 40px !important;
    font-family: var(--font-ui) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    flex-grow: 1 !important;
    cursor: pointer !important;
}

/* Short Description */
body.single-product div.product .woocommerce-product-details__short-description {
    font-family: var(--font-ui) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: var(--color-charcoal) !important;
    margin-bottom: 40px !important;
    opacity: 0.8 !important;
}

/* 2. Qualities Bar (Fine-line Icons) */
.tcs-qualities-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 25px 0 !important;
    border-top: 1px solid var(--color-border-light) !important;
    border-bottom: 1px solid var(--color-border-light) !important;
    margin-bottom: 40px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.tcs-qualities-bar .quality-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: var(--font-ui) !important;
    font-size: 13px !important;
    color: var(--color-sage) !important;
    font-weight: 500 !important;
    flex: 1 1 calc(33.333% - 15px) !important;
    min-width: 110px !important;
}

.tcs-qualities-bar .quality-item span {
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.2 !important;
}

.tcs-qualities-bar .quality-item svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    stroke: currentColor !important;
}

/* 3. Content & Storytelling (Wide Single Column) */
body.single-product div.product .woocommerce-tabs {
    width: 100% !important;
    margin-top: 60px !important;
}

body.single-product div.product .woocommerce-tabs ul.tabs {
    display: none !important; /* Stacked */
}

body.single-product div.product .woocommerce-tabs .panel {
    display: block !important;
    max-width: 1000px !important;
    margin: 0 auto 80px !important;
    border: none !important;
    padding: 0 !important;
}

body.single-product div.product .woocommerce-tabs .panel h2 {
    font-family: var(--font-heading) !important; /* Serif */
    font-size: 36px !important;
    font-weight: 400 !important;
    color: var(--color-charcoal-dark) !important;
    margin-bottom: 30px !important;
    text-align: center !important;
}

body.single-product div.product .woocommerce-tabs .panel p {
    font-family: var(--font-ui) !important;
    font-size: 18px !important;
    line-height: 1.8 !important; /* Airy line height */
    color: var(--color-charcoal) !important;
    margin-bottom: 25px !important;
}

/* 4. Upsell & Related Grid (Double Margin) */
body.single-product .related.products {
    width: 100% !important;
    margin-top: 120px !important; /* Double Margin */
    padding-top: 100px !important;
    border-top: 1px solid var(--color-border-light) !important;
}

body.single-product .related.products h2 {
    font-family: var(--font-heading) !important;
    font-size: 32px !important;
    text-align: center !important;
    margin-bottom: 60px !important;
}

body.single-product .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px !important;
}

body.single-product .related.products ul.products li.product {
    text-align: center !important;
}

body.single-product .related.products ul.products li.product h2 {
    font-family: var(--font-ui) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 15px 0 5px !important;
    text-align: center !important;
}

body.single-product .related.products ul.products li.product .price {
    display: none !important; /* Hide price in grid for ultra-clean look */
}

/* Discreet Text-Only Link */
body.single-product .related.products ul.products li.product .button {
    background: transparent !important;
    color: var(--color-slate) !important;
    border: none !important;
    padding: 10px 0 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-decoration: underline !important;
    display: inline-block !important;
    opacity: 0.6 !important;
    transition: opacity 0.3s !important;
}

body.single-product .related.products ul.products li.product .button:hover {
    opacity: 1 !important;
}

/* -------------------------------------
   Responsive Overrides
-------------------------------------- */
/* Large Tablet / Small Desktop */
@media (max-width: 1024px) {
    ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .dyk-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bibles-circle-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px 15px;
    }

    .pop-cats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 20px;
    }
}

/* Tablet & Mobile */
@media (max-width: 768px) {

    /* Scale down Product Grids */
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .dyk-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bibles-circle-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pop-cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Horizontal Scroll for top Categories */
    .tcs-top-cats-wrapper {
        justify-content: flex-start;
        padding: 0;
    }

    .tcs-top-cats-grid {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0 20px 20px;
        gap: 15px;
    }

    .tcs-rect-card {
        min-width: 250px;
        scroll-snap-align: start;
        flex: 0 0 auto;
    }

    /* Slider Shrink */
    .tcs-hero-banner {
        height: 300px;
    }

    .tcs-hero-content h2 {
        font-size: 36px;
    }

    /* Utility Footer scaling */
    .helix-newsletter-form {
        flex-direction: column;
    }

    .helix-newsletter-form input {
        width: 100%;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    ul.products {
        grid-template-columns: 1fr !important;
    }

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

    .bibles-circle-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pop-cats-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------
   Override Default Storefront Container Constraints
-------------------------------------- */
body.storefront-full-width-content .site-main,
.col-full,
#primary {
    max-width: 1440px !important;
    width: 95% !important;
    margin-left: auto;
    margin-right: auto;
    overflow: visible !important;
}

.site-header .col-full {
    width: 100% !important;
    padding: 0 !important;
}

/* 10. Boutique Footer */
.helix-boutique-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 80px 0 0;
    font-family: var(--font-ui);
    margin-top: 0 !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h3.footer-widget-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
}

.footer-about-text {
    font-size: 15px;
    line-height: 1.6;
    color: #ffffff !important;
    font-weight: 500;
    margin-bottom: 15px;
    max-width: 300px;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details li {
    display: flex;
    gap: 15px;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #ffffff !important;
    font-weight: 500;
}

.contact-details li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-sage);
}

.contact-details li a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details li a:hover {
    color: var(--color-sage);
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: #ffffff !important;
    font-weight: 500;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
}

.footer-links-list a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-link {
    color: #ffffff !important;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-link:hover {
    color: var(--color-sage);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #111111;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .bottom-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* -------------------------------------
   Mobile Header & Navigation
-------------------------------------- */

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10002;
    color: var(--color-charcoal);
}

.hamburger-box {
    width: 24px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: var(--color-charcoal);
    position: absolute;
    transition: transform 0.15s ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

.mobile-menu-toggle.is-active .hamburger-inner {
    transform: rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header-inner {
        grid-template-columns: auto 1fr auto;
        gap: 20px;
        height: auto;
        padding: 15px 20px;
    }

    .header-logo .helix-wordmark {
        font-size: 24px;
    }

    .header-logo .cap {
        font-size: 28px;
    }

    .header-search {
        order: 4; /* Move below the main row */
        grid-column: 1 / -1;
        margin-top: 10px;
    }

    .header-icons {
        gap: 10px;
        flex-shrink: 0;
    }
    /* Removed legacy rule that was unintentionally hiding the cart icon on mobile */

    .helix-container {
        padding: 0 15px;
    }

    /* Mobile Nav Drawer */
    .helix-boutique-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: #ffffff;
        z-index: 10001;
        transition: left 0.3s ease;
        padding-top: 240px; /* Increased to ensure items safely clear the sticky mobile header (logo + search bar + admin bar) */
        box-sizing: border-box; /* Crucial to prevent padding from expanding height past 100vh */
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    .helix-boutique-nav.is-active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--color-border-light);
        padding: 0;
    }

    .nav-list a {
        padding: 15px 20px;
        font-size: 16px;
        display: block;
    }

    /* Convert Mega Menu to Accordion-style on Mobile */
    .mega-menu {
        position: static;
        box-shadow: none;
        border: none;
        display: none !important; /* Starts hidden */
        padding: 0 20px 20px;
        background: #fbfbfb;
        opacity: 1;
        visibility: visible;
        width: 100%;
    }

    /* JS adds .is-active to mega-menu to show it */
    .mega-menu.is-active {
        display: block !important;
    }

    .mega-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mega-col h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .mega-col ul li {
        border-bottom: none;
    }

    .mega-col ul li a {
        padding: 8px 0;
        font-size: 14px;
        text-transform: none;
        letter-spacing: normal;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* -------------------------------------
   Cart Drawer Styles (WooCommerce Overrides)
-------------------------------------- */
/* CART DRAWER STRICT BLUEPRINT OVERRIDES */
#cartDrawerOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(26, 26, 26, 0.5) !important;
    z-index: 100000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.4s ease, visibility 0.4s ease !important;
}

#cartDrawerOverlay.open {
    opacity: 1 !important;
    visibility: visible !important;
}

#cartDrawer, #cartDrawer * {
    box-sizing: border-box !important;
}

#cartDrawer {
    position: fixed !important;
    top: 0 !important;
    right: -450px !important;
    width: 450px !important;
    height: 100vh !important;
    background-color: var(--color-ivory, #fdfbf7) !important;
    z-index: 100001 !important;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1) !important;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
}

#cartDrawer.open {
    right: 0 !important;
}

#cartDrawer .cart-drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 30px 40px !important;
    border-bottom: 1px solid var(--color-border, #f2efed) !important;
    background: white !important;
    margin: 0 !important;
}

#cartDrawer .cart-drawer-title {
    font-family: var(--font-heading, 'Bodoni Moda', serif) !important;
    font-size: 28px !important;
    color: var(--color-charcoal, #2f2f2f) !important;
    margin: 0 !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    padding: 0 !important;
}

#cartDrawer .cart-drawer-close {
    background: none !important;
    border: none !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    color: var(--color-slate, #5A6B73) !important;
    transition: color 0.2s !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#cartDrawer .cart-drawer-close:hover { color: var(--color-charcoal, #2f2f2f) !important; }

#cartDrawer .cart-drawer-shipping {
    background-color: var(--color-charcoal, #2f2f2f) !important;
    color: white !important;
    padding: 15px 40px !important;
    text-align: center !important;
    margin: 0 !important;
}

#cartDrawer .cart-drawer-shipping p,
#cartDrawer .cart-drawer-shipping span,
#cartDrawer .cart-drawer-shipping bdi {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    color: white !important;
    line-height: 1.5 !important;
}

#cartDrawer .cart-drawer-shipping-bar {
    height: 3px !important;
    background: rgba(255,255,255,0.2) !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

#cartDrawer .cart-drawer-shipping-fill {
    position: absolute !important;
    top: 0 !important; left: 0 !important; bottom: 0 !important;
    background: var(--color-sage, #9cada3) !important;
    width: 75% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#cartDrawer .widget_shopping_cart_content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

#cartDrawer ul.cart-drawer-items {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 30px 40px !important;
    list-style: none !important;
    margin: 0 !important;
    display: block !important;
}

#cartDrawer ul.cart-drawer-items li.drawer-item {
    display: flex !important;
    gap: 20px !important;
    margin: 0 0 30px 0 !important;
    padding: 0 0 30px 0 !important;
    border-bottom: 1px solid var(--color-border, #f2efed) !important;
    background: transparent !important;
}

#cartDrawer ul.cart-drawer-items li.drawer-item:last-child { 
    border-bottom: none !important; 
    margin-bottom: 0 !important; 
    padding-bottom: 0 !important; 
}

/* Tiered Upsell Styling in Cart Drawer */
#cartDrawer ul.cart-drawer-items li.drawer-item:has(+ li.is-upsell-item) {
    border-bottom: none !important;
    padding-bottom: 6px !important;
    margin-bottom: 0 !important;
}

#cartDrawer ul.cart-drawer-items li.drawer-item.is-upsell-item:has(+ li.is-upsell-item) {
    border-bottom: none !important;
    padding-bottom: 6px !important;
    margin-bottom: 0 !important;
}

#cartDrawer ul.cart-drawer-items li.drawer-item.is-upsell-item {
    margin: 0 0 30px 0 !important;
    padding: 2px 0 30px 110px !important;
    border-top: none !important;
    border-bottom: 1px solid var(--color-border, #f2efed) !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#cartDrawer ul.cart-drawer-items li.drawer-item.is-upsell-item::before,
#cartDrawer ul.cart-drawer-items li.drawer-item.is-upsell-item::after {
    display: none !important;
}

#cartDrawer ul.cart-drawer-items li.drawer-item.is-upsell-item .drawer-item-img-wrap {
    display: none !important;
}

#cartDrawer ul.cart-drawer-items li.drawer-item.is-upsell-item .drawer-qty {
    display: none !important;
}

#cartDrawer ul.cart-drawer-items li.drawer-item.is-upsell-item .drawer-item-meta {
    display: none !important;
}

#cartDrawer ul.cart-drawer-items li.drawer-item.is-upsell-item .drawer-item-actions {
    display: none !important;
}

#cartDrawer ul.cart-drawer-items li.drawer-item.is-upsell-item .drawer-item-details {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 15px !important;
    margin: 0 !important;
}

#cartDrawer ul.cart-drawer-items li.drawer-item.is-upsell-item .drawer-item-title {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--color-charcoal) !important;
    margin: 0 !important;
    flex: 1;
    -webkit-font-smoothing: antialiased;
}

#cartDrawer ul.cart-drawer-items li.drawer-item.is-upsell-item .drawer-item-price {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--color-charcoal) !important;
    margin: 0 !important;
    flex-shrink: 0;
    -webkit-font-smoothing: antialiased;
}

#cartDrawer .drawer-item-img-wrap {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    height: 110px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#cartDrawer .drawer-item-img-wrap a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

#cartDrawer .drawer-item-img {
    display: block !important;
    width: 90px !important;
    max-width: 90px !important;
    min-width: 90px !important;
    height: 110px !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

#cartDrawer .drawer-item-details { 
    flex: 1 !important; 
    display: flex !important; 
    flex-direction: column !important; 
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

#cartDrawer a.drawer-item-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 24px !important;
    color: var(--color-charcoal, #2f2f2f) !important;
    margin: 0 0 5px 0 !important;
    display: block !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    padding: 0 !important;
}

#cartDrawer .drawer-item-price,
#cartDrawer .drawer-item-price span,
#cartDrawer .drawer-item-price bdi {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--color-sage, #9cada3) !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

#cartDrawer .drawer-item-meta {
    font-size: 11px !important;
    color: var(--color-sage, #9cada3) !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

#cartDrawer .drawer-item-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: auto 0 0 0 !important;
    padding: 0 !important;
}

#cartDrawer .drawer-qty {
    display: flex !important;
    border: 1px solid var(--color-border, #f2efed) !important;
    height: 36px !important;
    width: 80px !important;
    background: white !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#cartDrawer .drawer-qty button {
    background: none !important; 
    border: none !important; 
    box-shadow: none !important;
    outline: none !important;
    width: 25px !important; 
    cursor: pointer !important; 
    color: var(--color-charcoal, #2f2f2f) !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

#cartDrawer .drawer-qty input {
    width: 30px !important; 
    border: none !important; 
    box-shadow: none !important;
    outline: none !important;
    text-align: center !important; 
    font-family: var(--font-body, 'Roboto', sans-serif) !important; 
    font-size: 13px !important; 
    color: var(--color-charcoal, #2f2f2f) !important; 
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    background: transparent !important;
    line-height: 1 !important;
}

#cartDrawer a.drawer-item-remove {
    background: none !important; 
    border: none !important; 
    box-shadow: none !important;
    color: var(--color-slate, #5A6B73) !important; 
    font-size: 10px !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.1em !important; 
    cursor: pointer !important; 
    text-decoration: underline !important; 
    text-decoration-color: transparent !important; 
    transition: all 0.2s !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

#cartDrawer a.drawer-item-remove:hover { 
    color: var(--color-charcoal, #2f2f2f) !important; 
    text-decoration-color: currentColor !important; 
}

#cartDrawer .cart-drawer-footer {
    padding: 30px 40px !important;
    background-color: white !important;
    border-top: 1px solid var(--color-border, #f2efed) !important;
    margin: 0 !important;
}

#cartDrawer .drawer-subtotal {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 18px !important;
    color: var(--color-charcoal, #2f2f2f) !important;
    font-weight: 500 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

#cartDrawer a.drawer-checkout-btn {
    width: 100% !important;
    background-color: var(--color-charcoal, #2f2f2f) !important;
    color: white !important;
    border: none !important;
    padding: 18px !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 0 !important;
    font-family: var(--font-body, 'Roboto', sans-serif) !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    line-height: 1.2 !important;
}

#cartDrawer a.drawer-checkout-btn:hover { 
    background-color: var(--color-sage, #9cada3) !important; 
}

@media (max-width: 768px) {
    #cartDrawer { width: 100vw !important; right: -100vw !important; }
    #cartDrawer .cart-drawer-header, 
    #cartDrawer .cart-drawer-shipping, 
    #cartDrawer ul.cart-drawer-items, 
    #cartDrawer .cart-drawer-footer { 
        padding-left: 20px !important; 
        padding-right: 20px !important; 
    }
}

/* Hide default WooCommerce "View Basket" button injected after AJAX add */
a.added_to_cart.wc-forward {
    display: none !important;
}

/* -------------------------------------
   TCS Boutique Category Page
-------------------------------------- */

.tcs-category-archive {
    background-color: var(--color-ivory);
    padding: 0 0 100px; /* Removed 60px top padding to match landing/product page */
    width: 100%;
}

.tcs-archive-container {
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
}

/* 1. Header & Title Block */
.tcs-archive-header {
    margin-bottom: 60px;
}

.tcs-hero-magazine {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    background-color: var(--color-ivory);
    padding: 40px 0;
}

.tcs-hero-text-box {
    width: 45%;
    padding-right: 60px;
    z-index: 2;
}

.tcs-hero-collage {
    width: 50%;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collage-main {
    width: 80%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    z-index: 2;
}

.collage-porthole {
    position: absolute;
    border-radius: 50%;
    object-fit: cover;
    z-index: 3;
    border: 8px solid var(--color-ivory);
}

.porthole-top-left {
    width: 220px;
    height: 220px;
    top: -20px;
    left: 0;
}

.porthole-bottom-right {
    width: 260px;
    height: 260px;
    bottom: -30px;
    right: -10px;
}

.tcs-hero-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-charcoal-dark);
    margin-bottom: 24px;
}

.tcs-archive-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 5vw, 68px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-charcoal-dark);
    margin: 0 0 24px 0;
    letter-spacing: -0.01em;
}

.tcs-archive-description {
    margin-bottom: 0;
}

.tcs-archive-description p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
    color: var(--color-charcoal);
    max-width: 480px;
    margin: 0;
}

.tcs-hero-imagery {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
}

.tcs-hero-imagery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 1.5 Mission Bridge */
.tcs-mission-bridge {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 60px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.tcs-mission-bridge .tcs-mission-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 600;
    color: var(--color-charcoal-dark);
    margin: 0 0 15px 0;
}

.tcs-mission-bridge p {
    font-size: 18px;
    color: var(--color-slate);
    margin: 0;
}

/* 2. Navigation & Utility Bar */
.tcs-archive-utility-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.tcs-archive-nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.tcs-nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-slate);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 14px;
    position: relative;
    top: 16px; /* align with border bottom */
    transition: color 0.3s;
}

.tcs-nav-link:hover {
    color: var(--color-charcoal-dark);
}

.tcs-nav-link.active {
    color: var(--color-charcoal-dark);
    border-bottom: 2px solid var(--color-charcoal-dark);
}

.tcs-filter-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-charcoal-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- 3. Category Archive Blueprint Layout --- */

/* Global Container */
.page-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px; /* Removed top/bottom padding to fix gap */
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    margin: 0;
    color: var(--color-charcoal-dark);
}

/* 1. Hero Slider */
.hero-slider {
    width: 100%;
    height: 500px;
    position: relative;
    background-color: #E8E8E8;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 80px;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #FFFFFF;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-script);
    font-size: 84px; /* Slightly larger for script font to balance visual weight */
    font-weight: 400;
    margin: 0 0 10px 0;
    letter-spacing: normal;
    text-transform: none;
    font-style: normal;
}

.hero-subtitle {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* 2. Card Categories (Scrollable) */
.category-section {
    margin-bottom: 80px;
}

.slider-wrapper {
    position: relative;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #FFF;
    border: 1px solid #E2E2E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: var(--color-charcoal-dark);
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
}

.slider-arrow:hover {
    background-color: var(--color-charcoal-dark);
    color: #FFF;
}

.slider-arrow.prev {
    left: -20px;
}

.slider-arrow.next {
    right: -20px;
}

.category-navigation {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.category-navigation::-webkit-scrollbar {
    display: none;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-charcoal);
    min-width: 160px;
}

.cat-img {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--color-creme);
    border-radius: 50%;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s;
}

.cat-item:hover .cat-img {
    transform: scale(1.05);
}

.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-name {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.4;
    display: block;
    height: 52px;
    overflow: hidden;
}

/* 3. Handwritten Cards (Typography Banner) */
.typography-banner {
    background-color: #F8F6F4;
    padding: 100px 40px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 80px;
    border: 1px solid #EAEAEA;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.02);
}

.typo-script {
    font-family: var(--font-script);
    font-size: 72px;
    color: var(--color-charcoal);
    margin: 0 0 10px 0;
    line-height: 0.8;
    font-weight: 400;
}

.typo-heading {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    color: var(--color-charcoal-dark);
    margin: 0 0 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.typo-desc {
    font-family: var(--font-ui);
    font-size: 18px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #555;
}

.btn-outline {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid var(--color-charcoal-dark);
    color: var(--color-charcoal-dark);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s;
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-charcoal-dark);
    color: #FFF;
}

/* 4. Product Slider */
.product-section {
    margin-bottom: 80px;
}

.product-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

.blueprint-product-card {
    min-width: calc(20% - 16px);
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* ----------------------------------------------------
   Generic Archive Overrides
------------------------------------------------------- */
ul.product-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 24px 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

ul.product-grid li.product {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}
ul.product-grid::before,
ul.product-grid::after {
    display: none !important;
}
li.generic-product-card {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    list-style: none !important;
}

/* Editorial Message Injections */
li.promo-card-single {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    padding: 30px 20px;
    grid-column: span 1;
    height: 100%;
}

li.promo-card-single h3 {
    font-family: var(--font-heading), 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.4;
}

li.promo-card-single p {
    font-family: var(--font-ui), 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

li.promo-card-full {
    grid-column: 1 / -1;
    background: var(--color-charcoal-dark, #1a1a1a);
    color: #fff;
    padding: 60px 40px;
    text-align: center;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

li.promo-card-full h3 {
    font-family: var(--font-heading), 'Playfair Display', serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
    font-style: italic;
    font-weight: 400;
}

li.promo-card-full p {
    font-family: var(--font-ui), 'Inter', sans-serif;
    font-size: 1rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

ul.product-grid li.product:hover .product-zoom-img {
    transform: scale(1.05);
}

ul.product-grid li.product .btn-add:hover {
    background-color: #f7f7f7 !important;
    border-color: #d1d1d1 !important;
}
@media (max-width: 1024px) {
    ul.product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 768px) {
    ul.product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px 8px !important;
    }
}


.blueprint-product-img {
    width: 100%;
    aspect-ratio: 1;
    background-color: #F8F8F8;
    margin-bottom: 16px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.blueprint-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blueprint-product-title {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    letter-spacing: 0.05em;
    color: var(--color-charcoal-dark);
    flex-grow: 1;
}

.blueprint-product-price {
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--color-charcoal-dark);
    font-weight: 700;
    margin-bottom: 16px;
}

.btn-add {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #E2E2E2;
    color: var(--color-charcoal-dark);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
}

.btn-add:hover {
    background: var(--color-charcoal-dark);
    border-color: var(--color-charcoal-dark);
    color: #fff;
}

/* 6. Eco Banner */
.eco-banner {
    background-color: #E3E7E1;
    padding: 80px 40px;
    border-radius: 12px;
    margin-bottom: 80px;
    text-align: center;
}

.eco-script {
    font-family: var(--font-script);
    font-size: 56px;
    color: var(--color-charcoal);
    margin: 0 0 10px 0;
    font-weight: 400;
}

.eco-heading {
    font-family: var(--font-ui);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-charcoal-dark);
    margin: 0 0 20px 0;
}

.eco-desc {
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.eco-link {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-charcoal-dark);
    border-bottom: 1px solid var(--color-charcoal-dark);
    padding-bottom: 4px;
    text-decoration: none;
    margin-bottom: 50px;
    transition: opacity 0.3s;
}

.eco-link:hover {
    opacity: 0.7;
}

.eco-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 40px;
    max-width: 500px;
    margin: 0 auto;
}

.eco-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-ui);
    font-size: 13px;
    color: #555;
    text-align: left;
}

.eco-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* 7. Moments Split */
.moments-split {
    display: flex;
    width: 100%;
    background-color: #F8F6F4;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 80px;
}

.moments-text-box {
    width: 50%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.moments-script {
    font-family: var(--font-script);
    font-size: 56px;
    color: var(--color-charcoal);
    margin-bottom: 5px;
    z-index: 2;
    position: relative;
    font-weight: 400;
}

.moments-heading {
    font-family: var(--font-ui);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 20px 0;
    z-index: 1;
    color: var(--color-charcoal-dark);
}

.moments-desc {
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.7;
    max-width: 400px;
    margin-bottom: 40px;
    color: #555;
}

.moments-slider-container {
    width: 100%;
    max-width: 480px;
}

.moments-slider {
    display: flex;
    gap: 15px;
    overflow-x: hidden;
}

.moments-card {
    min-width: calc(33.333% - 10px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
}

.moments-card-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    background-color: #E2E2E2;
}

.moments-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.moments-card-title-wrap {
    text-align: center;
}

.moments-card-title {
    color: #000000;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.moments-arrows {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.moments-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #EAEAEA;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    color: var(--color-charcoal-dark);
    border: none;
    transition: background 0.3s;
}

.moments-arrow:hover {
    background-color: #D4D4D4;
}

.moments-img-box {
    width: 50%;
    position: relative;
}

.moments-img-box img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

/* 8. Luxury Cards Layout */
.luxury-section {
    margin-bottom: 80px;
}

.luxury-header {
    margin-bottom: 40px;
}

.luxury-script {
    font-family: var(--font-script);
    font-size: 64px;
    color: var(--color-charcoal);
    margin: 0;
    line-height: 0.8;
    font-weight: 400;
}

.luxury-sub {
    font-family: var(--font-ui);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-charcoal-dark);
    margin: 20px 0 20px 0;
}

.luxury-link {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-charcoal-dark);
    border-bottom: 1px solid var(--color-charcoal-dark);
    padding-bottom: 4px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.luxury-link:hover {
    opacity: 0.7;
}

.luxury-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
}

.luxury-sidebar {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.luxury-sidebar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.luxury-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.luxury-product-card {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.luxury-product-img {
    width: 100%;
    aspect-ratio: 1;
    background-color: #F8F8F8;
    margin-bottom: 12px;
    position: relative;
}

.badge-new {
    position: absolute;
    top: 0; left: 0;
    background: #FFF;
    padding: 4px 10px;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    color: var(--color-charcoal);
    border-bottom-right-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.luxury-product-title {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 400;
    color: var(--color-charcoal-dark);
    margin: 0 0 8px 0;
    flex-grow: 1;
}

.luxury-product-price {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-charcoal-dark);
    margin: 0 0 12px 0;
}

.luxury-promo-tag {
    background-color: #F6EDE6;
    color: #7A6A5E;
    font-family: var(--font-ui);
    text-align: center;
    font-size: 10px;
    padding: 6px 0;
    margin-bottom: 12px;
    width: 100%;
}

.luxury-btn-add {
    display: block;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid #E2E2E2;
    color: var(--color-charcoal-dark);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
}

.luxury-btn-add:hover {
    border-color: var(--color-charcoal-dark);
    background: var(--color-charcoal-dark);
    color: #fff;
}

/* 9. Blog Section (Journal) */
.journal-section {
    background-color: #F7F6F2;
    padding: 80px 60px;
    border-radius: 12px;
    margin-bottom: 80px;
}

.journal-main-title {
    font-family: var(--font-script);
    font-size: 64px;
    color: var(--color-charcoal);
    margin: 0 0 40px 0;
    font-weight: 400;
    text-align: left;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    text-decoration: none;
    color: var(--color-charcoal);
    height: 100%;
}

.blog-img {
    width: 100%;
    aspect-ratio: 3/2;
    background-color: #EEE;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

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

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-title {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-charcoal-dark);
    margin: 0 0 15px 0;
}

.blog-excerpt {
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.blog-read-more {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-charcoal-dark);
    border-bottom: 1px solid var(--color-charcoal-dark);
    padding-bottom: 4px;
    align-self: flex-start;
    transition: opacity 0.3s;
}

.blog-card:hover .blog-read-more {
    opacity: 0.7;
}

/* 10. Father's Day Split */
.fathers-day-split {
    display: flex;
    width: 100%;
    background-color: #EAECE8;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 80px;
}

.fathers-day-img {
    width: 50%;
    position: relative;
    min-height: 400px;
}

.fathers-day-img img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

.fathers-day-text {
    width: 50%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.fathers-script {
    font-family: var(--font-script);
    font-size: 64px;
    color: var(--color-charcoal);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 400;
}

.fathers-desc {
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.7;
    max-width: 400px;
    margin-bottom: 30px;
    color: #555;
}

.fathers-link {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-charcoal-dark);
    border-bottom: 1px solid var(--color-charcoal-dark);
    padding-bottom: 4px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.fathers-link:hover {
    opacity: 0.7;
}

/* Mobile Breakpoints */
@media (max-width: 1024px) {
    .moments-split { flex-direction: column; }
    .moments-text-box, .moments-img-box { width: 100%; }
    .moments-img-box { min-height: 400px; }
    .moments-card { min-width: calc(50% - 10px); }
    .fathers-day-split { flex-direction: column; }
    .fathers-day-text, .fathers-day-img { width: 100%; }
    .blueprint-product-card { min-width: calc(33.333% - 14px); }
    .luxury-layout { grid-template-columns: 1fr; }
    .luxury-grid { grid-template-columns: repeat(3, 1fr); }
    .luxury-sidebar { height: 400px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .journal-section { padding: 40px; }
}

@media (max-width: 768px) {
    .page-container { padding: 20px; }
    .hero-title { font-size: clamp(32px, 8vw, 42px); word-break: break-word; hyphens: auto; }
    .hero-lifestyle { flex-direction: column; height: auto; }
    .hero-lifestyle-img { flex: 1 1 100%; height: 250px; width: 100%; }
    .hero-lifestyle-content { flex: 1 1 100%; padding: 40px 20px; width: 100%; }
    .moments-img-box, .moments-arrows { display: none; }
    .moments-slider { flex-wrap: wrap; justify-content: center; overflow-x: visible; }
    .moments-card { min-width: calc(45% - 10px); }
    .blueprint-product-card { min-width: calc(50% - 10px); }
    .luxury-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: 1fr; }
    .journal-main-title { font-size: 48px; }
    .journal-section { padding: 30px 20px; }
    .typo-script { font-size: 42px; }
    .typo-heading { font-size: 32px; }
    .eco-grid { grid-template-columns: 1fr; gap: 15px; }
}

.tcs-category-archive ul.products li.product .price {
    font-family: var(--font-ui) !important;
    font-size: 13px !important;
    color: var(--color-charcoal) !important;
    margin-bottom: 15px !important;
}

.tcs-category-archive ul.products li.product .button {
    display: inline-block !important;
    border: 1px solid var(--color-charcoal-dark) !important;
    background: transparent !important;
    color: var(--color-charcoal-dark) !important;
    padding: 10px 20px !important;
    font-family: var(--font-ui) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    width: 100% !important;
    text-align: center !important;
    transition: all 0.3s !important;
}

.tcs-category-archive ul.products li.product .button:hover {
    background: var(--color-charcoal-dark) !important;
    color: #fff !important;
}

/* Responsive category grid */
@media (max-width: 1024px) {
    .tcs-category-grid { grid-template-columns: repeat(4, 1fr); }
    .tcs-category-archive ul.products { grid-template-columns: repeat(3, 1fr) !important; }
    .wf-promo-banner { flex-direction: column; }
    .wf-promo-text, .wf-promo-image { width: 100%; }
    .wf-promo-image { height: 300px; }
}

@media (max-width: 768px) {
    .tcs-category-grid { grid-template-columns: repeat(3, 1fr); }
    .tcs-category-archive ul.products { grid-template-columns: repeat(2, 1fr) !important; }
    .tcs-archive-utility-bar { flex-direction: column; align-items: flex-start; }
    .tcs-nav-link { top: 0; padding-bottom: 8px; }
}

@media (max-width: 480px) {
    .tcs-category-grid { grid-template-columns: repeat(2, 1fr); }
    .tcs-category-archive ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}

/* 5. B-Roll Components */

/* Quote Card inside grid */
.tcs-quote-card {
    background-color: var(--color-ivory-dark, #e8e3dc);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: none;
}

.tcs-quote-card:hover {
    transform: none;
    box-shadow: none;
}

.tcs-quote-inner {
    max-width: 90%;
}

.tcs-quote-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 24px;
    line-height: 1.4;
    color: var(--color-charcoal-dark);
    margin: 0 0 15px 0;
}

.tcs-quote-author {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-slate);
    font-weight: 600;
}

/* Mission Banner (Full Width Break) */
.tcs-mission-banner {
    background-color: var(--color-sage-dark);
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    margin: 40px 0;
    color: #ffffff;
}

.tcs-mission-banner.tcs-banner-alt {
    background-color: var(--color-charcoal-dark);
}

.tcs-mission-content {
    max-width: 700px;
    margin: 0 auto;
}

.tcs-mission-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: var(--color-ivory);
    opacity: 0.8;
}

.tcs-mission-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #ffffff;
    line-height: 1.1;
}

.tcs-mission-content p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    color: var(--color-ivory);
    opacity: 0.9;
}

/* -------------------------------------
   Flush Editorial Collection Section (Cross-template)
-------------------------------------- */
.related-section { margin-top: 80px; margin-bottom: 0 !important; padding-bottom: 0 !important; }

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}

.related-item { display: flex; flex-direction: column; }
.related-item img { width: 100%; height: 280px; object-fit: cover; }

.related-content-box {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-content-box h3 { font-family: var(--font-heading); font-size: 24px; margin-bottom: 10px; }
.related-price { font-weight: 600; font-size: 14px; margin-bottom: 15px; }
.related-desc { font-size: 13px; line-height: 1.6; opacity: 0.8; margin-bottom: 20px; }
.discreet-upsell { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; opacity: 0.4; cursor: pointer; }

/* Checkerboard Pattern */
.related-item:nth-child(1) .related-content-box,
.related-item:nth-child(3) .related-content-box,
.related-item:nth-child(6) .related-content-box,
.related-item:nth-child(8) .related-content-box {
    background-color: var(--color-charcoal-dark);
    color: white !important;
}

.related-item:nth-child(1) .related-content-box h3,
.related-item:nth-child(3) .related-content-box h3,
.related-item:nth-child(6) .related-content-box h3,
.related-item:nth-child(8) .related-content-box h3 {
    color: white !important;
}

.related-item:nth-child(1) .discreet-upsell,
.related-item:nth-child(3) .discreet-upsell,
.related-item:nth-child(6) .discreet-upsell,
.related-item:nth-child(8) .discreet-upsell { color: white; opacity: 0.5; }

.related-item:nth-child(2) .related-content-box { background-color: #f9f7f5; }
.related-item:nth-child(4) .related-content-box { background-color: #FCFAF8; }
.related-item:nth-child(5) .related-content-box { background-color: #f1f3f0; }
.related-item:nth-child(7) .related-content-box { background-color: #f9f7f5; }

@media (max-width: 1024px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    .related-content-box {
        padding: 30px 20px;
    }
}

/* Category Archive Footer Flush Fix */
body.tax-product_cat .site-content,
body.tax-product_cat #content,
body.tax-product_cat #main,
body.tax-product_cat .site-main,
body.tax-product_cat #primary,
body.tax-product_cat .content-area,
body.tax-product_cat .tcs-category-archive,
body.post-type-archive-product .site-content,
body.post-type-archive-product #content,
body.post-type-archive-product #main,
body.post-type-archive-product .site-main,
body.post-type-archive-product #primary,
body.post-type-archive-product .content-area,
body.post-type-archive-product .tcs-category-archive {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Force full width on category pages */
body.tax-product_cat #primary,
body.post-type-archive-product #primary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.tax-product_cat #secondary,
body.post-type-archive-product #secondary {
    display: none !important;
}

/* Category Collage Responsive Overrides */
@media (max-width: 1024px) {
    .tcs-hero-magazine {
        flex-direction: column;
        height: auto;
        padding: 40px 20px;
        margin-bottom: 40px;
    }
    
    .tcs-hero-text-box {
        width: 100%;
        padding-right: 0;
        text-align: center;
        margin-bottom: 60px;
    }
    
    .tcs-archive-description p {
        margin: 0 auto;
    }
    
    .tcs-hero-collage {
        width: 100%;
        max-width: 600px;
        height: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .tcs-hero-collage {
        height: 300px;
    }
    
    .porthole-top-left {
        width: 140px;
        height: 140px;
        top: -15px;
        left: -10px;
        border-width: 5px;
    }

    .porthole-bottom-right {
        width: 160px;
        height: 160px;
        bottom: -20px;
        right: -10px;
        border-width: 5px;
    }
}

/* ----------------------------------------------------
   Landing Page Global Typography Overrides
------------------------------------------------------- */
.tcs-literal-homepage h1,
.tcs-literal-homepage h2:not(.woocommerce-loop-product__title) {
    font-family: var(--font-script) !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-style: normal !important;
}

.tcs-literal-homepage h1 {
    font-size: 72px !important;
    line-height: 1.1 !important;
}

.tcs-literal-homepage h2:not(.woocommerce-loop-product__title) {
    font-size: 56px !important;
    line-height: 1.1 !important;
}

.tcs-literal-homepage h3 {
    font-size: 42px !important;
    line-height: 1.1 !important;
}

/* Explicitly exclude 'We Also Sell' grid items from the script font */
.tcs-literal-homepage .dyk-card h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: var(--color-charcoal-dark) !important;
    margin: 12px 0 0 0 !important;
    font-family: var(--font-ui) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-style: normal !important;
    font-style: normal !important;
}

/* ----------------------------------------------------
   Single Product Page Typography Overrides
------------------------------------------------------- */
.single-product h2:not(.woocommerce-loop-product__title) {
    font-family: var(--font-script) !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-style: normal !important;
}

.single-product h2:not(.woocommerce-loop-product__title) {
    font-size: 56px !important;
    line-height: 1.1 !important;
}

.single-product h3 {
    font-size: 42px !important;
    line-height: 1.1 !important;
}

/* Explicitly exclude internal product page grid/modal items from the script font */
.single-product .related-content-box h3 {
    font-family: var(--font-heading) !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: white !important; /* Default for checkerboard */
}

/* Revert checkerboard inheritance logic that !important might break */
.single-product .related-item:nth-child(2) .related-content-box h3,
.single-product .related-item:nth-child(4) .related-content-box h3,
.single-product .related-item:nth-child(5) .related-content-box h3,
.single-product .related-item:nth-child(7) .related-content-box h3 {
    color: var(--color-charcoal) !important;
}

.single-product .blessing-modal-text h3 {
    font-family: var(--font-heading) !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: var(--color-charcoal) !important;
}

/* ----------------------------------------------------
   Birthday Split Section
------------------------------------------------------- */
.birthday-split {
    display: flex;
    width: 100%;
    background-color: #FDFDFD; /* Crisp near-white to stand out from the ivory/cream backgrounds */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 80px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03); /* Added subtle shadow for extra separation */
}

.birthday-text {
    width: 50%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.birthday-script {
    font-family: var(--font-script) !important;
    font-size: 72px;
    color: var(--color-charcoal-dark);
    font-weight: 400;
    margin: 0;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
}

.birthday-heading {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.birthday-desc {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-slate);
    margin-bottom: 30px;
    max-width: 400px;
}

.birthday-link {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--color-charcoal-dark);
    border-bottom: 1px solid var(--color-charcoal-dark);
    padding-bottom: 4px;
    text-transform: uppercase;
}

.birthday-img {
    width: 50%;
    position: relative;
    min-height: 400px;
}

.birthday-img img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .birthday-split { flex-direction: column-reverse; }
    .birthday-text, .birthday-img { width: 100%; }
    .birthday-img { min-height: 300px; }
}

/* ----------------------------------------------------
   Cart Drawer Empty State
------------------------------------------------------- */
.cart-drawer-empty {
    padding: 30px;
}

.cart-empty-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-charcoal-dark);
    margin: 0 0 15px 0;
}

.cart-empty-desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-slate);
    line-height: 1.6;
    margin-bottom: 30px;
}

.cart-empty-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cart-empty-categories li {
    margin-bottom: 8px;
}

.cart-empty-categories a {
    display: flex;
    align-items: center;
    background-color: var(--color-cream);
    padding: 16px 20px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--color-charcoal-dark);
    transition: background-color 0.2s ease;
}

.cart-empty-categories a:hover {
    background-color: #E8E2DD;
}

.empty-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate);
    margin-right: 15px;
}

.empty-cat-name {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex: 1;
}

.empty-cat-arrow {
    color: var(--color-slate);
    font-size: 14px;
}

/* --- Generic Product Card Base Styles --- */
.generic-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.generic-product-card .product-image-container {
    position: relative;
    background-color: #F9F9F9;
    padding: 24px;
    border-radius: 6px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
}

.generic-product-card .tcs-new-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 10;
    pointer-events: none;
    display: inline-block;
}

.generic-product-card .tcs-new-badge span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    background-color: #FDFBF7;
    color: #575756;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-family: var(--font-ui);
}

.generic-product-card .woocommerce-LoopProduct-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.generic-product-card .product-zoom-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    display: block;
    transition: transform 0.3s ease;
}

.generic-product-card .product-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.generic-product-card .product-title-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.generic-product-card .product-title-price a {
    text-decoration: none;
    color: inherit;
}

.generic-product-card .woocommerce-loop-product__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-ui);
    margin: 0;
    color: #333;
}

.generic-product-card .tcs-product-price {
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-ui);
    color: #000;
}

.generic-product-card .tcs-product-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 14px 14px;
}

.generic-product-card .tcs-product-promo {
    display: block;
    background-color: #FDF9F6 !important;
    padding: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-ui);
    text-decoration: none;
    color: #575756;
    border-radius: 4px;
}

.generic-product-card .btn-add {
    position: relative;
    display: flex;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #EAEAEA;
    padding: 0 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: #333;
    font-family: var(--font-ui);
    background: #fff;
    transition: all 0.2s ease;
}




/* ==========================================================================
   Boutique WooCommerce My Account Hub
   ========================================================================== */

/* Full Width Container Override for Account Page */
.my-account-page-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}
.my-account-page-container h1.entry-title {
    display: none;
}

body.woocommerce-account #secondary, 
body.woocommerce-account .sidebar, 
body.woocommerce-account aside {
    display: none !important;
}
body.woocommerce-account #primary, 
body.woocommerce-account .content-area {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    float: none !important;
}

/* Horizontal Navigation Tabs */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
    margin-bottom: 50px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-family: var(--font-ui), 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 5px;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a svg {
    color: #a0a0a0;
    transition: color 0.3s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before {
    display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    color: #1a1a1a;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a svg {
    color: var(--color-sage, #8BA88E);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-sage, #8BA88E);
}

/* Content Area Reset */
.woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
    float: none;
}

/* Dashboard Custom Welcome */
.custom-dashboard-welcome {
    text-align: center;
    margin-bottom: 60px;
}
.custom-dashboard-welcome h2 {
    font-family: var(--font-heading), 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}
.custom-dashboard-welcome p {
    color: #666;
    font-family: var(--font-ui), 'Inter', sans-serif;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Dashboard Grid Cards */
.custom-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

@media (max-width: 1000px) {
    .custom-dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .custom-dashboard-grid { grid-template-columns: 1fr; }
}

.dashboard-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.01);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dashboard-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    transform: translateY(-2px);
    border-color: #eaeaea;
}
.dashboard-card-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid #eaeaea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--color-sage, #8BA88E);
}
.dashboard-card h3 {
    font-family: var(--font-ui), 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.dashboard-card p {
    font-family: var(--font-ui), 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #777;
    margin: 0;
    line-height: 1.5;
}

/* Addresses */
.address-intro {
    font-family: var(--font-ui), 'Inter', sans-serif;
    color: #444;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.woocommerce-Addresses {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.woocommerce-Address {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-top: 1px solid #eaeaea;
    padding-top: 30px;
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.woocommerce-Address-title h3 {
    font-family: var(--font-heading), 'Playfair Display', serif;
    font-size: 2rem;
    color: #2D3A40;
    margin: 0;
}

.woocommerce-Address .edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.woocommerce-Address .edit:hover {
    background: #f5f5f5;
}

.woocommerce-Address address {
    font-family: var(--font-ui), 'Inter', sans-serif;
    color: #555;
    font-style: italic;
    line-height: 1.8;
}

/* Addresses Empty State */
.woocommerce-Address address.no-address .empty-address-box {
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}
.woocommerce-Address address.no-address .empty-address-box p {
    color: #666;
    margin-bottom: 20px;
    font-style: normal;
}
.add-address-btn {
    background: #fff !important;
    color: #1a1a1a !important;
    border: 1px solid #1a1a1a !important;
    transition: all 0.3s ease !important;
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
}
.add-address-btn:hover {
    background: #1a1a1a !important;
    color: #fff !important;
}

/* Edit Address Form Wrapper */
.woocommerce-EditAddressForm-wrapper {
    max-width: 800px;
    background: #fff;
    padding: 40px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.woocommerce-EditAddressForm-header {
    text-align: left;
    margin-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
}
.woocommerce-EditAddressForm-header h3 {
    font-family: var(--font-heading), 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}
.woocommerce-EditAddressForm-header p {
    color: #666;
    margin: 0;
}

/* Address Fields Layout */
.woocommerce-address-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.woocommerce-address-fields__field-wrapper .form-row {
    flex: 1 1 100%;
    margin: 0;
}
.woocommerce-address-fields__field-wrapper .form-row-first,
.woocommerce-address-fields__field-wrapper .form-row-last {
    flex: 1 1 calc(50% - 10px);
}
.woocommerce-EditAddressForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2D3A40;
    font-family: var(--font-ui), 'Inter', sans-serif;
}
.woocommerce-EditAddressForm input[type="text"],
.woocommerce-EditAddressForm input[type="email"],
.woocommerce-EditAddressForm input[type="tel"],
.woocommerce-EditAddressForm select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-family: var(--font-ui), 'Inter', sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}
.woocommerce-EditAddressForm input:focus,
.woocommerce-EditAddressForm select:focus {
    border-color: var(--color-sage, #8BA88E);
    outline: none;
}
.woocommerce-address-form-actions {
    margin-top: 30px;
}
.woocommerce-EditAddressForm .button {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}
.woocommerce-EditAddressForm .button:hover {
    background: var(--color-sage, #8BA88E);
}

/* Account Details Form styling */
.woocommerce-EditAccountForm {
    max-width: 800px;
    background: #fff;
    padding: 40px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.woocommerce-EditAccountForm fieldset {
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 30px;
    margin-top: 40px;
    margin-bottom: 30px;
    background: #fafafa;
}
.woocommerce-EditAccountForm legend {
    font-family: var(--font-heading), 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #1a1a1a;
    padding: 4px 18px;
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 30px;
}
.woocommerce-EditAccountForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2D3A40;
    font-family: var(--font-ui), 'Inter', sans-serif;
}
.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"] {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-family: var(--font-ui), 'Inter', sans-serif;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}
.woocommerce-EditAccountForm input:focus {
    border-color: var(--color-sage, #8BA88E);
    outline: none;
}
.woocommerce-EditAccountForm .button {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}
.woocommerce-EditAccountForm .button:hover {
    background: var(--color-sage, #8BA88E);
}

/* Orders Table Formal Styling */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.woocommerce-orders-table th {
    background: #fafafa;
    padding: 20px;
    font-family: var(--font-ui), 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #555;
    border-bottom: 1px solid #eaeaea;
    text-align: left;
}
.woocommerce-orders-table td {
    padding: 20px;
    font-family: var(--font-ui), 'Inter', sans-serif;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}
.woocommerce-orders-table tr:last-child td {
    border-bottom: none;
}
.woocommerce-orders-table .button {
    background: #f5f5f5;
    color: #333;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.woocommerce-orders-table .button:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Single Order Details Header / Notice */
.woocommerce-order > p {
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-left: 4px solid var(--color-sage, #8BA88E);
    padding: 15px 20px;
    border-radius: 4px;
    font-family: var(--font-ui), 'Inter', sans-serif;
    color: #333;
    font-size: 1rem;
    margin-bottom: 30px;
}
.woocommerce-order > p mark {
    background: none;
    color: var(--color-sage, #8BA88E);
    font-weight: 700;
}

/* Single Order Details Table Wrapper */
.woocommerce-order-details {
    margin-bottom: 40px;
    background: #fff;
    padding: 35px 30px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.woocommerce-order-details .woocommerce-order-details__title {
    font-family: var(--font-heading), 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}

/* Single Order Details Table */
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 10px;
}
.woocommerce-table--order-details th {
    background: #fafafa;
    padding: 15px 20px;
    font-family: var(--font-ui), 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #555;
    border-bottom: 1px solid #eaeaea;
    text-align: left;
}
.woocommerce-table--order-details td {
    padding: 20px;
    font-family: var(--font-ui), 'Inter', sans-serif;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}
.woocommerce-table--order-details tbody tr:last-child td {
    border-bottom: 1px solid #eaeaea;
}
.woocommerce-table--order-details tfoot th,
.woocommerce-table--order-details tfoot td {
    padding: 15px 20px;
    font-family: var(--font-ui), 'Inter', sans-serif;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
}
.woocommerce-table--order-details tfoot th {
    color: #555;
    font-weight: 500;
    text-align: right;
}
.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
    border-bottom: none;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
}
.woocommerce-table--order-details .product-name a {
    color: #2D3A40;
    text-decoration: none;
    font-weight: 600;
}
.woocommerce-table--order-details .product-name a:hover {
    color: var(--color-sage, #8BA88E);
}

/* Order Customer Details Wrapper */
.woocommerce-customer-details {
    background: #fff;
    padding: 35px 30px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin-bottom: 40px;
}
.woocommerce-customer-details h2 {
    font-family: var(--font-heading), 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}
.woocommerce-customer-details address {
    font-family: var(--font-ui), 'Inter', sans-serif;
    color: #555;
    line-height: 1.8;
    font-style: normal;
    padding: 20px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}
.woocommerce-customer-details .woocommerce-column__title {
    font-family: var(--font-heading), 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2D3A40;
}


/* Center Address and Account Divs */
.woocommerce-EditAddressForm-wrapper,
.woocommerce-EditAccountForm {
    margin: 0 auto !important;
}

/* Elegant WooCommerce Error Notices */
.woocommerce-error {
    background: #fffdfd;
    border: 1px solid #ffd0d0;
    border-left: 4px solid #d32f2f;
    color: #b71c1c;
    padding: 20px 25px;
    border-radius: 6px;
    list-style: none;
    font-family: var(--font-ui), 'Inter', sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.05);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.woocommerce-error li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.woocommerce-error li::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #d32f2f;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
}
.woocommerce-error li:last-child {
    margin-bottom: 0;
}

/* Inline Field Validation Styling */
.woocommerce-address-fields__field-wrapper .form-row.woocommerce-invalid input,
.woocommerce-address-fields__field-wrapper .form-row.woocommerce-invalid select,
.woocommerce-EditAccountForm .form-row.woocommerce-invalid input {
    border-color: #d32f2f;
    background-color: #fffafaf;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.05);
}

.woocommerce-address-fields__field-wrapper .form-row.woocommerce-invalid label,
.woocommerce-EditAccountForm .form-row.woocommerce-invalid label {
    color: #d32f2f;
}

/* Add an error icon next to the label for invalid fields */
.woocommerce-address-fields__field-wrapper .form-row.woocommerce-invalid label::after,
.woocommerce-EditAccountForm .form-row.woocommerce-invalid label::after {
    content: ' ⚠ Required';
    color: #d32f2f;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 5px;
}


/* Hide the global WooCommerce error box on Account Pages so we only use inline validation */
body.woocommerce-account .woocommerce-error {
    display: none !important;
}

/* Enhanced Inline Validation - Error Icon inside the input field */
.woocommerce-address-fields__field-wrapper .form-row.woocommerce-invalid input,
.woocommerce-address-fields__field-wrapper .form-row.woocommerce-invalid select,
.woocommerce-EditAccountForm .form-row.woocommerce-invalid input {
    border-color: #d32f2f !important;
    background-color: #fffafaf !important;
    box-shadow: 0 0 0 1px #d32f2f !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23d32f2f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px !important;
}

/* Remove the text warning label I added earlier, relying purely on the elegant input icon and red border now */
.woocommerce-address-fields__field-wrapper .form-row.woocommerce-invalid label::after,
.woocommerce-EditAccountForm .form-row.woocommerce-invalid label::after {
    display: none !important;
}


/* Fix Overlap: Reset WooCommerce Default Floats */
.woocommerce-account .woocommerce::after {
    content: '';
    display: block;
    clear: both;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    display: block !important;
    clear: both !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    display: block !important;
    clear: both !important;
    margin-top: 40px !important;
}

/* Support and Contact Panel */
.dashboard-support-panel {
    width: 100%;
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 40px;
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.01);
}

.support-panel-header h3 {
    font-family: var(--font-heading), 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin: 0 0 5px 0;
}

.support-panel-header p {
    font-family: var(--font-ui), 'Inter', sans-serif;
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.support-panel-links {
    display: flex;
    gap: 30px;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 15px 25px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.support-link:hover {
    border-color: var(--color-sage, #8BA88E);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transform: translateY(-2px);
}

.support-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-sage, #8BA88E);
}

.support-link span {
    font-family: var(--font-ui), 'Inter', sans-serif;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .dashboard-support-panel {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px 20px;
    }
    .support-panel-links {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .support-link {
        justify-content: center;
    }
}

/* ==========================================================================
   TCS Boutique Interactive Cart UI Fixes
   ========================================================================== */

/* The outer container MUST have a fixed height to prevent grid layout shifting */
.tcs-add-to-cart-wrapper {
    position: relative;
    width: 100%;
    height: 44px; /* Fixed height matching the button to reserve space in the layout */
    display: block;
}

/* ADD Button sits securely inside */
.tcs-add-to-cart-wrapper .btn-add {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hide the ADD button when it gets the hidden class */
.tcs-add-to-cart-wrapper .btn-add.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* The Quantity Selector is hidden by default using opacity and visibility */
.tcs-qty-selector {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 5;
    box-sizing: border-box;
}

/* When activated via JS, it fades and slides up */
.tcs-qty-selector.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Specific button styles for + and - */
.tcs-qty-btn {
    background: transparent;
    border: none;
    color: #1a1a1a;
    font-size: 1.2rem;
    font-family: var(--font-ui), 'Inter', sans-serif;
    width: 35%;
    height: 100%;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tcs-qty-btn:hover {
    background: #f5f5f5;
}

/* The actual number display */
.tcs-qty-val {
    font-family: var(--font-ui), 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
    width: 30%;
    text-align: center;
}

/* ----------------------------------------------------
   Off-Canvas Filter Drawer
------------------------------------------------------- */
.tcs-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.tcs-filter-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.tcs-filter-drawer {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.tcs-filter-drawer.open {
    transform: translateX(400px);
}
.tcs-filter-drawer .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eaeaea;
}
.tcs-filter-drawer .drawer-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}
.tcs-filter-drawer .drawer-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}
.tcs-filter-drawer .drawer-close:hover {
    color: #000;
}
.tcs-filter-drawer .drawer-content {
    padding: 25px;
    overflow-y: auto;
    flex-grow: 1;
}
.tcs-filter-drawer .drawer-content .widget {
    margin-bottom: 30px;
}
.tcs-filter-drawer .drawer-content .widget-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

/* ----------------------------------------------------
   Toast Notification System
------------------------------------------------------- */
#tcs-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}
.tcs-toast {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}
.tcs-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Hide native pagination since we use infinite scroll */
nav.woocommerce-pagination,
.storefront-sorting .woocommerce-pagination,
.woocommerce-pagination {
    display: none !important;
}

/* ----------------------------------------------------
   Archive Page Header & Toolbar (Boutique Blueprint)
------------------------------------------------------- */
.tcs-page-header {
    padding-bottom: 24px;
    border-bottom: 1px solid #EAEAEA;
    margin-bottom: 0;
    text-align: center;
}

.tcs-breadcrumbs {
    font-size: 12px;
    color: #777;
    margin-bottom: 24px;
    font-family: var(--font-ui), 'Inter', sans-serif;
}

.tcs-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.tcs-breadcrumbs a:hover {
    text-decoration: underline;
}

.tcs-page-title {
    font-family: var(--font-ui), 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
    margin: 0;
    padding-top: 32px;
}

.tcs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #EAEAEA;
    margin-bottom: 32px;
    font-size: 13px;
    height: 54px;
    font-family: var(--font-ui), 'Inter', sans-serif;
}

.tcs-toolbar-left, .tcs-toolbar-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.tcs-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    font-family: var(--font-ui), 'Inter', sans-serif;
}

.tcs-toolbar-right {
    gap: 20px;
    color: #777;
}

.tcs-toolbar-divider {
    width: 1px;
    height: 20px;
    background-color: #EAEAEA;
}

.tcs-sort-dropdown-real {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-weight: 600;
}

.tcs-sort-dropdown-real form {
    margin: 0;
}

.tcs-sort-dropdown-real select {
    border: none;
    background: transparent;
    color: #555;
    font-weight: 600;
    font-family: var(--font-ui), 'Inter', sans-serif;
    cursor: pointer;
    padding-right: 20px;
}

.tcs-view-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-bottom: 2px solid transparent;
    padding: 0 4px;
    margin-bottom: -1px;
}

.tcs-view-btn.active {
    color: #222;
    border-bottom-color: #222;
}

/* ----------------------------------------------------
   Product Info (Boutique Blueprint)
------------------------------------------------------- */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.image-container {
    position: relative;
    aspect-ratio: 672 / 808;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    display: block;
}

.badge-new {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    border-radius: 2px;
    padding: 4px 8px;
    font-size: 14px;
    background-color: #fff;
    color: #000;
}

.product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 16px;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.product-info .product-title {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-main, #333);
    text-decoration: none;
    font-family: var(--font-ui), 'Inter', sans-serif;
}

.product-info .product-title:hover {
    text-decoration: underline;
}

.product-price {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    font-family: var(--font-ui), 'Inter', sans-serif;
}

.product-price ins {
    text-decoration: none;
}

.product-price del {
    opacity: 0.5;
    font-size: 12px;
    margin-right: 4px;
}

.product-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Style Archive Add Button like Single Product */
.tcs-add-to-cart-wrapper .btn-add,
.generic-product-card .btn-add,
ul.products li.product .btn-add {
    background-color: var(--color-sage) !important;
    color: white !important;
    border: none !important;
    border-radius: 2px !important;
    font-family: var(--font-ui) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

.tcs-add-to-cart-wrapper .btn-add:hover,
.generic-product-card .btn-add:hover,
ul.products li.product .btn-add:hover {
    background-color: var(--color-sage-dark) !important;
    color: white !important;
}
