/**
 * DS Dictator - Frontend Styles
 * Design: Corporate minimal
 * WCAG 2.1 AA Compliant
 */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    /* Colori */
    --ds-bg: #f5f5f0;
    --ds-bg-alt: #eaeae5;
    --ds-black: #000000;
    --ds-white: #ffffff;
    --ds-gray-100: #f7f7f7;
    --ds-gray-200: #e5e5e5;
    --ds-gray-300: #d4d4d4;
    --ds-gray-400: #a3a3a3;
    --ds-gray-500: #737373;
    --ds-gray-600: #525252;
    --ds-gray-700: #404040;
    --ds-gray-800: #262626;
    --ds-gray-900: #171717;

    /* Tipografia */
    --ds-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ds-font-size-xs: 0.75rem;    /* 12px */
    --ds-font-size-sm: 0.875rem;   /* 14px */
    --ds-font-size-base: 1rem;     /* 16px */
    --ds-font-size-lg: 1.125rem;   /* 18px */
    --ds-font-size-xl: 1.25rem;    /* 20px */
    --ds-font-size-2xl: 1.5rem;    /* 24px */
    --ds-font-size-3xl: 1.875rem;  /* 30px */

    /* Layout */
    --ds-topbar-height: 30px;
    --ds-header-height: 80px;
    --ds-breadcrumb-height: 49px;
    --ds-container-max: 1600px;
    --ds-container-padding: 2.5rem;

    /* Spacing */
    --ds-space-1: 0.25rem;
    --ds-space-2: 0.5rem;
    --ds-space-3: 0.75rem;
    --ds-space-4: 1rem;
    --ds-space-5: 1.25rem;
    --ds-space-6: 1.5rem;
    --ds-space-8: 2rem;
    --ds-space-10: 2.5rem;
    --ds-space-12: 3rem;

    /* Transizioni */
    --ds-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ds-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --ds-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --ds-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ds-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* Tabelle e bordi */
    --ds-border-color: #808080;
    --ds-table-header-bg: #3a3a3a;
    --ds-table-header-color: #ffffff;
    --ds-text-color: #1E1E1E;

    /* Border Radius — Design Token Scale */
    --ds-radius-xs: 2px;      /* flag icons, tiny decorative rounding */
    --ds-radius-sm: 4px;      /* buttons, inputs, small thumbnails */
    --ds-radius-md: 4px;      /* cards, image containers, panels */
    --ds-radius-full: 4px;    /* buttons, search bar, controls */

    /* Focus - Accessibilità */
    --ds-focus-ring: 0 0 0 3px rgba(0, 0, 0, 0.2);

    /* Brand Accent — uso chirurgico */
    --ds-accent: #E97520;
    --ds-accent-hover: #D06A1C;
    --ds-accent-light: #FFF4EC;
    --ds-accent-ring: rgba(233, 117, 32, 0.25);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--ds-font);
    font-size: var(--ds-font-size-base);
    line-height: 1.5;
    color: var(--ds-gray-900);
    background-color: var(--ds-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Premium selection color */
::selection {
    background: #1E1E1E;
    color: var(--ds-white);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ds-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--ds-gray-400);
    border-radius: var(--ds-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ds-gray-600);
}

/* Skip Link - Accessibilità */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--ds-black);
    color: var(--ds-white);
    padding: var(--ds-space-3) var(--ds-space-4);
    z-index: 10000;
    text-decoration: none;
    font-weight: 500;
}

.skip-link:focus {
    top: 0;
    outline: none;
}

/* Focus States - Accessibilità */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--ds-black);
    outline-offset: 2px;
}

/* Links */
a {
    color: var(--ds-gray-900);
    text-decoration: none;
    transition: color var(--ds-transition);
}

a:hover {
    color: var(--ds-gray-600);
}

/* Animated underline for text links */
.breadcrumbs a,
.footer-legal-links a,
.product-detail__back,
.topbar-nav a {
    position: relative;
}

.breadcrumbs a::after,
.footer-legal-links a::after,
.topbar-nav a:not(.is-active)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--ds-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ds-ease-in-out);
}

.breadcrumbs a:hover::after,
.footer-legal-links a:hover::after,
.topbar-nav a:not(.is-active):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

/* Lists */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

/* ============================================
   Layout
   ============================================ */
.container {
    width: 100%;
    padding: 0 var(--ds-container-padding);
}

/* Fix: topbar, header, breadcrumbs, footer use display:flex
   so .container (flex item) needs width:100% to fill the parent.
   max-width from .container (1600px) still constrains the content,
   while parent backgrounds remain full-width. */
.topbar > .container,
.site-header > .container,
.breadcrumb-bar > .container,
.site-footer > .container {
    width: 100%;
}

.main-content {
    flex: 1;
    min-height: calc(100vh - var(--ds-header-height));
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Top Bar
   ============================================ */
.topbar {
    background-color: transparent;
    border-bottom: 1px solid var(--ds-gray-200);
    height: var(--ds-topbar-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 101;
    transition: transform 0.35s var(--ds-ease-in-out);
}

.topbar.is-hidden {
    transform: translateY(-100%);
}

.topbar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--ds-space-6);
    width: 100%;
}

.topbar-nav {
    display: flex;
    gap: var(--ds-space-5);
}

.topbar-nav a {
    color: var(--ds-gray-500);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.4px;
    padding: 0;
    line-height: var(--ds-topbar-height);
    transition: color var(--ds-transition);
}

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

.topbar-nav a.is-active {
    color: var(--ds-gray-900);
    font-weight: 600;
}

.topbar-lang {
    display: flex;
    align-items: center;
    gap: var(--ds-space-2);
    color: var(--ds-gray-500);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.4px;
}

.topbar-lang img {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: var(--ds-radius-xs);
}

/* ============================================
   Header
   ============================================ */
.site-header {
    background-color: var(--ds-white);
    height: var(--ds-header-height);
    display: flex;
    align-items: stretch;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.35s var(--ds-ease-in-out), box-shadow 0.35s var(--ds-ease-in-out);
}

.site-header.is-scrolled {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
    padding-right: var(--ds-space-5);
}

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

/* Search — integrated into header as one white band */
.header-search {
    flex: 1;
    align-self: stretch;
    display: flex;
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    border-left: 1px solid var(--ds-gray-200);
    border-right: 1px solid var(--ds-gray-200);
    border-radius: 0;
    padding: 0 var(--ds-space-5);
    width: 100%;
    transition: border-color var(--ds-transition), background-color var(--ds-transition);
}

.search-form:focus-within {
    border-left-color: var(--ds-accent);
    border-right-color: var(--ds-accent);
    background: var(--ds-accent-light);
    box-shadow: none;
    outline: none;
}

.search-form input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px var(--ds-space-2);
    font-size: 15px;
    font-family: var(--ds-font);
    color: var(--ds-gray-900);
}

.search-form input[type="search"]:focus,
.search-form input[type="search"]:focus-visible {
    outline: none;
    box-shadow: none;
}

.search-form input[type="search"]::placeholder {
    color: var(--ds-gray-400);
    letter-spacing: 0.2px;
}

/* Remove default search cancel button */
.search-form input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.search-form button {
    order: -1;
    background: none;
    border: none;
    padding: var(--ds-space-2);
    cursor: pointer;
    color: var(--ds-gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--ds-transition);
}

.search-form button:hover {
    color: var(--ds-accent);
}

/* Blinking cursor — invites search when idle */
.search-form::before {
    content: '';
    width: 1.5px;
    height: 22px;
    background: var(--ds-gray-400);
    flex-shrink: 0;
    animation: searchCursorBlink 1.1s step-end infinite;
}

.search-form:focus-within::before,
.search-form:has(input:not(:placeholder-shown))::before {
    display: none;
}

@keyframes searchCursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Header Actions (right-aligned) */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--ds-space-3);
    flex-shrink: 0;
    padding-left: var(--ds-space-5);
}

/* Products Dropdown */
.products-dropdown {
    position: relative;
}

.btn-products {
    display: flex;
    align-items: center;
    gap: var(--ds-space-2);
    padding: 12px var(--ds-space-5);
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-300);
    border-radius: var(--ds-radius-full);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--ds-font);
    color: var(--ds-gray-900);
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color var(--ds-transition), box-shadow var(--ds-transition);
}

.btn-products:hover {
    border-color: var(--ds-accent);
    box-shadow: 0 0 0 3px var(--ds-accent-ring);
}

.btn-products svg {
    width: 16px;
    height: 16px;
    transition: transform var(--ds-transition);
}

.btn-products[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.products-dropdown__menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 200px;
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.2s var(--ds-ease-out), transform 0.2s var(--ds-ease-out);
    padding-top: 6px;
}

.products-dropdown.is-open .products-dropdown__menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hover managed via JS is-open class for reliable delay behavior.
   focus-within fallback for keyboard accessibility. */
@media (min-width: 1025px) {
    .products-dropdown:focus-within .products-dropdown__menu {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .products-dropdown:focus-within .btn-products svg {
        transform: rotate(180deg);
    }
}

.products-dropdown__item {
    display: block;
    padding: 12px 20px;
    font-size: var(--ds-font-size-sm);
    font-weight: 500;
    color: var(--ds-gray-800);
    text-decoration: none;
    transition: background-color var(--ds-transition), color var(--ds-transition);
}

.products-dropdown__item:hover {
    background-color: var(--ds-gray-100);
    color: var(--ds-black);
}

.products-dropdown__item:focus-visible {
    outline: 2px solid var(--ds-black);
    outline-offset: -2px;
}

.products-dropdown__item + .products-dropdown__item {
    border-top: 1px solid var(--ds-gray-100);
}

/* Mobile Search Toggle (hidden on desktop, matches btn-menu style) */
.btn-mobile-search {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 0;
    color: var(--ds-gray-800);
    cursor: pointer;
    transition: color var(--ds-transition);
}

.btn-mobile-search:hover {
    color: var(--ds-accent);
}

/* Language Switch */
.lang-switch {
    display: flex;
    align-items: center;
    border: 1px solid var(--ds-gray-300);
    border-radius: var(--ds-radius-full);
    overflow: hidden;
}

.lang-switch__option {
    display: block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--ds-gray-500);
    transition: color var(--ds-transition-fast), background var(--ds-transition-fast);
}

.lang-switch__option.is-active {
    background: var(--ds-gray-900);
    color: var(--ds-white);
}

.lang-switch__option:not(.is-active):hover {
    color: var(--ds-gray-900);
    background: var(--ds-gray-100);
}

/* Lang switch inside menu panel */
.mobile-menu__lang .lang-switch {
    margin-top: var(--ds-space-1);
    display: inline-flex;
}

/* Menu Toggle (visible on all screen sizes) */
.btn-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 0;
    color: var(--ds-gray-800);
    cursor: pointer;
    transition: color var(--ds-transition);
}

.btn-menu:hover {
    color: var(--ds-accent);
}

.btn-menu .icon-close {
    display: none;
}

.btn-menu[aria-expanded="true"] .icon-hamburger {
    display: none;
}

.btn-menu[aria-expanded="true"] .icon-close {
    display: block;
}

/* Legacy class kept for JS compat */
.btn-mobile-menu {
    display: none;
}

/* Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    max-width: 85vw;
    background: var(--ds-white);
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    pointer-events: none;
    transition: transform 0.3s var(--ds-ease-out);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
}

.mobile-menu.is-open {
    transform: translateX(0);
    pointer-events: auto;
}

/* Backdrop */
.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ds-ease-out);
}

.menu-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Menu Header — Home link + close button */
.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--ds-space-4) var(--ds-space-6);
    border-bottom: 1px solid var(--ds-gray-200);
}

.mobile-menu__home {
    font-size: var(--ds-font-size-base);
    font-weight: 600;
    color: var(--ds-text-color);
    text-decoration: none;
    transition: color var(--ds-transition);
}

.mobile-menu__home:hover {
    color: var(--ds-accent);
}

.mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    border-radius: 0;
    color: var(--ds-gray-800);
    cursor: pointer;
    transition: border-color var(--ds-transition), color var(--ds-transition);
}

.mobile-menu__close:hover {
    color: var(--ds-accent);
}

.mobile-menu__nav {
    padding: var(--ds-space-6) var(--ds-space-6);
}

.mobile-menu__section {
    margin-bottom: var(--ds-space-6);
}

.mobile-menu__section:last-child {
    margin-bottom: 0;
}

.mobile-menu__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--ds-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--ds-space-3);
    padding-bottom: var(--ds-space-2);
    border-bottom: 1px solid var(--ds-gray-200);
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--ds-space-3) 0;
    font-size: var(--ds-font-size-base);
    font-weight: 500;
    color: var(--ds-text-color);
    text-decoration: none;
    transition: color var(--ds-transition);
}

.mobile-menu__link::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--ds-gray-300);
    border-bottom: 1.5px solid var(--ds-gray-300);
    transform: rotate(-45deg);
    transition: border-color var(--ds-transition), transform var(--ds-transition);
}

.mobile-menu__link:hover {
    color: var(--ds-accent);
}

.mobile-menu__link:hover::after {
    border-color: var(--ds-accent);
    transform: rotate(-45deg) translate(2px, -2px);
}

/* ============================================
   Search Panel / Fullscreen Overlay
   Desktop: panel below header with backdrop.
   Mobile (.is-fullscreen): full overlay.
   ============================================ */
.search-fullscreen {
    position: fixed;
    top: var(--ds-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    background: var(--ds-bg);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-fullscreen.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Fullscreen mode (mobile): covers everything */
.search-fullscreen.is-fullscreen {
    top: 0;
    transform: none;
}

/* Overlay header — hidden in panel mode, visible in fullscreen */
.search-fullscreen__header {
    flex-shrink: 0;
    border-bottom: 1px solid var(--ds-gray-200);
    background: var(--ds-bg);
    display: none;
}

.search-fullscreen.is-fullscreen .search-fullscreen__header {
    display: block;
}

.search-fullscreen__bar {
    display: flex;
    align-items: center;
    gap: var(--ds-space-4);
    height: var(--ds-header-height);
}

.search-fullscreen__icon {
    flex-shrink: 0;
    color: var(--ds-accent);
}

.search-fullscreen__input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1.35rem;
    font-family: var(--ds-font);
    font-weight: 500;
    color: var(--ds-gray-900);
    outline: none;
    padding: 0;
}

.search-fullscreen__input::placeholder {
    color: var(--ds-gray-400);
}

.search-fullscreen__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.search-fullscreen__kbd {
    display: inline-block;
    font-family: var(--ds-font);
    font-size: 11px;
    font-weight: 500;
    color: var(--ds-gray-400);
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-sm);
    padding: 2px 8px;
    line-height: 1.4;
}

.search-fullscreen__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-300);
    border-radius: var(--ds-radius-full);
    color: var(--ds-gray-700);
    cursor: pointer;
    transition: border-color var(--ds-transition), background-color var(--ds-transition), color var(--ds-transition), box-shadow var(--ds-transition);
}

.search-fullscreen__close:hover {
    border-color: var(--ds-accent);
    background: var(--ds-accent);
    color: var(--ds-white);
    box-shadow: 0 2px 8px rgba(233, 117, 32, 0.2);
}

/* Body / scrollable area */
.search-fullscreen__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--ds-space-4) 0 var(--ds-space-8);
}

/* Layout: sidebar + main */
.search-fullscreen__layout {
    display: flex;
    gap: var(--ds-space-6);
    min-height: 0;
}

/* Sidebar */
.search-fullscreen__sidebar {
    width: 200px;
    flex-shrink: 0;
    display: none;
    flex-direction: column;
    gap: var(--ds-space-2);
    position: sticky;
    top: 0;
    align-self: flex-start;
}

.search-fullscreen__sidebar.is-visible {
    display: flex;
}

.search-fullscreen__sidebar-head {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ds-gray-400);
    padding-bottom: var(--ds-space-2);
    border-bottom: 1px solid var(--ds-gray-200);
}

.search-fullscreen__sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Sidebar filter items */
.search-fullscreen__filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--ds-space-2) var(--ds-space-3);
    font-size: var(--ds-font-size-sm);
    font-weight: 400;
    font-family: var(--ds-font);
    color: var(--ds-gray-600);
    background: none;
    border: none;
    border-left: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: color var(--ds-transition-fast), background var(--ds-transition-fast), border-color var(--ds-transition-fast);
    text-align: left;
}

.search-fullscreen__filter:hover {
    color: var(--ds-text-color);
    background: var(--ds-gray-100);
}

.search-fullscreen__filter.is-active {
    color: var(--ds-accent);
    font-weight: 600;
    border-left-color: var(--ds-accent);
    background: var(--ds-accent-light);
}

.search-fullscreen__filter-label {
    flex: 1;
    min-width: 0;
}

.search-fullscreen__filter-count {
    font-size: 11px;
    font-weight: 500;
    color: var(--ds-gray-400);
    font-family: 'SF Mono', 'Consolas', monospace;
}

.search-fullscreen__filter.is-active .search-fullscreen__filter-count {
    color: var(--ds-accent);
}

/* Main content area */
.search-fullscreen__main {
    flex: 1;
    min-width: 0;
}

/* Toolbar: count + close */
.search-fullscreen__toolbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 var(--ds-space-3);
}

.search-fullscreen__toolbar.is-visible {
    display: flex;
}

.search-fullscreen__count {
    font-size: var(--ds-font-size-xs);
    color: var(--ds-gray-400);
    font-weight: 500;
    white-space: nowrap;
}

/* Close panel button (desktop) */
.search-fullscreen__close-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: 1px solid var(--ds-gray-300);
    border-radius: var(--ds-radius-sm);
    color: var(--ds-gray-500);
    cursor: pointer;
    transition: border-color var(--ds-transition-fast), color var(--ds-transition-fast), background var(--ds-transition-fast);
}

.search-fullscreen__close-panel:hover {
    border-color: var(--ds-gray-500);
    color: var(--ds-text-color);
    background: var(--ds-gray-100);
}

/* Toolbar actions group */
.search-fullscreen__toolbar-actions {
    display: flex;
    align-items: center;
    gap: var(--ds-space-3);
}

/* View toggle */
.search-view-toggle {
    display: flex;
    align-items: center;
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-sm);
    overflow: hidden;
}

.search-view-toggle__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    color: var(--ds-gray-400);
    cursor: pointer;
    transition: color var(--ds-transition-fast), background var(--ds-transition-fast);
}

.search-view-toggle__btn + .search-view-toggle__btn {
    border-left: 1px solid var(--ds-gray-200);
}

.search-view-toggle__btn:hover {
    color: var(--ds-text-color);
}

.search-view-toggle__btn.is-active {
    color: var(--ds-text-color);
    background: var(--ds-gray-100);
}

/* Results sections */
.search-fullscreen__section {
    margin-bottom: var(--ds-space-4);
}

.search-fullscreen__section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ds-gray-400);
    margin-bottom: var(--ds-space-2);
    position: relative;
    padding-left: var(--ds-space-3);
}

.search-fullscreen__section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 12px;
    border-radius: 2px;
    background: var(--ds-accent);
}

/* Categories as horizontal chips */
.search-fullscreen__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.search-fullscreen__cat {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-2);
    padding: 6px 14px;
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-full);
    font-size: var(--ds-font-size-xs);
    font-weight: 500;
    color: var(--ds-gray-700);
    text-decoration: none;
    transition: border-color 0.2s var(--ds-ease-out), color 0.2s var(--ds-ease-out), box-shadow 0.2s var(--ds-ease-out);
}

.search-fullscreen__cat:hover {
    border-color: var(--ds-accent);
    color: var(--ds-accent);
    box-shadow: 0 2px 8px rgba(233, 117, 32, 0.1);
}

.search-fullscreen__cat[aria-selected="true"] {
    border-color: var(--ds-accent);
    color: var(--ds-accent);
}

.search-fullscreen__cat-count {
    font-size: 10px;
    color: var(--ds-gray-400);
    font-weight: 400;
}

/* Products grid — base + view modes */
.search-fullscreen__grid {
    display: grid;
    gap: 0;
}

.search-fullscreen__product {
    display: flex;
    text-decoration: none;
    color: var(--ds-text-color);
    transition: background 0.15s ease;
    animation: searchItemIn 0.2s ease both;
    animation-delay: var(--item-delay, 0s);
}

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

.search-fullscreen__product:hover {
    background: var(--ds-accent-light);
}

.search-fullscreen__product[aria-selected="true"] {
    background: var(--ds-accent-light);
}

.search-fullscreen__product-thumb {
    flex-shrink: 0;
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-fullscreen__product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.search-fullscreen__product-info {
    flex: 1;
    min-width: 0;
}

.search-fullscreen__product-name {
    font-size: var(--ds-font-size-sm);
    font-weight: 500;
    color: var(--ds-text-color);
    line-height: 1.3;
}

.search-fullscreen__product-name strong {
    color: var(--ds-accent);
    font-weight: 700;
}

.search-fullscreen__product-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

/* ---- LIST VIEW (default) ---- */
.search-fullscreen__grid.is-list-view,
.search-fullscreen__grid:not(.is-grid-view) {
    grid-template-columns: 1fr 1fr;
}

.search-fullscreen__grid.is-list-view .search-fullscreen__product,
.search-fullscreen__grid:not(.is-grid-view) .search-fullscreen__product {
    align-items: center;
    gap: var(--ds-space-3);
    padding: 10px var(--ds-space-3);
    border-bottom: 1px solid var(--ds-gray-200);
}

.search-fullscreen__grid.is-list-view .search-fullscreen__product-thumb,
.search-fullscreen__grid:not(.is-grid-view) .search-fullscreen__product-thumb {
    width: 48px;
    height: 48px;
}

.search-fullscreen__grid.is-list-view .search-fullscreen__product-name,
.search-fullscreen__grid:not(.is-grid-view) .search-fullscreen__product-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- GRID VIEW ---- */
.search-fullscreen__grid.is-grid-view {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1px;
    background: var(--ds-gray-200);
    border-radius: var(--ds-radius-sm);
    overflow: hidden;
}

.search-fullscreen__grid.is-grid-view .search-fullscreen__product {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--ds-space-3);
    background: var(--ds-white);
}

.search-fullscreen__grid.is-grid-view .search-fullscreen__product-thumb {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border: none;
    border-radius: 0;
    background: var(--ds-bg);
    margin-bottom: var(--ds-space-2);
}

.search-fullscreen__grid.is-grid-view .search-fullscreen__product-thumb img {
    padding: 10%;
}

.search-fullscreen__grid.is-grid-view .search-fullscreen__product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    font-size: var(--ds-font-size-xs);
}

.search-fullscreen__grid.is-grid-view .search-fullscreen__product-meta {
    flex-wrap: wrap;
    margin-top: var(--ds-space-1);
}

.search-fullscreen__grid.is-grid-view .search-fullscreen__product-badge {
    display: none;
}

.search-fullscreen__product-code {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: var(--ds-white);
    background: var(--ds-accent);
    padding: 1px 5px;
    border-radius: 2px;
    font-family: 'SF Mono', 'Consolas', monospace;
}

.search-fullscreen__product-cat {
    font-size: 11px;
    color: var(--ds-gray-400);
}

.search-fullscreen__product-cat::before {
    content: '\00B7';
    margin-right: 6px;
    color: var(--ds-gray-300);
}

/* Catalog badge per product */
.search-fullscreen__product-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--ds-gray-100);
    color: var(--ds-gray-500);
}

.search-fullscreen__product-badge[data-catalog="ds-industria-2025"] {
    background: #EEF2FF;
    color: #4F46E5;
}

.search-fullscreen__product-badge[data-catalog="ds-ascensori-2025"] {
    background: #F0FDF4;
    color: #16A34A;
}

.search-fullscreen__product-badge[data-catalog="ds-stop-fire-2025"] {
    background: #FEF2F2;
    color: #DC2626;
}

/* Load more button */
.search-fullscreen__load-more {
    display: block;
    width: auto;
    margin: var(--ds-space-6) auto 0;
    padding: var(--ds-space-3) var(--ds-space-8);
    text-align: center;
    font-family: var(--ds-font);
    font-weight: 600;
    font-size: var(--ds-font-size-sm);
    color: var(--ds-gray-700);
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-300);
    border-radius: var(--ds-radius-full);
    cursor: pointer;
    transition: border-color var(--ds-transition), background-color var(--ds-transition), color var(--ds-transition), box-shadow var(--ds-transition);
}

.search-fullscreen__load-more:hover {
    border-color: var(--ds-accent);
    background: var(--ds-accent);
    color: var(--ds-white);
    box-shadow: 0 2px 8px rgba(233, 117, 32, 0.2);
}

/* States */
.search-fullscreen__hint,
.search-fullscreen__loading,
.search-fullscreen__empty {
    text-align: center;
    padding: var(--ds-space-12) var(--ds-space-4);
    color: var(--ds-gray-400);
    font-size: var(--ds-font-size-base);
}

.search-fullscreen__empty {
    color: var(--ds-gray-500);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .search-fullscreen {
        transform: none;
        transition: opacity 0.15s ease, visibility 0.15s;
    }
    .search-fullscreen__product {
        animation: none;
    }
    .search-fullscreen__product-thumb img {
        transition: none;
        filter: none;
    }
}

/* Mobile: always fullscreen with own header */
@media (max-width: 768px) {
    .search-fullscreen__input {
        font-size: 1.1rem;
    }

    .search-fullscreen__kbd {
        display: none;
    }

    .search-fullscreen__close-panel {
        display: none;
    }

    .search-fullscreen__layout {
        flex-direction: column;
        gap: 0;
    }

    /* Sidebar becomes horizontal scroll on mobile */
    .search-fullscreen__sidebar {
        width: 100%;
        position: static;
    }

    .search-fullscreen__sidebar.is-visible {
        display: flex;
    }

    .search-fullscreen__sidebar-head {
        display: none;
    }

    .search-fullscreen__sidebar-nav {
        flex-direction: row;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--ds-space-3);
    }

    .search-fullscreen__filter {
        flex-shrink: 0;
        width: auto;
        padding: 5px 12px;
        font-size: var(--ds-font-size-xs);
        border: 1px solid var(--ds-gray-300);
        border-left: 1px solid var(--ds-gray-300);
        border-radius: var(--ds-radius-full);
        background: var(--ds-white);
    }

    .search-fullscreen__filter.is-active {
        background: var(--ds-accent);
        color: var(--ds-white);
        border-color: var(--ds-accent);
        border-left-color: var(--ds-accent);
    }

    .search-fullscreen__filter.is-active .search-fullscreen__filter-count {
        color: var(--ds-white);
    }

    .search-fullscreen__toolbar {
        padding: var(--ds-space-2) 0 var(--ds-space-3);
    }

    .search-fullscreen__grid.is-list-view,
    .search-fullscreen__grid:not(.is-grid-view) {
        grid-template-columns: 1fr;
    }

    .search-fullscreen__grid.is-grid-view {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

/* Breadcrumb Bar */
.breadcrumb-bar {
    background-color: var(--ds-bg);
    border-bottom: 1px solid var(--ds-gray-200);
    position: sticky;
    top: var(--ds-header-height);
    z-index: 99;
    transition: top 0.35s var(--ds-ease-in-out);
}

.breadcrumb-bar .breadcrumbs {
    padding: var(--ds-space-4) 0;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background-color: #1E1E1E;
    color: var(--ds-gray-400);
    margin-top: auto;
}

/* Footer Logo */
.footer-logo {
    padding-top: var(--ds-space-8);
}

.footer-logo a {
    display: inline-block;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity var(--ds-transition);
}

.footer-logo a:hover img {
    opacity: 1;
}

/* Footer Top — 4 columns */
.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ds-space-10);
    padding: var(--ds-space-10) 0;
}

.footer-col__title {
    font-size: 11px;
    font-weight: 600;
    color: var(--ds-white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 var(--ds-space-3);
}

.footer-col__nav {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-2);
}

.footer-col__nav a {
    font-size: 13px;
    color: var(--ds-gray-400);
    transition: color var(--ds-transition);
}

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

.footer-col__content {
    font-size: 13px;
    line-height: 1.7;
}

.footer-col__content p {
    margin: 0 0 var(--ds-space-1);
}

.footer-col__content a {
    color: var(--ds-gray-400);
    transition: color var(--ds-transition);
}

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

/* Footer Bottom — bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--ds-space-4) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.footer-copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom__links {
    display: flex;
    gap: var(--ds-space-4);
}

.footer-bottom__links a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--ds-transition);
}

.footer-bottom__links a:hover {
    color: var(--ds-white);
}

.footer-credit {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--ds-transition);
}

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

/* Footer Widgets — stili per contenuti inseriti da backend */
.footer-widget {
    font-size: 13px;
    color: var(--ds-gray-400);
    line-height: 1.7;
}

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

.footer-widget li {
    margin-bottom: var(--ds-space-2);
}

.footer-widget a {
    color: var(--ds-gray-400);
    transition: color var(--ds-transition);
}

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

/* ============================================
   Homepage - Catalogs Section
   ============================================ */
.homepage-catalogs {
    padding: var(--ds-space-4) var(--ds-container-padding);
    max-width: var(--ds-container-max);
    margin: 0 auto;
}

/* Mobile: Catalog Selector (nascosto su desktop) */
.catalog-selector {
    display: none;
    flex-direction: column;
    gap: var(--ds-space-3);
    padding: var(--ds-space-4) 0;
}

.catalog-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ds-space-6) var(--ds-space-4);
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-md);
    font-size: var(--ds-font-size-xl);
    font-weight: 700;
    color: var(--ds-gray-900);
    cursor: pointer;
    transition: all var(--ds-transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.catalog-btn:hover {
    border-color: var(--ds-black);
    background: var(--ds-gray-100);
}

.catalog-selector.hidden {
    display: none !important;
}

/* Desktop: 3 Columns Grid */
.catalogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds-space-6);
}

/* Each catalog column */
.catalog-column {
    min-width: 0;
}

/* Column header with title and back button */
.catalog-header {
    display: flex;
    align-items: center;
    gap: var(--ds-space-3);
    margin-bottom: var(--ds-space-8);
    padding-bottom: 0;
    border-bottom: none;
}

.catalog-back {
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--ds-space-2);
    background: none;
    border: none;
    color: var(--ds-gray-700);
    cursor: pointer;
    transition: color var(--ds-transition);
}

.catalog-back:hover {
    color: var(--ds-black);
}

.catalog-title {
    font-size: var(--ds-font-size-2xl);
    font-weight: 400;
    font-style: italic;
    color: var(--ds-black);
    text-transform: none;
    letter-spacing: normal;
    margin: 0;
    padding-bottom: var(--ds-space-2);
    border-bottom: 2px solid var(--ds-black);
    display: inline-block;
}

/* Categories grid within each column */
.catalog-column .categories-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Category link item */
.category-link {
    display: flex;
    align-items: center;
    gap: var(--ds-space-4);
    padding: var(--ds-space-3) var(--ds-space-2);
    margin: 0 calc(var(--ds-space-2) * -1);
    text-decoration: none;
    color: var(--ds-gray-800);
    border-radius: 0;
    transition: all var(--ds-transition);
    border-bottom: 1px solid var(--ds-gray-200);
}

.category-link:last-child {
    border-bottom: none;
}

.category-link:hover {
    background: transparent;
    color: var(--ds-black);
    transform: translateX(4px);
}

.category-link:hover .category-image img {
    transform: scale(1.08);
}

/* Category thumbnail */
.category-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    mix-blend-mode: multiply;
    transition: transform var(--ds-transition-slow);
}

.category-placeholder {
    color: var(--ds-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-placeholder svg {
    width: 24px;
    height: 24px;
}

/* Category name */
.category-name {
    font-size: var(--ds-font-size-base);
    font-weight: 500;
    line-height: 1.3;
}

/* No categories message */
.no-categories {
    color: var(--ds-gray-500);
    font-size: var(--ds-font-size-sm);
    padding: var(--ds-space-4) 0;
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet: sotto 1024px - mostra selector e nascondi grid desktop */
@media (max-width: 1024px) {
    .homepage-catalogs {
        min-height: auto;
        padding: var(--ds-space-6) var(--ds-container-padding);
    }

    /* Mostra selector cataloghi su mobile */
    .catalog-selector {
        display: flex;
    }

    /* Nascondi grid desktop su mobile (visibile quando selector è hidden) */
    .catalogs-grid {
        display: none;
    }

    .catalog-selector.hidden ~ .catalogs-grid {
        display: block;
    }

    /* Mostra back button su mobile */
    .catalog-back {
        display: flex;
    }

    /* Stili colonna attiva su mobile */
    .catalog-column {
        display: none;
    }

    .catalog-column.active {
        display: block;
    }

    /* Grid categorie su mobile: 2 colonne */
    .catalog-column .categories-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ds-space-3);
    }

    .category-link {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--ds-space-4);
        background: var(--ds-white);
        border: 1px solid var(--ds-gray-200);
        border-bottom: 1px solid var(--ds-gray-200);
        border-radius: var(--ds-radius-md);
        margin: 0;
    }

    .category-link:last-child {
        border-bottom: 1px solid var(--ds-gray-200);
    }

    .category-link:hover {
        border-color: var(--ds-gray-400);
    }

    .category-image {
        width: 72px;
        height: 72px;
        margin-bottom: var(--ds-space-2);
    }

    .category-name {
        font-size: var(--ds-font-size-sm);
    }

    .search-form input[type="search"] {
        font-size: 14px;
        padding: 10px var(--ds-space-2);
    }
}

/* Mobile: sotto 768px */
@media (max-width: 768px) {
    :root {
        --ds-container-padding: 1.25rem;
    }

    /* Hide desktop search, show mobile search button */
    .header-search {
        display: none;
    }

    .btn-mobile-search {
        display: flex;
    }

    .site-logo img {
        height: 44px;
    }

    .lang-switch {
        font-size: 10px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--ds-space-6);
        padding: var(--ds-space-8) 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--ds-space-2);
        text-align: center;
    }

    .breadcrumb-bar {
        top: var(--ds-header-height);
    }

    /* Breadcrumb bar on mobile */
    .breadcrumb-bar .breadcrumbs {
        font-size: var(--ds-font-size-xs);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    /* Grid categorie su mobile piccolo: 2 colonne strette */
    .catalog-column .categories-grid {
        gap: var(--ds-space-2);
    }

    .category-link {
        padding: var(--ds-space-3);
    }

    .category-image {
        width: 48px;
        height: 48px;
    }

    /* Tables: horizontal scroll on mobile */
    .ds-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 calc(var(--ds-space-4) * -1);
        padding: 0 var(--ds-space-4);
    }

    .ds-table {
        min-width: 400px;
    }

    /* Header compatto su mobile */
    .header-inner {
        gap: var(--ds-space-2);
    }

    .header-actions {
        gap: var(--ds-space-2);
    }

    .btn-menu {
        width: 36px;
        height: 36px;
    }

    .btn-mobile-search {
        width: 36px;
        height: 36px;
    }
}

/* Small mobile: sotto 480px */
@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--ds-space-5);
        padding: var(--ds-space-6) 0;
    }

    .site-logo img {
        height: 38px;
    }
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Desktop grande: sopra 1400px - più spazio */
@media (min-width: 1400px) {
    .homepage-catalogs {
        padding: var(--ds-space-6) var(--ds-container-padding);
    }
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
    max-width: none;
    margin: 0;
    padding: var(--ds-space-3) 0;
    font-size: var(--ds-font-size-xs);
    color: var(--ds-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.breadcrumbs a {
    color: var(--ds-gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--ds-transition);
}

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

.breadcrumbs .breadcrumb-separator {
    margin: 0 8px;
    color: var(--ds-gray-300);
    font-size: 9px;
}

.breadcrumbs .current {
    color: var(--ds-accent);
    font-weight: 600;
}

/* ============================================
   Catalog Page (taxonomy-ds_catalogo)
   ============================================ */
.catalog-page {
    max-width: none;
    margin: 0;
    padding: var(--ds-space-8) var(--ds-container-padding) var(--ds-space-12);
}

.catalog-page__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ds-black);
    letter-spacing: -0.01em;
    margin-bottom: var(--ds-space-6);
    position: relative;
    padding-left: var(--ds-space-3);
}

.catalog-page__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--ds-accent);
}

/* Category cards grid: 6 columns desktop, compact like homepage */
.catalog-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--ds-space-6);
}

/* Category card — matches homepage catalog-card style */
.catalog-category-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ds-text-color);
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: transform 0.2s var(--ds-ease-out);
}

.catalog-category-card:hover {
    transform: translateY(-3px);
    color: var(--ds-text-color);
}

.catalog-category-card:hover .catalog-category-card__image img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

.catalog-category-card:focus-visible {
    outline-color: var(--ds-accent);
    outline-offset: 4px;
    border-radius: var(--ds-radius-md);
    box-shadow: 0 0 0 3px var(--ds-accent-ring);
}

/* Card image container — above name like homepage */
.catalog-category-card__image {
    order: 1;
    width: 100%;
    aspect-ratio: 1;
    background: var(--ds-white);
    border-radius: var(--ds-radius-md);
    border: 1px solid var(--ds-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.2s var(--ds-ease-out), box-shadow 0.2s var(--ds-ease-out);
}

.catalog-category-card:hover .catalog-category-card__image {
    border-color: var(--ds-gray-300);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.catalog-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    padding: 10%;
    filter: grayscale(40%);
    transition: transform 0.3s var(--ds-ease-out), filter 0.4s var(--ds-ease-out);
}

/* Category name below image — matches homepage */
.catalog-category-card__name {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: var(--ds-space-2) 2px 0;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ds-gray-500);
    transition: color 0.3s var(--ds-ease-out);
}

.catalog-category-card:hover .catalog-category-card__name {
    color: var(--ds-black);
}

.catalog-category-card__count {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--ds-gray-500);
}

/* Placeholder icon when no image */
.catalog-category-card__placeholder {
    color: var(--ds-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Empty state */
.catalog-page__empty {
    color: var(--ds-gray-500);
    font-size: var(--ds-font-size-base);
    padding: var(--ds-space-8) 0;
    text-align: center;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .catalog-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: var(--ds-space-4);
    }

    .catalog-page__title {
        margin-bottom: var(--ds-space-5);
    }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .catalog-page {
        padding-top: var(--ds-space-6);
        padding-bottom: var(--ds-space-8);
        padding-left: var(--ds-space-4);
        padding-right: var(--ds-space-4);
    }

    .catalog-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: var(--ds-space-3);
    }

    .catalog-page__title {
        font-size: 1rem;
        margin-bottom: var(--ds-space-4);
    }

    .catalog-category-card__name {
        font-size: 0.75rem;
    }
}

/* ============================================
   Product Detail - Single Product (v2)
   ============================================ */
.product-detail {
    padding: var(--ds-space-8) var(--ds-container-padding) var(--ds-space-12);
}

.product-detail__grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--ds-space-8);
    align-items: start;
}

.product-detail__grid:has(.product-variants) {
    grid-template-columns: 2fr 3fr minmax(260px, 1.5fr);
}

/* -- Gallery (left column) -- */
.product-detail__gallery {
    position: sticky;
    top: calc(var(--ds-header-height) + var(--ds-breadcrumb-height));
    padding-top: var(--ds-space-6);
    transition: top 0.35s var(--ds-ease-in-out);
}

.header-hidden .product-detail__gallery {
    top: var(--ds-breadcrumb-height);
}

.product-detail__image-main {
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: var(--ds-space-8);
    cursor: zoom-in;
    transition: border-color 0.2s var(--ds-ease-out), box-shadow 0.2s var(--ds-ease-out);
}

.product-detail__image-main:hover {
    border-color: var(--ds-gray-300);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.product-detail__image-main img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: grayscale(100%);
    transition: filter 0.4s var(--ds-ease-out), transform var(--ds-transition-slow);
}

.product-detail__image-main:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.product-detail__no-image {
    color: var(--ds-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail__thumbnails {
    display: flex;
    gap: var(--ds-space-2);
    margin-top: var(--ds-space-3);
    overflow-x: auto;
    padding-bottom: var(--ds-space-2);
    -webkit-overflow-scrolling: touch;
}

.product-detail__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-sm);
    background: var(--ds-white);
    cursor: pointer;
    padding: var(--ds-space-1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--ds-transition);
}

.product-detail__thumb:hover,
.product-detail__thumb[aria-pressed="true"] {
    border-color: var(--ds-black);
}

.product-detail__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: grayscale(100%);
    transition: filter 0.4s var(--ds-ease-out);
}

.product-detail__thumb:hover img,
.product-detail__thumb[aria-pressed="true"] img {
    filter: grayscale(0%);
}

/* -- Info (right column) -- */
.product-detail__info {
    min-width: 0;
}

/* Category tag */
.product-detail__category-tag {
    display: inline-block;
    font-size: var(--ds-font-size-xs);
    font-weight: 500;
    color: var(--ds-accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--ds-space-2);
    transition: color var(--ds-transition);
}

.product-detail__category-tag:hover {
    color: var(--ds-accent-hover);
}

.product-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--ds-space-4);
}

.product-detail__title {
    font-size: var(--ds-font-size-2xl);
    font-weight: 700;
    color: var(--ds-black);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0;
}

/* SKU badge */
.product-detail__sku {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ds-white);
    background: var(--ds-accent);
    padding: 3px 10px;
    border-radius: 3px;
    font-family: 'SF Mono', 'Menlo', monospace;
    letter-spacing: 0.03em;
    margin-top: var(--ds-space-3);
}

.btn-print {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-sm);
    padding: var(--ds-space-2);
    cursor: pointer;
    color: var(--ds-gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ds-ease-out);
}

.btn-print:hover {
    border-color: var(--ds-accent);
    color: var(--ds-accent);
}

/* Description */
.product-detail__description {
    font-size: var(--ds-font-size-sm);
    line-height: 1.7;
    color: var(--ds-gray-500);
    margin-top: var(--ds-space-4);
    padding-bottom: var(--ds-space-5);
    border-bottom: 1px solid var(--ds-gray-100);
}

.product-detail__description p {
    margin: 0 0 var(--ds-space-3);
}

.product-detail__description p:last-child {
    margin-bottom: 0;
}

/* Section Cards */
.product-detail__card {
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-100);
    border-radius: var(--ds-radius-md);
    padding: var(--ds-space-5);
    margin-top: var(--ds-space-4);
}

.product-detail__card h3 {
    font-size: var(--ds-font-size-xs);
    font-weight: 600;
    color: var(--ds-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 var(--ds-space-3);
    padding-bottom: var(--ds-space-3);
    border-bottom: 1px solid var(--ds-gray-100);
}

/* CTA Button */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ds-space-2);
    width: 100%;
    height: 48px;
    padding: 0 var(--ds-space-8);
    background: var(--ds-black);
    color: var(--ds-white);
    font-size: var(--ds-font-size-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    border-radius: var(--ds-radius-sm);
    cursor: pointer;
    margin-top: var(--ds-space-6);
    transition: background 0.25s var(--ds-ease-in-out), transform 0.2s var(--ds-ease-out), box-shadow 0.25s var(--ds-ease-in-out);
}

.btn-cta:hover {
    background: var(--ds-accent);
    color: var(--ds-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(233, 117, 32, 0.3);
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-cta svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Data Tables */
.ds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--ds-font-size-sm);
    color: var(--ds-text-color);
}

.ds-table thead th {
    color: var(--ds-gray-500);
    font-weight: 600;
    text-align: left;
    padding: var(--ds-space-2) 0;
    border: none;
    border-bottom: 1px solid var(--ds-gray-200);
    font-size: var(--ds-font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ds-table--compact tbody td {
    padding: var(--ds-space-2) 0;
    border: none;
    border-bottom: 1px solid var(--ds-gray-50, #f8f8f8);
    vertical-align: top;
}

.ds-table tbody td {
    padding: var(--ds-space-3) var(--ds-space-4);
    border: none;
    border-bottom: 1px solid var(--ds-gray-200);
    vertical-align: top;
}

.ds-table tbody tr {
    transition: background-color var(--ds-transition-fast);
}

.ds-table--compact tbody tr:last-child td {
    border-bottom: none;
    padding-bottom: 0;
}

.ds-table tbody tr:last-child td {
    border-bottom: none;
}

.ds-table tbody td:first-child {
    font-weight: 500;
    white-space: nowrap;
    width: 40%;
    color: var(--ds-gray-400);
    font-size: var(--ds-font-size-xs);
}

.ds-table--compact tbody td:last-child {
    font-weight: 500;
    color: var(--ds-gray-700);
}

/* Download List */
.download-list {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-2);
}

.download-list li a {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-3);
    padding: var(--ds-space-2) 0;
    font-size: var(--ds-font-size-sm);
    font-weight: 500;
    color: var(--ds-text-color);
    text-decoration: none;
    transition: color 0.2s var(--ds-ease-out);
}

.download-list li a:hover {
    color: var(--ds-accent);
}

.download-list li a svg {
    flex-shrink: 0;
    color: var(--ds-accent);
}

/* Back to category link */
.product-detail__nav {
    margin-top: var(--ds-space-6);
    padding-top: var(--ds-space-4);
    border-top: 1px solid var(--ds-gray-100);
}

.product-detail__back {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-2);
    font-size: var(--ds-font-size-xs);
    font-weight: 500;
    color: var(--ds-gray-400);
    text-decoration: none;
    transition: color var(--ds-transition), gap var(--ds-transition);
}

.product-detail__back:hover {
    color: var(--ds-accent);
    gap: var(--ds-space-3);
}

/* Product Detail - Responsive: Tablet */
@media (max-width: 1024px) {
    .product-detail__grid,
    .product-detail__grid:has(.product-variants) {
        grid-template-columns: 1fr;
        gap: var(--ds-space-8);
    }

    .product-detail__gallery {
        position: static;
    }

    .product-variants {
        position: static;
        max-height: none;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        padding: var(--ds-space-5) 0 0;
    }

    .product-variants__header {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: var(--ds-space-3);
        padding-bottom: var(--ds-space-3);
    }

    .product-variants__label {
        display: none;
    }

    .product-variants__title {
        font-size: var(--ds-font-size-sm);
    }

    .product-variants__count {
        margin-top: 0;
    }

    .product-variants__list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
        gap: var(--ds-space-3);
        margin: 0;
        padding: 0 0 var(--ds-space-3);
        -webkit-overflow-scrolling: touch;
    }

    .product-variants__item {
        flex-shrink: 0;
        width: 200px;
        padding: var(--ds-space-3);
        border: 1px solid var(--ds-gray-100);
        border-radius: var(--ds-radius-md);
        background: var(--ds-white);
    }

    .product-variants__item + .product-variants__item {
        border-top: 1px solid var(--ds-gray-100);
    }

    .product-variants__thumb {
        width: 56px;
        height: 56px;
    }

    .product-detail__image-main {
        max-width: 500px;
        margin: 0 auto;
    }

    .product-detail__thumbnails {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        margin-top: var(--ds-space-4);
    }
}

/* Product Detail - Responsive: Mobile */
@media (max-width: 768px) {
    .product-detail {
        padding: 0 var(--ds-container-padding) var(--ds-space-8);
    }

    .product-detail__title {
        font-size: var(--ds-font-size-lg);
    }

    .btn-cta {
        width: 100%;
    }

    .ds-table tbody td:first-child,
    .ds-table--compact tbody td:first-child {
        white-space: normal;
    }

    .product-detail__thumb {
        width: 60px;
        height: 60px;
    }

    .product-detail__card {
        padding: var(--ds-space-4);
    }

    .product-variants__list {
        flex-direction: column;
        overflow-x: visible;
        gap: 0;
        padding-bottom: 0;
    }

    .product-variants__item {
        width: auto;
        border: none;
        border-radius: 0;
        background: transparent;
        padding: var(--ds-space-3) 0;
    }

    .product-variants__item + .product-variants__item {
        border-top: 1px solid var(--ds-gray-100);
    }

    .product-variants__thumb {
        width: 52px;
        height: 52px;
    }

    .product-variants__specs dd {
        white-space: normal;
    }
}

/* ============================================
   Product Variants (right sidebar column)
   ============================================ */
.product-variants {
    position: sticky;
    top: calc(var(--ds-header-height) + var(--ds-breadcrumb-height));
    padding-top: var(--ds-space-6);
    transition: top 0.35s var(--ds-ease-in-out);
    max-height: calc(100vh - var(--ds-header-height) - var(--ds-breadcrumb-height) - var(--ds-space-8));
    display: flex;
    flex-direction: column;
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-md);
    padding: var(--ds-space-5);
}

.header-hidden .product-variants {
    top: var(--ds-breadcrumb-height);
    max-height: calc(100vh - var(--ds-breadcrumb-height) - var(--ds-space-8));
}

/* Header */
.product-variants__header {
    flex-shrink: 0;
    margin-bottom: var(--ds-space-4);
    padding-bottom: var(--ds-space-4);
    border-bottom: 1px solid var(--ds-gray-200);
}

.product-variants__label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ds-accent);
    margin-bottom: 2px;
}

.product-variants__title {
    font-size: var(--ds-font-size-base);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.product-variants__count {
    font-size: var(--ds-font-size-xs);
    color: var(--ds-text-muted);
    margin-top: 2px;
}

/* Scrollable list */
.product-variants__list {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 calc(var(--ds-space-5) * -1);
    padding: 0 var(--ds-space-5);
    scrollbar-width: thin;
    scrollbar-color: var(--ds-gray-200) transparent;
}

.product-variants__list::-webkit-scrollbar {
    width: 4px;
}

.product-variants__list::-webkit-scrollbar-track {
    background: transparent;
}

.product-variants__list::-webkit-scrollbar-thumb {
    background: var(--ds-gray-200);
    border-radius: 2px;
}

/* Single variant card */
.product-variants__item {
    display: flex;
    align-items: flex-start;
    gap: var(--ds-space-4);
    padding: var(--ds-space-4) var(--ds-space-2);
    text-decoration: none;
    color: var(--ds-text-color);
    border-radius: var(--ds-radius-sm);
    transition: background 0.15s var(--ds-ease-out);
}

.product-variants__item + .product-variants__item {
    border-top: 1px solid var(--ds-gray-100);
}

.product-variants__item:hover {
    background: var(--ds-gray-50, #fafaf8);
}

.product-variants__item:hover .product-variants__thumb img {
    filter: grayscale(0%);
}

/* Thumbnail */
.product-variants__thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border: 1px solid var(--ds-gray-100);
    border-radius: var(--ds-radius-sm);
    background: var(--ds-white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-variants__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    padding: 6px;
    filter: grayscale(100%);
    transition: filter 0.3s var(--ds-ease-out);
}

.product-variants__thumb svg {
    color: var(--ds-gray-300);
}

/* Info block */
.product-variants__item-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.product-variants__diff {
    font-size: var(--ds-font-size-sm);
    font-weight: 600;
    line-height: 1.35;
    color: var(--ds-gray-900);
}

.product-variants__code {
    font-size: var(--ds-font-size-xs);
    color: var(--ds-text-muted);
    font-family: var(--ds-font-mono, 'SF Mono', 'Fira Code', monospace);
}

/* Spec diffs — definition list layout */
.product-variants__specs {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 4px 0 0;
    padding: 0;
}

.product-variants__spec-row {
    display: flex;
    gap: var(--ds-space-2);
    padding: 2px 0;
    font-size: var(--ds-font-size-xs);
    line-height: 1.4;
}

.product-variants__spec-row + .product-variants__spec-row {
    border-top: 1px dashed var(--ds-gray-100);
}

.product-variants__specs dt {
    flex-shrink: 0;
    color: var(--ds-gray-500);
    font-weight: 500;
    white-space: nowrap;
}

.product-variants__specs dd {
    margin: 0;
    color: var(--ds-gray-800);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   Related Products
   ============================================ */
.related-products {
    padding: var(--ds-space-10) var(--ds-container-padding) 0;
    border-top: 1px solid var(--ds-gray-200);
}

.related-products__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--ds-space-5);
}

.related-products__title {
    font-size: var(--ds-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ds-gray-500);
    margin: 0;
}

.related-products__arrows {
    display: flex;
    gap: 6px;
}

.related-products__arrow {
    width: 28px;
    height: 28px;
    border-radius: var(--ds-radius-full);
    border: 1px solid var(--ds-gray-400);
    background: var(--ds-white);
    color: var(--ds-gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.15s var(--ds-ease-out);
}

.related-products__arrow:hover:not(:disabled) {
    border-color: var(--ds-accent);
    background: var(--ds-accent);
    color: var(--ds-white);
    box-shadow: 0 2px 8px rgba(233, 117, 32, 0.2);
}

.related-products__arrow:active:not(:disabled) {
    transform: scale(0.92);
}

.related-products__arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.related-products__grid {
    display: flex;
    gap: var(--ds-space-4);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--ds-space-3);
    scrollbar-width: thin;
    scrollbar-color: var(--ds-gray-300) transparent;
}

.related-products__grid::-webkit-scrollbar {
    height: 4px;
}

.related-products__grid::-webkit-scrollbar-track {
    background: transparent;
}

.related-products__grid::-webkit-scrollbar-thumb {
    background: var(--ds-gray-300);
    border-radius: 2px;
}

.related-products__card {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 220px;
    text-decoration: none;
    color: var(--ds-gray-900);
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-100);
    border-radius: var(--ds-radius-md);
    overflow: hidden;
    transition: transform 0.2s var(--ds-ease-out), border-color 0.2s var(--ds-ease-out), box-shadow 0.2s var(--ds-ease-out);
}

.related-products__card:hover {
    transform: translateY(-2px);
    border-color: var(--ds-gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.related-products__card:hover .related-products__image img {
    filter: grayscale(0%);
}

.related-products__image {
    aspect-ratio: 1;
    background: var(--ds-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--ds-gray-100);
    overflow: hidden;
}

.related-products__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    padding: 12%;
    filter: grayscale(100%);
    transition: filter 0.4s var(--ds-ease-out);
}

.related-products__placeholder {
    color: var(--ds-gray-300);
}

.related-products__info {
    padding: var(--ds-space-3);
}

.related-products__name {
    font-size: var(--ds-font-size-xs);
    font-weight: 600;
    line-height: 1.3;
    color: var(--ds-gray-600);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-products__card:hover .related-products__name {
    color: var(--ds-black);
}

.related-products__code {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--ds-white);
    background: var(--ds-accent);
    padding: 1px 6px;
    border-radius: 2px;
    font-family: 'SF Mono', 'Menlo', monospace;
    letter-spacing: 0.03em;
    margin-top: var(--ds-space-1);
}

@media (max-width: 768px) {
    .related-products__arrows {
        display: none;
    }

    .related-products__card {
        width: 180px;
    }
}

/* ============================================
   Category Listing (taxonomy-ds_categoria)
   ============================================ */
.category-listing {
    width: 100%;
    padding: var(--ds-space-10) var(--ds-container-padding) var(--ds-space-10);
}

.category-listing__grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0 var(--ds-space-6);
    min-height: 60vh;
}

/* --- Sidebar --- */
.category-listing__sidebar {
    padding: 0;
}

.filter-panel {
    position: sticky;
    top: calc(var(--ds-header-height) + var(--ds-breadcrumb-height));
    max-height: calc(100vh - var(--ds-header-height) - var(--ds-breadcrumb-height));
    overflow-y: auto;
    padding-top: var(--ds-space-6);
    transition: top 0.35s var(--ds-ease-in-out), max-height 0.35s var(--ds-ease-in-out);
}

.header-hidden .filter-panel {
    top: var(--ds-breadcrumb-height);
    max-height: calc(100vh - var(--ds-breadcrumb-height));
}

.filter-panel::-webkit-scrollbar {
    width: 3px;
}

.filter-panel::-webkit-scrollbar-track {
    background: transparent;
}

.filter-panel::-webkit-scrollbar-thumb {
    background: var(--ds-gray-200);
    border-radius: 3px;
}

.filter-panel::-webkit-scrollbar-thumb:hover {
    background: var(--ds-gray-300);
}

.filter-panel {
    scrollbar-width: thin;
    scrollbar-color: var(--ds-gray-200) transparent;
}

.filter-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--ds-space-3);
}

.filter-panel__title {
    font-size: var(--ds-font-size-xs);
    font-weight: 600;
    color: var(--ds-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
    padding-bottom: var(--ds-space-2);
    border-bottom: 2px solid var(--ds-accent);
    display: flex;
    align-items: center;
    gap: var(--ds-space-2);
}

.filter-panel__icon {
    flex-shrink: 0;
    color: var(--ds-accent);
}

/* Clear filters link */
.filter-panel__clear {
    display: inline-block;
    font-size: var(--ds-font-size-xs);
    color: var(--ds-accent);
    text-decoration: none;
    margin-bottom: var(--ds-space-3);
    transition: color var(--ds-transition);
}

.filter-panel__clear:hover {
    color: var(--ds-accent-hover);
}

/* Toggle: hidden on desktop, visible on mobile */
.filter-panel__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-sm);
    color: var(--ds-gray-600);
    cursor: pointer;
    transition: all var(--ds-transition);
}

.filter-panel__toggle:hover {
    border-color: var(--ds-accent);
    color: var(--ds-accent);
}

.filter-panel__toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.filter-panel__toggle svg {
    transition: transform var(--ds-transition);
}

/* Filter form */
.product-filters fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.filter-panel__item {
    display: flex;
    align-items: center;
    gap: var(--ds-space-2);
    padding: 5px var(--ds-space-2);
    cursor: pointer;
    font-size: var(--ds-font-size-xs);
    color: var(--ds-gray-600);
    transition: color var(--ds-transition), background-color var(--ds-transition);
    border-radius: var(--ds-radius-sm);
    margin-bottom: 1px;
}

.filter-panel__item:hover {
    color: var(--ds-black);
    background-color: var(--ds-accent-light);
}

.filter-panel__item.is-active {
    color: var(--ds-black);
    font-weight: 500;
}

.filter-panel__item-count {
    margin-left: auto;
    font-size: 0.65rem;
    color: var(--ds-gray-400);
    font-weight: 400;
}

.filter-panel__item input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border: 1.5px solid var(--ds-gray-400);
    border-radius: 2px;
    background: var(--ds-white);
    cursor: pointer;
    position: relative;
    transition: background-color 0.15s var(--ds-ease-out), border-color 0.15s var(--ds-ease-out);
}

.filter-panel__item input[type="checkbox"]:checked {
    background: var(--ds-accent);
    border-color: var(--ds-accent);
}

.filter-panel__item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0px;
    width: 5px;
    height: 8px;
    border: solid var(--ds-white);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.filter-panel__item input[type="checkbox"]:hover {
    border-color: var(--ds-accent);
}

.filter-panel__item input[type="checkbox"]:focus-visible {
    outline-color: var(--ds-accent);
    box-shadow: 0 0 0 3px var(--ds-accent-ring);
}

.filter-panel__item span {
    line-height: 1.3;
}

.filter-panel__submit {
    display: block;
    width: 100%;
    margin-top: var(--ds-space-4);
    padding: var(--ds-space-3) var(--ds-space-4);
    background: var(--ds-accent);
    color: var(--ds-white);
    border: none;
    border-radius: var(--ds-radius-sm);
    font-size: var(--ds-font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: background var(--ds-transition);
}

.filter-panel__submit:hover {
    background: var(--ds-accent-hover);
}

/* --- Content Area --- */
.category-listing__content {
    min-width: 0;
}

/* Toolbar */
.category-listing__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--ds-space-4);
    padding-top: var(--ds-space-4);
    padding-bottom: var(--ds-space-3);
    border-bottom: 1px solid var(--ds-gray-200);
}

.category-listing__toolbar-left {
    display: flex;
    align-items: baseline;
    gap: var(--ds-space-3);
}

.category-listing__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ds-black);
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.3;
    position: relative;
    padding-left: var(--ds-space-3);
}

.category-listing__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--ds-accent);
}

.category-listing__count {
    font-size: var(--ds-font-size-xs);
    color: var(--ds-gray-400);
}

/* View Toggle */
.category-view-toggle {
    display: flex;
    gap: 2px;
    background: var(--ds-gray-100);
    border-radius: var(--ds-radius-sm);
    padding: 2px;
}

.category-view-toggle__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    border: none;
    background: none;
    border-radius: 2px;
    color: var(--ds-gray-400);
    cursor: pointer;
    transition: all 0.15s var(--ds-ease-out);
}

.category-view-toggle__btn:hover {
    color: var(--ds-gray-700);
}

.category-view-toggle__btn.is-active {
    background: var(--ds-white);
    color: var(--ds-black);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* --- Product Rows (List View) --- */
.category-listing__products {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-2);
}

.product-row {
    display: flex;
    align-items: center;
    gap: var(--ds-space-4);
    padding: var(--ds-space-4) var(--ds-space-4);
    text-decoration: none;
    color: var(--ds-text-color);
    transition: background-color 0.2s var(--ds-ease-out), border-color 0.2s var(--ds-ease-out), box-shadow 0.2s var(--ds-ease-out);
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-100);
    border-left: 2px solid transparent;
    border-radius: var(--ds-radius-md);
    margin: 0;
}

.product-row:hover {
    border-color: var(--ds-gray-200);
    border-left-color: var(--ds-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-row:hover .product-row__image {
    border-color: var(--ds-gray-300);
}

.product-row:hover .product-row__image img {
    filter: grayscale(0%);
}

.product-row:hover .product-row__title {
    color: var(--ds-black);
}

.product-row__image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-md);
    overflow: hidden;
    transition: border-color 0.2s var(--ds-ease-out);
}

.product-row__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    mix-blend-mode: multiply;
    filter: grayscale(100%);
    transition: filter 0.3s var(--ds-ease-out);
}

.product-row__placeholder {
    color: var(--ds-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-row__info {
    flex: 1;
    min-width: 0;
}

.product-row__title {
    font-size: var(--ds-font-size-sm);
    font-weight: 600;
    color: var(--ds-gray-700);
    margin: 0;
    line-height: 1.3;
    transition: color 0.2s var(--ds-ease-out);
}

.product-row__code {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ds-white);
    margin-top: 3px;
    padding: 1px 6px;
    background: var(--ds-accent);
    border-radius: 2px;
    font-family: 'SF Mono', 'Menlo', monospace;
    letter-spacing: 0.03em;
}

.product-row__excerpt {
    font-size: var(--ds-font-size-xs);
    color: var(--ds-gray-400);
    margin: 3px 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Grid View --- */
.category-listing__products.is-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--ds-space-4);
}

.category-listing__products.is-grid .product-row {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    border-bottom: none;
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-md);
    overflow: hidden;
    transition: transform 0.2s var(--ds-ease-out), border-color 0.2s var(--ds-ease-out), box-shadow 0.2s var(--ds-ease-out);
}

.category-listing__products.is-grid .product-row:hover {
    transform: translateY(-2px);
    border-color: var(--ds-gray-300);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.category-listing__products.is-grid .product-row__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border: none;
    border-bottom: 1px solid var(--ds-gray-100);
    border-radius: 0;
}

.category-listing__products.is-grid .product-row__image img {
    padding: 12%;
}

.category-listing__products.is-grid .product-row__info {
    padding: var(--ds-space-3);
}

.category-listing__products.is-grid .product-row__title {
    font-size: var(--ds-font-size-xs);
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-listing__products.is-grid .product-row__code {
    font-size: 0.65rem;
}

.category-listing__products.is-grid .product-row__excerpt {
    display: none;
}

/* --- Empty State --- */
.category-listing__empty {
    color: var(--ds-gray-500);
    font-size: var(--ds-font-size-base);
    padding: var(--ds-space-12) 0;
    text-align: center;
}

/* --- Pagination (shared: category listing + search results) --- */
.category-listing .pagination,
.search-results .pagination {
    display: flex;
    justify-content: center;
    gap: var(--ds-space-2);
    margin-top: var(--ds-space-8);
    padding-top: var(--ds-space-5);
    border-top: 1px solid var(--ds-gray-200);
}

.category-listing .pagination .nav-links,
.search-results .pagination .nav-links {
    display: flex;
    gap: var(--ds-space-2);
}

.category-listing .pagination a,
.category-listing .pagination span,
.search-results .pagination a,
.search-results .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--ds-space-3);
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-sm);
    color: var(--ds-gray-500);
    font-size: var(--ds-font-size-sm);
    text-decoration: none;
    transition: all 0.2s var(--ds-ease-out);
}

.category-listing .pagination a:hover,
.search-results .pagination a:hover {
    border-color: var(--ds-accent);
    color: var(--ds-accent);
}

.category-listing .pagination .current,
.search-results .pagination .current {
    background: var(--ds-accent);
    border-color: var(--ds-accent);
    color: var(--ds-white);
}

/* --- Infinite Scroll --- */
.infinite-scroll-sentinel {
    height: 1px;
}

.infinite-scroll-loader {
    display: none;
    justify-content: center;
    padding: var(--ds-space-8) 0;
}

.infinite-scroll-loader.is-loading {
    display: flex;
}

.infinite-scroll-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--ds-gray-200);
    border-top-color: var(--ds-accent);
    border-radius: 50%;
    animation: ds-spin 0.6s linear infinite;
}

@keyframes ds-spin {
    to { transform: rotate(360deg); }
}

.infinite-scroll-end {
    text-align: center;
    padding: var(--ds-space-6) 0;
    color: var(--ds-gray-400);
    font-size: var(--ds-font-size-xs);
}

/* Category Listing - Widescreen (>1600px) */
@media (min-width: 1601px) {
    .category-listing {
        padding-left: var(--ds-space-12);
        padding-right: var(--ds-space-12);
    }

    .category-listing__grid {
        grid-template-columns: 220px 1fr;
        gap: 0 var(--ds-space-8);
    }

    .category-listing__products.is-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* Category Listing - Ultra-wide (>1920px) */
@media (min-width: 1921px) {
    .category-listing {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .category-listing__products.is-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--ds-space-5);
    }
}

/* Category Listing - Responsive: Tablet (<1024px) */
@media (max-width: 1024px) {
    .category-listing {
        padding-top: var(--ds-space-4);
    }

    .category-listing__grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .category-listing__sidebar {
        padding-bottom: var(--ds-space-3);
        margin-bottom: var(--ds-space-3);
        border-bottom: 1px solid var(--ds-gray-200);
    }

    .filter-panel {
        position: static;
    }

    .filter-panel__toggle {
        display: flex;
    }

    /* Collapsed by default on mobile */
    .product-filters {
        display: none;
        padding-top: var(--ds-space-3);
    }

    .product-filters.is-open {
        display: block;
    }

    .category-listing__products.is-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: var(--ds-space-3);
    }
}

/* Category Listing - Responsive: Mobile (<768px) */
@media (max-width: 768px) {
    .category-listing {
        padding: var(--ds-space-3) var(--ds-container-padding) var(--ds-space-8);
    }

    .category-listing__toolbar {
        flex-wrap: wrap;
        gap: var(--ds-space-2);
    }

    .product-row {
        gap: var(--ds-space-3);
        padding: var(--ds-space-3);
    }

    .product-row__image {
        width: 56px;
        height: 56px;
    }

    .product-row__title {
        font-size: var(--ds-font-size-xs);
    }

    .product-row__excerpt {
        display: none;
    }

    .category-listing__products.is-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ds-space-3);
    }

    .category-listing .pagination a,
    .category-listing .pagination span,
    .search-results .pagination a,
    .search-results .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: var(--ds-font-size-xs);
    }
}

/* ============================================
   Page Content (generic pages)
   ============================================ */
.page-content {
    max-width: var(--ds-container-max);
    margin: 0 auto;
    padding: 0 var(--ds-container-padding) var(--ds-space-12);
}

.page-content__title {
    font-size: var(--ds-font-size-2xl);
    font-weight: 700;
    color: var(--ds-text-color);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 var(--ds-space-8);
}

.page-content__body {
    font-size: var(--ds-font-size-base);
    line-height: 1.8;
    color: var(--ds-text-color);
}

.page-content__body p {
    margin: 0 0 var(--ds-space-4);
}

.page-content__body h2 {
    font-size: var(--ds-font-size-2xl);
    margin: var(--ds-space-8) 0 var(--ds-space-4);
}

.page-content__body h3 {
    font-size: var(--ds-font-size-xl);
    margin: var(--ds-space-6) 0 var(--ds-space-3);
}

.page-content__body img {
    border-radius: var(--ds-radius-md);
    margin: var(--ds-space-4) 0;
}

.page-content__body ul,
.page-content__body ol {
    padding-left: var(--ds-space-6);
    margin: 0 0 var(--ds-space-4);
}

.page-content__body li {
    margin-bottom: var(--ds-space-2);
    list-style: disc;
}

.page-content__body ol li {
    list-style: decimal;
}

/* Video gallery */
.video-gallery .wp-block-embed {
    margin: 0 0 var(--ds-space-6);
}

.video-gallery .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-gallery .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ds-space-12);
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form__field {
    margin-bottom: var(--ds-space-5);
}

.contact-form__field label {
    display: block;
    font-size: var(--ds-font-size-sm);
    font-weight: 600;
    color: var(--ds-text-color);
    margin-bottom: var(--ds-space-2);
}

.contact-form__field input,
.contact-form__field textarea {
    width: 100%;
    padding: var(--ds-space-3) var(--ds-space-4);
    border: 1px solid var(--ds-gray-300);
    border-radius: var(--ds-radius-sm);
    font-family: var(--ds-font);
    font-size: var(--ds-font-size-base);
    color: var(--ds-text-color);
    background: var(--ds-white);
    transition: border-color var(--ds-transition);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    border-color: var(--ds-black);
    outline: none;
    box-shadow: var(--ds-focus-ring);
}

.contact-form__field textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--ds-space-3);
    font-size: var(--ds-font-size-sm);
    color: var(--ds-gray-600);
    cursor: pointer;
}

.contact-form__checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--ds-black);
}

.contact-form__checkbox a {
    text-decoration: underline;
}

.contact-form__field--error input,
.contact-form__field--error textarea {
    border-color: #dc2626;
}

.contact-form__field-error {
    display: block;
    font-size: var(--ds-font-size-xs);
    color: #dc2626;
    margin-top: var(--ds-space-1);
}

.contact-form__submit {
    margin-top: var(--ds-space-4);
}

.contact-form__submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.contact-form__message {
    margin-top: var(--ds-space-4);
    padding: var(--ds-space-3) var(--ds-space-4);
    border-radius: var(--ds-radius-sm);
    font-size: var(--ds-font-size-sm);
    display: none;
}

.contact-form__message--success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.contact-form__message--error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Contact info sidebar */
.contact-info__block {
    margin-bottom: var(--ds-space-6);
}

.contact-info__block h3 {
    font-size: var(--ds-font-size-base);
    font-weight: 700;
    color: var(--ds-text-color);
    text-transform: uppercase;
    margin: 0 0 var(--ds-space-3);
}

.contact-info__block p {
    font-size: var(--ds-font-size-sm);
    color: var(--ds-gray-600);
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--ds-space-8);
    }

    .page-content__title {
        font-size: var(--ds-font-size-2xl);
    }
}

/* ============================================
   Search Results
   ============================================ */
div.search-results {
    max-width: var(--ds-container-max);
    margin: 0 auto;
    padding: 0 var(--ds-container-padding) var(--ds-space-12);
}

.search-results__title {
    font-size: var(--ds-font-size-2xl);
    font-weight: 700;
    color: var(--ds-text-color);
    margin: 0 0 var(--ds-space-2);
}

.search-results__query {
    font-style: italic;
}

.search-results__count {
    font-size: var(--ds-font-size-sm);
    color: var(--ds-gray-500);
    margin: 0 0 var(--ds-space-6);
}

.search-results__empty {
    color: var(--ds-gray-500);
    font-size: var(--ds-font-size-base);
    padding: var(--ds-space-12) 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ds-space-4);
}

.search-results__empty p {
    margin: 0;
    max-width: 400px;
}

/* ============================================
   Animations & Scroll Reveal
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Shimmer loading placeholder */
.product-row__placeholder,
.catalog-category-card__placeholder,
.related-products__placeholder {
    background: linear-gradient(90deg, var(--ds-gray-100) 25%, var(--ds-gray-200) 50%, var(--ds-gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

/* Page content entrance */
.main-content > * {
    animation: fadeInUp 0.5s var(--ds-ease-out) both;
}

/* Scroll reveal: elements start invisible, JS adds .is-revealed */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ds-ease-out), transform 0.6s var(--ds-ease-out);
}

.reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for grid children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.18s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.30s; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 0.36s; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 0.42s; }

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ds-space-8);
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(4px);
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    animation: scaleIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: var(--ds-space-4);
    right: var(--ds-space-4);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: var(--ds-radius-full);
    color: var(--ds-text-color);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ds-transition);
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.12);
}

/* Lightbox navigation arrows — minimal */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 0;
    color: var(--ds-gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--ds-transition-fast);
}

.lightbox-nav:hover {
    color: var(--ds-text-color);
}

.lightbox-nav--prev {
    left: var(--ds-space-4);
}

.lightbox-nav--next {
    right: var(--ds-space-4);
}

.lightbox-counter {
    position: absolute;
    bottom: var(--ds-space-4);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 0, 0, 0.45);
    font-size: var(--ds-font-size-sm);
}

/* ============================================
   Utility Classes
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.text-right {
    text-align: right;
}

/* ============================================
   404 Error Page
   ============================================ */
.error-404 {
    text-align: center;
    padding: var(--ds-space-12) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ds-space-4);
}

.error-404__icon {
    color: var(--ds-gray-300);
}

.error-404__title {
    font-size: var(--ds-font-size-3xl);
    font-weight: 700;
    color: var(--ds-text-color);
    margin: 0;
}

.error-404__text {
    font-size: var(--ds-font-size-base);
    color: var(--ds-gray-600);
    max-width: 500px;
    margin: 0;
    line-height: 1.6;
}

.error-404__search {
    width: 100%;
    max-width: 400px;
    margin: var(--ds-space-4) 0;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: var(--ds-space-6);
    right: var(--ds-space-6);
    width: 44px;
    height: 44px;
    background: var(--ds-black);
    color: var(--ds-white);
    border: none;
    border-radius: var(--ds-radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s var(--ds-ease-out), transform 0.3s var(--ds-ease-out), background-color var(--ds-transition);
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    pointer-events: none;
}

.scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--ds-gray-800);
    transform: translateY(-2px) scale(1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ============================================
   Homepage V2 — Airbnb-style horizontal scroll
   Scoped under body.homepage-v2
   ============================================ */

/* --- Container --- */
body.homepage-v2 .homepage-v2-catalogs {
    padding: var(--ds-space-2) var(--ds-container-padding) var(--ds-space-6);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    flex: 1;
}

/* --- Catalog Row (each catalog section) --- */
body.homepage-v2 .catalog-row {
    padding-bottom: var(--ds-space-3);
    border-bottom: 1px solid var(--ds-gray-200);
    position: relative;
}
body.homepage-v2 .catalog-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

body.homepage-v2 .catalog-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Row Header: title left, arrows right */
body.homepage-v2 .catalog-row__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--ds-space-2);
    padding: 0 var(--ds-space-1);
}

body.homepage-v2 .catalog-row__title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
    position: relative;
    padding-left: var(--ds-space-3);
}

body.homepage-v2 .catalog-row__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--ds-accent);
}

body.homepage-v2 .catalog-row__title a {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-2);
    color: var(--ds-black);
    text-decoration: none;
    transition: color var(--ds-transition);
}

body.homepage-v2 .catalog-row__title a svg {
    opacity: 0.4;
    transition: opacity 0.2s var(--ds-ease-out), transform 0.2s var(--ds-ease-out);
}

body.homepage-v2 .catalog-row__title a:hover svg {
    opacity: 1;
    transform: translateX(3px);
}

body.homepage-v2 .catalog-row__title a:focus-visible {
    outline: 2px solid var(--ds-black);
    outline-offset: 4px;
    border-radius: var(--ds-radius-xs);
}

/* Navigation Arrows */
body.homepage-v2 .catalog-row__nav {
    display: flex;
    gap: var(--ds-space-2);
}

body.homepage-v2 .catalog-row__arrow {
    width: 28px;
    height: 28px;
    border-radius: var(--ds-radius-full);
    border: 1px solid var(--ds-gray-400);
    background: var(--ds-white);
    color: var(--ds-gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--ds-transition), background-color var(--ds-transition), color var(--ds-transition), box-shadow var(--ds-transition), opacity var(--ds-transition), transform var(--ds-transition-fast);
}

body.homepage-v2 .catalog-row__arrow:hover:not(:disabled) {
    border-color: var(--ds-accent);
    background: var(--ds-accent);
    color: var(--ds-white);
    box-shadow: 0 2px 8px rgba(233, 117, 32, 0.2);
}

body.homepage-v2 .catalog-row__arrow:active:not(:disabled) {
    transform: scale(0.92);
    background: var(--ds-accent-hover);
}

body.homepage-v2 .catalog-row__arrow:focus-visible {
    outline-color: var(--ds-accent);
    box-shadow: 0 0 0 3px var(--ds-accent-ring);
}

body.homepage-v2 .catalog-row__arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* --- Horizontal Scroll Track --- */
body.homepage-v2 .catalog-row__track {
    display: flex;
    gap: var(--ds-space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 2px;
    margin: -8px -2px;
}

body.homepage-v2 .catalog-row__track::-webkit-scrollbar {
    display: none;
}

/* --- Category Card --- */
body.homepage-v2 .catalog-card {
    flex: 0 0 140px;
    scroll-snap-align: start;
    text-decoration: none;
    color: var(--ds-black);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s var(--ds-ease-out);
}

body.homepage-v2 .catalog-card:hover {
    transform: translateY(-3px);
}

body.homepage-v2 .catalog-card:focus-visible {
    outline-color: var(--ds-accent);
    outline-offset: 4px;
    border-radius: var(--ds-radius-md);
    box-shadow: 0 0 0 3px var(--ds-accent-ring);
}

/* Card Image */
body.homepage-v2 .catalog-card__image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--ds-white);
    border-radius: var(--ds-radius-md);
    border: 1px solid var(--ds-gray-200);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--ds-space-2);
    transition: border-color 0.2s var(--ds-ease-out), box-shadow 0.2s var(--ds-ease-out);
}

body.homepage-v2 .catalog-card:hover .catalog-card__image {
    border-color: var(--ds-gray-300);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

body.homepage-v2 .catalog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    padding: 10%;
    filter: grayscale(100%);
    transition: transform 0.3s var(--ds-ease-out), filter 0.4s var(--ds-ease-out);
}

body.homepage-v2 .catalog-card:hover .catalog-card__image img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

/* Card Placeholder (no image) */
body.homepage-v2 .catalog-card__placeholder {
    color: var(--ds-gray-300);
}

/* Card Info */
body.homepage-v2 .catalog-card__info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0 2px;
}

body.homepage-v2 .catalog-card__name {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ds-gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s var(--ds-ease-out);
}

body.homepage-v2 .catalog-card:hover .catalog-card__name {
    color: var(--ds-black);
}

body.homepage-v2 .catalog-card__count {
    font-size: 0.7rem;
    color: var(--ds-gray-500);
    font-weight: 400;
}

/* --- Staggered entrance animation --- */
body.homepage-v2 .catalog-row {
    opacity: 0;
    transform: translateY(16px);
    animation: catalogRowReveal 0.5s var(--ds-ease-out) forwards;
}
body.homepage-v2 .catalog-row:nth-child(1) { animation-delay: 0s; }
body.homepage-v2 .catalog-row:nth-child(2) { animation-delay: 0.12s; }
body.homepage-v2 .catalog-row:nth-child(3) { animation-delay: 0.24s; }

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

body.homepage-v2 .catalog-card {
    opacity: 0;
    animation: cardReveal 0.4s var(--ds-ease-out) forwards;
    animation-delay: calc(0.08s * var(--card-index, 0));
}

@keyframes cardReveal {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* --- Focus ring globale con accento brand --- */
body.homepage-v2 *:focus-visible {
    outline-color: var(--ds-accent);
    box-shadow: 0 0 0 3px var(--ds-accent-ring);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    body.homepage-v2 .catalog-card {
        transition: none;
        opacity: 1;
        transform: none;
        animation: none;
    }
    body.homepage-v2 .catalog-card:hover {
        transform: none;
    }
    body.homepage-v2 .catalog-row {
        opacity: 1;
        transform: none;
        animation: none;
    }
    body.homepage-v2 .catalog-row__track {
        scroll-behavior: auto;
    }
    body.homepage-v2 .catalog-row__title a svg {
        transition: none;
    }
}

/* --- Responsive: Tablet (<=1024px) --- */
@media (max-width: 1024px) {
    body.homepage-v2 .homepage-v2-catalogs {
        padding-left: var(--ds-space-4);
        padding-right: var(--ds-space-4);
    }

    body.homepage-v2 .catalog-row__title a svg {
        opacity: 1;
        transform: translateX(0);
    }

    /* Hide arrows on touch devices — swipe is natural */
    body.homepage-v2 .catalog-row__nav {
        display: none;
    }

    body.homepage-v2 .catalog-card {
        flex: 0 0 130px;
    }
}

/* --- Responsive: Mobile (<=768px) --- */
@media (max-width: 768px) {
    body.homepage-v2 .homepage-v2-catalogs {
        padding-top: var(--ds-space-3);
    }

    body.homepage-v2 .catalog-row {
        padding-bottom: var(--ds-space-3);
        margin-bottom: var(--ds-space-3);
    }

    body.homepage-v2 .catalog-card {
        flex: 0 0 120px;
    }

    body.homepage-v2 .catalog-card__image {
        border-radius: var(--ds-radius-md);
    }

    body.homepage-v2 .catalog-card__name {
        font-size: 0.75rem;
    }
}

/* --- Desktop Large (>1400px) --- */
@media (min-width: 1400px) {
    body.homepage-v2 .catalog-card {
        flex: 0 0 160px;
    }
}

/* Print Styles */
@media print {
    .topbar,
    .header-search,
    .header-actions,
    .breadcrumb-bar,
    .site-footer,
    .btn-print,
    .btn-cta,
    .catalog-selector,
    .product-detail__thumbnails,
    .product-variants,
    .related-products,
    .mobile-menu,
    .search-fullscreen,
    .btn-mobile-search,
    .btn-mobile-menu,
    .btn-menu,
    .lang-switch,
    .products-dropdown,
    .skip-link,
    .scroll-top {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12px;
    }

    .site-header {
        border-bottom: 2px solid black;
        height: auto;
        padding: 10px 0;
    }

    .site-logo img {
        height: 40px;
    }

    .main-content {
        min-height: auto;
    }

    /* Product detail print layout */
    .product-detail {
        padding: 0;
    }

    .product-detail__grid {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }

    .product-detail__gallery {
        position: static;
    }

    .product-detail__image-main {
        border: 1px solid #ccc;
        aspect-ratio: auto;
        padding: 10px;
    }

    .product-detail__title {
        font-size: 18px;
    }

    .product-detail__card {
        margin-top: 8px;
        padding: 8px;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .product-detail__card h3 {
        font-size: 11px;
        margin-bottom: 4px;
        padding-bottom: 4px;
    }

    .product-detail__sku {
        font-size: 11px;
        margin-top: 4px;
    }

    .product-detail__category-tag {
        font-size: 9px;
    }

    /* Tables print */
    .ds-table {
        font-size: 10px;
    }

    .ds-table thead th,
    .ds-table tbody td {
        padding: 4px 8px;
    }

    .ds-table-wrapper {
        overflow: visible;
    }

    /* Download list print */
    .download-list li a {
        border: none;
        padding: 2px 0;
        font-size: 10px;
    }

    .download-list li a svg {
        width: 14px;
        height: 14px;
    }

    /* Avoid page breaks inside sections */
    .product-detail__description,
    .ds-table {
        break-inside: avoid;
    }

    /* Links: show URL in print */
    .download-list li a::after {
        content: " (" attr(href) ")";
        font-size: 8px;
        color: #666;
        word-break: break-all;
    }
}

/* ============================================
   Immersive Hero Mode
   Header transparent, breadcrumb overlaid, seamless flow
   ============================================ */
.immersive-hero .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    z-index: 100;
    transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

/* NEVER hide header on immersive pages — always visible for seamless UX */
.immersive-hero .site-header.is-hidden {
    transform: none;
}

.immersive-hero .site-header.is-scrolled {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.immersive-hero .site-header .logo-img {
    filter: brightness(0) invert(1);
}

.immersive-hero .site-header.is-scrolled .logo-img {
    filter: brightness(0) invert(1);
}

/* Search form — dark treatment for immersive header */
.immersive-hero .site-header .search-form {
    border-left-color: rgba(255,255,255,0.1);
    border-right-color: rgba(255,255,255,0.1);
}

.immersive-hero .site-header .search-form:focus-within {
    background: rgba(255,255,255,0.08);
    border-left-color: var(--ds-accent);
    border-right-color: var(--ds-accent);
}

.immersive-hero .site-header .search-form::before {
    background: rgba(255,255,255,0.3);
}

.immersive-hero .site-header .search-form input {
    background: transparent;
    border-color: transparent;
    color: var(--ds-white);
}

.immersive-hero .site-header .search-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.immersive-hero .site-header .search-form button {
    color: rgba(255,255,255,0.5);
}

.immersive-hero .site-header .search-form button:hover {
    color: var(--ds-accent);
}

.immersive-hero .site-header .btn-menu {
    color: var(--ds-white);
}

.immersive-hero .breadcrumb-bar {
    position: fixed;
    top: var(--ds-header-height);
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: none;
    z-index: 99;
    transition: background 0.3s ease;
}

.immersive-hero .site-header.is-scrolled ~ .breadcrumb-bar {
    background: rgba(30, 30, 30, 0.9);
}

/* Breadcrumb also stays visible (header never hides on immersive) */
.immersive-hero .breadcrumb-bar {
    transition: background 0.4s ease;
}

.immersive-hero .site-header.is-scrolled ~ .breadcrumb-bar {
    background: rgba(30, 30, 30, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.immersive-hero .breadcrumb-bar .breadcrumbs,
.immersive-hero .breadcrumb-bar .breadcrumbs a,
.immersive-hero .breadcrumb-bar .breadcrumbs .current {
    color: rgba(255,255,255,0.4);
}

.immersive-hero .breadcrumb-bar .breadcrumbs a:hover {
    color: var(--ds-accent);
}

.immersive-hero .breadcrumb-bar .breadcrumb-separator {
    color: rgba(255,255,255,0.2);
}

/* ============================================
   Page Hero Section — Immersive
   ============================================ */
.page-hero {
    background: #1E1E1E;
    color: var(--ds-white);
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
    margin-top: calc(-1 * var(--ds-space-1));
    position: relative;
    overflow: hidden;
}

/* When immersive: hero starts from viewport top, behind header */
.immersive-hero .page-hero {
    margin-top: 0;
    padding-top: calc(var(--ds-header-height) + 50px + clamp(3rem, 6vw, 5rem));
}

/* Contact split: also immersive */
.immersive-hero .contact-split {
    margin-top: 0;
}

.immersive-hero .contact-split__info {
    padding-top: calc(var(--ds-header-height) + 50px + 2rem);
}

/* Seamless footer connection */
.immersive-hero .main-content {
    padding-bottom: 0;
}

.immersive-hero .page-content--hero .page-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Ghost word — hairline engineering outline */
.page-hero::before {
    content: attr(data-ghost);
    position: absolute;
    bottom: -0.05em;
    right: 2%;
    font-family: 'Barlow', sans-serif;
    font-size: clamp(5rem, 16vw, 14rem);
    font-weight: 200;
    letter-spacing: 0.02em;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.035);
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}

/* ============================================
   Hero Geometric — Goniometric / Engineering
   ============================================ */
.hero-geo {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: heroGeoFadeIn 1s ease 0.4s forwards;
}

@keyframes heroGeoFadeIn {
    to { opacity: 1; }
}

/* Arc + line draw-in */
.hero-geo__line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: heroArcDraw 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.hero-geo__line:nth-child(1) { animation-delay: 0.5s; }
.hero-geo__line:nth-child(2) { animation-delay: 0.8s; }
.hero-geo__line:nth-child(3) { animation-delay: 1.1s; }
.hero-geo__line:nth-child(4) { animation-delay: 1.4s; }

@keyframes heroArcDraw {
    to { stroke-dashoffset: 0; }
}

/* ============================================
   Card Geometric Icons (animated draw-in)
   ============================================ */
.page-card__geo-icon {
    width: 32px;
    height: 32px;
    margin-bottom: var(--ds-space-3);
    color: var(--ds-accent);
    opacity: 0;
    transition: opacity 0.6s ease;
}

[data-reveal-stagger].is-revealed .page-card__geo-icon {
    opacity: 1;
}

.page-card__geo-icon .geo-stroke {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal-stagger].is-revealed .page-card__geo-icon .geo-stroke {
    stroke-dashoffset: 0;
}

/* Stagger the icon draw-in per card */
[data-reveal-stagger].is-revealed > :nth-child(1) .geo-stroke { transition-delay: 0.2s; }
[data-reveal-stagger].is-revealed > :nth-child(2) .geo-stroke { transition-delay: 0.35s; }
[data-reveal-stagger].is-revealed > :nth-child(3) .geo-stroke { transition-delay: 0.5s; }

/* Stats — clean, no effects */

.page-hero .container {
    max-width: var(--ds-container-max);
    margin: 0 auto;
    padding: 0 var(--ds-container-padding);
    position: relative;
    z-index: 1;
}

.page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ds-gray-500);
    margin-bottom: var(--ds-space-3);
    opacity: 0;
    transform: translateY(20px);
    animation: pageHeroFadeUp 0.6s var(--ds-ease-out) 0.05s forwards;
}

.page-hero__eyebrow::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: var(--ds-accent);
    flex-shrink: 0;
}

.page-hero__title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-transform: uppercase;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: pageHeroFadeUp 0.6s var(--ds-ease-out) 0.1s forwards;
}

.page-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--ds-gray-400);
    font-weight: 400;
    margin: var(--ds-space-4) 0 0;
    line-height: 1.5;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: pageHeroFadeUp 0.6s var(--ds-ease-out) 0.25s forwards;
}

@keyframes pageHeroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Page Sections
   ============================================ */
.page-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.page-section .container {
    max-width: var(--ds-container-max);
    margin: 0 auto;
    padding: 0 var(--ds-container-padding);
}

.page-section--alt {
    background: var(--ds-gray-100);
}

.page-section--dark {
    background: #1E1E1E;
    color: var(--ds-white);
}

.page-section--dark .container,
.page-section .container {
    position: relative;
    z-index: 1;
}

.page-section__label {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ds-accent);
    margin: 0 0 var(--ds-space-3);
}

.page-section__title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin: 0 0 var(--ds-space-4);
    position: relative;
    padding-left: 1rem;
}

.page-section__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 3px;
    height: 14px;
    background: var(--ds-accent);
}

.page-section__intro {
    font-size: var(--ds-font-size-lg);
    line-height: 1.7;
    color: var(--ds-gray-600);
    max-width: 720px;
    margin: 0 0 var(--ds-space-8);
}

.page-section--dark .page-section__intro {
    color: var(--ds-gray-400);
}

/* ============================================
   Page Content — full-width passthrough
   ============================================ */
.page-content.page-content--hero {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.page-content--hero .page-article {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.page-content--hero .page-content__body {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* ============================================
   Stats Row — Oversized Brutalist
   ============================================ */
.page-stats {
    display: flex;
    justify-content: space-between;
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.page-stat {
    text-align: center;
    flex: 1;
    padding: 0 var(--ds-space-4);
    border-right: 1px solid rgba(255,255,255,0.08);
}

.page-stat:last-child {
    border-right: none;
}

.page-stat__number {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--ds-accent);
}

.page-stat__label {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    color: var(--ds-gray-500);
    margin-top: var(--ds-space-2);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
}

/* ============================================
   Card Grid
   ============================================ */
.page-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--ds-space-6);
}

.page-card-grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.page-card {
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-100);
    border-left: 2px solid transparent;
    border-radius: var(--ds-radius-md);
    padding: var(--ds-space-6);
    transition: border-color var(--ds-transition), box-shadow var(--ds-transition);
    position: relative;
}

.page-card:hover {
    border-left-color: var(--ds-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.page-card__icon {
    display: none;
}

.page-section--dark .page-card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
    border-left-color: transparent;
}

.page-section--dark .page-card:hover {
    border-left-color: var(--ds-accent);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.page-card__title {
    font-size: var(--ds-font-size-base);
    font-weight: 600;
    margin: 0 0 var(--ds-space-2);
    color: var(--ds-text-color);
}

.page-section--dark .page-card__title {
    color: var(--ds-white);
}

.page-card__text {
    font-size: var(--ds-font-size-sm);
    color: var(--ds-gray-500);
    line-height: 1.6;
    margin: 0;
}

.page-section--dark .page-card__text {
    color: var(--ds-gray-400);
}

/* ============================================
   Download Rows — Industrial List Style
   ============================================ */
.download-list {
    display: flex;
    flex-direction: column;
}

.download-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 1rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-left: 2px solid transparent;
    gap: var(--ds-space-4);
    transition: border-left-color var(--ds-transition), background var(--ds-transition);
}

.page-section--dark .download-row {
    border-bottom-color: rgba(255,255,255,0.06);
}

.download-row:last-child {
    border-bottom: none;
}

.download-row:hover {
    border-left-color: var(--ds-accent);
    background: rgba(255,255,255,0.02);
}

.download-row__info {
    display: flex;
    align-items: center;
    gap: var(--ds-space-4);
    min-width: 0;
}

.download-row__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: #dc2626;
    font-size: 1.25rem;
}

.download-row__icon svg {
    width: 24px;
    height: 24px;
}

.download-row__name {
    font-size: var(--ds-font-size-base);
    font-weight: 700;
    color: var(--ds-text-color);
    margin: 0;
}

.page-section--dark .download-row__name {
    color: var(--ds-white);
}

.download-row__desc {
    font-size: var(--ds-font-size-sm);
    color: var(--ds-gray-500);
    margin: 0.25rem 0 0;
}

.page-section--dark .download-row__desc {
    color: var(--ds-gray-400);
}

.download-row__actions {
    display: flex;
    align-items: center;
    gap: var(--ds-space-3);
    flex-shrink: 0;
}

.download-row__badge {
    display: inline-block;
    font-size: var(--ds-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ds-gray-400);
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-sm);
}

.page-section--dark .download-row__badge {
    border-color: rgba(255,255,255,0.15);
    color: var(--ds-gray-400);
}

.download-row__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-2);
    padding: var(--ds-space-2) var(--ds-space-5);
    background: var(--ds-black);
    color: var(--ds-white);
    font-size: var(--ds-font-size-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: var(--ds-radius-sm);
    cursor: pointer;
    transition: background var(--ds-transition);
}

.download-row__btn:hover {
    background: var(--ds-accent);
    color: var(--ds-white);
}

/* Legacy download-card support (backwards compat) */
.download-card {
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-md);
    padding: var(--ds-space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--ds-space-4);
}

.download-card__icon { font-size: 1.5rem; color: #dc2626; }
.download-card__title { font-size: var(--ds-font-size-base); font-weight: 700; margin: 0; }
.download-card__subtitle { font-size: var(--ds-font-size-sm); color: var(--ds-gray-500); margin: 0; }
.download-card__btn {
    display: inline-flex;
    padding: var(--ds-space-2) var(--ds-space-5);
    background: var(--ds-black);
    color: var(--ds-white);
    font-size: var(--ds-font-size-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--ds-radius-sm);
    cursor: pointer;
    transition: background var(--ds-transition);
}
.download-card__btn:hover { background: var(--ds-accent); }

/* ============================================
   Timeline — Brutalist
   ============================================ */
.page-timeline {
    position: relative;
    padding-left: 3rem;
    margin: var(--ds-space-8) 0;
}

.page-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--ds-gray-200);
}

.page-section--dark .page-timeline::before {
    background: var(--ds-gray-700);
}

.page-timeline__item {
    position: relative;
    padding-bottom: var(--ds-space-8);
}

.page-timeline__item:last-child {
    padding-bottom: 0;
}

.page-timeline__item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ds-accent);
    border: 3px solid var(--ds-bg);
    z-index: 1;
}

.page-section--dark .page-timeline__item::before {
    border-color: #1E1E1E;
}

.page-timeline__year {
    font-size: var(--ds-font-size-lg);
    font-weight: 700;
    color: var(--ds-accent);
    margin: 0 0 var(--ds-space-1);
    font-family: 'SF Mono', 'Menlo', monospace;
    letter-spacing: -0.02em;
}

.page-timeline__title {
    font-size: var(--ds-font-size-base);
    font-weight: 600;
    margin: 0 0 var(--ds-space-1);
}

.page-timeline__text {
    font-size: var(--ds-font-size-sm);
    color: var(--ds-gray-500);
    line-height: 1.6;
    margin: 0;
}

.page-section--dark .page-timeline__text {
    color: var(--ds-gray-400);
}

/* ============================================
   Contact Split Layout — Brutalist
   ============================================ */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    margin-top: calc(-1 * var(--ds-space-1));
}

.contact-split__info {
    background: #1E1E1E;
    color: var(--ds-white);
    padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-split__info-inner {
    max-width: 500px;
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.contact-split__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ds-gray-500);
    margin-bottom: var(--ds-space-3);
}

.contact-split__eyebrow::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: var(--ds-accent);
    flex-shrink: 0;
}

.contact-split__title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-transform: uppercase;
    margin: 0 0 var(--ds-space-6);
}

.contact-split__form {
    background: var(--ds-bg);
    padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-split__form-inner {
    max-width: 500px;
}

.contact-split__form-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    letter-spacing: -0.01em;
}

.contact-info-card {
    display: flex;
    gap: var(--ds-space-4);
    padding: var(--ds-space-5) 0;
}

.contact-info-card + .contact-info-card {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-info-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
    border-radius: var(--ds-radius-sm);
    color: var(--ds-accent);
}

.contact-info-card__icon svg {
    width: 22px;
    height: 22px;
}

.contact-info-card__content h3 {
    font-size: var(--ds-font-size-sm);
    font-weight: 700;
    color: var(--ds-white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 var(--ds-space-1);
}

.contact-info-card__content p {
    font-size: var(--ds-font-size-sm);
    color: var(--ds-gray-400);
    line-height: 1.7;
    margin: 0;
}

.contact-info-card__content a {
    color: var(--ds-accent);
    text-decoration: none;
    transition: color var(--ds-transition);
}

.contact-info-card__content a:hover {
    color: var(--ds-accent-hover);
    text-decoration: underline;
}

/* Brutalista form inputs — border-bottom only */
.contact-split__form .contact-form__field input,
.contact-split__form .contact-form__field textarea {
    border: none;
    border-bottom: 2px solid var(--ds-gray-300);
    border-radius: 0;
    padding: var(--ds-space-3) 0;
    background: transparent;
}

.contact-split__form .contact-form__field input:focus,
.contact-split__form .contact-form__field textarea:focus {
    border-bottom-color: var(--ds-black);
    box-shadow: none;
}

/* ============================================
   Video List — Dark Single Column
   ============================================ */
.video-section {
    background: #1E1E1E;
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.video-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--ds-container-padding);
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-8);
}

.video-list .wp-block-embed {
    margin: 0;
}

.video-list .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--ds-radius-md);
}

.video-list .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Legacy video-grid support */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: var(--ds-space-6);
    max-width: var(--ds-container-max);
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem) var(--ds-container-padding) var(--ds-space-12);
}

.video-grid .wp-block-embed { margin: 0; }
.video-grid .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--ds-radius-md);
}
.video-grid .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* ============================================
   Scroll Reveal (data-reveal)
   ============================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ds-ease-out), transform 0.6s var(--ds-ease-out);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
[data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ds-ease-out), transform 0.5s var(--ds-ease-out);
}

[data-reveal-stagger].is-revealed > * {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-stagger].is-revealed > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].is-revealed > *:nth-child(2) { transition-delay: 0.1s; }
[data-reveal-stagger].is-revealed > *:nth-child(3) { transition-delay: 0.15s; }
[data-reveal-stagger].is-revealed > *:nth-child(4) { transition-delay: 0.2s; }
[data-reveal-stagger].is-revealed > *:nth-child(5) { transition-delay: 0.25s; }
[data-reveal-stagger].is-revealed > *:nth-child(6) { transition-delay: 0.3s; }
[data-reveal-stagger].is-revealed > *:nth-child(7) { transition-delay: 0.35s; }
[data-reveal-stagger].is-revealed > *:nth-child(8) { transition-delay: 0.4s; }
[data-reveal-stagger].is-revealed > *:nth-child(9) { transition-delay: 0.45s; }

/* CTA note block */
.page-note {
    text-align: center;
    padding: var(--ds-space-6);
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-200);
    border-left: 2px solid var(--ds-accent);
    border-radius: var(--ds-radius-md);
}

.page-note__title {
    font-size: var(--ds-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ds-accent);
    margin: 0 0 var(--ds-space-2);
}

.page-note p {
    margin: 0;
    font-size: var(--ds-font-size-sm);
    color: var(--ds-gray-600);
    line-height: 1.6;
}

.page-note a {
    color: var(--ds-accent);
    font-weight: 600;
    text-decoration: none;
}

.page-note a:hover {
    text-decoration: underline;
}

/* ============================================
   OFFICINA TECNICA — Industrial Craft Textures
   Grain, blueprint grid, corner marks, dimension lines
   ============================================ */

/* --- Brushed Metal Grain on Dark Surfaces --- */
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
}

.page-section--dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
}

.page-section--dark {
    position: relative;
}

.contact-split__info::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
}

.contact-split__info {
    position: relative;
}

/* --- Blueprint Dot Grid on Light Sections --- */
.page-section:not(.page-section--dark):not(.page-section--alt) {
    background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

.page-section--alt {
    background-image: radial-gradient(circle, rgba(0,0,0,0.035) 1px, transparent 1px);
    background-size: 24px 24px;
    background-color: var(--ds-gray-100);
}

/* --- Technical Corner Registration Marks on Cards --- */
.page-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 1.5px solid var(--ds-accent);
    border-left: 1.5px solid var(--ds-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.page-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 1.5px solid var(--ds-accent);
    border-right: 1.5px solid var(--ds-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.page-card:hover::before,
.page-card:hover::after {
    opacity: 1;
}

/* Dark cards: corner marks visible at lower opacity always */
.page-section--dark .page-card::before,
.page-section--dark .page-card::after {
    opacity: 0.3;
}

.page-section--dark .page-card:hover::before,
.page-section--dark .page-card:hover::after {
    opacity: 1;
}

/* --- Dimension Line Section Dividers --- */
.page-section + .page-section::before {
    content: '';
    display: block;
    position: relative;
    width: 100%;
    height: 0;
    border-top: 1px solid var(--ds-gray-200);
    margin-top: -1px;
}

.page-section--dark + .page-section::before,
.page-section + .page-section--dark::before {
    border-top-color: transparent;
}

/* --- Monospace Tabular Figures for Technical Numbers --- */
.page-stat__number {
    font-variant-numeric: tabular-nums;
}

.page-timeline__year {
    font-family: 'Barlow', sans-serif;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    letter-spacing: 0.06em;
}

/* --- Industrial Card Counter (CSS auto-numbering) --- */
.page-card-grid {
    counter-reset: card-counter;
}

.page-card {
    counter-increment: card-counter;
}

.page-card__title::before {
    content: counter(card-counter, decimal-leading-zero) ' ';
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    font-size: 0.8em;
    color: var(--ds-accent);
    opacity: 0.6;
    letter-spacing: 0.05em;
    margin-right: 0.25em;
}

/* --- Download Row: Technical Index Number --- */
.download-list {
    counter-reset: dl-counter;
}

.download-row {
    counter-increment: dl-counter;
}

.download-row__info::before {
    content: counter(dl-counter, decimal-leading-zero);
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 300;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.1em;
    flex-shrink: 0;
    width: 24px;
}

/* Light section download counters */
.page-section:not(.page-section--dark) .download-row__info::before {
    color: var(--ds-gray-300);
}

/* --- Download Row Hover: Industrial Slide --- */
.download-row {
    position: relative;
}

.download-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(233, 117, 32, 0.04);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 0;
}

.download-row:hover::before {
    width: 100%;
}

/* --- Section Label: Industrial Stamp Feel --- */
.page-section__label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.page-section__label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--ds-accent);
    flex-shrink: 0;
}

.page-section__label::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--ds-accent);
    opacity: 0.4;
    flex-shrink: 0;
}

/* --- Stats: Technical Drawing Measurement Feel --- */
.page-stat {
    position: relative;
}

.page-stat::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 1px;
    background: var(--ds-accent);
    opacity: 0.25;
}

.page-stat:last-child::after {
    display: none;
}

/* --- Timeline: Precision Engineering Marks --- */
.page-timeline__item {
    position: relative;
}

/* Small tick marks on timeline line */
.page-timeline__item::after {
    content: '';
    position: absolute;
    left: calc(-3rem + 3px);
    top: 14px;
    width: 14px;
    height: 1px;
    background: var(--ds-gray-300);
    z-index: 0;
}

.page-section--dark .page-timeline__item::after {
    background: var(--ds-gray-700);
}

/* --- Contact Info Cards: Industrial Accent on Hover --- */
.contact-info-card {
    position: relative;
    transition: transform 0.2s ease;
}

.contact-info-card:hover {
    transform: translateX(4px);
}

.contact-info-card__icon {
    transition: background 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

.contact-info-card:hover .contact-info-card__icon {
    background: rgba(233, 117, 32, 0.12);
    border-color: rgba(233, 117, 32, 0.2);
}

/* --- Contact Form: Artisanal Field Labels --- */
.contact-split__form .contact-form__field label {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ds-gray-500);
}

.contact-split__form-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* --- Page Note: Industrial Badge --- */
.page-note {
    position: relative;
    text-align: left;
}

.page-note::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1.5px solid var(--ds-accent);
    border-left: 1.5px solid var(--ds-accent);
}

.page-note::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1.5px solid var(--ds-accent);
    border-right: 1.5px solid var(--ds-accent);
}

/* --- Hero Crosshair Mark — Technical Precision --- */
.page-hero .container::after {
    content: '+';
    position: absolute;
    bottom: 0;
    right: var(--ds-container-padding);
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 200;
    color: rgba(255,255,255,0.08);
    letter-spacing: 0;
    line-height: 1;
}

/* --- Video Section: Industrial Dark Grain --- */
.video-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
}

.video-section {
    position: relative;
}

.video-list {
    position: relative;
    z-index: 1;
}

/* ============================================
   Responsive — Page Hero + Sections
   ============================================ */
@media (max-width: 768px) {
    .page-hero {
        padding: 3rem 0 2.5rem;
    }

    .immersive-hero .page-hero {
        padding-top: calc(var(--ds-header-height) + 40px + 2.5rem);
    }

    .immersive-hero .contact-split__info {
        padding-top: calc(var(--ds-header-height) + 40px + 1.5rem);
    }

    .page-hero__title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .page-hero::before {
        font-size: clamp(3rem, 20vw, 6rem);
    }

    .hero-geo {
        width: 100%;
        opacity: 0.7;
    }

    .section-geo {
        display: none;
    }

    .page-stats {
        flex-wrap: wrap;
        gap: var(--ds-space-3);
    }

    .page-stat {
        flex: 1 1 45%;
        border-right: none;
        padding: var(--ds-space-2) 0;
    }

    .page-stat__number {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .page-card-grid {
        grid-template-columns: 1fr;
    }

    .page-card-grid--3 {
        grid-template-columns: 1fr;
    }

    .contact-split {
        grid-template-columns: 1fr;
    }

    .contact-split__info-inner,
    .contact-split__form-inner {
        max-width: none;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }

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

    .page-timeline {
        padding-left: 2rem;
    }

    .page-timeline__item::before {
        left: -2rem;
        width: 14px;
        height: 14px;
    }

    .download-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--ds-space-3);
    }

    .download-row__actions {
        align-self: flex-end;
    }

    /* Industrial elements: simplify on mobile */
    .page-card::before,
    .page-card::after {
        display: none;
    }

    .page-section:not(.page-section--dark):not(.page-section--alt) {
        background-image: none;
    }

    .page-section--alt {
        background-image: none;
    }

    .page-section__label::before,
    .page-section__label::after {
        width: 12px;
    }

    .page-timeline__item::after {
        left: calc(-2rem + 2px);
        width: 10px;
    }

    .page-hero .container::after {
        display: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .page-hero__title,
    .page-hero__subtitle,
    .page-hero__eyebrow {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hero-geo {
        opacity: 1;
        animation: none;
    }

    .hero-geo__line {
        stroke-dashoffset: 0;
        animation: none;
    }

    .page-card__geo-icon {
        opacity: 1;
    }

    .page-card__geo-icon .geo-stroke {
        stroke-dashoffset: 0;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    [data-reveal-stagger] > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
