.nav-products { display: flex; align-items: center; }
.product-menu-toggle { display: grid; place-items: center; width: 24px; height: 42px; padding: 0; color: white; border: 0; background: transparent; cursor: pointer; }
.product-menu-toggle span { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.product-mega-menu { position: absolute; top: 100%; left: max(20px, calc((100% - 1240px) / 2)); right: max(20px, calc((100% - 1240px) / 2)); max-height: min(740px, calc(100dvh - 140px)); overflow-y: auto; padding: 28px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 0 0 14px 14px; box-shadow: 0 22px 50px rgba(0, 0, 0, .2); }
.product-mega-menu[hidden] { display: none; }
.mega-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.mega-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 32px; padding-top: 22px; }
.desktop-nav .product-mega-menu a:not(.btn) { display: inline-block; padding: 3px 0; color: var(--ink); text-shadow: none; font-size: .85rem; font-weight: 500; }
.desktop-nav .product-mega-menu a:not(.btn)::after { display: none; }
.desktop-nav .product-mega-menu a:hover { color: var(--blue); text-decoration: underline; }
.desktop-nav .product-mega-menu .mega-group-title:not(.btn) { font-size: 1rem; font-weight: 800; }
.mega-groups p { margin: 5px 0 10px; font-size: .76rem; line-height: 1.5; color: var(--slate); }
.mega-groups ul { margin: 0; padding: 0; list-style: none; }
.nav-search-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 9px; padding: 12px 0; color: white; border: 0; background: transparent; cursor: pointer; font-size: .88rem; font-weight: 700; }
.search-symbol { position: relative; display: block; width: 15px; height: 15px; margin-right: 4px; border: 2px solid currentColor; border-radius: 50%; }
.search-symbol::after { content: ''; position: absolute; width: 7px; height: 2px; right: -6px; bottom: -3px; background: currentColor; transform: rotate(45deg); }
.nav-search-mobile { display: none; }
.product-search-open { overflow: hidden; }
.product-search-dialog { width: min(1180px, calc(100% - 40px)); max-height: calc(100dvh - 48px); padding: 32px; border: 0; border-radius: 16px; color: var(--ink); background: var(--ice); }
.product-search-dialog::backdrop, .product-image-dialog::backdrop { background: rgba(3, 13, 23, .8); }
.search-dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 24px; margin-bottom: 26px; }
.search-dialog-heading h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.search-dialog-heading .kicker { margin-bottom: 10px; }
.dialog-close { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; color: var(--ink); border: 1px solid #b8c8d4; border-radius: 50%; background: white; cursor: pointer; font-size: 28px; line-height: 1; }
.product-search-form label, .catalog-search-controls label { display: block; color: var(--ink); font-size: .85rem; font-weight: 700; }
.search-input-row { display: flex; gap: 12px; margin-top: 8px; }
.product-search-form input, .product-search-form select, .catalog-search-controls input, .catalog-search-controls select { min-height: 50px; width: 100%; padding: 12px 14px; color: var(--ink); border: 1px solid #aebfce; border-radius: 6px; background: #fff; font: inherit; font-size: 16px; }
.search-input-row input { min-width: 0; flex: 1; }
.search-family-label { margin-top: 16px; margin-bottom: 8px; }
.product-search-form select { max-width: 380px; }
.search-status { min-height: 24px; margin: 22px 0; color: var(--slate); }
.search-results { gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.search-results .product-media { display: block; min-height: 0; height: 210px; padding: 20px; }
.search-results .product-media img { width: 100%; height: 170px; object-fit: contain; }
.search-results .product-badge { max-width: calc(100% - 20px); font-size: .65rem; }
.search-results .product-copy { padding: 20px; }
.search-results h3 { font-size: 1.1rem; line-height: 1.3; overflow-wrap: anywhere; }
.search-results .product-copy > p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-more, .search-retry { margin-top: 24px; }
.search-more[hidden], .search-retry[hidden] { display: none; }
.card-customization { margin: 15px 0; color: var(--slate); font-size: .73rem; line-height: 1.6; }
.card-customization b { display: block; margin-bottom: 6px; color: var(--ink); font-size: .72rem; letter-spacing: .04em; }
.card-customization > div, .product-customization > div { display: flex; flex-wrap: wrap; gap: 6px; }
.card-customization > div > span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--ice); }
.catalog-search-controls { display: grid; grid-template-columns: 1.5fr 1fr auto; align-items: end; gap: 18px; margin-bottom: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--ice); }
.catalog-search-controls input, .catalog-search-controls select { display: block; margin-top: 8px; }
#catalog { scroll-margin-top: 24px; }
[data-product-detail] .page-hero { padding: 162px 0 38px; }
[data-product-detail] .page-hero h1 { max-width: 1000px; font-size: clamp(2rem, 4vw, 3.5rem); }
[data-product-detail] .page-hero p { max-width: 820px; font-size: 1rem; }
[data-product-detail] .product-main-section { padding: 48px 0 70px; }
.product-main-section .split { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; }
.product-main-section .product-media { position: relative; min-height: 400px !important; height: auto; padding: 30px 24px 70px !important; }
.product-main-section .product-media img { width: 100% !important; height: auto !important; max-height: 560px; aspect-ratio: auto !important; object-fit: contain !important; }
.product-main-section figure { margin: 0; }
.product-main-section figcaption { margin-top: 12px; color: var(--slate); font-size: .78rem; line-height: 1.6; }
.product-buying-info { min-width: 0; }
.product-buying-info h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.product-buying-info > p { color: var(--slate); }
.product-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.product-facts > div { min-width: 0; padding-top: 13px; border-top: 2px solid var(--line); }
.product-facts dt { color: var(--slate); font-size: .76rem; }
.product-facts dd { margin: 6px 0 0; font-size: .9rem; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.product-customization { margin: 24px 0; }
.product-customization > b { display: block; margin-bottom: 12px; font-size: .88rem; }
.product-customization span { padding: 7px 11px; border-radius: 4px; background: var(--ice); color: var(--ink); font-size: .8rem; }
.product-background { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.product-background summary { cursor: pointer; color: var(--blue); font-size: .9rem; font-weight: 700; }
.product-background > div { margin-top: 22px; }
.product-background h2 { font-size: 1.5rem; }
.product-background p { color: var(--slate); font-size: .94rem; }
.product-image-zoom { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 10px 16px; white-space: nowrap; border: 1px solid #aebfce; border-radius: 6px; background: white; color: var(--ink); cursor: pointer; font-size: .78rem; }
.product-image-dialog { width: min(1000px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 0; border-radius: 12px; background: white; }
.product-image-dialog .dialog-close { position: sticky; top: 0; margin-left: auto; }
.product-image-dialog img { width: 100%; height: 75dvh; object-fit: contain; }
@media (min-width: 1051px) {
  .desktop-nav { gap: clamp(14px, 1.5vw, 25px); }
  .desktop-nav a:not(.btn) { font-size: .88rem; }
  .desktop-nav .btn { min-height: 52px; padding-inline: 18px; font-size: .88rem; }
  .nav-wrap { gap: 20px; }
}
@media (max-width: 1120px) and (min-width: 1051px) {
  .desktop-nav { gap: 12px; }
  .desktop-nav .nav-search-button > span:last-child { display: none; }
  .brand, .brand img { width: 165px; }
}
@media (max-width: 1050px) {
  .nav-search-mobile { display: inline-flex; width: 42px; height: 44px; margin-left: auto; }
  .nav-wrap .nav-toggle { margin-left: 0; }
  .mobile-nav { overflow-y: auto; overscroll-behavior: contain; }
  .mobile-nav a { font-family: inherit; }
  .mobile-product-groups > summary { padding: 15px 4px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 1.28rem; font-weight: 700; }
  .mobile-product-groups > a, .mobile-product-groups > details { margin-left: 16px; }
  .mobile-product-groups details summary { padding: 15px 4px; cursor: pointer; font-size: 1rem; font-weight: 700; }
  .mobile-product-groups a { display: block; font-size: .94rem; }
  .mobile-product-groups details a { padding-left: 16px; }
  .product-main-section .split { gap: 32px; }
}
@media (max-width: 720px) {
  .product-search-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 20px 14px; border-radius: 10px; }
  .search-dialog-heading { gap: 12px; }
  .search-dialog-heading .kicker { font-size: .62rem; }
  .search-input-row { gap: 8px; }
  .search-input-row .btn { padding-inline: 14px; }
  .search-results { grid-template-columns: 1fr; }
  .search-results .product-media { height: 240px; }
  .search-results .product-media img { height: 200px; }
  .catalog-search-controls { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
  [data-product-detail] .page-hero { margin-top: 0; padding: 124px 0 30px; }
  .product-main-section .split { grid-template-columns: 1fr; }
  [data-product-detail] .product-main-section { padding: 28px 0 48px; }
  .product-main-section .product-media { min-height: 300px !important; }
  .product-main-section .product-media img { max-height: 440px; }
  .product-facts { gap: 16px; }
  .product-buying-info .actions > a { width: 100%; }
}
