.product-listing-page,
.product-detail-page {
  background: #fff;
  color: var(--corp-ink);
}

.product-listing-hero {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background: var(--corp-navy);
  color: #fff;
}

.product-listing-hero > img,
.product-listing-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.product-listing-hero > img { object-fit: cover; object-position: center 55%; }
.product-listing-hero-shade { background: linear-gradient(90deg, rgba(3, 20, 42, .98) 0%, rgba(3, 20, 42, .87) 25%, rgba(3, 20, 42, .31) 66%, rgba(3, 20, 42, .18)); }
.product-listing-hero-copy { position: relative; z-index: 1; display: grid; align-content: center; min-height: 240px; padding-block: 34px; }
.product-listing-hero h1 { margin: 0; font-size: clamp(2.25rem, 4vw, 3.7rem); line-height: 1; letter-spacing: -.035em; }
.product-listing-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 5px; color: rgba(255,255,255,.78); font-size: .76rem; font-weight: 700; }
.product-listing-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.product-listing-breadcrumb span[aria-current="page"] { color: #68d09e; }

.product-browser { padding: 28px 0 40px; }
.product-browser-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.product-filters { border-right: 1px solid var(--corp-line); padding-right: 28px; }
.product-filters h2 { margin: 0 0 18px; border-bottom: 1px solid var(--corp-line); padding-bottom: 13px; color: var(--corp-navy); font-size: 1rem; }
.product-filters fieldset { display: grid; gap: 5px; margin: 0; border: 0; border-bottom: 1px solid var(--corp-line); padding: 0 0 18px; }
.product-filters legend,
.product-filter-field > label { width: 100%; margin-bottom: 9px; color: var(--corp-green-dark); font-size: .73rem; font-weight: 900; }
.product-filters fieldset label { display: flex; gap: 8px; align-items: center; min-height: 27px; color: #26364d; font-size: .75rem; cursor: pointer; }
.product-filters input[type="radio"] { accent-color: var(--corp-green); }
.product-filter-field { display: grid; gap: 5px; border-bottom: 1px solid var(--corp-line); padding: 18px 0; }
.product-filter-field select,
.product-sort select { min-height: 38px; border: 1px solid #ced8df; border-radius: 4px; padding: 7px 10px; background: #fff; color: var(--corp-ink); font: inherit; font-size: .73rem; }
.product-filter-actions { display: flex; gap: 9px; margin-top: 20px; }
.product-filter-actions button,
.product-filter-actions a { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border: 1px solid #cbd5dc; border-radius: 4px; padding: 8px 10px; background: #fff; color: var(--corp-navy); font: inherit; font-size: .71rem; font-weight: 900; cursor: pointer; }
.product-filter-actions button { border-color: var(--corp-green); background: var(--corp-green); color: #fff; }
.product-filter-actions .tabler-icon { width: 14px; height: 14px; }

.product-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; gap: 20px; align-items: center; }
.product-search { position: relative; }
.product-search input { width: 100%; min-height: 42px; border: 1px solid #d7dee3; border-radius: 5px; padding: 9px 42px 9px 14px; box-shadow: 0 3px 12px rgba(6,26,53,.05); font: inherit; font-size: .76rem; }
.product-search button { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 42px; height: 42px; border: 0; background: transparent; color: #64758a; cursor: pointer; }
.product-sort { display: flex; align-items: center; gap: 7px; }
.product-sort label { color: var(--corp-navy); font-size: .7rem; font-weight: 900; white-space: nowrap; }
.product-view-switch { display: flex; gap: 6px; }
.product-view-switch button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--corp-line); border-radius: 4px; background: #fff; color: var(--corp-navy); cursor: pointer; }
.product-view-switch button.is-active { border-color: var(--corp-green); background: var(--corp-green); color: #fff; }
.product-view-switch .tabler-icon { width: 16px; height: 16px; }
.product-result-count { margin: 13px 0 10px; color: var(--corp-muted); font-size: .7rem; }

.product-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-listing-card { overflow: hidden; border: 1px solid #dfe5e9; border-radius: 6px; background: #fff; box-shadow: 0 5px 18px rgba(6,26,53,.055); transition: transform 160ms ease, box-shadow 160ms ease; }
.product-listing-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6,26,53,.1); }
.product-listing-image { position: relative; display: grid; height: 146px; place-items: center; overflow: hidden; padding: 8px; background: #f3f5f3; }
.product-listing-image img { position: absolute; inset: 8px; display: block; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; object-position: center; }
.product-listing-image span { padding: 12px; color: var(--corp-muted); font-size: .68rem; text-align: center; }
.product-listing-card-copy { display: grid; align-content: start; min-height: 132px; padding: 11px 12px 12px; }
.product-card-category { color: var(--corp-green); font-size: .61rem; font-weight: 800; }
.product-listing-card h2 { margin: 4px 0 0; color: var(--corp-navy); font-size: .82rem; line-height: 1.25; }
.product-listing-card h2 a:hover { color: var(--corp-green); }
.product-listing-card-copy > p { margin: 4px 0 9px; color: var(--corp-muted); font-size: .63rem; }
.product-details-link { display: inline-flex; justify-self: start; align-items: center; gap: 5px; margin-top: auto; border: 1px solid #8fbda9; border-radius: 4px; padding: 5px 8px; color: var(--corp-green-dark); font-size: .62rem; font-weight: 900; }
.product-details-link .tabler-icon { width: 11px; height: 11px; }
.product-card-grid.is-list { grid-template-columns: 1fr; }
.product-card-grid.is-list .product-listing-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.product-card-grid.is-list .product-listing-image { height: 145px; }
.product-card-grid.is-list .product-listing-card-copy { min-height: 145px; }
.product-empty { grid-column: 1/-1; display: grid; place-items: center; min-height: 320px; border: 1px dashed #bdc9d0; border-radius: 6px; padding: 30px; color: var(--corp-muted); text-align: center; }
.product-empty .tabler-icon { width: 42px; height: 42px; color: var(--corp-green); }
.product-empty a { color: var(--corp-green-dark); font-weight: 900; text-decoration: underline; }
.product-pagination { display: flex; justify-content: center; gap: 7px; margin-top: 24px; }
.product-pagination a,
.product-pagination span { display: grid; place-items: center; min-width: 34px; height: 34px; border: 1px solid var(--corp-line); border-radius: 4px; background: #fff; color: var(--corp-navy); font-size: .72rem; font-weight: 800; }
.product-pagination .is-current { border-color: var(--corp-green); background: var(--corp-green); color: #fff; }
.product-pagination span[aria-disabled="true"] { color: #a7b0b8; }

.product-detail-hero { padding: 55px 0; background: linear-gradient(135deg, var(--corp-navy), var(--corp-navy-2)); color: #fff; }
.product-detail-hero h1 { margin: 14px 0 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; }
.product-detail-body { padding: 55px 0; }
.product-detail-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.product-detail-image { display: grid; place-items: center; min-height: 360px; border: 1px solid var(--corp-line); border-radius: 8px; padding: 28px; background: #f7f8f6; }
.product-detail-image img { width: 100%; max-height: 330px; object-fit: contain; }
.product-detail-image span { color: var(--corp-muted); font-size: .8rem; }
.product-detail-category { margin: 0 0 8px; color: var(--corp-green); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.product-detail-grid h2 { margin: 0; color: var(--corp-navy); font-size: clamp(1.8rem, 3vw, 3rem); }
.product-detail-brand { color: var(--corp-muted); font-size: .8rem; }
.product-detail-brand a { color: var(--corp-green-dark); font-weight: 900; }
.product-detail-description { max-width: 680px; color: #4e5d6c; line-height: 1.7; white-space: pre-line; }
.product-back-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--corp-green-dark); font-size: .78rem; font-weight: 900; }
.product-back-link .tabler-icon { width: 15px; height: 15px; transform: rotate(180deg); }

@media (max-width: 1180px) {
  .product-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .product-browser-layout { grid-template-columns: 1fr; }
  .product-filters { border-right: 0; border-bottom: 1px solid var(--corp-line); padding: 0 0 24px; }
  .product-filters form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .product-filters h2 { grid-column: 1/-1; margin: 0; }
  .product-filters fieldset,
  .product-filter-field { border-bottom: 0; padding: 0; }
  .product-filter-actions { grid-column: 1/-1; max-width: 330px; margin-top: 0; }
  .product-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .product-listing-hero,
  .product-listing-hero-copy { min-height: 220px; }
  .product-browser-layout { gap: 20px; }
  .product-filters form { grid-template-columns: 1fr; }
  .product-filters h2,
  .product-filter-actions { grid-column: auto; }
  .product-toolbar { grid-template-columns: 1fr auto; gap: 10px; }
  .product-search { grid-column: 1/-1; }
  .product-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .product-card-grid { grid-template-columns: 1fr; }
  .product-listing-image { height: 200px; }
  .product-card-grid.is-list .product-listing-card { grid-template-columns: 115px minmax(0, 1fr); }
  .product-detail-hero { padding: 40px 0; }
  .product-detail-body { padding: 36px 0; }
  .product-detail-image { min-height: 280px; }
}

/* Product detail redesign */
.product-detail-hero { padding: 26px 0; background: linear-gradient(110deg, #03162f, #07294c); }
.product-detail-hero.inner-page-hero { min-height: 0; }
.product-detail-hero .inner-page-hero__content { display: block; min-height: 0; padding: 0; }
.product-detail-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: rgba(255,255,255,.75); font-size: .75rem; font-weight: 750; }
.product-detail-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.product-detail-breadcrumb span[aria-current="page"] { color: #fff; }
.product-detail-body { padding: 30px 0 42px; }
.product-detail-top { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .98fr) minmax(250px, .65fr); gap: 28px; align-items: start; }
.product-detail-top.without-sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.product-gallery { display: grid; min-width: 0; gap: 12px; }
.product-gallery-main { position: relative; display: grid; width: 100%; place-items: center; aspect-ratio: 1.18 / 1; overflow: hidden; border: 1px solid var(--corp-line); border-radius: 9px; padding: 12px; background: #f4f6f4; }
button.product-gallery-main { color: inherit; cursor: zoom-in; }
button.product-gallery-main:focus-visible { outline: 3px solid rgba(0, 104, 68, .35); outline-offset: 3px; }
.product-gallery-main img { position: absolute; inset: 12px; display: block; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; object-position: center; }
.product-gallery-main span { color: var(--corp-muted); font-size: .8rem; }
.product-gallery-thumbnails { display: flex; gap: 10px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.product-gallery-thumbnails button { flex: 0 0 78px; height: 66px; overflow: hidden; border: 2px solid transparent; border-radius: 7px; padding: 4px; background: #eef2ef; cursor: pointer; }
.product-gallery-thumbnails button.is-active { border-color: var(--corp-green); }
.product-gallery-thumbnails img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-gallery-dialog { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; border: 0; padding: 24px; background: rgba(2, 15, 34, .96); }
.product-gallery-dialog[open] { display: grid; place-items: center; }
.product-gallery-dialog::backdrop { background: rgba(2, 15, 34, .78); backdrop-filter: blur(4px); }
.product-gallery-dialog > img { display: block; width: 100%; height: 100%; max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); object-fit: contain; }
.product-gallery-dialog__close { position: fixed; z-index: 2; top: 18px; right: 18px; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: rgba(2,18,39,.86); color: #fff; cursor: pointer; }
.product-gallery-dialog__close .tabler-icon { width: 22px; height: 22px; }
.product-gallery-dialog__close:focus-visible { outline: 3px solid rgba(255, 183, 0, .8); outline-offset: 3px; }
.product-detail-summary { min-width: 0; }
.product-detail-category { margin: 0 0 8px; color: var(--corp-green); font-size: .72rem; font-weight: 900; text-transform: none; }
.product-detail-summary h1 { margin: 0; color: var(--corp-navy); font-size: clamp(1.8rem, 3.1vw, 2.8rem); line-height: 1.05; letter-spacing: -.035em; }
.product-detail-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; color: var(--corp-muted); font-size: .72rem; }
.product-detail-meta a { color: var(--corp-green-dark); font-weight: 900; }
.product-detail-intro { margin: 20px 0; color: #405066; font-size: .87rem; line-height: 1.68; white-space: pre-line; }
.product-highlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.product-highlight-grid > div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; }
.product-highlight-grid .tabler-icon { width: 32px; height: 32px; color: var(--corp-green); stroke-width: 1.5; }
.product-highlight-grid p { display: grid; margin: 0; font-size: .73rem; line-height: 1.25; }
.product-highlight-grid span { margin-top: 2px; color: var(--corp-muted); font-size: .65rem; }
.product-detail-sidebar { display: grid; min-width: 0; gap: 14px; }
.product-detail-card { min-width: 0; border: 1px solid var(--corp-line); border-radius: 9px; padding: 18px; background: #fff; box-shadow: 0 6px 20px rgba(6,26,53,.05); }
.product-detail-card h2 { margin: 0 0 15px; color: var(--corp-navy); font-size: .95rem; }
.product-benefit-list, .product-download-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.product-benefit-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; align-items: start; color: #2a3b50; font-size: .72rem; }
.product-benefit-list .tabler-icon { width: 18px; height: 18px; border: 1px solid #56a183; border-radius: 50%; padding: 2px; color: var(--corp-green); }
.product-benefit-list span, .product-download-list span { display: grid; gap: 2px; }
.product-benefit-list small, .product-download-list small { color: var(--corp-muted); font-size: .62rem; line-height: 1.3; }
.product-download-list li + li { border-top: 1px solid var(--corp-line); padding-top: 10px; }
.product-download-list a { display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 10px; align-items: center; color: #24354b; font-size: .7rem; }
.product-download-list .tabler-icon { width: 17px; height: 17px; color: var(--corp-green-dark); }
.product-detail-lower { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.08fr) minmax(250px, .62fr); gap: 18px; align-items: start; margin-top: 22px; }
.product-specifications dl { margin: 0; }
.product-specifications dl > div { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr); gap: 14px; border-top: 1px solid var(--corp-line); padding: 8px 0; font-size: .7rem; }
.product-specifications dl > div:first-child { border-top: 0; }
.product-specifications dt { color: var(--corp-navy); font-weight: 850; }
.product-specifications dd { margin: 0; color: #3e4d61; }
.product-description-section + .product-description-section { margin-top: 18px; border-top: 1px solid var(--corp-line); padding-top: 18px; }
.product-description-section h2 { margin-bottom: 8px; }
.product-description-section p { margin: 0; color: #3e4d61; font-size: .78rem; line-height: 1.7; white-space: pre-line; }
.product-related > div { display: grid; gap: 10px; }
.product-related article + article { border-top: 1px solid var(--corp-line); padding-top: 10px; }
.product-related article > a { display: grid; grid-template-columns: 72px minmax(0, 1fr) 14px; gap: 10px; align-items: center; }
.product-related article > a > span { position: relative; display: grid; width: 72px; height: 54px; place-items: center; overflow: hidden; padding: 4px; border-radius: 5px; background: #f2f4f2; color: var(--corp-green); }
.product-related img { position: absolute; inset: 4px; display: block; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; object-position: center; }
.product-related p { display: grid; gap: 4px; margin: 0; }
.product-related strong { color: var(--corp-navy); font-size: .7rem; line-height: 1.25; }
.product-related small { color: var(--corp-muted); font-size: .6rem; }
.product-related .tabler-icon { width: 14px; height: 14px; color: var(--corp-green-dark); }

@media (max-width: 1180px) {
  .product-detail-top { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .product-detail-sidebar { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail-lower { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-related { grid-column: 1 / -1; }
  .product-related > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .product-detail-top, .product-detail-top.without-sidebar { grid-template-columns: 1fr; }
  .product-gallery, .product-detail-summary { width: 100%; max-width: 680px; margin-inline: auto; }
}

@media (max-width: 640px) {
  .product-detail-hero { padding: 22px 0; }
  .product-detail-body { padding: 26px 0 34px; }
  .product-detail-sidebar, .product-detail-lower, .product-related > div { grid-template-columns: 1fr; }
  .product-related { grid-column: auto; }
}

@media (max-width: 560px) {
  .product-detail-top { gap: 22px; }
  .product-gallery-main { aspect-ratio: 1 / .88; }
  .product-gallery-thumbnails button { flex-basis: 70px; height: 58px; }
  .product-gallery-dialog { padding: 14px; }
  .product-gallery-dialog > img { max-width: calc(100vw - 28px); max-height: calc(100vh - 28px); }
  .product-highlight-grid { grid-template-columns: 1fr; }
  .product-detail-card { padding: 15px; }
  .product-specifications dl > div { grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr); }
}
