/*
Theme Name: Upstandesk
Description: A custom WordPress theme with ACF and WooCommerce support
Version: 1.0.0
Author: Your Name
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 {
    --border-radius: 12px;
    --border-radius-small: 6px;
    --background-light: #f8f9fa;
    --grid-gap: 2.25rem; /* Bento grid consistent spacing */
    --subtle-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); /* Subtle shadow for elements */
    
    /* Primary Color Palette - Emerald */
    --primary-50: oklch(0.979 0.021 166.113);
    --primary-100: oklch(0.95 0.052 163.051);
    --primary-200: oklch(0.905 0.093 164.15);
    --primary-300: oklch(0.845 0.143 164.978);
    --primary-400: oklch(0.765 0.177 163.223);
    --primary-500: oklch(0.696 0.17 162.48);
    --primary-600: oklch(0.596 0.145 163.225);
    --primary-700: oklch(0.508 0.118 165.612);
    --primary-800: oklch(0.432 0.095 166.913); /* Main primary color */
    --primary-900: oklch(0.378 0.077 168.94);  /* Your specified color */
    --primary-950: oklch(0.262 0.051 172.552);
}

/* Global Button System */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* Accessibility minimum */
    
    /* 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: 0.95rem;
    }
    
    &.button-large {
        padding: 1.25rem 2.5rem;
        font-size: 1.2rem;
    }
}

/* 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 and 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: 1rem;
    line-height: 1.6;
    color: #1d1d1d;
    background-color: #f5f5f5;
    overflow-x: hidden;
    position: relative;
    text-wrap: pretty;
}

/* Faded grid background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/graphy.webp');
    background-repeat: repeat;
    background-size: auto;
    opacity: 0.5;
    z-index: -2;
    pointer-events: none;
}

/* Centered gradient overlay to fade out grid behind main content */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    width: 2400px;
    height: 100vh;
    transform: translateX(-50%);
    background: linear-gradient(
        to right,
        transparent 0%,
        #f5f5f5 12%,
        #f5f5f5 88%,
        transparent 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* ========================================
   GLOBAL TYPOGRAPHY - FLUID RESPONSIVE SYSTEM
   ======================================== 
   
   All typography uses clamp() for fluid scaling between mobile and desktop.
   Format: clamp(min, preferred, max)
   
   Hierarchy (at desktop max):
   - h1: 3.5rem (56px)
   - h2: 2.75rem (44px) 
   - h3: 1.875rem (30px) - Emerald color
   - h4: 1.625rem (26px)
   - h5: 1.375rem (22px)
   - h6: 1.125rem (18px)
   - Body/Lists: 1.25rem (20px)
   - Lead: 1.5rem (24px)
   - Buttons: 1.125rem (18px)
   
   Hero blocks use larger scale (up to 4.5rem)
   Feature titles and subtitles use smaller scale
   
   All sizes scale fluidly - no responsive overrides needed!
*/

h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    line-height: 1.2;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
}

h2 {
    font-size: clamp(1.75rem, 3vw + 0.75rem, 2.75rem);
    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: clamp(1.375rem, 2vw + 0.5rem, 1.875rem);
    line-height: 1.3;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--primary-800);
}

h4 {
    font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.625rem);
    line-height: 1.4;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: #1a1a1a;
}

h5 {
    font-size: clamp(1.125rem, 1vw + 0.5rem, 1.375rem);
    line-height: 1.4;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: #1a1a1a;
}

h6 {
    font-size: clamp(1rem, 0.5vw + 0.75rem, 1.125rem);
    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: clamp(1.0625rem, 0.5vw + 1rem, 1.25rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    
    .button {
        margin-top: calc(var(--grid-gap) / 2.5); /* Less space above buttons */
    }
}

ul, ol {
    font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.25rem);
    line-height: 1.6;
}

p.lead {
    font-size: clamp(1.1875rem, 1vw + 0.875rem, 1.5rem);
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #374151;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: #000;
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.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: 16px;
}

.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: 16px;
    line-height: 1;
}

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

.top-bar-contact .material-symbols-rounded {
    font-size: 16px;
}

@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: 1.8rem;
    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: 48px;
    width: auto;
    max-width: 200px;
    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: 1.1rem; /* Increased from 1rem */
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
}

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

.main-navigation a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: 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 {
    font-size: 24px;
}

/* 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-link .material-symbols-rounded {
    font-size: 24px;
}

.cart-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.875rem;
    line-height: 1.2;
}

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

.cart-total {
    color: #000;
    font-size: 0.8rem;
}

/* Search Form */
.search-form-wrapper {
    background: #f9f9f9;
    border-top: 1px solid #e1e1e1;
    padding: 1rem 0;
}

.search-form-wrapper .search-form {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-form-wrapper input[type="search"] {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
}

search-form-wrapper input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-700);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-700) 10%, transparent);
}

.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: 1rem;
    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: 1rem;
    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: 20px;
}

/* 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: 1rem;
    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: 1rem;
    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: 28px;
}

.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: 1.1rem;
    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: 1rem;
}

.mobile-menu-contact .material-symbols-rounded {
    font-size: 20px;
    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: 1rem;
    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;
}

/* Breadcrumbs */
.breadcrumbs-wrapper {
    padding: 1rem 0;
    font-size: 0.9375rem;
}

.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: 0.9375rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.9375rem;
}

.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: 0.9375rem;
}

/* 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 Basic Styling */
.woocommerce .star-rating {
    color: var(--primary-700);
}

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

.woocommerce .button {
    /* WooCommerce buttons inherit from global button system */
    /* Add .button and .button-primary classes to WooCommerce buttons via JavaScript or use global styles */
    background: var(--primary-700);
    color: #fff;
    padding: 1rem 2rem;
    border: 2px solid var(--primary-700);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1;
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
    min-height: 44px;
    
    &: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);
    }
}

/* 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: 1.05rem !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: 1.3rem !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;
}

/* WooCommerce My Account Area - Minimal theme styling */
.woocommerce-MyAccount-navigation-link.is-active a {
    background: var(--primary-700);
    color: #fff;
}

.woocommerce-MyAccount-navigation-link a:hover {
    color: var(--primary-700);
}

/* ============================================
   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;
}

/* 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: 2.5rem;
    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: 1.75rem;
    font-weight: 700;
    color: var(--primary-700);
    margin: 0 0 1.5rem !important;
}

.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 */
.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 1rem;
    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: 0.95rem;
}

.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: 1rem;
    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: 0.875rem;
    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: 1rem;
    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: 1.1rem;
    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 Brand Color Overrides */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: var(--primary-700);
    color: #fff;
    border: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background-color: var(--primary-800);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
    background-color: var(--primary-700);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover {
    background-color: var(--primary-800);
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
    border-top-color: var(--primary-700);
}

.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before {
    color: var(--primary-700);
}

.woocommerce .star-rating span,
.woocommerce .star-rating::before {
    color: var(--primary-700);
}

.woocommerce span.onsale {
    background-color: var(--primary-700);
}

.woocommerce ul.products li.product .button {
    background-color: var(--primary-700);
    color: #fff;
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--primary-800);
}

/* 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 {
    display: none;
}

/* 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;
}

/* 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: 1.25rem;
    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: 0.95rem;
}

/* 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: 0.9rem;
}

.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;
}

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

/* 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: 0.95rem !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: 24px;
    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: 24px;
}

.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;
    color: #000;
}

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

.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: 0.9rem;
    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;
}

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

.hero-block {
    padding: 4rem 2rem;
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    height: 45rem;
    overflow: hidden;
    will-change: transform;
    border-radius: var(--border-radius);
    box-shadow: var(--subtle-shadow);
}

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

.hero-overlay {
    display: none; /* Removed overlay - image is already dark */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px; /* Increased from 800px */
    margin: 0 auto;
    width: 100%;
    padding-bottom: 4rem; /* Added bottom padding to sit higher */
}

.hero-content h1 {
    color: #fff;
    font-size: clamp(2rem, 4.5vw + 0.75rem, 4rem);
}

.hero-title {
    font-size: clamp(2rem, 4.5vw + 0.75rem, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: inherit;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 1.5vw + 0.75rem, 1.5rem);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    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: 3rem 1.5rem;
        height: 35rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-block-wrapper {
        margin: 0 0 var(--grid-gap) 0;
    }
    
    .hero-block {
        padding: 2rem 1rem;
        height: 30rem;
    }
    
    .hero-content {
        padding: 0;
        margin: -3rem auto 0;
    }
}

/* 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: clamp(2rem, 4.5vw + 1rem, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.15;
    color: inherit;
}

.image-title-subtitle {
    font-size: clamp(1.125rem, 1.5vw + 0.75rem, 1.5rem);
    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: 1.1rem;
    line-height: 1.8;
}

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

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

.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;
}

.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%;
}

/* Responsive Split Layout */
@media (max-width: 768px) {
    .content-block--split .content-block-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-block--image-left .content-block-grid {
        grid-template-areas: 
            "image"
            "content";
    }
    
    .content-block--image-left .content-block-image {
        grid-area: image;
    }
    
    .content-block--image-left .content-block-content {
        grid-area: content;
    }
    
    .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: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.features-subtitle {
    font-size: 1.2rem;
    color: #000;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.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: 2rem;
    color: var(--primary-700);
    display: block;
}

.feature-content {
    width: 100%;
}

.feature-title {
    font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
}

.feature-subtitle {
    font-size: clamp(0.875rem, 0.25vw + 0.8125rem, 1rem);
    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: 2rem;
    }
    
    .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: 2.5rem;
    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: 1rem;
    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: 1.2rem;
}

.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-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #000;
    padding: 1.5rem 1.5rem;
    text-wrap: balance;
    margin-top: 0;
}

.product-card-category {
    display: inline-block;
    background: var(--primary-100);
    color: var(--primary-800);
    padding: 0.2rem 0.65rem;
    border-radius: var(--border-radius-small);
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.5rem 1.5rem 0.3rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    align-self: center;
}

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

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

.product-card-button {
    color: #fff;
    background: var(--primary-700);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    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 */
.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(3, 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 WooCommerce default pseudo-elements */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce ul.products.columns-3::before,
.woocommerce ul.products.columns-3::after {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products li.product,
.woocommerce ul.products.columns-3 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: 1024px) {
    .woocommerce ul.products,
    .woocommerce ul.products.columns-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .woocommerce ul.products,
    .woocommerce ul.products.columns-3 {
        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: 1.2rem;
    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: 0.85rem;
    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: 1.1rem;
    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: 2rem;
    }

    .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: 1.8rem;
    }
}

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

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

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

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

.gallery-title {
    font-size: 2.5rem;
    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: 1rem;
    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: 1.2rem;
}

.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;
}

.gallery-image-wrapper:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.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: 3rem;
    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: 2rem;
    }
}

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

@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: 1.5rem;
    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: 2.5rem;
}

.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: 2rem;
    }
    
    .category-card-title {
        font-size: 1.3rem;
    }
}

/* 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: clamp(1.875rem, 3.5vw + 0.75rem, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-subtitle {
    font-size: clamp(1.0625rem, 1vw + 0.75rem, 1.375rem);
    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: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
    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: 1.1rem;
    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: 1.8rem;
    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: 1.8rem;
    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: 0.9rem;
    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: 0.95rem;
}

.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: 1rem;
    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: 1.1rem;
    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: 0.875rem;
    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: 0.95rem;
    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: 1.5rem;
    }
}

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

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

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

.faqs-heading {
    font-size: 2.5rem;
    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: 1.25rem;
    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: 1.5rem;
    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: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .faqs-accordion {
        gap: 0.75rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .faqs-heading {
        font-size: 1.75rem;
    }
    
    .faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .faq-icon {
        font-size: 1.25rem;
    }
    
    .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: clamp(2rem, 4vw + 1rem, 3.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
    line-height: 1.2;
}

.simple-subtitle {
    font-size: clamp(1.125rem, 1vw + 0.75rem, 1.375rem);
    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: 1.1rem;
    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: 1rem;
    }
}

/* 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: 1.2rem;
    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: 40px;
    width: auto;
    filter: invert(1) brightness(1);
}

.footer-logo a {
    display: block;
}

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

.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: 1.125rem;
}

.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: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

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

.contact-details p {
    color: #ccc;
    margin: 0;
    line-height: 1.4;
    font-size: 1.125rem;
}

.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: 1rem;
}

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

.footer-legal a {
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
    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: 0.9rem;
}

/* 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: 2rem;
    }
    
    .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: 0.9rem;
    }
    
    .header-actions {
        gap: 1rem;
    }
    
    .cart-details {
        font-size: 0.8rem;
    }
    
    .search-form-wrapper input[type="search"] {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   WooCommerce Shop Layout with Sidebar
   ============================================ */

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

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

.woocommerce-archive-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* Shop Layout Grid */
.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: 1.1rem;
    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: 0.85rem;
    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: 1rem;
    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: 1.2rem;
    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: 0.95rem;
    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: 1rem;
}

/* 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: 2rem;
    }
    
    .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: 1.125rem;
    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: 3rem;
    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: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem;
    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: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

/* Entry Meta */
.entry-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    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: 1rem;
    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: 1.125rem;
}

.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: 0.875rem;
    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 1.5rem;
}

.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: 1.25rem;
    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: 2rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content h4 {
    font-size: 1.25rem;
}

.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;
}

.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: 0;
    font-weight: 600;
    transition: background 0.3s ease;
    width: 100%;
}

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

.read-more::after {
    content: '→';
    font-size: 1.25rem;
}

/* 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: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-title {
    display: block;
    font-weight: 600;
    font-size: 1.125rem;
    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: 0.875rem;
    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: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 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: 1.5rem;
    }
    
    .single article .entry-title {
        font-size: 2.5rem;
    }
    
    .entry-content {
        padding: 0 1.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .single .entry-content {
        font-size: 1.125rem;
    }
    
    .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: 1.25rem;
    }
    
    .single article .entry-title {
        font-size: 2rem;
    }
    
    .entry-content {
        font-size: 0.9375rem;
    }
    
    .single .entry-content {
        font-size: 1rem;
    }
    
    .single article {
        padding: 2rem 1.5rem;
    }
}