/* ==========================================================================
   Wa Handle — Warm & Natural Theme
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    --wh-bg: #FAF8F5;
    --wh-text: #3D3427;
    --wh-accent: #8B7355;
    --wh-gold: #C9A14A;
    --wh-secondary-bg: #D4C9B8;
    --wh-surface: #F0EBE3;
    --wh-card-bg: #EDE7DC;
    --wh-border: #E8E0D4;
    --wh-text-light: #5A4A38;
    --wh-white: #FFFFFF;
    --wh-font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --wh-radius: 4px;
    --wh-radius-lg: 8px;
}

/* ---------- Global ---------- */
body {
    font-family: var(--wh-font);
    background-color: var(--wh-bg);
    color: var(--wh-text);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--wh-font);
    color: var(--wh-text);
    font-weight: 500;
}

a {
    color: var(--wh-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--wh-text);
}

/* ---------- Header / Navigation ---------- */
.site-header {
    background-color: var(--wh-bg);
    border-bottom: 1px solid var(--wh-border);
}

.site-title {
    font-size: 1.1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--wh-text);
}

.main-navigation a {
    font-size: 0.9rem;
    color: var(--wh-accent);
    letter-spacing: 0.5px;
}

.main-navigation a:hover {
    color: var(--wh-text);
}

/* ---------- Trust Bar ---------- */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    background-color: var(--wh-surface);
    font-size: 0.85rem;
    color: var(--wh-accent);
    border-top: 1px solid var(--wh-border);
    border-bottom: 1px solid var(--wh-border);
}

.trust-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-bar-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* ---------- Buttons ---------- */
.button,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--wh-text);
    color: var(--wh-bg);
    border: none;
    border-radius: var(--wh-radius);
    font-family: var(--wh-font);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    transition: background-color 0.2s ease;
}

.button:hover,
button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background-color: var(--wh-text-light);
    color: var(--wh-bg);
}

.button-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--wh-font);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--wh-radius);
    background: transparent;
    border: 1px solid var(--wh-accent);
    color: var(--wh-accent);
    transition: all 0.2s ease;
}

.button-outline:hover {
    background-color: var(--wh-accent);
    color: var(--wh-bg);
}

/* ---------- WooCommerce Product Grid ---------- */
.woocommerce ul.products li.product {
    background: var(--wh-white);
    border-radius: var(--wh-radius-lg);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    border: 1px solid var(--wh-border);
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 4px 20px rgba(61, 52, 39, 0.08);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--wh-text);
    padding: 0.5rem 1rem 0;
}

.woocommerce ul.products li.product .price {
    color: var(--wh-accent);
    font-size: 0.95rem;
    padding: 0 1rem 0.5rem;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap .button {
    margin-top: auto;
}

/* Material tags below product title */
.product-material-tags {
    display: flex;
    gap: 0.4rem;
    padding: 0.25rem 1rem 0.75rem;
    flex-wrap: wrap;
}

.material-tag {
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    background-color: var(--wh-card-bg);
    border-radius: 12px;
    color: var(--wh-text);
}

/* ---------- Single Product Page ---------- */
.woocommerce div.product div.images {
    border-radius: var(--wh-radius-lg);
    overflow: hidden;
}

.woocommerce div.product .product_title {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--wh-text);
}

.woocommerce div.product p.price {
    font-size: 1.3rem;
    color: var(--wh-accent);
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--wh-text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Specifications table */
.woocommerce-product-attributes {
    border: none;
}

.woocommerce-product-attributes th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wh-accent);
    font-weight: 500;
    background: transparent;
    border-bottom: 1px solid var(--wh-border);
    padding: 0.9rem 1rem 0.9rem 1rem;
    width: 35%;
}

.woocommerce-product-attributes td {
    color: var(--wh-text-light);
    background: transparent;
    border-bottom: 1px solid var(--wh-border);
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
}

/* Customize button on product page */
.wa-customize-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.5rem;
    text-align: center;
    background: transparent !important;
    color: var(--wh-accent) !important;
    border: 1px solid var(--wh-accent) !important;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem !important;
    vertical-align: middle;
}

.wa-customize-btn::after {
    content: '→';
    font-size: 1rem;
}

.wa-customize-btn:hover {
    background: var(--wh-accent) !important;
    color: var(--wh-white) !important;
}

/* Hide Wood Type row from specs on variable product pages (redundant with dropdown) */
.postid-97 .woocommerce-product-attributes-item--attribute_pa_wood-type {
    display: none;
}

/* Wood story content text */
.wood-story-content {
    color: var(--wh-text-light);
    line-height: 1.8;
    font-size: 0.9rem;
}

/* ---------- Breadcrumbs ---------- */
.woocommerce-breadcrumb {
    font-size: 0.8rem;
    color: var(--wh-accent);
    margin-bottom: 1.5rem;
}

.breadcrumb-sep {
    margin: 0 0.3rem;
    color: var(--wh-secondary-bg);
}

/* ---------- Custom Footer (.wahandle-footer) ---------- */
.wahandle-footer {
    background-color: var(--wh-text);
    color: var(--wh-secondary-bg);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.wahandle-footer h4 {
    color: var(--wh-bg);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.wahandle-footer p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--wh-secondary-bg);
}

.wahandle-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wahandle-footer ul li {
    margin-bottom: 0.5rem;
}

.wahandle-footer ul a {
    color: var(--wh-secondary-bg);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.wahandle-footer ul a:hover {
    color: var(--wh-bg);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 201, 184, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    margin: 0;
}

/* Hide Astra's default footer builder ("Powered by Astra") */
footer#colophon.site-footer {
    padding: 0;
    background: var(--wh-text);
    min-height: 0;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
    height: 0;
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    border: 1px solid var(--wh-border);
    border-radius: var(--wh-radius);
    padding: 0.7rem 1rem;
    font-family: var(--wh-font);
    background-color: var(--wh-white);
    color: var(--wh-text);
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: var(--wh-accent);
    outline: none;
}

/* ---------- Blog ---------- */
.entry-title {
    font-size: 1.4rem;
    font-weight: 500;
}

.entry-meta {
    font-size: 0.8rem;
    color: var(--wh-accent);
}

/* Blog archive — force landscape crop on portrait product photos */
.ast-article-post .post-thumb-img-content img,
.ast-article-post .post-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center 30%;
}

/* Blog single — remove "By /" empty author line clutter */
.ast-blog-single-element .ast-author-name[href$="/author/"] {
    display: none;
}

/* ---------- Responsive ---------- */

/* Prevent horizontal overflow on all viewports */
html, body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .trust-bar {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Reduce product image padding on mobile */
    .woocommerce ul.products li.product a img {
        padding: 10px;
    }

    /* Tighter section spacing */
    .home-about {
        padding: 2rem 0;
    }

    .about-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .home-blog-preview {
        padding: 1.5rem 0;
    }

    /* Single product: tighter specs */
    .wh-specs-table th {
        width: 35%;
    }

    .wood-story-section {
        padding: 1rem;
    }

    /* Ensure touch-friendly button height (min 44px) */
    .button,
    button,
    input[type="submit"],
    .woocommerce a.button,
    .woocommerce button.button,
    .woocommerce input.button {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }

    /* Even less product image padding */
    .woocommerce ul.products li.product a img {
        padding: 8px;
    }

    /* Single product image padding */
    .woocommerce div.product div.images img {
        padding: 12px;
    }

    /* Tighter container padding */
    .container {
        padding: 0 1rem;
    }

    /* Section labels: slightly less spacing for small screens */
    .section-label {
        letter-spacing: 2px;
        font-size: 0.8rem;
    }

    /* Breadcrumbs wrap nicely */
    .woocommerce-breadcrumb {
        font-size: 0.75rem;
        word-break: break-word;
    }
}

/* ---------- Homepage: Storytelling Hero ---------- */
.home-hero {
    padding: 0;
}

.hero-banner {
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-overlay {
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to top, rgba(30, 22, 12, 0.72) 0%, rgba(30, 22, 12, 0.35) 60%, rgba(30, 22, 12, 0.15) 100%);
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.hero-overlay .container {
    text-align: center;
}

.hero-heading {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-subtext {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 2rem;
}

/* Hero load animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.7s ease-out both;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Hero CTA button — white variant on dark background */
.hero-overlay .button {
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--wh-text);
    border: none;
}

.hero-overlay .button:hover {
    background-color: #fff;
    color: var(--wh-text);
}

.hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.button-outline-light {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.button-outline-light:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

/* ---------- Cinematic Animation System ---------- */

/* Legacy scroll-reveal (backwards compat for existing sections) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Blur-rise: fade up with blur clear */
.wh-blur-rise {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(5px);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
                transform 0.8s cubic-bezier(0.16,1,0.3,1),
                filter 0.8s cubic-bezier(0.16,1,0.3,1);
}
.wh-blur-rise.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Clip-wipe: curtain reveal left-to-right */
.wh-clip-wipe {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1s cubic-bezier(0.16,1,0.3,1);
}
.wh-clip-wipe.visible {
    clip-path: inset(0 0 0 0);
}

/* 3D flip: perspective rotate-in from right */
.wh-3d-flip {
    opacity: 0;
    transform: perspective(600px) rotateY(-15deg) translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
                transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.wh-3d-flip.visible {
    opacity: 1;
    transform: perspective(600px) rotateY(0deg) translateX(0);
}

/* Scale-rise: scale up + rise */
.wh-scale-rise {
    opacity: 0;
    transform: translateY(30px) scale(0.85);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
                transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.wh-scale-rise.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Slide-left: slide in from left */
.wh-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
                transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.wh-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Ken Burns: slow zoom on hero bg (load animation, not scroll-triggered) */
@keyframes whKenBurns {
    0%   { transform: scale(1.0) translate(0, 0); }
    100% { transform: scale(1.15) translate(-3%, -2%); }
}
.wh-ken-burns {
    animation: whKenBurns 18s ease-in-out infinite alternate;
}

/* Blur-in: hero text load reveal */
@keyframes whBlurIn {
    from { opacity: 0; transform: translateY(50px); filter: blur(8px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
.wh-blur-in {
    animation: whBlurIn 1.2s cubic-bezier(0.16,1,0.3,1) both;
}

/* Scale-in: hero CTA load reveal */
@keyframes whScaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
.wh-scale-in {
    animation: whScaleIn 0.9s cubic-bezier(0.16,1,0.3,1) both;
}

/* Float: gentle hover loop */
@keyframes whFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.wh-float {
    animation: whFloat 3.5s ease-in-out infinite;
}

/* Stagger delays */
.wh-delay-0 { transition-delay: 0s; }
.wh-delay-1 { transition-delay: 0.15s; }
.wh-delay-2 { transition-delay: 0.3s; }
.wh-delay-3 { transition-delay: 0.45s; }
.wh-delay-4 { transition-delay: 0.6s; }

/* Hero load delays */
.wh-load-delay-1 { animation-delay: 0.35s; }
.wh-load-delay-2 { animation-delay: 0.7s; }

/* Accessibility: respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .wh-blur-rise, .wh-clip-wipe, .wh-3d-flip,
    .wh-scale-rise, .wh-slide-left {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        filter: none !important;
    }
    .wh-ken-burns, .wh-float, .wh-blur-in, .wh-scale-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* Featured section */
.home-featured {
    padding: 2rem 0;
}

.section-label {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--wh-accent);
    margin-bottom: 1.5rem;
}

/* About snippet */
.home-about {
    padding: 3rem 0;
    background-color: var(--wh-surface);
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    background-color: var(--wh-card-bg);
    border-radius: var(--wh-radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 360px;
    overflow: hidden;
}

.about-image img {
    max-height: 300px;
    width: auto;
    object-fit: contain;
}

.about-text {
    max-width: 600px;
}

.about-text p {
    color: var(--wh-text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Blog preview */
.home-blog-preview {
    padding: 2rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: var(--wh-white);
    border-radius: var(--wh-radius-lg);
    overflow: hidden;
    border: 1px solid var(--wh-border);
}

.blog-card-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: var(--wh-surface);
}

.blog-card-body {
    padding: 1rem;
}

.blog-card-body h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.blog-card-body h3 a {
    color: var(--wh-text);
}

.blog-card-body p {
    font-size: 0.85rem;
    color: var(--wh-text-light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .hero-heading {
        font-size: 2rem;
    }

    .hero-banner,
    .hero-overlay {
        min-height: 60vh;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ---------- Astra Layout Overrides ---------- */
/* Remove white card box from Astra's separate container layout */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single:not(.ast-related-post),
.ast-separate-container .ast-article-page {
    background: transparent !important;
    padding: 0;
    margin: 0;
}

.ast-separate-container .ast-article-inner {
    background: transparent !important;
}

/* Match Astra's page background to our theme background */
.ast-separate-container {
    background-color: var(--wh-bg) !important;
}

.ast-separate-container #primary {
    padding: 0;
}

.ast-separate-container .site-content > .ast-container {
    min-height: 0 !important;
}

/* Front page: full width, no extra wrapping */
.home #primary,
.home .site-main {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.home .site-content {
    overflow: visible;
}

/* ---------- Hover Animations ---------- */
.woocommerce ul.products li.product {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
}

.blog-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 4px 20px rgba(61, 52, 39, 0.08);
    transform: translateY(-3px);
}

.button,
.button-outline,
.woocommerce a.button,
.woocommerce button.button {
    transition: all 0.2s ease;
}

.button-outline:hover {
    transform: translateY(-1px);
}

/* ---------- Category Labels ---------- */
.woocommerce ul.products li.product .ast-woo-product-category,
.woocommerce ul.products li.product .posted_in {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--wh-accent);
    padding: 0 1rem;
}

/* ---------- Page Load Animation (hero — handled by .animate-fade-up) ---------- */

/* ---------- Product Image Treatment ---------- */
.woocommerce ul.products li.product a img {
    background-color: var(--wh-surface);
    object-fit: contain;
    aspect-ratio: 4 / 5;
    width: 100%;
    padding: 16px;
}

.woocommerce div.product div.images img {
    background-color: var(--wh-surface);
    object-fit: contain;
    padding: 24px;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image {
    background-color: var(--wh-surface);
    border-radius: var(--wh-radius-lg);
    overflow: hidden;
}

/* ---------- Single Product Page — Tighten Layout ---------- */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products {
    clear: both;
}

/* Reduce gap between summary and content below */
.woocommerce div.product div.summary {
    margin-bottom: 1rem;
}

/* Move specs table tighter to add-to-cart */
.woocommerce div.product .product_meta {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--wh-border);
}

/* Compact the tabs section */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 1rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 0 0 1.5rem;
    border-bottom: 1px solid var(--wh-border);
    list-style: none;
    display: flex;
    gap: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--wh-accent);
    padding: 0.75rem 1.5rem;
    display: block;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom-color: var(--wh-text);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--wh-text);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after {
    display: none;
}

.woocommerce div.product .woocommerce-tabs .panel {
    padding: 0;
    margin: 0;
}

/* Inline specs in summary column */
.wh-inline-specs {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--wh-border);
}

.wh-specs-title {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--wh-accent);
    margin-bottom: 0.75rem;
}

.wh-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.wh-specs-table th {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--wh-accent);
    text-align: left;
    padding: 0.6rem 1rem;
    width: 40%;
    border-bottom: 1px solid var(--wh-border);
}

.wh-specs-table td {
    font-size: 0.85rem;
    color: var(--wh-text);
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--wh-border);
}

/* Wood story in summary column */
.wood-story-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background-color: var(--wh-surface);
    border-radius: var(--wh-radius-lg);
}

.wood-story-section h3 {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* ---------- Newsletter Signup ---------- */
.newsletter-section {
    padding: 3.5rem 0;
    background-color: var(--wh-text);
    color: var(--wh-secondary-bg);
    text-align: center;
}

.newsletter-section h2 {
    color: var(--wh-bg);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    font-size: 0.95rem;
    color: var(--wh-secondary-bg);
    max-width: 480px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    max-width: 440px;
    margin: 0 auto;
    gap: 0;
}

.newsletter-form input[type="email"] {
    flex: 1;
    border: 1px solid rgba(212, 201, 184, 0.3);
    border-right: none;
    border-radius: var(--wh-radius) 0 0 var(--wh-radius);
    background: rgba(255, 255, 255, 0.08);
    color: var(--wh-bg);
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--wh-secondary-bg);
    opacity: 0.7;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--wh-accent);
    outline: none;
    background: rgba(255, 255, 255, 0.12);
}

.newsletter-form button {
    border-radius: 0 var(--wh-radius) var(--wh-radius) 0;
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    background-color: var(--wh-accent);
    color: var(--wh-bg);
    border: 1px solid var(--wh-accent);
    cursor: pointer;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background-color: var(--wh-secondary-bg);
    color: var(--wh-text);
    border-color: var(--wh-secondary-bg);
}

.newsletter-privacy {
    font-size: 0.75rem;
    color: rgba(212, 201, 184, 0.5);
    margin-top: 0.75rem;
}

.newsletter-success {
    color: var(--wh-bg);
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter-form input[type="email"],
    .newsletter-form button {
        border-radius: var(--wh-radius);
        border: 1px solid rgba(212, 201, 184, 0.3);
    }
}

/* ---------- FAQ / Details Blocks ---------- */
.wp-block-details {
    border: 1px solid var(--wh-border);
    border-radius: var(--wh-radius-lg);
    background: var(--wh-white);
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s ease;
}

.wp-block-details[open] {
    box-shadow: 0 2px 8px rgba(61, 52, 39, 0.06);
}

.wp-block-details summary {
    padding: 1.1rem 1.5rem;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--wh-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.2s ease;
}

.wp-block-details summary::-webkit-details-marker {
    display: none;
}

.wp-block-details summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--wh-accent);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
    content: '\2212';
}

.wp-block-details summary:hover {
    color: var(--wh-accent);
}

.wp-block-details > *:not(summary) {
    padding: 0 1.5rem;
}

.wp-block-details > *:not(summary):last-child {
    padding-bottom: 1.25rem;
}

.wp-block-details > p:first-of-type {
    border-top: 1px solid var(--wh-border);
    padding-top: 1rem;
    margin-top: 0;
}

.wp-block-details ul {
    padding-left: 1.25rem;
}

/* ---------- Sticky Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow 0.3s ease;
}

.site-header.wh-scrolled {
    box-shadow: 0 2px 12px rgba(61, 52, 39, 0.08);
}

/* ---------- Etsy Shop Icon (replaces legacy cart icon) ---------- */
.wh-etsy-item {
    position: relative;
}

.wh-etsy-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem;
}

.wh-etsy-link svg {
    color: var(--wh-accent);
    transition: color 0.2s ease;
}

.wh-etsy-link:hover svg {
    color: var(--wh-text);
}

.wh-etsy-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--wh-accent);
    transition: color 0.2s ease;
}

.wh-etsy-link:hover .wh-etsy-label {
    color: var(--wh-text);
}

/* Legacy cart-count styles kept for any stray refs during transition */
.wh-cart-count {
    position: absolute;
    top: 0;
    right: -4px;
    background: var(--wh-accent);
    color: var(--wh-bg);
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ---------- Why Wa Section ---------- */
.home-why-wa {
    padding: 4rem 0;
}

.why-wa-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.why-wa-image {
    border-radius: var(--wh-radius-lg);
    overflow: hidden;
}

.why-wa-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--wh-radius-lg);
}

.why-wa-intro {
    color: var(--wh-text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.why-wa-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.benefit {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit svg {
    flex-shrink: 0;
    color: var(--wh-accent);
    margin-top: 2px;
}

.benefit h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.benefit p {
    font-size: 0.85rem;
    color: var(--wh-text-light);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .why-wa-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ---------- The Craft Process Section ---------- */
.home-craft {
    padding: 4rem 0;
    background-color: var(--wh-surface);
}

.craft-intro {
    color: var(--wh-text-light);
    line-height: 1.8;
    max-width: 560px;
    margin-bottom: 2.5rem;
}

.craft-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.craft-progress-line {
    position: absolute;
    top: 24px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: var(--wh-border);
    z-index: 0;
}

.craft-progress-fill {
    height: 100%;
    width: 0;
    background: var(--wh-accent);
    transition: width 2s cubic-bezier(0.16,1,0.3,1);
    transition-delay: 0.2s;
}

.craft-steps:has(.craft-step.visible) .craft-progress-fill {
    width: 100%;
}

.craft-step {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--wh-white);
    border-radius: var(--wh-radius-lg);
    position: relative;
    z-index: 1;
}

.craft-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--wh-text);
    color: var(--wh-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.craft-step h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.craft-step p {
    font-size: 0.82rem;
    color: var(--wh-text-light);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .craft-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .craft-progress-line {
        display: none;
    }
}

@media (max-width: 480px) {
    .craft-steps {
        grid-template-columns: 1fr;
    }
}

/* ---------- Configurator CTA Section ---------- */
.home-configurator-cta {
    padding: 4rem 0;
}

.config-cta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.config-cta-heading {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.config-cta-body {
    color: var(--wh-text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.config-cta-mockup {
    display: flex;
    align-items: center;
    justify-content: center;
}

.config-mockup-inner {
    background: linear-gradient(180deg, #F0EBE3, #E8E0D4);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--wh-border);
    width: 100%;
    max-width: 320px;
}

.config-mockup-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--wh-accent);
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

.config-mockup-handle {
    width: 80px;
    height: 240px;
}

@media (max-width: 768px) {
    .config-cta-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .config-cta-mockup {
        order: -1;
    }
}

/* ---------- Wood Showcase Section ---------- */
.home-wood-showcase {
    padding: 4rem 0;
    background: var(--wh-text);
    color: var(--wh-bg);
    position: relative;
}

.wood-showcase-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.wood-showcase-sub {
    color: var(--wh-secondary-bg);
    line-height: 1.8;
    max-width: 560px;
    margin-bottom: 2rem;
}

.wood-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.ws-card {
    border-radius: var(--wh-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.ws-swatch {
    height: 120px;
    overflow: hidden;
}

.ws-swatch svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ws-info {
    padding: 1rem;
}

.ws-info h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--wh-bg);
}

.ws-info p {
    font-size: 0.78rem;
    color: var(--wh-secondary-bg);
    line-height: 1.5;
    margin-bottom: 8px;
}

.ws-tier {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 10px;
    font-weight: 500;
}

.ws-tier-entry { background: var(--wh-surface); color: var(--wh-text-light); }
.ws-tier-standard { background: var(--wh-secondary-bg); color: var(--wh-text); }
.ws-tier-premium { background: var(--wh-text-light); color: var(--wh-bg); }
.ws-tier-exotic { background: var(--wh-accent); color: var(--wh-bg); }

.ws-cta {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .wood-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .wood-showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Blog Preview Enhancements ---------- */
.blog-preview-intro {
    color: var(--wh-text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 560px;
}

.blog-card-image {
    display: block;
    position: relative;
    overflow: hidden;
}

.blog-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61, 52, 39, 0.3), rgba(139, 115, 85, 0.15));
    pointer-events: none;
}

.blog-card-image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center 40%;
}

.blog-preview-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ---------- Gallery Page ---------- */
.gallery-page {
    padding: 3rem 0 4rem;
}

.gallery-page .container {
    max-width: 1600px;
}

.gallery-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.gallery-sub {
    color: var(--wh-text-light);
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: var(--wh-radius);
    background: var(--wh-surface);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-cta {
    text-align: center;
    margin-top: 3rem;
}

.gallery-cta p {
    color: var(--wh-text-light);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Shop SEO Intro ---------- */
.shop-seo-intro {
    max-width: 720px;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--wh-border);
}

.shop-seo-intro p {
    color: var(--wh-text-light);
    line-height: 1.8;
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}

.shop-seo-intro p:last-child {
    margin-bottom: 0;
}

.shop-seo-intro a {
    color: var(--wh-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Contact Page ---------- */
.contact-page {
    padding: 3rem 0 4rem;
}

.contact-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.contact-intro {
    color: var(--wh-text-light);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.contact-form-wrap {
    max-width: 600px;
    margin-bottom: 3rem;
}

.contact-response-time {
    color: var(--wh-text-light);
    font-size: 0.88rem;
    margin-top: 1rem;
}

.contact-info {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--wh-border);
    max-width: 600px;
}

.contact-info-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.contact-info-item a {
    color: var(--wh-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 480px) {
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ---------- About Page ---------- */
.about-page {
    padding: 3rem 0 4rem;
}

.about-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.about-tagline {
    color: var(--wh-text-light);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Banner images — cropped to landscape strip */
.about-banner {
    margin-bottom: 3rem;
    border-radius: var(--wh-radius-lg);
    overflow: hidden;
}

.about-banner-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.about-caption {
    font-size: 0.85rem;
    color: var(--wh-text-light);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Story rows — text + image side by side */
.about-row {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-row--reverse {
    flex-direction: row-reverse;
}

.about-row-text {
    flex: 1 1 55%;
}

.about-row-text p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-row-text p:last-child {
    margin-bottom: 0;
}

.about-row-image {
    flex: 1 1 40%;
}

.about-row-image img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--wh-radius-lg);
    display: block;
}

/* Workshop section — 3-column behind-the-scenes grid */
.about-workshop {
    margin-bottom: 3rem;
}

.about-workshop-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.about-workshop-intro {
    color: var(--wh-text-light);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.about-workshop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.about-workshop-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--wh-radius-lg);
    display: block;
}

/* Closing section */
.about-closing {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 1rem;
}

.about-closing p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .about-row,
    .about-row--reverse {
        flex-direction: column;
    }

    .about-row-image img {
        max-height: 300px;
    }

    .about-banner-img {
        height: 280px;
    }

    .about-cta {
        flex-direction: column;
        align-items: center;
    }

    .about-workshop-grid {
        grid-template-columns: 1fr;
    }

    .about-workshop-item img {
        height: 220px;
    }
}

/* ---------- Testimonial (single Etsy review) ---------- */
.home-testimonial {
    padding: 6rem 0;
    background: var(--wh-bg);
}

.testimonial-figure {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.testimonial-stars {
    display: inline-flex;
    gap: 4px;
    color: var(--wh-accent);
    margin-bottom: 1.5rem;
}

.testimonial-quote {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.5;
    font-weight: 300;
    font-style: italic;
    color: var(--wh-text);
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.01em;
}

.testimonial-attribution {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.95rem;
    color: var(--wh-text);
}

.testimonial-name {
    font-weight: 500;
}

.testimonial-meta {
    font-size: 0.85rem;
    color: var(--wh-muted, #8a7f6f);
    letter-spacing: 0.04em;
}

.testimonial-meta a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.testimonial-meta a:hover {
    color: var(--wh-accent);
}

@media (max-width: 768px) {
    .home-testimonial { padding: 4rem 0; }
    .testimonial-quote { font-size: 1.15rem; }
}

/* ---------- Product story / pairing / care sections ---------- */
/* Rendered by template-parts/product-content.php on single-product pages,
   hooked via woocommerce_after_single_product_summary at priority 15. */
.hag-product-story {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}
.hag-product-story > div {
    margin-bottom: 2.5rem;
}
.hag-product-story > div:last-child {
    margin-bottom: 0;
}
.hag-product-story h2 {
    font-size: 1.35rem;
    margin: 0 0 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.hag-product-story p {
    font-size: 1.02rem;
    line-height: 1.65;
    color: #333;
    margin: 0 0 0.75rem;
}
.hag-wood-specs {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1.5rem;
    margin: 1rem 0 0;
    font-size: 0.95rem;
}
.hag-wood-specs dt {
    font-weight: 600;
    color: #555;
}
.hag-wood-specs dd {
    margin: 0;
    color: #333;
}
@media (max-width: 640px) {
    .hag-product-story {
        margin: 2rem auto;
    }
    .hag-product-story h2 {
        font-size: 1.2rem;
    }
    .hag-wood-specs {
        grid-template-columns: max-content 1fr;
        gap: 0.35rem 1rem;
    }
}
