/* Intertec Child Theme — laboratornepristroje.sk — B2B Lab Equipment */

/* --- 1. CSS Variables / Design Tokens --- */
:root {
    --bs-primary: #1a365d;
    --bs-primary-rgb: 26, 54, 93;
    --bs-link-color: #1a365d;
    --bs-link-hover-color: #142a4d;

    --it-primary: #1a365d;
    --it-primary-hover: #142a4d;
    --it-primary-light: #e8edf4;
    --it-primary-rgb: 26, 54, 93;
    --it-secondary: #0f1b2d;
    --it-secondary-light: #1e3a5f;
    --it-accent: #d4a853;
    --it-accent-hover: #c19840;
    --it-accent-light: #faf3e0;
    --it-white: #ffffff;
    --it-gray-50: #f8f9fa;
    --it-gray-100: #f1f3f5;
    --it-gray-200: #e9ecef;
    --it-gray-300: #dee2e6;
    --it-gray-400: #ced4da;
    --it-gray-500: #adb5bd;
    --it-gray-600: #6c757d;
    --it-gray-700: #495057;
    --it-gray-800: #343a40;
    --it-gray-900: #212529;
    --it-black: #111318;
    --it-success: #2e7d32;
    --it-success-light: #e8f5e9;
    --it-warning: #e65100;
    --it-warning-light: #fff3e0;
    --it-danger: #c62828;
    --it-danger-light: #ffebee;
    --it-info: #0277bd;
    --it-info-light: #e1f5fe;

    --it-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --it-text-xs: 0.75rem;
    --it-text-sm: 0.8125rem;
    --it-text-base: 0.9375rem;
    --it-text-lg: 1.125rem;
    --it-text-xl: 1.375rem;
    --it-text-2xl: 1.75rem;
    --it-text-3xl: 2.25rem;

    --it-radius-sm: 6px;
    --it-radius-md: 10px;
    --it-radius-lg: 14px;
    --it-radius-full: 9999px;

    --it-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --it-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --it-shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --it-shadow-hover: 0 8px 25px rgba(26,54,93,0.12);

    --it-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --it-container-max: 1320px;
    --it-header-height: 72px;
}

/* --- 2. Base / Reset --- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    font-family: var(--it-font-primary);
    font-size: var(--it-text-base);
    line-height: 1.6;
    color: var(--it-gray-900);
    background: var(--it-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: var(--it-primary); text-decoration: none; transition: color var(--it-transition); }
a:hover { color: var(--it-primary-hover); }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--it-font-primary);
    font-weight: 700;
    line-height: 1.25;
    color: var(--it-gray-900);
    margin-top: 0;
}

::selection { background: var(--it-primary); color: var(--it-white); }

/* Override hummingbird body padding */
#wrapper { padding-top: 0; }
#content-wrapper { padding: 0; }

/* ═══════════════════════════════════════════════════════════
   3. TOP BAR — slim info strip
   ═══════════════════════════════════════════════════════════ */
.it-topbar,
.header-top,
nav.header-top {
    background: var(--it-primary) !important;
    color: #ffffff !important;
    font-size: 0.6875rem;
    padding: 0.25rem 0;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

/* Force the desktop flex row to space-between */
.it-topbar .container-md,
.it-topbar .container,
.header-top .container {
    max-width: var(--it-container-max);
    margin: 0 auto;
    padding: 0 1rem;
}
.header-top-desktop.d-none.d-md-flex,
.it-topbar .d-md-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    width: 100%;
}

.it-topbar__left { display: flex; gap: 1.5rem; align-items: center; }
.it-topbar__right { display: flex; gap: 0.75rem; align-items: center; margin-left: auto; }

.it-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #ffffff !important;
    font-size: 0.6875rem;
    transition: opacity 0.2s ease;
    text-decoration: none;
}
.it-topbar__item .material-icons {
    font-size: 12px;
    color: #ffffff !important;
    opacity: 0.85;
}
a.it-topbar__item:hover { opacity: 0.8; }
.it-topbar__item--muted { color: rgba(255,255,255,0.85) !important; }
.it-topbar__item--muted .material-icons { opacity: 0.7; }

/* Topbar right links */
.it-topbar__right .it-topbar__item {
    padding: 0.125rem 0.5rem;
    border-radius: var(--it-radius-sm);
    color: #ffffff !important;
}
.it-topbar__right a.it-topbar__item:hover {
    background: rgba(255,255,255,0.15);
}

.it-topbar a,
.header-top a,
nav.header-top a { color: #ffffff !important; font-size: 0.6875rem; }
.it-topbar a:hover,
.header-top a:hover { opacity: 0.85; }

@media (max-width: 767.98px) {
    .it-topbar, .header-top .it-topbar { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   4. MAIN HEADER — white bar with logo, search, actions
   ═══════════════════════════════════════════════════════════ */
.it-header-main,
.header-bottom {
    background: var(--it-white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow 0.3s ease;
    border-bottom: 1px solid var(--it-gray-100);
}

.it-header-main.is-sticky,
.header-bottom.is-sticky {
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
    border-bottom-color: transparent;
}

.it-header-main .container,
.it-header-main .container-md,
.header-bottom > .container,
.header-bottom__container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: var(--it-header-height);
    max-width: var(--it-container-max);
    margin: 0 auto;
    padding: 0 1rem;
}
/* Override Bootstrap .row inside header to act as flex container */
.header-bottom__row,
.header-bottom .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100%;
    gap: 1rem;
    margin: 0;
}
/* Search col — take all remaining space */
.header-bottom .row > .col,
.header-bottom .row > [class*="search"] {
    flex: 1 1 auto !important;
    max-width: none !important;
    width: auto !important;
}
/* Logo + action cols — don't grow */
.header-bottom .row > .col-auto {
    flex: 0 0 auto !important;
}

/* Logo — image has baked-in white border, clip it via overflow + negative margin */
.it-header-main__logo a,
.it-logo-col a { display: flex; align-items: center; flex-shrink: 0; overflow: hidden; }
.it-header-main__logo img,
.it-logo-col img,
.logo img { height: 70px; width: auto; margin: 0 0 0 -15px; }

/* Search — fill all available space between logo and actions */
#_desktop_search {
    flex: 1 1 auto !important;
    max-width: none !important;
    width: auto !important;
    order: 2 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-width: 0;
}
#_desktop_search #search_widget { width: 100%; }

/* Logo: no auto margin, stay left, flush with topbar */
.it-logo-col {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    order: 1 !important;
    flex-shrink: 0 !important;
}

/* Actions: always right */
.it-header-actions {
    order: 3 !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap;
}

/* Action icons (login, cart) */
.header-block__action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--it-radius-sm);
    color: var(--it-gray-600);
    font-size: var(--it-text-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}
.header-block__action-btn:hover {
    background: var(--it-gray-50);
    color: var(--it-primary);
}
.header-block__icon {
    font-size: 22px;
    color: var(--it-gray-500);
    transition: color 0.2s ease;
}
.header-block__action-btn:hover .header-block__icon {
    color: var(--it-primary);
}
.header-block__title {
    font-size: var(--it-text-sm);
    font-weight: 500;
    color: var(--it-gray-600);
}
.header-block__action-btn:hover .header-block__title {
    color: var(--it-primary);
}

/* Cart badge */
.header-block__badge,
.header__action .cart-products-count {
    position: absolute;
    top: 2px;
    right: 0;
    background: var(--it-accent);
    color: var(--it-white);
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: var(--it-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* Quote CTA button — Lovable outline style */
.it-quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--it-accent);
    color: var(--it-white) !important;
    font-weight: 500;
    font-size: var(--it-text-sm);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: 0.5rem;
    text-decoration: none;
    height: 40px;
}
.it-quote-btn:hover {
    background: var(--it-accent-hover);
    color: var(--it-white) !important;
    box-shadow: 0 2px 8px rgba(212,168,83,0.3);
}

/* Header actions container */
.it-header-actions {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Mobile header */
@media (max-width: 991.98px) {
    .it-header-main .container,
    .it-header-main .container-md,
    .header-bottom > .container {
        height: 56px;
        gap: 0.5rem;
    }
    .it-header-main__logo img,
    .it-logo-col img,
    .logo img { height: 48px; margin-left: -10px; }
    .it-header-main__search { display: none; }
    .it-quote-btn { display: none; }
    .header-block__title { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   5. NAVIGATION BAR — navy horizontal menu
   ═══════════════════════════════════════════════════════════ */
.it-nav-bar {
    background: var(--it-primary);
    position: relative;
    z-index: 1020;
    display: none;
}

.it-nav-bar .container,
.it-nav-bar .container-md {
    display: flex;
    align-items: center;
    max-width: var(--it-container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.it-nav-bar__inner {
    display: flex;
    align-items: center;
    width: 100%;
}

.it-nav-bar__categories-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    color: var(--it-white);
    font-weight: 600;
    font-size: var(--it-text-sm);
    padding: 0.625rem 1.25rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}
.it-nav-bar__categories-btn:hover { background: rgba(255,255,255,0.18); }
.it-nav-bar__categories-btn .material-icons { font-size: 20px; }

.it-nav-bar__menu { flex: 1; overflow: hidden; }

/* Megamenu link styling in nav bar */
.it-nav-bar .cbp-hrmenu-tab > .nav-link,
.it-nav-bar .cbp-hrmenu-tab > a {
    color: rgba(255,255,255,0.85);
    font-size: var(--it-text-sm);
    font-weight: 500;
    padding: 0.625rem 1rem;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}
.it-nav-bar .cbp-hrmenu-tab > .nav-link:hover,
.it-nav-bar .cbp-hrmenu-tab > a:hover {
    color: var(--it-white);
    background: rgba(255,255,255,0.08);
}

@media (max-width: 991.98px) {
    .it-nav-bar { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   6. SEARCH WIDGET
   ═══════════════════════════════════════════════════════════ */
/* ── Search: Lovable-style rounded-lg with navy button ── */
#search_widget,
.search-widget {
    width: 100%;
    position: relative;
}

#search_widget form,
.search-widget form {
    display: flex;
    align-items: center;
    position: relative;
}

#search_widget input[type="text"],
.search-widget input[type="text"],
#search_widget input[type="search"],
.search-widget input[type="search"] {
    width: 100%;
    height: 44px;
    padding: 0 3.25rem 0 1rem;
    border: 1px solid hsl(210 18% 90%);
    border-radius: 8px;
    font-size: var(--it-text-sm);
    font-family: var(--it-font-primary);
    background: hsl(210 20% 96%);
    color: var(--it-gray-900);
    transition: all 0.2s ease;
    outline: none;
}

#search_widget input::placeholder { color: var(--it-gray-400); }

#search_widget input:focus,
.search-widget input:focus {
    border-color: var(--it-primary);
    background: var(--it-white);
    box-shadow: 0 0 0 3px rgba(26,54,93,0.08);
}

/* Hide old Material Icons search/clear */
#search_widget .material-icons.search,
#search_widget .js-search-icon,
#search_widget .material-icons.clear {
    display: none !important;
}

/* Navy search button inside input */
.it-search__btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: var(--it-primary);
    color: var(--it-white);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
}
.it-search__btn:hover { background: var(--it-primary-hover); }
.it-search__btn svg { width: 18px; height: 18px; }

/* Clear button (hidden by default, JS shows it) */
.it-search__clear {
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--it-gray-400);
    cursor: pointer;
    padding: 4px;
    display: none;
    align-items: center;
    justify-content: center;
}
.it-search__clear svg { width: 16px; height: 16px; }

/* Legacy fallback — any other button in search widget */
#search_widget button:not(.it-search__btn):not(.it-search__clear),
.search-widget button:not(.it-search__btn):not(.it-search__clear) {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: var(--it-primary);
    color: var(--it-white);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
}

/* ── Lucide icon buttons (user, cart) ── */
.it-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    color: var(--it-gray-600);
    transition: all 0.2s ease;
}
.it-icon-btn:hover {
    color: var(--it-gray-900);
    background: hsl(210 30% 93%);
}
.it-icon-btn svg {
    width: 22px;
    height: 22px;
}

/* ═══════════════════════════════════════════════════════════
   7. LEFT SIDEBAR — category tree (pixel-perfect Lovable match)
   Lovable: bg-card rounded-xl border border-border overflow-hidden
   Items: divide-y, px-4 py-2.5, text-sm, gap-2
   Hover: bg-accent (edge-to-edge), text-primary
   ═══════════════════════════════════════════════════════════ */
.wrapper__left-column,
#left-column {
    padding-right: 1rem;
    padding-top: 1.5rem;
    overflow: visible;
}
.ps_categorytree,
.category-tree,
.left-block {
    overflow: visible;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.layout-left-column #left-column {
    padding-right: 1rem !important;
}

/* ── Hide header — no title bar ── */
.left-block__title {
    display: none;
}

/* ── Container card ── */
.accordion--category {
    background: #ffffff;
    border: 1px solid hsl(210 18% 90%);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    list-style: none;
    padding: 0;
    margin-top: 0;
}

/* ── Base list reset — override Hummingbird row-gap & padding ── */
.category-tree__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-tree__child .category-tree__list {
    row-gap: 0 !important;
}
.category-tree__child .category-tree__list[data-depth="1"],
.category-tree__child .category-tree__list[data-depth="2"],
.category-tree__child .category-tree__list[data-depth="3"] {
    padding-left: 0 !important;
}

/* ── Item reset — override Hummingbird transition:all ── */
.category-tree__item {
    padding: 0;
    margin: 0;
    transition: none;
}

/* ── Item header: flex row ── */
.category-tree__item__header {
    display: flex;
    align-items: center;
    min-height: 0;
    transition: background-color 150ms ease;
}
/* Hover on entire row — edge-to-edge bg like Lovable */
.category-tree__item__header:hover {
    background-color: hsl(210 30% 93%);
}

/* ── Category link (depth 0) ── */
.category-tree__item__link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 14px;
    color: hsl(215 25% 15%);
    font-weight: 400;
    text-decoration: none;
    transition: color 150ms ease;
    line-height: 1.4;
    word-break: break-word;
    hyphens: auto;
}
/* Remove bg from link itself — header handles it */
.category-tree__item__link:hover {
    color: hsl(216 58% 35%);
    background-color: transparent;
}

/* Leaf items (no toggle) — spacer to align with parent text */
.category-tree__item__header.nosplit:not(.split) .category-tree__item__link {
    padding-left: 36px;
}

/* Parent categories (with children) — medium weight */
/* Must use .category-tree__child prefix to beat Hummingbird specificity (font-weight:600) */
.category-tree__child .category-tree__item__header.split .category-tree__item__link {
    font-weight: 500;
    padding-left: 0;
    padding-right: 16px;
}
/* Leaf categories (no children) — regular weight */
.category-tree__child .category-tree__list[data-depth="0"] > .category-tree__item > .category-tree__item__header.nosplit:not(.split) .category-tree__item__link {
    font-weight: 400;
}

/* Active category */
.category-tree__item--current > .category-tree__item__header .category-tree__item__link,
.category-tree__item.active > .category-tree__item__header .category-tree__item__link,
.category-tree__item.current > .category-tree__item__header .category-tree__item__link {
    color: hsl(216 58% 35%);
    font-weight: 600;
}

/* ── Toggle button — +/− icon, positioned LEFT of text ── */
/* Override Hummingbird: padding .25rem .5rem, width:auto, font-weight:700 */
/* Override Hummingbird: .category-tree__item__header.split .accordion-button { margin: -.25rem -.5rem -.25rem auto } */
.category-tree__item__header.split .accordion-button,
.accordion--category .accordion-button,
.category-tree__item__header .accordion-button {
    order: -1;
    width: 12px !important;
    min-width: 12px !important;
    height: auto;
    align-self: stretch;
    padding: 0 !important;
    margin: 0 8px 0 16px !important;
    flex-shrink: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 150ms ease;
    position: relative;
    font-size: inherit !important;
    font-weight: inherit !important;
}
.category-tree__item__header .accordion-button:hover {
    background: transparent !important;
}

/* +/− icon via CSS — Lovable Plus/Minus w-3 h-3 text-muted-foreground */
.category-tree__item__header .accordion-button::after {
    content: "";
    background: none !important;
    background-image: none !important;
    width: 12px;
    height: 12px;
    margin: 0;
    transform: none;
    transition: opacity 150ms ease;
    position: relative;
    border: none;
    box-shadow: none;
}
/* Plus: two crossing lines in muted color */
.category-tree__item__header .accordion-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    background:
        linear-gradient(hsl(215 12% 50%), hsl(215 12% 50%)) center/1.5px 10px no-repeat,
        linear-gradient(hsl(215 12% 50%), hsl(215 12% 50%)) center/10px 1.5px no-repeat;
    transition: background 150ms ease;
}
/* Minus: only horizontal line */
.category-tree__item__header .accordion-button:not(.collapsed)::before {
    background:
        linear-gradient(hsl(215 12% 50%), hsl(215 12% 50%)) center/10px 1.5px no-repeat;
}

/* ── Depth 0 separators (divide-y divide-border) ── */
.category-tree__list[data-depth="0"] > .category-tree__item {
    border-bottom: 1px solid hsl(210 18% 90%);
}
.category-tree__list[data-depth="0"] > .category-tree__item:last-child {
    border-bottom: none;
}

/* Ensure collapsed subcategories stay hidden */
.category-tree__item .accordion-collapse.collapse:not(.show) {
    display: none !important;
}

/* ── Depth 1: Subcategories — bg-surface-sunken ── */
.category-tree__list[data-depth="1"] {
    background: hsl(210 20% 96%);
    border-top: none;
}
.category-tree__list[data-depth="1"] .category-tree__item__header:hover {
    background-color: hsl(210 30% 93%);
}
.category-tree__list[data-depth="1"] .category-tree__item__link {
    padding: 8px 16px 8px 44px;
    font-size: 14px;
    color: hsl(215 12% 50%);
    font-weight: 400;
    position: relative;
}
.category-tree__list[data-depth="1"] .category-tree__item__link:hover {
    color: hsl(216 58% 35%);
    background-color: transparent;
}
/* ChevronRight › ONLY for leaf subcategories (no expand toggle) */
.category-tree__list[data-depth="1"] > .category-tree__item > .category-tree__item__header.nosplit:not(.split) .category-tree__item__link::before {
    content: "›";
    position: absolute;
    left: 28px;
    font-size: 16px;
    font-weight: 400;
    color: hsl(215 12% 50%);
    line-height: 1.3;
}
.category-tree__list[data-depth="1"] .category-tree__item__header.nosplit:not(.split):hover .category-tree__item__link::before {
    color: hsl(216 58% 35%);
}
/* No borders between subcategory items */
.category-tree__list[data-depth="1"] .category-tree__item {
    border-bottom: none;
}
/* Override leaf indent inside depth 1 — text at 44px (24+12+8=44) */
.category-tree__list[data-depth="1"] .category-tree__item__header.nosplit:not(.split) .category-tree__item__link {
    padding-left: 44px;
}
/* Override parent indent inside depth 1 — text also at 44px (button margin handles gap) */
.category-tree__list[data-depth="1"] .category-tree__item__header.split .category-tree__item__link {
    padding-left: 0;
}
.category-tree__list[data-depth="1"] .category-tree__item__header.split .accordion-button {
    margin-left: 24px;
}

/* ── Depth 2: Nested subcategories ── */
.category-tree__list[data-depth="2"] {
    background: hsl(210 20% 94%);
}
.category-tree__list[data-depth="2"] .category-tree__item__link {
    padding: 8px 16px 8px 60px;
    font-size: 14px;
    color: hsl(215 12% 50%);
    font-weight: 400;
    position: relative;
}
.category-tree__list[data-depth="2"] > .category-tree__item > .category-tree__item__header.nosplit:not(.split) .category-tree__item__link::before {
    content: "›";
    position: absolute;
    left: 44px;
    font-size: 16px;
    font-weight: 400;
    color: hsl(215 12% 50%);
    line-height: 1.3;
}
.category-tree__list[data-depth="2"] .category-tree__item {
    border-bottom: none;
}
.category-tree__list[data-depth="2"] .category-tree__item__header.nosplit:not(.split) .category-tree__item__link {
    padding-left: 60px;
}

/* ── Accordion body — override Hummingbird .5rem padding ── */
.accordion--category .accordion-body,
.category-tree__item .accordion-body {
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Legacy block-categories ── */
.block-categories {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid hsl(210 18% 90%);
    padding: 0;
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.block-categories h5,
.block-categories .h5,
.block-categories .block-categories__title {
    display: none;
}

/* Faceted search */
#ps_facetedsearch,
.block-faceted-search,
#search_filters {
    background: var(--it-white);
    border-radius: var(--it-radius-md);
    box-shadow: var(--it-shadow-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

#search_filters .facet,
.block-faceted-search .facet { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--it-gray-100); }
#search_filters .facet:last-child,
.block-faceted-search .facet:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

#search_filters .facet-title,
.block-faceted-search .facet-title {
    font-size: var(--it-text-sm);
    font-weight: 700;
    color: var(--it-gray-900);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

#search_filters .facet-label,
.block-faceted-search .facet-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: var(--it-text-sm);
    color: var(--it-gray-700);
    cursor: pointer;
}

#search_filters .facet-label:hover { color: var(--it-primary); }

#search_filters .custom-checkbox input[type="checkbox"],
.block-faceted-search .custom-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--it-primary);
}

.active-filter-title { font-size: var(--it-text-sm); font-weight: 600; margin-bottom: 0.5rem; }

.active-filters .filter-block {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--it-primary-light);
    color: var(--it-primary);
    font-size: var(--it-text-xs);
    padding: 0.25rem 0.625rem;
    border-radius: var(--it-radius-full);
    margin: 0.125rem;
}

.active-filters .filter-block .close { font-size: 0.875rem; cursor: pointer; opacity: 0.7; }
.active-filters .filter-block .close:hover { opacity: 1; }

@media (max-width: 991.98px) {
    .wrapper__left-column, #left-column { padding-right: 0; margin-bottom: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   8. PRODUCT CARDS — clean, minimal, professional
   ═══════════════════════════════════════════════════════════ */
.product-miniature { margin-bottom: 0; }

.product-miniature .card,
.product-miniature.card {
    border: 1px solid var(--it-gray-100);
    border-radius: var(--it-radius-md);
    overflow: hidden;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--it-white);
    box-shadow: none;
}

.product-miniature .card:hover,
.product-miniature.card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-color: var(--it-gray-200);
}

/* Product image */
.product-miniature .thumbnail-container,
.product-miniature .product-miniature__image-container,
.product-miniature .product-thumbnail {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--it-white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--it-gray-50);
}

.product-miniature .thumbnail-container img,
.product-miniature .product-miniature__image-container img,
.product-miniature .product-thumbnail img,
.product-miniature .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
    transition: transform 0.3s ease;
}

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

/* Quickview button — subtle, bottom-right corner */
.product-miniature .it-quickview-icon,
.product-miniature .js-quickview {
    position: absolute;
    bottom: 0.625rem;
    right: 0.625rem;
    top: auto !important;
    left: auto !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--it-white);
    border: 1px solid var(--it-gray-200);
    color: var(--it-gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.product-miniature .it-quickview-icon .material-icons,
.product-miniature .js-quickview .material-icons { font-size: 18px; }
.product-miniature .card:hover .it-quickview-icon,
.product-miniature .card:hover .js-quickview {
    opacity: 1;
    transform: translateY(0);
}
.product-miniature .it-quickview-icon:hover,
.product-miniature .js-quickview:hover {
    background: var(--it-primary);
    border-color: var(--it-primary);
    color: var(--it-white);
}

/* Card body */
.product-miniature .card-body,
.product-miniature .product-miniature__infos,
.product-miniature .product-description {
    padding: 0.625rem 0.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.125rem;
}

/* Brand */
.product-miniature .it-product-miniature__brand,
.product-miniature .it-card-brand,
.product-miniature .product-brand,
.product-miniature .manufacturer-name {
    font-size: 0.6875rem;
    color: var(--it-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin: 0;
    line-height: 1;
}

/* Title */
.product-miniature .card-title,
.product-miniature .product-title,
.product-miniature .product-miniature__title,
.product-miniature h3 {
    font-size: var(--it-text-sm);
    font-weight: 600;
    line-height: 1.35;
    color: var(--it-gray-900);
    margin: 0.125rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-miniature .card-title a,
.product-miniature .product-title a,
.product-miniature .product-miniature__title a,
.product-miniature h3 a { color: inherit; text-decoration: none; }
.product-miniature .card-title a:hover,
.product-miniature .product-title a:hover,
.product-miniature h3 a:hover { color: var(--it-primary); }

/* Stock badge */
.it-stock-badge,
.it-card-stock,
.product-miniature .product-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: var(--it-radius-full);
    width: fit-content;
    margin-top: 0.25rem;
}

.it-stock-badge--in_stock,
.it-card-stock--in-stock,
.product-miniature .product-available { background: #ecfdf5; color: #059669; }
.it-stock-badge--available,
.it-card-stock--supplier { background: #fffbeb; color: #d97706; }
.it-stock-badge--out_of_stock,
.it-card-stock--out-of-stock,
.product-miniature .product-unavailable { background: #fef2f2; color: #dc2626; }

/* Price area */
.product-miniature .product-miniature__infos__bottom,
.product-miniature .product-price-and-shipping,
.product-miniature .card-footer,
.it-card-price-row {
    padding: 0.5rem 0.75rem 0.625rem;
    border-top: 1px solid var(--it-gray-50);
    margin-top: auto;
}

.product-miniature .product-miniature__price,
.product-miniature .price,
.it-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--it-primary);
}

.product-miniature .regular-price,
.it-card-price-old {
    font-size: var(--it-text-sm);
    color: var(--it-gray-400);
    text-decoration: line-through;
    margin-left: 0.375rem;
}

/* Hide default PS add-to-cart and variant links (custom action buttons used instead) */
.product-miniature .product-add-to-cart,
.product-miniature form.add-to-cart,
.product-miniature .highlighted-informations,
.product-miniature .variant-links { display: none !important; }

/* ig_quotation button — hide from image area on product cards, show only in card-body */
.product-miniature .thumbnail-container .ig-quot-product-action,
.product-miniature .product-miniature__image-container .ig-quot-product-action {
    display: none !important;
}

/* ig_prodspecs features — hide detailed list (duplicate of tag pills above) */
.product-miniature .ig-ps-cat-features {
    display: none;
}

/* Empty product reviews placeholder — hide when no reviews */
.product-miniature .product-list-reviews {
    min-height: 0;
}
.product-miniature .product-list-reviews:empty,
.product-miniature .product-list-reviews .grade-stars:empty,
.product-miniature .product-list-reviews .comments-nb:empty {
    display: none;
}
/* Hide entire reviews container when stars are empty (no reviews configured) */
.product-miniature .product-list-reviews:has(.grade-stars:empty) {
    display: none;
}
/* Fallback: collapse reviews if grade-stars has no visible children */
.product-miniature .product-list-reviews .grade-stars:not(:has(*)) {
    display: none;
}

/* Custom action buttons row */
.it-product-miniature__actions {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.it-product-miniature__actions .it-btn-cart {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--it-primary);
    background: var(--it-primary);
    color: var(--it-white);
    border-radius: var(--it-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}
.it-product-miniature__actions .it-btn-cart:hover {
    background: var(--it-primary-hover);
    border-color: var(--it-primary-hover);
}
.it-product-miniature__actions .it-btn-cart .material-icons { font-size: 18px; }

.it-product-miniature__actions .it-btn-quote {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.375rem 0.5rem;
    background: var(--it-accent);
    color: var(--it-white);
    border-radius: var(--it-radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.15s ease;
}
.it-product-miniature__actions .it-btn-quote:hover {
    background: var(--it-accent-hover);
    color: var(--it-white);
    text-decoration: none;
}
.it-product-miniature__actions .it-btn-quote .material-icons { font-size: 16px; }

/* Product flags / badges */
.product-miniature .product-flags,
.product-miniature .product-flag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
}

.product-miniature .product-flag {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--it-radius-sm);
    background: var(--it-primary);
    color: var(--it-white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-miniature .product-flag.discount { background: #dc2626; }
.product-miniature .product-flag.new { background: #059669; }

/* Feature tags on product cards */
.it-product-miniature__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.it-product-miniature__tag {
    display: inline-block;
    padding: 0.0625rem 0.375rem;
    background: var(--it-gray-50);
    border: 1px solid var(--it-gray-100);
    border-radius: var(--it-radius-sm);
    font-size: 0.5625rem;
    color: var(--it-gray-500);
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.4;
}

/* Product miniature meta */
.it-product-miniature__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.125rem;
}

/* ═══════════════════════════════════════════════════════════
   9. PRODUCT GRID — 2→3→4 columns responsive
   ═══════════════════════════════════════════════════════════ */
.products.row,
.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.products.row > [class*="col-"],
.products > .product-miniature {
    flex: none !important;
    max-width: 100% !important;
    width: auto !important;
    padding: 0 !important;
}

@media (min-width: 576px) {
    .products.row, .products { gap: 1rem; }
}

@media (min-width: 768px) {
    .products.row, .products { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
    .products.row, .products { grid-template-columns: repeat(4, 1fr); }
}

/* Category header */
#js-product-list-header,
.block-category {
    margin-bottom: 1.5rem;
}

#js-product-list-header h1,
.block-category h1 {
    font-size: var(--it-text-2xl);
    font-weight: 800;
    color: var(--it-gray-900);
    margin-bottom: 0.5rem;
}

.block-category #category-description {
    font-size: var(--it-text-sm);
    color: var(--it-gray-600);
    line-height: 1.6;
    max-width: 65ch;
}

/* Sort bar */
.products-sort-order,
.sort-by-row,
#products-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--it-gray-200);
}

.products-sort-order .select-title,
.sort-by-row select {
    font-size: var(--it-text-sm);
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--it-gray-300);
    border-radius: var(--it-radius-sm);
    background: var(--it-white);
    color: var(--it-gray-700);
}

.products-sort-order .select-list { font-size: var(--it-text-sm); }

.showing { font-size: var(--it-text-sm); color: var(--it-gray-500); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    padding: 2rem 0;
    list-style: none;
    margin: 0;
}

.pagination .page-item .page-link,
.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    font-size: var(--it-text-sm);
    font-weight: 500;
    color: var(--it-gray-700);
    border: 1px solid var(--it-gray-200);
    border-radius: var(--it-radius-sm);
    transition: all var(--it-transition);
}

.pagination .page-item.active .page-link,
.pagination .current {
    background: var(--it-primary);
    color: var(--it-white);
    border-color: var(--it-primary);
}

.pagination .page-item .page-link:hover,
.pagination a:hover {
    background: var(--it-primary-light);
    color: var(--it-primary);
    border-color: var(--it-primary);
}

/* Total products */
.total-products { font-size: var(--it-text-sm); color: var(--it-gray-500); margin-bottom: 0.5rem; }

/* --- 10. Product Detail Page --- */
.it-pdp {
    padding: 1rem 0 2rem;
}

/* PDP 2-column grid (gallery + info) */
.it-pdp__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .it-pdp__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Gallery — sticky on desktop */
.it-pdp__gallery {
    position: relative;
}

@media (min-width: 768px) {
    .it-pdp__gallery {
        position: sticky;
        top: calc(var(--it-header-height) + 1rem);
        align-self: start;
    }
}

.it-pdp__gallery .product-cover img,
.product-cover img {
    width: 100%;
    border-radius: var(--it-radius-md);
    background: var(--it-gray-50);
    object-fit: contain;
    aspect-ratio: 1;
    border: 1px solid var(--it-gray-100);
}

.product-images {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.product-images > li {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 2px solid var(--it-gray-200);
    border-radius: var(--it-radius-sm);
    cursor: pointer;
    transition: border-color var(--it-transition);
    padding: 3px;
    background: var(--it-white);
    overflow: hidden;
}

.product-images > li img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-images > li.selected,
.product-images > li:hover { border-color: var(--it-primary); }

/* PDP Gallery — Hummingbird carousel styling */
.it-pdp__gallery .product__images {
    display: block !important;
    border-radius: var(--it-radius-md);
    overflow: hidden;
    background: var(--it-white);
    border: 1px solid var(--it-gray-100);
}

.it-pdp__gallery .carousel.slide,
.it-pdp__gallery .carousel[data-bs-ride="carousel"] {
    display: block !important;
}

.it-pdp__gallery .carousel-item img {
    width: 100%;
    object-fit: contain;
    aspect-ratio: 1;
    background: var(--it-white);
    padding: 1rem;
}

.it-pdp__gallery .carousel-control-prev,
.it-pdp__gallery .carousel-control-next {
    width: 36px;
    height: 36px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity var(--it-transition);
}

.it-pdp__gallery .product__images:hover .carousel-control-prev,
.it-pdp__gallery .product__images:hover .carousel-control-next {
    opacity: 1;
}

.it-pdp__gallery .carousel-control-prev-icon,
.it-pdp__gallery .carousel-control-next-icon {
    width: 14px;
    height: 14px;
    filter: invert(0);
}

.it-pdp__gallery .product__images__modal-opener {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity var(--it-transition);
}

.it-pdp__gallery .carousel-item:hover .product__images__modal-opener {
    opacity: 1;
}

.it-pdp__gallery .product__images__modal-opener .material-icons {
    font-size: 18px;
    color: var(--it-gray-700);
}

/* Thumbnails */
.it-pdp__gallery .thumbnails__container {
    margin-top: 0.75rem;
}

.it-pdp__gallery .thumbnails__list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.it-pdp__gallery .thumbnails__list li,
.it-pdp__gallery .thumbnail {
    width: 60px;
    height: 60px;
    border: 2px solid var(--it-gray-200);
    border-radius: var(--it-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--it-transition);
    padding: 3px;
    background: var(--it-white);
    flex: none;
}

.it-pdp__gallery .thumbnails__list li.active,
.it-pdp__gallery .thumbnail.active,
.it-pdp__gallery .thumbnails__list li:hover {
    border-color: var(--it-primary);
}

.it-pdp__gallery .thumbnails__list li img,
.it-pdp__gallery .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product info column */
.it-pdp__info {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* Brand */
.it-pdp__brand {
    font-size: 0.6875rem;
    color: var(--it-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.it-pdp__brand a { color: inherit; }
.it-pdp__brand a:hover { color: var(--it-primary); }

/* Product name */
.it-pdp__name {
    font-size: var(--it-text-xl);
    font-weight: 800;
    color: var(--it-gray-900);
    line-height: 1.25;
    margin: 0;
}

@media (min-width: 768px) {
    .it-pdp__name { font-size: var(--it-text-2xl); }
}

/* Meta row: ref + stock */
.it-pdp__meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: var(--it-text-sm);
}

.it-pdp__ref {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--it-gray-500);
}

.it-pdp__ref .material-icons {
    font-size: 14px;
    color: var(--it-gray-400);
}

.it-pdp__stock {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    padding: 0.125rem 0.625rem;
    border-radius: var(--it-radius-full);
    font-size: 0.75rem;
}

.it-pdp__stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.it-pdp__stock--in_stock { background: #ecfdf5; color: #059669; }
.it-pdp__stock--in_stock .it-pdp__stock-dot { background: #059669; }

.it-pdp__stock--available,
.it-pdp__stock--last_remaining_items { background: #fffbeb; color: #d97706; }
.it-pdp__stock--available .it-pdp__stock-dot,
.it-pdp__stock--last_remaining_items .it-pdp__stock-dot { background: #d97706; }

.it-pdp__stock--unavailable,
.it-pdp__stock--out_of_stock { background: #fef2f2; color: #dc2626; }
.it-pdp__stock--unavailable .it-pdp__stock-dot,
.it-pdp__stock--out_of_stock .it-pdp__stock-dot { background: #dc2626; }

/* Short description */
.it-pdp__short-desc {
    font-size: var(--it-text-sm);
    color: var(--it-gray-700);
    line-height: 1.65;
}

.it-pdp__short-desc ul { padding-left: 1.25rem; margin: 0.5rem 0; }
.it-pdp__short-desc li { margin-bottom: 0.25rem; }

/* Spec badges */
.it-pdp__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.it-pdp__spec {
    display: inline-flex;
    flex-direction: column;
    padding: 0.375rem 0.75rem;
    background: var(--it-gray-50);
    border: 1px solid var(--it-gray-200);
    border-radius: var(--it-radius-sm);
    font-size: 0.6875rem;
    line-height: 1.3;
}

.it-pdp__spec-label {
    color: var(--it-gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.625rem;
}

.it-pdp__spec-value {
    color: var(--it-gray-800);
    font-weight: 700;
}

/* Price card */
.it-pdp__price-card {
    background: var(--it-gray-50);
    border: 1px solid var(--it-gray-200);
    border-radius: var(--it-radius-md);
    padding: 1rem 1.25rem;
}

.it-pdp__price-old-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.it-pdp__price-old {
    font-size: var(--it-text-sm);
    color: var(--it-gray-500);
    text-decoration: line-through;
}

.it-pdp__discount-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: #dc2626;
    color: var(--it-white);
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--it-radius-sm);
}

.it-pdp__price-main-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.it-pdp__price-main {
    font-size: var(--it-text-2xl);
    font-weight: 800;
    color: var(--it-primary);
}

@media (min-width: 768px) {
    .it-pdp__price-main { font-size: var(--it-text-3xl); }
}

.it-pdp__price-vat {
    font-size: var(--it-text-xs);
    color: var(--it-gray-500);
    font-weight: 500;
}

.it-pdp__price-netto {
    font-size: var(--it-text-sm);
    color: var(--it-gray-600);
    margin-top: 0.25rem;
}

/* Also style hummingbird's default price blocks inside PDP */
.it-pdp .product-prices {
    background: var(--it-gray-50);
    border: 1px solid var(--it-gray-200);
    border-radius: var(--it-radius-md);
    padding: 1rem 1.25rem;
}

.it-pdp .product-prices .current-price,
.it-pdp .product-prices .product-price {
    font-size: var(--it-text-2xl);
    font-weight: 800;
    color: var(--it-primary);
}

.it-pdp .product-prices .tax-shipping-delivery-label {
    font-size: var(--it-text-xs);
    color: var(--it-gray-500);
}

/* Variants on PDP */
.it-pdp .product__variants,
.it-pdp .js-product-variants {
    margin-bottom: 0.5rem;
}

.it-pdp .variant {
    margin-bottom: 0.75rem;
}

.it-pdp .variant label,
.it-pdp .variant .form-label {
    display: block;
    font-size: var(--it-text-sm);
    font-weight: 600;
    color: var(--it-gray-700);
    margin-bottom: 0.375rem;
}

.it-pdp .variant .form-select,
.it-pdp .variant select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: var(--it-text-sm);
    border: 2px solid var(--it-gray-200);
    border-radius: var(--it-radius-sm);
    background: var(--it-white);
    color: var(--it-gray-800);
    font-family: var(--it-font-primary);
    transition: border-color var(--it-transition);
    cursor: pointer;
}

.it-pdp .variant .form-select:focus,
.it-pdp .variant select:focus {
    border-color: var(--it-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

/* Add to cart on PDP */
.it-pdp .product-add-to-cart,
.it-pdp .product__add-to-cart {
    margin-top: 0;
}

.it-pdp .product-add-to-cart .row {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.it-pdp .product-add-to-cart .row > [class*="col"] {
    padding: 0 !important;
    flex: none;
    width: auto;
}

.it-pdp .product-add-to-cart .row > .col {
    flex: 1;
}

.it-pdp .product-actions__quantity {
    flex-shrink: 0;
}

.it-pdp #quantity_wanted,
.it-pdp .js-quantity-wanted {
    width: 56px;
    height: 48px;
    text-align: center;
    font-size: var(--it-text-base);
    font-weight: 600;
    border: 2px solid var(--it-gray-300);
    border-radius: var(--it-radius-sm);
    outline: none;
    font-family: var(--it-font-primary);
}

.it-pdp #quantity_wanted:focus { border-color: var(--it-primary); }

.it-pdp .quantity-button .input-group {
    height: 48px;
}

.it-pdp .quantity-button .input-group .btn {
    width: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--it-gray-300);
    background: var(--it-white);
    color: var(--it-gray-600);
}

.it-pdp .quantity-button .input-group .btn:hover {
    background: var(--it-gray-50);
    border-color: var(--it-primary);
    color: var(--it-primary);
}

.it-pdp .add-to-cart,
.it-pdp .product-actions__button .btn-primary {
    height: 48px;
    background: var(--it-primary);
    color: var(--it-white);
    font-weight: 700;
    font-size: var(--it-text-base);
    border: none;
    border-radius: var(--it-radius-sm);
    cursor: pointer;
    transition: all var(--it-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    width: 100%;
}

.it-pdp .add-to-cart:hover,
.it-pdp .product-actions__button .btn-primary:hover {
    background: var(--it-primary-hover);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.25);
}

.it-pdp .add-to-cart:disabled {
    background: var(--it-gray-300);
    cursor: not-allowed;
    box-shadow: none;
}

/* Availability alert in PDP */
.it-pdp .product-availability .alert {
    font-size: var(--it-text-sm);
    padding: 0.625rem 0.875rem;
    border-radius: var(--it-radius-sm);
    margin-bottom: 0;
}

/* Additional info */
.it-pdp .product-additional-info {
    font-size: var(--it-text-xs);
    color: var(--it-gray-500);
}

/* Quote button */
.it-pdp__quote-btn {
    width: 100%;
    height: 48px;
    background: var(--it-accent);
    color: var(--it-white);
    font-weight: 700;
    font-size: var(--it-text-base);
    border: none;
    border-radius: var(--it-radius-sm);
    cursor: pointer;
    transition: all var(--it-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.it-pdp__quote-btn:hover {
    background: var(--it-accent-hover);
    color: var(--it-white);
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
    text-decoration: none;
}

.it-pdp__quote-btn .material-icons { font-size: 20px; }

/* Phone CTA */
.it-pdp__phone-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--it-text-sm);
    color: var(--it-gray-600);
    padding: 0.625rem 0.875rem;
    background: var(--it-white);
    border: 1px solid var(--it-gray-200);
    border-radius: var(--it-radius-sm);
}

.it-pdp__phone-cta .material-icons {
    font-size: 18px;
    color: var(--it-accent);
    flex-shrink: 0;
}

.it-pdp__phone-cta a { color: var(--it-primary); }
.it-pdp__phone-cta a:hover { color: var(--it-primary-hover); }

/* USP grid */
.it-pdp__usps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.it-pdp__usp-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: var(--it-gray-600);
    padding: 0.5rem 0.625rem;
    background: var(--it-gray-50);
    border-radius: var(--it-radius-sm);
    border: 1px solid var(--it-gray-100);
    line-height: 1.3;
}

.it-pdp__usp-item .material-icons {
    font-size: 18px;
    color: var(--it-accent);
    flex-shrink: 0;
}

/* ---- PDP Tabs ---- */
.it-pdp-tabs {
    margin-top: 2rem;
    border-top: 2px solid var(--it-gray-200);
}

.it-pdp-tabs__nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.it-pdp-tabs__nav::-webkit-scrollbar { display: none; }

.it-pdp-tabs__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--it-text-sm);
    font-weight: 600;
    color: var(--it-gray-500);
    padding: 0.75rem 1.25rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-top: -2px;
    transition: all var(--it-transition);
    background: none;
    white-space: nowrap;
    cursor: pointer;
    font-family: var(--it-font-primary);
}

.it-pdp-tabs__btn .material-icons { font-size: 16px; }

.it-pdp-tabs__btn:hover {
    color: var(--it-primary);
}

.it-pdp-tabs__btn--active {
    color: var(--it-primary);
    border-bottom-color: var(--it-primary);
}

.it-pdp-tabs__content {
    display: none;
    padding: 1.5rem 0;
    font-size: var(--it-text-base);
    line-height: 1.7;
    color: var(--it-gray-700);
    animation: fadeIn 250ms ease;
}

.it-pdp-tabs__content--active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Params table */
.it-pdp__params-table {
    width: 100%;
    border-collapse: collapse;
}

.it-pdp__params-table tr {
    border-bottom: 1px solid var(--it-gray-100);
}

.it-pdp__params-table tr:last-child { border-bottom: none; }

.it-pdp__params-table td:first-child {
    font-weight: 600;
    color: var(--it-gray-700);
    padding: 0.625rem 1rem 0.625rem 0;
    width: 40%;
    font-size: var(--it-text-sm);
    white-space: nowrap;
}

.it-pdp__params-table td:last-child {
    padding: 0.625rem 0;
    color: var(--it-gray-800);
    font-size: var(--it-text-sm);
}

.it-pdp__params-table tr:nth-child(even) {
    background: var(--it-gray-50);
}

.it-pdp__params-table tr:nth-child(even) td {
    padding-left: 0.75rem;
}

.it-pdp__params-table tr:nth-child(even) td:first-child {
    padding-left: 0.75rem;
}

/* Description rich text */
.it-pdp__description {
    font-size: var(--it-text-base);
    line-height: 1.7;
    color: var(--it-gray-700);
}

.it-pdp__description h2,
.it-pdp__description h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.it-pdp__description img { border-radius: var(--it-radius-sm); margin: 1rem 0; }
.it-pdp__description table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.it-pdp__description table td,
.it-pdp__description table th { padding: 0.5rem 0.75rem; border: 1px solid var(--it-gray-200); }

.it-pdp__no-content {
    color: var(--it-gray-400);
    font-style: italic;
}

/* Attachments */
.it-pdp__attachments {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.it-pdp__attachment-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--it-gray-200);
    border-radius: var(--it-radius-sm);
    background: var(--it-white);
    color: var(--it-gray-800);
    text-decoration: none;
    transition: all var(--it-transition);
}

.it-pdp__attachment-item:hover {
    border-color: var(--it-primary);
    box-shadow: var(--it-shadow-sm);
    color: var(--it-primary);
}

.it-pdp__attachment-item .material-icons {
    font-size: 24px;
    color: #dc2626;
    flex-shrink: 0;
}

.it-pdp__attachment-size {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: var(--it-text-xs);
    color: var(--it-gray-400);
}

/* Cross-sell */
.it-pdp-crosssell {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--it-gray-100);
}

/* Data sheet / features table (fallback for hummingbird partials) */
.product-features,
.data-sheet {
    width: 100%;
    border-collapse: collapse;
}

.data-sheet .name,
.product-features dt {
    font-weight: 600;
    color: var(--it-gray-800);
    padding: 0.5rem 1rem;
    background: var(--it-gray-50);
    width: 40%;
}

.data-sheet .value,
.product-features dd {
    padding: 0.5rem 1rem;
    color: var(--it-gray-700);
}

.data-sheet tr { border-bottom: 1px solid var(--it-gray-100); }

/* PDP inside left-column layout adjustments */
.layout-left-column .it-pdp { padding: 0.5rem 0 2rem; }

/* Cross-sell grid within left-column layout */
.layout-left-column .it-pdp-crosssell .products.row,
.layout-left-column .it-pdp-crosssell .products {
    grid-template-columns: repeat(2, 1fr) !important;
}

@media (min-width: 768px) {
    .layout-left-column .it-pdp-crosssell .products.row,
    .layout-left-column .it-pdp-crosssell .products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Left sidebar spacing on product pages */
.layout-left-column #left-column .block-categories {
    margin-bottom: 1.5rem;
}

/* Mobile: hide sidebar on product page, full width content */
@media (max-width: 767.98px) {
    .page-product #left-column { display: none; }
    .page-product #content-wrapper { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
}

/* Mobile category: show sidebar as collapsible */
@media (max-width: 767.98px) {
    .page-category #left-column,
    .page-search #left-column {
        margin-bottom: 1rem;
    }
}

/* Smooth scroll behavior for tab switches */
.it-pdp-tabs { scroll-margin-top: calc(var(--it-header-height) + 1rem); }

/* PDP info section divider between major blocks */
.it-pdp__info .product__actions {
    padding-top: 0.5rem;
    border-top: 1px solid var(--it-gray-100);
}

/* Product page breadcrumb spacing */
.page-product .breadcrumb { margin-bottom: 0.5rem; }

/* Better text rendering on PDP description */
.it-pdp__description,
.it-pdp-tabs__content {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Section headers - consistent across pages */
.it-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--it-gray-100);
}

.it-section-header h2 {
    font-size: var(--it-text-lg);
    font-weight: 800;
    color: var(--it-gray-900);
    margin: 0;
}

.it-section-link {
    font-size: var(--it-text-sm);
    font-weight: 600;
    color: var(--it-primary);
    white-space: nowrap;
}

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

@media (max-width: 767.98px) {
    .it-pdp__grid { gap: 1rem; }
    .it-pdp__name { font-size: var(--it-text-lg); }
    .it-pdp__price-main { font-size: var(--it-text-xl); }
    .it-pdp__usps { grid-template-columns: 1fr; gap: 0.375rem; }
    .it-pdp__usp-item { font-size: 0.75rem; padding: 0.5rem 0.625rem; }
    .it-pdp__specs { gap: 0.25rem; }
    .it-pdp__spec { padding: 0.25rem 0.5rem; }
    .it-pdp-tabs__btn { padding: 0.625rem 0.875rem; font-size: var(--it-text-xs); }
    /* Gallery controls always visible on touch */
    .it-pdp__gallery .carousel-control-prev,
    .it-pdp__gallery .carousel-control-next { opacity: 0.8; }
    .it-pdp__gallery .product__images__modal-opener { opacity: 1; }
    /* Params table: allow wrapping on mobile */
    .it-pdp__params-table td:first-child { white-space: normal; }
}

/* --- 11. Homepage Sections --- */
/* Brands strip */
/* Lovable-style brands — border-y, grid 6 cols, card items */
.it-brands {
    padding: 4rem 0 5rem;
    background: hsl(210 20% 98%);
    border-top: 1px solid hsl(210 18% 90%);
    border-bottom: 1px solid hsl(210 18% 90%);
}

.it-brands__title {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(215 12% 50%);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2.5rem;
}

.it-brands__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}
@media (max-width: 991.98px) {
    .it-brands__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 575.98px) {
    .it-brands__grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
}

.it-brands__item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    border: 1px solid hsl(210 18% 90%);
    border-radius: 8px;
    background: var(--it-white);
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(215 12% 50%);
    letter-spacing: 0.03em;
    text-decoration: none;
}

.it-brands__item:hover {
    border-color: rgba(26,54,93,0.3);
    color: var(--it-primary);
    box-shadow: var(--it-shadow-sm);
}
.it-brands__item img { max-height: 40px; width: auto; filter: grayscale(100%); opacity: 0.7; transition: all 0.2s ease; }
.it-brands__item:hover img { filter: grayscale(0); opacity: 1; }

/* Why Us / USP cards */
.it-why-us {
    padding: 3.5rem 0;
    background: var(--it-white);
}

.it-why-us__subtitle {
    text-align: center;
    font-size: var(--it-text-xs);
    font-weight: 700;
    color: var(--it-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.it-why-us__title {
    text-align: center;
    font-size: var(--it-text-2xl);
    font-weight: 800;
    color: var(--it-gray-900);
    margin-bottom: 2.5rem;
}

.it-why-us__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 768px) { .it-why-us__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .it-why-us__grid { grid-template-columns: repeat(6, 1fr); } }

.it-why-us__card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--it-white);
    border-radius: var(--it-radius-md);
    box-shadow: var(--it-shadow-sm);
    transition: all var(--it-transition);
}

.it-why-us__card:hover { box-shadow: var(--it-shadow-md); transform: translateY(-2px); }

.it-why-us__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--it-primary-light);
    border-radius: 50%;
    color: var(--it-primary);
}

.it-why-us__icon svg { width: 24px; height: 24px; }
.it-why-us__card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--it-primary-light);
    border-radius: 50%;
    color: var(--it-primary);
}

.it-why-us__card-icon .material-icons { font-size: 24px; }

.it-why-us__card-title {
    font-size: var(--it-text-sm);
    font-weight: 700;
    color: var(--it-gray-900);
    margin-bottom: 0.25rem;
}

.it-why-us__card-desc,
.it-why-us__card-text {
    font-size: var(--it-text-xs);
    color: var(--it-gray-600);
    line-height: 1.5;
}

/* CTA section */
.it-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--it-primary) 0%, var(--it-secondary) 100%);
    color: var(--it-white);
    text-align: center;
}

.it-cta__title {
    font-size: var(--it-text-2xl);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--it-white);
}
.it-cta__text {
    font-size: var(--it-text-base);
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.5rem;
    max-width: 50ch;
    margin-inline: auto;
}

.it-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.it-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--it-accent);
    color: var(--it-white);
    font-weight: 700;
    font-size: var(--it-text-base);
    padding: 0.875rem 2rem;
    border-radius: var(--it-radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.it-cta__btn:hover {
    background: var(--it-accent-hover);
    color: var(--it-white);
    box-shadow: 0 4px 20px rgba(212,168,83,0.3);
}

.it-cta__desc {
    font-size: var(--it-text-base);
    color: rgba(255,255,255,0.75);
    margin-bottom: 2rem;
    max-width: 55ch;
    margin-inline: auto;
    line-height: 1.7;
}

.it-cta__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255,255,255,0.85);
    font-size: var(--it-text-base);
    font-weight: 600;
    transition: color 0.2s ease;
    text-decoration: none;
}

.it-cta__phone:hover { color: var(--it-white); }
.it-cta__phone .material-icons { font-size: 20px; color: var(--it-accent); }

/* Featured products section */
.featured-products,
.it-featured {
    padding: 3rem 0;
}

.featured-products h2,
.it-featured__title {
    font-size: var(--it-text-2xl);
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--it-gray-900);
}

/* Homepage featured products — always 4/row on desktop */
.featured-products .products.row,
.featured-products .products,
#content .products.row {
    grid-template-columns: repeat(2, 1fr) !important;
}

@media (min-width: 768px) {
    .featured-products .products.row,
    .featured-products .products,
    #content .products.row {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 1200px) {
    .featured-products .products.row,
    .featured-products .products,
    #content .products.row {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* --- 12. Footer --- */
/* ═══════════════════════════════════════════════════════════
   FOOTER — Premium dark navy, 4-column grid
   ═══════════════════════════════════════════════════════════ */
.it-footer,
.footer,
#footer {
    background: linear-gradient(180deg, var(--it-secondary) 0%, #0a1220 100%);
    color: rgba(255,255,255,0.75);
    padding-top: 3.5rem;
}

.it-footer .container,
.footer .container {
    max-width: var(--it-container-max);
    margin: 0 auto;
}

/* Grid layout */
.it-footer__grid,
.footer__main__top.row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    margin: 0;
}

@media (min-width: 576px) { .it-footer__grid, .footer__main__top.row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .it-footer__grid, .footer__main__top.row { grid-template-columns: 2.5fr 1fr 1fr 2fr; gap: 3rem; } }

/* Reset Bootstrap col sizing inside CSS Grid footer */
.footer__main__top.row > [class*="col-"] {
    flex: none !important;
    max-width: 100% !important;
    width: auto !important;
    padding: 0 !important;
}

/* Column headings */
.it-footer__heading,
.footer h4,
.footer .h4,
.footer .block-contact .block-contact-title,
.footer .links .h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--it-white);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Links */
.it-footer a,
.footer a {
    color: rgba(255,255,255,0.75);
    font-size: var(--it-text-sm);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.it-footer a:hover,
.footer a:hover {
    color: var(--it-white);
}

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

.it-footer li,
.footer .links li { margin-bottom: 0.5rem; }

/* ── Brand column ── */
.it-footer__logo { margin-bottom: 1.25rem; }
.it-footer__logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--it-white);
    letter-spacing: 0.06em;
    line-height: 1;
}
.it-footer__logo-sub {
    font-size: 0.6875rem;
    color: var(--it-accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.25rem;
}
.it-footer__brand-desc {
    font-size: var(--it-text-sm);
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 34ch;
}

/* ── Link columns ── */
.it-footer__links { list-style: none; padding: 0; margin: 0; }
.it-footer__links li { margin-bottom: 0.625rem; }
.it-footer__links a {
    color: rgba(255,255,255,0.7);
    font-size: var(--it-text-sm);
    transition: color 0.2s ease;
    display: inline-block;
}
.it-footer__links a:hover {
    color: var(--it-white);
}

/* ── Contact column ── */
.it-footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: var(--it-text-sm);
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}
.it-footer-contact__icon {
    color: var(--it-accent);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.it-footer-contact__phone {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
    white-space: nowrap;
    font-size: 1rem;
}
.it-footer-contact__phone:hover { color: var(--it-accent) !important; }
.it-footer-contact__sub {
    color: rgba(255,255,255,0.5);
    font-size: var(--it-text-xs);
}

/* ── Bottom bar ── */
.it-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.it-footer__bottom .copyright {
    font-size: var(--it-text-xs);
    color: rgba(255,255,255,0.45);
    margin: 0;
}

.it-footer__bottom-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.it-footer__bottom-links a {
    font-size: var(--it-text-xs);
    color: rgba(255,255,255,0.45);
}
.it-footer__bottom-links a:hover { color: rgba(255,255,255,0.7); }

.it-footer__bottom-sep {
    color: rgba(255,255,255,0.15);
    font-size: var(--it-text-xs);
}

@media (max-width: 575.98px) {
    .it-footer__bottom { justify-content: center; text-align: center; }
    .it-footer__bottom-links { justify-content: center; }
}

/* Mobile offcanvas links */
.it-mobile-links__divider {
    height: 1px;
    background: var(--it-gray-100);
    margin: 0.75rem 0;
}

.it-mobile-links__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: var(--it-text-base);
    color: var(--it-gray-700);
    font-weight: 500;
    min-height: 44px;
}

.it-mobile-links__item .material-icons {
    color: var(--it-gray-400);
    font-size: 20px;
}

.it-mobile-links__item:hover { color: var(--it-primary); }
.it-mobile-links__item:hover .material-icons { color: var(--it-primary); }

.it-mobile-links__hours {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: var(--it-text-sm);
    color: var(--it-gray-500);
}

.it-mobile-links__hours .material-icons {
    color: var(--it-gray-400);
    font-size: 20px;
}

/* Logo column */
.it-logo-col { flex-shrink: 0; }

/* --- 13. Breadcrumbs --- */
.breadcrumb,
.it-breadcrumb {
    background: none;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    font-size: var(--it-text-sm);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
}

.breadcrumb li,
.breadcrumb-item { display: inline-flex; align-items: center; }

.breadcrumb a { color: var(--it-gray-500); }
.breadcrumb a:hover { color: var(--it-primary); }

.breadcrumb li:last-child,
.breadcrumb-item.active { color: var(--it-gray-900); font-weight: 600; }

.breadcrumb li + li::before,
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--it-gray-400);
    padding: 0 0.375rem;
    font-size: 1rem;
}

/* --- 14. Contact Page --- */
.contact-rich {
    background: var(--it-gray-50);
    border-radius: var(--it-radius-md);
    padding: 1.5rem;
}

.contact-rich h4 { font-size: var(--it-text-lg); font-weight: 700; margin-bottom: 1rem; }

.contact-rich .block {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: var(--it-text-sm);
    color: var(--it-gray-700);
}

.contact-rich .icon { color: var(--it-accent); flex-shrink: 0; }

.contact-form .form-group { margin-bottom: 1rem; }

/* --- 15. Cart & Checkout --- */
.cart-grid,
.checkout-process { max-width: 1100px; margin: 0 auto; }

.cart-grid-body .cart-item,
.cart-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--it-gray-100);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item .product-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--it-radius-sm);
    background: var(--it-gray-50);
}

.cart-item .product-line-info { flex: 1; }

.cart-grid-right .card,
.cart-summary { background: var(--it-gray-50); border-radius: var(--it-radius-md); padding: 1.5rem; }

.checkout-process .step-title {
    font-size: var(--it-text-lg);
    font-weight: 700;
    color: var(--it-gray-900);
    padding: 1rem 0;
    border-bottom: 2px solid var(--it-gray-200);
    margin-bottom: 1rem;
}

.checkout-process .step-title .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--it-primary);
    color: var(--it-white);
    font-weight: 700;
    font-size: var(--it-text-sm);
    border-radius: 50%;
    margin-right: 0.75rem;
}

.checkout-process .-current .step-title { border-bottom-color: var(--it-primary); }

/* --- 16. Forms & Buttons --- */
.btn {
    font-family: var(--it-font-primary);
    font-weight: 600;
    font-size: var(--it-text-sm);
    padding: 0.625rem 1.5rem;
    border-radius: var(--it-radius-sm);
    transition: all var(--it-transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border: 2px solid transparent;
    line-height: 1.4;
}

.btn-primary,
.btn-primary:active,
.btn-primary:focus {
    background: var(--it-primary) !important;
    border-color: var(--it-primary) !important;
    color: var(--it-white) !important;
}

.btn-primary:hover {
    background: var(--it-primary-hover) !important;
    border-color: var(--it-primary-hover) !important;
    color: var(--it-white) !important;
}

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

.btn-outline-primary:hover { background: var(--it-primary); color: var(--it-white); }

.btn-secondary { background: var(--it-gray-200); color: var(--it-gray-800); border-color: var(--it-gray-200); }
.btn-secondary:hover { background: var(--it-gray-300); }

.btn-accent,
.it-btn-accent {
    background: var(--it-accent);
    color: var(--it-white);
    border-color: var(--it-accent);
}

.btn-accent:hover,
.it-btn-accent:hover { background: var(--it-accent-hover); color: var(--it-white); border-color: var(--it-accent-hover); }

/* Form inputs */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    font-family: var(--it-font-primary);
    font-size: var(--it-text-sm);
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--it-gray-300);
    border-radius: var(--it-radius-sm);
    color: var(--it-gray-900);
    background: var(--it-white);
    transition: all var(--it-transition);
    outline: none;
    width: 100%;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--it-primary);
    box-shadow: 0 0 0 3px rgba(26,54,93,0.08);
}

label,
.form-label {
    font-size: var(--it-text-sm);
    font-weight: 600;
    color: var(--it-gray-700);
    margin-bottom: 0.375rem;
    display: block;
}

.form-group { margin-bottom: 1rem; }

.form-control.is-invalid,
.was-validated .form-control:invalid { border-color: var(--it-danger); }

.invalid-feedback { font-size: var(--it-text-xs); color: var(--it-danger); margin-top: 0.25rem; }

/* Custom checkbox / radio */
.custom-checkbox,
.custom-radio { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }

/* --- 17. Utility / Overrides --- */
/* Hide unwanted hummingbird defaults */
.product-miniature .product-description::after { display: none; }
.product-miniature .thumbnail-container .product-thumbnail-first { position: relative; }

/* Hide empty header banner */
.header__banner { display: none; }

/* Hide wishlist — not used on production, B2B uses quote system */
.wishlist-button-add,
.wishlist-button-product,
.wishlist-button,
.blockwishlist,
.header-block .wishlist-link,
a[href*="wishlist"],
.wishlist-add-to { display: none !important; }

/* Hide newsletter — not needed */
.block-newsletter,
.block_newsletter,
#blockEmailSubscription_displayFooterBefore,
.footer-before .ps-emailsubscription { display: none !important; }

/* Hide default PS footer module sections (duplicate of custom footer) */
.footer__main .links,
.footer__main .block-contact,
.footer__main .account-list,
.footer__main .ps-emailsubscription { display: none !important; }

/* Fix iqitmegamenu for hummingbird */

/* HIDE the mobile megamenu from page flow — it renders visible by default */
#_desktop_iqitmegamenu-mobile,
#iqitmegamenu-mobile { display: none !important; }

/* Hide phone number menu item (already in topbar) */
#cbp-hrmenu-tab-3 { display: none !important; }

/* Horizontal megamenu wrapper */
.iqitmegamenu-wrapper,
#iqitmegamenu-wrapper {
    background: transparent;
    width: 100%;
}

.container-iqitmegamenu { max-width: none; padding: 0; }

/* Horizontal menu bar */
#cbp-hrmenu,
.cbp-hrmenu {
    display: flex !important;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

#cbp-hrmenu > ul,
.cbp-hrmenu > ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    overflow: hidden;
}

/* Menu tab items */
.cbp-hrmenu-tab {
    flex-shrink: 0;
}

.cbp-hrmenu-tab > .nav-link,
.cbp-hrmenu-tab > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255,255,255,0.85) !important;
    font-size: var(--it-text-sm);
    font-weight: 500;
    padding: 0.625rem 0.875rem;
    white-space: nowrap;
    transition: all var(--it-transition);
    text-decoration: none;
}

.cbp-hrmenu-tab > .nav-link:hover,
.cbp-hrmenu-tab > a:hover {
    color: var(--it-white) !important;
    background: rgba(255,255,255,0.08);
}

.cbp-hrmenu-tab .cbp-tab-title { white-space: nowrap; }
.cbp-hrmenu-tab .cbp-mainlink-icon { display: none; }

/* Submenu dropdown */
.cbp-hrmenu-tab .cbp-hrsub,
.cbp-hrmenu .cbp-hrsub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    background: var(--it-white);
    border: none;
    border-radius: var(--it-radius-md);
    box-shadow: var(--it-shadow-lg);
    padding: 1.25rem;
    min-width: 240px;
}

.cbp-hrmenu-tab:hover > .cbp-hrsub,
.cbp-hrmenu-tab.cbp-hropen > .cbp-hrsub {
    display: block;
}

.cbp-hrsub a {
    display: block;
    padding: 0.375rem 0.75rem;
    font-size: var(--it-text-sm);
    color: var(--it-gray-700) !important;
    border-radius: var(--it-radius-sm);
    transition: all var(--it-transition);
}

.cbp-hrsub a:hover {
    color: var(--it-primary) !important;
    background: var(--it-primary-light);
}

/* Submenu headings */
.cbp-hrsub-inner h4,
.cbp-hrsub-inner .cbp-hrsub-tab-title {
    font-size: var(--it-text-sm);
    font-weight: 700;
    color: var(--it-gray-900);
    margin-bottom: 0.5rem;
    padding: 0.375rem 0.75rem;
}

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

/* Hide megamenu on mobile — we use offcanvas instead */
@media (max-width: 991.98px) {
    #iqitmegamenu-wrapper,
    .iqitmegamenu-wrapper { display: none !important; }
}

/* ── Horizontal megamenu nav bar ── */
.it-nav-bar {
    background: var(--it-primary);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.it-nav-bar .container-md {
    padding-top: 0;
    padding-bottom: 0;
}

/* Hide nav bar when megamenu is empty */
.it-nav-bar:has(.container-md:empty),
.it-nav-bar:not(:has(.cbp-hrmenu)) {
    display: none;
}

/* Hide blockreassurance until configured with actual content in BO */
.blockreassurance,
#block-reassurance { display: none !important; }

/* When configured, restore with: display: flex !important; and remove the above rule */
/* .blockreassurance {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 1.5rem 0;
} */

.blockreassurance .block-reassurance-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--it-text-sm);
    color: var(--it-gray-700);
}

.blockreassurance .block-reassurance-item img,
.blockreassurance .block-reassurance-item svg { width: 28px; height: 28px; flex-shrink: 0; }

/* Alert styles */
.alert {
    border-radius: var(--it-radius-sm);
    padding: 0.875rem 1.25rem;
    font-size: var(--it-text-sm);
    border: none;
}

.alert-success { background: var(--it-success-light); color: var(--it-success); }
.alert-danger { background: var(--it-danger-light); color: var(--it-danger); }
.alert-warning { background: var(--it-warning-light); color: var(--it-warning); }
.alert-info { background: var(--it-info-light); color: var(--it-info); }

/* General card styling override */
.card {
    border: 1px solid var(--it-gray-100);
    border-radius: var(--it-radius-md);
    box-shadow: none;
}

/* Table styling */
table.table { border-collapse: collapse; width: 100%; }
table.table th { background: var(--it-gray-50); font-weight: 600; font-size: var(--it-text-sm); color: var(--it-gray-800); }
table.table td, table.table th { padding: 0.625rem 1rem; border-bottom: 1px solid var(--it-gray-100); }

/* My account */
.my-account-links a,
.page-my-account a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--it-gray-200);
    border-radius: var(--it-radius-md);
    font-weight: 600;
    color: var(--it-gray-800);
    transition: all var(--it-transition);
}

.my-account-links a:hover,
.page-my-account a:hover {
    border-color: var(--it-primary);
    color: var(--it-primary);
    box-shadow: var(--it-shadow-sm);
}

/* --- 18. Mobile Responsive --- */
@media (max-width: 575.98px) {
    body { font-size: 0.875rem; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }

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

    .product-miniature .card-body,
    .product-miniature .product-description { padding: 0.75rem; }

    .product-miniature .card-title,
    .product-miniature .product-title,
    .product-miniature h3 { font-size: var(--it-text-xs); }

    .product-miniature .price,
    .it-card-price { font-size: var(--it-text-base); }

    .it-pdp__name { font-size: var(--it-text-lg); }

    .it-pdp__usps { grid-template-columns: 1fr 1fr; gap: 0.375rem; }

    .it-pdp-tabs__nav { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .it-pdp-tabs__btn { flex-shrink: 0; }

    .it-why-us__grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

    .it-why-us__card { padding: 1rem 0.75rem; }

    .it-cta { padding: 2rem 0; }
    .it-cta__title { font-size: var(--it-text-xl); }

    .footer__main__top.row,
    .it-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 767.98px) {
    .wrapper__left-column, #left-column { order: 2; }
    .wrapper__content, #content-wrapper { order: 1; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .products { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile offcanvas / hamburger menu */
.offcanvas,
#mobile_top_menu_wrapper {
    background: var(--it-white);
    max-width: 320px;
    width: 85vw;
}

.offcanvas .offcanvas-header,
#mobile_top_menu_wrapper .top-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--it-gray-100);
}

.offcanvas .nav-link,
#mobile_top_menu_wrapper a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    font-size: var(--it-text-base);
    color: var(--it-gray-800);
    border-bottom: 1px solid var(--it-gray-50);
    min-height: 44px;
}

.offcanvas .nav-link:active,
#mobile_top_menu_wrapper a:active { background: var(--it-gray-50); }

/* Touch-friendly targets */
@media (max-width: 991.98px) {
    .btn, button, a.btn,
    .pagination a,
    .pagination .page-link { min-height: 44px; }

    .header-block__action-btn { min-width: 44px; min-height: 44px; justify-content: center; }
}

/* --- 19. Animations / Transitions --- */
.product-miniature .card,
.it-why-us__card,
.it-cta__btn,
.it-btn-quote,
.btn,
a { transition: all var(--it-transition); }

/* Fade-in for product grid items */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.products .product-miniature {
    animation: fadeInUp 400ms ease both;
}

.products .product-miniature:nth-child(2) { animation-delay: 50ms; }
.products .product-miniature:nth-child(3) { animation-delay: 100ms; }
.products .product-miniature:nth-child(4) { animation-delay: 150ms; }
.products .product-miniature:nth-child(5) { animation-delay: 200ms; }
.products .product-miniature:nth-child(6) { animation-delay: 250ms; }
.products .product-miniature:nth-child(7) { animation-delay: 300ms; }
.products .product-miniature:nth-child(8) { animation-delay: 350ms; }

/* Smooth skeleton pulse for loading */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.it-skeleton {
    background: linear-gradient(90deg, var(--it-gray-100) 25%, var(--it-gray-50) 50%, var(--it-gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--it-radius-sm);
}

/* --- 20. Zero Price → "Na dopyt" (B2B) --- */
.it-price-on-request {
    font-size: var(--it-text-sm);
    font-weight: 700;
    color: var(--it-accent);
    letter-spacing: 0.02em;
}

/* PDP zero price — "Na dopyt" label */
.it-pdp .it-price-on-request {
    font-size: var(--it-text-xl);
}

/* Hide cart button on "Na dopyt" products — only show quote */
.product-miniature__prices:has(.it-price-on-request) ~ .it-product-miniature__actions .it-btn-cart,
.product-miniature__prices:has(.it-price-on-request) ~ .it-product-miniature__actions .it-add-to-cart-form {
    display: none;
}

/* Empty price elements */
.product-price:empty,
.price:empty { display: none; }

/* --- 21. Contact Sidebar --- */
.it-contact-sidebar {
    background: var(--it-white);
    border-radius: var(--it-radius-md);
    box-shadow: var(--it-shadow-sm);
    padding: 1.5rem;
}

.it-contact-sidebar__title {
    font-size: var(--it-text-lg);
    font-weight: 700;
    color: var(--it-gray-900);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--it-primary);
}

.it-contact-sidebar__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: var(--it-text-sm);
    color: var(--it-gray-700);
}

.it-contact-sidebar__item:last-child { margin-bottom: 0; }

.it-contact-sidebar__item .material-icons {
    color: var(--it-accent);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.it-contact-sidebar__item a {
    color: var(--it-gray-700);
    font-weight: 500;
}

.it-contact-sidebar__item a:hover { color: var(--it-primary); }

.it-contact-sidebar__item small {
    display: block;
    font-size: var(--it-text-xs);
    color: var(--it-gray-500);
    margin-top: 2px;
}

/* --- Subcategories Grid (category page) --- */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
    .subcategories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
    .subcategories-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1200px) {
    .subcategories-grid { grid-template-columns: repeat(5, 1fr); }
}

.subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    background: var(--it-white);
    border: 1px solid var(--it-gray-100);
    border-radius: var(--it-radius-sm);
    text-decoration: none;
    color: var(--it-gray-800);
    transition: all var(--it-transition);
    text-align: center;
}

.subcategory-card:hover {
    border-color: var(--it-primary);
    box-shadow: var(--it-shadow-sm);
    color: var(--it-primary);
    text-decoration: none;
    transform: translateY(-1px);
}

.subcategory-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.subcategory-name {
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category description */
.it-category-description {
    font-size: var(--it-text-sm);
    color: var(--it-gray-600);
    line-height: 1.65;
    max-width: 70ch;
    margin-bottom: 1rem;
}

.it-category-description p:last-child { margin-bottom: 0; }

/* Category header (block-category) improvements */
.block-category {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--it-gray-100);
}

.block-category h1 {
    font-size: var(--it-text-xl);
    font-weight: 800;
    color: var(--it-gray-900);
    margin-bottom: 0.375rem;
}

@media (min-width: 768px) {
    .block-category h1 { font-size: var(--it-text-2xl); }
}

/* Products top bar (sort + count) */
#products-top,
.products-sort-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--it-gray-100);
}

.products-sort-order .select-title,
.sort-by-row select,
.products-sort-order select {
    font-size: var(--it-text-sm);
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--it-gray-200);
    border-radius: var(--it-radius-sm);
    background: var(--it-white);
    color: var(--it-gray-700);
    font-family: var(--it-font-primary);
}

.total-products,
.showing {
    font-size: var(--it-text-xs);
    color: var(--it-gray-400);
}

/* Faceted search / filters */
.facets-title,
.block-categories .h6,
#search_filters .facet .facet-title {
    font-size: var(--it-text-sm);
    font-weight: 700;
    color: var(--it-gray-800);
    padding: 0.625rem 0;
    margin: 0;
    border-bottom: 1px solid var(--it-gray-100);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#search_filters .facet {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--it-gray-50);
}

#search_filters .facet:last-child { border-bottom: none; }

#search_filters .facet-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: var(--it-text-sm);
    color: var(--it-gray-700);
    cursor: pointer;
}

#search_filters .facet-label:hover {
    color: var(--it-primary);
}

#search_filters .facet .magnitude {
    font-size: var(--it-text-xs);
    color: var(--it-gray-400);
    margin-left: auto;
}

/* Active filters */
.active-filters {
    margin-bottom: 1rem;
}

.active-filters .active-filter-title {
    font-size: var(--it-text-sm);
    font-weight: 600;
    color: var(--it-gray-700);
    margin-bottom: 0.5rem;
}

.active-filters .filter-block {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: var(--it-primary-light);
    border-radius: var(--it-radius-full);
    font-size: var(--it-text-xs);
    color: var(--it-primary);
    font-weight: 500;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.active-filters .filter-block .close {
    font-size: 14px;
    line-height: 1;
    opacity: 0.6;
    cursor: pointer;
}

.active-filters .filter-block .close:hover { opacity: 1; }

/* CMS pages */
.page-cms .page-content,
.cms-page-content,
.page-content.page-cms {
    font-size: var(--it-text-base);
    line-height: 1.7;
    color: var(--it-gray-700);
    max-width: 80ch;
}

.page-cms .page-content h2,
.page-cms .page-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--it-gray-900);
}

.page-cms .page-content img { border-radius: var(--it-radius-sm); margin: 1rem 0; }

.page-cms .page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.page-cms .page-content table td,
.page-cms .page-content table th {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--it-gray-200);
    font-size: var(--it-text-sm);
}

.page-cms .page-content table th {
    background: var(--it-gray-50);
    font-weight: 600;
}

/* My Account pages */
.my-account-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .my-account-links { grid-template-columns: repeat(3, 1fr); }
}

.my-account-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--it-white);
    border: 1px solid var(--it-gray-100);
    border-radius: var(--it-radius-md);
    color: var(--it-gray-700);
    font-weight: 600;
    font-size: var(--it-text-sm);
    text-align: center;
    text-decoration: none;
    transition: all var(--it-transition);
}

.my-account-links a:hover {
    border-color: var(--it-primary);
    color: var(--it-primary);
    box-shadow: var(--it-shadow-sm);
}

.my-account-links a .material-icons,
.my-account-links a i {
    font-size: 32px;
    color: var(--it-primary);
}

/* 404 page */
.page-not-found {
    text-align: center;
    padding: 3rem 1rem;
}

.page-not-found h1 {
    font-size: var(--it-text-3xl);
    color: var(--it-primary);
    margin-bottom: 1rem;
}

.page-not-found p {
    color: var(--it-gray-600);
    margin-bottom: 2rem;
}

/* Search results page */
#search h1 {
    font-size: var(--it-text-xl);
    font-weight: 700;
}

#search .search-filters {
    margin-bottom: 1.5rem;
}

/* Password page / Auth pages */
.page-authentication,
.page-password,
.page-guest {
    max-width: 540px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-authentication h1,
.page-password h1,
.page-guest h1 {
    font-size: var(--it-text-xl);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-authentication .card,
.page-password .card,
.page-guest .card {
    border: 1px solid var(--it-gray-100);
    border-radius: var(--it-radius-md);
    padding: 2rem;
    box-shadow: var(--it-shadow-sm);
}

/* Order confirmation page */
.page-order-confirmation .card {
    border: 1px solid var(--it-gray-100);
    border-radius: var(--it-radius-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.page-order-confirmation h3 {
    font-size: var(--it-text-lg);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Quickview modal */
.quickview .modal-content {
    border-radius: var(--it-radius-md);
    border: none;
    overflow: hidden;
}

.quickview .modal-header {
    border-bottom: 1px solid var(--it-gray-100);
    padding: 1rem 1.5rem;
}

.quickview .modal-body {
    padding: 1.5rem;
}

.quickview .product-cover img {
    border-radius: var(--it-radius-sm);
}

.quickview .product__name,
.quickview h1 {
    font-size: var(--it-text-lg);
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   Product image zoom modal
   ═══════════════════════════════════════════════════════════ */
#product-modal {
    z-index: 1090 !important;
}
#product-modal ~ .modal-backdrop,
#product-modal + .modal-backdrop {
    z-index: 1089 !important;
}
#product-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}
#product-modal .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
    margin: auto;
}
#product-modal .modal-content {
    background: var(--it-white);
    border: none;
    border-radius: var(--it-radius-lg, 12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    overflow: hidden;
}
#product-modal .modal-body {
    padding: 0;
    background: var(--it-white);
}
#product-modal .carousel-inner {
    position: relative;
    overflow: hidden;
}
#product-modal .carousel-item {
    text-align: center;
}
#product-modal .modal-body img {
    max-height: 80vh;
    object-fit: contain;
    max-width: 100%;
}
/* Close button */
#product-modal .btn-close,
#product-modal [data-bs-dismiss="modal"] {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: var(--it-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--it-gray-200);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.15s ease;
    opacity: 1;
}
#product-modal .btn-close:hover,
#product-modal [data-bs-dismiss="modal"]:hover {
    background: var(--it-gray-100);
}
/* Crossfade transition */
#product-modal .carousel-item {
    display: none !important;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
#product-modal .carousel-item.active {
    display: block !important;
    opacity: 1;
}
#product-modal .carousel-item-next,
#product-modal .carousel-item-prev {
    display: block !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
}
#product-modal .carousel-item-next.carousel-item-start,
#product-modal .carousel-item-prev.carousel-item-end {
    opacity: 1;
}
#product-modal .active.carousel-item-start,
#product-modal .active.carousel-item-end {
    opacity: 0;
}
/* Modal carousel arrows */
#product-modal .carousel-control-prev,
#product-modal .carousel-control-next {
    width: 44px;
    height: 44px;
    background: var(--it-white);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid var(--it-gray-200);
    transition: all 0.15s ease;
}
#product-modal .carousel-control-prev { left: 12px; }
#product-modal .carousel-control-next { right: 12px; }
#product-modal .carousel-control-prev:hover,
#product-modal .carousel-control-next:hover {
    background: var(--it-gray-100);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 1;
}
#product-modal .carousel-control-prev-icon,
#product-modal .carousel-control-next-icon {
    filter: invert(0.3);
    width: 16px;
    height: 16px;
}
/* Backdrop */
#product-modal ~ .modal-backdrop.show {
    opacity: 0.75;
    background-color: var(--it-black) !important;
}

.quickview .current-price {
    font-size: var(--it-text-xl);
    font-weight: 800;
    color: var(--it-primary);
}

/* Alerts */
.alert {
    border-radius: var(--it-radius-sm);
    font-size: var(--it-text-sm);
    padding: 0.75rem 1rem;
    border: none;
}

.alert-success { background: var(--it-success-light); color: var(--it-success); }
.alert-warning { background: var(--it-warning-light); color: var(--it-warning); }
.alert-danger { background: var(--it-danger-light); color: var(--it-danger); }
.alert-info { background: var(--it-info-light); color: var(--it-info); }

/* --- 22. Hummingbird-specific Polish --- */
/* Main wrapper spacing */
#wrapper {
    min-height: calc(100vh - 300px);
}

/* Product grid with left-column layout — 2→3→4 responsive */
.layout-left-column #content-wrapper .products.row,
.layout-left-column #content-wrapper .products {
    grid-template-columns: repeat(2, 1fr) !important;
}

@media (min-width: 768px) {
    .layout-left-column #content-wrapper .products.row,
    .layout-left-column #content-wrapper .products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 992px) {
    .layout-left-column #content-wrapper .products.row,
    .layout-left-column #content-wrapper .products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Hide default PS homepage slider — replaced by .it-hero */
#carousel,
.homeslider-container:not(.it-hero),
#homeslider,
#home-slider { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   HERO SECTION — Lovable-style full-width banner
   Editable via BO > Design > Image Slider
   ═══════════════════════════════════════════════════════════ */
.it-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}
/* Hide duplicate slider inside content (rendered via HOOK_HOME) */
#content-wrapper .it-hero { display: none !important; }
/* Only show active slide */
.it-hero__slide {
    position: relative;
    min-height: 380px;
    display: none;
    align-items: center;
}
.it-hero__slide--active {
    display: flex;
}
@media (min-width: 768px) {
    .it-hero__slide { min-height: 440px; }
}
@media (min-width: 1200px) {
    .it-hero__slide { min-height: 500px; }
}

/* Background image + overlay */
.it-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.it-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.it-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        hsla(216, 58%, 20%, 0.92) 0%,
        hsla(216, 58%, 15%, 0.85) 100%
    );
}

/* Content */
.it-hero__content {
    position: relative;
    z-index: 1;
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.it-hero__inner {
    max-width: 640px;
}

.it-hero__subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--it-accent);
    margin-bottom: 1rem;
}

.it-hero__title {
    font-family: var(--it-font-primary);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--it-white);
    margin-bottom: 1rem;
}
.it-hero__title em,
.it-hero__title i {
    font-style: italic;
    font-weight: 700;
}
@media (min-width: 768px) {
    .it-hero__title { font-size: 2.75rem; }
}
@media (min-width: 1200px) {
    .it-hero__title { font-size: 3.25rem; }
}

.it-hero__desc {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.75rem;
    max-width: 520px;
}
.it-hero__desc p { margin: 0; }

/* CTA buttons */
.it-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.it-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    height: 48px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.it-hero__cta--primary {
    background: linear-gradient(135deg, hsl(38 55% 52%) 0%, hsl(38 65% 58%) 100%);
    color: var(--it-white);
}
.it-hero__cta--primary:hover {
    opacity: 0.9;
    color: var(--it-white);
    box-shadow: 0 4px 16px rgba(212,168,83,0.3);
}
.it-hero__cta--outline {
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--it-white);
    background: transparent;
}
.it-hero__cta--outline:hover {
    background: rgba(255,255,255,0.1);
    color: var(--it-white);
}

/* Mobile adjustments */
@media (max-width: 575.98px) {
    .it-hero__slide { min-height: 320px; }
    .it-hero__title { font-size: 1.625rem; }
    .it-hero__desc { font-size: 0.875rem; }
    .it-hero__cta { height: 44px; padding: 0 1.25rem; font-size: 0.8125rem; }
    .it-hero__actions { flex-direction: column; }
}

/* Hummingbird image slider (re-enable after BO config) */
.carousel.it-slider-ready,
#carousel.it-slider-ready {
    border-radius: var(--it-radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.carousel .carousel-item img {
    border-radius: var(--it-radius-md);
}

.carousel .carousel-control-prev,
.carousel .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--it-transition);
    margin: 0 0.75rem;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next { opacity: 1; }

.carousel .carousel-control-prev-icon,
.carousel .carousel-control-next-icon {
    filter: invert(0);
    width: 16px;
    height: 16px;
}

.carousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    opacity: 0.5;
    transition: all var(--it-transition);
}

.carousel .carousel-indicators button.active {
    opacity: 1;
    width: 24px;
    border-radius: 4px;
    background: var(--it-accent);
}

/* Hummingbird mobile menu overlay */
.mobile-menu,
.js-mobile-menu {
    background: var(--it-white);
}

.mobile-menu__header-wrapper {
    background: var(--it-primary);
    color: var(--it-white);
}

.mobile-menu__close { color: var(--it-white) !important; }

.mobile-menu__link {
    padding: 0.875rem 0;
    font-size: var(--it-text-base);
    color: var(--it-gray-800);
    border-bottom: 1px solid var(--it-gray-50);
    min-height: 44px;
}

.mobile-menu__footer {
    background: var(--it-gray-50);
    border-top: 1px solid var(--it-gray-100);
}

.mobile-menu__footer a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--it-gray-700);
    font-weight: 500;
}

/* Email subscription widget */
.block-newsletter {
    background: var(--it-primary-light);
    border-radius: var(--it-radius-md);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.block-newsletter h2 {
    font-size: var(--it-text-lg);
    font-weight: 700;
    color: var(--it-primary);
    margin-bottom: 0.5rem;
}

.block-newsletter p {
    font-size: var(--it-text-sm);
    color: var(--it-gray-600);
    margin-bottom: 1rem;
}

.block-newsletter form {
    display: flex;
    gap: 0.5rem;
    max-width: 420px;
    margin: 0 auto;
}

.block-newsletter input[type="email"] {
    flex: 1;
    height: 44px;
}

.block-newsletter .btn {
    background: var(--it-primary);
    color: var(--it-white);
    white-space: nowrap;
    height: 44px;
}

.block-newsletter .btn:hover {
    background: var(--it-primary-hover);
}

/* Product quickview button */
.product-miniature .quick-view {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    background: var(--it-white);
    border: 1px solid var(--it-gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(4px);
    transition: all var(--it-transition);
    cursor: pointer;
    z-index: 3;
}

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

.product-miniature .quick-view:hover {
    background: var(--it-primary);
    color: var(--it-white);
    border-color: var(--it-primary);
}

/* Empty state / no products */
.no-products {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--it-gray-500);
}

.no-products p {
    font-size: var(--it-text-lg);
    margin-bottom: 1rem;
}

/* Account pages - order history, addresses */
.order-list .order-item,
.address-item {
    background: var(--it-white);
    border: 1px solid var(--it-gray-100);
    border-radius: var(--it-radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: box-shadow var(--it-transition);
}

.order-list .order-item:hover,
.address-item:hover { box-shadow: var(--it-shadow-sm); }

/* --- Manufacturers / Brands page --- */
.page-manufacturer #content,
.page-manufacturer .brand-list,
#manufacturer .brand {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 576px) {
    .page-manufacturer #content,
    .page-manufacturer .brand-list,
    #manufacturer .brand { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
    .page-manufacturer #content,
    .page-manufacturer .brand-list,
    #manufacturer .brand { grid-template-columns: repeat(4, 1fr); }
}

.page-manufacturer .brand,
.brand-list .brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: var(--it-white);
    border: 1px solid var(--it-gray-100);
    border-radius: var(--it-radius-md);
    text-align: center;
    transition: all var(--it-transition);
    text-decoration: none;
    color: var(--it-gray-800);
}

.page-manufacturer .brand:hover {
    border-color: var(--it-primary);
    box-shadow: var(--it-shadow-sm);
    transform: translateY(-2px);
}

.page-manufacturer .brand img,
.brand-list .brand img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 0.25rem;
}

/* Hide broken manufacturer images */
.page-manufacturer .brand img[src*="--"] {
    display: none;
}

.page-manufacturer .brand .brand-infos {
    font-size: var(--it-text-sm);
    font-weight: 600;
    color: var(--it-gray-800);
}

.page-manufacturer .brand .brand-products {
    font-size: var(--it-text-xs);
    color: var(--it-gray-500);
}

.page-manufacturer h1 {
    font-size: var(--it-text-2xl);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* --- 23. Accessibility Enhancements --- */
/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--it-primary);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    background: var(--it-primary);
    color: var(--it-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--it-radius-sm);
    font-weight: 600;
    transition: top var(--it-transition);
}

.skip-to-content:focus {
    top: 0.5rem;
    color: var(--it-white);
}

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

/* --- 24. Print Styles --- */
@media print {
    .it-topbar,
    .header-top,
    .it-nav-bar,
    .it-header-main__search,
    .it-header-main__actions,
    .it-footer,
    .footer,
    #footer,
    .breadcrumb,
    .products-sort-order,
    .pagination,
    .product-add-to-cart,
    .blockreassurance,
    .it-cta,
    .offcanvas { display: none !important; }

    body { font-size: 12pt; color: #000; background: #fff; }

    a { color: #000; text-decoration: underline; }

    .product-miniature .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }

    .it-pdp__gallery, .images-container { position: static; }

    .it-pdp__grid, #product .row { grid-template-columns: 1fr 1fr; }
}


/* =====================================================================
   404 PAGE
   ===================================================================== */
.page-not-found {
    padding: var(--it-space-12) 0;
}
.page-not-found .display-1 {
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 800;
    color: var(--it-gray-200);
    line-height: 1;
    margin-bottom: var(--it-space-4);
}
.page-not-found h1 {
    color: var(--it-primary);
    margin-bottom: var(--it-space-3);
}
.page-not-found p {
    color: var(--it-gray-600);
    margin-bottom: var(--it-space-6);
}


/* =====================================================================
   LOGIN / AUTH PAGE
   ===================================================================== */
.login {
    padding: var(--it-space-8) 0;
}
.login hr {
    border-color: var(--it-gray-200);
    opacity: 1;
}
.login__register-prompt {
    text-align: center;
}
.login__register-prompt h2 {
    color: var(--it-primary);
}
#submit-login {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}


/* =====================================================================
   CONTACT PAGE
   ===================================================================== */
.it-contact-sidebar {
    background: var(--it-gray-50);
    border-radius: var(--it-radius-lg);
    padding: var(--it-space-6);
    border: 1px solid var(--it-gray-200);
}
.it-contact-sidebar__title {
    color: var(--it-primary);
    font-size: var(--it-text-lg);
    font-weight: 700;
    margin-bottom: var(--it-space-5);
    padding-bottom: var(--it-space-3);
    border-bottom: 2px solid var(--it-accent);
}
.it-contact-sidebar__item {
    display: flex;
    align-items: flex-start;
    gap: var(--it-space-3);
    margin-bottom: var(--it-space-4);
    color: var(--it-gray-700);
}
.it-contact-sidebar__item .material-icons {
    color: var(--it-accent);
    font-size: 1.25rem;
    margin-top: 2px;
}
.it-contact-sidebar__item a {
    color: var(--it-primary);
    font-weight: 600;
}
.it-contact-sidebar__item small {
    display: block;
    color: var(--it-gray-500);
    font-size: var(--it-text-xs);
    margin-top: 2px;
}

/* Contact form styling */
.login-form header h1 {
    color: var(--it-primary);
}
.login-form .form-fields .form-label {
    font-weight: 600;
    color: var(--it-gray-700);
    font-size: var(--it-text-sm);
}
.login-form .form-fields .form-control,
.login-form .form-fields .form-select {
    border-radius: var(--it-radius-md);
    border-color: var(--it-gray-300);
    padding: 0.625rem 0.875rem;
}
.login-form .form-fields .form-control:focus,
.login-form .form-fields .form-select:focus {
    border-color: var(--it-primary);
    box-shadow: 0 0 0 0.2rem rgba(26,54,93,0.15);
}
.login-form .form-footer .btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
}
