/*
Theme Name: HUPPA
Theme URI: https://huppa.eu
Author: HUPPA
Author URI: https://huppa.eu
Description: Official HUPPA e-commerce theme for WooCommerce
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: huppa
Tags: e-commerce, woocommerce, custom-menu

WooCommerce-powered theme for HUPPA outerwear brand.
*/

/* ==========================================================================
   0. CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
    /* Colors */
    --color-accent: #E8632B;
    --color-accent-hover: #d4551f;
    --color-bg: #FFFFFF;
    --color-white: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-light: #6B6B6B;
    --color-text-muted: #999999;
    --color-border: #E0DEDA;
    --color-border-light: #EAEAEA;
    --color-sale: #D32F2F;

    /* Typography */
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-black: 900;

    /* Spacing */
    --container-max: 1200px;
    --container-padding: 20px;
    --gap-sm: 8px;
    --gap-md: 16px;
    --gap-lg: 24px;
    --gap-xl: 40px;

    /* Borders */
    --radius-card: 12px;
    --radius-btn: 24px;
    --radius-sm: 6px;
    --radius-filter: 8px;

    /* Header */
    --header-height: 60px;
    --subnav-height: 48px;

    /* Sidebar */
    --sidebar-width: 240px;
}

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

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

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
}

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

ul, ol {
    list-style: none;
}

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

input, select {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   2. Layout
   ========================================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border-light);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--gap-lg);
}

/* Logo */
.site-logo a {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 28px;
    width: auto;
}

.site-logo .logo-text {
    font-weight: var(--font-weight-black);
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--color-text);
}

/* Primary Navigation */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: space-evenly;
}

.primary-nav a {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    border-radius: var(--radius-btn);
    transition: all 0.2s ease;
}

.primary-nav a:hover {
    color: var(--color-accent);
}

.primary-nav a.active,
.primary-nav a.current-menu-item > a,
.primary-nav .current-menu-item > a {
    background: var(--color-accent);
    color: var(--color-white);
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-text);
    transition: color 0.2s ease;
    position: relative;
}

.header-icon:hover {
    color: var(--color-accent);
}

.header-icon svg {
    width: 22px;
    height: 22px;
}

.header-icon .cart-count {
    position: absolute;
    top: 0;
    right: -2px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-switcher {
    position: relative;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 0;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 60px;
    overflow: hidden;
}

.language-switcher.is-open .lang-dropdown {
    display: block;
}

.lang-option {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    cursor: default;
    transition: background 0.15s ease;
}

.lang-option.is-active {
    background: var(--color-bg-alt, #f5f5f5);
    font-weight: var(--font-weight-bold);
}

.lang-option.is-disabled {
    color: var(--color-text-muted);
    opacity: 0.5;
}

/* Mobile menu toggle (hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    border: none;
    background: none;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(2) { transform: translateY(0); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-2px) rotate(-45deg);
}

/* Nav overlay footer — hidden on desktop */
.primary-nav__footer {
    display: none;
}

/* Desktop: .primary-nav__links is just a flex wrapper */
.primary-nav__links {
    display: contents;
}

/* ==========================================================================
   4. Shop Sub-Navigation
   ========================================================================== */
.shop-subnav {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border-light);
}

.shop-subnav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--subnav-height);
}

.subnav-categories {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
}

.subnav-categories a {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.subnav-categories a:hover {
    color: var(--color-accent);
}

.subnav-categories a.active {
    border-bottom-color: var(--color-text);
    font-weight: var(--font-weight-bold);
}

.subnav-categories a.sale-link {
    color: var(--color-sale);
    font-weight: var(--font-weight-bold);
}

.subnav-search {
    position: relative;
    width: 200px;
}

.subnav-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    font-size: 13px;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.2s ease;
}

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

.subnav-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
    pointer-events: none;
}

/* ==========================================================================
   5. Collection Banner
   ========================================================================== */
.collection-banner {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: var(--gap-lg);
}

.collection-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-banner .banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: var(--color-white);
}

.collection-banner .banner-label {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    margin-bottom: 4px;
}

.collection-banner .banner-title {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 8px;
    line-height: 1.2;
}

.collection-banner .banner-desc {
    font-size: 13px;
    font-weight: var(--font-weight-light);
    max-width: 500px;
    line-height: 1.5;
    opacity: 0.9;
}

.collection-banner .banner-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 6px 20px;
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    margin-top: 4px;
}

/* ==========================================================================
   6. Shop Toolbar
   ========================================================================== */
/* Subcategory chips */
.subcat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
}

.subcat-chip {
    display: inline-block;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    border: 1px solid var(--color-border, #ddd);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.subcat-chip:hover {
    border-color: var(--color-text);
}

.subcat-chip.active {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--gap-md);
    padding: 6px 0;
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    background: var(--color-bg);
}

.shop-toolbar-left {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    flex: 1;
}

/* Inline filter button inside the sticky toolbar (overrides floating .filter-fab).
   .is-icon = compact icon-only square. */
.shop-toolbar-left .filter-fab {
    position: static;
    transform: none;
    top: auto;
    right: auto;
    bottom: auto;
    box-shadow: none;
    border: none;
    padding: 8px;
    font-size: 0;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    justify-content: center;
}

.shop-toolbar-left .filter-fab svg {
    width: 18px;
    height: 18px;
    margin: 0;
}

.shop-sort {
    font-size: 14px;
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
}

.shop-sort select {
    border: none;
    background: none;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    cursor: pointer;
    padding-right: 4px;
}

.product-count {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

.shop-by-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.shop-by-toggle:hover {
    border-color: var(--color-text);
}

.shop-by-toggle svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   7. Shop Layout (Sidebar + Grid)
   ========================================================================== */
.shop-content {
    display: flex;
    gap: var(--gap-xl);
    padding-bottom: var(--gap-xl);
}

/* ==========================================================================
   8. Sidebar / Filters
   ========================================================================== */
/* Original sidebar - overridden by slideout */
.shop-sidebar-OLD {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

.filter-section {
    border-bottom: 1px solid var(--color-border);
    padding: 14px 0;
}

.filter-section:first-child {
    padding-top: 0;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    padding: 4px 0;
    -webkit-user-select: none;
    user-select: none;
}

.filter-header svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.filter-section.is-open .filter-header svg {
    transform: rotate(180deg);
}

.filter-header--highlighted {
    background: var(--color-text);
    color: var(--color-white);
    padding: 10px 16px;
    border-radius: var(--radius-filter);
    margin-bottom: 2px;
}

.filter-header--highlighted svg {
    color: var(--color-white);
}

.filter-body {
    display: none;
    padding-top: 10px;
}

.filter-section.is-open .filter-body {
    display: block;
}

/* Size buttons */
.size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.size-btn {
    min-width: 44px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-btn:hover {
    border-color: var(--color-text);
}

.size-btn.active {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

/* Gender filter buttons */
.gender-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gender-btn {
    flex: 1;
    min-width: 70px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gender-btn:hover {
    border-color: var(--color-text);
}

.gender-btn.active {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

/* Temperature filter buttons */
.temp-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.temp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    background: var(--color-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.temp-btn:hover {
    border-color: var(--color-text);
}

.temp-btn.active {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

.temp-btn.active .temp-btn__icon {
    filter: invert(1);
}

.temp-btn__icon {
    width: 16px;
    height: 20px;
    flex-shrink: 0;
}

/* Filter links */
.filter-links a {
    display: block;
    font-size: 13px;
    padding: 4px 0;
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

.filter-links a:hover,
.filter-links a.active {
    color: var(--color-text);
}

/* Category tree */
.filter-cat-group {
    margin-bottom: 2px;
}

.filter-cat-back {
    display: block;
    font-size: 12px;
    padding: 4px 0;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.filter-cat-back:hover {
    color: var(--color-text);
}

.filter-cat-parent {
    display: block;
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    padding: 4px 0;
    color: var(--color-text);
}

.filter-cat-parent.active {
    color: var(--color-text);
}

.filter-cat-children {
    padding-left: 14px;
    margin-bottom: 4px;
}

.filter-cat-children a {
    display: block;
    font-size: 13px;
    padding: 3px 0;
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

.filter-cat-children a:hover,
.filter-cat-children a.active {
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
}

/* Price filter */
.price-filter-form {
    padding: 0;
}

.price-filter-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-filter-field {
    display: flex;
    align-items: center;
    flex: 1;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    padding: 0 8px;
    height: 36px;
}

.price-filter-field:focus-within {
    border-color: var(--color-text);
}

.price-filter-currency {
    font-size: 13px;
    color: var(--color-text-light);
    margin-right: 4px;
    flex-shrink: 0;
}

.price-filter-field input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 13px;
    font-family: var(--font-family);
    color: var(--color-text);
    background: transparent;
    padding: 0;
    -moz-appearance: textfield;
}

.price-filter-field input::-webkit-inner-spin-button,
.price-filter-field input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-filter-field input::placeholder {
    color: var(--color-text-muted);
}

.price-filter-sep {
    font-size: 14px;
    color: var(--color-text-light);
    flex-shrink: 0;
}

.price-filter-go {
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--color-text);
    border-radius: var(--radius-sm);
    background: var(--color-text);
    color: var(--color-white);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family);
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.price-filter-go:hover {
    opacity: 0.85;
}

/* Sale link in sidebar */
.filter-sale-link {
    padding: 14px 0;
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: var(--color-sale);
    cursor: pointer;
}

.filter-sale-link:hover {
    text-decoration: underline;
}

.filter-sale-link.active {
    color: var(--color-text);
    text-decoration: underline;
}

/* Clear all filters link */
.filter-clear-all {
    display: block;
    padding: 10px 0;
    font-size: 13px;
    color: var(--color-muted);
    text-decoration: underline;
}

.filter-clear-all:hover {
    color: var(--color-text);
}

/* Active filter chips bar */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    background: var(--color-bg-alt, #f5f5f5);
    border: 1px solid var(--color-border, #ddd);
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s;
}

.active-filter-chip:hover {
    background: var(--color-border, #ddd);
}

.chip-remove {
    font-size: 15px;
    line-height: 1;
    opacity: 0.6;
}

.active-filter-chip:hover .chip-remove {
    opacity: 1;
}

.active-filters-clear {
    font-size: 13px;
    color: var(--color-muted);
    text-decoration: underline;
    margin-left: 4px;
}

.active-filters-clear:hover {
    color: var(--color-text);
}

/* ==========================================================================
   9. Products Grid
   ========================================================================== */
.products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-lg);
    row-gap: 40px;
    align-content: start;
}

/* ==========================================================================
   10. Product Card
   ========================================================================== */
.product-card {
    background: transparent;
    position: relative;
}

.product-card-image {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--color-white); /* было --color-border-light (#EAEAEA) — серое просвечивало под прозрачными PNG; товары на белом */
    aspect-ratio: 3 / 4;
    margin-bottom: 10px;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    /* Soften residual grey bands from semi-transparent off-white PNG fringes
       (artifact of remove_white_bg threshold). Temporary visual fix while
       fix_pngs.py reprocesses the affected files in the background. */
    filter: brightness(1.06) contrast(1.04);
}

.product-card:hover .product-card-image img {
    transform: scale(1.03);
}

/* Wishlist button on card */
.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
    opacity: 0;
    z-index: 2;
}

.product-card:hover .product-wishlist {
    opacity: 1;
}

.product-wishlist:hover {
    color: var(--color-accent);
    background: var(--color-white);
}

.product-wishlist.is-active {
    opacity: 1;
    color: var(--color-accent);
}

.product-wishlist.is-active svg {
    fill: var(--color-accent);
}

.product-wishlist svg {
    width: 18px;
    height: 18px;
}


/* Filling badge on product card */
.product-filling-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: var(--radius-btn);
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
}

/* NEW badge on catalog product card */
.product-badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: var(--radius-btn);
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    background: #43a047;
    color: #fff !important;
    letter-spacing: 0.5px;
    line-height: 1.4;
}
/* Sale badge */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.badge-sale {
    background: var(--color-sale);
    color: var(--color-white);
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    padding: 3px 8px;
    border-radius: 999px;
}

/* Quick add to cart overlay */
.product-quick-add {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 8px 18px;
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    z-index: 2;
}

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

.product-quick-add:hover {
    background: var(--color-accent-hover);
}

/* On touch devices: hide overlay so tap goes directly to product */
@media (hover: none) {
    .product-quick-add {
        display: none;
    }
}

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

.product-card-title {
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: 1px;
    line-height: 1.3;
}

.product-card-subtitle {
    font-size: 12px;
    font-weight: var(--font-weight-regular);
    color: var(--color-text-light);
    margin-bottom: 6px;
}

/* Color swatches */
.product-swatches {
    display: flex;
    gap: 5px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.product-swatch {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.product-swatch:hover {
    border-color: var(--color-text);
    transform: scale(1.15);
}

.product-swatch.is-active {
    border-color: var(--color-text);
    box-shadow: 0 0 0 1.5px var(--color-bg), 0 0 0 3px var(--color-text);
}

/* Product price */
.product-card-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-row-old {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-old {
    font-size: 13px;
    font-weight: var(--font-weight-regular);
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.price-discount {
    display: inline-block;
    background: var(--color-sale);
    color: var(--color-white);
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    padding: 3px 10px;
    border-radius: 999px;
}

.price-current {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
}

/* ==========================================================================
   10b. Infinite Scroll
   ========================================================================== */
.infinite-scroll-trigger {
    display: flex;
    justify-content: center;
    padding: var(--gap-xl) 0;
}

.infinite-scroll-spinner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text-light);
}

.infinite-scroll-spinner svg {
    animation: huppa-spin 1s linear infinite;
}

.infinite-scroll-trigger.is-done {
    display: none;
}

@keyframes huppa-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   11. Back to Top
   ========================================================================== */
.back-to-top-wrap {
    text-align: center;
    padding: var(--gap-xl) 0;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--color-text);
    color: var(--color-white);
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    transition: background 0.2s ease;
}

.back-to-top:hover {
    background: #333 !important;
    color: var(--color-white);
}

.back-to-top svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer {
    background: var(--color-bg);
    padding: 50px 0 30px;
    border-top: 1px solid var(--color-border);
}



.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--gap-xl);
}

.footer-brand {
    flex-shrink: 0;
    min-width: 220px;
}

.footer-logo .logo-text {
    font-weight: var(--font-weight-black);
    font-size: 28px;
    letter-spacing: 2px;
    color: var(--color-text);
    display: block;
    margin-bottom: 4px;
}

.footer-tagline {
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
    line-height: 1.4;
    margin-bottom: 8px;
}

.footer-site-url {
    font-size: 11px;
    color: var(--color-accent);
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-site-url .url-icon {
    width: 14px;
    height: 14px;
    background: var(--color-accent);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 9px;
    font-weight: var(--font-weight-bold);
}

.footer-columns {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 12px;
    color: var(--color-text);
}

.footer-column ul li {
    margin-bottom: 6px;
}

.footer-column ul li a {
    font-size: 13px;
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 30px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-text);
    transition: color 0.2s ease;
}

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

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   13. Pagination
   ========================================================================== */
.woocommerce-pagination {
    text-align: center;
    padding: var(--gap-lg) 0;
}

.woocommerce-pagination ul {
    display: inline-flex;
    gap: 4px;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.woocommerce-pagination ul li a:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.woocommerce-pagination ul li span.current {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

/* ==========================================================================
   14. WooCommerce Overrides
   ========================================================================== */
.woocommerce-notices-wrapper {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--gap-md) var(--container-padding);
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: var(--gap-md);
}

.woocommerce-message {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.woocommerce-message,
.woocommerce-info,
.sp-info .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-error {
    display: none !important;
}

.woocommerce-error {
    background: #fce4ec;
    border-left: 4px solid #e53935;
}

.woocommerce-info {
    background: #e3f2fd;
    border-left: 4px solid #1e88e5;
}

/* Hide default WooCommerce breadcrumbs/result count/ordering */
.woocommerce-breadcrumb {
    display: none;
}

/* ==========================================================================
   15. Responsive
   ========================================================================== */

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

    .shop-sidebar-OLD {
        width: 200px;
    }

    .footer-columns {
        gap: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
    }

    /* Header mobile */
    .menu-toggle {
        display: flex;
    }

    .header-icons {
        gap: var(--gap-sm);
    }

    /* Language switcher hidden on mobile while only EN is active — the
       chevron alone was confusing next to the cart icon. Re-enable when
       additional locales go live. */
    .language-switcher {
        display: none;
    }

    /* --- Mobile nav overlay --- */
    .primary-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        background: var(--color-white);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
        z-index: 1001;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
        display: flex;
    }

    .primary-nav.is-open {
        transform: translateX(0);
    }

    /* Nav links section */
    .primary-nav__links {
        display: flex;
        flex-direction: column;
        padding: calc(var(--header-height) + 16px) 24px 24px;
        gap: 0;
        flex: 1;
    }

    .primary-nav__links a,
    .primary-nav__links .menu-item a {
        display: flex;
        align-items: center;
        font-size: 17px;
        font-weight: var(--font-weight-medium);
        color: var(--color-text);
        padding: 14px 0;
        border-bottom: 1px solid var(--color-border-light);
        border-radius: 0;
        width: 100%;
        letter-spacing: 0.2px;
        transition: color 0.2s ease;
    }

    .primary-nav__links a:first-child,
    .primary-nav__links .menu-item:first-child a {
        border-top: 1px solid var(--color-border-light);
    }

    .primary-nav__links a:hover {
        color: var(--color-accent);
    }

    .primary-nav__links a.active,
    .primary-nav__links a.current-menu-item > a,
    .primary-nav__links .current-menu-item > a {
        color: var(--color-accent);
        font-weight: var(--font-weight-bold);
        background: transparent;
    }

    /* Arrow indicator on menu items */
    .primary-nav__links a::after,
    .primary-nav__links .menu-item a::after {
        content: '';
        display: block;
        width: 7px;
        height: 7px;
        border-right: 2px solid var(--color-text-muted);
        border-bottom: 2px solid var(--color-text-muted);
        transform: rotate(-45deg);
        margin-left: auto;
        flex-shrink: 0;
        transition: border-color 0.2s ease;
    }

    .primary-nav__links a:hover::after,
    .primary-nav__links .menu-item a:hover::after {
        border-color: var(--color-accent);
    }

    /* Nav footer with actions */
    .primary-nav__footer {
        display: block;
        padding: 16px 24px 24px;
        border-top: 1px solid var(--color-border-light);
    }

    .primary-nav__actions {
        display: flex;
        gap: 12px;
    }

    .primary-nav__action {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        padding: 12px 16px;
        font-size: 13px;
        font-weight: var(--font-weight-medium);
        color: var(--color-text);
        background: var(--color-bg);
        border-radius: var(--radius-filter);
        transition: background 0.2s ease;
        white-space: nowrap;
    }

    .primary-nav__action:hover {
        background: var(--color-border-light);
    }

    .primary-nav__action svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .primary-nav__badge {
        background: var(--color-accent);
        color: var(--color-white);
        font-size: 10px;
        font-weight: var(--font-weight-bold);
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        margin-left: auto;
    }

    /* Backdrop overlay */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .nav-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
    }

    /* Subnav mobile */
    .shop-subnav .container {
        flex-direction: column;
        height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
        gap: 8px;
    }

    .subnav-categories {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        gap: var(--gap-md);
    }

    .subnav-search {
        width: 100%;
    }

    /* Banner mobile */
    .collection-banner {
        height: 220px;
    }

    .collection-banner .banner-title {
        font-size: 22px;
    }

    .collection-banner .banner-overlay {
        padding: 20px;
    }

    .collection-banner .banner-desc {
        display: none;
    }

    /* Shop layout mobile */
    .shop-content {
        flex-direction: column;
        gap: var(--gap-md);
    }

    .shop-sidebar-OLD {
        width: 100%;
        display: none;
    }

    .shop-sidebar-OLD.is-open {
        display: block;
    }

    .shop-toolbar {
        flex-wrap: wrap;
        gap: var(--gap-sm);
    }

    .shop-by-toggle {
        display: flex;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap-md);
    }

    .product-card .product-wishlist {
        opacity: 1;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--gap-lg);
    }

    .footer-columns {
        flex-direction: column;
        gap: var(--gap-lg);
    }

    .footer-bottom {
        justify-content: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card-title {
        font-size: 12px;
    }

    .price-current {
        font-size: 14px;
    }
}

/* ==========================================================================
   16. Homepage — Common Components
   ========================================================================== */
.hp-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-btn);
    border: none;
    cursor: pointer;
    transition: background 0.25s ease;
}

.hp-btn:hover {
    background: var(--color-accent-hover);
    color: var(--color-white);
}

.hp-btn--sm {
    padding: 8px 24px;
    font-size: 12px;
}

.hp-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.25s ease;
}

.hp-play-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.hp-play-btn__icon {
    width: 16px;
    height: 16px;
}

.hp-play-btn__icon--pause {
    display: none;
}

.hp-play-btn.is-playing .hp-play-btn__icon--play {
    display: none;
}

.hp-play-btn.is-playing .hp-play-btn__icon--pause {
    display: block;
}

.hp-play-btn--small {
    padding: 8px;
    border-radius: 50%;
}

.hp-play-btn--small span {
    display: none;
}

/* ==========================================================================
   17. Homepage — Hero
   ========================================================================== */
.hp-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--color-text);
}

.hp-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

.hp-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 100px 40px 60px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.hp-hero__content {
    margin-top: auto;
    max-width: 500px;
}

.hp-hero__logo {
    display: block;
    font-size: 72px;
    font-weight: var(--font-weight-black);
    color: var(--color-white);
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 12px;
}

.hp-hero__logo sup {
    font-size: 0.35em;
    vertical-align: super;
}

.hp-hero__tagline {
    font-size: 16px;
    font-weight: var(--font-weight-light);
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 28px;
}

/* ==========================================================================
   18. Homepage — Transparent Header Override
   ========================================================================== */
.home .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.home .site-header .logo-text {
    color: var(--color-white);
}

.home .site-header .header-icon {
    color: var(--color-white);
}

.home .site-header .header-icon svg {
    stroke: var(--color-white);
}

.home .site-header .primary-nav a {
    color: var(--color-white);
}

/* Reset the active pill on transparent header */
.home .site-header .primary-nav a.active,
.home .site-header .primary-nav .current-menu-item > a {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

.home .site-header .menu-toggle span {
    background: var(--color-white);
}

.home .site-header .language-switcher {
    opacity: 0.9;
}

/* Scrolled state — solid header */
.home .site-header.is-scrolled {
    background: var(--color-white);
    border-bottom-color: var(--color-border);
}

.home .site-header.is-scrolled .logo-text {
    color: var(--color-text);
}

.home .site-header.is-scrolled .header-icon {
    color: var(--color-text);
}

.home .site-header.is-scrolled .header-icon svg {
    stroke: var(--color-text);
}

.home .site-header.is-scrolled .primary-nav a {
    color: var(--color-text);
}

.home .site-header.is-scrolled .primary-nav a.active,
.home .site-header.is-scrolled .primary-nav .current-menu-item > a {
    background: var(--color-accent);
    color: var(--color-white);
}

.home .site-header.is-scrolled .menu-toggle span {
    background: var(--color-text);
}

.home .site-header.is-scrolled .language-switcher {
    opacity: 1;
}

/* Mobile nav open — always solid on home too (slide-in panel) */
.home .primary-nav.is-open {
    background: var(--color-white);
}

.home .primary-nav.is-open .primary-nav__links a {
    color: var(--color-text);
}

.home .primary-nav.is-open .primary-nav__links a.active,
.home .primary-nav.is-open .primary-nav__links .current-menu-item > a {
    color: var(--color-accent);
    background: transparent;
}

/* ==========================================================================
   19. Homepage — Category Cards
   ========================================================================== */
.hp-categories {
    padding: 80px 0;
    background: var(--color-bg);
}

.hp-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg);
}

.hp-categories__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 16px;
}

.hp-categories__img-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.hp-categories__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.hp-categories__card:hover .hp-categories__img-wrap img {
    transform: scale(1.04);
}

.hp-categories__label {
    display: inline-block;
    padding: 8px 28px;
    background: var(--color-text);
    color: var(--color-white);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-btn);
}

/* ==========================================================================
   20. Homepage — Video Banner (reusable)
   ========================================================================== */
.hp-video-banner {
    position: relative;
    width: 100%;
    height: 65vh;
    overflow: hidden;
    background: var(--color-text);
}

.hp-video-banner__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

.hp-video-banner__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.hp-video-banner__title {
    font-size: 34px;
    font-weight: var(--font-weight-black);
    color: #fff;
    line-height: 1.05;
    margin-bottom: 10px;
    max-width: 640px;
}
.hp-video-banner__subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    margin-bottom: 18px;
    max-width: 560px;
}
.hp-video-banner--compact { height: 46vh; }
.hp-video-banner--compact .hp-video-banner__content {
    align-self: flex-start;
    margin-bottom: 0;
}
.hp-video-banner__content {
    align-self: center;
    margin-top: auto;
    margin-bottom: 8%;
}

/* Innovation/Factory variants: button bottom-left */
.hp-video-banner--innovation .hp-video-banner__content,
.hp-video-banner--factory .hp-video-banner__content {
    align-self: flex-start;
    margin-bottom: 0;
}

/* ==========================================================================
   21. Homepage — Collections Carousel
   ========================================================================== */
.hp-collections {
    padding: 80px 0;
    background: var(--color-bg);
}

.hp-collections__header {
    margin-bottom: 40px;
}

.hp-collections__title {
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: 12px;
}

.hp-collections__desc {
    font-size: 15px;
    color: var(--color-text-light);
    max-width: 540px;
    line-height: 1.6;
}

.hp-carousel {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 60px;
}

.hp-carousel__track {
    display: flex;
    gap: var(--gap-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.hp-carousel__track::-webkit-scrollbar {
    display: none;
}

.hp-carousel__item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hp-carousel__img-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.hp-carousel__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hp-carousel__item:hover .hp-carousel__img-wrap img {
    transform: scale(1.04);
}

.hp-carousel__artist {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

.hp-carousel__prev,
.hp-carousel__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
}

.hp-carousel__prev:hover,
.hp-carousel__next:hover {
    background: var(--color-bg);
}

.hp-carousel__prev {
    left: 0;
}

.hp-carousel__next {
    right: 0;
}

.hp-carousel__prev svg,
.hp-carousel__next svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   22. Homepage — Art Banner
   ========================================================================== */
.hp-art-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hp-art-banner__img {
    width: 100%;
    display: block;
}

.hp-art-banner__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 40px;
}

/* ==========================================================================
   23. Homepage — HUPPA PRO
   ========================================================================== */
.hp-pro {
    position: relative;
    width: 100%;
    height: 65vh;
    overflow: hidden;
}

.hp-pro__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #2a2a2a;
}

.hp-pro__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
    padding: 40px;
}

/* PRO content pinned bottom-left (Asana #2) */
.hp-pro__overlay .container {
    margin: 0;
    max-width: none;
    padding: 0;
    text-align: left;
}

.hp-pro__subtitle {
    font-size: 14px;
    font-weight: var(--font-weight-light);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.hp-pro__title {
    font-size: 56px;
    font-weight: var(--font-weight-black);
    color: var(--color-white);
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 24px;
}

.hp-pro__title sup {
    font-size: 0.3em;
    vertical-align: super;
}

.hp-pro__logo {
    width: 600px;
    max-width: 90%;
    height: auto;
    display: block;
    margin-bottom: 24px;
}

/* ==========================================================================
   24. Homepage — Media
   ========================================================================== */
.hp-media {
    padding: 80px 0;
    background: var(--color-bg);
}

.hp-media__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl);
    align-items: start;
}

.hp-media__featured-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 20px;
}

.hp-media__featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-media__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 14px;
    background: var(--color-white);
    color: var(--color-text);
    font-size: 11px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-btn);
}

.hp-media__featured-title {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: 1.35;
    margin-bottom: 12px;
}

.hp-media__featured-desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.65;
    margin-bottom: 24px;
}

.hp-media__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-md);
}

.hp-media__gallery-item {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-card);
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.hp-media__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hp-media__gallery-item:hover img {
    transform: scale(1.04);
}

.hp-media__gallery-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.hp-media__gallery-item:hover .hp-media__gallery-title,
.hp-media__gallery-item:focus-visible .hp-media__gallery-title {
    opacity: 1;
}

/* Touch / no-hover devices: always show gallery title */
@media (hover: none), (max-width: 768px) {
    .hp-media__gallery-title { opacity: 1; }
}

/* Featured: keep title clickable but don't underline */
.hp-media__featured-link,
.hp-media__featured-title a { text-decoration: none; color: inherit; }
.hp-media__featured-title a:hover { color: var(--color-accent); }

/* ==========================================================================
   25. Homepage — Responsive
   ========================================================================== */

/* Tablet landscape */
@media (max-width: 1024px) {
    .hp-hero__logo {
        font-size: 56px;
    }

    .hp-hero__overlay {
        padding: 90px 30px 48px;
    }

    .hp-collections__title {
        font-size: 28px;
    }

    .hp-carousel__item {
        flex: 0 0 240px;
    }

    .hp-pro__title {
        font-size: 44px;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .hp-hero {
        height: 100svh;
    }

    .hp-hero__logo {
        font-size: 44px;
    }

    .hp-hero__overlay {
        padding: 80px 20px 40px;
    }

    .hp-hero__tagline {
        font-size: 13px;
    }

    .hp-categories {
        padding: 48px 0;
    }

    .hp-categories__grid {
        grid-template-columns: 1fr;
        gap: var(--gap-lg);
        max-width: 400px;
        margin: 0 auto;
    }

    .hp-video-banner {
        height: 50vh;
    }

    .hp-video-banner__overlay {
        padding: 24px;
    }

    .hp-collections {
        padding: 48px 0;
    }

    .hp-collections__title {
        font-size: 24px;
    }

    .hp-carousel {
        padding: 0 var(--container-padding);
    }

    .hp-carousel__prev,
    .hp-carousel__next {
        display: none;
    }

    .hp-art-banner__overlay {
        padding: 24px;
    }

    .hp-pro {
        height: 50vh;
    }

    .hp-pro__title {
        font-size: 36px;
    }

    .hp-pro__overlay {
        padding: 24px;
    }

    .hp-media {
        padding: 48px 0;
    }

    .hp-media__grid {
        grid-template-columns: 1fr;
    }

    .hp-media__featured-title {
        font-size: 18px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hp-hero__logo {
        font-size: 36px;
    }

    .hp-hero__tagline {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .hp-btn {
        padding: 10px 24px;
        font-size: 12px;
    }

    .hp-carousel__item {
        flex: 0 0 200px;
    }

    .hp-pro__title {
        font-size: 28px;
    }

    .hp-pro__subtitle {
        font-size: 12px;
    }

    .hp-media__featured-title {
        font-size: 16px;
    }
}

/* ==========================================================================
   26. Single Product Page
   ========================================================================== */
.sp-wrapper {
    padding: calc(var(--header-height) + 24px) 0 60px;
    background: var(--color-bg);
    min-height: 100vh;
}

.sp-breadcrumb {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.sp-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.sp-breadcrumb a:hover {
    color: var(--color-text);
}

.sp-breadcrumb__sep {
    margin: 0 8px;
}

.sp-breadcrumb__current {
    color: var(--color-text);
}

.sp-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl);
    align-items: start;
}

/* Gallery — thumbs on the left, vertical column */
.sp-gallery {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    max-width: 100%;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
}

.sp-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: var(--radius-btn);
    font-size: 12px;
    font-weight: var(--font-weight-bold);
}

.sp-badge--sale {
    background: var(--color-sale);
    color: var(--color-white);
}

.sp-gallery__main {
    position: relative;
    flex: 1;
    min-width: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--color-white);
    margin-bottom: 0;
}

.sp-gallery__img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.sp-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.sp-gallery__main:hover .sp-gallery__arrow {
    opacity: 1;
}

.sp-gallery__arrow svg {
    width: 20px;
    height: 20px;
}

.sp-gallery__arrow--prev { left: 8px; }
.sp-gallery__arrow--next { right: 8px; }

.sp-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 600px;
    width: 72px;
    flex-shrink: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 1500px) {
    .sp-gallery__thumbs { width: 96px; max-height: 720px; }
    .sp-gallery__thumb { width: 96px; height: 96px; }
}
@media (min-width: 1920px) {
    .sp-gallery__thumbs { width: 120px; max-height: 840px; }
    .sp-gallery__thumb { width: 120px; height: 120px; }
}

.sp-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

.sp-gallery__thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: var(--color-white);
    transition: border-color 0.2s ease;
}

.sp-gallery__thumb.is-active {
    border-color: var(--color-text);
}

.sp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product info */
.sp-info {
    padding-top: 8px;
}

.sp-info__title {
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: 1.25;
    margin-bottom: 16px;
}

.sp-info__price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sp-info__price-old {
    font-size: 18px;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.sp-info__price-badge {
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    background: var(--color-sale);
    padding: 2px 8px;
    border-radius: var(--radius-btn);
}

.sp-info__price-current {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
}

.sp-info__desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.65;
    margin-bottom: 24px;
}

.sp-info__tags {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sp-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.3px;
    color: var(--color-text);
    background: transparent;
    border: none;
    border-radius: 0;
}

.sp-tag--temp {
    flex-direction: column;
    padding: 8px 14px;
}

.sp-tag__icon {
    width: 22px;
    height: 28px;
}

.sp-tag__icon--wide {
    width: 28px;
    height: 22px;
    margin-top: 4px;
}

.sp-tag__text {
    font-size: 11px;
    white-space: nowrap;
}

/* Tooltip on hover */
.sp-tag[data-tooltip] {
    position: relative;
    cursor: help;
}

.sp-tag[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text, #1a1a1a);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    width: 200px;
    padding: 8px 12px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.sp-tag[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--color-text, #1a1a1a);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.sp-tag[data-tooltip]:hover::after,
.sp-tag[data-tooltip]:hover::before,
.sp-tag[data-tooltip]:focus::after,
.sp-tag[data-tooltip]:focus::before {
    opacity: 1;
}

/* Color swatches */
.sp-info__colors {
    margin-bottom: 20px;
}

.sp-info__label {
    display: block;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    margin-bottom: 8px;
}

.sp-info__swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.sp-swatch:hover,
.sp-swatch.is-active {
    border-color: var(--color-text);
    transform: scale(1.1);
}

.sp-swatch.is-unavailable {
    cursor: not-allowed;
    position: relative;
    transform: none;
}

.sp-swatch.is-unavailable::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.15);
    pointer-events: none;
    z-index: 1;
}

.sp-swatch.is-unavailable::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -3px;
    right: -3px;
    height: 2px;
    background: #fff;
    transform: rotate(-45deg);
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 0 1px rgba(0,0,0,0.6);
}

/* Color variant thumbnails */
.sp-color-thumb {
    display: block;
    width: 48px;
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    border: 2px solid var(--color-border);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    background: var(--color-white);
}

.sp-color-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-color-thumb:hover {
    border-color: var(--color-text);
    transform: scale(1.05);
}

.sp-color-thumb.is-active {
    border-color: var(--color-text);
    border-width: 3px;
}

/* Size buttons */
.sp-info__sizes {
    margin-bottom: 20px;
}

.sp-info__size-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-size-btn {
    min-width: 44px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sp-size-btn:hover {
    border-color: var(--color-text);
}

.sp-size-btn.is-active {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

.sp-size-btn.is-unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
    color: var(--color-text-muted);
    border-color: var(--color-border-light);
}

.sp-size-btn.is-unavailable::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    right: 4px;
    height: 1px;
    background: var(--color-text-muted);
    pointer-events: none;
}

/* Store availability */
.sp-info__stores {
    margin-bottom: 20px;
}

.sp-store-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 8px;
}

.sp-store-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.sp-store-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.sp-store-item.is-available .sp-store-dot {
    background: #22c55e;
}

.sp-store-item.is-unavailable .sp-store-dot {
    background: #ef4444;
}

/* WooCommerce variation form override */
.sp-info .variations_form {
    margin-bottom: 24px;
}

.sp-info .variations {
    width: 100%;
    border: none;
}

.sp-info .variations td,
.sp-info .variations th {
    padding: 8px 0;
    border: none;
    vertical-align: middle;
}

.sp-info .variations .label label {
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

.sp-info .variations select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    background: var(--color-white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.sp-info .variations select:focus {
    outline: none;
    border-color: var(--color-text);
}

.sp-info .woocommerce-variation-availability {
    display: none !important;
}

.sp-info .woocommerce-variation-description {
    display: none !important;
}

.sp-info .woocommerce-variation-price {
    display: none !important;
}

.sp-info .quantity {
    display: none !important;
}

.sp-info .quantity .qty {
    width: 60px;
    padding: 10px 8px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
}

.sp-info .single_add_to_cart_button,
.woocommerce .sp-info .single_add_to_cart_button,
button.single_add_to_cart_button,
.single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 56px;
    background: #000 !important;
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.25s ease;
    min-height: 56px;
}

.sp-info .single_add_to_cart_button:hover {
    background: #333 !important;
}

.sp-info .single_add_to_cart_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sp-info .reset_variations {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-left: 8px;
}





/* Filling badge on single product gallery */
.sp-filling-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 3;
    padding: 4px 12px;
    border-radius: var(--radius-btn);
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    backdrop-filter: blur(4px);
}

/* NEW badge on single product gallery */
.sp-badge-new {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    padding: 4px 14px;
    border-radius: var(--radius-btn);
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    background: #43a047;
    color: #fff;
    letter-spacing: 0.5px;
}
/* Wishlist button on single product */
.sp-wishlist {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 3;
    padding: 0;
}

.sp-wishlist:hover {
    color: var(--color-accent);
    background: var(--color-white);
}

.sp-wishlist.is-active {
    color: var(--color-accent);
    fill: var(--color-accent);
}

.sp-wishlist.is-active svg {
    fill: var(--color-accent);
}

.sp-wishlist svg {
    width: 22px;
    height: 22px;
}
/* Product meta */
.sp-meta {
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    margin-top: 4px;
}

.sp-meta__row {
    display: flex;
    gap: 12px;
    font-size: 13px;
    margin-bottom: 6px;
}

.sp-meta__row:last-child {
    margin-bottom: 0;
}

.sp-meta__label {
    color: var(--color-text-muted);
    min-width: 70px;
}

.sp-meta__value {
    color: var(--color-text);
}

.sp-meta__value a {
    color: var(--color-text);
    text-decoration: none;
}

.sp-meta__value a:hover {
    color: var(--color-accent);
}

/* Accordion */
.sp-accordion {
    border-top: 1px solid var(--color-border);
}

.sp-accordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

.sp-accordion__header svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.sp-accordion__header.is-open svg {
    transform: rotate(180deg);
}

.sp-accordion__body {
    display: none;
    padding-bottom: 20px;
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.65;
}

.sp-accordion__body.is-open {
    display: block;
}

.sp-accordion__body p {
    margin-bottom: 12px;
}

.sp-accordion__body p:last-child {
    margin-bottom: 0;
}

.sp-details-table {
    width: 100%;
}

.sp-details-table th,
.sp-details-table td {
    padding: 6px 0;
    font-size: 13px;
    border: none;
    text-align: left;
}

.sp-details-table th {
    color: var(--color-text-muted);
    font-weight: var(--font-weight-regular);
    width: 55%;
}

.sp-details-table td {
    color: var(--color-text);
}

/* Single product responsive */
@media (max-width: 768px) {
    .sp-product {
        grid-template-columns: 1fr;
        gap: var(--gap-lg);
    }

    .sp-gallery {
        position: static;
        flex-direction: column-reverse;
    }

    .sp-gallery__thumbs {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        width: 100%;
    }

    .sp-info__title {
        font-size: 22px;
    }

    .sp-info__price-current {
        font-size: 20px;
    }

    /* Tooltip on mobile: pinned bottom-of-viewport plate to avoid horizontal overflow */
    .sp-tag[data-tooltip]::after {
        position: fixed;
        bottom: 16px;
        top: auto;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
        transform: none;
        font-size: 13px;
        padding: 12px 16px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
        z-index: 1000;
    }

    /* Arrow becomes irrelevant for a viewport-pinned tooltip */
    .sp-tag[data-tooltip]::before {
        display: none;
    }
}

/* ==========================================================================
   27. WooCommerce Form & Cart Overrides
   ========================================================================== */

/* Default WooCommerce page wrapper for cart/checkout/account */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: calc(var(--header-height) + 24px) var(--container-padding) 60px;
}

/* Cart table */
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    font-size: 14px;
}

.woocommerce table.shop_table th {
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 8px;
    text-align: left;
}

.woocommerce table.shop_table td {
    padding: 16px 8px;
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}

.woocommerce table.shop_table img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Cart buttons */
.woocommerce .button,
.woocommerce input.button,
.woocommerce button.button {
    display: inline-block;
    padding: 10px 28px;
    background: var(--color-text);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.25s ease;
    text-decoration: none;
}

.woocommerce .button:hover,
.woocommerce input.button:hover,
.woocommerce button.button:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.woocommerce .button.alt,
.woocommerce button.button.alt {
    background: var(--color-accent);
}

.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover {
    background: var(--color-accent-hover);
}

/* Form inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    background: var(--color-white);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: var(--color-text);
}

.woocommerce form .form-row label {
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    margin-bottom: 4px;
    display: block;
}

/* Quantity input */
.woocommerce .quantity .qty {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
}

/* Remove button */
.woocommerce a.remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--color-text-muted) !important;
    font-size: 18px;
    text-decoration: none;
}

.woocommerce a.remove:hover {
    color: var(--color-sale) !important;
    background: none;
}

/* Cart totals */
.woocommerce .cart_totals {
    float: right;
    width: 380px;
}

.woocommerce .cart_totals h2 {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 16px;
}

.woocommerce .cart_totals table {
    border: none;
}

.woocommerce .cart_totals th,
.woocommerce .cart_totals td {
    padding: 10px 0;
    border-top: 1px solid var(--color-border-light);
}

.woocommerce .wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 28px;
    font-size: 14px;
}

/* Cart responsive */
@media (max-width: 768px) {
    .woocommerce .cart_totals {
        float: none;
        width: 100%;
    }
}

/* Page container (generic pages) */
.page-container {
    padding: 60px 20px;
}

/* Stores page */
.stores-header {
    text-align: center;
    padding: calc(var(--header-height) + 40px) 0 40px;
}

.stores-title {
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: 8px;
}

.stores-subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
}

.stores-country {
    margin-bottom: 48px;
}

.stores-country__title {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.store-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.store-card__photo {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-bg-alt, #f5f5f5);
}

.store-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.store-card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Stores map (Leaflet) */
.stores-map {
    height: 480px;
    width: 100%;
    margin-bottom: 36px;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--color-border);
    z-index: 1;  /* sit below the sticky header (z=1000) */
}

@media (max-width: 768px) {
    .stores-map { height: 360px; margin-bottom: 24px; }
}

/* Marker: HUPPA icon SVG (black rounded square + white H) */
.huppa-store-marker { background: transparent; border: none; }
.huppa-store-marker__icon {
    width: 26px;
    height: 30px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    transition: transform 0.15s ease;
}
.huppa-store-marker:hover .huppa-store-marker__icon { transform: scale(1.15); }

/* Fallback (only used if iconUrl missing) — keeps old monogram. */
.huppa-store-marker__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-text);
    border: 2px solid var(--color-white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    color: var(--color-white);
    font-family: var(--font-family);
    font-weight: var(--font-weight-black);
    font-size: 13px;
    line-height: 1;
    transition: transform 0.15s ease;
}
.huppa-store-marker:hover .huppa-store-marker__dot { transform: scale(1.15); }

/* Country filter above the map */
.stores-map-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.stores-map-filter__btn {
    appearance: none;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.stores-map-filter__btn:hover {
    border-color: var(--color-text);
}
.stores-map-filter__btn.is-active {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-white);
}

/* Popup card inside Leaflet */
.huppa-store-popup { font-family: var(--font-family); }
.huppa-store-popup__img {
    margin: -12px -20px 12px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-bg-alt, #f5f5f5);
}
.huppa-store-popup__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.huppa-store-popup__body { font-size: 13px; line-height: 1.45; color: var(--color-text); }
.huppa-store-popup__name {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}
.huppa-store-popup__type {
    display: inline-block;
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--color-border-light);
    color: var(--color-text);
    margin-bottom: 8px;
}
.huppa-store-popup__type--outlet { background: var(--color-accent); color: var(--color-white); }
.huppa-store-popup__meta {
    list-style: none;
    margin: 8px 0 12px;
    padding: 0;
}
.huppa-store-popup__meta li { padding: 2px 0; }
.huppa-store-popup__meta a { color: var(--color-text); text-decoration: underline; }
.huppa-store-popup__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    color: var(--color-accent);
    text-decoration: none;
}
.huppa-store-popup__link:hover { text-decoration: underline; }
/* Leaflet default popup tweaks */
.leaflet-popup-content { margin: 12px 20px; }
.leaflet-popup-content-wrapper { border-radius: var(--radius-card); }

.store-card__type {
    display: inline-block;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.store-card__type--representative {
    background: var(--color-text);
    color: var(--color-white);
}

.store-card__type--outlet {
    background: var(--color-bg-alt, #f0f0f0);
    color: var(--color-text);
}

.store-card__name {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: 16px;
}

.store-card__details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.store-card__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.4;
}

.store-card__row svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--color-text-muted);
}

.store-card__row a {
    color: var(--color-text-light);
    text-decoration: none;
}

.store-card__row a:hover {
    color: var(--color-text);
}

.store-card__map-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}

.store-card__map-link:hover {
    border-color: var(--color-text);
}

.store-card__map-link svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .stores-header {
        padding: calc(var(--header-height) + 24px) 0 24px;
    }

    .stores-title {
        font-size: 28px;
    }

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

/* WooCommerce pages (checkout, cart, account) */
.wc-page-container {
    padding: var(--header-height) var(--container-padding) 60px;
}

.wc-page-container article,
.wc-page-container .entry-content,
.wc-page-container .entry-content > .woocommerce {
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   28a. My Account
   ========================================================================== */

/* Account layout */
.account-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--gap-xl);
    align-items: start;
    padding-top: 20px;
}

/* Sidebar */
.account-sidebar {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.account-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.account-user__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.account-user__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.account-user__name {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-user__email {
    font-size: 12px;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Navigation */
.account-nav ul {
    margin: 0;
    padding: 8px 0;
}

.account-nav__item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--color-text-light);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.account-nav__item a:hover {
    background: var(--color-bg-alt, #f5f5f5);
    color: var(--color-text);
}

.account-nav__item.is-active a {
    color: var(--color-text);
    font-weight: var(--font-weight-bold);
    background: var(--color-bg-alt, #f5f5f5);
    border-left: 3px solid var(--color-text);
    padding-left: 17px;
}

.account-nav__icon {
    display: flex;
    align-items: center;
}

.account-nav__icon svg {
    width: 18px;
    height: 18px;
}

/* Dashboard */
.account-welcome h2 {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: 8px;
}

.account-welcome p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}

.account-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.account-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    text-decoration: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.account-card:hover {
    border-color: var(--color-text);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.account-card svg {
    width: 28px;
    height: 28px;
    color: var(--color-text);
    margin-bottom: 12px;
}

.account-card__title {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: 4px;
}

.account-card__desc {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Recent orders on dashboard */
.account-recent-orders h3 {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: 16px;
}

.account-orders-table {
    overflow-x: auto;
}

.account-orders-table table {
    width: 100%;
    border-collapse: collapse;
}

.account-orders-table th {
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-border);
}

.account-orders-table td {
    font-size: 14px;
    padding: 12px;
    border-bottom: 1px solid var(--color-border-light, #f0f0f0);
    color: var(--color-text);
}

.order-status {
    display: inline-block;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--color-bg-alt, #f0f0f0);
    color: var(--color-text);
}

.order-status--completed { background: #e8f5e9; color: #2e7d32; }
.order-status--processing { background: #e3f2fd; color: #1565c0; }
.order-status--on-hold { background: #fff8e1; color: #f57f17; }
.order-status--cancelled,
.order-status--failed { background: #fce4ec; color: #c62828; }

.account-btn-sm {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.account-btn-sm:hover {
    border-color: var(--color-text);
    background: var(--color-text);
    color: var(--color-white);
}

/* Disabled nav item (Loyalty Program) */
.account-nav__item.is-disabled .account-nav__link-disabled {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--color-text-muted);
    cursor: default;
    opacity: 0.6;
}

.account-nav__badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--color-accent);
    color: var(--color-white);
}

/* Loyalty Teaser on Dashboard */
.account-loyalty-teaser {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #1A1A1A 0%, #333 100%);
    border-radius: var(--radius-card);
    margin-bottom: 32px;
    overflow: hidden;
    color: var(--color-white);
}

.loyalty-teaser__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.loyalty-teaser__icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.loyalty-teaser__content h3 {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    margin: 0 0 6px;
    color: var(--color-white);
}

.loyalty-teaser__content p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 16px;
    line-height: 1.5;
    max-width: 400px;
}

.loyalty-teaser__stats {
    display: flex;
    gap: 32px;
}

.loyalty-teaser__stat {
    display: flex;
    flex-direction: column;
}

.loyalty-teaser__stat-value {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
}

.loyalty-teaser__stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.5);
}

.loyalty-teaser__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 12px;
    background: var(--color-accent);
    color: var(--color-white);
}

/* Account content — general headings */
.account-content h2,
.account-content h3 {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: 20px;
}

/* ---- Orders Page ---- */
.account-content .woocommerce-MyAccount-orders {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.account-content .woocommerce-MyAccount-orders thead th {
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.account-content .woocommerce-MyAccount-orders tbody td,
.account-content .woocommerce-MyAccount-orders tbody th {
    font-size: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border-light, #f0f0f0);
    color: var(--color-text);
    vertical-align: middle;
}

.account-content .woocommerce-MyAccount-orders tbody th a {
    color: var(--color-text);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
}

.account-content .woocommerce-MyAccount-orders tbody th a:hover {
    color: var(--color-accent);
}

.account-content .woocommerce-MyAccount-orders .button,
.account-content .woocommerce-MyAccount-orders .woocommerce-button {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    text-decoration: none;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.account-content .woocommerce-MyAccount-orders .button:hover,
.account-content .woocommerce-MyAccount-orders .woocommerce-button:hover {
    border-color: var(--color-text);
    background: var(--color-text);
    color: var(--color-white);
}

/* Orders pagination */
.account-content .woocommerce-pagination {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.account-content .woocommerce-pagination .button {
    display: inline-block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    text-decoration: none;
    background: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.account-content .woocommerce-pagination .button:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-white);
}

/* ---- Address Listing Page ---- */
.account-content .woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.account-content .woocommerce-Address {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 20px;
}

.account-content .woocommerce-Address .woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-light, #f0f0f0);
}

.account-content .woocommerce-Address .woocommerce-Address-title h2 {
    font-size: 16px;
    margin: 0;
}

.account-content .woocommerce-Address .woocommerce-Address-title .edit {
    font-size: 13px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.account-content .woocommerce-Address .woocommerce-Address-title .edit:hover {
    text-decoration: underline;
}

.account-content .woocommerce-Address address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* Description text before addresses */
.account-content > p:first-child,
.account-content .woocommerce-Addresses + p,
.account-content form > p:first-of-type:not(.form-row) {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* ---- Address Edit & Account Edit Forms ---- */
.account-content .woocommerce-address-fields,
.account-content .woocommerce-EditAccountForm {
    max-width: 560px;
}

.account-content .woocommerce-address-fields__field-wrapper,
.account-content .woocommerce-EditAccountForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.account-content .form-row-wide,
.account-content .woocommerce-form-row--wide {
    grid-column: 1 / -1;
}

.account-content .form-row-first,
.account-content .woocommerce-form-row--first {
    grid-column: 1;
}

.account-content .form-row-last,
.account-content .woocommerce-form-row--last {
    grid-column: 2;
}

.account-content .form-row {
    margin-bottom: 0;
}

.account-content .form-row label {
    display: block;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    margin-bottom: 6px;
}

.account-content .form-row label .required {
    color: var(--color-sale);
}

.account-content .form-row label .optional {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: var(--font-weight-regular);
}

.account-content .form-row input.input-text,
.account-content .form-row input[type="text"],
.account-content .form-row input[type="email"],
.account-content .form-row input[type="password"],
.account-content .form-row textarea,
.account-content .form-row select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    background: var(--color-white);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.account-content .form-row input:focus,
.account-content .form-row textarea:focus,
.account-content .form-row select:focus {
    outline: none;
    border-color: var(--color-text);
}

.account-content .form-row select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Select2 in account forms */
.account-content .select2-container .select2-selection--single {
    height: 42px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.account-content .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 42px;
    padding-left: 14px;
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--color-text);
}

.account-content .select2-container .select2-selection--single .select2-selection__arrow {
    height: 42px;
    right: 8px;
}

/* Fieldset (password change) */
.account-content fieldset {
    border: none;
    padding: 0;
    margin: 24px 0 0;
    grid-column: 1 / -1;
}

.account-content fieldset legend {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-light, #f0f0f0);
    width: 100%;
}

/* Display name description */
.account-content #account_display_name_description em {
    font-size: 12px;
    color: var(--color-text-muted);
    font-style: normal;
}

/* Clear divs */
.account-content .clear {
    display: none;
}

/* Submit buttons in account forms */
.account-content .woocommerce-address-fields > p:last-child,
.account-content .woocommerce-EditAccountForm > p:last-child {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.account-content .button,
.account-content button[type="submit"] {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-text);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.25s ease;
}

.account-content .button:hover,
.account-content button[type="submit"]:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* ---- View Order Page ---- */
.account-content mark {
    background: none;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
}

.account-content .woocommerce-OrderUpdates {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-content .woocommerce-OrderUpdate {
    padding: 16px;
    background: var(--color-white);
    border: 1px solid var(--color-border-light, #f0f0f0);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.account-content .woocommerce-OrderUpdate-meta {
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 0 0 6px;
}

.account-content .woocommerce-OrderUpdate-description p {
    font-size: 14px;
    color: var(--color-text);
    margin: 0;
}

/* Order details table (rendered by do_action) */
.account-content .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    background: var(--color-white);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.account-content .woocommerce-table--order-details th,
.account-content .woocommerce-table--order-details td {
    padding: 12px 16px;
    font-size: 14px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light, #f0f0f0);
}

.account-content .woocommerce-table--order-details thead th {
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.account-content .woocommerce-table--order-details tfoot th {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-light);
}

.account-content .woocommerce-table--order-details tfoot tr:last-child th,
.account-content .woocommerce-table--order-details tfoot tr:last-child td {
    font-weight: var(--font-weight-bold);
    font-size: 16px;
    color: var(--color-text);
    border-top: 1px solid var(--color-border);
}

.account-content .woocommerce-table--order-details .product-name a {
    color: var(--color-text);
    text-decoration: none;
}

.account-content .woocommerce-table--order-details .product-name a:hover {
    color: var(--color-accent);
}

/* Customer details after order */
.account-content .woocommerce-customer-details {
    margin-top: 24px;
}

.account-content .woocommerce-columns--addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.account-content .woocommerce-column--billing-address,
.account-content .woocommerce-column--shipping-address {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 20px;
}

.account-content .woocommerce-column--billing-address h2,
.account-content .woocommerce-column--shipping-address h2 {
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-light, #f0f0f0);
}

.account-content .woocommerce-column--billing-address address,
.account-content .woocommerce-column--shipping-address address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* ---- Login / Register Form ---- */
.woocommerce-account:not(.logged-in) .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.woocommerce-account:not(.logged-in) #customer_login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.woocommerce-account:not(.logged-in) #customer_login h2 {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: 20px;
}

.woocommerce-account:not(.logged-in) .form-row {
    margin-bottom: 16px;
}

.woocommerce-account:not(.logged-in) .form-row label {
    display: block;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    margin-bottom: 6px;
}

.woocommerce-account:not(.logged-in) .form-row .required {
    color: var(--color-sale);
}

.woocommerce-account:not(.logged-in) .form-row input.input-text,
.woocommerce-account:not(.logged-in) .form-row input[type="text"],
.woocommerce-account:not(.logged-in) .form-row input[type="email"],
.woocommerce-account:not(.logged-in) .form-row input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    background: var(--color-white);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.woocommerce-account:not(.logged-in) .form-row input:focus {
    outline: none;
    border-color: var(--color-text);
}

.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-light);
}

.woocommerce-account:not(.logged-in) .button {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-text);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.25s ease;
    margin-top: 8px;
}

.woocommerce-account:not(.logged-in) .button:hover {
    background: var(--color-accent);
}

.woocommerce-account:not(.logged-in) .lost_password {
    margin-top: 12px;
}

.woocommerce-account:not(.logged-in) .lost_password a {
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: underline;
}

.woocommerce-account:not(.logged-in) .lost_password a:hover {
    color: var(--color-accent);
}

/* ---- WooCommerce Notices in Account ---- */
.account-content .woocommerce-message,
.account-content .woocommerce-error,
.account-content .woocommerce-info {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    list-style: none;
}

.account-content .woocommerce-message {
    background: #f0fdf4;
    border-left: 3px solid #16a34a;
    color: #166534;
}

.account-content .woocommerce-error {
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    color: #991b1b;
}

.account-content .woocommerce-info {
    background: #eff6ff;
    border-left: 3px solid #2563eb;
    color: #1e40af;
}

.account-content .woocommerce-message a,
.account-content .woocommerce-error a,
.account-content .woocommerce-info a {
    color: inherit;
    font-weight: var(--font-weight-medium);
    text-decoration: underline;
}

/* ---- Account Responsive ---- */
@media (max-width: 768px) {
    .account-wrapper {
        grid-template-columns: 1fr;
        gap: var(--gap-md);
    }

    .account-nav__item.is-active a {
        border-left: none;
        padding-left: 20px;
    }

    .account-content .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }

    .account-content .woocommerce-address-fields__field-wrapper,
    .account-content .woocommerce-EditAccountForm {
        grid-template-columns: 1fr;
    }

    .account-content .form-row-first,
    .account-content .woocommerce-form-row--first,
    .account-content .form-row-last,
    .account-content .woocommerce-form-row--last {
        grid-column: 1;
    }

    .account-content .woocommerce-columns--addresses {
        grid-template-columns: 1fr;
    }

    .woocommerce-account:not(.logged-in) #customer_login {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .account-loyalty-teaser {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .loyalty-teaser__stats {
        justify-content: center;
    }

    .loyalty-teaser__content p {
        max-width: none;
    }

    /* Orders table responsive */
    .account-content .woocommerce-MyAccount-orders thead {
        display: none;
    }

    .account-content .woocommerce-MyAccount-orders tbody tr {
        display: block;
        background: var(--color-white);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-card);
        padding: 16px;
        margin-bottom: 12px;
    }

    .account-content .woocommerce-MyAccount-orders tbody td,
    .account-content .woocommerce-MyAccount-orders tbody th {
        display: flex;
        justify-content: space-between;
        padding: 4px 0;
        border: none;
    }

    .account-content .woocommerce-MyAccount-orders tbody td::before,
    .account-content .woocommerce-MyAccount-orders tbody th::before {
        content: attr(data-title);
        font-weight: var(--font-weight-medium);
        color: var(--color-text-muted);
        font-size: 12px;
        text-transform: uppercase;
    }
}

/* ==========================================================================
   28b. One-Page Checkout
   ========================================================================== */
.oc-wrapper {
    padding: 0 0 60px;
    background: var(--color-bg);
    min-height: 100vh;
}

.oc-title {
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-top: 0;
    margin-bottom: 32px;
}

/* Empty cart */
.oc-empty {
    text-align: center;
    padding: 80px 0;
}

.oc-empty p {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* Layout: 2 columns */
.oc-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--gap-xl);
    align-items: start;
}

.oc-sidebar__sticky {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

/* Section titles */
.oc-section-title {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

/* Buttons */
.oc-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-text);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.25s ease;
}

.oc-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.oc-btn--sm {
    padding: 8px 20px;
    font-size: 13px;
}

/* --- Cart Items --- */
.oc-cart {
    margin-bottom: 32px;
}

.oc-cart__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.oc-cart__item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--color-white);
    border-radius: var(--radius-card);
}

.oc-cart__item-img {
    flex: 0 0 80px;
    width: 80px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg);
}

.oc-cart__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oc-cart__item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.oc-cart__item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.oc-cart__item-name {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    line-height: 1.4;
    margin: 0;
}

.oc-cart__item-name a {
    color: inherit;
    text-decoration: none;
}

.oc-cart__item-name a:hover {
    color: var(--color-accent);
}

.oc-cart__item-remove {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-text-muted);
    text-decoration: none;
    line-height: 1;
    border-radius: 50%;
    transition: color 0.2s ease;
}

.oc-cart__item-remove:hover {
    color: var(--color-sale);
}

.oc-cart__item-info dl.variation {
    margin: 4px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.oc-cart__item-info dl.variation dt {
    font-weight: var(--font-weight-regular);
}

.oc-cart__item-info dl.variation dd {
    margin: 0;
}

.oc-cart__item-info dl.variation p {
    margin: 0;
}

.oc-cart__item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.oc-cart__item-qty {
    font-size: 13px;
    color: var(--color-text-muted);
}

.oc-cart__item-price {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
}

.oc-cart__edit {
    margin-top: 12px;
    text-align: right;
}

.oc-cart__edit a {
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: underline;
}

.oc-cart__edit a:hover {
    color: var(--color-accent);
}

/* --- Coupon --- */
.oc-coupon {
    margin-bottom: 32px;
}

.oc-coupon__btn {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--color-accent);
    cursor: pointer;
    text-decoration: underline;
}

.oc-coupon__form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.oc-coupon__input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
}

.oc-coupon__input:focus {
    outline: none;
    border-color: var(--color-text);
}

/* --- Billing / Shipping fields --- */
.oc-billing,
.oc-shipping {
    margin-bottom: 32px;
}

.oc-order-notes {
    margin-bottom: 32px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border-light);
}

.oc-order-notes .form-row {
    margin: 0;
}

.oc-order-notes label {
    display: block;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.oc-order-notes label .optional {
    font-weight: var(--font-weight-regular);
    color: var(--color-text-muted);
}

.oc-order-notes textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    background: var(--color-white);
    min-height: 72px;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.oc-order-notes textarea:focus {
    outline: none;
    border-color: var(--color-text);
}

.oc-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.oc-fields .form-row-wide,
.oc-fields .form-row-last + .form-row-wide {
    grid-column: 1 / -1;
}

.oc-fields .form-row-first {
    grid-column: 1;
}

.oc-fields .form-row-last {
    grid-column: 2;
}

.oc-fields .form-row {
    margin-bottom: 0;
}

.oc-fields .form-row label {
    display: block;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    margin-bottom: 6px;
}

.oc-fields .form-row label .required {
    color: var(--color-sale);
}

.oc-fields .form-row label .optional {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: var(--font-weight-regular);
}

.oc-fields .form-row input.input-text,
.oc-fields .form-row textarea,
.oc-fields .form-row select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    background: var(--color-white);
    transition: border-color 0.2s ease;
}

.oc-fields .form-row input.input-text:focus,
.oc-fields .form-row textarea:focus,
.oc-fields .form-row select:focus {
    outline: none;
    border-color: var(--color-text);
}

.oc-fields .form-row textarea {
    min-height: 80px;
    resize: vertical;
}

.oc-fields .form-row select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Select2 override (WooCommerce uses Select2 for country/state) */
.oc-fields .select2-container .select2-selection--single {
    height: 42px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.oc-fields .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 42px;
    padding-left: 14px;
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--color-text);
}

.oc-fields .select2-container .select2-selection--single .select2-selection__arrow {
    height: 42px;
    right: 8px;
}

/* --- Order Totals (sidebar) --- */
.oc-totals {
    background: var(--color-white);
    border-radius: var(--radius-card);
    padding: 24px;
    margin-bottom: 20px;
}

.oc-totals .oc-section-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 16px;
}

.oc-totals__rows {
    border-top: 1px solid var(--color-border-light);
    padding-top: 12px;
}

.oc-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 14px;
    color: var(--color-text-light);
    padding: 6px 0;
}

.oc-totals__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--color-border);
}

/* Shipping note (enter address / no options) */
.oc-totals__shipping-note {
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: right;
    max-width: 180px;
    line-height: 1.3;
}

/* Montonio pickup point dropdown in sidebar */
.oc-sidebar #montonio-shipping-pickup-point-dropdown-wrapper {
    margin-top: 12px;
}

.oc-sidebar #montonio-shipping-pickup-point-dropdown-wrapper h2 {
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-light);
    margin: 0 0 8px;
}

.oc-sidebar .montonio-pickup-point__search-input {
    font-family: var(--font-family);
    border-radius: var(--radius-sm) !important;
}

/* --- Payment (sidebar) --- */
.oc-payment {
    background: var(--color-white);
    border-radius: var(--radius-card);
    padding: 24px;
}

.oc-payment .woocommerce-checkout-payment {
    background: none !important;
}

.oc-payment #payment {
    background: none;
    border-radius: 0;
}

.oc-payment #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    border: none;
}


/* --- Montonio: two blocks — bank grid + card form --- */

/* Hide all radio buttons (visually, keep functional) */
.oc-payment #payment ul.payment_methods li > input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Remove li default styling */
.oc-payment #payment ul.payment_methods li {
    padding: 0;
    border: none;
}

/* Force ALL payment_boxes always visible (both methods shown) */
.oc-payment #payment .payment_box {
    display: block !important;
    padding: 0 !important;
    background: none !important;
    color: inherit;
}

.oc-payment #payment .payment_box::before {
    display: none;
}

/* Hide test mode text / description text */
.oc-payment #payment .payment_box > strong,
.oc-payment #payment .payment_box > br {
    display: none;
}

/* --- Bank payments block --- */

/* Hide bank payment label (title is empty, logo not needed) */
.oc-payment .payment_method_wc_montonio_payments > label {
    display: none !important;
}

/* Bank grid: fit sidebar width */
.oc-payment .montonio-bank-payments-form .montonio-bank-items {
    gap: 8px;
}

.oc-payment .montonio-bank-payments-form .montonio-bank-item {
    width: calc(33.333% - 6px);
    height: 64px;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.oc-payment .montonio-bank-payments-form .montonio-bank-item.active {
    border-color: var(--color-accent);
    background: rgba(0,0,0,0.02);
}

/* --- Card payment block --- */

/* Separator + spacing between bank and card blocks */
.oc-payment .payment_method_wc_montonio_card {
    margin-top: 20px;
    padding-top: 20px !important;
    border-top: 1px solid var(--color-border-light) !important;
}

/* Card label as section heading (hide logo, show title text) */
.oc-payment .payment_method_wc_montonio_card > label {
    display: block !important;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    cursor: pointer;
    margin-bottom: 12px;
}

/* Hide the Montonio card icon from the label */
.oc-payment .payment_method_wc_montonio_card > label img {
    display: none;
}

/* Hide description text, show only embedded form */
.oc-payment .payment_method_wc_montonio_card .payment_box {
    font-size: 0;
    line-height: 0;
}

.oc-payment .payment_method_wc_montonio_card #montonio-card-form {
    font-size: 14px;
    line-height: 1.4;
}

.oc-payment #payment .place-order {
    padding: 0;
    margin: 0;
}

.oc-payment #payment #place_order {
    display: block;
    width: 100%;
    padding: 14px 28px;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.25s ease;
}

.oc-payment #payment #place_order:hover {
    background: var(--color-accent-hover);
}

.oc-payment .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--color-text-light);
}

.oc-payment .woocommerce-privacy-policy-text {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Hide coupon toggle on checkout */
.woocommerce-form-coupon-toggle,
.checkout_coupon.woocommerce-form-coupon {
    display: none !important;
}

/* WC notices on checkout */
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    list-style: none;
}

.woocommerce-checkout .woocommerce-error {
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    color: #991b1b;
}

.woocommerce-checkout .woocommerce-message {
    background: #f0fdf4;
    border-left: 3px solid #16a34a;
    color: #166534;
}

.woocommerce-checkout .woocommerce-info {
    background: #eff6ff;
    border-left: 3px solid #2563eb;
    color: #1e40af;
}

/* --- 29. Thank You / Order Received --- */
.oc-thankyou {
    padding: 80px 0;
    text-align: center;
}

.oc-thankyou__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: #16a34a;
}

.oc-thankyou__icon svg {
    width: 100%;
    height: 100%;
}

.oc-thankyou__icon--fail {
    color: #dc2626;
}

.oc-thankyou__title {
    font-family: var(--font-family);
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin: 0 0 32px;
}

.oc-thankyou__text {
    font-size: 15px;
    color: var(--color-text-light);
    margin: -16px 0 32px;
}

.oc-thankyou__details {
    display: inline-flex;
    flex-direction: column;
    gap: 12px;
    background: var(--color-white);
    border-radius: var(--radius-card);
    padding: 24px 40px;
    margin-bottom: 32px;
    min-width: 280px;
}

.oc-thankyou__row {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    font-size: 15px;
}

.oc-thankyou__row span {
    color: var(--color-text-light);
}

.oc-thankyou__row strong {
    color: var(--color-text);
}

.oc-thankyou__actions {
    margin-top: 8px;
}

.oc-thankyou__actions .oc-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: background 0.25s ease;
}

.oc-thankyou__actions .oc-btn:hover {
    background: var(--color-accent-hover);
}

@media (max-width: 768px) {
    .oc-thankyou {
        padding: 48px 0;
    }

    .oc-thankyou__title {
        font-size: 22px;
    }

    .oc-thankyou__details {
        padding: 20px 24px;
        min-width: 0;
        width: 100%;
    }
}

/* --- Checkout Responsive --- */
@media (max-width: 1024px) {
    .oc-layout {
        grid-template-columns: 1fr 340px;
    }
}

@media (max-width: 768px) {
    .oc-layout {
        grid-template-columns: 1fr;
    }

    .oc-sidebar__sticky {
        position: static;
    }

    .oc-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .oc-fields {
        grid-template-columns: 1fr;
    }

    .oc-fields .form-row-first,
    .oc-fields .form-row-last {
        grid-column: 1;
    }

    .oc-cart__item-img {
        flex: 0 0 64px;
        width: 64px;
        height: 80px;
    }
}

/* ==========================================================================
   FILTER SLIDEOUT OVERLAY + FLOATING BUTTON + 4-COLUMN GRID
   ========================================================================== */

/* --- Floating filter button (right side) --- */
.filter-fab {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 990;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--color-text);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-btn);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: background 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.3px;
}

.filter-fab:hover {
    background: #333 !important;
}

.filter-fab svg {
    width: 18px;
    height: 18px;
}

/* --- Filter backdrop --- */
.filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

/* --- Sidebar as slideout panel --- */

.shop-sidebar {
    position: fixed;
    top: 0;
    left: -360px;
    right: auto;
    width: 340px;
    height: 100vh;
    background: var(--color-white);
    z-index: 1001;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: unset;
}

.shop-sidebar.is-open {
    left: 0;
    display: block;
}

/* Close button inside sidebar */
.filter-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.filter-close-title {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.3px;
}

.filter-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-close-btn:hover {
    border-color: var(--color-text);
}

.filter-close-btn svg {
    width: 16px;
    height: 16px;
}

/* Hide the old toolbar Filter by button */
.shop-by-toggle {
    display: none !important;
}

/* --- 4-column grid (no sidebar in flow) --- */
.products-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* Tablet: 3 columns */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .filter-fab {
        right: 16px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Mobile: 2 columns */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .shop-sidebar {
        width: 300px;
        left: -320px;
    }
    .filter-fab {
        right: 12px;
        top: auto;
        bottom: 24px;
        transform: none;
        padding: 12px 18px;
        border-radius: var(--radius-btn);
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .shop-sidebar {
        width: 85vw;
        left: -90vw;
    }
}


/* Wishlist badge in header */
.wishlist-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}

/* Wishlist page in My Account */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.wishlist-item {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.wishlist-item__img img {
    width: 100%;
    height: auto;
    display: block;
}

.wishlist-item__info {
    padding: 12px;
}

.wishlist-item__name {
    display: block;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    text-decoration: none;
    margin-bottom: 4px;
}

.wishlist-item__name:hover {
    color: var(--color-accent);
}

.wishlist-item__price {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
}

.wishlist-item__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: var(--color-text-muted);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-item__remove:hover {
    color: var(--color-accent);
    background: var(--color-white);
}

/* ==========================================================================
   FIX: Prevent cropping heads/sleeves — shrink image inside container
   ========================================================================== */






/* Wishlist badge in header */
.wishlist-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}

/* Wishlist page in My Account */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.wishlist-item {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.wishlist-item__img img {
    width: 100%;
    height: auto;
    display: block;
}

.wishlist-item__info {
    padding: 12px;
}

.wishlist-item__name {
    display: block;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    text-decoration: none;
    margin-bottom: 4px;
}

.wishlist-item__name:hover {
    color: var(--color-accent);
}

.wishlist-item__price {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
}

.wishlist-item__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: var(--color-text-muted);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-item__remove:hover {
    color: var(--color-accent);
    background: var(--color-white);
}

/* ==========================================================================
   FIX: Prevent cropping — full width, auto height within container
   ========================================================================== */
.product-card-image {
    background: var(--color-bg) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    width: 100% !important;
    height: auto !important;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center center;
}

.sp-gallery__main {
    background: var(--color-bg) !important;
}

.sp-gallery__img {
    object-fit: contain !important;
    object-position: center center;
}


/* Newsletter in footer (under logo) */
.footer-newsletter {
    flex-shrink: 0;
    min-width: 300px;
    margin-top: 0;
}

.newsletter-title {
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    margin: 0 0 8px;
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-wrap {
    display: flex;
    border-radius: var(--radius-btn);
    overflow: hidden;
}

.newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius-btn) 0 0 var(--radius-btn);
    background: var(--color-white);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-input::placeholder {
    color: var(--color-text-muted);
}

.newsletter-input:focus {
    border-color: var(--color-text);
}

.newsletter-btn {
    padding: 8px 16px;
    background: var(--color-text);
    color: var(--color-white);
    border: none;
    border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--color-accent);
}
/* Scroll to top button */
.scroll-top-btn {
    position: fixed;
    bottom: 32px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--color-text);
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--color-accent);
}

.scroll-top-btn svg {
    width: 20px;
    height: 20px;
}

/* Swatch collapse — hide extras, toggle */
.swatch-hidden {
    display: none !important;
}

.product-swatches.is-expanded .swatch-hidden {
    display: inline-block !important;
}

.swatch-toggle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-muted);
    font-size: 9px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
    flex-shrink: 0;
}

.swatch-toggle:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.product-swatches.is-expanded .swatch-toggle {
    display: none;
}

/* ============================================================
   BLOG — index + archive + single  (HUPPA design tokens)
   ============================================================ */

/* --- Blog index hero --- */
.hp-blog-hero {
    padding: 60px 0 28px;
    background: var(--color-bg);
    text-align: center;
}
.hp-blog-hero__kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    color: var(--color-accent);
    margin-bottom: 12px;
}
.hp-blog-hero__title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.01em;
    margin: 0 0 14px;
    color: var(--color-text);
}
.hp-blog-hero__sub {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-light);
    font-size: 16px;
    line-height: 1.6;
}

/* --- Post grid --- */
.hp-blog-grid-wrap { padding-bottom: 80px; }
.hp-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--gap-xl);
}
.hp-post-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--color-border-light);
}
.hp-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.hp-post-card__media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-bg);
}
.hp-post-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.hp-post-card:hover .hp-post-card__img { transform: scale(1.05); }
.hp-post-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-black);
    color: var(--color-border);
    letter-spacing: 0.1em;
    font-size: 24px;
}
.hp-post-card__body { padding: 22px 24px 26px; }
.hp-post-card__title { margin: 0 0 10px; font-size: 20px; line-height: 1.3; }
.hp-post-card__title a { color: var(--color-text); text-decoration: none; }
.hp-post-card__title a:hover { color: var(--color-accent); }
.hp-post-card__excerpt {
    color: var(--color-text-light);
    margin: 0 0 14px;
    line-height: 1.55;
    font-size: 14px;
}
.hp-post-card__meta {
    font-size: 12px;
    color: var(--color-text-muted);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* --- Pagination --- */
.hp-pagination { margin-top: 60px; display: flex; justify-content: center; }
.hp-pagination ul { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.hp-pagination a,
.hp-pagination span {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    text-decoration: none;
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
    font-size: 14px;
    background: var(--color-white);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hp-pagination a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.hp-pagination .current { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-white); }

/* --- Single post --- */
.hp-blog-single { background: var(--color-bg); padding-bottom: 80px; }
.hp-breadcrumbs {
    padding: 24px 0 12px;
    font-size: 13px;
    color: var(--color-text-muted);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.hp-breadcrumbs a { color: var(--color-text-muted); text-decoration: none; }
.hp-breadcrumbs a:hover { color: var(--color-accent); }
.hp-breadcrumbs .is-current { color: var(--color-text); }

.hp-article__header { padding-bottom: 28px; max-width: 800px; text-align: center; }
.hp-article__title {
    font-size: clamp(30px, 4.5vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    font-weight: var(--font-weight-bold);
    margin: 0 0 18px;
}
.hp-article__meta {
    display: inline-flex;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 13px;
    flex-wrap: wrap;
    justify-content: center;
}
.hp-article__dot { opacity: 0.5; }

.hp-article__hero {
    margin: 0 0 48px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--container-padding);
}
.hp-article__hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-card);
    display: block;
}

.hp-article__body { max-width: 740px; }
.hp-article__content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text);
}
.hp-article__content p { margin: 0 0 1.25em; }
.hp-article__content h2 {
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.01em;
    margin: 2em 0 0.6em;
}
.hp-article__content h3 {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    margin: 1.8em 0 0.5em;
}
.hp-article__content a:not(.wp-block-button__link):not(.hp-btn):not(.button) {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.hp-article__content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 8px 0 8px 24px;
    margin: 1.6em 0;
    color: var(--color-text-light);
    font-style: italic;
    font-size: 18px;
}
.hp-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1.6em 0;
}
.hp-article__content ul,
.hp-article__content ol { padding-left: 1.4em; margin: 1em 0 1.4em; }
.hp-article__content li { margin-bottom: 0.5em; }

.hp-article__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid var(--color-border);
    margin-top: 56px;
    padding-top: 28px;
}
.hp-article__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hp-tag {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
}
.hp-tag:hover { border-color: var(--color-accent); color: var(--color-accent); }
.hp-article__share {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 13px;
}
.hp-article__share a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text);
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.hp-article__share a:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-white); }

/* --- Related --- */
.hp-related {
    background: var(--color-white);
    padding: 72px 0 80px;
    margin-top: 64px;
    border-top: 1px solid var(--color-border);
}
.hp-related__title {
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    margin: 0 0 32px;
    letter-spacing: -0.01em;
}
.hp-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--color-text-muted);
}

@media (max-width: 640px) {
    .hp-blog-hero { padding: 40px 0 16px; }
    .hp-post-grid { gap: var(--gap-lg); }
    .hp-article__header { padding-top: 8px; }
}

/* ============================================================
   Homepage block: products showcase (dynamic)
   Relies on WooCommerce's own .products .product card styles;
   this file only sizes the outer wrapper and the optional carousel.
   ============================================================ */
.hp-products { padding: 60px 0; }
.hp-products__header { margin-bottom: 32px; }
.hp-products__title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}
.hp-products__desc {
    color: var(--color-text-light);
    max-width: 640px;
    margin: 0;
}
.hp-products .products { list-style: none; margin: 0; padding: 0; }

/* Grid layout — collapse WC's default columns on small screens */
.hp-products--grid .hp-products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--gap-lg);
}

/* Carousel layout — horizontal scroll with snap, nav buttons overlay */
.hp-products__carousel { position: relative; }
.hp-products--carousel .hp-products__track {
    display: flex;
    gap: var(--gap-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    scrollbar-width: thin;
}
.hp-products--carousel .hp-products__track > li {
    flex: 0 0 260px;
    scroll-snap-align: start;
}
.hp-products__nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 2;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.hp-products__nav:hover { color: var(--color-accent); border-color: var(--color-accent); }
.hp-products__nav svg { width: 18px; height: 18px; }
.hp-products__nav--prev { left: -4px; }
.hp-products__nav--next { right: -4px; }
.hp-products__footer {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

@media (max-width: 640px) {
    .hp-products { padding: 40px 0; }
    .hp-products__nav { display: none; }
}

/* Mobile safety: PDP (single product) occasionally showed a sliver of
   horizontal scroll because a WooCommerce child table / long SKU line /
   variation dropdown pushed past the viewport. Clip at the wrapper and
   make sure common WC children shrink with their parent. */
@media (max-width: 768px) {
    .sp-wrapper { overflow-x: clip; }
    .sp-wrapper .container { max-width: 100%; }
    .sp-info table,
    .sp-details-table,
    .sp-info .variations,
    .sp-info .variations_form {
        max-width: 100%;
        table-layout: fixed;
        word-break: break-word;
    }
    .sp-info img,
    .sp-info video,
    .sp-info iframe {
        max-width: 100%;
        height: auto;
    }
    .sp-gallery__thumbs {
        max-width: 100%;
    }
}

/* ============================================================
   Mobile nav — language picker (inside the slide-in menu footer)
   ============================================================ */
.primary-nav__lang { display: none; }
@media (max-width: 768px) {
    .primary-nav__lang {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 16px 20px 0;
        margin-top: 16px;
        border-top: 1px solid var(--color-border);
    }
    .primary-nav__lang-label {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--color-text-muted);
    }
    .primary-nav__lang-options {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .primary-nav__lang-opt {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        padding: 6px 12px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-btn);
        font-size: 13px;
        font-weight: var(--font-weight-medium);
        color: var(--color-text);
        text-decoration: none;
        background: var(--color-white);
    }
    .primary-nav__lang-opt.is-active {
        background: var(--color-accent);
        color: var(--color-white);
        border-color: var(--color-accent);
    }
    .primary-nav__lang-opt.is-disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }
}

/* ============================================================
   PDP mobile overflow fix — size/color swatches + gallery
   ============================================================ */
@media (max-width: 768px) {
    .sp-info .variations,
    .sp-info .variations_form,
    .sp-info .variations td,
    .sp-info .variations tr {
        display: block;
        width: 100%;
        max-width: 100%;
    }
    .sp-info .variations label,
    .sp-info .variations .value {
        display: block;
        width: 100%;
    }
    /* Horizontal swatch rows — wrap, no horizontal overflow */
    .sp-info .variations ul,
    .sp-info .huppa-swatches,
    .sp-info .huppa-color-swatches,
    .sp-info .huppa-size-swatches,
    .sp-info .reset_variations,
    .sp-info select {
        max-width: 100%;
        flex-wrap: wrap;
    }
    .sp-info .huppa-swatches,
    .sp-info .huppa-color-swatches,
    .sp-info .huppa-size-swatches {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    /* Gallery main image — safeguard against inline WC width */
    .sp-gallery,
    .sp-gallery__main,
    .sp-gallery__main img,
    .sp-gallery__thumbs,
    .sp-gallery__thumb,
    .sp-gallery__thumb img {
        max-width: 100%;
    }
    .sp-gallery__main img { width: 100%; height: auto; }
    .sp-gallery__thumbs {
        flex-wrap: nowrap; /* still scroll horizontally, but inside container */
    }
}

/* Last-resort horizontal-scroll guard — keeps the viewport clean on mobile
   when a WC component briefly renders wider than its parent during JS init. */
@media (max-width: 768px) {
    html, body { overflow-x: clip; }
    .sp-product { min-width: 0; }
    .sp-info,
    .sp-gallery { min-width: 0; max-width: 100%; }
    .sp-info__size-row,
    .sp-info__swatch-row { max-width: 100%; }
}

/* === Image logo from production (A1) === */
.site-logo a { display: flex; align-items: center; }
.site-logo-img { height: 28px; width: auto; display: block; }
.footer-logo-img { width: 200px; max-width: none; height: auto; flex-shrink: 0; display: block; }
/* Homepage: transparent header over dark hero -> white logo; dark once scrolled */
.home .site-header:not(.is-scrolled) .site-logo-img { filter: brightness(0) invert(1); }
.home .site-header.is-scrolled .site-logo-img { filter: none; }

/* === F1: always-visible coupon field === */
.oc-coupon__label { display:block; font-size:13px; font-weight:500; color:var(--color-text); margin-bottom:4px; }

/* === F2: make "Card Payment" an obvious, clickable expandable row (img13) === */
.oc-payment .payment_method_wc_montonio_card > label {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px;
    margin-bottom: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    transition: background .15s ease, border-color .15s ease;
}
.oc-payment .payment_method_wc_montonio_card > label:hover {
    background: rgba(0, 0, 0, .02);
    border-color: var(--color-text);
}
/* Chevron affordance (down = collapsed) */
.oc-payment .payment_method_wc_montonio_card > label::after {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}
/* Selected/active -> highlight + chevron up */
.oc-payment .payment_method_wc_montonio_card > input:checked + label,
.oc-payment .payment_method_wc_montonio_card.active > label {
    border-color: var(--color-accent);
    background: rgba(0, 0, 0, .02);
}
.oc-payment .payment_method_wc_montonio_card > input:checked + label::after,
.oc-payment .payment_method_wc_montonio_card.active > label::after {
    transform: rotate(225deg);
}
.oc-payment .payment_method_wc_montonio_card #montonio-card-form { margin-top: 14px; }

/* === E1: uniform product-card image box — consistent 3:4, no crop (img14) === */
.product-card-image img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center;
}

/* === B3: clearly visible active category in shop sub-nav (img11) === */
.subnav-categories a.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    border-bottom-width: 2px;
    font-weight: var(--font-weight-bold);
}

/* === D3: mobile — stack back-to-top above the Filter FAB so they don't overlap (img15) === */
@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 88px;
        right: 12px;
    }
}

/* === D2: mobile — keep product colour-selection thumbnails at 3:4 (img12).
   Overrides the generic ".sp-info img{height:auto}" mobile rule that
   was squashing them. === */
@media (max-width: 768px) {
    .sp-info__swatch-row .sp-color-thumb {
        width: 56px;
        aspect-ratio: 3 / 4;
    }
    .sp-info__swatch-row .sp-color-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block;
    }
}

/* === D1: optional portrait hero video for phones (only active if a mobile
   cut is set in ACF; otherwise the single desktop video renders as before) === */
.hp-hero__video--mobile { display: none; }
@media (max-width: 768px) {
    .hp-hero__video--desktop { display: none; }
    .hp-hero__video--mobile { display: block; }
}

/* === C1: wider product listing + more discoverable Filter (img6) === */

/* Wider container only on shop / category / tag archives (global
   --container-max:1200px stays untouched for header/footer/content). */
.woocommerce-shop .shop-content,
.post-type-archive-product .shop-content,
.tax-product_cat .shop-content,
.tax-product_tag .shop-content {
    width: 100%;
}
body.woocommerce-shop .container,
body.post-type-archive-product .container,
body.tax-product_cat .container,
body.tax-product_tag .container,
body.single-product .container {
    max-width: min(1640px, 94vw);
}

/* Wider container on large monitors so 4 cards spread instead of leaving
   huge empty side gutters. */
@media (min-width: 1920px) {
    body.woocommerce-shop .container,
    body.post-type-archive-product .container,
    body.tax-product_cat .container,
    body.tax-product_tag .container,
    body.single-product .container {
        max-width: min(1800px, 94vw);
    }
}
@media (min-width: 2400px) {
    body.woocommerce-shop .container,
    body.post-type-archive-product .container,
    body.tax-product_cat .container,
    body.tax-product_tag .container,
    body.single-product .container {
        max-width: min(2200px, 94vw);
    }
}


/* Make the Filter button unmistakable (was a thin mid-edge tab). */
.filter-fab {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    border: 2px solid var(--color-white);
}
.filter-fab svg {
    width: 20px;
    height: 20px;
}

/* === B2: "Shop" hover/focus mega-menu (img10/img11) === */
.primary-nav .nav-item { position: relative; display: flex; align-items: center; }
.nav-item__link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    border-radius: var(--radius-btn);
    transition: all 0.2s ease;
}
.nav-item__link:hover { color: var(--color-accent); }
.nav-item__link.active { background: var(--color-accent); color: var(--color-white); }
.home .site-header .nav-item__link { color: var(--color-white); }
.home .site-header.is-scrolled .nav-item__link { color: var(--color-text); }
.home .site-header .nav-item__link.active { background: rgba(255,255,255,0.15); color: var(--color-white); }

.mega-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100vw;
    background: var(--color-white);
    color: var(--color-text);
    box-shadow: 0 14px 36px rgba(0,0,0,0.16);
    border-radius: 0;
    padding: 36px max(40px, 5vw);
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 1001;
}
/* Hover bridge: extends the mega-menu's hit area upward into the empty
   space between the menu trigger ("Shop"/"Collections") and the panel,
   so moving the cursor slowly across that gap doesn't drop hover. */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -22px;
    left: 0;
    right: 0;
    height: 22px;
    background: transparent;
}
/* WP admin bar offsets the whole layout — mega-menu is fixed to viewport
   so it must compensate explicitly. */
body.admin-bar .mega-menu { top: calc(var(--header-height) + 32px); }
@media (max-width: 782px) {
    body.admin-bar .mega-menu { top: calc(var(--header-height) + 46px); }
}
.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-menu__inner {
    display: flex;
    gap: 64px;
    max-width: 1640px;
    margin: 0 auto;
}
.mega-menu__col { min-width: 116px; }
.mega-menu__title {
    display: block;
    font-weight: var(--font-weight-bold);
    font-size: 13px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 12px;
}
.mega-menu__title:hover { color: var(--color-accent); }
.mega-menu__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mega-menu__list a { font-size: 13px; color: #555; transition: color .15s ease; }
.mega-menu__list a:hover { color: var(--color-accent); }

/* Mobile / tablet: keep the simple slide-in nav, no mega panel */
@media (max-width: 1024px) {
    .mega-menu { display: none !important; }
    .primary-nav .nav-item { display: block; }
}

/* ==========================================================================
   Content pages (migrated Gutenberg content) — readable, on-brand layout
   ========================================================================== */
.page-container { padding-top: 48px; padding-bottom: 72px; }

.page-article__header {
    max-width: 860px;
    margin: 0 auto 36px;
    text-align: center;
}
.page-article__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: var(--font-weight-black);
    letter-spacing: 0.5px;
    line-height: 1.15;
    margin: 0;
}

/* Readable centred column; wide/full blocks break out */
.page-article .entry-content { max-width: 860px; margin: 0 auto; font-size: 16px; line-height: 1.7; color: var(--color-text); }
.page-article .entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.page-article .entry-content > .alignwide { max-width: 1140px; margin-left: auto; margin-right: auto; }
.page-article .entry-content > .alignfull { max-width: none; }

.page-article .entry-content h1,
.page-article .entry-content h2,
.page-article .entry-content h3,
.page-article .entry-content h4 { font-weight: var(--font-weight-bold); line-height: 1.25; margin: 1.8em 0 .5em; }
.page-article .entry-content h2 { font-size: 28px; }
.page-article .entry-content h3 { font-size: 22px; }
.page-article .entry-content h4,
.page-article .entry-content h5 { font-size: 18px; }
.page-article .entry-content p { margin: 0 0 1.1em; }
.page-article .entry-content a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.page-article .entry-content a:hover { opacity: .8; }
.page-article .entry-content strong { font-weight: var(--font-weight-bold); }
.page-article .entry-content ul,
.page-article .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.page-article .entry-content li { margin: .35em 0; }
.page-article .entry-content img { max-width: 100%; height: auto; border-radius: 10px; display: block; }
.page-article .entry-content figure { margin: 1.4em 0; }
.page-article .entry-content figcaption,
.page-article .entry-content .wp-element-caption { font-size: 13px; color: #777; text-align: center; margin-top: 8px; }
.page-article .entry-content hr,
.page-article .entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--color-border); margin: 2.4em 0; }
.page-article .entry-content blockquote {
    margin: 1.6em 0; padding: 12px 22px;
    border-left: 3px solid var(--color-accent);
    font-style: italic; color: #555;
}

/* Gutenberg layout safety (works even without full core layout CSS) */
.page-article .wp-block-columns { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.page-article .wp-block-column { flex: 1 1 0; min-width: 220px; }
.page-article .wp-block-media-text {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin: 1.6em 0;
}
.page-article .wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr 1fr; }
.page-article .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 2; }
.page-article .wp-block-media-text__media img { width: 100%; }
.page-article .wp-block-spacer { flex-basis: 100%; }
.page-article .has-text-align-center { text-align: center; }
.page-article .has-text-align-left { text-align: left; }
.page-article .has-text-align-right { text-align: right; }
.page-article .wp-block-video video,
.page-article .entry-content iframe { max-width: 100%; }

/* Generic & Gutenberg tables */
.page-article .entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 14px; }
.page-article .entry-content th,
.page-article .entry-content td { border: 1px solid var(--color-border); padding: 9px 12px; text-align: left; }
.page-article .entry-content thead th,
.page-article .entry-content .wp-block-table th { background: var(--color-bg); font-weight: var(--font-weight-bold); }
.page-article .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: rgba(0,0,0,.025); }
.page-article .wp-block-table { overflow-x: auto; }

/* Size-chart custom component (production markup, no prod CSS on dev) */
.page-article .sizes-tables__title { font-size: 24px; font-weight: var(--font-weight-bold); margin: 1.6em 0 .6em; }
.page-article .sizes-tables__introduction__paragraph { margin: 0 0 1em; }
.page-article .sizes-tables__introduction__grid { display: flex; flex-wrap: wrap; gap: 24px; margin: 1em 0 1.6em; }
.page-article .sizes-tables__introduction__grid__left,
.page-article .sizes-tables__introduction__grid__right { flex: 1 1 280px; }
.page-article .sizes-tables__introduction__dimension { margin: .3em 0; }
.page-article .sizes-tables__group { margin: 2em 0; }
.page-article .sizes-tables__group__title { font-size: 18px; font-weight: var(--font-weight-bold); margin: 0 0 .6em; }
.page-article .sizes-tables__group__table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.page-article .sizes-tables__group__table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; table-layout: auto; }
.page-article .sizes-tables__group__table__col,
.page-article .sizes-tables__group__table__row,
.page-article .sizes-tables__group__table__row-col,
.page-article .sizes-tables__group__table__value {
    border: 1px solid var(--color-border); padding: 8px 10px; text-align: center; display: table-cell; vertical-align: middle;
}
.page-article .sizes-tables__group__table__row,
.page-article .sizes-tables__group__table__row-col,
.page-article .sizes-tables__group__table__col { background: var(--color-bg); font-weight: var(--font-weight-bold); }

/* Mobile */
@media (max-width: 768px) {
    .page-container { padding-top: 28px; padding-bottom: 48px; }
    .page-article .wp-block-columns { gap: 20px; }
    .page-article .wp-block-column { flex-basis: 100%; }
    .page-article .wp-block-media-text,
    .page-article .wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr; gap: 18px; }
    .page-article .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 0; }
}

/* === Career page — rebuilt as semantic text (SEO/a11y) === */
.career-page .career-section { margin: 0 0 2.4em; }
.career-page .career-cols {
    display: flex; flex-wrap: wrap; gap: 32px; margin: 0 0 2.4em;
}
.career-page .career-col {
    flex: 1 1 280px;
    background: var(--color-bg);
    border-radius: 14px;
    padding: 24px 26px;
}
.career-page .career-col h2 { margin-top: 0; }
.career-page .career-values {
    display: flex; flex-wrap: wrap; gap: 20px; margin-top: 1em;
}
.career-page .career-value {
    flex: 1 1 240px;
    background: var(--color-bg);
    border-radius: 14px;
    padding: 20px 22px;
}
.career-page .career-value h3 { margin: 0 0 .4em; }
.career-page .career-value p { margin: 0; }
.career-page .career-team {
    display: flex; flex-wrap: wrap; gap: 32px; margin-top: 1em;
}
.career-page .career-person {
    flex: 1 1 320px; margin: 0;
    background: var(--color-bg);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}
.career-page .career-person img {
    width: 220px; max-width: 60%; height: auto;
    border-radius: 50%; margin: 0 auto 14px; display: block;
}
.career-page .career-person figcaption {
    font-size: 15px; color: var(--color-text); margin-bottom: 10px;
}
.career-page .career-person blockquote {
    border: 0; margin: 0; padding: 0;
    font-style: italic; color: #555; font-size: 14px; line-height: 1.6;
}
@media (max-width: 768px) {
    .career-page .career-cols,
    .career-page .career-values,
    .career-page .career-team { gap: 16px; }
    .career-page .career-col,
    .career-page .career-value,
    .career-page .career-person { flex-basis: 100%; }
}

/* Career staff portraits — clean circular crop regardless of source aspect */
.career-page .career-person img {
    width: 220px;
    height: 220px;
    max-width: 60%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: block;
}
@media (max-width: 768px) {
    .career-page .career-person img { width: 180px; height: 180px; }
}

/* Career page imagery (placed brand/team photos) */
.career-page .career-hero { margin: 0 0 32px; }
.career-page .career-hero img {
    width: 100%;
    height: clamp(260px, 42vw, 460px);
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    display: block;
}
.career-page .career-figure { margin: 16px 0 6px; }
.career-page .career-figure img {
    width: 100%;
    height: clamp(220px, 34vw, 420px);
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    display: block;
}
.career-page .career-band {
    display: flex;
    gap: 16px;
    margin: 16px 0 6px;
}
.career-page .career-band img {
    flex: 1 1 0;
    width: 50%;
    height: clamp(260px, 36vw, 480px);
    object-fit: cover;
    object-position: top center;
    border-radius: 14px;
    display: block;
}
@media (max-width: 768px) {
    .career-page .career-band { flex-direction: column; }
    .career-page .career-band img { width: 100%; }
}

/* Small square image above each "Our values" block */
.career-page .career-value__icon {
    width: 76px;
    height: 76px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    display: block;
    margin: 0 0 10px;
}

/* Our values icons — larger, uniform square (override earlier 76px) */
.career-page .career-value__icon {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    display: block;
    margin: 0 auto 14px;
}
@media (max-width: 768px) {
    .career-page .career-value__icon { width: 130px; height: 130px; }
}

/* Our values icons — force identical fixed square; must beat the generic
   ".page-article .entry-content img{height:auto}" typography rule. */
.page-article .entry-content img.career-value__icon,
.career-page .career-value img.career-value__icon {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    object-fit: cover !important;
    object-position: center;
    border-radius: 12px;
    display: block;
    margin: 0 auto 14px;
    flex: 0 0 auto;
}
@media (max-width: 768px) {
    .page-article .entry-content img.career-value__icon,
    .career-page .career-value img.career-value__icon {
        width: 130px !important;
        height: 130px !important;
        max-width: 130px !important;
    }
}

/* Our values icons — left-align */
.page-article .entry-content img.career-value__icon,
.career-page .career-value img.career-value__icon {
    margin: 0 0 14px 0 !important;
}

/* Fix: mega-menu panel links invisible on homepage (white nav text on
   white panel). Force dark text inside the dropdown on .home too. */
.home .site-header .mega-menu a,
.home .site-header .mega-menu__title,
.home .site-header .mega-menu__list a { color: var(--color-text) !important; }
.home .site-header .mega-menu__list a { color: #555 !important; }
.home .site-header .mega-menu a:hover,
.home .site-header .mega-menu__title:hover,
.home .site-header .mega-menu__list a:hover { color: var(--color-accent) !important; }

/* === Catalogue: уравниваем визуальный размер фото карточек (desktop+mobile) ===
   Бокс 1:1 (см. .product-card-image выше). Старые фото 3:4 шире/выше — `cover`
   с anchor у верхнего края сохраняет голову/плечи модели, режется низ.
   Отключаем `display:flex; align-items:center` от старой FIX-rule, иначе
   она центрирует img вертикально и съедает голову вместе со ступнями. */
.product-card-image {
    display: block !important;
}
.product-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 50% 0% !important;
}

/* === Mobile FAB stacking: chat над scroll-top, scroll-top над фильтром ===
   Виджет ассистента инжектится JS с inline-стилем `bottom:88px;right:20px`
   — на мобиле это конфликтует с .scroll-top-btn (тоже bottom:88px). Поднимаем
   chat выше, чтобы кнопки не перекрывались. */
@media (max-width: 768px) {
    #huppa-chat-widget {
        bottom: 152px !important;
        right: 12px !important;
    }
}

/* === Resellers page — card grid + multi-region pills (page-resellers.php) === */
.stores-country:has(.resellers-grid) .stores-country__title {
    margin-bottom: 28px;  /* плюс ещё 8px к base 20 — заголовок отдыхает от карточек */
}
.resellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 0 0 36px;
    align-items: stretch;  /* карточки в одном ряду тянутся к одной высоте */
}
.reseller-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid #e7e7ea;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.reseller-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transform: translateY(-2px);
    border-color: #d8d8dd;
}
.reseller-card__logo {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 8px;
    padding: 8px 12px;
}
.reseller-card__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.reseller-card__name {
    margin: 0;
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: 1.2;
}
.reseller-card__address {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.35;
}
.stores-city__title {
    margin: 28px 0 14px;
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    letter-spacing: 0.2px;
}
.stores-country .stores-city__title:first-of-type {
    margin-top: 8px;
}
.reseller-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: auto;  /* прижать к низу карточки — в ряду все кнопки на одном уровне */
    padding: 6px 14px;
    border-radius: 100px;
    background: #f3f3f5;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid #e0e0e4;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
    max-width: 100%;
}
.reseller-card__btn:hover {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
    transform: translateY(-1px);
}
.reseller-card__btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.reseller-card__regions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;  /* прижать к низу — выравнивает кнопки/чипы в ряду */
}
.reseller-region {
    display: inline-block;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-text);
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.reseller-region:hover {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}


/* ==========================================================================
   Header Search (icon → dropdown panel)
   ========================================================================== */
.header-search-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--color-text);
}

.header-search-toggle svg {
    width: 22px;
    height: 22px;
}

.header-search-panel {
    border-top: 1px solid var(--color-border-light);
    background: var(--color-white);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.header-search-panel.is-open {
    max-height: 120px;
}

.header-search-panel[hidden] {
    display: none !important;
}

.header-search-panel__inner {
    padding: 16px var(--container-padding);
}

.header-search-form {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 720px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    background: var(--color-bg, #f6f6f6);
    transition: border-color 0.2s ease;
}

.header-search-form:focus-within {
    border-color: var(--color-accent);
    background: var(--color-white);
}

.header-search-form__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0 10px 0 14px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.header-search-form__input {
    flex: 1 1 auto;
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 12px 10px 0;
    font-size: 15px;
    color: var(--color-text);
    min-width: 0;
}

.header-search-form__close {
    flex: 0 0 auto;
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search-form__close svg {
    width: 18px;
    height: 18px;
}

.header-search-form__close:hover {
    color: var(--color-text);
}


/* ==========================================================================
   Free Shipping widget — toggle with thresholds-per-country
   ========================================================================== */
.huppa-freeship {
    margin: 16px 0;
    border: 1px solid var(--color-border-light, #e7e7e7);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg, #fafafa);
    font-size: 14px;
}

.huppa-freeship__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    padding: 12px 14px;
    cursor: pointer;
    text-align: left;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.huppa-freeship__toggle:hover {
    background: rgba(0, 0, 0, 0.025);
}

.huppa-freeship__icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: var(--color-accent, #1a1a1a);
}

.huppa-freeship__label {
    flex: 1 1 auto;
    min-width: 0;
}

.huppa-freeship__chevron {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    color: var(--color-text-muted, #777);
}

.huppa-freeship__toggle[aria-expanded="true"] .huppa-freeship__chevron {
    transform: rotate(180deg);
}

.huppa-freeship__panel {
    border-top: 1px solid var(--color-border-light, #e7e7e7);
    background: var(--color-white, #fff);
    max-height: 360px;
    overflow-y: auto;
}

.huppa-freeship__panel[hidden] {
    display: none;
}

.huppa-freeship__list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.huppa-freeship__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 14px;
    font-size: 13px;
}

.huppa-freeship__row:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.huppa-freeship__row--current {
    background: rgba(0, 100, 200, 0.06) !important;
    font-weight: 600;
}

.huppa-freeship__country {
    color: var(--color-text);
}

.huppa-freeship__amount {
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}


/* Free shipping widget — "active" state (cart qualifies for free) */
.huppa-freeship--active {
    background: #e8f5e9;
    border-color: #a5d6a7;
}

.huppa-freeship--active .huppa-freeship__active {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: #1b5e20;
    font-weight: 600;
    font-size: 14px;
}

.huppa-freeship__check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: #2e7d32;
}

.huppa-freeship__active-label {
    flex: 1 1 auto;
}


/* Order-summary shipping rows: gap between radio and price */
.oc-totals__row--shipping .shipping_method {
    margin-right: 10px;
    vertical-align: middle;
}


/* When a product is on sale, paint the current price red as well */
.product-card-price:has(.price-old) .price-current {
    color: var(--color-sale);
}

.sp-info__price:has(.sp-info__price-old) .sp-info__price-current {
    color: var(--color-sale);
}



/* === Mobile: duplicate "sticky" Add-to-cart shown only when the in-form
       button is scrolled off-screen. The original stays in place; the
       sticky bar mirrors a click into the form. === */
.sp-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .sp-sticky-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 950;
        background: #000;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
        transform: translateY(100%);
        transition: transform 0.25s ease;
        display: block;
        pointer-events: none;
    }
    .sp-sticky-cta.is-visible {
        transform: translateY(0);
        pointer-events: auto;
    }
    .sp-sticky-cta__btn,
    .sp-sticky-cta__btn:hover,
    .sp-sticky-cta__btn:focus,
    .sp-sticky-cta__btn:active {
        display: block;
        width: 100%;
        background: #000 !important;
        color: #fff !important;
        border: none;
        font-family: var(--font-family);
        font-size: 16px;
        font-weight: var(--font-weight-medium);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 14px 16px;
        border-radius: var(--radius-btn);
        cursor: pointer;
    }
    .sp-sticky-cta__btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
}


/* === Mobile: long colour line-up collapses to first 5 thumbs + a
       Show-more toggle that reveals the rest beneath. Desktop unchanged. === */
.sp-color-toggle {
    display: none;
}

@media (max-width: 768px) {
    .sp-info__colors {
        position: relative;
    }
    .sp-info__colors:not(.is-expanded) .sp-info__swatch-row .sp-color-thumb:nth-child(n+6) {
        display: none;
    }
    .sp-color-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 10px;
        padding: 6px 10px;
        background: none;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-btn);
        font-size: 13px;
        font-weight: var(--font-weight-medium);
        color: var(--color-text);
        cursor: pointer;
    }
    .sp-color-toggle__caret {
        width: 12px;
        height: 12px;
        transition: transform 0.2s ease;
    }
    .sp-info__colors.is-expanded .sp-color-toggle__caret {
        transform: rotate(180deg);
    }
    .sp-info__colors.is-few .sp-color-toggle {
        display: none;
    }
}


/* Currently opened color variant is always shown first in the swatch row */
.sp-info__swatch-row .sp-color-thumb.is-active {
    order: -1;
}


/* Cart line quantity control */
.oc-qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: opacity 0.2s ease;
}
.oc-qty.is-busy {
    opacity: 0.55;
    pointer-events: none;
}
.oc-qty__btn {
    width: 32px;
    height: 32px;
    background: #fff;
    color: var(--color-text);
    font-size: 18px;
    font-weight: 600;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}
.oc-qty__btn:hover {
    background: var(--color-bg, #f4f4f4);
}
.oc-qty__input {
    width: 38px;
    height: 32px;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    background: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    padding: 0;
    -moz-appearance: textfield;
}
.oc-qty__input::-webkit-outer-spin-button,
.oc-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* Toast notification for cart actions */
.oc-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 60px);
    background: #333;
    color: #fff;
    padding: 12px 18px;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 9999;
    max-width: calc(100vw - 32px);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.oc-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
.oc-toast--error {
    background: #d32f2f;
}


/* Visually disable the + button when qty has reached the stock cap (class set by JS) */
.oc-qty.is-at-max .oc-qty__btn[data-step="1"] {
    opacity: 0.4;
    cursor: not-allowed;
}


/* Free Shipping widget — link mode on product page */
.huppa-freeship--link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--color-text);
    margin: 16px 0;
    border: 1px solid var(--color-border-light, #e7e7e7);
    border-radius: 8px;
    background: var(--color-bg, #fafafa);
    font-size: 14px;
    transition: background 0.2s ease;
}
.huppa-freeship--link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-text);
}
.huppa-freeship--link .huppa-freeship__icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: var(--color-accent, #1a1a1a);
}
.huppa-freeship--link .huppa-freeship__label {
    flex: 1 1 auto;
    font-weight: 500;
}
.huppa-freeship--link .huppa-freeship__arrow {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: var(--color-text-muted, #777);
    transition: transform 0.2s ease;
}
.huppa-freeship--link:hover .huppa-freeship__arrow {
    transform: translateX(2px);
}


/* ==========================================================================
   Innovations CPT — landing page + single
   ========================================================================== */
.innovations-archive { padding: calc(var(--header-height) + 24px) 0 60px; }
.innovations-archive__header { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.innovations-archive__title { font-size: 40px; font-weight: 700; margin: 0 0 12px; color: var(--color-text); }
.innovations-archive__intro { font-size: 16px; color: var(--color-text-light); line-height: 1.6; margin: 0; }

.innovations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.innovation-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--color-border-light);
    border-radius: 12px; overflow: hidden;
    text-decoration: none; color: var(--color-text);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.innovation-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    color: var(--color-text);
}
.innovation-card__image { aspect-ratio: 16/9; overflow: hidden; background: #f4f4f4; }
.innovation-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.innovation-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.innovation-card__title { font-size: 20px; font-weight: 700; margin: 0; line-height: 1.25; }
.innovation-card__tagline { font-size: 13px; color: var(--color-text-muted); font-style: italic; }
.innovation-card__summary { font-size: 14px; color: var(--color-text-light); line-height: 1.5; margin: 0; flex: 1; }
.innovation-card__more { font-size: 13px; font-weight: 600; color: var(--color-text); margin-top: 6px; }

/* ── Single innovation page ─────────────────────────────────────────── */
.innovation-single { padding: 0 0 60px; }
.innovation-hero {
    position: relative; height: 56vh; min-height: 360px; max-height: 560px;
    overflow: hidden;
}
.innovation-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.innovation-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.7) 100%);
    display: flex; align-items: flex-end; padding-bottom: 40px;
    color: #fff;
}
.innovation-breadcrumbs {
    font-size: 13px; opacity: 0.85; margin-bottom: 14px;
}
.innovation-breadcrumbs a { color: #fff; text-decoration: none; }
.innovation-breadcrumbs a:hover { text-decoration: underline; }
.innovation-breadcrumbs span { margin: 0 6px; opacity: 0.6; }
.innovation-title { font-size: 44px; font-weight: 700; margin: 0; line-height: 1.1; color: #fff; }
.innovation-tagline { font-size: 18px; opacity: 0.9; margin: 12px 0 0; max-width: 720px; }
.innovation-no-hero { padding-top: calc(var(--header-height) + 36px); padding-bottom: 24px; }
.innovation-no-hero .innovation-title { color: var(--color-text); }
.innovation-no-hero .innovation-tagline { color: var(--color-text-light); }

.innovation-summary {
    max-width: 740px; margin: 36px auto 0;
    font-size: 18px; line-height: 1.65; color: var(--color-text);
}
.innovation-summary p { margin: 0; }

.innovation-properties { margin: 48px auto; max-width: 1100px; }
.innovation-properties__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.innovation-property {
    background: #f7f7f7; border-radius: 10px; padding: 18px 16px; text-align: center;
}
.innovation-property__icon { font-size: 28px; margin-bottom: 6px; line-height: 1;
    filter: grayscale(1);
    opacity: 0.7; }
.innovation-property__label { font-size: 13px; color: var(--color-text-muted); margin-bottom: 4px; }
.innovation-property__value { font-size: 18px; font-weight: 700; color: var(--color-text); }

.innovation-content {
    max-width: 740px; margin: 36px auto;
    font-size: 16px; line-height: 1.75; color: var(--color-text);
}
.innovation-content h2 { font-size: 28px; margin: 1.6em 0 0.6em; }
.innovation-content h3 { font-size: 22px; margin: 1.4em 0 0.5em; }
.innovation-content p { margin: 0 0 1.2em; }
.innovation-content img { max-width: 100%; height: auto; border-radius: 8px; }

.innovation-faq { max-width: 740px; margin: 48px auto; }
.innovation-faq h2 { font-size: 28px; margin: 0 0 16px; }
.innovation-faq__item {
    border: 1px solid var(--color-border-light); border-radius: 8px;
    padding: 14px 18px; margin-bottom: 10px; background: #fff;
}
.innovation-faq__item summary {
    font-weight: 600; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.innovation-faq__item summary::after { content: +; font-size: 22px; line-height: 1; }
.innovation-faq__item[open] summary::after { content: −; }
.innovation-faq__answer { padding-top: 10px; color: var(--color-text-light); line-height: 1.65; }

.innovation-certifications { max-width: 1000px; margin: 48px auto; }
.innovation-certifications h2 { font-size: 24px; margin: 0 0 16px; }
.innovation-certifications__row {
    display: flex; flex-wrap: wrap; gap: 18px;
}
.innovation-cert {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
    background: #fff; border: 1px solid var(--color-border-light);
    padding: 14px 18px; border-radius: 8px; min-width: 140px;
}
.innovation-cert img { max-height: 48px; width: auto; margin-bottom: 8px; }
.innovation-cert__label { font-size: 13px; color: var(--color-text-light); text-align: center; }

.innovation-back { max-width: 740px; margin: 48px auto 0; }
.innovation-back a { color: var(--color-text-muted); font-size: 14px; text-decoration: none; }
.innovation-back a:hover { color: var(--color-text); }

/* ==========================================================================
   Collections — archive (/collections/) and single (/collection/<slug>/)
   ========================================================================== */
.collections-archive { padding: calc(var(--header-height) + 24px) 0 60px; }
.collections-archive__header { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.collections-archive__title { font-size: 40px; font-weight: 700; margin: 0 0 12px; color: var(--color-text); }
.collections-archive__intro { font-size: 16px; color: var(--color-text-light); line-height: 1.6; margin: 0; }

.collections-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.collection-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--color-border-light);
    border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.collection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}
.collection-card__image { aspect-ratio: 16/9; overflow: hidden; background: #f4f4f4; }
.collection-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collection-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.collection-card__season { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.collection-card__title { font-size: 20px; font-weight: 700; margin: 0; line-height: 1.25; }
.collection-card__designer { font-size: 13px; color: var(--color-text-muted); font-style: italic; }
.collection-card__summary { font-size: 14px; color: var(--color-text-light); line-height: 1.5; margin: 6px 0 0; flex: 1; }
.collection-card__more { font-size: 13px; font-weight: 600; color: var(--color-text); margin-top: 6px; }

.collection-hero {
    position: relative; height: 56vh; min-height: 360px; max-height: 560px;
    overflow: hidden;
}
/* Full-width hero. object-position Y comes from the ACF "hero_focal_y"
   field — set per collection in WP admin (default centre). */
.collection-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; display: block; }
.collection-hero__overlay { z-index: 2; }
.collection-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.7) 100%);
    display: flex; align-items: flex-end; padding-bottom: 40px;
    color: #fff;
}
.collection-breadcrumbs {
    font-size: 13px; opacity: 0.85; margin-bottom: 12px;
}
.collection-breadcrumbs a { color: #fff; text-decoration: none; }
.collection-breadcrumbs a:hover { text-decoration: underline; }
.collection-breadcrumbs span { margin: 0 6px; opacity: 0.6; }
.collection-season { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: 0.9; margin-bottom: 8px; }
.collection-title { font-size: 44px; font-weight: 700; margin: 0; line-height: 1.1; color: inherit; }
.collection-tagline { font-size: 18px; opacity: 0.9; margin: 12px 0 0; max-width: 720px; }
.collection-no-hero { padding-top: calc(var(--header-height) + 36px); padding-bottom: 24px; }
.collection-no-hero .collection-season,
.collection-no-hero .collection-title { color: var(--color-text); }
.collection-no-hero .collection-tagline { color: var(--color-text-light); }

.collection-designer {
    max-width: 740px; margin: 32px auto 0; padding: 18px 22px;
    border-left: 3px solid var(--color-accent); background: var(--color-bg);
    border-radius: 0 8px 8px 0;
}
.collection-designer__name { font-size: 16px; color: var(--color-text); }
.collection-designer__bio { font-size: 14px; color: var(--color-text-light); margin: 6px 0 0; }

.collection-summary {
    max-width: 740px; margin: 28px auto; font-size: 18px;
    line-height: 1.6; color: var(--color-text);
}
.collection-summary p { margin: 0; }

.collection-content {
    max-width: 740px; margin: 32px auto; line-height: 1.7; color: var(--color-text);
}
.collection-content h2 { font-size: 28px; margin: 1.6em 0 0.6em; }
.collection-content h3 { font-size: 22px; margin: 1.4em 0 0.5em; }
.collection-content p { margin: 0 0 1.2em; }
.collection-content img { max-width: 100%; height: auto; border-radius: 8px; }

.collection-gallery { max-width: 1200px; margin: 48px auto; }
.collection-gallery h2 { font-size: 28px; margin: 0 0 18px; text-align: center; }
.collection-gallery__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.collection-gallery__item {
    aspect-ratio: 4/5; overflow: hidden; border-radius: 8px;
    display: block; background: #f4f4f4;
}
.collection-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.collection-gallery__item:hover img { transform: scale(1.04); }

.collection-shop {
    max-width: 740px; margin: 48px auto; text-align: center;
}

.collection-back { max-width: 740px; margin: 48px auto 0; }
.collection-back a { color: var(--color-text-muted); font-size: 14px; text-decoration: none; }
.collection-back a:hover { color: var(--color-text); }

/* Homepage collections CTA */
.hp-collections__cta { margin-top: 32px; text-align: center; }

/* ==========================================================================
   Homepage — Limited designer collections (editorial layout v2)
   ========================================================================== */
.hp-collections__header {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; margin-bottom: 32px; flex-wrap: wrap;
}
.hp-collections__header-text { max-width: 640px; }
.hp-collections__eyebrow {
    display: inline-block; font-size: 12px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--color-text-muted);
    margin-bottom: 10px;
}
.hp-collections__title {
    font-size: 36px; font-weight: var(--font-weight-bold);
    color: var(--color-text); margin: 0 0 10px; line-height: 1.15;
}
.hp-collections__desc {
    color: var(--color-text-light); margin: 0; font-size: 15px; line-height: 1.6;
}
.hp-collections__view-all {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--color-text); font-weight: 600; text-decoration: none;
    font-size: 14px; letter-spacing: .04em; border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
}
.hp-collections__view-all:hover { color: var(--color-accent, #c8102e); }

.hp-collections__editorial {
    display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px;
    min-height: 520px;
}
.hp-collections__sidecol {
    display: grid; grid-auto-rows: 1fr; gap: 18px;
}

.hp-collection-tile {
    position: relative; display: block; overflow: hidden;
    border-radius: 14px; text-decoration: none; color: #fff;
    background: var(--color-text);
    isolation: isolate;
}
.hp-collection-tile img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .55s ease;
    z-index: 0;
}
.hp-collection-tile:hover img { transform: scale(1.04); }
.hp-collection-tile__overlay {
    position: relative; z-index: 1; display: flex; align-items: flex-end;
    height: 100%; min-height: inherit;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.7) 100%);
    padding: 26px 28px 24px;
}
.hp-collection-tile__body {
    display: flex; flex-direction: column; gap: 6px;
}
.hp-collection-tile__season {
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    opacity: 0.9;
}
.hp-collection-tile__title {
    font-size: 26px; font-weight: 700; margin: 0; line-height: 1.15;
}
.hp-collection-tile__designer {
    font-size: 14px; opacity: 0.9; font-style: italic;
}
.hp-collection-tile__cta {
    margin-top: 12px; font-size: 13px; letter-spacing: .04em;
    font-weight: 600; border-bottom: 1px solid currentColor;
    align-self: flex-start; padding-bottom: 2px;
}

.hp-collection-tile--feature { min-height: 520px; }
.hp-collection-tile--feature .hp-collection-tile__title { font-size: 34px; }
.hp-collection-tile--small { min-height: 250px; }
.hp-collection-tile--small .hp-collection-tile__overlay { padding: 18px 20px; }
.hp-collection-tile--small .hp-collection-tile__title { font-size: 20px; }

@media (max-width: 900px) {
    .hp-collections__editorial { grid-template-columns: 1fr; min-height: 0; }
    .hp-collection-tile--feature { min-height: 360px; }
    .hp-collections__sidecol { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .hp-collection-tile--small { min-height: 220px; }
}
@media (max-width: 600px) {
    .hp-collections__header { flex-direction: column; align-items: flex-start; }
    .hp-collections__sidecol { grid-template-columns: 1fr; }
    .hp-collection-tile--feature .hp-collection-tile__title { font-size: 26px; }
}

/* ==========================================================================
   Product carousel — ACF block + legacy wp:columns.huppa-carousel
   ========================================================================== */
.huppa-product-carousel { margin: 36px 0; }
.huppa-product-carousel__heading {
    font-size: 22px; font-weight: 700; margin: 0 0 16px;
}
.huppa-product-carousel__viewport {
    position: relative;
}
.huppa-product-carousel__track {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 4px 4px 12px;
    scrollbar-width: thin;
}
.huppa-product-carousel__track::-webkit-scrollbar { height: 6px; }
.huppa-product-carousel__track::-webkit-scrollbar-thumb { background: var(--color-border-light, #ddd); border-radius: 3px; }
.huppa-product-carousel__item {
    flex: 0 0 calc((100% - 32px) / 3);
    scroll-snap-align: start;
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column; gap: 10px;
}
.huppa-product-carousel__img-wrap {
    aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px;
    background: #f4f4f4;
}
.huppa-product-carousel__img-wrap img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
    transition: transform .35s ease;
}
.huppa-product-carousel__item:hover .huppa-product-carousel__img-wrap img { transform: scale(1.04); }
.huppa-product-carousel__caption {
    display: flex; flex-direction: column; gap: 2px;
    padding: 2px 4px;
}
.huppa-product-carousel__title { font-size: 14px; font-weight: 700; }
.huppa-product-carousel__subtitle { font-size: 13px; color: var(--color-text-light); }

.huppa-product-carousel__btn {
    position: absolute; top: calc(50% - 8px); transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--color-border-light, #ddd);
    background: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text); z-index: 2;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    opacity: 0; transition: opacity .2s ease;
}
.huppa-product-carousel__btn svg { width: 18px; height: 18px; }
.huppa-product-carousel__btn--prev { left: -6px; }
.huppa-product-carousel__btn--next { right: -6px; }
.huppa-product-carousel__viewport:hover .huppa-product-carousel__btn,
.huppa-product-carousel__viewport:focus-within .huppa-product-carousel__btn { opacity: 1; }
@media (hover: none) { .huppa-product-carousel__btn { display: none; } }

@media (max-width: 900px) {
    .huppa-product-carousel__item { flex: 0 0 calc((100% - 16px) / 2); }
}
@media (max-width: 600px) {
    .huppa-product-carousel__item { flex: 0 0 70%; }
    .huppa-product-carousel__title { font-size: 13px; }
}

/* Legacy posts: add class "huppa-carousel" on a wp:columns block to convert
   it to a horizontal swipe-carousel on mobile (desktop behavior unchanged). */
@media (max-width: 781px) {
    .wp-block-columns.huppa-carousel {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
        margin-left: -16px; margin-right: -16px;
        padding-left: 16px; padding-right: 16px;
    }
    .wp-block-columns.huppa-carousel > .wp-block-column {
        flex: 0 0 64% !important;
        scroll-snap-align: start;
        margin: 0 !important;
    }
    .wp-block-columns.huppa-carousel > .wp-block-column .wp-block-image {
        margin: 0;
    }
    .wp-block-columns.huppa-carousel > .wp-block-column figure img {
        width: 100%; height: auto; border-radius: 10px;
    }
}

/* ==========================================================================
   Homepage — Limited designer collections (carousel variant)
   ========================================================================== */
.hp-collections--carousel { padding: 24px 0 80px; background: var(--color-bg); }
.hp-collections__viewport {
    padding: 0 var(--container-padding, 24px);
}
.hp-collections__track {
    gap: 20px;
    padding: 4px 0 16px;
}
.hp-collections--carousel .hp-collection-tile {
    flex: 0 0 calc((100% - 40px) / 3);
    scroll-snap-align: start;
    min-height: 0;
    aspect-ratio: 3 / 4;
    height: auto;
}
.hp-collections--carousel .hp-collection-tile__title { font-size: 24px; }
.hp-collections--carousel .hp-collection-tile__overlay { padding: 22px 24px; }

@media (max-width: 1100px) {
    .hp-collections--carousel .hp-collection-tile { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 700px) {
    .hp-collections--carousel .hp-collection-tile { flex: 0 0 78%; }
    .hp-collections--carousel .hp-collection-tile__title { font-size: 20px; }
}

/* Global horizontal-scroll guard — desktop too. The mobile-only rule above
   left a thin sideways scrollbar on wider viewports (homepage). Using
   `clip` instead of `hidden` so position:sticky children still work. */
html, body { overflow-x: clip; }


/* === DEV TASK 2026-06-08: desktop colour line-up — show first 9, rest behind
       the existing Show-more toggle. Mobile is left untouched (its own rule above). === */
@media (min-width: 769px) {
    .sp-info__colors { position: relative; }
    .sp-info__colors:not(.is-expanded) .sp-info__swatch-row .sp-color-thumb:nth-child(n+10) {
        display: none;
    }
    .sp-color-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 10px;
        padding: 6px 10px;
        background: none;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-btn);
        font-size: 13px;
        font-weight: var(--font-weight-medium);
        color: var(--color-text);
        cursor: pointer;
    }
    .sp-color-toggle__caret { width: 12px; height: 12px; transition: transform 0.2s ease; }
    .sp-info__colors.is-expanded .sp-color-toggle__caret { transform: rotate(180deg); }
    .sp-info__colors.is-few-d .sp-color-toggle { display: none; }
}

/* === DEV TASK 2026-06-08: Free-delivery notice on product page restyled from a
       boxed banner to a plain, light-grey text link so it stops competing with
       the rest of the product info. === */
.huppa-freeship--link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
    font-size: 13px;
    color: var(--color-text-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}
.huppa-freeship--link:hover {
    background: none;
    color: var(--color-text);
}
.huppa-freeship--link .huppa-freeship__icon { display: none; }
.huppa-freeship--link .huppa-freeship__arrow { display: none; }
.huppa-freeship--link .huppa-freeship__label { font-weight: 400; }

/* === DEV 2026-06-08: Gutenberg block buttons → Huppa brand look (matches .hp-btn).
       Editor-set custom colours (has-background / has-text-color) are respected via :not(). === */
.wp-block-button .wp-block-button__link.wp-element-button {
    border-radius: var(--radius-btn);
    padding: 10px 26px;
    font-weight: var(--font-weight-medium);
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--color-accent);
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.wp-block-button .wp-block-button__link.wp-element-button:not(.has-background) { background-color: var(--color-accent); }
.wp-block-button .wp-block-button__link.wp-element-button:not(.has-text-color)  { color: var(--color-white); }
.wp-block-button .wp-block-button__link.wp-element-button:hover:not(.has-background) { background-color: var(--color-accent-hover); border-color: var(--color-accent-hover); }

/* Outline variant (e.g. certificates "Read more") */
.wp-block-button.is-style-outline .wp-block-button__link { border-color: var(--color-accent); }
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background) { background-color: transparent; }
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color)  { color: var(--color-accent); }
.wp-block-button.is-style-outline .wp-block-button__link:hover:not(.has-background) { background-color: var(--color-accent); }
.wp-block-button.is-style-outline .wp-block-button__link:hover:not(.has-text-color)  { color: var(--color-white); }

/* === DEV 2026-06-09: Hero logo image (shown when "Logo text" is empty) + colour variant. === */
.hp-hero__logo-img {
    display: block;
    width: 360px;
    max-width: 70%;
    height: auto;
    margin-bottom: 14px;
}
.hp-hero__logo-img--slogan {
    width: 440px;
    max-width: 82%;
    margin-bottom: 24px;
}
.hp-hero__content--logo-black .hp-hero__logo { color: #1A1A1A; }
.hp-hero__content--logo-black .hp-hero__tagline { color: rgba(0, 0, 0, 0.82); }
@media (max-width: 768px) {
    .hp-hero__logo-img { width: 240px; }
}

/* === DEV 2026-06-09: Colour filter as a vertical list (dot + name + count). === */
.color-filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.color-filter-item { display: flex; align-items: center; gap: 10px; padding: 6px 4px; cursor: pointer; font-size: 14px; color: var(--color-text); border-radius: 6px; }
.color-filter-item:hover { background: #f5f6f8; }
.color-filter-item.active { font-weight: var(--font-weight-medium); }
.color-filter-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.18); flex: 0 0 auto; }
.color-filter-item.active .color-filter-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--color-text); }
.color-filter-name { flex: 1 1 auto; }
.color-filter-count { color: var(--color-text-light); font-size: 13px; }


/* ── Real per-size garment measurements (single product) ── */
.sp-garment { margin: 2px 0 10px; }
.sp-garment__hint { font-size: 13px; color: #8a8a8a; }
.sp-garment__title { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #222; }
.sp-garment__size { font-weight: 700; }
.sp-garment__table { width: 100%; border-collapse: collapse; max-width: 360px; }
.sp-garment__table th,
.sp-garment__table td { font-size: 13px; padding: 3px 0; border-bottom: 1px solid #f0f0f0; }
.sp-garment__table th { text-align: left; font-weight: 400; color: #555; text-transform: none; }
.sp-garment__table td { text-align: right; font-weight: 600; color: #111; white-space: nowrap; padding-left: 16px; }


/* who-are-we (ID 19512) — wider content column, matching other pages' container */
.page-id-19512 .page-article .entry-content { max-width: var(--container-max); }
.page-id-19512 .page-article .entry-content > .wp-block-group.is-layout-constrained,
.page-id-19512 .page-article .entry-content .wp-block-group.is-layout-constrained > * { max-width: none; }


/* ── Size guide link next to size selector (single product) ── */
.sp-info__size-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sp-info__size-head .sp-info__label { margin-bottom: 0; }
.sp-size-guide { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #666; text-decoration: none; white-space: nowrap; }
.sp-size-guide span { text-decoration: underline; text-underline-offset: 2px; }
.sp-size-guide:hover { color: var(--color-accent); }


/* ── Stronger highlight for selected filter values (color, season/collection) ── */
.filter-links a.active {
    color: var(--color-accent);
    font-weight: var(--font-weight-bold);
}
.color-filter-item.active {
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    background: rgba(232, 99, 43, 0.07);
}
.color-filter-item.active .color-filter-dot {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--color-accent);
}
.color-filter-item.active .color-filter-count {
    color: var(--color-accent);
}


/* ── Technology / material info block (single product) ── */
.sp-tech__desc { font-size: 14px; line-height: 1.6; color: var(--color-text); }
.sp-tech__desc p { margin: 0 0 8px; }
.sp-tech__more { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: var(--font-weight-medium); color: var(--color-accent); text-decoration: none; }
.sp-tech__more:hover { text-decoration: underline; }


/* ── Free-delivery link + SKU meta (single product) ── */
.sp-meta__row--shipping { margin-bottom: 10px; }
.sp-shipping-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: var(--font-weight-medium); color: var(--color-text); text-decoration: none; }
.sp-shipping-link:hover { color: var(--color-accent); }
.sp-shipping-link:hover .sp-shipping-link__icon { color: var(--color-accent); }
.sp-shipping-link__icon { flex: 0 0 auto; color: var(--color-accent); }


/* ── Mobile: collapsible footer columns (accordion) ── */
@media (max-width: 768px) {
    .footer-column h4 {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
        padding: 13px 0;
        border-bottom: 1px solid var(--color-border);
        user-select: none;
    }
    .footer-column h4::after {
        content: '';
        width: 8px; height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.25s ease;
        margin: -4px 2px 0 0;
        opacity: 0.6;
    }
    .footer-column.is-open h4::after { transform: rotate(-135deg); margin-top: 2px; }
    .footer-column ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .footer-column.is-open ul { max-height: 600px; padding: 10px 0 6px; }
}


/* ── Desktop image zoom lightbox ── */
.sp-lightbox { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.92); }
.sp-lightbox.is-open { display: flex; }
.sp-lightbox__stage { max-width: 92vw; max-height: 92vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sp-lightbox__img { max-width: 92vw; max-height: 92vh; object-fit: contain; cursor: zoom-in; transition: transform 0.18s ease; will-change: transform; }
.sp-lightbox__img.is-zoomed { transform: scale(2.2); cursor: zoom-out; }
.sp-lightbox__close { position: absolute; top: 18px; right: 26px; background: none; border: none; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; opacity: 0.85; }
.sp-lightbox__close:hover { opacity: 1; }
.sp-lightbox__arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); border: none; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.sp-lightbox__arrow:hover { background: rgba(255,255,255,0.25); }
.sp-lightbox__arrow--prev { left: 24px; }
.sp-lightbox__arrow--next { right: 24px; }
@media (max-width: 768px) { .sp-lightbox { display: none !important; } }


/* ── Zoom button (bottom-right of main product image) ── */
.sp-gallery__zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-text);
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 3;
}
.sp-gallery__zoom:hover { background: #fff; color: var(--color-accent); }
.sp-gallery__zoom svg { width: 18px; height: 18px; }
@media (max-width: 768px) { .sp-gallery__zoom { display: none; } }


/* ── Wider footer container on desktop ── */
@media (min-width: 1025px) {
    .site-footer .container { max-width: 1440px; }
}


/* === Mobile: "Shop" mega-menu as inline accordion (B2 mobile fix 2026-06-15) === */
@media (max-width: 768px) {
    .primary-nav__links .nav-item.has-mega { display: block; width: 100%; position: static; }
    .primary-nav__links .nav-item.has-mega > .nav-item__link {
        display: flex; align-items: center; width: 100%;
        font-size: 17px; font-weight: var(--font-weight-medium); color: var(--color-text);
        padding: 14px 0; border-bottom: 1px solid var(--color-border-light);
        border-radius: 0; letter-spacing: 0.2px; cursor: pointer;
    }
    .primary-nav__links .nav-item.has-mega:first-child > .nav-item__link {
        border-top: 1px solid var(--color-border-light);
    }
    .primary-nav__links .nav-item.has-mega > .nav-item__link::after {
        content: ''; display: block; width: 7px; height: 7px;
        border-right: 2px solid var(--color-text-muted);
        border-bottom: 2px solid var(--color-text-muted);
        transform: rotate(45deg); margin-left: auto; flex-shrink: 0;
        transition: transform 0.2s ease, border-color 0.2s ease;
    }
    .primary-nav__links .nav-item.has-mega.is-sub-open > .nav-item__link::after { transform: rotate(-135deg); }

    /* Reveal the mega inline (override the desktop fixed dropdown + display:none) */
    .primary-nav__links .nav-item.has-mega .mega-menu {
        display: none !important; position: static !important; top: auto !important;
        left: auto !important; width: auto !important; max-width: none !important;
        background: transparent !important; box-shadow: none !important;
        border: 0 !important; padding: 0 0 8px !important;
    }
    .primary-nav__links .nav-item.has-mega.is-sub-open .mega-menu { display: block !important; }
    .primary-nav__links .nav-item.has-mega .mega-menu::before { display: none !important; }
    .primary-nav__links .nav-item.has-mega .mega-menu__inner {
        display: block !important; padding: 4px 0 0 12px !important; max-width: none !important;
    }
    .primary-nav__links .nav-item.has-mega .mega-menu__col { min-width: 0 !important; margin: 6px 0; }
    .primary-nav__links .nav-item.has-mega .mega-menu__title {
        font-size: 15px; padding: 8px 0; border-bottom: 0;
    }
    .primary-nav__links .nav-item.has-mega .mega-menu__title::after { content: none !important; }
    .primary-nav__links .nav-item.has-mega .mega-menu__list a {
        font-size: 14px; padding: 6px 0; border-bottom: 0;
    }
    .primary-nav__links .nav-item.has-mega .mega-menu__list a::after { content: none !important; }
}

/* Shop span (has-mega) readable on the full-screen white mobile menu, incl. home */
.primary-nav.is-open .nav-item.has-mega > .nav-item__link,
.home .primary-nav.is-open .nav-item.has-mega > .nav-item__link { color: var(--color-text); }


/* === Mobile menu: explicit close (X) button, full-screen panel (2026-06-15) === */
@media (max-width: 768px) {
    .primary-nav__close {
        position: absolute;
        top: 12px;
        right: 14px;
        z-index: 5;
        width: 44px;
        height: 44px;
        display: none;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 0;
        color: var(--color-text);
        cursor: pointer;
        padding: 0;
    }
    .primary-nav.is-open .primary-nav__close { display: flex; }
    .primary-nav__close:hover { color: var(--color-accent); }
}

/* Active "Shop" (has-mega) active state on mobile: accent text, no orange box */
@media (max-width: 768px) {
    .primary-nav.is-open .nav-item.has-mega > .nav-item__link.active,
    .home .primary-nav.is-open .nav-item.has-mega > .nav-item__link.active {
        background: transparent;
        color: var(--color-accent);
        font-weight: var(--font-weight-bold);
    }
}

/* Active category highlight in the Shop mega-menu (incl. mobile accordion) */
.mega-menu__title.is-current { color: var(--color-accent) !important; }
.mega-menu__list a.is-current { color: var(--color-accent) !important; font-weight: var(--font-weight-bold); }

/* Mobile Shop accordion: clean open state, no double gray line */
@media (max-width: 768px) {
    .primary-nav__links .nav-item.has-mega.is-sub-open > .nav-item__link { border-bottom-color: transparent; }
    .primary-nav__links .nav-item.has-mega .mega-menu,
    .primary-nav__links .nav-item.has-mega .mega-menu__inner,
    .primary-nav__links .nav-item.has-mega .mega-menu__col { border: 0 !important; box-shadow: none !important; }
}

/* Hide the mobile close button on desktop (only shown in the open mobile panel) */
.primary-nav__close { display: none; }

/* Size-chart tables on mobile: keep columns intact (no stacked numbers),
   let the wide table scroll horizontally instead of squishing. */
@media (max-width: 768px) {
    .page-article .entry-content table {
        width: max-content;
        min-width: 100%;
        font-size: 13px;
    }
    .page-article .entry-content table th,
    .page-article .entry-content table td {
        white-space: nowrap;
        padding: 8px 10px;
    }
    .page-article .wp-block-table { -webkit-overflow-scrolling: touch; }
}

/* Category banner with a dedicated mobile image: show it fully (no crop),
   hide the title overlay (the mobile image carries its own text). */
@media (max-width: 768px) {
    .collection-banner--has-mobile { height: auto; }
    .collection-banner--has-mobile img { height: auto; object-fit: contain; }
    .collection-banner--has-mobile .banner-overlay { display: none; }
}

/* ── DPD pakiautomaat terminal selector in cart (one-page checkout) ── */
.oc-totals__row--dpd-terminal {
    display: block;
    padding: 6px 0 2px;
}
.oc-totals__row--dpd-terminal .oc-dpd-terminal {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    margin: 0;
}
.oc-totals__row--dpd-terminal .oc-dpd-terminal tr,
.oc-totals__row--dpd-terminal .oc-dpd-terminal td,
.oc-totals__row--dpd-terminal .oc-dpd-terminal th {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    text-align: left;
}
.oc-totals__row--dpd-terminal .oc-dpd-terminal th {
    display: none; /* redundant "Choose a Pickup Point" header — same text is the dropdown placeholder */
}
.oc-totals__row--dpd-terminal .custom-dropdown {
    position: relative;
    width: 100%;
}
.oc-totals__row--dpd-terminal .custom-dropdown .selected-option {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
}
.oc-totals__row--dpd-terminal .custom-dropdown .dropdown-list {
    display: none;
    position: absolute;
    z-index: 50;
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.oc-totals__row--dpd-terminal .custom-dropdown .dropdown-list.active {
    display: block;
}
.oc-totals__row--dpd-terminal .custom-dropdown .dropdown-list .group-pudo {
    padding: 8px 12px 4px;
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-muted);
    text-transform: uppercase;
}
.oc-totals__row--dpd-terminal .custom-dropdown .dropdown-list .pudo {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}
.oc-totals__row--dpd-terminal .custom-dropdown .dropdown-list .pudo:hover {
    background: var(--color-bg-light, #f5f5f5);
}
.oc-totals__row--dpd-terminal .custom-dropdown .dropdown-list-search-input {
    padding: 8px;
    position: sticky;
    top: 0;
    background: #fff;
}
.oc-totals__row--dpd-terminal .custom-dropdown .dropdown-list-search-input input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 14px;
}
.oc-totals__row--dpd-terminal #load-more-btn {
    padding: 8px 12px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
}
.oc-totals__row--dpd-terminal #load-more-btn.hidden {
    display: none;
}

/* === Tech indicators (sp-info__tags): на телефонах все показатели в один ряд,
       усадка вместо переноса 3-го на новую строку. Asana 1215714077275956 === */
@media (max-width: 600px) {
    .sp-info__tags {
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: space-between;
    }
    .sp-info__tags .sp-tag--temp {
        flex: 1 1 0;
        min-width: 0;
        padding: 8px 4px;
        text-align: center;
    }
    .sp-info__tags .sp-tag__text {
        font-size: 10px;
        white-space: normal;
        line-height: 1.2;
        word-break: break-word;
    }
}

/* Mega menu right-side promo banner (Huppa Settings -> Mega Menu) */
.mega-menu__banner{flex:0 0 320px;margin-left:auto;align-self:stretch;display:block;border-radius:10px;overflow:hidden;min-height:240px}
.mega-menu__banner img{display:block;width:100%;height:100%;min-height:240px;object-fit:cover}
@media (max-width:1100px){.mega-menu__banner{display:none}}

/* Hide stock/availability count on single product (huppa.eu global store) — visual only, no DB queries */
.single-product .woocommerce-variation-availability,
.single-product .sp-info .stock,
.single-product p.stock { display: none !important; }
