/* Page-specific styles for products.html */
/* Hero */
      .hero {
        position: relative;
        overflow: hidden;
        border-bottom: 1px solid var(--border);
        background: radial-gradient(1200px 500px at 70% -10%, rgba(217,181,69,0.08), transparent),
          linear-gradient(var(--bg), var(--bg));
        min-height: 520px;
        display: flex;
        align-items: center;
      }
      .hero-background {
        position: absolute;
        inset: 0;
        overflow: hidden;
        z-index: 0;
      }
      .hero-background picture {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
      }
      .hero-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 85%;
        position: absolute;
        inset: 0;
        display: block;
        transform: none;
        filter: saturate(110%);
        opacity: 0;
        transition: opacity 0.8s ease;
        pointer-events: none;
      }
      .hero-background[data-category="smart-wall"] img {
        object-position: center 60%;
      }
      .hero-background img.hero-image--active {
        opacity: 1;
        z-index: 0;
      }
      .hero-background img.hero-image--previous {
        opacity: 0;
        z-index: -1;
      }
      .hero-background::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(10,10,10,0.62) 0%, rgba(10,10,10,0.38) 34%, rgba(10,10,10,0.16) 62%, rgba(10,10,10,0.06) 82%, rgba(10,10,10,0.12) 100%);
        z-index: 2;
      }
      .hero-blur-layer {
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        mask-image: linear-gradient(270deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 36%, rgba(0,0,0,0.28) 58%, rgba(0,0,0,0.62) 78%, rgba(0,0,0,0.88) 94%, rgba(0,0,0,1) 100%);
        -webkit-mask-image: linear-gradient(270deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 36%, rgba(0,0,0,0.28) 58%, rgba(0,0,0,0.62) 78%, rgba(0,0,0,0.88) 94%, rgba(0,0,0,1) 100%);
      }
      .hero-overlay {
        position: relative;
        z-index: 1;
        width: 100%;
        padding: 80px 0;
      }
      .hero-copy {
        max-width: 640px;
        text-align: left;
      }
      .eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: 0.18em; font-size: 1.2em; margin-bottom: 10px; }
      .hero h1 { font-size: 48px; line-height: 1.15; margin: 0 0 20px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.25), 0 6px 12px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(0, 0, 0, 0.15); }
      .hero p { font-size: 1.1em; line-height: 1.6; color: var(--muted); margin: 0; }
      html.pref-high-contrast .hero-background::before {
        background: linear-gradient(90deg, rgba(248,250,252,0.95) 0%, rgba(248,250,252,0.82) 40%, rgba(248,250,252,0.48) 70%, rgba(248,250,252,0.2) 90%, rgba(248,250,252,0.45) 100%);
      }
      html.pref-high-contrast .hero-blur-layer {
        mask-image: linear-gradient(270deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.85) 74%, rgba(0,0,0,1) 94%, rgba(0,0,0,1) 100%);
        -webkit-mask-image: linear-gradient(270deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.85) 74%, rgba(0,0,0,1) 94%, rgba(0,0,0,1) 100%);
      }

      /* Catalog Controls */
      .catalog-controls { padding: 12px 0; background: var(--bg); position: sticky; top: calc(var(--header-top-height, 0px) + 27px); z-index: 400; backdrop-filter: saturate(140%) blur(8px); background: rgba(36,36,36,0.8); border-bottom: 1px solid var(--border); transition: transform 0.3s ease; }
      .catalog-controls.sticky-active { transform: translateY(0); }
      
      /* Hide header when catalog controls is sticky */
      header.header-hidden { transform: translateY(-100%); transition: transform 0.3s ease; }
      .header-bottom.nav-hidden { opacity: 0; pointer-events: none; }
      .nav-wrapper.nav-hidden .menu a { opacity: 0; pointer-events: none; }
      .catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
      .catalog-actions { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
      .search-bar { flex: 0 0 240px; max-width: 320px; margin: 0; position: relative; width: 100%; }
      .search-bar input { width: 100%; padding: 12px 46px 12px 18px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 15px; outline: none; }
      .search-bar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,181,69,0.15); }
      .search-bar i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
      .search-bar .fa-local-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
      .page-size-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
      .page-size-control label { color: inherit; font-size: inherit; margin: 0; }
      .page-size-select { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: 13px; outline: none; min-width: 72px; }
      .page-size-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,181,69,0.15); }
      
      .filters { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; flex: 1 1 auto; }
      .filter-btn { padding: 8px 12px; background: transparent; border: none; border-radius: 6px; color: var(--text); opacity: 0.9; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s ease; }
      .filter-btn:hover { opacity: 1; background: rgba(217,181,69,0.08); }
      .filter-btn.active { color: var(--accent); background: rgba(217,181,69,0.1); font-weight: 600; opacity: 1; }
      
      /* Hide mobile buttons on desktop */
      .mobile-collapse-btn,
      .mobile-search-btn {
        display: none;
      }

      
      /* Product Grid */
      .products-section { padding: 60px 0; }
      .results-info { text-align: center; color: var(--muted); margin-bottom: 30px; font-size: 14px; }
      .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
      .garage-doors-static {
        display: none;
        grid-template-columns: repeat(2, minmax(340px, 1fr));
        gap: 30px;
      }
      .lighting-static {
        display: none;
      }
      .lighting-layout {
        display: grid;
        gap: 24px;
      }
      .lighting-intro {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 28px;
        background:
          linear-gradient(135deg, rgba(217,181,69,0.08), rgba(217,181,69,0.02) 38%, rgba(255,255,255,0) 100%),
          var(--card);
        box-shadow: 0 18px 34px rgba(0,0,0,0.18);
      }
      .lighting-intro h3 {
        margin: 0 0 12px;
        color: var(--accent);
        font-size: 28px;
      }
      .lighting-intro p {
        margin: 0;
        color: var(--muted);
        font-size: 15px;
        line-height: 1.8;
      }
      .lighting-summary-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
      }
      .lighting-summary-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 22px;
        box-shadow: 0 14px 30px rgba(0,0,0,0.14);
      }
      .lighting-summary-card.wide {
        grid-column: 1 / -1;
      }
      .lighting-summary-card h4 {
        margin: 0 0 10px;
        color: var(--text);
        font-size: 19px;
      }
      .lighting-summary-card p,
      .lighting-summary-card li {
        color: var(--muted);
        font-size: 14px;
        line-height: 1.6;
      }
      .lighting-summary-card ul {
        margin: 0;
        padding-left: 18px;
      }
      .lighting-groups {
        display: grid;
        gap: 22px;
      }
      .lighting-group {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 18px;
      }
      .lighting-group h4 {
        margin: 0 0 8px;
        color: var(--text);
        font-size: 18px;
      }
      .lighting-group p {
        margin: 0;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.6;
      }
      .lighting-products-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
      }
      .lighting-family-card {
        display: grid;
        grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
        gap: 24px;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 24px;
        align-items: stretch;
        box-shadow: 0 18px 36px rgba(0,0,0,0.16);
      }
      .lighting-family-card:nth-child(even) {
        grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
      }
      .lighting-family-card:nth-child(even) .lighting-family-media {
        order: 2;
      }
      .lighting-family-card:nth-child(even) .lighting-family-content {
        order: 1;
      }
      .lighting-family-media {
        min-height: 200px;
        width: 90%;
        border-radius: 18px;
        border: 1px solid rgba(217,181,69,0.22);
        background:
          radial-gradient(circle at top, rgba(217,181,69,0.12), rgba(217,181,69,0.02) 40%, rgba(255,255,255,0) 72%),
          linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
          #2e2e2e;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 26px;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.6;
        overflow: hidden;
        margin: 0 auto;
      }
      .lighting-family-media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 14px;
        display: block;
        margin: 0 auto;
      }
      .lighting-family-content {
        display: grid;
        align-content: start;
        gap: 12px;
      }
      .lighting-family-content h4 {
        margin: 0 0 6px;
        color: var(--accent);
        font-size: 24px;
        line-height: 1.2;
      }
      .lighting-family-tag {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(217,181,69,0.12);
        color: var(--accent);
        font-size: 12px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }
      .lighting-family-content p {
        margin: 0;
        color: var(--muted);
        font-size: 15px;
        line-height: 1.75;
      }
      .lighting-specs-list {
        margin: 0;
        padding-left: 18px;
        display: grid;
        gap: 10px;
      }
      .lighting-specs-list li {
        color: var(--muted);
        font-size: 14px;
        line-height: 1.65;
      }
      .lighting-products-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
      }
      .lighting-products-heading h4 {
        margin: 0;
        color: var(--accent);
        font-size: 22px;
      }
      .lighting-empty {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 18px;
        color: var(--muted);
        font-size: 14px;
      }
      @media (max-width: 720px) {
        .lighting-summary-grid {
          grid-template-columns: 1fr;
        }
        .lighting-family-card {
          grid-template-columns: 1fr;
          padding: 18px;
        }
        .lighting-family-card:nth-child(even) .lighting-family-media,
        .lighting-family-card:nth-child(even) .lighting-family-content {
          order: initial;
        }
        .lighting-family-media {
          min-height: 170px;
          width: 100%;
        }
        .lighting-family-media img {
          width: 100%;
          height: 100%;
        }
        .garage-doors-static {
          grid-template-columns: 1fr;
          gap: 20px;
        }
        .lighting-products-grid {
          grid-template-columns: 1fr;
          gap: 16px;
        }
      }
      .garage-door-card .product-image {
        min-height: 260px;
      }
      .garage-door-card .product-body {
        display: flex;
        flex-direction: column;
        gap: 12px;
      }
      .garage-door-card .product-description {
        font-size: 15px;
      }
      .product-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; cursor: pointer; transition: all 0.3s; display: flex; flex-direction: column; }
      .product-docs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: auto;
        padding-top: 10px;
      }
      .product-docs-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 44px;
        padding: 8px 12px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: transparent;
        color: var(--text);
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        flex: 1 1 calc(50% - 4px);
      }
      .product-docs-link i { font-size: 14px; color: var(--accent); width: auto; height: auto; }
      .product-docs-link:hover { border-color: var(--accent); background: var(--bg-2); }
      .modal-body .product-docs { margin: 0 0 12px; }
      .product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); border-color: var(--accent); }
      .product-image { position: relative; height: 220px; background: #ffffff; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 220px; }
      .product-card .product-image img:not(.product-brand-corner) { height: 100%; width: 100%; object-fit: cover; }
      .product-image i { font-size: 64px; color: var(--accent); width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; }
      .product-brand-corner {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 6;
        height: 25px;
        width: auto;
        max-width: 32%;
        object-fit: contain;
        background: transparent;
        border: 0;
        padding: 0;
        transform: none;
        pointer-events: none;
      }
      .product-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 5;
        display: inline-flex;
        align-items: center;
        gap: 0;
        height: 32px;
        padding: 0 11px;
        border-radius: 999px;
        background: rgba(10,10,10,0.9);
        color: var(--accent);
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
      }
      .product-badge i {
        font-size: 16px;
        width: 15px;
        height: 32px;
        margin-right: 0;
      }
      .product-badge span {
        margin-left: 10px;
      }
      .product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
      .product-title { font-size: 20px; margin: 0 0 6px; font-weight: 600; }
      .product-description { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }
      .modal-panel-group {
        display: flex;
        flex-direction: column;
        gap: 14px;
        height: 100%;
        min-height: 0;
        padding: 4px 2px 2px;
      }
      .modal-dropdown {
        background:
          linear-gradient(165deg, rgba(217,181,69,0.07) 0%, transparent 42%),
          var(--bg-2);
        border: 1px solid rgba(217,181,69,0.22);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
      }
      .modal-dropdown.open {
        border-color: rgba(217,181,69,0.45);
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,0.05),
          0 0 0 1px rgba(217,181,69,0.08);
      }
      .modal-dropdown-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: transparent;
        border: 0;
        color: var(--text);
        padding: 15px 16px;
        cursor: pointer;
        font: inherit;
        text-align: left;
        transition: background 0.2s ease;
      }
      .modal-dropdown-toggle:hover {
        background: rgba(217,181,69,0.1);
      }
      .modal-dropdown-toggle:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: -2px;
      }
      .modal-dropdown-label {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
      }
      .modal-dropdown-meta {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
      }
      .modal-dropdown-count {
        min-width: 1.6em;
        height: 1.6em;
        padding: 0 7px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(217,181,69,0.18);
        border: 1px solid rgba(217,181,69,0.4);
        color: var(--accent);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.02em;
      }
      .modal-dropdown-toggle i {
        color: var(--accent);
        font-size: 12px;
        transition: transform 0.25s ease;
      }
      .modal-dropdown.open .modal-dropdown-toggle i {
        transform: rotate(180deg);
      }
      .modal-dropdown-content {
        display: none;
        padding: 0 12px 14px;
        animation: modalDropdownIn 0.22s ease;
      }
      .modal-dropdown.open .modal-dropdown-content {
        display: block;
      }
      @keyframes modalDropdownIn {
        from { opacity: 0; transform: translateY(-4px); }
        to { opacity: 1; transform: translateY(0); }
      }
      .product-components {
        background: transparent;
        border: 0;
        border-radius: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
      }
      .product-components h4 {
        margin: 0;
        font-size: 15px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--muted);
      }
      .product-components-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-height: 320px;
        overflow-y: auto;
        padding-right: 4px;
        scrollbar-width: thin;
        scrollbar-color: rgba(217,181,69,0.65) rgba(255,255,255,0.06);
      }
      .product-components-grid::-webkit-scrollbar { width: 8px; }
      .product-components-grid::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); border-radius: 8px; }
      .product-components-grid::-webkit-scrollbar-thumb { background: rgba(217,181,69,0.65); border-radius: 8px; }
      .product-components-grid::-webkit-scrollbar-thumb:hover { background: rgba(217,181,69,0.9); }
      .product-components--modal .product-components-grid {
        max-height: calc((108px * 4) + (10px * 3));
        min-height: 0;
        overflow-y: auto;
      }
      .product-components--modal h4 { flex-shrink: 0; }
      .product-component {
        background: rgba(0,0,0,0.22);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 12px;
        padding: 10px;
        display: flex;
        gap: 12px;
        align-items: center;
        min-height: 0;
        transition: border-color 0.2s ease, background 0.2s ease;
      }
      .product-component:hover {
        border-color: rgba(217,181,69,0.35);
        background: rgba(217,181,69,0.06);
      }
      .product-component-image {
        width: 72px;
        min-width: 72px;
        aspect-ratio: 1;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .product-component-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .product-component-details {
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
        text-align: left;
        min-width: 0;
      }
      .product-component-description {
        font-size: 13px;
        font-weight: 600;
        color: var(--text);
        line-height: 1.35;
      }
      .product-component-code {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.06em;
        color: var(--accent);
        text-transform: uppercase;
      }
      .product-component-quantity {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.04em;
        color: var(--muted);
        text-transform: uppercase;
      }
      .product-components-empty {
        color: var(--muted);
        font-size: 13px;
        margin: 0;
        padding: 8px 4px;
      }
      .similar-products-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
        max-height: 360px;
        overflow-y: auto;
        padding-right: 4px;
        scrollbar-width: thin;
        scrollbar-color: rgba(217,181,69,0.65) rgba(255,255,255,0.06);
      }
      .similar-products-grid::-webkit-scrollbar { width: 8px; }
      .similar-products-grid::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); border-radius: 8px; }
      .similar-products-grid::-webkit-scrollbar-thumb { background: rgba(217,181,69,0.65); border-radius: 8px; }
      .similar-products-grid::-webkit-scrollbar-thumb:hover { background: rgba(217,181,69,0.9); }
      .similar-product-item {
        width: 100%;
        background: rgba(0,0,0,0.22);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 12px;
        padding: 8px;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        text-align: left;
        font: inherit;
        color: inherit;
        transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
      }
      .similar-product-item:hover {
        border-color: rgba(217,181,69,0.45);
        background: rgba(217,181,69,0.08);
        transform: translateX(2px);
      }
      .similar-product-item:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }
      .similar-product-media {
        width: 64px;
        min-width: 64px;
        height: 64px;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(0,0,0,0.08);
      }
      .similar-product-media > div {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
      }
      .similar-product-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
      .similar-product-media i {
        font-size: 22px;
        color: var(--accent);
      }
      .similar-product-details {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
        flex: 1;
      }
      .similar-product-name {
        color: var(--text);
        font-size: 13px;
        font-weight: 600;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .similar-product-match {
        color: var(--accent);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
      }
      .product-components--modal { flex: none; overflow: visible; }
      html.pref-high-contrast .modal-dropdown {
        background: var(--bg-2);
        border-color: rgba(17,24,39,0.2);
      }
      html.pref-high-contrast .modal-dropdown-count {
        background: rgba(17,24,39,0.08);
        border-color: rgba(17,24,39,0.2);
        color: var(--text);
      }
      html.pref-high-contrast .product-components {
        background: transparent;
        border-color: transparent;
      }
      html.pref-high-contrast .product-component,
      html.pref-high-contrast .similar-product-item {
        background: var(--bg);
        border-color: rgba(17,24,39,0.12);
      }
      html.pref-high-contrast .product-component-image,
      html.pref-high-contrast .similar-product-media {
        background: rgba(17,24,39,0.08);
      }
      html.pref-high-contrast .product-component-description,
      html.pref-high-contrast .product-component-code,
      html.pref-high-contrast .product-component-quantity,
      html.pref-high-contrast .similar-product-name,
      html.pref-high-contrast .similar-product-match {
        color: var(--text);
      }
      @media (prefers-reduced-motion: reduce) {
        .modal-dropdown-content { animation: none; }
        .similar-product-item { transition: none; }
        .similar-product-item:hover { transform: none; }
        .modal-dropdown-toggle i { transition: none; }
      }
      .no-results { text-align: center; padding: 80px 20px; }
      .catalogue-index {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }
      .no-results i { font-size: 64px; color: var(--muted); margin-bottom: 20px; }
      .no-results p { color: var(--muted); font-size: 18px; }
      .pagination { display: none; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
      .pagination .page-btn { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
      .pagination .page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
      .pagination .page-btn[aria-current="true"] { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); cursor: default; }
      .pagination .page-btn:disabled { opacity: 0.45; cursor: not-allowed; }
      .pagination .page-ellipsis { color: var(--muted); padding: 10px 6px; font-size: 14px; }

      /* Product Modal */
      .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
      .modal.active { display: flex; }
      .modal-content { background: var(--card); border: 1px solid var(--border); border-radius: 20px; max-width: 940px; width: 100%; max-height: 90vh; position: relative; display: flex; flex-direction: column; overflow: hidden; transition: max-width 0.2s ease; }
      .modal-content.modal--has-components { max-width: 1140px; }
      .modal-close { position: absolute; top: 20px; right: 20px; background: var(--bg-2); border: 1px solid var(--border); width: 40px; height: 40px; border-radius: 50%; color: var(--text); font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; transition: all 0.2s; }
      .modal-close:hover { background: var(--accent); color: var(--accent-contrast); }
      .modal-layout { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px; min-height: 0; }
      .modal-content.modal--has-components .modal-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
      .modal-main { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
      .modal-image { height: 286px; background: #ffffff; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 286px; flex-shrink: 0; border-radius: 8px; }
      .modal-image img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
      .modal-image i { font-size: 120px; color: var(--accent); width: 120px; height: 120px; display: inline-flex; align-items: center; justify-content: center; }
      .modal-body { padding: 0; display: flex; flex-direction: column; gap: 0; min-height: 0; }
      .modal-title { font-size: 28px; margin: 0 0 8px; }
      .modal-description { color: var(--text); font-size: 14px; line-height: 1.3; margin: 0 0 8px; }
      .modal-description h3 { font-size: 18px; font-weight: 600; margin: 0 0 4px; color: var(--text); line-height: 1.2; }
      .modal-description p { margin: 0 0 4px; color: var(--text); font-size: 14px; line-height: 1.3; }
      .modal-description p:last-child { margin-bottom: 0; }
      .modal-description .benefits-title, #modal-benefits .benefits-title { font-size: 16px; font-weight: 600; margin: 8px 0 4px; color: var(--text); }
      .modal-description .benefits-list, #modal-benefits .benefits-list { list-style: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 12px; }
      .modal-description .benefits-list li, #modal-benefits .benefits-list li { padding: 1px 0 1px 16px; position: relative; color: var(--text); line-height: 1.2; font-size: 14px; display: block; }
      .modal-description .benefits-list li:before, #modal-benefits .benefits-list li:before { content: '•'; position: absolute; left: 0; color: var(--text); font-size: 14px; }
      #modal-benefits { margin: 0 0 10px; }
      .modal-specs { margin: 0 0 10px; }
      .modal-specs h3 { font-size: 18px; margin: 0 0 8px; color: var(--text); }
      .specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px; }
      .spec-item { background: var(--bg-2); padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border); }
      .spec-label { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
      .spec-value { font-size: 15px; color: var(--text); font-weight: 600; }
      .modal-cta { display: flex; gap: 12px; margin-top: 8px; }
      .modal-cta .btn-primary { flex: 1; justify-content: center; padding: 10px 16px; }
      .modal-cta .btn-secondary { flex: 1; justify-content: center; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 14px; }
      .modal-cta .btn-secondary:hover { background: var(--bg-2); border-color: var(--accent); }
      .modal-components-panel { display: none; align-self: stretch; height: 100%; min-height: 0; }
      .modal-components-panel.active { display: flex; flex-direction: column; min-height: 0; }
      .modal-components-panel-mobile { display: none; margin-top: 20px; }
      .modal-components-panel-mobile.active { display: flex; flex-direction: column; }
      @media (min-width: 721px) {
        .modal-components-panel-mobile { display: none !important; }
      }
      @media (max-width: 720px) {
        .modal-components-panel { display: none !important; }
      }

      /* Responsive */
      @media (max-width: 960px) {
        .catalog-toolbar { gap: 12px; }
        .filters { gap: 6px; }
        .filter-btn { padding: 8px 10px; font-size: 13px; }
        .search-bar { flex: 0 1 200px; }
        .products-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
        .hero { min-height: 420px; }
        .hero-overlay { padding: 80px 0; }
        .hero h1 { font-size: 40px; }
        .hero p { max-width: none; }
      }
        @media (max-width: 720px) {
          .catalog-controls { top: var(--header-height, 0px); }
          .hero { min-height: 90px; }
        .hero-overlay { padding: 30px 0 25px; }
        .hero h1 { font-size: 30px; }
        .hero-background::after { backdrop-filter: blur(10px); }
        .catalog-toolbar { display: grid; grid-template-columns: 1fr; gap: 12px; }
        .catalog-actions { display: contents; }
        .search-bar { grid-column: 1; grid-row: 1; display: none; }
        .filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; grid-column: 1; grid-row: 2; position: relative; }
        .filter-btn { width: 100%; text-align: center; padding: 10px 8px; font-size: 12px; }
        .page-size-control { display: none; }
        .mobile-collapse-btn { width: 100%; grid-column: 2; grid-row: 3; display: flex !important; flex-direction: column; align-items: center; justify-content: center; padding: 10px 8px; background: transparent; border: none; border-radius: 6px; color: var(--text); opacity: 0.9; font-size: 16px; cursor: pointer; transition: all 0.2s ease; box-sizing: border-box; }
        .mobile-collapse-btn:hover { opacity: 1; background: rgba(217,181,69,0.08); }
        .mobile-collapse-btn i { font-size: 18px; transition: transform 0.3s ease; }
        .filters.collapsed .filter-btn:nth-child(1),
        .filters.collapsed .filter-btn:nth-child(2),
        .filters.collapsed .filter-btn:nth-child(3),
        .filters.collapsed .filter-btn:nth-child(4),
        .filters.collapsed .filter-btn:nth-child(5),
        .filters.collapsed .filter-btn:nth-child(6) { display: none; }
        .filters.collapsed .filter-btn.collapsed-first { display: block !important; grid-column: 1; grid-row: 1; }
        .filters.collapsed .filter-btn:not(.collapsed-first) { display: none; }
        .filters.collapsed .mobile-collapse-btn { grid-column: 2; grid-row: 1; }
        .filters.collapsed .mobile-collapse-btn i { transform: rotate(180deg); }
        .filters.collapsed .mobile-search-btn { grid-column: 3; grid-row: 1; }
        .mobile-search-btn { width: 100%; grid-column: 3; grid-row: 3; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 8px; background: transparent; border: none; border-radius: 6px; color: var(--text); opacity: 0.9; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; box-sizing: border-box; }
        .mobile-search-btn:hover { opacity: 1; background: rgba(217,181,69,0.08); }
        .mobile-search-btn i { font-size: 16px; }
        .mobile-search-btn span { font-size: 10px; }
        .mobile-search-bar { grid-column: 1; grid-row: 3; display: flex; align-items: center; gap: 8px; padding: 12px 0; margin-top: 0; }
        .mobile-search-bar input { flex: 1; padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 15px; outline: none; }
        .mobile-search-bar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,181,69,0.15); }
        .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
        .product-card { min-width: 0; max-width: 100%; }
        .product-card .product-image { height: 180px; min-height: 180px; overflow: hidden; }
        .product-card .product-image img:not(.product-brand-corner) { width: 100%; height: 100%; object-fit: cover; transform: none; }
        .product-body { padding: 12px; }
        .product-title { font-size: 14px; margin: 0 0 6px; }
        .product-description { font-size: 11px; line-height: 1.4; }
        .modal-content { border-radius: 0; max-height: calc(100vh - 80px); overflow-y: auto; }
        .modal-layout { padding: 20px; padding-bottom: 100px; }
        .modal-content.modal--has-components .modal-layout { grid-template-columns: minmax(0, 1fr); }
        .modal-main { order: 1; }
        .modal-components-panel { order: 2; margin-top: 20px; }
        .modal-components-panel-mobile .product-components-grid {
          max-height: 400px;
          overflow-y: auto;
        }
        .modal-image { height: 260px; overflow: hidden; }
        .modal-image img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.4); }
        .modal-title { font-size: 24px; }
        .modal-cta { flex-direction: column; margin-bottom: 20px; }
        .modal-spacer-mobile { height: 60px; flex-shrink: 0; }
      }
