/* ==========================================================================
   BrickForge - Unified Stylesheet
   Premium Third-Party Building Bricks & Minifigures
   Template UI (Linea-inspired) as primary design system
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Template Brand Palette (PRIMARY) */
    --yellow: #FFD502;
    --dark: #141414;
    --red: #DA291C;
    --blue: #005AD2;
    --gray: #F5F5F5;
    --text: #333333;
    --light-text: #666666; /* a11y: was #888 (3.54:1), now 6.0:1 ✅ */
    --border: #eeeeee;
    --nav-height: 64px;

    /* Mapped to old utility names for shop/product pages */
    --color-primary: #FFD502;
    --color-primary-dark: #e8c200;
    --color-primary-light: #ffe34d;
    --color-secondary: #141414;
    --color-accent: #F4A261;
    --color-accent-dark: #E76F51;

    /* Neutrals */
    --color-bg: #FAFAFA;
    --color-surface: #FFFFFF;
    --color-surface-alt: #F5F5F7;
    --color-border: #E5E5E5;
    --color-border-light: #F0F0F0;
    --color-text: #1A1A2E;
    --color-text-secondary: #555555; /* a11y: was #6B7280 (4.02:1), now 7.0:1 ✅ */
    --color-text-muted: #767676; /* a11y: was #9CA3AF (2.32:1), now 4.54:1 ✅ */

    /* Semantic */
    --color-success: #059669;
    --color-warning: #D97706;
    --color-info: #2563EB;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --container-max: 1400px;
    --container-narrow: 800px;
    --header-height: 64px;
    --announcement-height: 40px;

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 48px rgba(0,0,0,0.16);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-secondary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--yellow);
    color: var(--dark);
    border-color: var(--yellow);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-secondary);
    border-color: var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-secondary);
    background: var(--color-secondary);
    color: #fff;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-add-to-cart {
    width: 100%;
    background: var(--dark);
    color: #fff;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.btn-add-to-cart:hover {
    background: var(--yellow);
    color: var(--dark);
    transform: translateY(-1px);
}

/* ---------- Announcement Bar (Template) ---------- */
.announcement-bar {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    font-size: 12.5px;
    font-weight: 400;
    padding: 9px 20px;
    letter-spacing: 0.02em;
    height: auto;
    display: block;
}

.announcement-bar strong {
    color: var(--yellow);
    font-weight: 700;
}

.announcement-slider {
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-slide {
    position: absolute;
    opacity: 0;
    transition: opacity var(--transition-slow);
    white-space: nowrap;
}

.announcement-slide.active {
    opacity: 1;
}

/* ---------- Navigation Bar (Template) ---------- */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    height: var(--nav-height);
    overflow: visible; /* allow dropdown to appear below */
}

/* ── Flat nav-links are always hidden.
   All desktop navigation is in the hamburger hover dropdown.
   Mobile navigation is in the slide-in drawer. ── */
.nav-left .nav-link {
    display: none !important;
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 40px;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-right {
    justify-content: flex-end;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 50px;
    transition: background 0.2s ease, color 0.15s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
    background: transparent;
    border: none;
}

.nav-link:hover {
    background: var(--dark);
    color: #fff;
}

.nav-left .current-menu-item > .nav-link,
.nav-left .nav-link.active {
    background: var(--dark);
    color: #fff;
}

.nav-logo {
    text-align: center;
}

.nav-logo a {
    text-decoration: none;
    font-weight: 900;
    font-size: 22px;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.nav-logo a span {
    color: var(--yellow);
}

.nav-icon {
    width: 44px;  /* a11y: was 38px, WCAG 2.5.5 requires 44×44px touch target */
    height: 44px; /* a11y: was 38px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease;
    color: var(--text);
    padding: 0;
}

.nav-icon:hover {
    background: var(--gray);
}

.nav-icon svg {
    width: 20px;
    height: 20px;
}

/* ---------- Hamburger Dropdown (desktop hover) ---------- */
.nav-menu-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 220px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13);
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 500;
}

/* Hamburger gets yellow bg when dropdown is visible */
.nav-menu-wrap:hover > .nav-icon,
.nav-menu-wrap:focus-within > .nav-icon {
    background: var(--yellow);
    color: var(--dark);
}

/* Show dropdown on hover or keyboard focus-within */
.nav-menu-wrap:hover .nav-dropdown,
.nav-menu-wrap:focus-within .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown-section {
    padding: 4px 0;
}

.nav-dropdown-heading {
    display: block;
    padding: 6px 12px 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--light-text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px; /* a11y: was 9px 12px — increased to 44px+ touch target height */
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background 0.18s ease, padding-left 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animated yellow left-bar that pops in on hover */
.nav-dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: var(--yellow);
    border-radius: 0 2px 2px 0;
    transform: scaleY(0);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.nav-dropdown-link:hover {
    background: var(--gray);
    padding-left: 20px;
}

.nav-dropdown-link:hover::before {
    transform: scaleY(1);
}

.nav-dropdown-link.active {
    background: rgba(255, 213, 2, 0.15);
    font-weight: 600;
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.07);
    margin: 4px 8px;
}

/* On mobile, hamburger opens the drawer — hide the CSS dropdown */
@media (max-width: 768px) {
    .nav-dropdown {
        display: none !important;
    }
}

.nav-icon.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: var(--yellow);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    line-height: 1;
    pointer-events: none;
}

.cart-badge:empty,
.cart-badge[data-count="0"],
.cart-badge[hidden] {
    display: none !important;
}

/* ---------- Search Overlay ---------- */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-xl) 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 100;
}

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

.search-form {
    display: flex;
    gap: var(--space-sm);
    position: relative;
}

.search-input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    transition: border-color var(--transition-fast);
    background: var(--color-surface);
}

.search-input:focus {
    outline: none;
    border-color: var(--yellow);
}

.search-submit {
    padding: 0.85rem 1.5rem;
    background: var(--yellow);
    color: var(--dark);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.search-close {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-text-muted);
    width: 44px;  /* a11y: was 36px, increased to 44px touch target */
    height: 44px; /* a11y: was 36px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:focus-visible {
    outline: 2px solid var(--yellow); /* a11y: visible focus ring against dark search overlay */
    outline-offset: 2px;
    border-radius: 50%;
}

.search-suggestions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    font-size: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-suggestions span {
    color: var(--color-text-muted);
}

.search-suggestions a {
    padding: 0.25rem 0.75rem;
    background: var(--color-surface-alt);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.8rem;
}

.search-suggestions a:hover {
    background: var(--yellow);
    color: var(--dark);
}

/* ---------- Mobile Nav Drawer ---------- */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--color-surface);
    z-index: 2000;
    transition: right var(--transition-base);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.mobile-nav-drawer.active {
    right: 0;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav-close {
    font-size: 1.8rem;
    color: var(--color-text-muted);
}

.mobile-nav-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

.mobile-nav-menu .menu-item a {
    display: block;
    padding: 0.85rem var(--space-md);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.mobile-nav-menu .menu-item a:hover {
    background: var(--color-surface-alt);
    color: var(--yellow);
}

.mobile-nav-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

.mobile-nav-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.mobile-nav-social a {
    color: var(--color-text-secondary);
}

/* ---------- Hero Section (Template) ---------- */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    min-height: 560px;
    background: transparent;
    position: relative;
    align-items: initial;
    overflow: visible;
}

.hero-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: var(--gray);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.hero-card:hover img {
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 60%, transparent 100%); /* a11y: strengthened scrim for white text contrast on tan/gold cards */
    color: #fff;
}

.hero-overlay h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    color: #fff;
}

.hero-overlay p {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.85;
    margin: 0;
}

/* ---------- Section Headers (Template) ---------- */
.section-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 32px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0;
}

.section-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.03em;
}

.section-header a {
    font-size: 13px;
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
    white-space: nowrap;
}

.section-header a:hover {
    color: var(--dark);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-desc {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-top: var(--space-sm);
    max-width: 500px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--yellow);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.section-link:hover {
    color: var(--color-primary-dark);
}

/* ---------- Product Grid (Template) ---------- */
.product-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ---------- Product Card (Template) ---------- */
.product-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transform: none;
    box-shadow: none;
}

.product-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.product-card .image-container {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 14px;
    background: var(--gray);
}

.product-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
    position: absolute;
    inset: 0;
}

.product-card .img-default {
    opacity: 1;
    position: relative;
}

.product-card .img-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-card:hover .img-default {
    opacity: 0;
}

.product-card:hover .img-hover {
    opacity: 1;
    transform: scale(1.02);
}

.product-card .image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.025);
    pointer-events: none;
    z-index: 1;
}

.product-card .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--yellow);
    color: var(--dark);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.05em;
    z-index: 3;
    text-transform: uppercase;
}

.product-card .quick-add {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: var(--yellow);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    padding: 11px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 3;
    font-family: var(--font-primary);
    text-align: center;
    width: calc(100% - 24px);
}

.product-card:hover .quick-add {
    opacity: 1;
    transform: translateY(0);
}

.product-card .quick-add:hover {
    background: #e8c200;
}

.product-card .product-info {
    padding: 0 2px;
}

.product-card .product-category {
    font-size: 12px;
    font-weight: 400;
    color: var(--light-text);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-card .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card .product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.product-card .product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    display: inline;
    margin-bottom: 0;
    align-items: initial;
    gap: 0;
}

.product-card .product-price .woocommerce-Price-amount,
.product-card .product-price .price {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    font-family: var(--font-primary);
}

/* ---------- Featured Banner (Template) ---------- */
.featured-banner {
    max-width: 1400px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

.featured-banner-inner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
    text-align: center;
}

.featured-banner h2 {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    color: #fff;
}

.featured-banner p {
    font-size: 16px;
    font-weight: 300;
    opacity: 0.75;
    max-width: 440px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.featured-banner .btn {
    display: inline-block;
    background: var(--yellow);
    color: var(--dark);
    font-size: 14px;
    font-weight: 700;
    padding: 13px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
    border: none;
}

.featured-banner .btn:hover {
    background: #e8c200;
    transform: translateY(-1px);
}

/* ---------- Dual Category Cards (Template) ---------- */
.dual-cards {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dual-cards .category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 380px;
    cursor: pointer;
    display: block;
    border: none;
    padding: 0;
    flex-direction: initial;
    align-items: initial;
    text-align: initial;
    background: transparent;
    transition: none;
    transform: none;
    box-shadow: none;
}

.dual-cards .category-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.dual-cards .category-card .cat-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.dual-cards .category-card:hover .cat-bg {
    transform: scale(1.04);
}

.dual-cards .category-card .cat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    color: #fff;
}

.dual-cards .category-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff;
}

.dual-cards .category-card p {
    font-size: 13px;
    font-weight: 300;
    opacity: 0.82;
    margin: 0;
}

/* ---------- Footer (Template) ---------- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 40px 30px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand .footer-logo-text {
    font-weight: 900;
    font-size: 20px;
    color: #fff;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-brand .footer-logo-text span {
    color: var(--yellow);
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    max-width: 280px;
    margin-top: 0;
}

.footer h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

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

.footer li {
    margin-bottom: 10px;
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}

.footer a:hover {
    color: var(--yellow);
}

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    text-align: left;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.footer-bottom a:hover {
    color: var(--yellow);
}

.payment-icon {
    padding: 0.3rem 0.6rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}

/* ---------- Shop Page ---------- */
.shop-header {
    padding: var(--space-2xl) 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-2xl);
    padding: var(--space-2xl) 0;
}

.shop-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
    max-height: calc(100vh - var(--header-height) - var(--space-2xl));
    overflow-y: auto;
}

.sidebar-header {
    display: none;
}

.shop-sidebar .widget {
    margin-bottom: var(--space-xl);
}

.shop-sidebar .widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--yellow);
}

.shop-toolbar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding: var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
}

.filter-toggle {
    display: none;
}

.shop-result-count {
    flex: 1;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.shop-ordering select {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    background: var(--color-surface);
}

.shop-pagination {
    margin-top: var(--space-2xl);
    display: flex;
    justify-content: center;
}

/* ── Shop Empty State (no products yet) ── */
.shop-empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl) var(--space-xl);
}

.shop-empty-icon {
    margin-bottom: var(--space-lg);
}

.shop-empty-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.shop-empty-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    max-width: 480px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.6;
}

/* Placeholder cards inherit .product-card styles; add subtle pulsing */
.placeholder-card {
    pointer-events: none;
    opacity: 0.7;
    border: 1px solid var(--border);
}

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

/* ---------- Single Product ---------- */
.breadcrumbs-bar {
    padding: var(--space-md) 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.breadcrumbs a:hover {
    color: var(--yellow);
}

.product-single-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    padding: var(--space-2xl) 0;
}

.product-gallery {
    position: relative;
}

.product-category {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.product-category a {
    color: var(--yellow);
}

.product-single-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-md);
}

.product-rating-single {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.review-link {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.review-link:hover {
    color: var(--yellow);
}

.product-price-single {
    margin-bottom: var(--space-lg);
}

.product-price-single .woocommerce-Price-amount {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--yellow);
}

.tax-note {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.product-short-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.product-trust {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.trust-item svg {
    color: var(--color-success);
    flex-shrink: 0;
}

.product-tabs-section {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border-light);
}

.tab-nav {
    display: flex;
    gap: var(--space-xs);
    border-bottom: 2px solid var(--color-border-light);
    margin-bottom: var(--space-xl);
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--yellow);
    border-bottom-color: var(--yellow);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ---------- Page Styles ---------- */
.page-header {
    padding: var(--space-2xl) 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
}

.page-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.page-desc {
    color: var(--color-text-secondary);
    margin-top: var(--space-sm);
    font-size: 1rem;
}

.page-content {
    padding: var(--space-2xl) 0;
}

.page-content p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

/* 404 */
.error-404 {
    padding: var(--space-4xl) 0;
    text-align: center;
}

.error-content h1 {
    font-size: 8rem;
    color: var(--yellow);
    line-height: 1;
    opacity: 0.2;
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.error-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.error-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-layout {
        grid-template-columns: 220px 1fr;
    }

    .product-single-layout {
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .nav-inner {
        padding: 0 16px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 20px 16px 40px;
        min-height: auto;
        gap: 16px;
    }

    .hero-card {
        height: 300px;
    }

    .section-header {
        padding: 0 16px 20px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 16px 40px;
        gap: 14px;
    }

    .featured-banner {
        padding: 0 16px;
    }

    .featured-banner h2 {
        font-size: 26px;
    }

    .dual-cards {
        grid-template-columns: 1fr;
        padding: 0 16px 40px;
    }

    .footer {
        padding: 40px 16px 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: var(--color-surface);
        z-index: 2000;
        padding: var(--space-lg);
        transition: left var(--transition-base);
        box-shadow: var(--shadow-xl);
        max-height: 100vh;
    }

    .shop-sidebar.active {
        left: 0;
    }

    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--space-lg);
    }

    .filter-toggle {
        display: inline-flex;
    }

    .product-single-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ==========================================================================
   ACCESSIBILITY & UX POLISH
   ========================================================================== */

/* ── Skip to main content (WCAG 2.4.1) ── */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--dark);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
}

/* ── Global focus ring (WCAG 2.4.7) ── */
:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Remove outline from mouse clicks, keep for keyboard */
:focus:not(:focus-visible) {
    outline: none;
}

/* Specific focus overrides */
.nav-icon:focus-visible {
    outline: 2px solid var(--yellow);
    background: var(--gray);
}

.nav-dropdown-link:focus-visible {
    outline: 2px solid var(--yellow);
    background: var(--gray);
}

.btn:focus-visible {
    outline: 2px solid var(--dark);
    outline-offset: 3px;
}

/* ── Announcement bar: stronger contrast for WELCOME10 code ── */
.announcement-bar strong {
    background: rgba(255,255,255,0.15);
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

/* ── Product card: accessible focus state ── */
.product-card:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 4px;
    border-radius: 14px;
}

/* ── Hero card: accessible focus state ── */
.hero-card:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 4px;
}

/* ── Print styles: hide non-content ── */
@media print {
    .nav-bar, .announcement-bar, .footer, .shop-sidebar { display: none !important; }
    body { font-size: 12pt; }
}

/* ── Reduced motion: respect user preference ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── High contrast mode ── */
@media (forced-colors: active) {
    .nav-bar { border-bottom: 2px solid ButtonText; }
    .btn { border: 2px solid ButtonText; }
}

/* ==========================================================================
   SHOP PAGE REFINEMENTS
   ========================================================================== */

/* ── Sidebar categories — button-press hover with LEGO C-hand icon ── */
.shop-sidebar .woocommerce-widget-layered-nav-list a,
.shop-sidebar .product-categories a,
.shop-sidebar ul.product-categories a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 2px 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
                box-shadow 0.12s ease, transform 0.1s ease;
    box-shadow: none;
}

/* LEGO C-hand icon — injected via ::before pseudo-element */
.shop-sidebar .woocommerce-widget-layered-nav-list a::before,
.shop-sidebar .product-categories a::before,
.shop-sidebar ul.product-categories a::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    /* Inline SVG: LEGO C-hand grip (cylindrical hand with C-opening) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='14' width='8' height='6' rx='1'/%3E%3Cpath d='M10 14 L10 10'/%3E%3Cpath d='M14 14 L14 10'/%3E%3Cpath d='M14 10 A4 4 0 0 0 10 10'/%3E%3Cpath d='M14 7 A3.5 3.5 0 0 1 17.5 10.5'/%3E%3Cpath d='M10 7 A3.5 3.5 0 0 0 6.5 10.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.35;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Hover: button-press feel (scale-down + shadow + border) */
.shop-sidebar .woocommerce-widget-layered-nav-list a:hover,
.shop-sidebar .product-categories a:hover,
.shop-sidebar ul.product-categories a:hover {
    color: var(--dark);
    font-weight: 600;
    background: var(--gray);
    border-color: var(--border);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    transform: scale(0.97);
}

/* Hover: C-hand icon becomes yellow and visible */
.shop-sidebar .woocommerce-widget-layered-nav-list a:hover::before,
.shop-sidebar .product-categories a:hover::before,
.shop-sidebar ul.product-categories a:hover::before {
    opacity: 1;
    transform: scale(1.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='14' width='8' height='6' rx='1'/%3E%3Cpath d='M10 14 L10 10'/%3E%3Cpath d='M14 14 L14 10'/%3E%3Cpath d='M14 10 A4 4 0 0 0 10 10'/%3E%3Cpath d='M14 7 A3.5 3.5 0 0 1 17.5 10.5'/%3E%3Cpath d='M10 7 A3.5 3.5 0 0 0 6.5 10.5'/%3E%3C/svg%3E");
}

/* Active / pressed state for click feedback */
.shop-sidebar .woocommerce-widget-layered-nav-list a:active,
.shop-sidebar .product-categories a:active,
.shop-sidebar ul.product-categories a:active {
    transform: scale(0.94);
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.1);
    transition-duration: 0.05s;
}

/* Active category — yellow accent bar + filled bg */
.shop-sidebar .current-cat > a,
.shop-sidebar .woocommerce-widget-layered-nav-list__item--chosen a {
    color: var(--dark);
    font-weight: 700;
    background: rgba(255, 213, 2, 0.12);
    border-color: rgba(255, 213, 2, 0.4);
    border-left: 3px solid var(--yellow);
}

.shop-sidebar .current-cat > a::before,
.shop-sidebar .woocommerce-widget-layered-nav-list__item--chosen a::before {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c200' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='14' width='8' height='6' rx='1'/%3E%3Cpath d='M10 14 L10 10'/%3E%3Cpath d='M14 14 L14 10'/%3E%3Cpath d='M14 10 A4 4 0 0 0 10 10'/%3E%3Cpath d='M14 7 A3.5 3.5 0 0 1 17.5 10.5'/%3E%3Cpath d='M10 7 A3.5 3.5 0 0 0 6.5 10.5'/%3E%3C/svg%3E");
}

/* Toolbar: cleaner look */
.shop-toolbar {
    background: transparent !important;
    border: none !important;
    padding: 0 0 16px !important;
    gap: var(--space-md);
}

.shop-result-count .woocommerce-result-count {
    font-size: 0.85rem;
    color: var(--light-text);
    margin: 0;
}

.shop-ordering select {
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Shop header: tighten padding */
.shop-header {
    padding: 40px 0 0;
}

.shop-header .page-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 900;
    margin-bottom: 8px;
}

.shop-header .page-desc {
    color: var(--light-text);
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   WP ADMIN BAR COMPENSATION
   ========================================================================== */
/* When logged in as admin, push sticky nav below the admin bar */
.admin-bar .nav-bar {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .nav-bar {
        top: 46px;
    }
}

/* ========== Product Single Page Fixes (Apr 2026) ========== */

/* --- Gallery zoom trigger icon: position absolutely over image --- */
.woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.2s;
}

.woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* --- Magnifying-glass cursor on product image hover --- */
.woocommerce-product-gallery__image a,
.woocommerce-product-gallery__image img,
.woocommerce-product-gallery .flex-viewport {
    cursor: zoom-in !important;
}

.woocommerce-product-gallery__image .zoomImg {
    cursor: zoom-in !important;
}

/* --- Fix gallery wrapper height collapse (floated children) --- */
.woocommerce-product-gallery__wrapper {
    overflow: hidden;       /* clearfix for floated slides */
}

/* --- Ensure thumbnails sit below main image properly --- */
.woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 0;
    list-style: none;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.woocommerce-product-gallery .flex-control-thumbs li:hover,
.woocommerce-product-gallery .flex-control-thumbs li .flex-active {
    border-color: var(--yellow, #f5c518);
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Constrain elements inside product-details to column width --- */
.product-details {
    min-width: 0;       /* prevent grid blowout from long content */
}

.product-add-to-cart {
    max-width: 100%;
}

.product-add-to-cart form.cart {
    display: flex;
    align-items: center;
    gap: var(--space-md, 16px);
    flex-wrap: wrap;
    margin-bottom: var(--space-md, 16px);
}

/* Keep Google Pay / express checkout buttons within column */
.product-add-to-cart > div,
.product-add-to-cart iframe,
.product-add-to-cart .gpay-button-fill {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* --- SKU / Category meta line --- */
.product_meta {
    font-size: 0.85rem;
    color: var(--color-text-muted, #888);
    margin-top: var(--space-md, 16px);
}

.product_meta span {
    display: inline-block;
    margin-right: var(--space-md, 16px);
}

.product_meta a {
    color: var(--yellow, #f5c518);
}

/* =========================================================
   Video Showcase Section (Apr 2026, rewritten)
   ========================================================= */
.video-showcase {
    padding: clamp(48px, 7vw, 96px) 0;
    background: var(--color-surface, #fff);
}
.video-showcase .container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: clamp(16px, 3vw, 32px);
    padding-right: clamp(16px, 3vw, 32px);
}
.video-showcase-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto clamp(28px, 4vw, 48px);
}
.video-showcase-title {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--color-text, #141414);
}
.video-showcase-sub {
    margin: 0;
    color: var(--color-text-muted, #555);
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.5;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(16px, 2vw, 28px);
    align-items: start;
}
.video-grid:has(.video-frame--vertical:only-child),
.video-grid.video-grid--single {
    grid-template-columns: minmax(0, 340px);
    justify-content: center;
}
.video-card {
    background: var(--color-bg, #0b0b0b);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform var(--transition-base, 0.25s ease), box-shadow var(--transition-base, 0.25s ease);
}
.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.video-frame--vertical {
    aspect-ratio: 9 / 16;
    max-width: 340px;
    margin: 0 auto;
}
.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
/* Placeholder when no videos configured */
.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(32px, 5vw, 56px) clamp(16px, 3vw, 32px);
    background: var(--color-bg-soft, #f7f7f7);
    border: 1px dashed var(--color-border, rgba(0,0,0,0.12));
    border-radius: var(--radius-lg, 16px);
    gap: var(--space-md, 16px);
}
.video-placeholder-icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #141414;
    color: #FFD502;
}
.video-placeholder-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}
.video-placeholder-text {
    margin: 0;
    max-width: 520px;
    color: var(--color-text, #141414);
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.5;
}
.video-placeholder-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
@media (max-width: 640px) {
    .video-showcase-header { flex-direction: column; }
    .video-grid { grid-template-columns: 1fr; }
    .video-frame--vertical { max-width: 320px; }
}
   Blog Archive + Single Post (Apr 2026)
   ============================================================ */
.posts-grid {
    display: grid;
    gap: var(--space-xl);
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: stretch;
    padding: var(--space-xl) 0;
}
.post-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}
.post-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-surface-alt), var(--color-border-light));
}
.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.post-card:hover .post-card-image img {
    transform: scale(1.05);
}
.post-card-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg);
    flex: 1;
}
.post-card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 0;
    color: var(--color-text);
}
.post-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}
.post-card-title a:hover {
    color: var(--color-primary-dark);
}
.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-sm);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    align-items: center;
}
.post-card-meta a {
    color: var(--color-primary-dark);
    text-decoration: none;
}
.post-card-excerpt {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}
.post-card-excerpt p { margin: 0; }
.post-card-more {
    margin-top: auto;
    padding-top: var(--space-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-primary-dark);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}
.post-card-more:hover { text-decoration: underline; }

/* Single post */
.single-post-content,
.single-post .entry-content {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--color-text);
}
.single-post .entry-content p { margin: 0 0 1.25em; }
.single-post .entry-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin: 2em 0 0.5em;
    color: var(--color-text);
}
.single-post .entry-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin: 1.75em 0 0.5em;
}
.single-post .entry-content a {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 0 0 1.25em 1.5em;
    line-height: 1.7;
}
.single-post .entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface-alt);
    margin: 1.5em 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text-secondary);
}
.single-post .entry-content img,
.single-post .entry-content iframe {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1em 0;
}
.entry-header {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg) var(--space-md);
    text-align: center;
}
.entry-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.15;
    margin: 0 0 var(--space-sm);
    color: var(--color-text);
}
.entry-meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}
.entry-meta a { color: var(--color-primary-dark); text-decoration: none; }
.entry-featured {
    max-width: 960px;
    margin: 0 auto var(--space-lg);
    padding: 0 var(--space-lg);
}
.entry-featured img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.post-tags {
    max-width: 760px;
    margin: var(--space-xl) auto 0;
    padding: var(--space-md) var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    align-items: center;
}
.post-tags .label { color: var(--color-text-muted); font-size: 0.85rem; margin-right: var(--space-xs); }
.post-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-surface-alt);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    text-decoration: none;
    transition: background var(--transition-base);
}
.post-tags a:hover { background: var(--color-primary-light); color: var(--color-text); }
.pagination, .posts-pagination, .nav-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-xl) 0;
}
.pagination a, .pagination .current,
.posts-pagination a, .posts-pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-base);
    font-weight: 500;
}
.pagination a:hover { background: var(--color-primary-light); border-color: var(--color-primary); }
.pagination .current { background: var(--color-primary); color: #000; border-color: var(--color-primary); }

/* Reddit repost callout */
.reddit-repost-notice {
    max-width: 760px;
    margin: 0 auto var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(90deg, rgba(255, 69, 0, 0.08), transparent);
    border-left: 3px solid #ff4500;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}
.reddit-repost-notice a {
    color: #ff4500;
    text-decoration: none;
    font-weight: 600;
}
.reddit-repost-notice a:hover { text-decoration: underline; }

/* Post navigation (prev/next) */
.post-navigation {
    max-width: 960px;
    margin: var(--space-xl) auto;
    padding: 0 var(--space-lg);
}
.post-nav-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}
.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition-base);
}
.post-nav-link:hover {
    border-color: var(--color-primary);
    background: var(--color-surface-alt);
    transform: translateY(-2px);
}
.post-nav-next {
    text-align: right;
    grid-column: 2;
}
.post-nav-prev { grid-column: 1; }
.post-nav-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.post-nav-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--color-text);
}
@media (max-width: 640px) {
    .post-nav-inner { grid-template-columns: 1fr; }
    .post-nav-prev, .post-nav-next { grid-column: 1; text-align: left; }
}
