/* WoWood Shop — layout, header, single top bar, WooCommerce basics */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --wow-color-topbar-bg: #1a1a1a;
    --wow-color-topbar-text: #f4f1ec;
    --wow-color-header-bg: #ffffff;
    --wow-color-header-border: #eceae6;
    --wow-color-body-bg: #faf9f7;
    --wow-color-body-text: #2b2b2b;
    --wow-color-primary: #1a1a1a;
    --wow-color-accent: #b42318;
    --wow-radius-button: 8px;
    --wow-radius-card: 12px;
    --wow-header-logo-max: 48px;
    --wow-marquee-duration: 40s;
    --wow-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Body typography/colors come from wowood-v4.css on all pages. */

.site-main a:not(.wow-btn):not(.button):not(.woocommerce-LoopProduct-link):not(.product-card-link):not(.product-btn):not(.category-card):not(.btn),
.wow-card a,
.wow-page a,
.wow-sidebar a {
    color: var(--wow-color-primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.site-main a:not(.wow-btn):not(.button):not(.product-card-link):not(.product-btn):not(.category-card):not(.btn):hover,
.wow-card a:hover,
.wow-page a:hover,
.wow-sidebar a:hover {
    color: var(--wow-color-accent);
}

img,
video {
    max-width: 100%;
    height: auto;
}

.wow-wrap,
.site-footer__inner {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.wow-button,
button[type="submit"]:not(.newsletter-submit),
input[type="submit"]:not(.newsletter-submit),
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    border-radius: var(--wow-radius-button) !important;
    font-weight: 600 !important;
}

/* --- Main & cards --- */
.site-main {
    padding: 0;
}

.wow-card,
.wow-page {
    background: #fff;
    border: 1px solid #ebe6df;
    border-radius: var(--wow-radius-card);
    padding: 24px;
    margin-bottom: 24px;
}

.entry-title {
    margin-top: 0;
}

.wow-sidebar .widget {
    background: #fff;
    border: 1px solid #ebe6df;
    border-radius: var(--wow-radius-card);
    padding: 16px 18px;
    margin-bottom: 18px;
}

.wow-sidebar .widget-title {
    margin-top: 0;
    font-size: 1rem;
}

/* --- WooCommerce --- */
.wow-woo-main .woocommerce-breadcrumb {
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 20px;
    font-size: 13px;
}

.wow-woo-wrap {
    max-width: var(--container-max, 1280px);
    margin: 0 auto;
    padding: 0 var(--container-pad, 20px) 40px;
}

.wow-woo-main {
    background: var(--color-cream, #FBF7F0);
}

body:not(.wow-shop-archive) .woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

body:not(.wow-shop-archive) .woocommerce ul.products li.product {
    background: #fff;
    border: 1px solid #ebe6df;
    border-radius: var(--wow-radius-card);
    padding: 14px;
}

@media (max-width: 900px) {
    body:not(.wow-shop-archive) .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    body:not(.wow-shop-archive) .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

.woocommerce span.onsale {
    border-radius: 6px;
    background: var(--wow-color-accent);
}

.woocommerce div.product .product_title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

/* --- Utilities --- */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    word-wrap: normal !important;
}

.skip-link:focus {
    clip: auto !important;
    clip-path: none;
    height: auto;
    width: auto;
    left: 10px;
    top: 10px;
    z-index: 100000;
    padding: 12px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

#page.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#page.site #colophon {
    margin-top: auto;
}

/* Header logo from Site Identity */
.brand.custom-logo-link,
.brand-logo,
.brand-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
}

.brand.custom-logo-link img,
.brand-logo img,
.brand .custom-logo {
    max-height: var(--wow-header-logo-max, 48px);
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Desktop header — slightly larger logo, menu, icons */
@media (min-width: 861px) {
    .site-header .brand.custom-logo-link img,
    .site-header .brand .custom-logo,
    .site-header .brand-logo img {
        max-height: min(72px, calc(var(--wow-header-logo-max, 48px) * 1.2));
    }

    .site-header .brand-mark {
        width: 38px;
        height: 38px;
    }

    .site-header .brand > span:not(.brand-mark):not(.brand-logo) {
        font-size: 1.35rem;
    }

    .site-header .nav-links a {
        font-size: 1.0625rem;
        font-weight: 600;
    }

    .site-header .nav-actions .icon-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .site-header .nav-actions .icon-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* Mobile menu — full-page overlay handled in wowood-v4.css */
