.retail-shell,
.guide-shell {
  width: min(calc(100% - clamp(32px, 6.7vw, 96px)), calc(var(--max-width) - 96px));
  margin-inline: auto;
}

.site-nav a[aria-current="page"] {
  color: var(--navy);
  box-shadow: inset 0 -2px var(--pool-blue);
}

.retail-home :is(.button-primary, .header-cta):not(:hover),
.retail-store :is(.button-primary, .header-cta):not(:hover),
.retail-cart :is(.button-primary, .header-cta):not(:hover),
.guide-page .button-primary:not(:hover) {
  background: color-mix(in srgb, var(--pool-blue) 96%, var(--navy));
}

.site-nav .retail-nav-cart {
  display: none;
}

.header-cta.retail-cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.retail-cart-link [data-cart-count],
.retail-nav-cart [data-cart-count] {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  padding-inline: 4px;
  place-items: center;
  border-radius: 999px;
  color: var(--navy);
  background: var(--pool-sky);
  font-size: 12px;
}

.retail-hero {
  padding-block: calc(var(--header-height) + clamp(32px, 4vw, 56px)) clamp(40px, 5vw, 64px);
  color: var(--navy-strong);
  background: var(--pool-sky-2);
}

.retail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

.retail-hero-copy h1,
.retail-store-intro h1,
.guide-hero h1 {
  color: var(--navy-strong);
  font-size: clamp(36px, 4.35vw, 64px);
  font-weight: 680;
  line-height: 1.09;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.retail-hero-copy > p,
.retail-store-intro p,
.guide-hero p {
  max-width: 58ch;
  margin-top: 16px;
  color: var(--navy-soft);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
}

.retail-hero-copy > .section-code {
  margin: 0 0 12px;
  color: var(--navy-soft);
  font-size: 13px;
}

.retail-hero-copy .hero-actions {
  margin-top: 24px;
}

.retail-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 520px;
  margin-top: 24px;
}

.retail-search input {
  flex: 1 1 160px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--navy) 22%, transparent);
  border-radius: 10px;
  color: var(--navy-strong);
  background: var(--white);
}

.retail-search button {
  min-height: 48px;
  padding-inline: 16px;
  border: 0;
  border-radius: 10px;
  color: var(--white);
  background: var(--navy);
  font-weight: 600;
  cursor: pointer;
}

.retail-search button:hover {
  background: var(--navy-soft);
}

.retail-hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: 0;
  border-radius: 24px;
  background: var(--pool-sky);
}

.retail-hero-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.retail-band {
  padding-block: clamp(36px, 5vw, 72px);
}

.retail-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: 24px;
}

.retail-heading h2,
.retail-help h2,
.retail-cart-section h2,
.guide-section h2 {
  color: var(--navy-strong);
  font-size: clamp(28px, 3.25vw, 44px);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -.025em;
}

.retail-heading p,
.retail-help p {
  max-width: 58ch;
  color: var(--navy-soft);
}

.retail-heading h2 + p,
.retail-help h2 + p {
  margin-top: 8px;
}

.retail-heading > a:not(.button),
.retail-scenario > span:last-child {
  color: var(--blue-active);
  font-weight: 600;
}

.retail-heading > a:not(.button):hover {
  text-decoration: underline;
}

.retail-category-grid,
.retail-scenario-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.retail-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.retail-category,
.retail-scenario,
.guide-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: clamp(12px, 2.1vw, 24px);
  border: 1px solid color-mix(in srgb, var(--navy) 13%, transparent);
  border-radius: 16px;
  color: var(--navy-strong);
  background: var(--white);
}

.retail-category:hover,
a.retail-scenario:hover {
  border-color: var(--pool-blue);
  background: var(--pool-sky-2);
}

.retail-category-media {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  aspect-ratio: 4 / 3;
  margin: 0 0 4px;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--pool-sky-2);
}

.retail-category-media img {
  width: 100%;
  height: 100%;
  max-height: 180px;
  padding: 12px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.retail-category h3,
.retail-scenario h3,
.guide-card h3 {
  font-size: clamp(17px, 1.65vw, 24px);
  font-weight: 620;
  line-height: 1.25;
}

.retail-category p,
.retail-scenario p,
.guide-card p {
  color: var(--navy-soft);
  font-size: 15px;
  line-height: 1.5;
}

.retail-scenario > span:last-child {
  margin-top: auto;
  padding-top: 12px;
}

.retail-featured {
  border-top: 1px solid color-mix(in srgb, var(--navy) 13%, transparent);
}

.retail-featured .product-grid {
  margin-top: 0;
}

.retail-help {
  margin-bottom: clamp(36px, 5vw, 72px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: 16px;
  background: var(--pool-sky);
}

.retail-home .inquiry-intro > p {
  margin-top: 16px;
  color: var(--navy-soft);
}

.retail-store main,
.retail-cart main {
  padding-top: var(--header-height);
}

.retail-store .catalog-section {
  padding-block: clamp(32px, 4.5vw, 64px) clamp(48px, 6vw, 88px);
}

.retail-store-intro {
  padding-block: clamp(28px, 4vw, 56px);
  background: var(--white);
}

.retail-store-intro h1 {
  font-size: clamp(32px, 4vw, 54px);
}

.retail-store-intro a {
  display: inline-flex;
  min-height: 44px;
  margin-top: 4px;
  align-items: center;
  color: var(--blue-active);
  font-weight: 600;
}

.retail-store-intro a:hover {
  text-decoration: underline;
}

.retail-cart-link {
  white-space: nowrap;
}

.retail-store .catalog-controls {
  gap: 12px;
  margin-top: 0;
  padding-bottom: 12px;
}

.retail-store .catalog-search {
  justify-self: start;
  border: 1px solid color-mix(in srgb, var(--navy) 18%, transparent);
  border-radius: 10px;
}

.retail-store .category-filters {
  flex-wrap: wrap;
  gap: 4px;
}

.retail-store .filter-button {
  min-height: 44px;
  padding-inline: 12px;
}

.retail-store .catalog-meta {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.retail-more {
  display: flex;
  width: fit-content;
  margin: 24px auto 0;
}

.retail-home .product-card,
.retail-store .product-card {
  min-height: 0;
}

.retail-home .product-media,
.retail-store .product-media {
  min-height: 0;
  padding-top: 24px;
}

.retail-home .product-media img,
.retail-store .product-media img {
  height: clamp(168px, 18vw, 250px);
}

.retail-home .product-body,
.retail-store .product-body {
  min-height: 0;
}

.retail-purchase {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-block: 12px;
}

.retail-purchase-fields,
.retail-purchase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.retail-purchase-fields {
  align-items: end;
}

.retail-purchase label {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.retail-purchase label:has(select) {
  flex: 1 1 150px;
}

.retail-purchase input,
.retail-purchase select,
.retail-cart-row input,
.retail-checkout select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--navy) 24%, transparent);
  border-radius: 8px;
  color: var(--navy-strong);
  background: var(--white);
  font: inherit;
}

.retail-purchase input[type="number"],
.retail-cart-row input[type="number"] {
  width: 5rem;
}

.retail-purchase .button {
  min-height: 44px;
}

.retail-purchase-actions > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--blue-active);
  font-weight: 600;
}

.retail-purchase-actions > a:hover {
  text-decoration: underline;
}

.retail-purchase [role="status"] {
  color: var(--navy-soft);
  font-size: 14px;
}

.retail-purchase [role="status"]:empty {
  display: none;
}

.retail-cart-section {
  min-height: 260px;
  padding-block: 8px clamp(36px, 5vw, 72px);
}

.retail-cart-confirmation,
.retail-cart-notice:not(:empty) {
  padding: 12px 16px;
  border-left: 3px solid var(--pool-blue);
  color: var(--navy-strong);
  background: var(--pool-sky);
}

.retail-cart-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  list-style: none;
}

.retail-cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px 24px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--navy) 14%, transparent);
  border-radius: 10px;
  color: var(--navy-strong);
}

.retail-cart-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.retail-cart-row a {
  color: var(--blue-active);
  font-weight: 600;
}

.retail-cart-row a:hover {
  text-decoration: underline;
}

.retail-cart-row small {
  display: block;
  margin-top: 3px;
  color: var(--navy-soft);
}

.retail-cart-row label {
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.retail-cart-row button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--navy) 20%, transparent);
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
}

.retail-cart-row button:hover {
  background: var(--pool-sky);
}

.retail-cart-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 20px 0;
  color: var(--navy-strong);
  font-size: 18px;
  font-weight: 650;
}

.retail-checkout {
  max-width: 760px;
  margin-top: 16px;
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid color-mix(in srgb, var(--navy) 13%, transparent);
  border-radius: 16px;
  background: var(--pool-sky-2);
}

.retail-checkout h3 {
  color: var(--navy-strong);
  font-size: 24px;
}

.retail-checkout .form-row:first-of-type {
  margin-top: 16px;
}

.retail-checkout textarea {
  min-height: 88px;
}

.retail-checkout > button[type="submit"] {
  margin-top: 16px;
}

.retail-checkout fieldset {
  min-width: 0;
  margin: 20px 0;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--navy) 20%, transparent);
  border-radius: 10px;
}

.retail-checkout legend {
  padding-inline: 4px;
  color: var(--navy-strong);
  font-weight: 600;
}

.retail-payment label {
  display: flex;
  min-height: 44px;
  gap: 8px;
  align-items: center;
  color: var(--navy);
}

.retail-checkout :is(input, select, textarea):disabled,
.retail-purchase :is(input, select, button):disabled {
  opacity: .65;
  cursor: not-allowed;
}

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 4px;
}

.guide-nav a {
  display: inline-flex;
  min-height: 44px;
  padding-inline: 12px;
  align-items: center;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.guide-nav a:hover,
.guide-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px var(--pool-blue);
}

.guide-header > .button {
  min-height: 44px;
  margin-left: 12px;
}

.guide-hero {
  padding-block: calc(var(--header-height) + clamp(32px, 5vw, 64px)) clamp(36px, 5vw, 64px);
  background: var(--pool-sky-2);
}

.guide-hero .hero-actions {
  margin-top: 24px;
}

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 24px;
  padding-block: 12px;
  border-block: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
  color: var(--navy);
}

.guide-toc a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 600;
}

.guide-toc a:hover,
.guide-card a:hover,
.guide-section > p a:hover {
  text-decoration: underline;
}

.guide-section {
  padding-block: clamp(32px, 5vw, 64px);
}

.guide-section + .guide-section {
  border-top: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
}

.guide-section > p {
  max-width: 76ch;
  margin-top: 12px;
  color: var(--navy-soft);
}

.guide-grid,
.guide-section .hero-actions {
  margin-top: 24px;
}

.guide-card a:not(.button),
.guide-section > p a:not(.button) {
  color: var(--blue-active);
  font-weight: 600;
}

.guide-card p + a {
  margin-top: auto;
}

.guide-section > ol {
  max-width: 76ch;
  padding-inline-start: 24px;
}

.guide-section > ol li + li {
  margin-top: 8px;
}

.guide-faq details {
  max-width: 76ch;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--navy) 14%, transparent);
}

.guide-faq summary {
  color: var(--navy);
  font-weight: 650;
  cursor: pointer;
}

.guide-faq details p {
  margin-top: 8px;
  color: var(--navy-soft);
}

.guide-faq details a {
  color: var(--blue-active);
  text-decoration: underline;
}

.guide-footer {
  padding-block: 24px;
  color: var(--navy);
  background: var(--pool-sky-2);
  border-top: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
}

.guide-footer .guide-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.guide-footer a {
  color: var(--blue-active);
}

.guide-footer a:hover {
  text-decoration: underline;
}

@media (min-width: 1280px) {
  .retail-category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .retail-category {
    padding: 16px;
  }
}

@media (max-width: 940px) {
  .site-nav a[aria-current="page"] {
    box-shadow: inset 3px 0 var(--pool-blue);
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-header {
    padding-inline: 16px;
  }
}

@media (max-width: 720px) {
  .retail-hero-grid,
  .retail-scenario-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .retail-hero-visual {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
  }

  .retail-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .retail-store .category-filters {
    flex-wrap: nowrap;
  }

  .guide-header {
    position: sticky;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .guide-header .brand {
    width: 104px;
    height: 56px;
    padding: 0;
  }

  .guide-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .guide-nav a {
    padding-inline: 8px;
  }

  .guide-header > .button {
    grid-column: 2;
    grid-row: 1;
    padding-inline: 16px;
  }

  .guide-hero {
    padding-top: 32px;
  }

  .guide-section {
    scroll-margin-top: 40px;
  }
}

@media (max-width: 680px) {
  .site-nav .retail-nav-cart {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .header-cta.retail-cart-link {
    display: none;
  }
}

@media (max-width: 500px) {
  .retail-category p,
  .retail-scenario p {
    font-size: 14px;
  }

  .retail-category-media img {
    padding: 8px;
  }

  .retail-cart-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .retail-cart-row > :first-child {
    grid-column: 1 / -1;
  }

  .guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-nav a {
    padding-inline: 6px;
    font-size: 13px;
  }
}
