/**
 * Main Stylesheet - Tenuta Bally Theme
 * Contains all core styles (excluding page-specific styles)
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    /* Brand colors */
    --tb-primary-color: #1a1a1a;
    --tb-accent-color: #dda759;
    --tb-border-color: #e5e5e5;
    --tb-summary-bg: #fafafa;
    --tb-summary-hover-bg: #f5f5f5;
    --tb-heading-color: #1a1a1a;
    --tb-text-color: #555;
    --tb-light-text: #888;

    /* Buttons */
    --tb-button-bg: #1a1a1a;
    --tb-button-color: #fff;
    --tb-button-hover-bg: #333;

    /* Top bar */
    --tb-topbar-bg: #1a1a1a;
    --tb-topbar-text: #fff;
    --tb-topbar-height: 40px;
}

/* ==========================================================================
   Global Typography - EB Garamond
   ========================================================================== */

body,
button,
input,
select,
textarea {
    font-family: 'EB Garamond', Georgia, serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'EB Garamond', Georgia, serif;
}

p, li, td, th, label, span {
    font-family: 'EB Garamond', Georgia, serif;
}

/* Override Storefront branding margin */
@media (min-width: 768px) {
    .woocommerce-active .site-header .site-branding {
        margin-right: 0;
    }
}

/* ==========================================================================
   Top Bar
   ========================================================================== */

.tb-top-bar {
    background: var(--tb-topbar-bg);
    color: var(--tb-topbar-text);
    height: var(--tb-topbar-height);
    line-height: var(--tb-topbar-height);
    font-size: 0.85rem;
}

@media (min-width: 992px) {
    .tb-top-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
    }
}

.tb-top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tb-top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tb-top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tb-separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.tb-contact-item {
    color: var(--tb-topbar-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s ease;
}

.tb-contact-item:hover {
    opacity: 0.8;
    color: var(--tb-topbar-text);
}

.tb-contact-item i {
    color: var(--tb-accent-color);
    font-size: 0.9rem;
}

.tb-social-links {
    display: flex;
    gap: 0.75rem;
    margin-left: 0.5rem;
}

.tb-social-links a {
    color: var(--tb-topbar-text);
    font-size: 1rem;
    transition: color 0.2s ease;
}

.tb-social-links a:hover {
    color: var(--tb-accent-color);
}

/* Language Switcher Dropdown */
.tb-lang-switcher {
    position: relative;
    cursor: pointer;
}

.tb-lang-current {
    color: var(--tb-topbar-text);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.5rem;
}

.tb-lang-current i {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.tb-lang-switcher:hover .tb-lang-current i {
    transform: rotate(180deg);
}

.tb-lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--tb-border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: auto;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 5px;
}

.tb-lang-switcher:hover .tb-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tb-lang-option {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--tb-heading-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.15s ease;
}

.tb-lang-option:hover {
    background: var(--tb-summary-bg);
    color: var(--tb-heading-color);
}

.tb-account-link {
    color: var(--tb-topbar-text);
    font-size: 1rem;
    padding: 0 0.25rem;
    transition: color 0.2s ease;
}

.tb-account-link:hover {
    color: var(--tb-accent-color);
}

/* Search Toggle Button */
.tb-search-toggle {
    background: none;
    border: none;
    color: var(--tb-topbar-text);
    font-size: 1rem;
    padding: 0 0.25rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tb-search-toggle:hover {
    color: var(--tb-accent-color);
}

/* ==========================================================================
   Fullscreen Search Overlay
   ========================================================================== */

.tb-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.97);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

.tb-search-overlay.active {
    transform: translateY(0);
    visibility: visible;
}

.tb-search-overlay-inner {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.15s, opacity 0.4s ease 0.15s;
}

.tb-search-overlay.active .tb-search-overlay-inner {
    transform: translateY(0);
    opacity: 1;
}

.tb-search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: var(--tb-heading-color, #1a1a1a);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.tb-search-close:hover {
    color: var(--tb-accent-color);
}

.tb-search-form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--tb-heading-color, #1a1a1a);
    padding-bottom: 1rem;
}

.tb-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--tb-heading-color, #1a1a1a);
    font-size: 2rem;
    padding: 0.5rem 0;
    outline: none;
}

.tb-search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.tb-search-submit {
    background: none;
    border: none;
    color: var(--tb-heading-color, #1a1a1a);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.tb-search-submit:hover {
    color: var(--tb-accent-color);
}

body.tb-search-open {
    overflow: hidden;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Header / Navigation - Single Menu with Centered Logo (CSS Only)
   Uses nth-child to split menu items: first 3 left, rest right
   ========================================================================== */

.site-header {
    background: #fff;
    border-bottom: none;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Heraldry logo (compact mode) - hidden by default */
.tb-heraldry-logo {
    display: none;
}

/* ==========================================================================
   Header Scroll States (Desktop only, min-width 992px)
   States: header-at-top, header-hovered, header-scrolled, header-compact
   ========================================================================== */

@media (min-width: 992px) {
    /* Default: solid header - push content below top bar + header */
    body {
        padding-top: calc(var(--tb-topbar-height) + 140px); /* 40px + 140px header */
    }

    /* Only site-header is fixed - nav is inside it */
    .site-header {
        position: fixed;
        top: var(--tb-topbar-height); /* 40px - below top bar */
        left: 0;
        right: 0;
        z-index: 999;
        background: transparent;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    /* Hovered (when at top): white background on entire header */
    .header-at-top.header-hovered .site-header {
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    /* Scrolled (>50px): white background */
    .header-scrolled .site-header {
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* Logo scaling is handled by JavaScript for smooth animation */
    .site-header .site-branding {
        transform-origin: center center;
    }

    /* Compact mode (>100px): smaller nav padding */
    .header-compact .main-navigation ul.menu > li > a,
    .header-compact .main-navigation ul.nav-menu > li > a {
        padding: 0.8rem 1.2rem;
    }

    /* Compact mode: hide main logo, show heraldry, reduce height */
    .header-compact .site-header .site-branding {
        display: none !important;
    }

    .header-compact .tb-heraldry-logo {
        display: block !important;
        pointer-events: auto;
    }

    .header-compact .tb-heraldry-logo img {
        height: 50px;
        width: auto;
        filter: brightness(0.5);
    }

    .header-compact .tb-heraldry-logo:hover img {
        filter: brightness(0.7);
    }

    /* min-height handled by JavaScript for smooth animation */

    /* Default: solid header (white), content pushed below */
    body:not(.tb-header-transparent) .site-header {
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* Transparent mode: only top bar padding, content goes behind nav */
    body.tb-header-transparent {
        padding-top: var(--tb-topbar-height); /* 40px - below top bar only */
    }

    /* Dark header mode: solid dark background, light text, content below */
    body.tb-header-dark .site-header,
    body.tb-header-dark.header-at-top.header-hovered .site-header,
    body.tb-header-dark.header-hovered .site-header {
        background: var(--tb-primary-color, #1a1a1a);
        box-shadow: none;
    }

    body.tb-header-dark .main-navigation ul.menu > li > a,
    body.tb-header-dark .main-navigation ul.nav-menu > li > a,
    body.tb-header-dark.header-hovered .main-navigation ul.menu > li > a,
    body.tb-header-dark.header-hovered .main-navigation ul.nav-menu > li > a {
        color: #fff;
    }

    body.tb-header-dark .main-navigation ul.menu > li > a:hover,
    body.tb-header-dark .main-navigation ul.nav-menu > li > a:hover,
    body.tb-header-dark.header-hovered .main-navigation ul.menu > li > a:hover,
    body.tb-header-dark.header-hovered .main-navigation ul.nav-menu > li > a:hover {
        color: var(--tb-accent-color, #dda759);
    }

    body.tb-header-dark .site-header .site-branding img {
        filter: brightness(0.85) !important;
        transition: none !important;
    }

    body.tb-header-dark .site-header .site-branding:hover img {
        filter: brightness(0.95) !important;
    }

    /* Light nav text for dark backgrounds (applies immediately, no JS dependency) */
    body.tb-nav-light:not(.header-scrolled):not(.header-hovered) .main-navigation ul.menu > li > a,
    body.tb-nav-light:not(.header-scrolled):not(.header-hovered) .main-navigation ul.nav-menu > li > a {
        color: #fff;
        transition: color 0.2s ease;
    }

    body.tb-nav-light:not(.header-scrolled):not(.header-hovered) .main-navigation ul.menu > li > a:hover,
    body.tb-nav-light:not(.header-scrolled):not(.header-hovered) .main-navigation ul.nav-menu > li > a:hover {
        color: rgba(255, 255, 255, 0.8);
    }

    /* Accent-colored logo for dark backgrounds */
    body.tb-nav-light:not(.header-scrolled):not(.header-hovered) .site-branding img {
        filter: brightness(0) saturate(100%) invert(72%) sepia(58%) saturate(497%) hue-rotate(358deg) brightness(96%) contrast(87%);
        transition: filter 0s; /* No transition to avoid color flash */
    }

    /* Active menu item - accent color (always, including light nav mode) */
    .main-navigation ul.menu > li.current-menu-item > a,
    .main-navigation ul.menu > li.current-menu-parent > a,
    .main-navigation ul.menu > li.current-menu-ancestor > a,
    .main-navigation ul.nav-menu > li.current-menu-item > a,
    .main-navigation ul.nav-menu > li.current-menu-parent > a,
    .main-navigation ul.nav-menu > li.current-menu-ancestor > a,
    body.tb-nav-light:not(.header-scrolled):not(.header-hovered) .main-navigation ul.menu > li.current-menu-item > a,
    body.tb-nav-light:not(.header-scrolled):not(.header-hovered) .main-navigation ul.menu > li.current-menu-parent > a,
    body.tb-nav-light:not(.header-scrolled):not(.header-hovered) .main-navigation ul.menu > li.current-menu-ancestor > a,
    body.tb-nav-light:not(.header-scrolled):not(.header-hovered) .main-navigation ul.nav-menu > li.current-menu-item > a,
    body.tb-nav-light:not(.header-scrolled):not(.header-hovered) .main-navigation ul.nav-menu > li.current-menu-parent > a,
    body.tb-nav-light:not(.header-scrolled):not(.header-hovered) .main-navigation ul.nav-menu > li.current-menu-ancestor > a {
        color: var(--tb-accent-color) !important;
    }

    /* Active in dropdown */
    .main-navigation ul.menu ul li.current-menu-item > a,
    .main-navigation ul.nav-menu ul li.current-menu-item > a {
        color: var(--tb-accent-color) !important;
    }

    /* Dark scrolled header (white text on black bg when scrolled/hovered) */
    body.tb-nav-dark-scrolled.header-scrolled .site-header,
    body.tb-nav-dark-scrolled.header-hovered .site-header {
        background: #141414;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    body.tb-nav-dark-scrolled.header-scrolled .main-navigation ul.menu > li > a,
    body.tb-nav-dark-scrolled.header-scrolled .main-navigation ul.nav-menu > li > a,
    body.tb-nav-dark-scrolled.header-hovered .main-navigation ul.menu > li > a,
    body.tb-nav-dark-scrolled.header-hovered .main-navigation ul.nav-menu > li > a {
        color: #fff;
    }

    body.tb-nav-dark-scrolled.header-scrolled .main-navigation ul.menu > li > a:hover,
    body.tb-nav-dark-scrolled.header-scrolled .main-navigation ul.nav-menu > li > a:hover,
    body.tb-nav-dark-scrolled.header-hovered .main-navigation ul.menu > li > a:hover,
    body.tb-nav-dark-scrolled.header-hovered .main-navigation ul.nav-menu > li > a:hover {
        color: rgba(255, 255, 255, 0.8);
    }

    /* Logo filter for dark scrolled header */
    body.tb-nav-dark-scrolled.header-scrolled .site-branding img,
    body.tb-nav-dark-scrolled.header-hovered .site-branding img {
        filter: brightness(0) saturate(100%) invert(72%) sepia(58%) saturate(497%) hue-rotate(358deg) brightness(96%) contrast(87%);
    }

    /* Heraldry logo in compact mode for dark scrolled */
    body.tb-nav-dark-scrolled.header-compact .tb-heraldry-logo img {
        filter: brightness(0.9);
    }
}

/* First col-full (contains logo + search) - make it just position the logo */
.site-header > .col-full {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 100;
    padding: 0 !important;
    margin: 0 !important; /* Override Storefront's margin at <66.5em/1064px */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Logo styling */
.site-header .site-branding {
    pointer-events: auto;
    padding: 0;
    margin: 0 !important;
    float: none;
    width: auto;
}

.site-header .site-branding .custom-logo-link {
    display: block;
}

.site-header .site-branding .custom-logo-link img,
.site-header .site-branding .custom-logo {
    max-height: 150px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    filter: brightness(0.5);
    transition: filter 0.4s ease;
}

/* Disable filter transition on light nav pages to prevent color flash */
.tb-nav-light .site-header .site-branding .custom-logo-link img,
.tb-nav-light .site-header .site-branding .custom-logo {
    transition: none;
}

.site-header .site-branding .custom-logo-link:hover img,
.site-header .site-branding .custom-logo-link:hover .custom-logo {
    filter: brightness(0.8);
}

.site-header .site-branding .site-title {
    margin: 0;
}

.site-header .site-branding .site-title a {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.25rem;
    color: var(--tb-heading-color);
    font-weight: 500;
}

/* Hide site description and search */
.site-header .site-description,
.site-header .site-search {
    display: none !important;
}

/* Navigation wrapper - only relative on mobile, fixed on desktop handled in scroll section */
@media (max-width: 991px) {
    .storefront-primary-navigation {
        position: relative;
    }
}

.storefront-primary-navigation > .col-full {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 2rem;
    min-height: 110px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Navigation - full width, items split around center gap for logo */
.site-header .main-navigation,
.woocommerce-active .site-header .main-navigation {
    width: 100%;
    clear: none;
    float: none;
    margin-right: 0;
}

.main-navigation ul.menu,
.main-navigation ul.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul.menu > li,
.main-navigation ul.nav-menu > li {
    position: relative;
    margin: 0;
}

/* Gap in the middle - equal on both sides of logo */
.main-navigation ul.menu > li:nth-child(3),
.main-navigation ul.nav-menu > li:nth-child(3) {
    margin-right: 120px;
}

.main-navigation ul.menu > li:nth-child(4),
.main-navigation ul.nav-menu > li:nth-child(4) {
    margin-left: 120px;
}

/* Menu item links */
.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 400;
    font-variant: small-caps;
    color: var(--tb-heading-color);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.03em;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.main-navigation ul.menu > li > a:hover,
.main-navigation ul.nav-menu > li > a:hover {
    color: var(--tb-accent-color);
}

/* Current/Active menu item */
.main-navigation ul.menu > li.current-menu-item > a,
.main-navigation ul.menu > li.current_page_item > a,
.main-navigation ul.menu > li.current-menu-ancestor > a,
.main-navigation ul.nav-menu > li.current-menu-item > a,
.main-navigation ul.nav-menu > li.current_page_item > a,
.main-navigation ul.nav-menu > li.current-menu-ancestor > a {
    color: var(--tb-accent-color);
}

/* Dropdown arrow indicator - pure CSS chevron (reset parent theme Font Awesome caret) */
.main-navigation ul.menu > li.menu-item-has-children > a::after,
.main-navigation ul.nav-menu > li.menu-item-has-children > a::after,
.main-navigation ul.menu > li.page_item_has_children > a::after,
.main-navigation ul.nav-menu > li.page_item_has_children > a::after {
    /* Reset Storefront's Font Awesome caret */
    font-family: inherit !important;
    -moz-osx-font-smoothing: auto;
    /* Our CSS chevron */
    content: '' !important;
    display: inline-block;
    width: 0.35rem;
    height: 0.35rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 0.3rem;
    margin-bottom: 0.15rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.main-navigation ul.menu > li.menu-item-has-children:hover > a::after,
.main-navigation ul.nav-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(225deg);
    margin-bottom: 0;
}

/* Dropdown submenu */
.main-navigation ul.menu ul,
.main-navigation ul.nav-menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--tb-border-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.main-navigation ul.menu > li:hover > ul,
.main-navigation ul.nav-menu > li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul.menu ul li,
.main-navigation ul.nav-menu ul li {
    margin: 0 !important;
}

.main-navigation ul.menu ul li a,
.main-navigation ul.nav-menu ul li a {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 400;
    font-variant: small-caps;
    letter-spacing: 0.03em;
    color: var(--tb-heading-color);
    text-decoration: none;
    padding: 0.65rem 1.25rem;
    display: block;
    transition: all 0.15s ease;
}

.main-navigation ul.menu ul li a:hover,
.main-navigation ul.nav-menu ul li a:hover {
    background: var(--tb-summary-bg);
    color: var(--tb-accent-color);
}

/* Hide secondary nav, search, and fallback page menu - not needed */
.secondary-navigation,
.site-search,
.storefront-product-search,
.site-header .widget_product_search,
.site-header .search-form,
.main-navigation > .menu:not(.primary-navigation *),
.main-navigation .primary-navigation + .menu {
    display: none !important;
}

/* ==========================================================================
   Floating Cart Widget - Sticky Pill
   ========================================================================== */

.site-header-cart {
    position: fixed !important;
    top: 140px;
    right: 20px;
    z-index: 999;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

@media (min-width: 768px) {
    body.woocommerce-page .site-header-cart a.cart-contents,
    body .site-header-cart a.cart-contents {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        background: #1a1a1a;
        color: #fff;
        padding: 0.6rem 1.75rem;
        border-radius: 50px;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 400;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        transition: all 0.3s ease;
        height: auto;
        width: auto;
        text-indent: 0;
    }

    body.woocommerce-page .site-header-cart a.cart-contents:hover,
    body .site-header-cart a.cart-contents:hover {
        background: #000;
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    }

    /* Cart icon on left */
    body .site-header-cart a.cart-contents::before {
        content: '\f07a';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 1rem;
    }

    body .site-header-cart a.cart-contents .woocommerce-Price-amount {
        color: #fff;
        font-size: 1rem;
    }

    /* Hide Storefront's right cart icon */
    body .site-header-cart a.cart-contents::after {
        display: none;
        content: none;
    }

    /* Count badge - white circle at top right */
    body .site-header-cart a.cart-contents .count {
        position: absolute;
        top: -10px;
        right: -10px;
        background: #fff;
        color: #1a1a1a;
        font-size: 0;
        font-weight: 600;
        min-width: 28px;
        height: 28px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        overflow: hidden;
    }

    /* Show only the number, hide "prodotti/items" text */
    body .site-header-cart a.cart-contents .count::before {
        content: attr(data-count);
        font-size: 0.85rem;
        font-weight: 600;
        color: #1a1a1a;
    }
}

/* Completely hide Storefront's default cart dropdown */
.site-header-cart .widget_shopping_cart {
    display: none !important;
}

/* Custom cart panel - slide in from right */
#tb-cart-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 10001;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

#tb-cart-panel.active {
    right: 0;
}

/* Cart panel header */
#tb-cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

#tb-cart-panel-header h3 {
    margin: 0;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Close button for cart panel */
.tb-cart-panel-close {
    background: none;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    aspect-ratio: 1;
    box-sizing: border-box;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tb-cart-panel-close:hover {
    background: #1a1a1a;
    color: #fff;
}

.tb-cart-panel-close::before {
    content: '→';
    font-size: 1.1rem;
    font-weight: bold;
}

/* Cart panel content */
#tb-cart-panel-content {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

#tb-cart-panel .cart-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

#tb-cart-panel .cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

#tb-cart-panel .cart-item img {
    width: 70px;
    height: auto;
    flex-shrink: 0;
}

#tb-cart-panel .cart-item-details {
    flex: 1;
}

#tb-cart-panel .cart-item-name {
    font-weight: 500;
    color: var(--tb-heading-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

#tb-cart-panel .cart-item-price {
    color: #666;
    font-size: 0.9rem;
}

#tb-cart-panel .cart-item-remove {
    font-size: 1.25rem;
    color: #999;
    text-decoration: none;
    padding: 0.5rem;
    cursor: pointer;
}

#tb-cart-panel .cart-item-remove:hover {
    color: var(--tb-accent-color);
}

/* Subtotal */
#tb-cart-panel-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

#tb-cart-panel .cart-subtotal {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

#tb-cart-panel .cart-subtotal strong {
    font-weight: 600;
}

/* Cart buttons */
#tb-cart-panel .cart-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#tb-cart-panel .cart-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--tb-heading-color, #1a1a1a);
    color: #fff;
    transition: all 0.2s ease;
}

#tb-cart-panel .cart-buttons a:hover {
    background: #333;
}

/* Empty cart message */
#tb-cart-panel .cart-empty {
    padding: 2rem;
    text-align: center;
    color: #666;
}

/* Cart panel overlay - below the panel */
.tb-cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.tb-cart-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    /* Position cart at bottom-right on mobile */
    body .site-header-cart {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: auto !important;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        z-index: 9999 !important;
        width: auto !important;
        height: auto !important;
        transform: none !important;
        clip: auto !important;
    }

    body .site-header-cart a.cart-contents {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        background: #1a1a1a !important;
        background-color: #1a1a1a !important;
        color: #fff !important;
        padding: 0.5rem 1.25rem !important;
        border-radius: 50px !important;
        text-decoration: none !important;
        font-size: 0.9rem !important;
        font-weight: 400 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        position: relative !important;
    }

    /* Cart icon on left - mobile */
    body .site-header-cart a.cart-contents::before {
        content: '\f07a';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.9rem;
    }

    body .site-header-cart a.cart-contents .woocommerce-Price-amount {
        color: #fff;
        font-size: 0.9rem;
    }

    /* Hide Storefront's icon on mobile */
    body .site-header-cart a.cart-contents::after {
        display: none;
        content: none;
    }

    /* Count badge - mobile */
    body .site-header-cart a.cart-contents .count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #fff;
        color: #1a1a1a;
        font-size: 0;
        font-weight: 600;
        min-width: 24px;
        height: 24px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        overflow: hidden;
    }

    body .site-header-cart a.cart-contents .count::before {
        content: attr(data-count);
        font-size: 0.75rem;
        font-weight: 600;
        color: #1a1a1a;
    }

    .site-header-cart .widget_shopping_cart {
        display: none;
    }

    /* Hide Storefront's handheld footer bar */
    .storefront-handheld-footer-bar {
        display: none;
    }
}

/* Storefront handheld footer bar - hide on desktop */
@media (min-width: 769px) {
    .storefront-handheld-footer-bar {
        display: none;
    }
}

/* ==========================================================================
   Header - Responsive
   ========================================================================== */

@media (max-width: 991px) and (min-width: 769px) {
    /* Tablet: fixed top bar and header */
    .tb-top-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
    }

    .site-header {
        position: fixed;
        top: var(--tb-topbar-height);
        left: 0;
        right: 0;
        z-index: 999;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    body {
        padding-top: calc(var(--tb-topbar-height) + 120px);
    }

    /* Tablet: center logo on top of menu */
    .site-header > .col-full {
        position: static;
        left: auto;
        transform: none;
        height: auto;
        padding: 0.75rem 0;
        margin-top: 7px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
    }

    .site-header .site-branding {
        text-align: center;
        float: none !important;
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .site-header .site-branding .custom-logo-link img,
    .site-header .site-branding .custom-logo {
        max-height: 60px;
    }

    .storefront-primary-navigation > .col-full {
        flex-direction: column;
        padding: 0 1rem 0.75rem;
        min-height: auto;
    }

    .main-navigation ul.menu > li:nth-child(3),
    .main-navigation ul.nav-menu > li:nth-child(3) {
        margin-right: 0;
    }

    .main-navigation ul.menu > li:nth-child(4),
    .main-navigation ul.nav-menu > li:nth-child(4) {
        margin-left: 0;
    }

    .main-navigation ul.menu,
    .main-navigation ul.nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-navigation ul.menu > li > a,
    .main-navigation ul.nav-menu > li > a {
        padding: 0.5rem 0.9rem;
        font-size: 0.95rem;
    }

    /* Tablet compact mode: hide main logo, show heraldry */
    .header-compact .site-header .site-branding {
        display: none !important;
    }

    .header-compact .tb-heraldry-logo {
        display: block !important;
        pointer-events: auto;
    }

    .header-compact .tb-heraldry-logo img {
        height: 45px;
        width: auto;
        filter: brightness(0.5);
    }

    .header-compact .tb-heraldry-logo:hover img {
        filter: brightness(0.7);
    }

    .header-compact .storefront-primary-navigation > .col-full {
        min-height: auto;
        padding-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    /* Hide desktop nav */
    .main-navigation .primary-navigation,
    .main-navigation > .menu {
        display: none;
    }

    /* Show mobile menu toggle */
    .main-navigation {
        display: block;
        width: 100%;
    }

    .menu-toggle {
        display: block !important;
        margin: 0 auto;
        background: var(--tb-button-bg);
        color: var(--tb-button-color);
        border: none;
        padding: 0.75rem 1.5rem;
        font-family: 'EB Garamond', Georgia, serif;
        font-size: 1rem;
        cursor: pointer;
    }

    .menu-toggle:hover {
        background: var(--tb-button-hover-bg);
    }

    /* When menu is toggled open */
    .main-navigation.toggled .primary-navigation {
        display: block !important;
    }

    .main-navigation.toggled ul.menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    .main-navigation.toggled ul.menu > li {
        margin: 0 !important;
    }

    .main-navigation.toggled ul.menu > li > a {
        padding: 0.75rem 1rem;
    }

    /* Logo adjustments */
    .site-header > .col-full {
        position: relative;
        left: auto;
        transform: none;
        height: auto;
        padding: 1rem;
        justify-content: center;
    }

    .site-branding {
        text-align: center;
    }

    .storefront-primary-navigation > .col-full {
        padding: 0.5rem 1rem 1rem;
        min-height: auto;
    }

    /* Show handheld footer bar for cart/account */
    .storefront-handheld-footer-bar {
        display: block !important;
    }
}

/* ==========================================================================
   Blog Archive - Grid Layout
   ========================================================================== */

.tb-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tb-post-card {
    display: flex;
    flex-direction: column;
}

.tb-post-card__thumbnail {
    margin-bottom: 0.75rem;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--tb-summary-bg);
}

.tb-post-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tb-post-card:hover .tb-post-card__thumbnail img {
    transform: scale(1.05);
}

.tb-post-card__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.tb-post-card__title a {
    color: var(--tb-heading-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tb-post-card__title a:hover {
    color: var(--tb-accent-color);
}

@media (max-width: 991px) {
    .tb-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 575px) {
    .tb-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Top Bar Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .tb-top-bar {
        height: auto;
        line-height: 1.4;
        padding: 0.5rem 0;
    }

    .tb-top-bar-inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tb-top-bar-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .tb-contact-item span {
        display: none;
    }

    .tb-top-bar-right {
        justify-content: center;
    }

    .tb-search-input {
        font-size: 1.25rem;
    }

    .tb-search-overlay-inner {
        padding: 1rem;
    }

    .tb-search-close {
        top: -40px;
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Product Details/Accordion Styling
   ========================================================================== */

/* Hide the default "Description" heading in WooCommerce tabs */
.woocommerce-Tabs-panel--description > h2 {
    display: none;
}

/* Base details styling */
.woocommerce-Tabs-panel details,
.woocommerce-product-details__short-description details {
    border: 1px solid var(--tb-border-color);
    margin-bottom: -1px; /* Stack borders */
    background: #fff;
}

.woocommerce-Tabs-panel details:first-of-type,
.woocommerce-product-details__short-description details:first-of-type {
    border-radius: 4px 4px 0 0;
}

.woocommerce-Tabs-panel details:last-of-type,
.woocommerce-product-details__short-description details:last-of-type {
    border-radius: 0 0 4px 4px;
    margin-bottom: 1.5rem;
}

.woocommerce-Tabs-panel details:only-of-type,
.woocommerce-product-details__short-description details:only-of-type {
    border-radius: 4px;
}

/* Summary (clickable header) */
.woocommerce-Tabs-panel details summary,
.woocommerce-product-details__short-description details summary {
    padding: 1rem 3rem 1rem 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    background: var(--tb-summary-bg);
    list-style: none;
    position: relative;
    transition: background-color 0.15s ease;
    color: var(--tb-heading-color);
    letter-spacing: 0.02em;
}

.woocommerce-Tabs-panel details summary:hover,
.woocommerce-product-details__short-description details summary:hover {
    background: var(--tb-summary-hover-bg);
}

/* Remove default marker */
.woocommerce-Tabs-panel details summary::-webkit-details-marker,
.woocommerce-product-details__short-description details summary::-webkit-details-marker {
    display: none;
}

.woocommerce-Tabs-panel details summary::marker,
.woocommerce-product-details__short-description details summary::marker {
    display: none;
    content: '';
}

/* Custom expand/collapse indicator */
.woocommerce-Tabs-panel details summary::after,
.woocommerce-product-details__short-description details summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    color: var(--tb-heading-color);
}

.woocommerce-Tabs-panel details[open] summary::after,
.woocommerce-product-details__short-description details[open] summary::after {
    content: '−';
}

/* Content inside details */
.woocommerce-Tabs-panel details > *:not(summary),
.woocommerce-product-details__short-description details > *:not(summary) {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Headings inside details */
.woocommerce-Tabs-panel details h6,
.woocommerce-product-details__short-description details h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 1.25rem 0 0.5rem 0;
    padding: 0 1.25rem;
    color: var(--tb-heading-color);
    font-weight: 600;
}

/* First h6 after summary */
.woocommerce-Tabs-panel details > h6:first-of-type,
.woocommerce-product-details__short-description details > h6:first-of-type {
    margin-top: 1rem;
}

/* Paragraphs inside details */
.woocommerce-Tabs-panel details p,
.woocommerce-product-details__short-description details p {
    margin: 0 0 0.75rem 0;
    padding: 0 1.25rem;
    color: var(--tb-text-color);
    line-height: 1.65;
    font-size: 0.9rem;
}

/* Last paragraph */
.woocommerce-Tabs-panel details p:last-child,
.woocommerce-product-details__short-description details p:last-child {
    margin-bottom: 1.25rem;
}

/* Lists inside details */
.woocommerce-Tabs-panel details ul,
.woocommerce-product-details__short-description details ul {
    margin: 0.5rem 0 1.25rem 0;
    padding: 0 1.25rem 0 2.5rem;
}

.woocommerce-Tabs-panel details li,
.woocommerce-product-details__short-description details li {
    margin-bottom: 0.5rem;
    color: var(--tb-text-color);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Strong text */
.woocommerce-Tabs-panel details strong,
.woocommerce-product-details__short-description details strong {
    color: var(--tb-heading-color);
    font-weight: 600;
}

/* ==========================================================================
   Continue Shopping Button
   ========================================================================== */

.woocommerce-Tabs-panel > p > a.button,
.woocommerce-Tabs-panel--description > p:last-child > a.button {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--tb-button-bg);
    color: var(--tb-button-color) !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    border-radius: 0;
    transition: background-color 0.2s ease;
}

.woocommerce-Tabs-panel > p > a.button:hover,
.woocommerce-Tabs-panel--description > p:last-child > a.button:hover {
    background: var(--tb-button-hover-bg);
    color: var(--tb-button-color) !important;
}

/* ==========================================================================
   WooCommerce Tabs - Clean up default styling
   ========================================================================== */

/* Make the Description tab less prominent since we have accordions */
.woocommerce-tabs ul.tabs {
    margin-bottom: 1.5rem;
    padding: 0;
    border-bottom: 1px solid var(--tb-border-color);
}

.woocommerce-tabs ul.tabs li {
    border: none;
    background: transparent;
    margin: 0;
}

.woocommerce-tabs ul.tabs li a {
    font-weight: 500;
    color: var(--tb-heading-color);
    padding: 0.75rem 1.5rem;
}

.woocommerce-tabs ul.tabs li.active {
    border-bottom: 2px solid var(--tb-heading-color);
}

/* ==========================================================================
   Shop Page - Product Grid
   ========================================================================== */

/* Product card styling */
ul.products li.product,
.related.products li.product {
    text-align: center;
    overflow: visible;
}

ul.products li.product .woocommerce-loop-product__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--tb-heading-color);
}

ul.products li.product .price {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 18.2px;
    color: var(--tb-accent-color, #dda759);
}

ul.products li.product .woocommerce-price-suffix {
    font-size: 15.17px;
}

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

@media (max-width: 768px) {
    .woocommerce-Tabs-panel details summary,
    .woocommerce-product-details__short-description details summary {
        padding: 0.875rem 2.5rem 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .woocommerce-Tabs-panel details summary::after,
    .woocommerce-product-details__short-description details summary::after {
        right: 1rem;
    }

    .woocommerce-Tabs-panel details h6,
    .woocommerce-product-details__short-description details h6 {
        padding: 0 1rem;
    }

    .woocommerce-Tabs-panel details p,
    .woocommerce-product-details__short-description details p {
        padding: 0 1rem;
    }

    .woocommerce-Tabs-panel details ul,
    .woocommerce-product-details__short-description details ul {
        padding: 0 1rem 0 2rem;
    }
}

/* Add Box button on product pages */
.tb-add-box-button {
    margin-left: 0.5rem;
    background: transparent !important;
    color: var(--tb-heading-color, #1a1a1a) !important;
    border: 2px solid var(--tb-heading-color, #1a1a1a) !important;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tb-add-box-button:hover {
    background: var(--tb-heading-color, #1a1a1a) !important;
    color: #fff !important;
}

/* Ensure buttons are on the same row */
form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

form.cart .quantity {
    margin-right: 0.5rem;
}

@media (max-width: 480px) {
    .tb-add-box-button {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* ============================================
   SINGLE PRODUCT PAGE STYLING
   ============================================ */

/* Breadcrumb - reduce spacing and hide home icon */
.storefront-breadcrumb {
    margin: 0 0 1rem !important;
    padding: 1rem 0 !important;
}

.single-product .storefront-breadcrumb {
    margin-bottom: 0 !important;
}

.storefront-breadcrumb .woocommerce-breadcrumb a:first-child svg,
.storefront-breadcrumb .woocommerce-breadcrumb a:first-child .fa,
.storefront-breadcrumb .woocommerce-breadcrumb a:first-child i,
.storefront-breadcrumb .woocommerce-breadcrumb > svg,
.storefront-breadcrumb .woocommerce-breadcrumb > a > svg {
    display: none !important;
}

.storefront-breadcrumb .woocommerce-breadcrumb a:first-child::before,
.storefront-breadcrumb .woocommerce-breadcrumb::before,
.woocommerce-breadcrumb a[href$="shop.dev.tb.meow.ch"]::before,
.woocommerce-breadcrumb a[href$="shop.dev.tb.meow.ch/"]::before {
    display: none !important;
    content: none !important;
}

/* Two-column layout */
.single-product div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.single-product .woocommerce-product-gallery {
    grid-column: 1;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.single-product div.product .woocommerce-product-gallery img {
    margin: 0 auto;
}

.single-product .summary.entry-summary {
    grid-column: 2;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0;
}

/* Product title */
.single-product .product_title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0 0 0.375rem;
    color: var(--tb-heading-color, #1a1a1a);
}

/* Short description - italic style */
.single-product .woocommerce-product-details__short-description {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #666;
    padding: 0.75rem 0;
    margin-bottom: 0;
}

/* Category - with dotted bottom border */
.single-product .product_meta .posted_in {
    font-size: 0.875rem;
    display: block;
    background-image: linear-gradient(to right, #000 10%, transparent 0%);
    background-position: center bottom;
    background-repeat: repeat-x;
    background-size: 10px 1px;
    padding-bottom: 0.625rem;
    margin-bottom: 0;
}

.single-product .product_meta .posted_in a {
    color: var(--tb-accent-color, #dda759);
    text-decoration: none;
}

.single-product .product_meta .posted_in a:hover {
    text-decoration: underline;
}

/* Price styling - gold italic */
.single-product .price {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 30px;
    color: var(--tb-accent-color, #dda759) !important;
    padding: 15px 0;
    margin: 0 !important;
}

.single-product .price .woocommerce-Price-currencySymbol {
    font-size: inherit;
}

.single-product .price .woocommerce-price-suffix {
    font-size: 25px;
    font-style: italic;
}

/* Quantity selector with +/- buttons */
.single-product form.cart .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    margin-right: 0.5rem;
}

.single-product form.cart .quantity .qty-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--tb-heading-color, #1a1a1a);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.single-product form.cart .quantity .qty-btn:hover {
    background: #f5f5f5;
}

.single-product form.cart .quantity input.qty {
    width: 40px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 1rem;
    padding: 0;
    -moz-appearance: textfield;
}

.single-product form.cart .quantity input.qty::-webkit-inner-spin-button,
.single-product form.cart .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Category/Brand section */
.single-product .product-category-brand {
    margin: 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    background-image: linear-gradient(to right, #000 10%, transparent 0%);
    background-position: center bottom;
    background-repeat: repeat-x;
    background-size: 10px 1px;
    padding-bottom: 0.625rem;
}

.single-product .product-category-brand .category-brand-item {
    font-size: 1rem;
    margin-right: 1.5rem;
}

.single-product .product-category-brand .category-brand-item:last-child {
    margin-right: 0;
}

.single-product .product-category-brand .label {
    color: #888;
}

.single-product .product-category-brand a {
    color: var(--tb-accent-color, #dda759);
    text-decoration: none;
}

/* Accordion section */
.single-product .product-accordion-section {
    margin-top: 1rem;
}

/* SKU and Tags */
.single-product .product-sku,
.single-product .product-tags {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.75rem;
}

.single-product .product-tags a {
    color: var(--tb-accent-color, #dda759);
    text-decoration: none;
}

/* Add to cart button */
.single-product form.cart button.single_add_to_cart_button {
    background: var(--tb-heading-color, #1a1a1a) !important;
    color: #fff !important;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.single-product form.cart button.single_add_to_cart_button:hover {
    background: #333 !important;
}

/* SKU and Brand line */
.single-product .product_meta {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
}

.single-product .product_meta > span {
    display: inline;
    margin-right: 1rem;
}

.single-product .product_meta .sku_wrapper,
.single-product .product_meta .tagged_as {
    color: #666;
}

.single-product .product_meta a {
    color: var(--tb-accent-color, #c9a227);
    text-decoration: none;
}

/* Product tabs - hide since we show accordion in summary */
.single-product .woocommerce-tabs {
    display: none;
}

/* Related products - full width */
.single-product .related.products {
    grid-column: 1 / -1;
    margin-top: 3rem;
}

/* Related products custom heading */
.single-product .related-products-heading {
    grid-column: 1 / -1;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.single-product .related-products-heading h3 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    margin: 0 0 0.25rem;
    color: var(--tb-heading-color, #1a1a1a);
}

.single-product .related-products-heading h6 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: #888;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

/* Hide default empty h2 */
.single-product .related.products > h2:empty {
    display: none;
}

/* Related products - product titles */
.single-product .related.products .woocommerce-loop-product__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 400;
}

/* Related products - price and button layout */
.single-product .related.products li.product,
ul.products li.product {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.single-product .related.products li.product .woocommerce-loop-product__link,
ul.products li.product .woocommerce-loop-product__link {
    width: 100%;
    flex: 0 0 100%;
}

.single-product .related.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title {
    text-align: right;
}

.single-product .related.products li.product .price,
ul.products li.product .price {
    margin: 0;
    flex: 1 1 auto;
    text-align: right;
}

.single-product .related.products li.product .price {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 18.2px;
    color: var(--tb-accent-color, #dda759);
}

.single-product .related.products .woocommerce-price-suffix {
    font-size: 15.17px;
}

.single-product .related.products li.product .button,
ul.products li.product .button {
    flex: 0 0 auto;
}

/* Product card styles - shared between related products and shop page */
.tb-product-image-wrap {
    position: relative;
    display: block;
    overflow: visible;
}

.tb-product-image-wrap::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f5f5f5;
    z-index: 0;
    pointer-events: none;
}

.tb-product-image-wrap img {
    position: relative;
    z-index: 1;
    display: block;
}

/* Product card button - white with soft border */
.related.products .button,
ul.products li.product .button {
    background: #fff !important;
    color: var(--tb-heading-color, #1a1a1a) !important;
    border: 1px solid #ccc !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
}

.related.products .button:hover,
ul.products li.product .button:hover {
    background: var(--tb-heading-color, #1a1a1a) !important;
    color: #fff !important;
    border-color: var(--tb-heading-color, #1a1a1a) !important;
}

@media (max-width: 768px) {
    .single-product .related.products li.product,
    ul.products li.product {
        justify-content: center;
    }

    .single-product .related.products li.product .price,
    .single-product .related.products li.product .button,
    ul.products li.product .price,
    ul.products li.product .button {
        flex: 0 0 100%;
        text-align: center;
        margin: 0.5rem 0;
    }

    .single-product .related.products li.product .woocommerce-loop-product__title,
    ul.products li.product .woocommerce-loop-product__title {
        text-align: center;
    }
}

/* Wine accordion sections */
.tb-wine-accordion {
    border-top: 1px solid #eee;
}

.tb-wine-accordion-item {
    border-bottom: 1px solid #eee;
}

.tb-wine-accordion-header {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tb-wine-accordion-header:hover {
    color: var(--tb-accent-color, #c9a227);
}

.tb-wine-accordion-icon {
    font-size: 1.3rem;
    width: 2rem;
    color: var(--tb-accent-color, #c9a227);
}

.tb-wine-accordion-title {
    flex: 1;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 500;
}

.tb-wine-accordion-toggle {
    font-size: 0.8rem;
    color: #999;
    transition: transform 0.3s ease;
}

.tb-wine-accordion-item.active .tb-wine-accordion-toggle {
    transform: rotate(180deg);
}

.tb-wine-accordion-content {
    display: none;
    padding: 0 0 1.5rem 2rem;
}

.tb-wine-accordion-item.active .tb-wine-accordion-content {
    display: block;
}

/* Technical info table styling */
.tb-wine-accordion-content .tb-tech-info {
    margin: 0;
}

.tb-wine-accordion-content .tb-tech-info dt {
    font-weight: 600;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.tb-wine-accordion-content .tb-tech-info dt:first-child {
    margin-top: 0;
}

.tb-wine-accordion-content .tb-tech-info dd {
    margin: 0.25rem 0 0 0;
    color: #666;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .single-product div.product {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .single-product .woocommerce-product-gallery {
        grid-column: 1;
    }

    .single-product .summary.entry-summary {
        grid-column: 1;
    }

    .single-product .product_title {
        font-size: 2rem;
    }

    .single-product .price {
        font-size: 1.5rem;
        padding: 0.5rem 0;
    }

    .single-product .price .woocommerce-price-suffix {
        font-size: 1.2rem;
    }

    .single-product form.cart {
        flex-direction: column;
        align-items: stretch;
    }

    .single-product form.cart .quantity {
        margin-right: 0;
        margin-bottom: 0.5rem;
        justify-content: center;
    }

    .single-product form.cart button.single_add_to_cart_button,
    .single-product .tb-add-box-button {
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* ============================================
   PRODUCT DETAILS/ACCORDION STYLING
   Using HTML5 <details> elements with wine icons
   ============================================ */

.single-product .product-accordion-section details,
.single-product .woocommerce-product-details__short-description details,
.single-product .entry-content details {
    border-bottom: 1px solid #eee;
    margin: 0;
}

.single-product .product-accordion-section details:first-of-type,
.single-product .woocommerce-product-details__short-description details:first-of-type,
.single-product .entry-content details:first-of-type {
    border-top: 1px solid #eee;
}

.single-product .product-accordion-section details summary,
.single-product .woocommerce-product-details__short-description details summary,
.single-product .entry-content details summary {
    display: flex;
    align-items: center;
    padding: 1rem 0 1rem 1rem;
    cursor: pointer;
    list-style: none;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--tb-heading-color, #1a1a1a);
    transition: color 0.2s ease;
}

.single-product .product-accordion-section details summary::-webkit-details-marker,
.single-product .woocommerce-product-details__short-description details summary::-webkit-details-marker,
.single-product .entry-content details summary::-webkit-details-marker {
    display: none;
}

.single-product .product-accordion-section details summary:hover,
.single-product .woocommerce-product-details__short-description details summary:hover,
.single-product .entry-content details summary:hover {
    color: var(--tb-accent-color, #dda759);
}

/* Chevron indicator - pure CSS */
.single-product .product-accordion-section details summary::after,
.single-product .woocommerce-product-details__short-description details summary::after,
.single-product .entry-content details summary::after {
    content: '';
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    margin-left: auto;
    transition: transform 0.3s ease;
}

.single-product details[open] summary::after {
    transform: rotate(225deg);
}

/* Content inside details */
.single-product .product-accordion-section details > *:not(summary),
.single-product .woocommerce-product-details__short-description details > *:not(summary),
.single-product .entry-content details > *:not(summary) {
    padding-left: 1.5rem;
}

/* Smooth accordion animation */
.single-product .product-accordion-section details {
    overflow: hidden;
}

.single-product .product-accordion-section details > *:not(summary) {
    animation: accordion-close 0.3s ease forwards;
}

.single-product .product-accordion-section details[open] > *:not(summary) {
    animation: accordion-open 0.3s ease forwards;
}

@keyframes accordion-open {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes accordion-close {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.single-product details h6 {
    font-weight: 600;
    margin: 1rem 0 0.25rem;
    padding-left: 1rem;
    font-size: 0.95rem;
    color: var(--tb-heading-color, #1a1a1a);
}

.single-product details h6:first-of-type {
    margin-top: 0;
}

.single-product details p,
.single-product details dd {
    color: #666;
    margin: 0.25rem 0;
    padding-left: 1rem;
    line-height: 1.6;
}

.single-product details p:last-of-type {
    padding-bottom: 1rem;
}

/* ============================================
   WINE ICONS FOR ACCORDION SECTIONS
   ============================================ */

/* Base icon styling */
.single-product details[class*="tb-icon-"] summary::before {
    font-family: "tb-wine-icons";
    font-size: 1.3rem;
    width: 2rem;
    color: var(--tb-accent-color, #c9a227);
    margin-right: 0.5rem;
    display: inline-block;
}

/* Tasting Notes */
.single-product details.tb-icon-tasting summary::before {
    content: "\f120";
}

/* Wine Making */
.single-product details.tb-icon-winemaking summary::before {
    content: "\f10b";
}

/* Technical Information */
.single-product details.tb-icon-technical summary::before {
    content: "\f105";
}

/* Awards and Distinctions */
.single-product details.tb-icon-awards summary::before {
    content: "\f12a";
}

/* Packaging */
.single-product details.tb-icon-packaging summary::before {
    content: "\f11f";
}

/* ==========================================================================
   SEARCH RESULTS PAGE
   ========================================================================== */

.tb-search-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--tb-border-color, #e5e5e5);
}

.tb-search-header .page-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--tb-heading-color, #1a1a1a);
}

.tb-search-header .page-title span {
    font-style: italic;
    color: var(--tb-accent-color, #dda759);
}

.tb-search-section {
    margin-bottom: 4rem;
}

.tb-search-section-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    font-variant: small-caps;
    letter-spacing: 0.05em;
    color: var(--tb-heading-color, #1a1a1a);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--tb-border-color, #e5e5e5);
}

.tb-search-products .products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.tb-search-products .products::before,
.tb-search-products .products::after {
    display: none !important;
    content: none !important;
}

.tb-search-products .products li.product,
.site-main .tb-search-products ul.products li.product,
.site-main .tb-search-products ul.products.columns-3 li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 991px) {
    .tb-search-products .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tb-search-products .products {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.tb-no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.tb-no-results h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--tb-heading-color, #1a1a1a);
    margin-bottom: 1rem;
}

.tb-no-results p {
    color: var(--tb-text-color, #555);
    font-size: 1.1rem;
}

/* Post card placeholder for posts without thumbnails */
.tb-post-card__thumbnail--placeholder {
    background: var(--tb-summary-bg, #fafafa);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.tb-post-card__thumbnail--placeholder span {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--tb-text-color, #555);
}

/* ==========================================================================
   MOBILE NAVIGATION
   ========================================================================== */

/* Hide all mobile elements on desktop */
.tb-mobile-header,
.tb-mobile-menu,
.tb-mobile-menu-overlay {
    display: none;
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    /* Hide desktop top bar and navigation */
    .tb-top-bar,
    .storefront-primary-navigation,
    .site-header > .col-full {
        display: none !important;
    }

    /* Show mobile header */
    .tb-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #fff;
        padding: 0.75rem 1.25rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    /* Push content below fixed mobile header */
    body {
        padding-top: 60px;
    }

    /* Hamburger Button */
    .tb-hamburger {
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        position: relative;
        z-index: 1001;
    }

    .tb-hamburger-line {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--tb-heading-color, #1a1a1a);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: absolute;
    }

    .tb-hamburger-line:nth-child(1) {
        transform: translateY(-7px);
    }

    .tb-hamburger-line:nth-child(2) {
        transform: translateY(0);
    }

    .tb-hamburger-line:nth-child(3) {
        transform: translateY(7px);
    }

    /* Hamburger to X animation */
    .tb-hamburger.active .tb-hamburger-line:nth-child(1) {
        transform: rotate(45deg);
    }

    .tb-hamburger.active .tb-hamburger-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .tb-hamburger.active .tb-hamburger-line:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* Mobile Logo */
    .tb-mobile-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .tb-mobile-logo img {
        max-height: 65px;
        width: auto;
        filter: brightness(0.5);
        transition: filter 0.4s ease;
    }

    .tb-mobile-logo:hover img {
        filter: brightness(0.8);
    }

    .tb-mobile-logo .site-title {
        font-family: 'EB Garamond', Georgia, serif;
        font-size: 1.25rem;
        color: var(--tb-heading-color, #1a1a1a);
        text-decoration: none;
    }

    /* Search Toggle Button */
    .tb-mobile-search-toggle {
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        color: var(--tb-heading-color, #1a1a1a);
        font-size: 1.1rem;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s ease;
    }

    .tb-mobile-search-toggle:hover {
        color: var(--tb-accent-color, #dda759);
    }

    /* Mobile Menu Overlay */
    .tb-mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 998;
    }

    .tb-mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Menu Panel */
    .tb-mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100%;
        background: #fff;
        z-index: 999;
        overflow-y: auto;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    }

    .tb-mobile-menu.active {
        right: 0;
    }

    .tb-mobile-menu-inner {
        padding: 5rem 0 2rem;
        min-height: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Mobile Navigation List */
    .tb-mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .tb-mobile-nav-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .tb-mobile-nav-link-wrap {
        display: flex;
        align-items: center;
    }

    .tb-mobile-nav-link {
        flex: 1;
        display: block;
        padding: 1rem 1.5rem;
        font-family: 'EB Garamond', Georgia, serif;
        font-size: 1.15rem;
        font-weight: 400;
        font-variant: small-caps;
        letter-spacing: 0.03em;
        color: var(--tb-heading-color, #1a1a1a);
        text-decoration: none;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .tb-mobile-nav-link:hover,
    .tb-mobile-nav-item.current > .tb-mobile-nav-link,
    .tb-mobile-nav-item.current > .tb-mobile-nav-link-wrap > .tb-mobile-nav-link {
        color: var(--tb-accent-color, #dda759);
        background: #fafafa;
    }

    /* Submenu Toggle Button */
    .tb-submenu-toggle {
        background: none;
        border: none;
        border-left: 1px solid #f0f0f0;
        padding: 1rem 1.25rem;
        cursor: pointer;
        color: #888;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .tb-submenu-toggle:hover {
        color: var(--tb-accent-color, #dda759);
        background: #fafafa;
    }

    .tb-submenu-toggle i {
        font-size: 0.75rem;
        transition: transform 0.3s ease;
    }

    .tb-mobile-nav-item.submenu-open .tb-submenu-toggle i {
        transform: rotate(180deg);
    }

    /* Submenu */
    .tb-mobile-submenu {
        display: none;
        list-style: none;
        margin: 0;
        padding: 0;
        background: #fafafa;
    }

    .tb-mobile-submenu .tb-mobile-nav-link {
        padding-left: 2.5rem;
        font-size: 1rem;
        color: #555;
        border-bottom: none;
    }

    .tb-mobile-submenu .tb-mobile-nav-link:hover {
        color: var(--tb-accent-color, #dda759);
    }

    .tb-mobile-submenu .tb-mobile-nav-item {
        border-bottom: 1px solid #eee;
    }

    .tb-mobile-submenu .tb-mobile-nav-item:last-child {
        border-bottom: none;
    }

    /* Divider */
    .tb-mobile-menu-divider {
        height: 1px;
        background: linear-gradient(to right, transparent, #e0e0e0, transparent);
        margin: 1.5rem 1.5rem;
    }

    /* Footer Section */
    .tb-mobile-menu-footer {
        padding: 0 1.5rem 1.5rem;
        margin-top: auto;
    }

    /* Contact Items */
    .tb-mobile-contact {
        margin-bottom: 1.25rem;
    }

    .tb-mobile-contact-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.6rem 0;
        color: var(--tb-heading-color, #1a1a1a);
        text-decoration: none;
        font-size: 0.95rem;
        transition: color 0.2s ease;
    }

    .tb-mobile-contact-item:hover {
        color: var(--tb-accent-color, #dda759);
    }

    .tb-mobile-contact-item i {
        width: 20px;
        text-align: center;
        color: var(--tb-accent-color, #dda759);
    }

    /* Social Links */
    .tb-mobile-social {
        display: flex;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

    .tb-mobile-social a {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border-radius: 50%;
        color: var(--tb-heading-color, #1a1a1a);
        text-decoration: none;
        font-size: 1rem;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .tb-mobile-social a:hover {
        background: var(--tb-accent-color, #dda759);
        color: #fff;
    }

    /* Language Switcher */
    .tb-mobile-languages {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .tb-mobile-lang {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #888;
        background: #f5f5f5;
        border-radius: 4px;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .tb-mobile-lang:hover {
        background: #eee;
        color: var(--tb-heading-color, #1a1a1a);
    }

    .tb-mobile-lang.active {
        background: var(--tb-heading-color, #1a1a1a);
        color: #fff;
    }

    /* Account Link */
    .tb-mobile-account {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.85rem 1.25rem;
        background: #f5f5f5;
        border-radius: 6px;
        color: var(--tb-heading-color, #1a1a1a);
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        transition: background 0.2s ease;
    }

    .tb-mobile-account:hover {
        background: #eee;
    }

    .tb-mobile-account i {
        color: var(--tb-accent-color, #dda759);
    }

    /* Prevent body scroll when menu is open */
    body.tb-mobile-menu-open {
        overflow: hidden;
    }

    /* Cart widget is positioned via dedicated mobile cart styles */

    /* Hide Storefront's default mobile elements */
    .storefront-handheld-footer-bar,
    .site-header .site-branding,
    .menu-toggle {
        display: none !important;
    }

    /* Make sure the site header is minimal on mobile */
    .site-header {
        padding: 0;
        box-shadow: none;
        border-bottom: none;
    }
}

/* ==========================================================================
   Custom Footer
   ========================================================================== */

/* Override Storefront inline styles */
.site-footer.tb-footer,
footer.site-footer.tb-footer,
#colophon.site-footer.tb-footer {
    background: rgba(26, 26, 26, 1) !important;
    background-color: rgba(26, 26, 26, 1) !important;
    color: #fff !important;
    font-family: 'EB Garamond', Georgia, serif;
    padding: 0 !important;
    margin: 0 !important;
}

/* Reset Storefront's col-full wrapper */
.site-footer.tb-footer .col-full {
    max-width: none;
    padding: 0;
}

.tb-footer {
    background: rgba(26, 26, 26, 1);
    color: #fff;
    font-family: 'EB Garamond', Georgia, serif;
}

.tb-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

/* Logo */
.tb-footer-logo {
    margin-top: 0.5rem;
}

.tb-footer-logo img {
    max-width: 100px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.35;
}

.tb-footer-tagline {
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    max-width: 400px;
    line-height: 1.6;
}

/* Contact Info */
.tb-footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
}

.tb-footer-contact-item,
.tb-footer-contact-item:visited,
.site-footer.tb-footer .tb-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.tb-footer-contact-item:hover {
    color: var(--tb-accent-color, #dda759);
}

.tb-footer-contact-item i {
    color: var(--tb-accent-color, #dda759);
    font-size: 0.9rem;
}

/* Social Links */
.tb-footer-social {
    display: flex;
    gap: 1rem;
}

.tb-footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.tb-footer-social a:hover {
    background: var(--tb-accent-color, #dda759);
    color: #fff;
}

/* Language Switcher */
.tb-footer-languages {
    display: flex;
    align-items: center;
    gap: 0;
}

.tb-footer-lang,
.site-footer.tb-footer .tb-footer-lang {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6) !important;
    background: none;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.tb-footer-lang:hover {
    color: #fff !important;
}

.tb-footer-lang.active,
.site-footer.tb-footer .tb-footer-lang.active {
    color: var(--tb-accent-color, #dda759) !important;
    font-weight: 600;
}

/* Add separator between language links */
.tb-footer-lang:not(:last-child)::after {
    content: "|";
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Copyright Bar */
.tb-footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 2rem;
    text-align: center;
}

.tb-footer-copyright p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Override Storefront footer link colors */
.site-footer.tb-footer a:not(.button):not(.components-button),
.site-footer.tb-footer a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.site-footer.tb-footer a:hover {
    color: var(--tb-accent-color, #dda759) !important;
}

/* Hide default Storefront footer elements */
.site-footer .site-info,
.site-footer .footer-widgets {
    display: none !important;
}

/* Mobile Footer */
@media (max-width: 767px) {
    .tb-footer-inner {
        padding: 2.5rem 1.5rem;
        gap: 1.75rem;
    }

    .tb-footer-logo img {
        max-width: 120px;
    }

    .tb-footer-tagline {
        font-size: 1rem;
    }

    .tb-footer-contact {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

.tb-about-page {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

.tb-about-page .site-main {
    padding: 0;
    max-width: none;
}

/* Hero Section - fullscreen below top bar, behind transparent nav */
.tb-about-hero {
    position: relative;
    min-height: calc(100vh - var(--tb-topbar-height, 40px));
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Hide breadcrumbs on pages with fullscreen hero */
.tb-header-transparent .storefront-breadcrumb {
    display: none;
}

.tb-about-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
}

.tb-about-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.tb-about-hero__pretitle {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tb-about-hero__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tb-about-hero__title em {
    font-style: italic;
}

.tb-about-hero__subtitle {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tb-about-hero__subtitle em {
    font-style: italic;
}

.tb-about-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.tb-about-hero__scroll:hover {
    opacity: 1;
}

.tb-about-hero__scroll span {
    margin-bottom: 0.5rem;
}

.tb-about-hero__scroll i {
    font-size: 1.2rem;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

/* Intro Tagline Section */
.tb-about-tagline {
    padding: 5rem 2rem;
    background: #fff;
}

.tb-about-tagline__text {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--tb-heading-color, #1a1a1a);
    text-align: left;
}

.tb-about-tagline__text em {
    font-style: italic;
}

/* Block Section (Parallax + Two-Column Text) */
.tb-about-block {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.tb-about-block__parallax {
    height: 400px;
    overflow: hidden;
    position: relative;
    width: 80%; /* Spans from left to 80% (20% from right edge) */
}

.tb-about-block__parallax-inner {
    position: absolute;
    top: -80%;
    left: 0;
    right: 0;
    height: 160%;
    background-size: cover;
    background-position: center 30%;
    will-change: transform;
}

.tb-about-block__content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
    padding: 5rem 10%;
}

.tb-about-block__title h3 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--tb-heading-color, #1a1a1a);
    margin: 0;
    line-height: 1.3;
}

.tb-about-block__text h4 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--tb-heading-color, #1a1a1a);
    margin: 0 0 1.5rem;
}

.tb-about-block__text h4:last-child {
    margin-bottom: 0;
}

/* Split Section (Image Left 63%, Text Right 37%) */
.tb-about-split {
    display: grid;
    grid-template-columns: 63% 37%;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 450px;
}

.tb-about-split__image {
    position: relative;
    overflow: hidden;
}

.tb-about-split__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tb-about-split__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 5rem 3rem 3rem;
    background: #fff;
}

.tb-about-split__pretitle {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--tb-text-color, #555);
    margin: 0 0 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.tb-about-split__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--tb-heading-color, #1a1a1a);
    margin: 0 0 1.5rem;
    line-height: 1.3;
}

.tb-about-split__text {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--tb-text-color, #555);
    margin: 0;
}

/* Legacy Intro Section (keep for other sections) */
.tb-about-intro {
    padding: 5rem 2rem;
    background: #fafafa;
}

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

.tb-about-intro__content p {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--tb-text-color, #555);
    margin: 0;
}

/* Content Sections */
.tb-about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.tb-about-section__image {
    position: relative;
    overflow: hidden;
}

.tb-about-section__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tb-about-section__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5rem;
    background: #fff;
}

.tb-about-section__content h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--tb-heading-color, #1a1a1a);
    margin: 0 0 1.5rem;
    line-height: 1.3;
}

.tb-about-section__content p {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--tb-text-color, #555);
    margin: 0 0 1rem;
}

.tb-about-section__content p:last-child {
    margin-bottom: 0;
}

/* Reverse layout (image on right) */
.tb-about-section--reverse {
    direction: rtl;
}

.tb-about-section--reverse > * {
    direction: ltr;
}

/* Alternating backgrounds */
.tb-about-section:nth-child(even) .tb-about-section__content {
    background: #fafafa;
}

/* Quote Section */
.tb-about-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 6rem 4rem;
    background: var(--tb-primary-color, #1a1a1a);
}

.tb-about-quote__portrait {
    flex-shrink: 0;
}

.tb-about-quote__portrait img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    filter: grayscale(30%);
}

.tb-about-quote__text {
    max-width: 600px;
    margin: 0;
    padding: 0;
    border: none;
}

.tb-about-quote__text p {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem;
}

.tb-about-quote__text cite {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1rem;
    font-style: normal;
    color: var(--tb-accent-color, #dda759);
    letter-spacing: 0.05em;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .tb-about-hero {
        min-height: calc(100vh - var(--tb-topbar-height, 40px));
        background-attachment: scroll;
    }

    .tb-about-hero__title {
        font-size: 2.5rem;
    }

    .tb-about-hero__subtitle {
        font-size: 1.2rem;
    }

    .tb-about-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .tb-about-section--reverse {
        direction: ltr;
    }

    .tb-about-section__image {
        height: 300px;
    }

    .tb-about-section__content {
        padding: 3rem 2rem;
    }

    .tb-about-quote {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 4rem 2rem;
    }

    .tb-about-quote__portrait img {
        width: 150px;
        height: 150px;
    }

    .tb-about-quote__text p {
        font-size: 1.25rem;
    }
}

@media (max-width: 575px) {
    .tb-about-hero {
        min-height: calc(100vh - var(--tb-topbar-height, 40px));
    }

    .tb-about-hero__title {
        font-size: 2rem;
    }

    .tb-about-hero__subtitle {
        font-size: 1.1rem;
    }

    .tb-about-intro {
        padding: 3rem 1.5rem;
    }

    .tb-about-intro__content p {
        font-size: 1.1rem;
    }

    .tb-about-section__image {
        height: 250px;
    }

    .tb-about-section__content {
        padding: 2.5rem 1.5rem;
    }

    .tb-about-section__content h2 {
        font-size: 1.75rem;
    }

    .tb-about-section__content p {
        font-size: 1rem;
    }

    .tb-about-quote {
        padding: 3rem 1.5rem;
    }

    .tb-about-quote__portrait img {
        width: 120px;
        height: 120px;
    }

    .tb-about-quote__text p {
        font-size: 1.1rem;
    }
}

/* ============================================
   HISTORY PAGE STYLES
   ============================================ */

.tb-history-page {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

.tb-history-page .site-main {
    padding: 0;
    max-width: none;
}

/* Hero Section */
.tb-history-hero {
    background: var(--tb-primary-color, #1a1a1a);
    padding: 6rem 2rem;
    text-align: center;
}

.tb-history-hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.tb-history-hero__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.tb-history-hero__subtitle {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Timeline */
.tb-history-timeline {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.tb-timeline-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.tb-timeline-entry:last-child {
    margin-bottom: 0;
}

.tb-timeline-entry--reverse {
    direction: rtl;
}

.tb-timeline-entry--reverse > * {
    direction: ltr;
}

.tb-timeline-entry__image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.tb-timeline-entry__image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.4s ease;
}

.tb-timeline-entry:hover .tb-timeline-entry__image img {
    filter: grayscale(0%);
}

.tb-timeline-entry__content {
    padding: 2rem 0;
}

.tb-timeline-entry__year {
    display: inline-block;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tb-accent-color, #dda759);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tb-accent-color, #dda759);
}

.tb-timeline-entry__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--tb-heading-color, #1a1a1a);
    margin: 0 0 1.25rem;
    line-height: 1.3;
}

.tb-timeline-entry__text {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--tb-text-color, #555);
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .tb-history-hero {
        padding: 4rem 2rem;
    }

    .tb-history-hero__title {
        font-size: 2.5rem;
    }

    .tb-timeline-entry {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .tb-timeline-entry--reverse {
        direction: ltr;
    }

    .tb-timeline-entry__content {
        padding: 0;
    }
}

@media (max-width: 575px) {
    .tb-history-hero {
        padding: 3rem 1.5rem;
    }

    .tb-history-hero__title {
        font-size: 2rem;
    }

    .tb-history-hero__subtitle {
        font-size: 1.1rem;
    }

    .tb-history-timeline {
        padding: 3rem 1.5rem;
    }

    .tb-timeline-entry {
        margin-bottom: 3rem;
    }

    .tb-timeline-entry__title {
        font-size: 1.5rem;
    }

    .tb-timeline-entry__text {
        font-size: 1rem;
    }
}

/* ============================================
   REGION PAGE STYLES
   ============================================ */

.tb-region-page {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

.tb-region-page .site-main {
    padding: 0;
    max-width: none;
}

/* Hero Section */
.tb-region-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.tb-region-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.3) 0%,
        rgba(26, 26, 26, 0.6) 100%
    );
}

.tb-region-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.tb-region-hero__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 3rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.tb-region-hero__subtitle {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

/* Intro Section */
.tb-region-intro {
    padding: 5rem 2rem;
    background: #fff;
}

.tb-region-intro__content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tb-region-intro__content p {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--tb-text-color, #555);
    margin: 0;
}

/* Feature Sections (Climate, Soil) */
.tb-region-features {
    background: #fafafa;
}

.tb-region-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.tb-region-feature__image {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.tb-region-feature__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tb-region-feature__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5rem;
    background: #fff;
}

.tb-region-feature:nth-child(even) .tb-region-feature__content {
    background: #fafafa;
}

.tb-region-feature__content h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--tb-heading-color, #1a1a1a);
    margin: 0 0 1.5rem;
}

.tb-region-feature__content p {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--tb-text-color, #555);
    margin: 0;
}

.tb-region-feature--reverse {
    direction: rtl;
}

.tb-region-feature--reverse > * {
    direction: ltr;
}

/* Grape Varieties */
.tb-region-grapes {
    padding: 5rem 2rem;
    background: #fff;
    text-align: center;
}

.tb-region-grapes__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--tb-heading-color, #1a1a1a);
    margin: 0 0 1rem;
}

.tb-region-grapes__intro {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.15rem;
    color: var(--tb-text-color, #555);
    margin: 0 0 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tb-region-grapes__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.tb-grape-card {
    padding: 1.25rem 2rem;
    border: 2px solid;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tb-grape-card--red {
    border-color: #8B2942;
    color: #8B2942;
}

.tb-grape-card--red:hover {
    background: #8B2942;
    color: #fff;
}

.tb-grape-card--white {
    border-color: #C9A227;
    color: #C9A227;
}

.tb-grape-card--white:hover {
    background: #C9A227;
    color: #fff;
}

.tb-grape-card__name {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Sustainability Section */
.tb-region-sustainability {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding: 4rem 2rem;
}

.tb-region-sustainability__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.75);
}

.tb-region-sustainability__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.tb-region-sustainability__content h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--tb-accent-color, #dda759);
    margin: 0 0 2rem;
}

.tb-region-sustainability__content blockquote {
    margin: 0;
    padding: 0;
    border: none;
}

.tb-region-sustainability__content blockquote p {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .tb-region-hero {
        min-height: 50vh;
    }

    .tb-region-hero__title {
        font-size: 2.5rem;
    }

    .tb-region-feature {
        grid-template-columns: 1fr;
    }

    .tb-region-feature--reverse {
        direction: ltr;
    }

    .tb-region-feature__image {
        min-height: 300px;
    }

    .tb-region-feature__content {
        padding: 3rem 2rem;
    }
}

@media (max-width: 575px) {
    .tb-region-hero__title {
        font-size: 2rem;
    }

    .tb-region-hero__subtitle {
        font-size: 1.1rem;
    }

    .tb-region-intro {
        padding: 3rem 1.5rem;
    }

    .tb-region-intro__content p {
        font-size: 1.05rem;
    }

    .tb-region-feature__content {
        padding: 2.5rem 1.5rem;
    }

    .tb-region-feature__content h2 {
        font-size: 1.75rem;
    }

    .tb-region-grapes {
        padding: 3rem 1.5rem;
    }

    .tb-region-grapes__title {
        font-size: 2rem;
    }

    .tb-grape-card {
        padding: 1rem 1.5rem;
    }

    .tb-region-sustainability {
        padding: 3rem 1.5rem;
    }

    .tb-region-sustainability__content blockquote p {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Visit Page Styles
   ========================================================================== */

.tb-visit-page {
    background-color: #fff;
}

.tb-visit-page .site-main {
    padding: 0;
    max-width: 100%;
}

/* Hero Section */
.tb-visit-hero {
    position: relative;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-visit-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.tb-visit-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.tb-visit-hero__location {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.tb-visit-hero__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Intro Section */
.tb-visit-intro {
    padding: 5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tb-visit-intro__content p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 2rem;
}

.tb-visit-intro__cta {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background-color: var(--tb-primary-color);
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease;
}

.tb-visit-intro__cta:hover {
    background-color: #333;
    color: #fff;
}

/* Feature Sections */
.tb-visit-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.tb-visit-feature--reverse {
    direction: rtl;
}

.tb-visit-feature--reverse > * {
    direction: ltr;
}

.tb-visit-feature__image {
    overflow: hidden;
}

.tb-visit-feature__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tb-visit-feature__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background-color: #f9f7f4;
}

.tb-visit-feature--reverse .tb-visit-feature__content {
    background-color: #fff;
}

.tb-visit-feature__content h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--tb-heading-color);
    margin: 0 0 0.5rem 0;
}

.tb-visit-feature__content h3 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 400;
    font-style: italic;
    color: var(--tb-accent-color);
    margin: 0 0 1.5rem 0;
}

.tb-visit-feature__content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.tb-visit-feature__info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

.tb-visit-feature__hours {
    font-weight: 600;
    color: var(--tb-heading-color);
    margin-bottom: 0.5rem !important;
}

.tb-visit-feature__note {
    font-style: italic;
    color: #777;
    font-size: 0.95rem !important;
}

.tb-visit-feature__highlight {
    font-style: italic;
    background-color: rgba(221, 167, 89, 0.1);
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--tb-accent-color);
    margin-top: 1rem;
}

/* Facilities Section */
.tb-visit-facilities {
    position: relative;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-visit-facilities__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.tb-visit-facilities__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    text-align: center;
    color: #fff;
    padding: 4rem 2rem;
}

.tb-visit-facilities__content h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
}

.tb-visit-facilities__content h3 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 400;
    font-style: italic;
    color: var(--tb-accent-color);
    margin: 0 0 2rem 0;
}

.tb-visit-facilities__content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.tb-visit-facilities__hours {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Reservation Section */
.tb-visit-reservation {
    padding: 5rem 2rem;
    background-color: #f9f7f4;
}

.tb-visit-reservation__content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.tb-visit-reservation__content h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--tb-heading-color);
    margin: 0 0 1rem 0;
}

.tb-visit-reservation__content > p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.tb-visit-reservation__contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tb-visit-reservation__phone,
.tb-visit-reservation__email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--tb-primary-color);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.tb-visit-reservation__phone:hover,
.tb-visit-reservation__email:hover {
    background-color: #333;
    color: #fff;
}

.tb-visit-reservation__phone svg,
.tb-visit-reservation__email svg {
    width: 18px;
    height: 18px;
}

/* Visit Page Responsive */
@media (max-width: 991px) {
    .tb-visit-hero {
        min-height: 50vh;
    }

    .tb-visit-hero__title {
        font-size: 2.5rem;
    }

    .tb-visit-feature {
        grid-template-columns: 1fr;
    }

    .tb-visit-feature--reverse {
        direction: ltr;
    }

    .tb-visit-feature__image {
        min-height: 300px;
    }

    .tb-visit-feature__content {
        padding: 3rem 2rem;
    }

    .tb-visit-facilities {
        background-attachment: scroll;
    }
}

@media (max-width: 575px) {
    .tb-visit-hero__title {
        font-size: 2rem;
    }

    .tb-visit-hero__location {
        font-size: 0.85rem;
    }

    .tb-visit-intro {
        padding: 3rem 1.5rem;
    }

    .tb-visit-intro__content p {
        font-size: 1.05rem;
    }

    .tb-visit-feature__content {
        padding: 2.5rem 1.5rem;
    }

    .tb-visit-feature__content h2 {
        font-size: 1.75rem;
    }

    .tb-visit-facilities {
        min-height: auto;
        padding: 0;
    }

    .tb-visit-facilities__content {
        padding: 3rem 1.5rem;
    }

    .tb-visit-facilities__content h2 {
        font-size: 2rem;
    }

    .tb-visit-reservation {
        padding: 3rem 1.5rem;
    }

    .tb-visit-reservation__content h2 {
        font-size: 1.75rem;
    }

    .tb-visit-reservation__contact {
        flex-direction: column;
        gap: 1rem;
    }

    .tb-visit-reservation__phone,
    .tb-visit-reservation__email {
        width: 100%;
        justify-content: center;
    }
}

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

.tb-contact-page {
    background-color: #fff;
}

.tb-contact-page .site-main {
    padding: 0;
    max-width: 100%;
}

/* Hero Section */
.tb-contact-hero {
    background-color: #f9f7f4;
    padding: 6rem 2rem;
    text-align: center;
}

.tb-contact-hero__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--tb-heading-color);
    margin: 0 0 0.5rem 0;
}

.tb-contact-hero__subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    margin: 0;
}

/* Contact Info Section */
.tb-contact-info {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tb-contact-info__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    color: var(--tb-heading-color);
    margin: 0 0 3rem 0;
}

.tb-contact-info__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Contact Cards */
.tb-contact-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.3s ease;
}

.tb-contact-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tb-contact-card__icon {
    color: var(--tb-accent-color);
    margin-bottom: 1.5rem;
}

.tb-contact-card__icon svg {
    width: 40px;
    height: 40px;
}

.tb-contact-card h3 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--tb-heading-color);
    margin: 0 0 0.75rem 0;
}

.tb-contact-card__description {
    font-size: 0.95rem;
    color: #777;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.tb-contact-card__link {
    display: inline-block;
    color: var(--tb-heading-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--tb-accent-color);
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.tb-contact-card__link:hover {
    color: var(--tb-accent-color);
}

.tb-contact-card__address {
    font-style: normal;
    color: var(--tb-heading-color);
    line-height: 1.6;
}

.tb-contact-card__hours {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
}

.tb-contact-card__days {
    color: #777;
    font-size: 0.95rem;
}

.tb-contact-card__time {
    font-weight: 600;
    color: var(--tb-heading-color);
    font-size: 1.1rem;
}

/* Map Section */
.tb-contact-map {
    width: 100%;
    height: 450px;
    background-color: #f0f0f0;
}

.tb-contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* Contact Form Section */
.tb-contact-form-section {
    padding: 5rem 2rem;
    background-color: #f9f7f4;
}

.tb-contact-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.tb-contact-form-container h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    color: var(--tb-heading-color);
    margin: 0 0 1rem 0;
}

.tb-contact-form__intro {
    text-align: center;
    color: #666;
    margin: 0 0 2.5rem 0;
    line-height: 1.6;
}

.tb-contact-form {
    background-color: #fff;
    padding: 2.5rem;
    border: 1px solid #e5e5e5;
}

.tb-contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.tb-contact-form__field {
    margin-bottom: 1.5rem;
}

.tb-contact-form__field label {
    display: block;
    font-size: 0.95rem;
    color: var(--tb-heading-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.tb-contact-form__field input[type="text"],
.tb-contact-form__field input[type="email"],
.tb-contact-form__field select,
.tb-contact-form__field textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1rem;
    border: 1px solid #ddd;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.tb-contact-form__field input:focus,
.tb-contact-form__field select:focus,
.tb-contact-form__field textarea:focus {
    outline: none;
    border-color: var(--tb-accent-color);
}

.tb-contact-form__field textarea {
    resize: vertical;
    min-height: 150px;
}

.tb-contact-form__field--checkbox {
    margin-bottom: 2rem;
}

.tb-contact-form__field--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 400;
    cursor: pointer;
}

.tb-contact-form__field--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.tb-contact-form__field--checkbox span {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.tb-contact-form__submit {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--tb-primary-color);
    color: #fff;
    border: none;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tb-contact-form__submit:hover {
    background-color: #333;
}

/* Contact Page Responsive */
@media (max-width: 991px) {
    .tb-contact-hero {
        padding: 4rem 2rem;
    }

    .tb-contact-hero__title {
        font-size: 2.5rem;
    }

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

    .tb-contact-map {
        height: 350px;
    }
}

@media (max-width: 575px) {
    .tb-contact-hero {
        padding: 3rem 1.5rem;
    }

    .tb-contact-hero__title {
        font-size: 2rem;
    }

    .tb-contact-hero__subtitle {
        font-size: 1.05rem;
    }

    .tb-contact-info {
        padding: 3rem 1.5rem;
    }

    .tb-contact-info__title {
        font-size: 1.75rem;
    }

    .tb-contact-info__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tb-contact-map {
        height: 280px;
    }

    .tb-contact-form-section {
        padding: 3rem 1.5rem;
    }

    .tb-contact-form-container h2 {
        font-size: 1.75rem;
    }

    .tb-contact-form {
        padding: 1.5rem;
    }

    .tb-contact-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   Mobile Floating Cart Button
   ========================================================================== */

/* Hide on desktop */
.tb-mobile-cart {
    display: none;
}

/* Show on mobile */
@media (max-width: 768px) {
    .tb-mobile-cart {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
    }

    .tb-mobile-cart-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: #1a1a1a;
        color: #fff;
        padding: 0.6rem 1.25rem;
        border-radius: 50px;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 400;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        position: relative;
    }

    .tb-mobile-cart-link:hover {
        background: #000;
        color: #fff;
    }

    .tb-mobile-cart-link i {
        font-size: 1rem;
    }

    .tb-mobile-cart-total {
        color: #fff;
    }

    .tb-mobile-cart-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #fff;
        color: #1a1a1a;
        font-size: 0;
        font-weight: 600;
        min-width: 24px;
        height: 24px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        overflow: hidden;
    }

    .tb-mobile-cart-count::before {
        content: attr(data-count);
        font-size: 0.75rem;
        font-weight: 600;
        color: #1a1a1a;
    }

    /* Hide Storefront's handheld footer bar */
    .storefront-handheld-footer-bar {
        display: none !important;
    }
}
