/*
Theme Name: Floyds Office Furniture
Description: Custom WordPress theme for Floyds Office Furniture — a friendly, local, premium office furniture retailer. Supports ACF and WooCommerce.
Version: 1.1.0
Author: Silo Media
Text Domain: upstandesk
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

This theme supports WooCommerce and Advanced Custom Fields.
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Layout */
    --border-radius: 12px;
    --border-radius-small: 6px;
    --background-light: #f8f9fa;
    --grid-gap: 2.25rem;
    --subtle-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    
    /* Primary Color Palette - Floyds Blue (#446084) */
    --primary-50:  #f1f5fa;
    --primary-100: #e1eaf3;
    --primary-200: #c3d4e6;
    --primary-300: #9bb5d2;
    --primary-400: #7596bb;
    --primary-500: #5779a3;
    --primary-600: #466789;
    --primary-700: #446084; /* Brand primary */
    --primary-800: #364d6b;
    --primary-900: #2a3b53;
    --primary-950: #1a2535;

    /* Typography Scale (using clamp for fluid sizing) */
    --font-size-xs: clamp(0.75rem, 0.25vw + 0.7rem, 0.8125rem);      /* 12-13px */
    --font-size-sm: clamp(0.8125rem, 0.25vw + 0.75rem, 0.875rem);    /* 13-14px */
    --font-size-base: clamp(0.9375rem, 0.25vw + 0.875rem, 1rem);     /* 15-16px */
    --font-size-md: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);         /* 16-18px */
    --font-size-lg: clamp(1.0625rem, 0.5vw + 1rem, 1.1875rem);       /* 17-19px */
    --font-size-xl: clamp(1.125rem, 0.75vw + 1rem, 1.375rem);        /* 18-22px */
    --font-size-2xl: clamp(1.5rem, 1vw + 1rem, 1.75rem);            /* 24-28px */
    --font-size-3xl: clamp(1.875rem, 1.5vw + 1rem, 2.25rem);        /* 30-36px */
    --font-size-4xl: clamp(2.25rem, 2vw + 1rem, 2.75rem);          /* 36-44px */
    
    /* Heading Sizes */
    --font-size-h6: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);         /* 16-18px */
    --font-size-h5: clamp(1.125rem, 0.75vw + 0.875rem, 1.375rem);    /* 18-22px */
    --font-size-h4: clamp(1.25rem, 1vw + 0.875rem, 1.625rem);        /* 20-26px */
    --font-size-h3: clamp(1.375rem, 1.5vw + 0.75rem, 1.875rem);      /* 22-30px */
    --font-size-h2: clamp(1.75rem, 2.5vw + 0.75rem, 2.75rem);        /* 28-44px */
    --font-size-h1: clamp(2rem, 3.5vw + 1rem, 3.5rem);               /* 32-56px */
    
    /* Display/Hero Sizes */
    --font-size-display: clamp(2.5rem, 4vw + 1rem, 4rem);            /* 40-64px */

    /* Base font size for html */
    font-size: 15px;
}

/* ============================================
   GLOBAL BUTTON SYSTEM
   ============================================ */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-md);
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    
    /* Primary Button */
    &.button-primary {
        background: var(--primary-700);
        color: #fff;
        border-color: var(--primary-700);
        
        &:hover {
            background: var(--primary-800);
            border-color: var(--primary-800);
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-700) 30%, transparent);
        }
        
        &:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-700) 40%, transparent);
        }
    }
    
    /* Primary Outline Button */
    &.button-primary-outline {
        background: transparent;
        color: var(--primary-700);
        border-color: var(--primary-700);
        
        &:hover {
            background: var(--primary-700);
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-700) 30%, transparent);
        }
        
        &:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-700) 40%, transparent);
        }
    }
    
    /* Secondary Button */
    &.button-secondary {
        background: transparent;
        color: inherit;
        border-color: currentColor;
        
        &:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        &:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }
    }
    
    /* Button Sizes */
    &.button-small {
        padding: 0.75rem 1.5rem;
        font-size: var(--font-size-sm);
    }
    
    &.button-large {
        padding: 1.25rem 2.5rem;
        font-size: var(--font-size-lg);
    }
}

/* Button Groups */
.button-group {
    display: flex;
    gap: calc(var(--grid-gap) / 2);
    flex-wrap: wrap;
    
    &.button-group-center {
        justify-content: center;
    }
    
    &.button-group-start {
        justify-content: flex-start;
    }
    
    &.button-group-end {
        justify-content: flex-end;
    }
}

/* Button spacing in content */
.button + .button {
    margin-left: 1rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: #1d1d1d;
    background-color: #f5f5f5;
    overflow-x: hidden;
    position: relative;
    text-wrap: pretty;
}

/* Grid background removed for cleaner look */

/* ============================================
   GLOBAL TYPOGRAPHY
   ============================================ */

h1 {
    font-size: var(--font-size-h1);
    line-height: 1.2;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
}

h2 {
    font-size: var(--font-size-h2);
    line-height: 1.25;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2rem 0 1.5rem;
}

h2:first-child,
.content-block-content h2:first-child,
.entry-content h2:first-child {
    margin-top: 0;
}

h3 {
    font-size: var(--font-size-h3);
    line-height: 1.3;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--primary-800);
}

/* Remove h3 top margin when following h2 */
h2 + h3 {
    margin-top: 0;
}

h4 {
    font-size: var(--font-size-h4);
    line-height: 1.4;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: #1a1a1a;
}

h5 {
    font-size: var(--font-size-h5);
    line-height: 1.4;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: #1a1a1a;
}

h6 {
    font-size: var(--font-size-h6);
    line-height: 1.5;
    font-weight: 600;
    margin: 1.25rem 0 0.75rem;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    font-size: var(--font-size-md);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    
    .button {
        margin-top: calc(var(--grid-gap) / 2.5);
    }
}

ul, ol {
    font-size: var(--font-size-md);
    line-height: 1.6;
}

p.lead {
    font-size: var(--font-size-xl);
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #272727;
}

/* ============================================
   DEFAULT LINK STYLES
   ============================================ */
/* Links inherit color by default to not interfere with nav, buttons, etc. */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Content links get primary color */
.entry-content a:not(.button):not(.wp-block-button__link),
.single-post-content a:not(.button),
article p a,
article li a {
    color: var(--primary-800);
    text-decoration: none;
}

.entry-content a:not(.button):not(.wp-block-button__link):hover,
.single-post-content a:not(.button):hover,
article p a:hover,
article li a:hover {
    color: var(--primary-600);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 clamp(20px, 3vw, 48px);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: #000;
    color: #fff;
    padding: 0.5rem 0;
    font-size: var(--font-size-sm);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar-social a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar-social a:hover {
    color: var(--primary-400);
}

.top-bar-social .material-symbols-rounded {
    font-size: var(--font-size-base);
}

.top-bar-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

.top-bar-social svg path {
    fill: currentColor;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
}

.top-bar-contact .material-symbols-rounded {
    font-size: var(--font-size-base);
    line-height: 1;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
}

.top-bar-contact .material-symbols-rounded {
    font-size: var(--font-size-base);
}

.top-bar-divider {
    color: rgba(255, 255, 255, 0.25);
    font-size: var(--font-size-xs);
    margin: 0 0.25rem;
}

.top-bar-address {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-bar-address:hover {
    color: #fff;
}

.top-bar-address .material-symbols-rounded {
    font-size: var(--font-size-base);
    line-height: 1;
}

@media (max-width: 900px) {
    .top-bar-address,
    .top-bar-divider {
        display: none;
    }
}

@media (max-width: 500px) {
    .top-bar {
        display: none;
    }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: none !important;
    background-color: transparent !important;
    position: relative;
    z-index: 100;
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 1.5rem 0;
    gap: var(--grid-gap);
}

/* Left: Site Branding */
.site-branding {
    justify-self: start;
    display: flex;
    align-items: center;
}

.site-title {
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

.site-title a {
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #333;
}

.site-header .site-branding img {
    height: 64px;
    width: auto;
    max-width: 280px;
    display: block;
    transition: opacity 0.3s ease;
}

.site-header .site-branding img:hover {
    opacity: 0.8;
}

/* Center: Navigation */
.main-navigation {
    justify-self: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: var(--font-size-md);
    padding: 0.75rem 0;
    transition: color 0.3s ease;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-700);
    transition: width 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--primary-700);
}

.main-navigation a:hover::after,
.main-navigation a:focus::after {
    width: 100%;
}

.main-navigation li.current-menu-item a::after,
.main-navigation li.current-menu-ancestor a::after {
    width: 100%;
}

.main-navigation li.current-menu-item a,
.main-navigation li.current-menu-ancestor a {
    color: var(--primary-700);
}

/* Right: Header Actions */
.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile Menu Toggle (Hidden by default) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #000;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    background: #f5f5f5;
    color: var(--primary-700);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 18px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger animation when menu is open */
.mobile-menu-open .mobile-menu-toggle .hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-open .mobile-menu-toggle .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .mobile-menu-toggle .hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.search-toggle,
.account-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-toggle:hover,
.search-toggle:focus,
.account-link:hover,
.account-link:focus {
    background: #f5f5f5;
    color: var(--primary-700);
}

.search-toggle .material-symbols-rounded,
.account-link .material-symbols-rounded,
.cart-link .material-symbols-rounded {
    font-size: var(--font-size-2xl);
}

/* Header Cart */
.header-cart {
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #000;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.cart-link:hover,
.cart-link:focus {
    background: #f5f5f5;
    color: var(--primary-700);
}


.cart-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: var(--font-size-sm);
    line-height: 1.2;
}

.cart-count {
    font-weight: 600;
    color: #000;
}

.cart-total {
    color: #000;
    font-size: var(--font-size-xs);
}

/* ============================================
   FULL SCREEN SEARCH OVERLAY
   ============================================ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 1.5rem;
    overflow-y: auto;
}

.search-overlay-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.search-overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.search-overlay-close .material-symbols-rounded {
    font-size: var(--font-size-xl);
}

.search-overlay-content {
    width: 100%;
    max-width: 700px;
    padding-top: 3rem;
}

.search-overlay-title {
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 600;
    text-align: center;
    margin: 0 0 2rem 0;
    opacity: 0.9;
}

/* Search Input */
.search-overlay-form {
    margin-bottom: 2rem;
}

.search-overlay-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.search-overlay-input-wrapper .search-icon {
    position: absolute;
    left: 1.25rem;
    color: #9ca3af;
    font-size: var(--font-size-lg);
    pointer-events: none;
}

.search-overlay-input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    border: none;
    font-size: var(--font-size-md);
    background: transparent;
    color: #1a1a1a;
}

.search-overlay-input:focus {
    outline: none;
}

.search-overlay-input::placeholder {
    color: #9ca3af;
}

/* Search Results Container */
.search-overlay-results {
    background: #fff;
    border-radius: var(--border-radius);
    min-height: 200px;
    max-height: 50vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Placeholder & Loading States */
.search-results-placeholder,
.search-results-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    color: #9ca3af;
}

.search-results-placeholder .material-symbols-rounded,
.search-results-loading .material-symbols-rounded {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.search-results-placeholder p,
.search-results-loading p {
    margin: 0;
    font-size: var(--font-size-base);
}

/* Loading Spinner */
.search-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--primary-700);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Sections */
.search-results-section {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.search-results-section:last-of-type {
    border-bottom: none;
}

.search-results-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
}

.search-results-heading .material-symbols-rounded {
    font-size: var(--font-size-md);
}

/* Category Results */
.search-results-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-result-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-50);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-result-category:hover {
    background: var(--primary-100);
    transform: translateY(-1px);
}

.search-result-category .category-name {
    font-weight: 600;
    color: var(--primary-800);
    font-size: var(--font-size-sm);
}

.search-result-category .category-count {
    font-size: var(--font-size-xs);
    color: var(--primary-600);
}

/* Product Results */
.search-results-products {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-result-product {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-result-product:hover {
    background: #f9fafb;
}

.search-result-product .product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius-small);
    flex-shrink: 0;
}

.search-result-product .product-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.search-result-product .product-title {
    font-weight: 600;
    color: #1a1a1a;
    font-size: var(--font-size-base);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-product .product-price {
    font-size: var(--font-size-sm);
    color: var(--primary-700);
    font-weight: 600;
}

.search-result-product .product-price .contact-for-price {
    font-size: var(--font-size-xs);
    font-style: italic;
    color: var(--primary-600);
}

/* View All Results Link */
.search-results-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.view-all-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-700);
    color: #fff;
    text-decoration: none;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
}

.view-all-results:hover {
    background: var(--primary-800);
    color: #fff;
}

.view-all-results .material-symbols-rounded {
    font-size: var(--font-size-md);
}

/* Search Overlay Footer */
.search-overlay-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.search-overlay-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-sm);
    margin: 0;
}

.search-overlay-footer kbd {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: inherit;
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0.15rem;
}

/* Body state when search is open */
body.search-open {
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-overlay-inner {
        padding: 3vh 1rem;
    }
    
    .search-overlay-content {
        padding-top: 4rem;
    }
    
    .search-overlay-close {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
    
    .search-overlay-input {
        font-size: var(--font-size-base);
        padding: 1rem 1rem 1rem 3rem;
    }
    
    .search-overlay-input-wrapper .search-icon {
        left: 1rem;
        font-size: var(--font-size-xl);
    }
    
    .search-result-product .product-thumb {
        width: 50px;
        height: 50px;
    }
    
    .search-overlay-footer {
        display: none;
    }
}

/* ============================================
   GENERAL SEARCH FORM (for sidebar/other areas)
   ============================================ */
.search-form {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
}

.search-form label {
    flex: 1;
    margin: 0;
}

.search-form .search-field {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #ddd;
    font-size: var(--font-size-base);
    background: #fff;
    border-radius: 8px 0 0 8px;
    transition: all 0.3s ease;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--primary-700);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-700) 15%, transparent);
}

.search-form .search-submit {
    background: var(--primary-700);
    border: 2px solid var(--primary-700);
    color: #fff;
    padding: 0.875rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: var(--font-size-base);
    border-radius: 0 8px 8px 0;
    white-space: nowrap;
}

.search-form .search-submit:hover {
    background: var(--primary-800);
    border-color: var(--primary-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-700) 25%, transparent);
}

.search-form .search-submit .material-symbols-rounded {
    font-size: var(--font-size-lg);
}

/* WordPress Block Search Form */
.wp-block-search {
    position: relative;
}

.wp-block-search__inside-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wp-block-search__input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #ddd;
    font-size: var(--font-size-base);
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.wp-block-search__input:focus {
    outline: none;
    border-color: var(--primary-700);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-700) 15%, transparent);
}

.wp-block-search__button {
    background: var(--primary-700);
    border: 2px solid var(--primary-700);
    color: #fff;
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: var(--font-size-base);
    border-radius: 8px;
    width: 100%;
    margin: 0;
}

.wp-block-search__button:hover {
    background: var(--primary-800);
    border-color: var(--primary-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-700) 25%, transparent);
}

/* Hide the label visually but keep it for screen readers */
.wp-block-search__label.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-width: 0;
}

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

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

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-open .mobile-menu-container {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e1e1e1;
    background: #f9f9f9;
    min-height: 60px;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
}

.mobile-menu-logo img {
    height: 32px;
    width: auto;
    display: block;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
    flex-shrink: 0;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
    background: #e1e1e1;
    color: var(--primary-700);
}

.mobile-menu-close .material-symbols-rounded {
    font-size: var(--font-size-xl);
}

.mobile-navigation {
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
}

.mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-navigation li {
    margin: 0;
    border-bottom: 1px solid #f1f1f1;
}

.mobile-navigation a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: var(--font-size-md);
    transition: all 0.3s ease;
}

.mobile-navigation a:hover,
.mobile-navigation a:focus {
    background: #f9f9f9;
    color: var(--primary-700);
    padding-left: 2rem;
}

/* Mobile Menu Top Bar Info */
.mobile-menu-topbar {
    padding: 1.5rem;
    border-top: 1px solid #e1e1e1;
}

.mobile-menu-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: var(--font-size-base);
}

.mobile-menu-contact .material-symbols-rounded {
    font-size: var(--font-size-lg);
    color: var(--primary-700);
}

.mobile-menu-contact a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.mobile-menu-contact a:hover {
    color: var(--primary-700);
}

/* Mobile Menu Search */
.mobile-menu-search {
    padding: 1.5rem;
    border-top: 1px solid #e1e1e1;
    background: #f9f9f9;
}

.mobile-menu-search .search-form {
    margin: 0;
    display: block;
}

.mobile-menu-search .search-form label {
    width: 100%;
    display: block;
    margin: 0;
}

.mobile-menu-search .search-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: var(--font-size-base);
    background: #fff;
    display: block;
    box-sizing: border-box;
}

.mobile-menu-search .search-field:focus {
    outline: none;
    border-color: var(--primary-700);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-700) 10%, transparent);
}

.mobile-menu-search .search-submit {
    display: none;
}

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

/* ============================================
   CATEGORIES MENU - Sub Navigation
   ============================================ */
.categories-menu-wrapper {
    background: var(--primary-800);
    border-top: 1px solid var(--primary-900);
    border-bottom: 1px solid var(--primary-900);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 500;
}

/* Remove margin-bottom on archive pages so hero banner sits flush */
.woocommerce-page .categories-menu-wrapper {
    margin-bottom: 0;
    border-bottom: none;
}

/* Remove margin and breadcrumbs on flexible content pages so hero sits flush under header */
.has-flexible-content .categories-menu-wrapper {
    margin-bottom: 0;
}

.has-flexible-content .breadcrumbs-wrapper {
    display: none;
}

.categories-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
}

.categories-navigation > ul {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    text-wrap: balance;
}

.categories-navigation > ul > li {
    margin: 0;
    padding: 0;
}

.categories-navigation > ul > li > a {
    display: block;
    padding: 0.6rem 1.15rem;
    color: #fff;
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.categories-navigation > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-300);
    transition: width 0.3s ease;
}

.categories-navigation > ul > li > a:hover {
    background: var(--primary-700);
    color: #fff;
}

.categories-navigation > ul > li > a:hover::after {
    width: 60%;
}

.categories-navigation > ul > li.current-menu-item > a,
.categories-navigation > ul > li.current-menu-ancestor > a {
    background: var(--primary-700);
}

.categories-navigation > ul > li.current-menu-item > a::after,
.categories-navigation > ul > li.current-menu-ancestor > a::after {
    width: 60%;
}

/* Categories Menu Responsive */
@media (max-width: 1400px) {
    .categories-navigation > ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .categories-navigation > ul > li > a {
        padding: 0.6rem 1.25rem;
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 768px) {
    .categories-navigation > ul > li > a {
        padding: 0.5rem 1rem;
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 520px) {
    .categories-navigation > ul {
        padding: 0.25rem 0;
    }

    .categories-navigation > ul > li > a {
        padding: 0.3rem 0.6rem;
        font-size: var(--font-size-xs);
    }
}

/* Categories Dropdown - Desktop 1220px+ */
@media (min-width: 1220px) {
    .categories-navigation > ul > li {
        position: relative;
    }

    /* Caret for items with sub-menus */
    .categories-navigation > ul > li.menu-item-has-children > a {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.6rem 1.15rem;
    }

    .categories-navigation > ul > li.menu-item-has-children > a::before {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 3.5px solid transparent;
        border-right: 3.5px solid transparent;
        border-top: 4px solid rgba(255, 255, 255, 0.6);
        transition: transform 0.25s ease, border-color 0.25s ease;
        order: 1;
        flex-shrink: 0;
    }

    .categories-navigation > ul > li.menu-item-has-children:hover > a::before {
        transform: rotate(180deg);
        border-top-color: #fff;
    }

    /* Dropdown sub-menu */
    .categories-navigation > ul > li > .sub-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%) translateY(6px);
        min-width: 230px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
        list-style: none;
        margin: 0;
        padding: 0.5rem 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 600;
        display: flex;
        flex-direction: column;
    }

    /* Triangle arrow connecting dropdown to nav */
    .categories-navigation > ul > li > .sub-menu::before {
        content: '';
        position: absolute;
        top: -6px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-bottom: 6px solid #fff;
        filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.04));
    }

    /* Invisible bridge so hover doesn't break crossing the gap */
    .categories-navigation > ul > li > .sub-menu::after {
        content: '';
        position: absolute;
        top: -14px;
        left: 0;
        right: 0;
        height: 14px;
    }

    .categories-navigation > ul > li:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .categories-navigation > ul > li > .sub-menu > li {
        margin: 0;
        padding: 0;
    }

    .categories-navigation > ul > li > .sub-menu > li > a {
        display: block;
        padding: 0.55rem 1.25rem;
        color: #374151;
        font-size: 0.875rem;
        font-weight: 500;
        white-space: nowrap;
        transition: background 0.15s ease, color 0.15s ease;
        line-height: 1.4;
    }

    .categories-navigation > ul > li > .sub-menu > li > a::after {
        display: none;
    }

    .categories-navigation > ul > li > .sub-menu > li > a:hover {
        background: var(--primary-50);
        color: var(--primary-800);
    }

    .categories-navigation > ul > li > .sub-menu > li.current-menu-item > a {
        background: var(--primary-50);
        color: var(--primary-800);
        font-weight: 600;
    }
}

/* Hide sub-menus below 1220px (flat list) */
@media (max-width: 1219px) {
    .categories-navigation .sub-menu {
        display: none !important;
    }
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs-wrapper {
    padding: 1rem 0;
    font-size: var(--font-size-sm);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: var(--font-size-sm);
}

.breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: inherit;
}

.breadcrumb-item a:hover {
    color: var(--primary-700);
}

.breadcrumb-item:last-child {
    color: #1a1a1a;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #d1d5db;
    margin: 0 0.25rem;
    font-size: var(--font-size-sm);
}

/* Hide WooCommerce breadcrumbs */
.woocommerce-breadcrumb {
    display: none !important;
}

/* Main Content */
.site-main {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Footer */
.site-footer {
    background: #f8f8f8;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Responsive */
/* Tablet and below - Show hamburger menu */
@media (max-width: 1100px) {
    /* Hide desktop navigation */
    .main-navigation {
        display: none;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide desktop search toggle - search will be in mobile menu */
    .search-toggle {
        display: none;
    }
    
    /* Hide cart details text on smaller screens */
    .cart-details {
        display: none;
    }
    
    .cart-link .material-symbols-rounded {
        margin: 0;
    }
}

/* ============================================
   WOOCOMMERCE STYLES (Legacy)
   Note: Primary WooCommerce styles are in css/woocommerce.css
   These are fallback/additional styles - woocommerce.css loads after
   this file and takes precedence for any duplicates
   ============================================ */

/* WooCommerce Basic Styling */
.woocommerce .star-rating {
    color: var(--primary-700);
}

.woocommerce .price {
    font-weight: bold;
    color: #000;
}

/* WooCommerce Pagination */
.woocommerce nav.woocommerce-pagination,
.woocommerce-pagination {
    margin: 4rem 0 3rem 0;
    text-align: center;
    clear: both;
    display: block;
    width: 100%;
}

.woocommerce nav.woocommerce-pagination ul,
.woocommerce-pagination ul.page-numbers {
    list-style: none !important;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap;
    border: none !important;
    background: none !important;
}

.woocommerce nav.woocommerce-pagination ul li,
.woocommerce-pagination ul.page-numbers li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0.75rem 1rem !important;
    border: 2px solid #ddd !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    color: #333 !important;
    font-weight: 500;
    font-size: var(--font-size-base) !important;
    transition: all 0.3s ease;
    background: #fff !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce-pagination a.page-numbers:hover {
    border-color: var(--primary-700) !important;
    color: #fff !important;
    background: var(--primary-700) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--primary-700) 30%, transparent) !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce-pagination span.page-numbers.current {
    background: var(--primary-700) !important;
    border-color: var(--primary-700) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-700) 35%, transparent) !important;
    transform: scale(1.05);
}

.woocommerce nav.woocommerce-pagination ul li a.next,
.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce-pagination .page-numbers.next,
.woocommerce-pagination .page-numbers.prev {
    font-weight: 700 !important;
    font-size: var(--font-size-lg) !important;
    padding: 0.75rem 1.25rem !important;
}

.woocommerce nav.woocommerce-pagination ul li span.dots,
.woocommerce-pagination .page-numbers.dots {
    border: none !important;
    background: none !important;
    pointer-events: none;
    box-shadow: none !important;
    color: #999 !important;
}

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

/* Hide sidebar on single product pages */
.single-product #secondary {
    display: none;
}

.single-product .site-main {
    max-width: 100%;
}

/* Single Product Wrapper - 1/3 and 2/3 layout */
.single-product-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.single-product-images,
.single-product-summary {
    position: relative;
}

/* Product Feature Box - Short Description */
.product-feature-box {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border: 1px solid var(--primary-200);
    border-left: 4px solid var(--primary-700);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--primary-900);
}

.product-feature-box p {
    margin: 0;
    font-size: var(--font-size-base);
}

.product-feature-box p:not(:last-child) {
    margin-bottom: 0.75rem;
}

.product-feature-box ul,
.product-feature-box ol {
    margin: 0.5rem 0 0.5rem 1.5rem;
    padding: 0;
    font-size: var(--font-size-sm);
}

.product-feature-box li {
    margin-bottom: 0.35rem;
}

.product-feature-box strong {
    color: var(--primary-800);
}

/* Contact Us CTA for non-purchasable products */
.product-contact-cta {
    background: #fff;
    border: 2px solid var(--primary-200);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    text-align: center;
}

.product-contact-cta .contact-cta-text {
    font-size: var(--font-size-base);
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-contact-cta .button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.product-contact-cta .button .material-symbols-rounded {
    font-size: var(--font-size-lg);
}

/* Gallery Images - full width */
.woocommerce div.product div.images {
    width: 100% !important;
    float: none !important;
}

.woocommerce div.product div.images img {
    border-radius: var(--border-radius);
}

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

/* Product Title */
.woocommerce div.product .product_title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    color: #1a1a1a;
}

/* Product Price */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--primary-700);
    margin: 0 0 1.5rem !important;
}

/* Contact for pricing on single product */
.woocommerce div.product p.price .contact-for-price,
.woocommerce div.product span.price .contact-for-price {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary-800);
    font-style: italic;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
    opacity: 0.5;
    font-size: 0.8em;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    text-decoration: none;
    color: var(--primary-700);
}

/* Product Description - smaller text below */
.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: var(--font-size-sm);
    line-height: 1.7;
    color: #374151;
    margin: 1.5rem 0;
}

.woocommerce div.product .woocommerce-product-details__short-description strong,
.woocommerce div.product .woocommerce-product-details__short-description b {
    color: var(--primary-700);
    font-weight: 700;
}

.woocommerce div.product .woocommerce-product-details__short-description ul {
    margin: 1em 0 1em 2em;
    padding: 0;
    list-style: disc;
}

.woocommerce div.product .woocommerce-product-details__short-description ol {
    margin: 1em 0 1em 2em;
    padding: 0;
    list-style: decimal;
}

.woocommerce div.product .woocommerce-product-details__short-description li {
    margin-bottom: 0.5em;
}

/* Add to Cart Form */
.woocommerce div.product form.cart {
    display: block;
    margin: 2rem 0;
}

.woocommerce div.product form.cart::before {
    display: none !important;
}

/* Variations Table */
.woocommerce div.product form.cart .variations {
    margin-bottom: 1.5rem;
    border: none !important;
    width: 100%;
}

.woocommerce div.product form.cart .variations tbody {
    display: block;
}

.woocommerce div.product form.cart .variations tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    border: none !important;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
    display: block;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.woocommerce div.product form.cart .variations label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
    font-size: var(--font-size-sm);
}

.woocommerce div.product form.cart .variations select {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-small);
    font-size: var(--font-size-base);
    background: #fff;
    cursor: pointer;
}

.woocommerce div.product form.cart .variations select:focus {
    border-color: var(--primary-700);
    outline: none;
}

.woocommerce div.product form.cart .reset_variations {
    color: var(--primary-700);
    text-decoration: none;
    font-size: var(--font-size-sm);
    display: inline-block;
    margin-top: 0.5rem;
}

.woocommerce div.product form.cart .reset_variations:hover {
    text-decoration: underline;
}

/* Quantity and Button Row - Flexbox Container */
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.woocommerce div.product form.cart .quantity {
    margin: 0 !important;
    float: none !important;
}

.woocommerce div.product form.cart .quantity .qty {
    width: 80px;
    height: 52px;
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-small);
    text-align: center;
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
    height: 52px;
    padding: 0.75rem 2rem;
    font-size: var(--font-size-md);
    font-weight: 600;
    border-radius: var(--border-radius-small);
    margin: 0 !important;
    float: none !important;
    flex-shrink: 0;
}

/* Disabled Button */
.woocommerce div.product form.cart button.single_add_to_cart_button:disabled,
.woocommerce div.product form.cart button.single_add_to_cart_button.disabled {
    background-color: #9ca3af !important;
    color: #fff !important;
    border-color: #9ca3af !important;
    opacity: 0.6;
    cursor: not-allowed;
}

/* WooCommerce button overrides moved to woocommerce.css */

/* Gallery thumbnails - cleaner grid */
.woocommerce div.product div.images .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.75rem !important;
    margin-top: 1rem !important;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    margin: 0 !important;
    width: 100% !important;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    opacity: 0.6;
    transition: opacity 0.2s ease;
    border: 2px solid transparent;
    border-radius: var(--border-radius-small);
}

.woocommerce div.product div.images .flex-control-thumbs li img:hover,
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
    opacity: 1;
    border-color: var(--primary-700);
}

/* Product tabs styling */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-bottom: 2px solid #e5e7eb;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--primary-700);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--primary-700);
    border-bottom-color: var(--primary-700);
}

.woocommerce div.product .woocommerce-tabs .panel {
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #1a1a1a;
}

/* Description tab - smaller text */
.woocommerce div.product .woocommerce-tabs #tab-description {
    font-size: var(--font-size-sm);
    line-height: 1.7;
    color: #4b5563;
}

.woocommerce div.product .woocommerce-tabs #tab-description p {
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
}

.woocommerce div.product .woocommerce-tabs #tab-description ul,
.woocommerce div.product .woocommerce-tabs #tab-description ol {
    font-size: var(--font-size-sm);
    margin: 1rem 0 1rem 1.5rem;
}

/* Related Products */
.woocommerce .related.products {
    clear: both;
    margin-top: 3rem;
    padding-top: 3rem;
}

.woocommerce .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--grid-gap) !important;
    border-top: 0 !important;
    padding-top: 0 !important;
}

/* Responsive Single Product */
@media (max-width: 968px) {
    .single-product-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile thumbnails */
@media (max-width: 600px) {
    .woocommerce div.product div.images .flex-control-thumbs {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Composite Products styling */
.woocommerce div.product .composite_data {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.woocommerce div.product .composite_data .component {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f3f4f6;
}

.woocommerce div.product .composite_data .component:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.woocommerce div.product .composite_data .component_title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 1rem;
}

.woocommerce div.product .composite_data .component_options {
    display: grid;
    gap: 1rem;
}

.woocommerce div.product .composite_data .component_option_thumbnail {
    max-width: 80px;
    border-radius: var(--border-radius-small);
}

/* Composite error/notice messages */
.woocommerce div.product .cp_clearfix {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: var(--border-radius-small);
    font-size: var(--font-size-sm);
}

/* Product meta (SKU, Categories, Tags) */
.woocommerce div.product .product_meta {
    padding: 1.5rem 0;
    margin: 1.5rem 0 0;
    border-top: 1px solid #e5e7eb;
    font-size: var(--font-size-sm);
}

.woocommerce div.product .product_meta > span {
    display: block;
    margin-bottom: 0.75rem;
    color: #6b7280;
}

.woocommerce div.product .product_meta > span:last-child {
    margin-bottom: 0;
}

.woocommerce div.product .product_meta .sku_wrapper,
.woocommerce div.product .product_meta .posted_in,
.woocommerce div.product .product_meta .tagged_as {
    line-height: 1.6;
}

.woocommerce div.product .product_meta a {
    color: var(--primary-700);
    text-decoration: none;
}

.woocommerce div.product .product_meta a:hover {
    text-decoration: underline;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .woocommerce nav.woocommerce-pagination ul,
    .woocommerce-pagination ul.page-numbers {
        gap: 0.5rem;
    }
    
    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span,
    .woocommerce-pagination .page-numbers {
        min-width: 42px !important;
        min-height: 42px !important;
        padding: 0.625rem 0.875rem !important;
        font-size: var(--font-size-sm) !important;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-700);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: var(--font-size-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top .material-symbols-rounded {
    font-size: var(--font-size-lg);
}

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

.back-to-top:hover {
    background: var(--primary-800);
}

/* Entry Content Styling */
.entry-content {
    margin: 2rem 0;
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 2rem 0 1rem;
    line-height: 1.3;
    color: #000;
}

.entry-content p {
    margin-bottom: 1rem;
    margin-top: 0;
    color: #000;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1rem 0;
    padding-left: 2rem;
    font-size: var(--font-size-md);
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1rem 2rem;
    border-left: 4px solid var(--primary-700);
    background: #f8f8f8;
    font-style: italic;
}

/* Entry Meta */
.entry-meta {
    color: #000;
    font-size: var(--font-size-sm);
    margin: 1rem 0;
}

.entry-meta a {
    color: #000;
    text-decoration: none;
}

.entry-meta a:hover {
    color: var(--primary-700);
}

/* Featured Image */
.entry-featured-image {
    margin: 2rem 0;
}

.entry-featured-image img {
    width: 100%;
    height: auto;
}

/* Hero Section (for ACF blocks) */
.hero-block-wrapper {
    margin: 0 0 calc(var(--grid-gap) * 2) 0;
    /* Full-width: stretch outside the container */
    width: 100%;
    overflow: hidden;
}

/* Features overlap the bottom of the hero */
.hero-block-wrapper + .features-block-wrapper {
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

/* Remove hero bottom margin so the overlap amount is purely the negative margin */
.hero-block-wrapper:has(+ .features-block-wrapper) {
    margin-bottom: 0;
}

.hero-block {
    padding: 14rem 0 16rem;
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    will-change: transform;
    /* Full-width banner: no border-radius */
    border-radius: 0;
    box-shadow: none;
    min-height: 70vh;
}

.hero-block.has-background-image {
    background-attachment: scroll;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
    z-index: 1;
}

/* Inner content container — matches .container padding so left edge aligns with site layout */
.hero-content-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 clamp(20px, 3vw, 48px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 860px;
    margin: 0;
    width: 100%;
    background: rgba(4, 14, 30, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2.5rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--primary-500);
}

.hero-content h1 {
    color: #fff;
    font-size: var(--font-size-display);
}

.hero-title {
    font-size: var(--font-size-display);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

/* Span kept in markup but no longer styled as a highlight */
.hero-title-highlight {
    display: inline;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

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

/* Flexible Content Page Styles */
.flexible-content-page {
    padding: 0;
}



.block-missing {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    margin: 1rem;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-block-wrapper {
        margin: 0 0 var(--grid-gap) 0;
    }
    
    .hero-block {
        padding: 8rem 0 6rem;
        min-height: 55vh;
    }

    .hero-content-container {
        padding: 0 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        padding: 1.75rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero-block-wrapper {
        margin: 0 0 var(--grid-gap) 0;
    }
    
    .hero-block {
        padding: 6rem 0 4rem;
        min-height: 45vh;
    }
    
    .hero-content-container {
        padding: 0 1rem;
    }
}

/* Image Title Block */
.image-title-block-wrapper {
    margin: var(--grid-gap) 0 calc(var(--grid-gap) * 2) 0;
}

/* Reduce bottom margin when followed by features */
.image-title-block-wrapper + .features-block-wrapper {
    margin-top: calc(var(--grid-gap) * -1);
}

.image-title-block {
    padding: 4rem 2rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--subtle-shadow);
}

/* Height variations */
.image-title-block.height-small {
    min-height: 20rem;
}

.image-title-block.height-medium {
    min-height: 30rem;
}

.image-title-block.height-large {
    min-height: 40rem;
}

.image-title-block.has-background-image {
    background-attachment: scroll;
}

.image-title-overlay {
    content: '';
    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));
    z-index: 1;
}

.image-title-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.image-title-title {
    font-size: var(--font-size-display);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.15;
    color: inherit;
}

.image-title-subtitle {
    font-size: var(--font-size-xl);
    line-height: 1.6;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Image Title */
@media (max-width: 768px) {
    .image-title-block-wrapper {
        margin: var(--grid-gap) 0;
    }
    
    .image-title-block {
        padding: 3rem 1.5rem;
    }
    
    .image-title-block.height-small {
        min-height: 16rem;
    }
    
    .image-title-block.height-medium {
        min-height: 24rem;
    }
    
    .image-title-block.height-large {
        min-height: 32rem;
    }
}

@media (max-width: 480px) {
    .image-title-block-wrapper {
        margin: var(--grid-gap) 0;
    }
    
    .image-title-block {
        padding: 2rem 1rem;
    }
    
    .image-title-block.height-small {
        min-height: 14rem;
    }
    
    .image-title-block.height-medium {
        min-height: 20rem;
    }
    
    .image-title-block.height-large {
        min-height: 28rem;
    }
}

/* Content Block Styles */
.content-block-wrapper {
    margin: calc(var(--grid-gap) * 2) 0;
}

.content-block {
    max-width: none;
}

.content-block-content {
    font-size: var(--font-size-md);
    line-height: 1.8;
}

.content-block-content p {
    margin-bottom: 1.25rem;
    margin-top: 0;
    color: #1d1d1d;
}

.content-block-content p:last-child {
    margin-bottom: 0;
}

.content-block-content ul,
.content-block-content ol {
    margin: 0 0 1.25rem 0;
    padding-left: 2rem;
}

.content-block-content ul:last-child,
.content-block-content ol:last-child {
    margin-bottom: 0;
}

.content-block-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary-700);
    background: #f8f8f8;
    font-style: italic;
}

.content-block-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

/* Content Block Split Layout */
.content-block--split .content-block-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--grid-gap) * 2);
    align-items: center;
}

/* Image-right: visually swap columns on desktop */
.content-block--image-right .content-block-image {
    order: 2;
}

.content-block--image-right .content-block-content {
    order: 1;
}

.content-block--split .content-block-image {
    height: 100%;
    min-height: 400px;
}

.content-block--split .content-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin: 0;
    box-shadow: var(--subtle-shadow);
}

.content-block--split .content-block-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Content Block Image Aspect Ratios */
.content-block.aspect-ratio--1-1 .content-block-image {
    aspect-ratio: 1 / 1;
    min-height: unset;
}

.content-block.aspect-ratio--4-3 .content-block-image {
    aspect-ratio: 4 / 3;
    min-height: unset;
}

.content-block.aspect-ratio--3-2 .content-block-image {
    aspect-ratio: 3 / 2;
    min-height: unset;
}

.content-block.aspect-ratio--16-9 .content-block-image {
    aspect-ratio: 16 / 9;
    min-height: unset;
}

.content-block.aspect-ratio--3-4 .content-block-image {
    aspect-ratio: 3 / 4;
    min-height: unset;
}

.content-block[class*="aspect-ratio--"]:not(.aspect-ratio--auto) .content-block-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--subtle-shadow);
}

.content-block[class*="aspect-ratio--"]:not(.aspect-ratio--auto) .content-block-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Split Layout */
@media (max-width: 768px) {
    .content-block--split .content-block-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Reset order on mobile — image is always first in DOM so stacks on top */
    .content-block--image-right .content-block-image,
    .content-block--image-right .content-block-content {
        order: 0;
    }
    
    .content-block--split .content-block-image {
        min-height: 300px;
    }
}

/* Features Block Styles */
.features-block-wrapper {
    margin: var(--grid-gap) 0;
}

.features-block {
    text-align: center;
}

.features-header {
    margin-bottom: 3rem;
}

.features-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.features-subtitle {
    font-size: var(--font-size-lg);
    color: #000;
    max-width: 1040px;
    margin: 1.5rem auto 0;
    line-height: 1.6;
}

.features-subtitle p:first-child {
    font-size: var(--font-size-xl);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--grid-gap);
    width: 100%;
}

.feature-item {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    box-shadow: var(--subtle-shadow);
}

.feature-icon {
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.feature-icon .material-symbols-rounded {
    font-size: var(--font-size-h3);
    color: var(--primary-700);
    display: block;
}

.feature-content {
    width: 100%;
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
}

.feature-subtitle {
    font-size: var(--font-size-base);
    color: #666;
    line-height: 1.5;
}

/* Remove h3 top margin in feature boxes */
.feature-item h3 {
    margin-top: 0;
}

/* Responsive Features */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .features-title {
        font-size: var(--font-size-h3);
    }
    
    .feature-item {
        text-align: center;
        padding: 1.5rem;
    }
    
    .feature-icon {
        align-self: center;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .content-block-wrapper {
        margin: var(--grid-gap) 0;
    }
}

/* Featured Products Section */
.featured-products {
    margin: var(--grid-gap) 0;
}

.featured-products-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(var(--grid-gap) * 0.75);
}

.featured-products-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    margin: 0;
    color: #000;
}

.featured-products-cta {
    background: var(--primary-700);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.featured-products-cta:hover {
    background: var(--primary-800);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.featured-products-cta .material-symbols-rounded {
    font-size: var(--font-size-lg);
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
    width: 100%;
}

/* ============================================
   PRODUCT CARDS - Global Styles
   ============================================ */

.product-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--subtle-shadow);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.product-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
}

.product-card-placeholder {
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 3rem;
    aspect-ratio: 4 / 3;
}

.product-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.product-card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #000;
    padding: 0;
    text-wrap: balance;
    margin-top: 0;
}

.product-card-price {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--primary-700);
    margin-bottom: 1rem;
    padding: 0;
}

/* From price for bundle/composite products */
.product-card-from-price {
    display: block;
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--primary-700);
    margin-bottom: 1rem;
    padding: 0;
}

.product-card-from-price .from-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: #6b7280;
}

/* Contact for pricing style */
.product-card-price .contact-for-price,
.contact-for-price {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary-800);
    font-style: italic;
}

.product-card-button {
    color: #fff;
    background: var(--primary-700);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    margin-top: auto;
}

.product-card-link:hover .product-card-button {
    background: var(--primary-800);
    color: #fff;
    text-decoration: none;
}

/* WooCommerce Product Loop - Use product cards (4 column grid) */
.woocommerce ul.products,
.woocommerce ul.products.columns-1,
.woocommerce ul.products.columns-2,
.woocommerce ul.products.columns-3,
.woocommerce ul.products.columns-4,
.woocommerce ul.products.columns-5,
.woocommerce ul.products.columns-6 {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--grid-gap) !important;
    clear: both;
    border-top: 1px solid #e0e0e0;
    padding-top: var(--grid-gap) !important;
    margin-top: var(--grid-gap) !important;
}

/* Remove margin from WooCommerce product images */
.woocommerce ul.products li.product a img {
    margin-bottom: 0 !important;
}

/* Remove WooCommerce default pseudo-elements */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce ul.products.columns-3::before,
.woocommerce ul.products.columns-3::after,
.woocommerce ul.products.columns-4::before,
.woocommerce ul.products.columns-4::after {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products li.product,
.woocommerce ul.products.columns-3 li.product,
.woocommerce ul.products.columns-4 li.product {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    display: block !important;
    float: none !important;
    clear: none !important;
}

.woocommerce ul.products li.product .product-card {
    width: 100%;
    height: 100%;
    display: flex;
}

.woocommerce ul.products li.product .product-card-link {
    width: 100%;
}

/* Responsive product grid */
@media (max-width: 1200px) {
    .woocommerce ul.products,
    .woocommerce ul.products.columns-3,
    .woocommerce ul.products.columns-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .woocommerce ul.products,
    .woocommerce ul.products.columns-3,
    .woocommerce ul.products.columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .woocommerce ul.products,
    .woocommerce ul.products.columns-3,
    .woocommerce ul.products.columns-4 {
        grid-template-columns: 1fr !important;
    }
}

/* Legacy featured product classes (for backwards compatibility) */
.featured-product-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: calc(var(--grid-gap) * 0.75);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--subtle-shadow);
}

.featured-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.featured-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-small);
    margin-bottom: 1rem;
}

.featured-product-placeholder {
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 3rem;
}

.featured-product-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-product-category {
    display: inline-block;
    background: var(--primary-100);
    color: var(--primary-800);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-small);
    font-size: var(--font-size-xs);
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    align-self: center;
}

.featured-product-category:hover {
    background: var(--primary-200);
    color: var(--primary-900);
    text-decoration: none;
}

.featured-product-price {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--primary-700);
    margin-bottom: 1rem;
}

.featured-product-link {
    color: #fff;
    background: var(--primary-700);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    margin-top: auto;
}

.featured-product-link:hover {
    background: var(--primary-800);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Featured Products Responsive */
@media (max-width: 1024px) {
    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: calc(var(--grid-gap) * 0.75);
    }
    
    .featured-products-header-section {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    
    .featured-products-title {
        font-size: var(--font-size-h3);
    }

    .featured-products-cta {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: calc(var(--grid-gap) * 0.5);
    }
    
    .featured-products {
        padding: 3rem 0;
    }
    
    .featured-products-title {
        font-size: var(--font-size-h3);
    }
}

@media (max-width: 480px) {
    .featured-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   GALLERY BLOCK
   ============================================ */

.gallery-block {
    margin: var(--grid-gap) 0;
}

.gallery-block + .gallery-block {
    margin-top: calc(var(--grid-gap) * 2);
}

.gallery-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(var(--grid-gap) * 0.75);
}

.gallery-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    margin: 0;
    color: #000;
}

.gallery-cta {
    background: var(--primary-700);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.gallery-cta:hover {
    background: var(--primary-800);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-cta .material-symbols-rounded {
    font-size: var(--font-size-lg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
    width: 100%;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.gallery-image-wrapper:hover {
    transform: scale(1.04);
}

/* Lightbox zoom icon overlay */
.gallery-lightbox-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    z-index: 3;
    transition: background 0.25s ease;
    pointer-events: none;
}

.gallery-lightbox-icon .material-symbols-rounded {
    font-size: 2rem;
    color: #fff;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.25s ease, transform 0.25s ease;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.gallery-image-wrapper:hover .gallery-lightbox-icon {
    background: rgba(0, 0, 0, 0.3);
}

.gallery-image-wrapper:hover .gallery-lightbox-icon .material-symbols-rounded {
    opacity: 1;
    transform: scale(1);
}

/* External link button (shown when item has both lightbox + link) */
.gallery-item-link {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(4px);
}

.gallery-item-link .material-symbols-rounded {
    font-size: 1rem;
}

.gallery-item:hover .gallery-item-link {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-link:hover {
    background: var(--primary-700);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-image-default {
    position: relative;
    z-index: 1;
}

.gallery-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
}

.gallery-item:hover .gallery-image-hover {
    opacity: 1;
}

/* Placeholder styling */
.gallery-placeholder {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-placeholder .material-symbols-rounded {
    font-size: var(--font-size-display);
    color: #d1d5db;
}

/* Responsive */
@media (max-width: 968px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .gallery-title {
        font-size: var(--font-size-h3);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-title {
        font-size: var(--font-size-h3);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Category Grid Section */
.category-grid {
    margin: calc(var(--grid-gap) * 2) 0;
}

.category-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: var(--grid-gap);
    grid-template-areas: 
        "hero hero card1 card2"
        "card3 card4 card5 card6";
}

.category-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--subtle-shadow);
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: flex-end;
    min-height: 200px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #fff;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.8) 100%);
    border-radius: var(--border-radius);
    z-index: 1;
}

.category-card-content {
    position: relative;
    z-index: 2;
    padding: var(--grid-gap);
    width: 100%;
}

.category-card-title {
    font-size: var(--font-size-h4);
    font-weight: 600;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.category-card--hero {
    grid-area: hero;
}

.category-card--hero .category-card-title {
    font-size: var(--font-size-h2);
}

.category-card:nth-child(2) { grid-area: card1; }
.category-card:nth-child(3) { grid-area: card2; }
.category-card:nth-child(4) { grid-area: card3; }
.category-card:nth-child(5) { grid-area: card4; }
.category-card:nth-child(6) { grid-area: card5; }
.category-card:nth-child(7) { grid-area: card6; }

/* Category Grid Responsive */
@media (max-width: 1024px) {
    .category-grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 250px);
        grid-template-areas: 
            "hero hero"
            "card1 card2"
            "card3 card4";
    }
    
    .category-card:nth-child(n+6) {
        display: none;
    }
}

@media (max-width: 768px) {
    .category-grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 200px);
        grid-template-areas: 
            "hero"
            "card1"
            "card2"
            "card3";
    }
    
    .category-card:nth-child(n+5) {
        display: none;
    }
    
    .category-card--hero .category-card-title {
        font-size: var(--font-size-h3);
    }
    
    .category-card-title {
        font-size: var(--font-size-lg);
    }
}

/* CTA Block */
.cta-block {
    margin: calc(var(--grid-gap) * 2) 0;
}

.cta-content {
    padding: calc(var(--grid-gap) * 2);
    text-align: center;
    background: var(--primary-800);
    border-radius: var(--border-radius);
    box-shadow: var(--subtle-shadow);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cta-block.has-background-image .cta-content {
    background-blend-mode: multiply;
}

.cta-block.has-background-image .cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-800);
    opacity: 0.7;
    border-radius: var(--border-radius);
    z-index: 1;
}

.cta-content > * {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-subtitle {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.cta-button {
    background: #fff;
    color: var(--primary-700);
    padding: 1rem 2rem;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-md);
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-50);
    color: var(--primary-800);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contact Block */
.contact-block-wrapper {
    margin: calc(var(--grid-gap) * 2) 0;
    padding: 0;
}

.contact-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--grid-gap) * 1.5);
    align-items: start;
}

.contact-block-left {
    display: flex;
    flex-direction: column;
    gap: calc(var(--grid-gap) * 1.5);
}

.contact-block-content {
    background: #fff;
    padding: calc(var(--grid-gap) * 1.5);
    border-radius: var(--border-radius);
    box-shadow: var(--subtle-shadow);
}

.contact-wysiwyg {
    font-size: var(--font-size-md);
    line-height: 1.8;
}

.contact-wysiwyg p {
    margin: 0 0 1rem;
}

.contact-wysiwyg p:last-child {
    margin-bottom: 0;
}

.contact-wysiwyg ul,
.contact-wysiwyg ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.contact-wysiwyg ul:last-child,
.contact-wysiwyg ol:last-child {
    margin-bottom: 0;
}

.contact-wysiwyg li {
    margin-bottom: 0.5rem;
}

.contact-block-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
}

/* Contact Details Card - Separate card below WYSIWYG */
.contact-details-card {
    background: var(--primary-800);
    color: #fff;
    padding: calc(var(--grid-gap) * 1.5);
    border-radius: var(--border-radius);
    box-shadow: var(--subtle-shadow);
}

.contact-details-title {
    font-size: var(--font-size-h3);
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: #fff;
}

.contact-details-card .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-details-card .contact-item .material-symbols-rounded {
    font-size: var(--font-size-h3);
    color: var(--primary-300);
    flex-shrink: 0;
}

.contact-details-card .contact-details {
    flex: 1;
}

.contact-details-card .contact-details strong {
    display: block;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--primary-200);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-details-card .contact-details p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.contact-details-card .contact-details a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details-card .contact-details a:hover {
    color: var(--primary-200);
}

/* Contact Form Card */
.contact-form-card {
    background: #fff;
    padding: calc(var(--grid-gap) * 1.5);
    border-radius: var(--border-radius);
    box-shadow: var(--subtle-shadow);
}

/* Contact Form 7 Styling */
.contact-form-card .wpcf7 {
    margin: 0;
}

.contact-form-card .wpcf7-form p {
    margin-bottom: 1.25rem;
}

.contact-form-card .wpcf7-form label {
    display: block;
    font-weight: 600;
    color: var(--primary-800);
    margin-bottom: 0.5rem;
    font-size: var(--font-size-sm);
}

.contact-form-card .wpcf7-form input[type="text"],
.contact-form-card .wpcf7-form input[type="email"],
.contact-form-card .wpcf7-form input[type="tel"],
.contact-form-card .wpcf7-form input[type="url"],
.contact-form-card .wpcf7-form input[type="number"],
.contact-form-card .wpcf7-form input[type="date"],
.contact-form-card .wpcf7-form textarea,
.contact-form-card .wpcf7-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-small);
    font-family: 'Poppins', sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: #1f2937;
    background: #fff;
    transition: all 0.3s ease;
}

.contact-form-card .wpcf7-form input[type="text"]:focus,
.contact-form-card .wpcf7-form input[type="email"]:focus,
.contact-form-card .wpcf7-form input[type="tel"]:focus,
.contact-form-card .wpcf7-form input[type="url"]:focus,
.contact-form-card .wpcf7-form input[type="number"]:focus,
.contact-form-card .wpcf7-form input[type="date"]:focus,
.contact-form-card .wpcf7-form textarea:focus,
.contact-form-card .wpcf7-form select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 15%, transparent);
}

.contact-form-card .wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-card .wpcf7-form input[type="submit"] {
    background: var(--primary-700);
    color: #fff;
    border: 2px solid var(--primary-700);
    padding: 1rem 2.5rem;
    font-size: var(--font-size-md);
    font-weight: 600;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    width: 100%;
}

.contact-form-card .wpcf7-form input[type="submit"]:hover {
    background: var(--primary-800);
    border-color: var(--primary-800);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-700) 30%, transparent);
}

.contact-form-card .wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}

/* Contact Form 7 Validation Messages */
.contact-form-card .wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: var(--font-size-sm);
    margin-top: 0.25rem;
    display: block;
}

.contact-form-card .wpcf7-form input.wpcf7-not-valid,
.contact-form-card .wpcf7-form textarea.wpcf7-not-valid,
.contact-form-card .wpcf7-form select.wpcf7-not-valid {
    border-color: #dc2626;
}

.contact-form-card .wpcf7-response-output {
    margin: 1.5rem 0 0;
    padding: 1rem;
    border-radius: var(--border-radius-small);
    font-size: var(--font-size-sm);
    border: 2px solid;
}

.contact-form-card .wpcf7-mail-sent-ok {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.contact-form-card .wpcf7-validation-errors,
.contact-form-card .wpcf7-acceptance-missing {
    background: #fee2e2;
    border-color: #dc2626;
    color: #991b1b;
}

.contact-form-card .wpcf7-spam-blocked {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

/* Contact Form 7 Spinner */
.contact-form-card .wpcf7-spinner {
    margin-left: 1rem;
    display: inline-block;
}

/* Contact Block Responsive */
@media (max-width: 968px) {
    .contact-block {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-block-content,
    .contact-details-card,
    .contact-form-card {
        padding: var(--grid-gap);
    }
    
    .contact-details-title {
        font-size: var(--font-size-h4);
    }
}

@media (max-width: 480px) {
    .contact-wysiwyg {
        font-size: var(--font-size-base);
    }
    
    .contact-form-card .wpcf7-form input[type="submit"] {
        padding: 0.875rem 2rem;
        font-size: var(--font-size-base);
    }
}

/* FAQs Block */
.faqs-block-wrapper {
    margin: calc(var(--grid-gap) * 2) 0;
}

.faqs-block {
    max-width: 100%;
}

.faqs-heading {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2rem;
    text-align: left;
}

.faqs-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* FAQ Item */
.faq-item {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-300);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-500) 10%, transparent);
}

.faq-item[open] {
    border-color: var(--primary-600);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-500) 15%, transparent);
}

/* FAQ Question (Summary) */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--primary-800);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: all 0.3s ease;
}

/* Remove default marker */
.faq-question::-webkit-details-marker,
.faq-question::marker {
    display: none;
}

.faq-question:hover {
    color: var(--primary-700);
    background: var(--primary-50);
}

.faq-item[open] .faq-question {
    background: var(--primary-100);
    color: var(--primary-900);
    border-bottom: 2px solid var(--primary-200);
}

.faq-question-text {
    flex: 1;
    line-height: 1.5;
}

/* FAQ Icon */
.faq-icon {
    flex-shrink: 0;
    font-size: var(--font-size-lg);
    color: var(--primary-700);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-900);
}

/* FAQ Answer */
.faq-answer {
    padding: 1.5rem;
    line-height: 1.7;
    color: #374151;
    animation: fadeIn 0.3s ease;
}

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

.faq-answer p {
    margin: 0 0 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Two Column Layout */
.faqs-accordion-two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.faqs-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 768px) {
    .faqs-accordion-two-column {
        grid-template-columns: 1fr;
    }
}

.faq-answer ul,
.faq-answer ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.faq-answer ul:last-child,
.faq-answer ol:last-child {
    margin-bottom: 0;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer a {
    color: var(--primary-700);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.faq-answer a:hover {
    color: var(--primary-900);
}

.faq-answer strong {
    color: var(--primary-800);
    font-weight: 600;
}

/* FAQs Responsive */
@media (max-width: 768px) {
    .faqs-heading {
        font-size: var(--font-size-h3);
        margin-bottom: 1.5rem;
    }
    
    .faqs-accordion {
        gap: 0.75rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: var(--font-size-base);
    }
    
    .faq-answer {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .faqs-heading {
        font-size: var(--font-size-h3);
    }
    
    .faq-question {
        padding: 0.875rem 1rem;
        font-size: var(--font-size-sm);
    }
    
    .faq-icon {
        font-size: var(--font-size-lg);
    }
    
    .faq-answer {
        padding: 1rem;
    }
}

/* Simple Title Block */
.simple-title-block-wrapper {
    margin: calc(var(--grid-gap) * 2) 0;
}

.simple-title-block {
    padding: 0;
}

.simple-title-block.align-center {
    text-align: center;
}

.simple-title-block.align-left {
    text-align: left;
}

.simple-title-block.align-right {
    text-align: right;
}

.simple-title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
    line-height: 1.2;
}

.simple-subtitle {
    font-size: var(--font-size-lg);
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    max-width: 700px;
}

.simple-title-block.align-center .simple-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Two Column Text Block */
.two-column-text-block-wrapper {
    margin: calc(var(--grid-gap) * 2) 0;
}

.two-column-text-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--grid-gap) * 1.5);
    align-items: start;
}

.two-column-text-left,
.two-column-text-right {
    font-size: var(--font-size-md);
    line-height: 1.8;
}

.two-column-text-left p,
.two-column-text-right p {
    margin: 0 0 1rem;
}

.two-column-text-left p:last-child,
.two-column-text-right p:last-child {
    margin-bottom: 0;
}

.two-column-text-left ul,
.two-column-text-right ul,
.two-column-text-left ol,
.two-column-text-right ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.two-column-text-left ul:last-child,
.two-column-text-right ul:last-child,
.two-column-text-left ol:last-child,
.two-column-text-right ol:last-child {
    margin-bottom: 0;
}

.two-column-text-left li,
.two-column-text-right li {
    margin-bottom: 0.5rem;
}

.two-column-text-left a,
.two-column-text-right a {
    color: var(--primary-700);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.two-column-text-left a:hover,
.two-column-text-right a:hover {
    color: var(--primary-900);
}

/* Two Column Text Responsive */
@media (max-width: 968px) {
    .two-column-text-block {
        grid-template-columns: 1fr;
        gap: var(--grid-gap);
    }
}

@media (max-width: 768px) {
    .two-column-text-left,
    .two-column-text-right {
        font-size: var(--font-size-base);
    }
}

/* CTA Responsive */
@media (max-width: 768px) {
    .cta-content {
        padding: var(--grid-gap);
    }
}

/* Footer */
.site-footer {
    background: #000;
    color: #fff;
    padding: 5rem 0 3rem;
    margin-top: var(--grid-gap);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    margin-bottom: 5rem;
    text-align: left;
}

.footer-column {
    text-align: left;
}

.footer-column h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-column p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img,
.footer-logo-img {
    max-height: 48px;
    width: auto;
}

.footer-logo a {
    display: block;
}

.footer-about {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: var(--font-size-md);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-700);
    color: #fff; /* icon color */
    text-decoration: none;
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.social-icon svg path,
.social-icon svg circle,
.social-icon svg rect {
    fill: currentColor !important;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.footer-menu li {
    margin-bottom: 1rem;
    position: relative;
}

.footer-menu li:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, #333, transparent);
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
    display: block;
    font-size: var(--font-size-md);
}

.footer-menu a:hover {
    color: var(--primary-400);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.contact-item .material-symbols-rounded {
    color: var(--primary-400);
    font-size: var(--font-size-lg);
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-details strong {
    color: #fff;
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: var(--font-size-md);
}

.contact-details p {
    color: #ccc;
    margin: 0;
    line-height: 1.4;
    font-size: var(--font-size-md);
}

.contact-details a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    margin-top: 4rem;
}

.footer-copyright {
    text-align: left;
}

.footer-copyright p {
    margin: 0;
    color: #ccc;
    font-size: var(--font-size-base);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-legal a {
    color: #ccc;
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-400);
}

.footer-legal .divider {
    color: #666;
}

.old-footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #999;
    font-size: var(--font-size-sm);
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: calc(var(--grid-gap) * 0.75);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-menu::before {
        display: none;
    }
    
    .site-footer {
        padding: 2rem 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info {
        gap: 1rem;
    }
    
    .social-icons {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .features-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .features-block-wrapper {
        padding: 2rem 0;
    }
}

/* Responsive Design Improvements */
@media (max-width: 500px) {
    .hero-title {
        font-size: var(--font-size-h3);
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 1rem 0;
    }
    
    .main-navigation ul {
        gap: 1.5rem;
        font-size: var(--font-size-sm);
    }
    
    .header-actions {
        gap: 1rem;
    }
    
    .cart-details {
        font-size: var(--font-size-xs);
    }
    
    .search-form-wrapper input[type="search"] {
        padding: 0.875rem 1rem;
        font-size: var(--font-size-sm);
    }
}

/* ============================================
   WooCommerce Shop Layout
   ============================================ */

/* Shop Header */
.woocommerce-products-header {
    margin-bottom: calc(var(--grid-gap) * 1.5);
}

.woocommerce-products-header__title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #000;
}

.woocommerce-archive-description {
    font-size: var(--font-size-md);
    color: #666;
    line-height: 1.6;
}

/* Subcategory Buttons (legacy) */
.subcategory-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.subcategory-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 2px solid var(--primary-700);
    border-radius: var(--border-radius-small);
    color: var(--primary-700);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.subcategory-count {
    font-weight: 500;
    opacity: 0.8;
}

/* Subcategory Cards with Thumbnails */
.subcategory-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.subcategory-card {
    display: flex;
    flex-direction: column;
    background: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    position: relative;
}

.subcategory-card:hover {
    transform: translateY(-3px);
}

.subcategory-card:hover .subcategory-card-image {
    transform: scale(1.04);
}

.subcategory-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f3f4f6;
    border-radius: var(--border-radius);
    transition: transform 0.35s ease;
}

.subcategory-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: var(--border-radius);
}

.subcategory-card-placeholder .material-symbols-rounded {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.35);
}

.subcategory-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 0.875rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    text-align: center;
}

.subcategory-card-name {
    display: block;
    font-weight: 600;
    font-size: var(--font-size-base);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
    .subcategory-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ============================================
   ARCHIVE HERO BANNER
   ============================================ */
.archive-hero-banner {
    background: var(--primary-900);
    padding: 2rem 0 2.5rem;
    margin-top: 0;
    margin-bottom: 0;
}

.archive-hero-banner .archive-breadcrumbs {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 1rem;
}

.archive-hero-banner .breadcrumb-list {
    gap: 0.4rem;
}

.archive-hero-banner .breadcrumb-item {
    color: rgba(255, 255, 255, 0.55);
}

.archive-hero-banner .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.55);
}

.archive-hero-banner .breadcrumb-item a:hover {
    color: #fff;
}

.archive-hero-banner .breadcrumb-item:last-child {
    color: rgba(255, 255, 255, 0.85);
}

.archive-hero-banner .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
}

.archive-hero-title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.archive-hero-banner .woocommerce-archive-description,
.archive-hero-banner .term-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--font-size-md);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    max-width: 680px;
}

.archive-hero-banner .woocommerce-archive-description p,
.archive-hero-banner .term-description p {
    margin: 0;
}

.archive-hero-banner .subcategory-cards {
    margin-top: 1.75rem;
}

@media (max-width: 768px) {
    .archive-hero-banner {
        padding: 1.5rem 0 1.75rem;
    }
    .archive-hero-title {
        font-size: var(--font-size-h3);
    }
}

@media (max-width: 600px) {
    .subcategory-card-content {
        padding: 1rem 0.75rem 0.625rem;
    }
    .subcategory-card-name {
        font-size: var(--font-size-sm);
    }
}

/* Full Width Shop Layout (no sidebar) */
.shop-layout-full-width {
    margin: var(--grid-gap) 0;
}

/* Legacy: Shop Layout Grid with Sidebar */
.shop-layout-with-sidebar {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: calc(var(--grid-gap) * 2);
    margin: var(--grid-gap) 0;
}

/* Sidebar Styles */
.shop-sidebar-wrapper {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.shop-sidebar .widget {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--subtle-shadow);
}

.shop-sidebar .widget:last-child {
    margin-bottom: 0;
}

.shop-sidebar .widget-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #000;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-700);
}

/* Widget List Styles */
.shop-sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-sidebar .widget ul li {
    margin-bottom: 0.75rem;
    padding-left: 0;
}

.shop-sidebar .widget ul li:last-child {
    margin-bottom: 0;
}

.shop-sidebar .widget ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-sidebar .widget ul li a:hover {
    color: var(--primary-700);
}

.shop-sidebar .widget ul li.current-cat > a,
.shop-sidebar .widget ul li.chosen > a {
    color: var(--primary-700);
    font-weight: 600;
}

/* Price Filter Widget */
.shop-sidebar .widget_price_filter .price_slider_wrapper {
    padding: 1rem 0;
}

.shop-sidebar .widget_price_filter .price_slider {
    margin-bottom: 1.5rem;
}

.shop-sidebar .widget_price_filter .ui-slider {
    position: relative;
    background: var(--primary-100);
    border-radius: 10px;
    height: 6px;
}

.shop-sidebar .widget_price_filter .ui-slider .ui-slider-range {
    background: var(--primary-700);
    border-radius: 10px;
}

.shop-sidebar .widget_price_filter .ui-slider .ui-slider-handle {
    background: var(--primary-700);
    border: 2px solid #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    top: -6px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.shop-sidebar .widget_price_filter .price_slider_amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.shop-sidebar .widget_price_filter .button {
    background: var(--primary-700);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.shop-sidebar .widget_price_filter .button:hover {
    background: var(--primary-800);
}

/* Layered Nav Widget */
.shop-sidebar .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item a {
    position: relative;
}

.shop-sidebar .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item .count {
    background: var(--primary-100);
    color: var(--primary-800);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-small);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

/* WooCommerce Product Categories Block Widget */
.shop-sidebar .wp-block-woocommerce-product-categories {
    margin: 0;
}

.shop-sidebar .wc-block-product-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-sidebar .wc-block-product-categories-list-item {
    margin: 0;
    padding: 0;
}

/* Hide all count badges */
.shop-sidebar .wc-block-product-categories-list-item-count {
    display: none;
}

/* Top-level categories */
.shop-sidebar .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item {
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.shop-sidebar .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item:last-child {
    border-bottom: none;
}

.shop-sidebar .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item > a {
    display: block;
    padding: 0.75rem 2rem 0.75rem 0;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: color 0.3s ease;
    position: relative;
}

.shop-sidebar .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item > a:hover {
    color: var(--primary-700);
}

/* Expand/collapse icon */
.shop-sidebar .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item.has-children > a::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: #999;
    transition: transform 0.3s ease;
}

.shop-sidebar .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item.has-children.is-expanded > a::after {
    content: '−';
}

/* Subcategory list container - hidden by default */
.shop-sidebar .wc-block-product-categories-list--depth-1 {
    width: 100%;
    margin: 0;
    padding: 0 0 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Add padding when expanded */
.shop-sidebar .wc-block-product-categories-list-item.is-expanded > .wc-block-product-categories-list--depth-1 {
    padding-bottom: 0.75rem;
}

/* Add padding when expanded */
.shop-sidebar .wc-block-product-categories-list-item.is-expanded > .wc-block-product-categories-list--depth-1 {
    padding-bottom: 0.75rem;
}

.shop-sidebar .wc-block-product-categories-list-item.is-expanded > .wc-block-product-categories-list--depth-1 {
    max-height: 2000px;
}

.shop-sidebar .wc-block-product-categories-list--depth-1 > .wc-block-product-categories-list-item {
    margin-bottom: 0;
}

.shop-sidebar .wc-block-product-categories-list--depth-1 > .wc-block-product-categories-list-item > a {
    display: block;
    padding: 0.5rem 0;
    font-weight: 400;
    font-size: var(--font-size-sm);
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.shop-sidebar .wc-block-product-categories-list--depth-1 > .wc-block-product-categories-list-item > a:hover {
    color: var(--primary-700);
}

/* Current/Active Category */
.shop-sidebar .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item.current-cat > a,
.shop-sidebar .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item.current-menu-item > a,
.shop-sidebar .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item.current-cat-parent > a {
    color: var(--primary-700);
}

.shop-sidebar .wc-block-product-categories-list--depth-1 .wc-block-product-categories-list-item.current-cat > a,
.shop-sidebar .wc-block-product-categories-list--depth-1 .wc-block-product-categories-list-item.current-menu-item > a {
    color: var(--primary-700);
    font-weight: 600;
}

/* Active Filters Widget */
.shop-sidebar .widget_layered_nav_filters ul li {
    background: var(--primary-100);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-small);
    margin-bottom: 0.5rem;
}

.shop-sidebar .widget_layered_nav_filters ul li a {
    color: var(--primary-800);
    font-weight: 600;
}

.shop-sidebar .widget_layered_nav_filters ul li a:hover {
    color: var(--primary-900);
}

/* Shop Main Content Area */
.shop-main-content {
    min-width: 0;
}

/* WooCommerce Toolbar */
.woocommerce-result-count,
.woocommerce-ordering {
    margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-ordering select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-small);
    background: #fff;
    font-size: var(--font-size-base);
}

/* Product Grid Adjustments for Sidebar Layout */
.shop-layout-with-sidebar .products {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* Responsive Shop Layout */
@media (max-width: 1200px) {
    .shop-layout-with-sidebar {
        grid-template-columns: 280px 1fr;
        gap: calc(var(--grid-gap) * 1.5);
    }
    
    .woocommerce-products-header__title {
        font-size: var(--font-size-h3);
    }
    
    .shop-layout-with-sidebar .products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 968px) {
    .shop-layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: var(--grid-gap);
    }
    
    .shop-sidebar-wrapper {
        position: static;
        order: 2;
    }
    
    .shop-main-content {
        order: 1;
    }
    
    .shop-sidebar .widget {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .shop-layout-with-sidebar .products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .shop-layout-with-sidebar .products {
        grid-template-columns: 1fr !important;
    }
    
    .shop-sidebar .widget {
        padding: 1rem;
    }
}

/* ====================================
   Blog & Post Styles
==================================== */

/* Archive Header */
/* Archive Description */
.archive-description {
    font-size: var(--font-size-md);
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* Blog Archive Layout */
.posts-container {
    max-width: 100%;
    margin: 3rem auto 0;
    padding: 0;
}

/* Archive Grid Layout */
.blog .posts-container,
.archive .posts-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
}

.posts-container article {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--subtle-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.posts-container article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Entry Header */
.entry-header {
    padding: 0;
}

/* Archive card entry header with padding */
.posts-container .entry-header {
    padding: 1.5rem 1.5rem 0;
}

/* Single Post Header - No padding */
.single .entry-header {
    padding: 0 0 2rem;
}

/* Entry Title - Global styles for pages and archives */
.entry-header .entry-title {
    font-size: var(--font-size-display);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 2rem;
    color: #1a1a1a;
}

/* Post listing titles (blog grid) - smaller */
.posts-container .entry-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.75rem;
    color: #1a1a1a;
}

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

.entry-title a:hover {
    color: var(--primary-700);
}

/* Single Post Title - Even larger */
.single-post .entry-title {
    font-size: var(--font-size-h1);
    margin-bottom: 2rem;
    line-height: 1.2;
}

/* Entry Meta */
.entry-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: var(--font-size-sm);
    color: #666;
    margin-top: 0.75rem;
}

/* Single Post Meta - Styled better */
.single .entry-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--font-size-base);
    color: #fff;
    background: var(--primary-700);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-small);
    margin-top: 1rem;
}

.single .entry-meta .posted-on {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single .entry-meta .posted-on::before {
    content: '📅';
    font-size: var(--font-size-md);
}

.single .entry-meta time {
    color: #fff;
    font-weight: 500;
}

/* Hide author on single posts and archive */
.single .entry-meta .byline,
.posts-container .entry-meta .byline {
    display: none;
}

.entry-meta a {
    color: var(--primary-700);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-meta a:hover {
    color: var(--primary-800);
}

/* Featured Image */
.entry-featured-image {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin: 0;
}

.entry-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.posts-container article:hover .entry-featured-image img {
    transform: scale(1.05);
}

/* Single Post Featured Image */
.single .entry-featured-image {
    border-radius: var(--border-radius);
    margin: 2rem 0 3rem;
}

.single .entry-featured-image img {
    border-radius: var(--border-radius);
}

/* Entry Content */
.entry-content {
    padding: 0;
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: #333;
    flex-grow: 1;
    margin-top: 0;
}

/* Archive card entry content with padding */
.posts-container .entry-content {
    padding: 0 1.5rem 0.5rem;
    margin-bottom: 0;
}

.entry-content p {
    margin-bottom: 1rem;
    margin-top: 0;
}

/* Clamp archive excerpts to 3 lines */
.posts-container .entry-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Single Post Content - Larger and more spacious */
.single .entry-content {
    padding: 0;
    margin: 3rem 0;
    font-size: var(--font-size-lg);
    line-height: 1.8;
}

.single .entry-content p {
    margin-bottom: 1.75rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.entry-content h2 {
    font-size: var(--font-size-h3);
}

.entry-content h3 {
    font-size: var(--font-size-h4);
}

.entry-content h4 {
    font-size: var(--font-size-lg);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.25rem);
}

.entry-content li {
    margin-bottom: 0.5rem;
    font-size: inherit;
    line-height: 1.6;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-700);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--primary-50);
    border-radius: var(--border-radius-small);
    font-style: italic;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-small);
    margin: 2rem 0;
}

/* Entry Footer */
.entry-footer {
    padding: 0;
    margin-top: auto;
}

/* Archive Read More Button - Full Width */
.posts-container .read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    background: var(--primary-700);
    color: #fff;
    text-decoration: none;
    border-radius: var(--border-radius-small);
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all 0.3s ease;
    width: calc(100% - 3rem);
    margin: 0 1.5rem 1.5rem;
}

.posts-container .read-more:hover {
    background: var(--primary-800);
}

.posts-container .read-more::after {
    content: '→';
    font-size: var(--font-size-base);
}

/* Generic Read More */
.read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--primary-700);
    color: #fff;
    text-decoration: none;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.read-more:hover {
    background: var(--primary-800);
}

.read-more::after {
    content: '→';
    font-size: var(--font-size-lg);
}

/* Single Post Specific */
.single article {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 4rem 5rem;
    margin: calc(var(--grid-gap) * 2) auto;
    max-width: 1100px;
    box-shadow: var(--subtle-shadow);
}

.single .entry-content {
    padding: 0;
    margin: 3rem 0;
}

.single .entry-footer {
    padding: 2rem 0 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 3rem;
}

/* Post Navigation */
.post-navigation,
.posts-navigation {
    margin: calc(var(--grid-gap) * 2) 0;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
}

.post-navigation .nav-links,
.posts-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next,
.posts-navigation .nav-previous,
.posts-navigation .nav-next {
    flex: 1;
}

.post-navigation a,
.posts-navigation a {
    display: block;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    color: #333;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.post-navigation a:hover,
.posts-navigation a:hover {
    border-color: var(--primary-700);
    background: var(--primary-50);
    transform: translateY(-2px);
}

.nav-subtitle {
    display: block;
    font-size: var(--font-size-sm);
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-title {
    display: block;
    font-weight: 600;
    font-size: var(--font-size-md);
    color: var(--primary-800);
}

/* Categories & Tags */
.cat-links,
.tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.cat-links a,
.tags-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-100);
    color: var(--primary-800);
    text-decoration: none;
    border-radius: var(--border-radius-small);
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
}

.cat-links a:hover,
.tags-links a:hover {
    background: var(--primary-700);
    color: #fff;
}

/* Page Links (for paginated posts) */
.page-links {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: var(--border-radius-small);
}

.page-links a,
.page-links > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.5rem;
    background: #fff;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: var(--primary-700);
    color: #fff;
}

/* No Results / 404 */
.no-results {
    text-align: center;
    padding: calc(var(--grid-gap) * 3) 0;
}

.no-results .page-content {
    font-size: var(--font-size-md);
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ====================================
   Single Post - Modern Redesign
==================================== */

/* Single Post Layout Overrides */
.single-post .breadcrumbs-wrapper {
    display: none;
}

.single-post .site-main {
    padding-top: 0;
    padding-bottom: 0;
}

.single-post + .site-footer,
.single-post ~ .site-footer,
body.single-post .site-footer {
    margin-top: 0;
}

/* Post Hero Header */
.post-hero {
    padding: 4rem 0 3rem;
    margin-bottom: 0;
    position: relative;
}

.post-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Category Pills */
.post-hero-cats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.post-hero-cat {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--primary-100);
    color: var(--primary-800);
    text-decoration: none;
    border-radius: 2rem;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.post-hero-cat:hover {
    background: var(--primary-700);
    color: #fff;
}

.cat-separator {
    color: #9ca3af;
    font-size: var(--font-size-xs);
}

/* Hero Title */
.post-hero-title {
    font-size: var(--font-size-display);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.15;
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.02em;
}

/* Hero Meta */
.post-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #6b7280;
    font-size: var(--font-size-sm);
}

.meta-divider {
    color: #d1d5db;
}

/* Post Article */
.post-article {
    padding: 2rem 0 3rem;
}

.post-article-inner {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
    max-width: 860px;
    margin: 0 auto;
}

/* Sidebar with Share Buttons */
.post-sidebar {
    position: relative;
}

.post-sidebar-sticky {
    position: sticky;
    top: 120px;
}

.share-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.share-vertical-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.share-vertical-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-btn .material-symbols-rounded {
    font-size: 18px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.share-btn-linkedin:hover {
    background: #0077b5;
    color: #fff;
}

.share-btn-twitter:hover {
    background: #000;
    color: #fff;
}

.share-btn-facebook:hover {
    background: #1877f2;
    color: #fff;
}

.share-btn-copy:hover {
    background: var(--primary-700);
    color: #fff;
}

.share-btn-copy.copied {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

/* Content Wrapper */
.post-content-wrapper {
    min-width: 0;
}

/* Featured Image */
.post-featured-image {
    margin: 0 0 2.5rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.post-content {
    font-size: var(--font-size-md);
    line-height: 1.85;
    color: #374151;
}

.post-content > *:first-child {
    margin-top: 0;
}

.post-content p {
    margin-bottom: 1.75rem;
}

.post-content h2 {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: #1a1a1a;
    margin: 3rem 0 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.post-content h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.post-content h3 {
    font-size: var(--font-size-h4);
    font-weight: 600;
    color: var(--primary-800);
    margin: 2.5rem 0 1rem;
}

.post-content h4 {
    font-size: var(--font-size-h5);
    font-weight: 600;
    color: #1a1a1a;
    margin: 2rem 0 0.75rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.post-content li::marker {
    color: var(--primary-600);
}

.post-content blockquote {
    position: relative;
    border: none;
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    background: linear-gradient(135deg, var(--primary-50) 0%, #fff 100%);
    border-radius: var(--border-radius);
    font-style: italic;
    font-size: var(--font-size-lg);
    color: #374151;
    box-shadow: inset 4px 0 0 var(--primary-600);
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-small);
    margin: 2rem 0;
}

.post-content a:not(.button) {
    color: var(--primary-700);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.post-content a:not(.button):hover {
    color: var(--primary-800);
    text-decoration-thickness: 2px;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    padding-top: 2.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid #e5e7eb;
}

.post-tag-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
    border-radius: 2rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all 0.2s ease;
}

.post-tag-link .material-symbols-rounded {
    font-size: 14px;
    color: #9ca3af;
}

.post-tag-link:hover {
    background: var(--primary-100);
    color: var(--primary-800);
}

.post-tag-link:hover .material-symbols-rounded {
    color: var(--primary-600);
}

/* Mobile Share Section */
.post-share-mobile {
    display: none;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.share-mobile-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 1rem;
}

.share-mobile-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

/* Post Navigation */
.post-nav {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
}

.post-nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    min-height: 100px;
}

.post-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.post-nav-link:hover {
    background: var(--primary-50);
}

.post-nav-link:hover .post-nav-arrow {
    background: var(--primary-700);
    color: #fff;
}

.post-nav-empty {
    pointer-events: none;
}

.post-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    border-radius: 50%;
    color: #6b7280;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.post-nav-arrow .material-symbols-rounded {
    font-size: 24px;
}

.post-nav-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.post-nav-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-700);
}

.post-nav-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.post-nav-all {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-nav-all:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

.post-nav-all .material-symbols-rounded {
    font-size: 24px;
}

/* Single Post Responsive */
@media (max-width: 900px) {
    .post-article-inner {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        display: none;
    }
    
    .post-share-mobile {
        display: block;
    }
}

@media (max-width: 768px) {
    .post-hero {
        padding: 2.5rem 0 2rem;
    }
    
    .post-hero-title {
        font-size: var(--font-size-h1);
    }
    
    .post-article {
        padding: 1.5rem 0 2rem;
    }
    
    .post-content {
        font-size: var(--font-size-base);
    }
    
    .post-content h2 {
        font-size: var(--font-size-h4);
    }
    
    .post-content h3 {
        font-size: var(--font-size-h5);
    }
    
    .post-nav-inner {
        grid-template-columns: 1fr;
    }
    
    .post-nav-link {
        padding: 1.25rem 1.5rem;
    }
    
    .post-nav-next {
        justify-content: flex-start;
        text-align: left;
        border-top: 1px solid #e5e7eb;
    }
    
    .post-nav-all {
        order: -1;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 1rem;
    }
    
    .post-featured-image {
        margin: 0 -1rem 2rem;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .post-hero-title {
        font-size: var(--font-size-h2);
    }
    
    .post-hero-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .meta-divider {
        display: none;
    }
    
    .post-content blockquote {
        padding: 1.5rem;
    }
}

/* Blog Responsive */
@media (max-width: 1400px) {
    .blog .posts-container,
    .archive .posts-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .blog .posts-container,
    .archive .posts-container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--grid-gap);
    }
}

@media (max-width: 768px) {
    .blog .posts-container,
    .archive .posts-container {
        grid-template-columns: 1fr;
        gap: var(--grid-gap);
    }
    
    .entry-header {
        padding: 1.5rem 1.5rem 0;
    }
    
    .entry-title {
        font-size: var(--font-size-h4);
    }
    
    .single article .entry-title {
        font-size: var(--font-size-h2);
    }
    
    .entry-content {
        padding: 0 1.5rem 1.5rem;
        font-size: var(--font-size-base);
    }
    
    .power-page-content.entry-content {
        padding: 0;
    }
    
    .single .entry-content {
        font-size: var(--font-size-md);
    }
    
    .entry-footer {
        padding: 0 1.5rem 2rem;
    }
    
    .single article {
        padding: 2.5rem 2rem;
        margin: var(--grid-gap) 0;
    }
    
    .post-navigation .nav-links,
    .posts-navigation .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: var(--font-size-lg);
    }
    
    .single article .entry-title {
        font-size: var(--font-size-h3);
    }
    
    .entry-content {
        font-size: var(--font-size-sm);
    }
    
    .power-page-content.entry-content {
        padding: 0;
    }
    
    .single .entry-content {
        font-size: var(--font-size-base);
    }
    
    .single article {
        padding: 2rem 1.5rem;
    }
}

/* Google Map Block */
.google-map-block-wrapper {
    margin: calc(var(--grid-gap) * 2) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.google-map-block-wrapper.is-last-block {
    margin-bottom: 0;
}

/* Tab-label header that sits on top of the map */
.google-map-header {
    background: var(--primary-700);
    color: #fff;
    padding: 1rem 2.5rem 1.25rem;
    border-radius: 12px 12px 0 0;
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    margin-bottom: -1px; /* seamless connection to map */
}

.google-map-title {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: #fff;
    margin: 0 0 -0.35rem;
    line-height: 1.2;
}

.google-map-subtitle {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
}

.google-map-embed {
    width: 100%;
    position: relative;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.google-map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Flush map against footer when last block */
body.last-block-google-map .site-footer {
    margin-top: 0;
}

.flexible-content-page .google-map-block-wrapper.is-last-block {
    margin-bottom: 0;
}

/* Testimonials Block */
.testimonials-block-wrapper {
    margin: calc(var(--grid-gap) * 2) 0;
}

.testimonials-header {
    text-align: center;
    margin-bottom: calc(var(--grid-gap) * 1.5);
}

.testimonials-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.testimonials-subtitle {
    font-size: var(--font-size-lg);
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
}

.testimonial-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--subtle-shadow);
    display: flex;
    flex-direction: column;
}

.testimonial-quote-icon {
    color: var(--primary-300);
    margin-bottom: 1rem;
    line-height: 1;
}

.testimonial-quote-icon svg {
    width: 32px;
    height: 32px;
}

.testimonial-quote {
    font-size: var(--font-size-md);
    line-height: 1.8;
    color: #374151;
    margin: 0 0 1.5rem;
    flex: 1;
    font-style: italic;
    border: 0;
    padding: 0;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.testimonial-name {
    font-weight: 600;
    font-size: var(--font-size-base);
    color: #1a1a1a;
}

.testimonial-job-title {
    font-size: var(--font-size-sm);
    color: #6b7280;
}

/* Testimonials Responsive */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 1.5rem;
    }
}

/* ============================================
   CONTACT FORM PREFILL NOTICE
   ============================================ */
.prefill-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--primary-50);
    border-left: 3px solid var(--primary-600);
    border-radius: 0 4px 4px 0;
    font-size: 0.8125rem;
    color: var(--primary-800);
    line-height: 1.4;
    animation: prefillFadeIn 0.4s ease;
}

.prefill-notice .material-symbols-rounded {
    font-size: 1rem;
    color: var(--primary-600);
    flex-shrink: 0;
}

input.is-prefilled {
    border-color: var(--primary-300) !important;
    background: var(--primary-50) !important;
}

@keyframes prefillFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}