/* ==========================================================================
   MySmartPool - Apple-Inspired Design System
   Font: Inter (closest to SF Pro on Google Fonts)
   Palette: #1d1d1f (text), #86868b (secondary), #f5f5f7 (surface), #0071e3 (accent)
   ========================================================================== */

:root {
  --color-text: #1d1d1f;
  --color-text-secondary: #86868b;
  --color-surface: #f5f5f7;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ED;
  --color-teal: #00778b;
  --color-teal-hover: #008fa6;
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Neue, Arial, sans-serif;
  --max-width: 980px;
  --max-width-wide: 1200px;
  --transition-base: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-base);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: 17px;
  line-height: 1.47059;
  color: var(--color-text);
  background: #fff;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.003em;
  color: var(--color-text);
}

h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 3rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
h4 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h5 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h6 { font-size: 1rem; margin-bottom: 0.5rem; }

.lead, .secondary-text {
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: .011em;
  color: var(--color-text-secondary);
}

.secondary-text.black { color: var(--color-text); }
.secondary-text.grey { color: #6e6e73; }

.small-text {
  font-size: 0.875rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5, h6 { font-size: 1rem; }
  .lead, .secondary-text { font-size: 19px; }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.grid-container {
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  overflow: hidden;
}

.text-center { text-align: center; }
.white { color: white; }
.visible { opacity: 1; transform: translateY(0); }

.margin-top-1 { margin-top: 1rem; }
.margin-top-2 { margin-top: 2rem; }
.margin-bottom-1 { margin-bottom: 1rem; }
.margin-bottom-2 { margin-bottom: 2rem; }
.two-points { margin-bottom: 2%; }
.four-points { margin-bottom: 4%; }
.eight-points { margin-bottom: 8%; }

/* ==========================================================================
   Header - Frosted Glass
   ========================================================================== */

#msp-header,
#ondilo-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background var(--transition-base);
}

.msp-header-inner,
.ondilo-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

#msp-logo,
#ondilo-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

#msp-logo:hover,
#ondilo-logo:hover {
  opacity: 0.7;
}

.logo-img {
  display: block;
  height: 38px;
  width: auto;
  flex-shrink: 0;
}

#ondilo-logo img {
  width: 90px !important;
  height: 36px !important;
  object-fit: contain;
}

#msp-nav,
#ondilo-nav {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#msp-nav a,
#ondilo-nav a {
  position: relative;
  color: var(--color-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  padding: 6px 12px;
  border-radius: 0;
  transition: color 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
  white-space: nowrap;
}

#msp-nav .nav-text,
#ondilo-nav .nav-text {
  white-space: nowrap;
}

#msp-nav a:hover,
#ondilo-nav a:hover {
  opacity: 1;
  color: var(--color-text);
}

#msp-nav a.active,
#ondilo-nav a.active {
  font-weight: 600;
  opacity: 1;
}

#msp-nav .nav-link::after,
#ondilo-nav .nav-link::after {
  content: '';
  position: absolute;
  width: calc(100% - 24px);
  height: 1px;
  bottom: 2px;
  left: 12px;
  background-color: var(--color-text);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease-out;
}

#msp-nav .nav-link:hover::after,
#ondilo-nav .nav-link:hover::after {
  transform: scaleX(1);
}

#msp-nav .nav-link.active::after,
#ondilo-nav .nav-link.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-button-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-text);
  transition: opacity 0.2s ease;
}

.cart-button-wrapper:hover {
  opacity: 0.6;
}

.cart-button-wrapper svg {
  width: 20px;
  height: 20px;
  transition: color 0.2s ease;
}

.cart-indicator {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 16px;
  height: 16px;
  background: var(--color-accent);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: var(--font-base);
}

.cart-indicator:empty {
  display: none;
}

#msp-shop-button,
#ondilo-shop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-accent);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 1.5rem;
  border: none;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-base);
}

#msp-shop-button:hover,
#ondilo-shop-button:hover {
  background: var(--color-accent-hover);
}

#msp-shop-button svg,
#ondilo-shop-button svg {
  display: none;
}

/* Mobile Menu */
#msp-menu-button,
#ondilo-menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  border-radius: 6px;
  transition: background 0.2s ease;
}

#msp-menu-button:hover,
#ondilo-menu-button:hover {
  background: rgba(0, 0, 0, 0.04);
}

#msp-menu-icon,
#ondilo-menu-icon {
  width: 20px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#msp-menu-icon span,
#ondilo-menu-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  transform-origin: center;
}

.msp-menu-open #msp-menu-icon span:first-child,
.ondilo-menu-open #ondilo-menu-icon span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.msp-menu-open #msp-menu-icon span:nth-child(2),
.ondilo-menu-open #ondilo-menu-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.msp-menu-open #msp-menu-icon span:last-child,
.ondilo-menu-open #ondilo-menu-icon span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1024px) {
  #msp-header, #ondilo-header {
    padding: 0 1rem;
    height: 52px;
  }

  #msp-menu-button, #ondilo-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1;
  }

  #msp-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }

  .logo-img {
    height: 34px;
  }

  #msp-nav, #ondilo-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(251, 251, 253, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 2rem;
    z-index: 1000;
    transform: none;
  }

  body.msp-menu-open #msp-nav,
  body.ondilo-menu-open #ondilo-nav {
    display: flex;
  }

  body.msp-menu-open,
  body.ondilo-menu-open {
    overflow: hidden;
  }

  #msp-nav a, #ondilo-nav a {
    font-size: 28px;
    font-weight: 600;
    padding: 12px 24px;
    opacity: 0;
    animation: slideUp 0.4s ease forwards;
  }

  #msp-nav a::after, #ondilo-nav a::after {
    display: none;
  }

  @keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  body.msp-menu-open #msp-nav a:nth-child(1),
  body.ondilo-menu-open #ondilo-nav a:nth-child(1) { animation-delay: 0.05s; }
  body.msp-menu-open #msp-nav a:nth-child(2),
  body.ondilo-menu-open #ondilo-nav a:nth-child(2) { animation-delay: 0.1s; }
  body.msp-menu-open #msp-nav a:nth-child(3),
  body.ondilo-menu-open #ondilo-nav a:nth-child(3) { animation-delay: 0.15s; }
  body.msp-menu-open #msp-nav a:nth-child(4),
  body.ondilo-menu-open #ondilo-nav a:nth-child(4) { animation-delay: 0.2s; }
  body.msp-menu-open #msp-nav a:nth-child(5),
  body.ondilo-menu-open #ondilo-nav a:nth-child(5) { animation-delay: 0.25s; }

  #msp-shop-button span, #ondilo-shop-button span { display: none; }

  #msp-shop-button::after, #ondilo-shop-button::after {
    content: 'Shop';
  }

  #msp-shop-button, #ondilo-shop-button {
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .header-actions { gap: 6px; }
  .logo-img { height: 30px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

#msp-footer,
#ondilo-footer {
  background: #000;
  color: #d2d2d7;
  padding: 0;
  font-family: var(--font-base);
  position: relative;
}

#msp-footer::before {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, #2a2a2c 20%, #2a2a2c 80%, transparent);
}

.msp-footer-inner,
#ondilo-footer-content {
  max-width: var(--max-width-wide, 1200px);
  margin: 0 auto;
  padding: 0 22px;
}

.msp-footer-inner {
  padding-top: 48px;
  padding-bottom: 0;
}

/* Top: Brand */
.msp-footer-top {
  padding-bottom: 36px;
  border-bottom: 1px solid #2a2a2c;
}

.msp-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
}

.msp-footer-logo {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.msp-footer-logo:hover {
  opacity: 0.8;
}

.msp-footer-logo img {
  display: block;
  height: 38px;
  width: auto;
}

.msp-footer-tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #a1a1a6;
  max-width: 380px;
}

.msp-footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: #f5f5f7;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s ease, transform 0.2s ease;
  width: fit-content;
}

.msp-footer-phone svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #a1a1a6;
  transition: color 0.2s ease;
}

.msp-footer-phone:hover {
  color: #fff;
  transform: translateX(2px);
}

.msp-footer-phone:hover svg {
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Link columns */
.msp-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #2a2a2c;
}

#ondilo-footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #424245;
}

.msp-footer-column,
.ondilo-footer-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ondilo-footer-column {
  padding: 0 8px;
}

.msp-footer-heading,
.ondilo-footer-title {
  color: #f5f5f7;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.msp-footer-links,
.ondilo-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.msp-footer-links a,
.ondilo-footer-links a {
  color: #a1a1a6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  padding: 5px 0;
  transition: color 0.2s ease, transform 0.2s ease;
  letter-spacing: 0;
  width: fit-content;
}

.msp-footer-links a:hover,
.ondilo-footer-links a:hover {
  color: #f5f5f7;
  transform: translateX(2px);
}

/* Bottom bar */
.msp-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 24px;
  font-size: 12px;
  color: #6e6e73;
}

#ondilo-footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 22px;
  font-size: 12px;
  color: #6e6e73;
}

.msp-footer-copyright {
  font-size: 12px;
  color: #6e6e73;
}

.msp-footer-bottom-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #424245;
}

.msp-footer-bottom-links a {
  color: #6e6e73;
  text-decoration: none;
  transition: color 0.2s ease;
}

.msp-footer-bottom-links a:hover {
  color: #f5f5f7;
}

.footer-logo {
  width: 60px;
  height: auto;
  opacity: 0.5;
}

@media (max-width: 900px) {
  .msp-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  #ondilo-footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .msp-footer-inner {
    padding-top: 36px;
  }

  .msp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  #ondilo-footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .msp-footer-bottom {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

/* Apple-style slim pill CTA used as the primary button across the site
   (page heroes, section CTAs, final callouts). Larger contexts like the
   PDP "Add to cart" can opt into bigger sizing via component-scoped
   overrides (e.g. `.product-section .product-actions .banner-button`). */
.banner-button {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: 8px 22px;
  border-radius: 980px;
  border: none;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background var(--transition-base), transform 0.15s ease;
  text-decoration: none;
}

.banner-button:hover {
  background: var(--color-accent-hover);
}

.banner-button:active {
  transform: scale(0.98);
}

.banner-button.white {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  backdrop-filter: blur(10px);
}

.banner-button.white:hover {
  background: rgba(255, 255, 255, 1);
}

.banner-button.soldout {
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: not-allowed;
}

.banner-button.disabled,
.banner-button.out-of-stock-btn {
  background-color: #ccc !important;
  cursor: not-allowed;
  opacity: 0.7;
}

.banner-button.disabled:hover,
.banner-button.out-of-stock-btn:hover {
  background-color: #ccc !important;
}

.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: white;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  padding: 12px 24px;
  border-radius: 980px;
  text-decoration: none;
  transition: background var(--transition-base);
}

.buy-button:hover {
  background: var(--color-accent-hover);
}

.product-button {
  display: inline-flex;
  background: var(--color-accent);
  color: white;
  padding: 12px 24px;
  border-radius: 980px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  transition: background var(--transition-base);
}

.product-button:hover {
  background: var(--color-accent-hover);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: white;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  transition: background var(--transition-base);
  border: none;
}

.cta-button:hover {
  background: var(--color-accent-hover);
}

/* ==========================================================================
   Hero / Full-Width Banner
   ========================================================================== */

.full-width-banner {
  position: relative;
  height: 85vh;
  min-height: 580px;
  max-height: 900px;
  overflow: hidden;
}

.full-width-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner-text {
  max-width: 680px;
  padding: 0;
  color: white;
}

.banner-text h1 {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
  color: white;
}

.banner-text h2 {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
  color: white;
}

.banner-text p {
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: .011em;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.85);
}

.banner-image {
  flex: 0 0 auto;
  margin-left: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40%;
}

.banner-image img {
  height: 500px;
  width: auto;
  object-fit: contain;
}

.scroll-down-arrow {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  animation: subtleBounce 3s infinite;
}

.scroll-down-arrow:hover {
  opacity: 1;
}

@keyframes subtleBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

@media (max-width: 768px) {
  .full-width-banner {
    height: 70vh;
    min-height: 480px;
  }

  .banner-text h1,
  .banner-text h2 {
    font-size: 32px;
  }

  .banner-text p {
    font-size: 17px;
  }

  .banner-text {
    max-width: 100%;
    padding: 0 20px;
  }

  .banner-content {
    padding: 0;
  }

  .banner-overlay {
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.65) 100%);
    align-items: flex-end;
    padding-bottom: 60px;
  }

  .banner-image {
    display: none;
  }
}

/* ==========================================================================
   ICO Pool Section (Meet ICO)
   ========================================================================== */

.media-section {
  padding: 100px 22px;
  background: #fff;
}

.media-row {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}

.media-row-image {
  flex: 1;
}

.media-row-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.media-row-text {
  flex: 1;
}

.media-row-text .headline {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.003em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.media-row-text .description {
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: .011em;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .media-section { padding: 64px 22px; }
  .media-row { flex-direction: column; gap: 40px; }
  .media-row-text { text-align: center; padding-left: 0; }
  .media-row-text .headline { font-size: 32px; }
  .media-row-text .description { font-size: 19px; }
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.stats-section {
  padding: 56px 22px;
  background: var(--color-surface);
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-prefix {
  display: block;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
}

.stat-number {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.005em;
  color: var(--color-text);
  margin-bottom: 4px;
}

.stat-description {
  display: block;
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-section { padding: 48px 22px; }
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat-number { font-size: 48px; }
}

/* ==========================================================================
   AI Powered Section
   ========================================================================== */

.ai-powered {
  position: relative;
  background: #000;
  color: #fff;
  padding: 120px 22px;
}

.ai-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.ai-title {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  text-align: center;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease-out forwards;
}

.ai-image {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 64px;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.ai-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.ai-content {
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

@media (max-width: 768px) {
  .ai-powered { padding: 80px 22px; }
  .ai-title { font-size: 40px; margin-bottom: 32px; }
  .ai-image { margin-bottom: 32px; }
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features-section {
  padding: 100px 22px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.features-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.features-intro h2 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.003em;
  margin-bottom: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 20px;
  background: var(--color-surface);
  animation: fadeInUp 0.6s ease-out both;
}

.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }

.feature-icon {
  background: rgba(0, 113, 227, 0.08);
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-card h4 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature-card p {
  font-size: 14px;
  line-height: 1.47;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .features-section { padding: 64px 22px; }
  .features-intro h2 { font-size: 32px; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Ultimate Sensor Section
   ========================================================================== */

.ultimate-sensor {
  padding: 100px 22px;
  text-align: center;
  background: #000;
}

.ultimate-sensor-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.ultimate-sensor h2 {
  color: white;
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 48px;
  letter-spacing: -0.003em;
}

.ultimate-sensor .secondary-text {
  color: #a1a1a6;
  margin-bottom: 48px;
}

.sensor-image {
  max-width: 500px;
  margin: 0 auto;
}

.sensor-image img {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .ultimate-sensor { padding: 64px 22px; }
  .ultimate-sensor h2 { font-size: 32px; }
  .sensor-image { max-width: 280px; }
}

/* ==========================================================================
   How It Works
   ========================================================================== */

.how-it-works {
  padding: 100px 22px;
  background: var(--color-surface);
}

.how-it-works-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.how-it-works-content h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 56px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: white;
  padding: 40px 28px;
  border-radius: 20px;
  text-align: left;
}

.step-icon {
  width: 40px;
  height: 40px;
  background: var(--color-text);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  line-height: 1.47;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .how-it-works { padding: 64px 22px; }
  .how-it-works-content h2 { font-size: 32px; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Harmony Section
   ========================================================================== */

.harmony-section {
  padding: 120px 22px;
  text-align: center;
  background: #fff;
}

.harmony-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.harmony-content h2 {
  font-size: 56px;
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 24px;
}

.harmony-content img {
  width: 100%;
  max-width: 580px;
  height: auto;
  margin: 48px auto;
  border-radius: 20px;
}

.harmony-content p {
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: .011em;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .harmony-section { padding: 80px 22px; }
  .harmony-content h2 { font-size: 36px; }
  .harmony-content p { font-size: 17px; }
}

/* ==========================================================================
   Testimonial / Why ICO Section
   ========================================================================== */

.testimonial-section {
  padding: 80px 22px;
  background: white;
}

.testimonial-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.testimonial-content h2 {
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 16px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 48px 0;
}

.testimonial-item {
  position: relative;
  padding: 24px 20px;
  text-align: center;
}

.testimonial-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: #d2d2d7;
}

.testimonial-number {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.testimonial-description {
  font-size: 14px;
  line-height: 1.47;
  color: var(--color-text-secondary);
}

.testimonial-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-secondary);
  font-style: italic;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-item:nth-child(even)::after { display: none; }
}

@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-item::after { display: none !important; }
  .testimonial-item:not(:last-child) {
    border-bottom: 1px solid #d2d2d7;
    padding-bottom: 24px;
  }
}

/* ==========================================================================
   Parallax
   ========================================================================== */

.parallax-container {
  position: relative;
  min-height: 50vh;
  width: 100%;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 768px) {
  .parallax-bg { background-attachment: scroll; }
  .parallax-container { min-height: 40vh; }
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */

.reviews-section {
  background: var(--color-surface);
  padding: 80px 22px;
}

.reviews-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.reviews-header-left h2 {
  font-size: 48px;
  font-weight: 600;
}

.reviews-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0 56px;
}

.reviews-carousel-wrapper {
  overflow: hidden;
}

.reviews-carousel {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.review-card {
  flex: 0 0 calc(25% - 15px);
  background: white;
  border-radius: 18px;
  padding: 28px 24px;
  min-width: 240px;
}

.review-header { margin-bottom: 12px; }

.reviewer-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 2px;
}

.review-date {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.star-rating {
  color: #f5a623;
  font-size: 14px;
  margin-bottom: 10px;
}

.review-content {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.47;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  z-index: 2;
  transition: background 0.2s ease;
}

.carousel-button.prev { left: 0; }
.carousel-button.next { right: 0; }

.carousel-button:hover {
  background: rgba(0, 0, 0, 0.15);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--color-text);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .review-card { flex: 0 0 calc(100% - 15px); }
  .reviews-carousel-container { padding: 0 40px; }
}

/* ==========================================================================
   Social Banner / Awards
   ========================================================================== */

.social-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 80px 22px;
}

.social-banner h2 {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 40px;
}

.social-banner .banner-content {
  position: relative;
  z-index: 2;
  padding: 0;
}

.social-banner .banner-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.social-banner .banner-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.award-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.award-item img {
  max-width: 120px;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.award-item img:hover { opacity: 1; }

@media (max-width: 768px) {
  .awards-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .social-banner { padding: 64px 22px; }
  .social-banner h2 { font-size: 32px; }
}

/* ==========================================================================
   Scrolling Features Section
   ========================================================================== */

.scrolling-features {
  background: var(--color-surface);
  overflow: hidden;
  padding: 100px 0;
}

.features-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.features-image img,
.features-image {
  height: auto;
  width: 100%;
  border-radius: 20px;
}

.features-text {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.features-text h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.feature-item .feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(0, 113, 227, 0.08);
  border-radius: 12px;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg, .feature-icon img {
  width: 24px;
  height: 24px;
}

.feature-content { flex: 1; }

.feature-content h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.feature-content p {
  font-size: 14px;
  line-height: 1.47;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .scrolling-features { padding: 64px 0; }
  .features-container { grid-template-columns: 1fr; }
  .features-text h2 { font-size: 32px; }
}

/* ==========================================================================
   Hero Section (general)
   ========================================================================== */

.hero {
  background-color: var(--color-surface);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 22px;
}

.hero-content {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text { flex: 1; }

.hero-text h1 {
  font-size: 56px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.hero-text p {
  font-size: 21px;
  line-height: 1.381;
  color: var(--color-text-secondary);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Generic page hero — image + headline lockup used at the top of category,
   product, and marketing pages (formerly .ico-pool-hero). */
.page-hero {
  background-color: var(--color-surface);
  padding: 120px 22px 96px;
  overflow: hidden;
}

@media (max-width: 968px) {
  .page-hero { padding: 80px 22px 64px; }
}

@media (max-width: 480px) {
  .page-hero { padding: 64px 22px 48px; }
}

@media (max-width: 968px) {
  .hero-content { flex-direction: column; text-align: center; gap: 40px; }
  .hero-text h1 { font-size: 40px; }
  .hero-text p { font-size: 19px; }
  .hero-image { order: -1; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 32px; }
  .hero-text p { font-size: 17px; }
}

/* ==========================================================================
   Shop Section
   ========================================================================== */

.shop-section-wrapper {
  background: var(--color-surface);
  width: 100%;
  padding: 100px 22px;
}

.shop-section {
  max-width: var(--max-width);
  margin: 0 auto;
}

.shop-intro {
  text-align: center;
  margin-bottom: 56px;
}

.shop-intro h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 16px;
}

.shop-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.shop-benefit { text-align: center; }
.shop-benefit h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.shop-benefit p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.shop-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.shop-product-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-product-card h3 {
  font-size: 24px;
  font-weight: 600;
}

.shop-product-card p {
  font-size: 14px;
  line-height: 1.47;
  color: var(--color-text-secondary);
}

.shop-product-subtitle {
  font-size: 17px;
  color: var(--color-accent);
  font-weight: 500;
}

.shop-cta {
  color: var(--color-accent);
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.shop-cta:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .shop-benefits { grid-template-columns: 1fr; }
  .shop-products { grid-template-columns: 1fr; }
  .shop-section-wrapper { padding: 64px 22px; }
}

/* ==========================================================================
   Product Sections
   ========================================================================== */

.product-showcase {
  padding: 80px 22px;
  background: var(--color-surface);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.product-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.product-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
}

.product-image {
  border-radius: 20px;
  width: 100%;
  height: auto;
}

.product-highlights {
  margin: 40px 0;
  padding: 28px;
  background: var(--color-surface);
  border-radius: 16px;
}

.product-highlights ul { list-style: none; padding: 0; }
.product-highlights li {
  padding: 6px 0 6px 24px;
  position: relative;
}
.product-highlights li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.product-callout-section {
  background: var(--color-surface);
  padding: 120px 22px 96px;
}

.product-callout-content {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.product-callout-text h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.08;
  color: var(--color-text);
  margin-bottom: 16px;
}

/* Breathing room between the paragraph and the CTA in any callout card. */
.product-callout-text .banner-button,
.product-callout-text .buy-button {
  margin-top: 24px;
}

.product-price {
  font-size: 24px;
  color: var(--color-text);
  margin-bottom: 16px;
  font-weight: 600;
}

.product-callout-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-callout-image img { max-width: 100%; height: auto; border-radius: 20px; }

@media (max-width: 734px) {
  .product-callout-section { padding: 64px 22px; }
  .product-callout-content { grid-template-columns: 1fr; gap: 32px; }
  .product-callout-text { text-align: center; padding-right: 0; }
  .product-callout-text h1 { font-size: 32px; }
  .product-callout-image { order: -1; }
  .product-images { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-price { font-size: 24px; }
}

/* ==========================================================================
   Recommendation Section
   ========================================================================== */

.recommendation-wrapper {
  background: #000;
  width: 100%;
  padding: 100px 22px;
}

.recommendation-section {
  max-width: var(--max-width);
  margin: 0 auto;
  color: white;
}

.recommendation-intro {
  text-align: center;
  margin-bottom: 48px;
}

.recommendation-intro h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 16px;
}

.recommendation-image {
  max-width: 500px;
  margin: 0 auto 40px;
  text-align: center;
}

.recommendation-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.recommendation-content {
  max-width: 700px;
  margin: 0 auto;
}

.recommendation-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

.recommendation-list { margin-bottom: 32px; }
.recommendation-item {
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 1.47;
  color: rgba(255, 255, 255, 0.6);
}

.recommendation-button {
  display: inline-flex;
  background: white;
  color: var(--color-text);
  padding: 12px 24px;
  border-radius: 980px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 400;
  transition: background var(--transition-base);
  margin: 0 auto;
  display: block;
  width: fit-content;
}

.recommendation-button:hover { background: var(--color-surface); }

@media (max-width: 768px) {
  .recommendation-wrapper { padding: 64px 22px; }
  .recommendation-intro h2 { font-size: 32px; }
}

/* ==========================================================================
   Water Index Section
   ========================================================================== */

.water-index-wrapper {
  background: var(--color-surface);
  width: 100%;
  padding: 100px 22px;
}

.water-index-section {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.water-index-content {
  max-width: 700px;
  margin: 0 auto;
}

.water-index-content h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 16px;
}

.water-index-content p {
  font-size: 17px;
  line-height: 1.47;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.water-index-image {
  max-width: 500px;
  margin: 40px auto;
}

.water-index-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.water-index-button {
  display: inline-flex;
  background: var(--color-accent);
  color: white;
  padding: 12px 24px;
  border-radius: 980px;
  text-decoration: none;
  font-size: 17px;
  transition: background var(--transition-base);
  margin: 24px auto 0;
}

.water-index-button:hover { background: var(--color-accent-hover); }

@media (max-width: 768px) {
  .water-index-wrapper { padding: 64px 22px; }
  .water-index-content h2 { font-size: 32px; }
}

/* Water Index Indicators */
.water-index-indicators {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border-radius: 12px;
}

.indicator-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.indicator-color.light-blue { background: #4FC3F7; }
.indicator-color.dark-blue { background: #1976D2; }
.indicator-color.orange { background: #FF9800; }
.indicator-color.red { background: #F44336; }
.indicator-color.gray { background: #9E9E9E; }

/* ==========================================================================
   Benefits Section
   ========================================================================== */

.benefits-wrapper {
  background-image: url('/assets/img/banners/ico-spa-background.webp');
  background-size: cover;
  background-position: center;
  width: 100%;
  padding: 100px 22px;
  position: relative;
}

.benefits-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.benefits-section {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0;
  color: white;
  position: relative;
  z-index: 2;
}

.benefits-title {
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 56px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 28px;
  border-radius: 20px;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon svg { width: 24px; height: 24px; fill: white; }
.benefit-icon img { width: 44px; height: 44px; }

.benefit-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  color: white;
}

.benefit-content p {
  font-size: 14px;
  line-height: 1.47;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.benefit-item p strong {
  display: block;
  color: white;
  font-size: 17px;
  margin-bottom: 4px;
}

.benefits-button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background: white;
  color: var(--color-text);
  padding: 12px 24px;
  border-radius: 980px;
  text-decoration: none;
  font-size: 17px;
  transition: background var(--transition-base);
}

.benefits-button:hover { background: var(--color-surface); }

@media (max-width: 768px) {
  .benefits-wrapper { padding: 64px 22px; }
  .benefits-title { font-size: 32px; margin-bottom: 40px; }
  .benefit-item { flex-direction: column; align-items: center; text-align: center; }
}

/* ==========================================================================
   Innovative Tech Section
   ========================================================================== */

.innovative-tech {
  background: #000;
  width: 100%;
  padding: 100px 22px;
  color: white;
}

.innovative-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.innovative-content h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 16px;
}

.innovative-content p {
  font-size: 21px;
  line-height: 1.381;
  color: rgba(255, 255, 255, 0.6);
  max-width: 700px;
  margin: 0 auto 16px;
}

.innovative-image {
  max-width: 700px;
  margin: 40px auto 0;
}

.innovative-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

@media (max-width: 768px) {
  .innovative-tech { padding: 64px 22px; }
  .innovative-content h2 { font-size: 32px; }
  .innovative-content p { font-size: 17px; }
}

/* ==========================================================================
   Specifications Section
   ========================================================================== */

.specifications-section {
  padding: 100px 22px;
  background: #fff;
}

.specifications-content {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.specifications-content h2 {
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 48px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.spec-card {
  padding: 28px;
  background: var(--color-surface);
  border-radius: 20px;
  text-align: center;
}

.spec-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: rgba(0, 113, 227, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-icon.wifi::before { content: "📶"; font-size: 24px; }
.spec-icon.compact::before { content: "📏"; font-size: 24px; }
.spec-icon.probes::before { content: "🔧"; font-size: 24px; }
.spec-icon.battery::before { content: "🔋"; font-size: 24px; }

.spec-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.spec-card p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.47; }

.spec-item {
  background: white;
  padding: 28px;
  border-radius: 16px;
}

.spec-item h4 { color: var(--color-accent); margin-bottom: 12px; font-size: 17px; }
.spec-item ul { list-style: none; padding: 0; }
.spec-item li {
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--color-text-secondary);
  font-size: 14px;
}
.spec-item li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.additional-features {
  max-width: 500px;
  margin: 32px auto 0;
  text-align: center;
}

.additional-features ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.additional-features li {
  background: var(--color-text);
  color: white;
  padding: 6px 14px;
  border-radius: 980px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .specifications-section { padding: 64px 22px; }
  .specifications-content h2 { font-size: 32px; }
  .specs-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Sensors, Monitoring, Connectivity, etc.
   ========================================================================== */

.sensors-section {
  padding: 100px 22px;
  background: white;
}

.sensors-content {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  text-align: center;
}

.sensors-content h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 12px;
}

.sensors-content > p {
  font-size: 21px;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
}

.sensors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.sensor-card {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 32px 24px;
  transition: transform 0.3s ease;
  animation: fadeInUp 0.6s ease-out both;
}

.sensor-card:nth-child(2) { animation-delay: 0.1s; }
.sensor-card:nth-child(3) { animation-delay: 0.2s; }
.sensor-card:nth-child(4) { animation-delay: 0.3s; }

.sensor-card:hover { transform: translateY(-4px); }

.sensor-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 16px;
}

.sensor-card h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
}

.sensor-card p {
  font-size: 14px;
  line-height: 1.47;
  color: var(--color-text-secondary);
}

.compatibility {
  font-size: 17px;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.monitoring-section {
  padding: 100px 22px;
  background: #000;
  color: white;
}

.monitoring-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.monitoring-content h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 40px;
  color: white;
}

.monitoring-features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.monitoring-features li {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 16px;
  font-size: 17px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
  animation: fadeInUp 0.6s ease-out both;
}

.monitoring-features li:nth-child(2) { animation-delay: 0.1s; }
.monitoring-features li:nth-child(3) { animation-delay: 0.2s; }
.monitoring-features li:nth-child(4) { animation-delay: 0.3s; }

.monitoring-features li:hover { transform: scale(1.01); }

.connectivity-section {
  padding: 100px 22px;
  background: white;
}

.connectivity-content {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  text-align: center;
}

.connectivity-content h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 48px;
}

.connectivity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.connectivity-card {
  background: var(--color-surface);
  padding: 32px 24px;
  border-radius: 20px;
  transition: transform 0.3s ease;
  animation: fadeInUp 0.6s ease-out both;
}

.connectivity-card:nth-child(2) { animation-delay: 0.1s; }
.connectivity-card:nth-child(3) { animation-delay: 0.2s; }

.connectivity-card:hover { transform: translateY(-4px); }

.connectivity-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(0, 113, 227, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connectivity-icon.wifi::before { content: "📶"; font-size: 28px; }
.connectivity-icon.network::before { content: "🔌"; font-size: 28px; }
.connectivity-icon.battery::before { content: "🔋"; font-size: 28px; }

@media (max-width: 768px) {
  .sensors-section, .monitoring-section, .connectivity-section { padding: 64px 22px; }
  .sensors-content h2, .monitoring-content h2, .connectivity-content h2 { font-size: 32px; }
  .connectivity-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Remote Control, Design, Durability
   ========================================================================== */

.remote-control-section {
  padding: 100px 22px;
  background: #000;
  color: white;
}

.remote-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.remote-content h2 { font-size: 48px; font-weight: 600; margin-bottom: 12px; }
.remote-content h3 { font-size: 24px; font-weight: 600; margin-bottom: 40px; }

.bluetooth-features {
  background: rgba(255, 255, 255, 0.08);
  padding: 28px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.bluetooth-features h4 {
  font-size: 17px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.features-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.features-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
}

.features-list li:last-child { border-bottom: none; }

.design-section {
  padding: 100px 22px;
  background: var(--color-surface);
}

.design-content {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  text-align: center;
}

.design-content h2 { font-size: 48px; font-weight: 600; margin-bottom: 48px; }

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.dimension-item {
  background: white;
  padding: 28px;
  border-radius: 20px;
  animation: fadeInUp 0.6s ease-out both;
}

.dimension-item:nth-child(2) { animation-delay: 0.1s; }
.dimension-item:nth-child(3) { animation-delay: 0.2s; }
.dimension-item:nth-child(4) { animation-delay: 0.3s; }

.dimension-value {
  display: block;
  font-size: 40px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.dimension-unit { font-size: 14px; color: var(--color-text-secondary); }

.design-features ul {
  list-style: none;
  padding: 0;
  max-width: 500px;
  margin: 0 auto;
}

.design-features li {
  background: white;
  padding: 14px 20px;
  margin-bottom: 8px;
  border-radius: 12px;
  font-size: 17px;
  color: var(--color-text-secondary);
}

.durability-section {
  padding: 100px 22px;
  background: #000;
  color: white;
}

.durability-content {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  text-align: center;
}

.durability-content h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 12px;
  color: white;
}

.durability-content > p {
  font-size: 21px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 48px;
}

.durability-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.durability-item {
  background: rgba(255, 255, 255, 0.06);
  padding: 28px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
  animation: fadeInUp 0.6s ease-out both;
}

.durability-item:nth-child(2) { animation-delay: 0.1s; }
.durability-item:nth-child(3) { animation-delay: 0.2s; }
.durability-item:nth-child(4) { animation-delay: 0.3s; }
.durability-item:nth-child(5) { animation-delay: 0.4s; }
.durability-item:nth-child(6) { animation-delay: 0.5s; }

.durability-item:hover { transform: translateY(-4px); }

.durability-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.durability-item p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.47;
}

@media (max-width: 768px) {
  .remote-control-section, .design-section, .durability-section { padding: 64px 22px; }
  .remote-content h2, .design-content h2, .durability-content h2 { font-size: 32px; }
  .connectivity-grid, .dimensions-grid { grid-template-columns: 1fr; }
}

/* Social Proof */
.social-proof-section {
  padding: 100px 22px;
  background: var(--color-surface);
}

.social-content {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  text-align: center;
}

.social-content h2 { font-size: 48px; font-weight: 600; margin-bottom: 48px; }

/* ==========================================================================
   Water Quality
   ========================================================================== */

.water-quality-section {
  padding: 100px 22px;
  background: white;
}

.water-quality-content {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.water-quality-content h2 {
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 48px;
}

.water-quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.measurement-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.measurement-list li {
  position: relative;
  padding-left: 20px;
  font-size: 17px;
  line-height: 1.47;
}

.measurement-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.measurement-details h4 { font-size: 17px; margin-bottom: 4px; }
.measurement-details p { font-size: 14px; color: var(--color-text-secondary); }

.measurement-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--color-text-secondary);
  font-style: italic;
}

.water-quality-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .water-quality-section { padding: 64px 22px; }
  .water-quality-content h2 { font-size: 32px; }
  .water-quality-grid { grid-template-columns: 1fr; gap: 32px; }
  .water-quality-image { order: -1; }
}

/* ==========================================================================
   Intro / CTA Sections
   ========================================================================== */

.intro-section {
  padding: 80px 22px;
  background: white;
}

.intro-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.intro-content h2 { font-size: 48px; font-weight: 600; margin-bottom: 16px; }
.intro-content p {
  font-size: 17px;
  line-height: 1.47;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.cta-section {
  padding: 100px 22px;
  background: #000;
  color: white;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 { font-size: 48px; font-weight: 600; margin-bottom: 16px; color: white; }
.cta-content p { font-size: 21px; margin-bottom: 28px; color: rgba(255, 255, 255, 0.6); }

@media (max-width: 768px) {
  .intro-content h2, .cta-content h2 { font-size: 32px; }
  .intro-content p { font-size: 17px; }
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 22px 0;
}

.contact-support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.contact-box {
  background: var(--color-text);
  color: white;
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
}

.contact-box h3, .contact-box p, .contact-box a, .help-section h3 {
  color: white;
}

.contact-box h3 { margin-top: 0; margin-bottom: 16px; font-size: 21px; }
.contact-box p { margin: 0; line-height: 1.47; font-size: 14px; }

.help-section {
  background: var(--color-text);
  color: white;
  padding: 40px 32px;
  border-radius: 20px;
  margin-top: 32px;
  text-align: center;
}

.help-section h3 { margin-bottom: 20px; font-size: 21px; }
.help-section p { margin: 0 0 16px; line-height: 1.47; font-size: 14px; }
.help-section p:last-child { margin-bottom: 0; }

.page-title { font-size: 48px; font-weight: 600; margin-bottom: 20px; }
.support-hours { font-size: 17px; line-height: 1.47; margin-bottom: 40px; color: var(--color-text-secondary); }

.contact-icon, .help-section img {
  max-width: 80px;
  height: auto;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .contact-support-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 32px; }
}

/* ==========================================================================
   App Features
   ========================================================================== */

.app-features-section {
  padding: 100px 22px;
  background: var(--color-surface);
}

.app-features-content {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  text-align: center;
}

.app-features-content h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 48px;
}

.app-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.app-feature {
  background: white;
  border-radius: 20px;
  padding: 28px;
}

.app-feature img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 16px;
}

.app-feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.app-feature p { font-size: 14px; line-height: 1.47; color: var(--color-text-secondary); }

@media (max-width: 768px) {
  .app-features-grid { grid-template-columns: 1fr; }
  .app-features-section { padding: 64px 22px; }
  .app-features-content h2 { font-size: 32px; }
}

/* ==========================================================================
   Made in France
   ========================================================================== */

.made-in-france {
  padding: 100px 22px;
  background: #000;
  color: white;
}

.made-in-france-content {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  text-align: center;
}

.made-in-france-content h2 { font-size: 48px; margin-bottom: 16px; color: white; }
.made-in-france-content > p {
  font-size: 17px;
  line-height: 1.47;
  color: rgba(255, 255, 255, 0.6);
  max-width: 700px;
  margin: 0 auto 40px;
}

.manufacturing-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.highlight {
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
}

.highlight h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: white; }
.highlight p { font-size: 14px; line-height: 1.47; color: rgba(255, 255, 255, 0.6); }

/* Package Contents */
.package-contents {
  padding: 100px 22px;
  background: var(--color-surface);
}

.package-content {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  text-align: center;
}

.package-content h2 { font-size: 48px; font-weight: 600; margin-bottom: 48px; }

.contents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.content-item {
  background: white;
  padding: 28px;
  border-radius: 20px;
}

.content-item img { width: 64px; height: 64px; margin: 0 auto 16px; }
.content-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.content-item p { font-size: 14px; color: var(--color-text-secondary); }

/* Smart Home */
.smart-home {
  padding: 100px 22px;
  background: white;
}

.smart-home-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.smart-home-content h2 { font-size: 48px; font-weight: 600; margin-bottom: 16px; }
.smart-home-content p { font-size: 17px; margin-bottom: 40px; color: var(--color-text-secondary); }

.integration-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.integration-logos img {
  height: 36px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.integration-logos img:hover { opacity: 1; }

@media (max-width: 768px) {
  .made-in-france-content h2, .package-content h2, .smart-home-content h2 { font-size: 32px; }
  .integration-logos { gap: 24px; }
  .integration-logos img { height: 28px; }
}

/* ==========================================================================
   Measures / Water Index
   ========================================================================== */

.measures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.measure-card {
  background: white;
  padding: 28px;
  border-radius: 20px;
  transition: transform 0.3s ease;
  animation: fadeInUp 0.6s ease-out both;
}

.measure-card:nth-child(2) { animation-delay: 0.1s; }
.measure-card:nth-child(3) { animation-delay: 0.2s; }

.measure-card:hover { transform: translateY(-4px); }
.measure-card img { width: 56px; height: 56px; margin-bottom: 16px; }
.measure-card h3 { font-size: 17px; font-weight: 600; }

.index-features {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto 48px;
}

.index-features li {
  background: white;
  padding: 16px 20px;
  margin-bottom: 8px;
  border-radius: 12px;
  font-size: 17px;
  color: var(--color-text-secondary);
  transition: transform 0.3s ease;
}

.index-features li:hover { transform: translateX(6px); }

.measurements-section { padding: 100px 22px; background: var(--color-surface); }
.measurements-content { max-width: var(--max-width-wide); margin: 0 auto; text-align: center; }
.measurements-content h2 { font-size: 48px; font-weight: 600; margin-bottom: 48px; }

.measurements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.measurement-card {
  background: white;
  padding: 28px;
  border-radius: 20px;
}

.measurement-icon { font-size: 2rem; margin-bottom: 12px; }
.measurement-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.measurement-card p { font-size: 14px; color: var(--color-text-secondary); }

@media (max-width: 768px) {
  .measures-grid { grid-template-columns: 1fr; }
  .measurements-grid { grid-template-columns: 1fr; }
  .measurements-section { padding: 64px 22px; }
}

/* ==========================================================================
   Comparison Grid
   ========================================================================== */

.comparison-section {
  padding: 80px 22px;
  background: var(--color-surface);
}

.comparison-grid {
  --grid-column-gap: 60px;
  --grid-row-gap: 40px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 6fr repeat(3, minmax(86px, 1fr));
  grid-auto-rows: minmax(80px, max-content);
  gap: var(--grid-row-gap) var(--grid-column-gap);
  background: white;
  padding: 80px 64px;
  border-radius: 24px;
}

.grid-header {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.grid-header:not(.feature-name) { text-align: center; }
.grid-header h4 { margin: 0; padding: 24px 0; font-size: 14px; font-weight: 600; }

.compare-device-image {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  margin: auto auto 0;
}

.compare-device-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.grid-header.ico-pool { color: var(--color-accent); }

.feature-title {
  align-self: start;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-title .feature-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
  width: auto;
  height: auto;
  background: none;
  margin: 0;
  border-radius: 0;
}

.feature-text { flex: 1; }
.feature-text h3 { color: var(--color-text); margin-bottom: 4px; font-size: 17px; }
.feature-text p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.47; }

.feature-value {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 500;
}

.check { color: #00a152; }
.cross { color: #d32f2f; }
.warning { color: #ed6c02; }

@media (max-width: 1068px) {
  .comparison-grid { --grid-column-gap: 32px; padding: 48px 40px; }
}

@media (max-width: 734px) {
  .comparison-grid {
    padding: 32px 24px;
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  .grid-header:not(.feature-name) { display: block; text-align: left; }
  .feature-value { border-bottom: 1px solid rgba(0,0,0,0.08); padding-bottom: 12px; }
}

/* ==========================================================================
   Cart Sidebar
   ========================================================================== */

.cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), visibility 0.4s, opacity 0.3s;
  opacity: 0;
}

.cart.cart-open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.cart-sidebar.active {
  right: 0;
  visibility: visible;
}

.page-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), visibility 0.35s;
  z-index: 1998;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mpShow { opacity: 1; visibility: visible; }

.cart-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1998;
}

.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: var(--color-text);
}

.cart-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-close:hover { background: rgba(0,0,0,0.04); }
.cart-close svg { width: 20px; height: 20px; stroke: var(--color-text-secondary); }
.cart-close:hover svg { stroke: var(--color-text); }

.cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  scrollbar-width: thin;
  scrollbar-color: #d2d2d7 transparent;
}

.cart-content::-webkit-scrollbar { width: 4px; }
.cart-content::-webkit-scrollbar-track { background: transparent; }
.cart-content::-webkit-scrollbar-thumb { background: #d2d2d7; border-radius: 2px; }

.cart-message {
  background: #f0fdf4;
  color: #16a34a;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-message::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%2316a34a'%3E%3Cpath d='M240-160q-50 0-85-35t-35-85H40v-440q0-33 23.5-56.5T120-800h560v160h120l120 160v200h-80q0 50-35 85t-85 35q-50 0-85-35t-35-85H360q0 50-35 85t-85 35Zm0-80q17 0 28.5-11.5T280-280q0-17-11.5-28.5T240-320q-17 0-28.5 11.5T200-280q0 17 11.5 28.5T240-240Zm-120-80h32q17-32 48.5-52t60.5-20q29 0 60.5 20t48.5 52h336v-360H120v360Zm600 80q17 0 28.5-11.5T760-280q0-17-11.5-28.5T720-320q-17 0-28.5 11.5T680-280q0 17 11.5 28.5T720-240Zm-40-200h170l-90-120h-80v120ZM360-500Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.cart-empty {
  text-align: center;
  color: var(--color-text-secondary);
  padding: 48px 20px;
  font-size: 14px;
}

.cart-empty::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--color-surface);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2386868b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z'/%3E%3C/svg%3E");
  background-size: 32px;
  background-repeat: no-repeat;
  background-position: center;
}

.cart-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.cart-total span:first-child { font-size: 14px; font-weight: 600; }
.cart-total span:last-child { font-size: 17px; font-weight: 600; }

.cart-checkout {
  width: 100%;
  padding: 14px 24px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-base);
  font-family: var(--font-base);
}

.cart-checkout:hover { background: var(--color-accent-hover); }

/* Cart Product Cards */
.cart-product {
  display: flex;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  margin: 0 0 12px 0;
  transition: border-color 0.2s ease;
  position: relative;
  animation: cartItemSlideIn 0.3s ease;
}

@keyframes cartItemSlideIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.cart-product:hover { border-color: rgba(0,0,0,0.12); }

.cart-product-image {
  width: 88px;
  min-width: 88px;
  height: 88px;
  object-fit: cover;
  background: var(--color-surface);
  margin: 10px 0 10px 10px;
  border-radius: 8px;
}

.cart-product-info {
  padding: 12px 12px 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.cart-product-info a { text-decoration: none; }

.cart-product-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
  text-decoration: none;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-product-title:hover { color: var(--color-accent); }
.cart-product-variant { font-size: 12px; color: var(--color-text-secondary); margin: 0 0 4px; }
.cart-product-price { font-size: 14px; font-weight: 600; color: var(--color-text); margin-bottom: 8px; }

.cart-product-controls {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  padding: 2px;
  border-radius: 8px;
  width: fit-content;
}

.cart-quantity-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.cart-quantity-btn:hover {
  background: white;
  color: var(--color-accent);
}

.cart-quantity-input {
  width: 36px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
  -moz-appearance: textfield;
}

.cart-quantity-input::-webkit-outer-spin-button,
.cart-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: none;
  background: rgba(0,0,0,0.04);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s;
}

.cart-product:hover .cart-remove-btn { opacity: 1; }
.cart-remove-btn:hover { background: #fee2e2; color: #dc2626; }

@media (max-width: 480px) {
  .cart, .cart-sidebar { max-width: 100%; }
  .cart-product-image { width: 72px; min-width: 72px; height: 72px; }
}

/* ==========================================================================
   ICO Pool Product Page Sections
   ========================================================================== */

.alexa {
  padding: 100px 22px;
  width: 100%;
}

.alexa-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.quote-container { position: relative; max-width: 360px; }
.quote-container.top { align-self: flex-start; }
.quote-container.bottom { align-self: flex-end; }

.quote {
  font-size: 21px;
  line-height: 1.381;
  color: var(--color-text);
  padding: 12px;
  text-align: center;
}

.alexa-image {
  width: 100%;
  max-width: 500px;
  margin: 20px 0;
}

.alexa-image img { width: 100%; height: auto; }

@media (max-width: 768px) {
  .alexa { padding: 64px 22px; }
  .quote-container { max-width: 280px; margin: 20px auto; }
  .quote { font-size: 17px; }
}

.multipool {
  padding: 100px 22px;
  background: var(--color-surface);
}

.centered-img {
  display: block;
  margin: 0 auto;
  max-width: 700px;
}

.multipool .section-title {
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 48px;
}

.multipool-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.multipool-image { flex: 1; display: flex; justify-content: center; }
.multipool-features { flex: 1; display: flex; flex-direction: column; gap: 32px; }

.ico-apple { padding: 100px 22px; }
.ico-apple .section-title { text-align: center; margin-bottom: 48px; }
.ico-apple-features { flex: 1; display: flex; flex-direction: column; gap: 24px; }

/* ==========================================================================
   Measurements Page
   ========================================================================== */

.measurements {
  background: #fff;
  color: var(--color-text);
  padding: 0;
  width: 100%;
}

.measurement-item {
  display: flex;
  align-items: center;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 80px 22px;
  gap: 60px;
}

.measurement-item.reverse { flex-direction: row-reverse; }

.text-content { flex: 1; }
.text-content h3 { font-size: 40px; font-weight: 600; margin-bottom: 16px; color: var(--color-text); }
.text-content h4 { margin-bottom: 12px; color: var(--color-text); }
.text-content.white h3, .text-content.white h4 { color: white; }

.text-content ul { list-style: none; padding: 0; }
.text-content li {
  font-size: 17px;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  color: var(--color-text-secondary);
}
.text-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.image-content { flex: 1; display: flex; justify-content: center; align-items: center; }
.image-content img { max-width: 100%; height: auto; max-height: 440px; border-radius: 16px; }

@media (max-width: 768px) {
  .measurement-item, .measurement-item.reverse { flex-direction: column; text-align: center; padding: 48px 22px; }
  .text-content h3 { font-size: 28px; }
  .text-content li { padding-left: 0; }
  .text-content li::before { display: none; }
}

/* ==========================================================================
   Personalized Recommendations
   ========================================================================== */

.personalized-recommendations {
  padding: 100px 22px;
  background: var(--color-surface);
}

.recommendations-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.recommendations-content { flex: 1; }
.recommendations-content h2 { font-size: 48px; font-weight: 600; margin-bottom: 16px; }

.main-description {
  font-size: 17px;
  line-height: 1.47;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.recommendations-image { flex: 1; display: flex; justify-content: center; }
.recommendations-image img { max-width: 100%; height: auto; border-radius: 16px; }

.recommendations-list { list-style: none; padding: 0; }
.recommendations-list li {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  padding-left: 16px;
  position: relative;
}
.recommendations-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .personalized-recommendations { padding: 64px 22px; }
  .recommendations-container { flex-direction: column-reverse; gap: 32px; }
  .recommendations-content { text-align: center; }
  .recommendations-content h2 { font-size: 32px; }
  .recommendations-list { text-align: left; max-width: 360px; margin: 0 auto; }
}

/* ==========================================================================
   Sticky Parallax Section
   ========================================================================== */

.sticky-parallax-section {
  position: relative;
  background: var(--color-surface);
  padding: 80px 0;
}

.sticky-content {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  gap: 60px;
}

.sticky-text { flex: 1; }

.sticky-text-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
}

.sticky-text-section h2 { font-size: 40px; font-weight: 600; margin-bottom: 16px; }
.sticky-text-section p { font-size: 17px; line-height: 1.47; margin-bottom: 10px; color: var(--color-text-secondary); }

.sticky-image {
  flex: 1;
  position: sticky;
  top: 20vh;
  height: 60vh;
}

.sticky-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.sticky-image img.active { opacity: 1; }

.water-index-list { list-style: none; padding: 0; }
.water-index-list li { display: flex; align-items: center; margin-bottom: 6px; font-size: 14px; }

.dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.dot.light-blue { background: #7cd7f7; }
.dot.dark-blue { background: #00778b; }
.dot.orange { background: #ffa500; }
.dot.red { background: #ff0000; }
.dot.grey { background: #808080; }

@media (max-width: 768px) {
  .sticky-content { flex-direction: column; gap: 0; }
  .sticky-image { display: none; }
  .sticky-text-section { min-height: auto; padding: 12px 22px; padding-top: 280px; }
  .sticky-text-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 260px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }
  .sticky-text-section[data-image="app-dashboard"]::before { background-image: url("/assets/img/app/intuitive-app.webp"); }
  .sticky-text-section[data-image="water-index"]::before { background-image: url("/assets/img/app/water-index.webp"); }
  .sticky-text-section[data-image="measurements"]::before { background-image: url("/assets/img/app/water-quality.webp"); }
  .sticky-text-section[data-image="configuration"]::before { background-image: url("/assets/img/app/configure-app.webp"); }
  .sticky-text-section[data-image="sharing"]::before { background-image: url("/assets/img/app/share-data.webp"); }
  .sticky-text-section[data-image="multi-basin"]::before { background-image: url("/assets/img/app/multi-pool.webp"); }
}

/* ==========================================================================
   Healthier Pool
   ========================================================================== */

.healthier-pool {
  padding: 80px 22px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.healthier-pool h2 { text-align: center; font-size: 48px; font-weight: 600; margin-bottom: 48px; }

.feature-container { display: flex; flex-direction: column; gap: 60px; }

.feature-item.reverse { flex-direction: row-reverse; }

.feature-image { flex: 1; display: flex; justify-content: center; }
.feature-image img { max-width: 100%; height: auto; border-radius: 16px; }

@media (max-width: 768px) {
  .healthier-pool { padding: 48px 22px; }
  .healthier-pool h2 { font-size: 32px; margin-bottom: 32px; }
  .feature-item, .feature-item.reverse { flex-direction: column; gap: 24px; text-align: center; }
}

/* ==========================================================================
   Blue Callout
   ========================================================================== */

.blue-callout {
  background: var(--color-text);
  color: white;
  padding: 80px 22px;
  text-align: center;
}

.blue-callout h3 { font-size: 40px; font-weight: 600; margin-bottom: 12px; color: white; }
.blue-callout h4 { font-size: 21px; margin-bottom: 20px; font-weight: 400; color: rgba(255,255,255,0.7); }
.blue-callout p { font-size: 17px; line-height: 1.47; max-width: 700px; margin: 0 auto 12px; color: rgba(255,255,255,0.7); }

@media (max-width: 768px) {
  .blue-callout { padding: 48px 22px; }
  .blue-callout h3 { font-size: 28px; }
}

/* ==========================================================================
   Icon Grid
   ========================================================================== */

.icon-div {
  background: var(--color-text);
  padding: 56px 22px;
}

.icon-div.grey { background: var(--color-surface); }
.icon-div.grey .icon-item, .icon-div.grey .icon-item h3 { color: var(--color-text); }

.icon-content { max-width: var(--max-width-wide); margin: 0 auto; }

.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.icon-item { text-align: center; color: white; }

.icon-image {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-image svg { width: 100%; height: 100%; fill: currentColor; }
.icon-item h3 { font-size: 14px; font-weight: 400; color: white; margin: 0; line-height: 1.47; }

@media (max-width: 768px) { .icon-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; } }
@media (max-width: 480px) { .icon-image { width: 36px; height: 36px; } .icon-item h3 { font-size: 12px; } }

/* ==========================================================================
   ICO Promise & How to Get
   ========================================================================== */

.ico-promise {
  padding: 100px 22px;
  background: var(--color-surface);
}

.promise-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 0;
}

.promise-content { flex: 1; }
.promise-content h2 { font-size: 48px; font-weight: 600; margin-bottom: 20px; }
.promise-content p { font-size: 17px; line-height: 1.47; color: var(--color-text-secondary); margin-bottom: 16px; }

.promise-cta { margin-top: 40px; }
.promise-cta h3 { font-size: 28px; font-weight: 600; margin-bottom: 6px; }

.promise-image { flex: 1; display: flex; justify-content: center; }
.promise-image img { max-width: 100%; height: auto; border-radius: 20px; }

.how-to-get { padding: 100px 22px; background: white; }

.get-container { max-width: var(--max-width-wide); margin: 0 auto; }
.get-container h2 { font-size: 48px; font-weight: 600; text-align: center; margin-bottom: 48px; }

.get-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

.benefits-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-item {
  background: var(--color-surface);
  padding: 28px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.benefit-item .check { font-size: 2rem; margin-bottom: 10px; }
.benefit-item p { font-size: 14px; line-height: 1.47; color: var(--color-text-secondary); margin: 0; }
.benefit-item p strong { display: block; color: var(--color-text); font-size: 17px; margin-bottom: 4px; }

.get-image { display: flex; justify-content: center; }
.get-image img { max-width: 100%; height: auto; border-radius: 20px; }

.final-cta {
  grid-column: 1 / -1;
  background: var(--color-accent);
  padding: 40px;
  border-radius: 20px;
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.final-cta .water-drop { font-size: 2.5rem; }
.final-cta p { font-size: 21px; font-weight: 400; margin: 0; }

@media (max-width: 1024px) { .benefits-list { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 768px) {
  .promise-container { flex-direction: column; gap: 40px; text-align: center; }
  .promise-content h2, .get-container h2 { font-size: 32px; }
  .promise-image { order: -1; width: 100%; }
  .get-content { grid-template-columns: 1fr; }
  .benefits-list { grid-template-columns: 1fr; }
  .final-cta { flex-direction: column; padding: 28px; }
}

/* ==========================================================================
   Stock Status
   ========================================================================== */

.stock-status { font-size: 14px; font-weight: 500; padding: 6px 0; margin-bottom: 6px; }
.stock-status.loading { color: var(--color-text-secondary); }
.stock-status.in-stock { color: #16a34a; }
.stock-status.out-of-stock { color: #dc2626; }

.card-stock-status { font-size: 14px; font-weight: 500; padding: 4px 0; margin-bottom: 6px; }
.card-stock-status.in-stock { color: #16a34a; }
.card-stock-status.out-of-stock { color: #dc2626; }

.treatment-option.out-of-stock { opacity: 0.6; cursor: not-allowed; border-color: #d2d2d7; }
.treatment-option.out-of-stock:hover { background: transparent; border-color: #d2d2d7; }

/* ==========================================================================
   Form Select
   ========================================================================== */

.form-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 980px;
  min-width: 80px;
  background: white;
  font-size: 14px;
  font-family: var(--font-base);
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

.form-select:focus { outline: none; border-color: var(--color-accent); }

/* Remove old select styles */
.select-wrapper, .treatment-select, .select-arrow { display: none; }

.specs-list { list-style: none; padding: 0; }
.specs-list li { margin-bottom: 6px; font-size: 14px; color: var(--color-text-secondary); }

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Section overrides (page.njk-based pages)
   ========================================================================== */

.section {
  max-width: var(--max-width-wide);
  margin: 40px auto;
  padding: 0 22px;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.product-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card img { width: 100%; object-fit: cover; height: 200px; }
.product-info { padding: 16px; }
.product-info h3 { margin-bottom: 6px; font-size: 17px; }
.product-info p { margin-bottom: 8px; font-size: 14px; color: var(--color-text-secondary); }

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 980px;
  font-size: 14px;
  text-align: center;
  transition: background 0.3s ease;
}

.btn:hover { background: var(--color-accent-hover); }

.featured { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }

.featured-item {
  background: white;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  overflow: hidden;
}

.featured-item img { flex: 1 1 300px; height: auto; min-width: 300px; }
.featured-info { flex: 1 1 300px; padding: 16px; }
.featured-info h3 { margin-bottom: 6px; font-size: 17px; }
.featured-info p { margin-bottom: 12px; color: var(--color-text-secondary); font-size: 14px; }

@media (min-width: 768px) {
  .hero-content h1 { font-size: 56px; }
  .hero-content p { font-size: 21px; }
}

/* ==========================================================================
   Home — Banner buttons + brand promise
   ========================================================================== */

.banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.banner-button-ghost {
  background: transparent !important;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.7);
}

.banner-button-ghost:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: #fff;
}

.brand-promise {
  padding: 96px 22px 48px;
  background: #fff;
}

.brand-promise-content {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.brand-promise h2 {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.003em;
  margin-bottom: 18px;
  color: var(--color-text);
}

.brand-promise p {
  font-size: 20px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .brand-promise { padding: 56px 22px 24px; }
  .brand-promise h2 { font-size: 30px; }
  .brand-promise p { font-size: 17px; }
}

/* ==========================================================================
   Home — Product Categories Grid (Monitors / UV / Robots)
   ========================================================================== */

.product-categories {
  padding: 48px 22px 100px;
  background: #fff;
}

.product-categories-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.product-categories-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.product-categories-header h2 {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.003em;
  margin-bottom: 12px;
}

.product-categories-header p {
  font-size: 19px;
  line-height: 1.47;
}

.product-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.06);
  isolation: isolate;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, transparent);
  z-index: 2;
  pointer-events: none;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.10);
}

.category-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8f1f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  will-change: transform;
}

.category-card:hover .category-card-media img {
  transform: scale(1.04);
}

.category-card-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.category-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.category-card--monitor .category-card-badge { color: #00778b; }
.category-card--uv      .category-card-badge { color: #5641c8; }
.category-card--cleaner .category-card-badge { color: #003e47; }
.category-card--skimmer .category-card-badge { color: #c8881a; }

.category-card--monitor { --card-accent: #00778b; }
.category-card--uv      { --card-accent: #6a5acd; }
.category-card--cleaner { --card-accent: #0a8ca2; }
.category-card--skimmer { --card-accent: #f5b92e; }

.category-card-media-uv {
  background: linear-gradient(135deg, #2b2065 0%, #6a5acd 55%, #b5a0ff 100%);
}

.category-card-media-robot {
  background: linear-gradient(135deg, #003e47 0%, #00778b 55%, #0a8ca2 100%);
}

.category-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.category-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.category-card-body h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.002em;
  line-height: 1.2;
  margin: 0;
  color: var(--color-text);
}

.category-card-body p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

.category-card-features {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-card-features li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text);
  font-weight: 500;
}

.category-card-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.category-card--monitor .category-card-features li::before { background: #00778b; }
.category-card--uv      .category-card-features li::before { background: #6a5acd; }
.category-card--cleaner .category-card-features li::before { background: #0a8ca2; }
.category-card--skimmer .category-card-features li::before { background: #f5b92e; }

.category-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.category-card--monitor .category-link,
.category-card--monitor .category-eyebrow { color: #00778b; }
.category-card--uv .category-link,
.category-card--uv .category-eyebrow { color: #5641c8; }
.category-card--cleaner .category-link,
.category-card--cleaner .category-eyebrow { color: #003e47; }
.category-card--skimmer .category-link,
.category-card--skimmer .category-eyebrow { color: #c8881a; }

.category-card:hover .category-link {
  gap: 10px;
}

/* 2x2 category grid (homepage) */
.product-categories-grid.is-four {
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .product-categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .product-categories { padding: 24px 18px 72px; }
  .product-categories-grid,
  .product-categories-grid.is-four { grid-template-columns: 1fr; gap: 18px; }
  .product-categories-header h2 { font-size: 30px; }
  .category-card-body h3 { font-size: 22px; }
}

/* 4-step "How It Works" grid (homepage) */
.steps-grid.steps-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
  .steps-grid.steps-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .steps-grid.steps-grid--4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reusable product card + grid (used by /shop/ and every /<category>/ page)
   ========================================================================== */
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 1000px) { .shop-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .shop-product-grid { grid-template-columns: 1fr; gap: 16px; } }

.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 24px 22px 26px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.025);
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: rgba(0,113,227,0.25);
}

.shop-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
/* Corner ribbon on the product card image when a product is on
   pre-order. Sits above the image but below any hover scale. */
.shop-card-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #f5a524;
  color: #1d1d1f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.5s ease;
}
.shop-card:hover .shop-card-media img { transform: scale(1.04); }

.shop-card-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0071e3;
  margin: 0 0 6px;
}
.shop-card-name {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.3;
  margin: 0 0 10px;
  /* Clamp to 2 lines so card heights stay even */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.shop-card-pricerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.shop-card-price {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
}
.shop-card-stock {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.shop-card-stock.in-stock    { background: rgba(46,125,50,0.1); color: #2e7d32; }
.shop-card-stock.out-of-stock { background: rgba(198,40,40,0.1); color: #c62828; }
.shop-card-stock.preorder    { background: rgba(245,165,36,0.15); color: #b76e00; }
.shop-card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #6e6e73;
  margin: 0 0 18px;
  flex: 1;
  /* Clamp description for uniform height */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.shop-card-actions .banner-button {
  flex: 1;
  font-size: 14px;
  padding: 10px 16px;
  text-align: center;
}
/* Disabled CTA state, flipped by inventory.js when a product sells out */
.banner-button.disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}
.banner-button.disabled:hover { background-color: #ccc; }

/* ==========================================================================
   Category page — full product grid (uses .shop-product-grid + .shop-card)
   ========================================================================== */
.category-products-grid {
  background: #fbfbfd;
  padding: 56px 22px;
}
.category-products-grid-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.category-products-grid-header {
  text-align: left;
  margin: 0 0 28px;
}
.category-products-grid-header h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.003em;
  color: #1d1d1f;
  margin: 6px 0 6px;
}
.category-products-grid-header p {
  font-size: 17px;
  line-height: 1.45;
  color: #6e6e73;
  margin: 0;
  max-width: 640px;
}
@media (max-width: 768px) {
  .category-products-grid { padding: 40px 18px; }
  .category-products-grid-header h2 { font-size: 26px; }
}

/* Category pages intentionally hide the per-card stock badge — the /shop/
   hub already surfaces availability, and category pages stay calmer
   visually when the price row is just the price. The pre-order corner
   flag (.shop-card-flag) still renders, so pre-order products remain
   clearly marked. */
.category-products-grid .shop-card-stock { display: none; }

/* ==========================================================================
   Category page — horizontal product icon strip (Apple-store nav style)
   Kept for legacy pages; new category pages use .shop-product-grid above.
   ========================================================================== */
.category-products {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  padding: 18px 0;
  overflow: hidden;
}

.category-products-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

.category-products-viewport {
  position: relative;
  max-width: 100%;
}

.category-products-scroller {
  display: flex;
  gap: 32px;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 4px 10px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.category-products-scroller.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.category-products-scroller::-webkit-scrollbar {
  display: none;
}

.category-product-tile {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-decoration: none;
  color: #1d1d1f;
  scroll-snap-align: start;
  width: 110px;
  transition: transform 0.18s ease, color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.category-product-tile:hover {
  color: #00778b;
  transform: translateY(-2px);
}

.category-products-scroller.is-dragging .category-product-tile {
  pointer-events: none;
}

.category-product-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.category-product-tile:hover .category-product-icon {
  background: #ecf6f8;
  box-shadow: 0 4px 14px rgba(0, 119, 139, 0.15);
}

.category-product-icon img {
  width: 78px;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.category-product-label {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.category-products-nav {
  position: absolute;
  top: calc(50% - 18px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.category-products-nav:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.05);
}

.category-products-nav:focus-visible {
  outline: 2px solid #00778b;
  outline-offset: 2px;
}

.category-products-nav.is-hidden,
.category-products-nav[hidden] {
  display: none !important;
}

.category-products-nav-prev { left: 4px; }
.category-products-nav-next { right: 4px; }

@media (max-width: 680px) {
  .category-products { padding: 12px 0; }
  .category-products-inner { padding: 0 14px; }
  .category-products-scroller {
    gap: 18px;
    justify-content: flex-start;
    padding-left: 4px;
    padding-right: 4px;
  }
  .category-product-tile { width: 88px; }
  .category-product-icon { width: 76px; height: 76px; }
  .category-product-icon img { width: 60px; }
  .category-product-label { font-size: 12px; }
  .category-products-nav { width: 32px; height: 32px; top: calc(50% - 16px); }
  .category-products-nav-prev { left: 2px; }
  .category-products-nav-next { right: 2px; }
}

/* ==========================================================================
   Home — Section eyebrow, reverse, CTA row, text link
   ========================================================================== */

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.section-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.text-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.media-row.reverse {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .media-row.reverse { flex-direction: column; }
}

/* ==========================================================================
   Home — UV hero graphic card
   ========================================================================== */

.uv-section {
  background: linear-gradient(180deg, #fafaff 0%, #ffffff 100%);
}

.uv-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
}

.uv-hero-card {
  background: linear-gradient(145deg, #2b2065 0%, #5b4ac8 50%, #8a78ff 100%);
  color: #fff;
  border-radius: 24px;
  padding: 40px 36px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 30px 60px rgba(60, 40, 180, 0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.uv-hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 40%);
  pointer-events: none;
}

.uv-hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.uv-hero-stat {
  font-size: 88px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.uv-hero-label {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.uv-hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.uv-hero-list li {
  font-size: 14px;
  padding-left: 22px;
  position: relative;
  opacity: 0.95;
}

.uv-hero-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #b5a0ff;
}

/* ==========================================================================
   Home — Robot hero graphic card
   ========================================================================== */

.robot-section {
  background: #fff;
}

.robot-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
}

.robot-hero-card {
  background: linear-gradient(145deg, #e8f1f5 0%, #d1eaf0 100%);
  border-radius: 24px;
  padding: 32px 28px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 50px rgba(0, 119, 139, 0.18);
  text-align: center;
}

.robot-hero-svg {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  display: block;
}

.robot-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,119,139,0.12);
}

.robot-hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.robot-hero-stats strong {
  font-size: 26px;
  font-weight: 700;
  color: #00778b;
  letter-spacing: -0.01em;
}

.robot-hero-stats span {
  font-size: 12px;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .uv-hero-stat { font-size: 64px; }
  .uv-hero-card, .robot-hero-card { padding: 32px 22px; }
  .robot-hero-stats strong { font-size: 22px; }
}

/* ==========================================================================
   Home — Final callout adjustments
   ========================================================================== */

.final-callout .product-callout-content {
  grid-template-columns: 1fr;
  text-align: center;
}

.final-callout .section-cta-row {
  justify-content: center;
  margin-top: 16px;
}

.final-callout .product-callout-text {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

/* ==========================================================================
   Product Detail Page (PDP)
   Left image gallery / right buy box on desktop, stacked on mobile.
   Sticky purchase column on desktop. Fixed mobile buy bar below md.
   ========================================================================== */

.pdp-breadcrumbs {
  padding: 1.25rem 0 0;
  font-size: 0.875rem;
  color: #666;
}
.pdp-breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  align-items: center;
}
.pdp-breadcrumbs li { display: inline-flex; align-items: center; }
.pdp-breadcrumbs li + li::before {
  content: "\203A";
  margin-right: 0.5rem;
  color: #b0b0b0;
}
.pdp-breadcrumbs a {
  color: #00778b;
  text-decoration: none;
}
.pdp-breadcrumbs a:hover { text-decoration: underline; }
.pdp-breadcrumbs [aria-current="page"] { color: #333; font-weight: 500; }

.product-section {
  padding: 1.5rem 0 4rem;
}

.pdp-container {
  max-width: 1200px;
}

.pdp-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .pdp-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.pdp-media { min-width: 0; }
.pdp-buy { min-width: 0; }

@media (min-width: 900px) {
  .pdp-buy-inner {
    position: sticky;
    top: 100px;
  }
}

.pdp-buy h1,
.pdp-buy .pdp-title {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  color: #1d1d1f;
}

.pdp-subhead {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: #555;
  margin: 0 0 1.25rem;
}

.pdp-benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.5rem;
}
.pdp-benefits li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}
.pdp-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  background: #00778b;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") no-repeat center / contain;
}

.pdp-add-to-cart {
  width: 100%;
  font-size: 1.0625rem;
  padding: 1rem 1.5rem;
}

.pdp-trust-pills {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.pdp-trust-pills li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  background: #f5f5f7;
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #333;
}
.pdp-trust-pills li strong { color: #1d1d1f; display: block; }
.pdp-trust-pills li img,
.pdp-trust-pills li svg { flex-shrink: 0; }

.pdp-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
  padding: 0.75rem 1rem env(safe-area-inset-bottom);
  z-index: 100;
}
.pdp-mobile-cta-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.pdp-mobile-cta-price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.pdp-mobile-cta-amount {
  font-size: 1.25rem;
  font-weight: 600;
  color: #00778b;
}
.pdp-mobile-cta-meta {
  font-size: 0.75rem;
  color: #666;
}
.pdp-mobile-cta-btn {
  margin-left: auto;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .pdp-mobile-cta { display: block; }
  body:has(.pdp-mobile-cta) { padding-bottom: 88px; }
  .pdp-buy h1,
  .pdp-buy .pdp-title { font-size: 1.75rem; }
  .pdp-trust-pills { grid-template-columns: 1fr; }
}

/* Variant selector */
.treatment-selector { margin: 1.5rem 0; }
.treatment-label {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 500;
}
.treatment-options {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.treatment-option {
  flex: 1 1 auto;
  min-width: 9rem;
  padding: 0.875rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.treatment-option:hover { border-color: #00778b; }
.treatment-option.active {
  border-color: #00778b;
  background-color: rgba(0,119,139,0.06);
  color: #00778b;
}
.treatment-option.out-of-stock {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: #d2d2d7;
}
.treatment-option.out-of-stock:hover {
  background: #fff;
  border-color: #d2d2d7;
}

/* Price */
.product-price {
  font-size: 2rem;
  color: #00778b;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.product-price .price-amount { display: inline-flex; align-items: baseline; }
.price-tag {
  font-size: 0.8125rem;
  padding: 0.375rem 0.875rem;
  background: rgba(0,119,139,0.08);
  border-radius: 100px;
  color: #00778b;
  font-weight: 500;
}

/* Stock status */
.stock-status {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  margin-bottom: 0.5rem;
}
.stock-status .status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
  background: currentColor;
}
.stock-status.loading { color: #666; }
.stock-status.in-stock { color: #2e7d32; }
.stock-status.out-of-stock { color: #c62828; }

.product-description {
  color: #555;
  line-height: 1.6;
  margin: 1.25rem 0;
  font-size: 1.0625rem;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.banner-button.disabled,
.banner-button.out-of-stock-btn {
  background-color: #ccc;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.8;
}
.banner-button.disabled:hover,
.banner-button.out-of-stock-btn:hover {
  background-color: #ccc;
}

/* Rating */
.rating-container {
  display: flex;
  align-items: center;
  margin: 0 0 0.75rem;
  gap: 0.5rem;
}
.stars-container {
  position: relative;
  display: inline-block;
  font-size: 1.125rem;
  line-height: 1;
}
.stars-empty { color: #e0e0e0; }
.stars-filled {
  color: #FFC107;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
}
.rating-count {
  color: #666;
  font-size: 0.875rem;
  text-decoration: none;
}
.rating-count:hover { color: #00778b; text-decoration: underline; }

/* Product gallery */
.product-gallery {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
}
.main-image-container {
  position: relative;
  width: 100%;
  margin-bottom: 0;
  background: #f8f8f8;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #00778b;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.gallery-nav:hover {
  background: #fff;
  color: #005c6d;
}
.gallery-nav:active { transform: translateY(-50%) scale(0.96); }
.gallery-nav.prev { left: 1rem; }
.gallery-nav.next { right: 1rem; }
.thumbnail-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  margin: 0;
}
.thumbnail {
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f8f8f8;
  transition: border-color 0.15s ease;
}
.thumbnail:hover { border-color: rgba(0,119,139,0.35); }
.thumbnail.active { border-color: #00778b; }
.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
  }
  .thumbnail-container { gap: 0; grid-template-columns: repeat(5, 1fr); }
}

/* Package contents band */
.package-contents {
  background: #f5f5f7;
  padding: 3.5rem 1rem;
  margin-top: 2rem;
}
.package-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.package-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 2rem;
  color: #1d1d1f;
}
.contents-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.content-item { padding: 0.5rem; }
.content-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.content-item h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
  color: #1d1d1f;
}
.content-item p {
  font-size: 0.8125rem;
  color: #666;
  margin: 0;
}

@media (max-width: 768px) {
  .contents-grid { grid-template-columns: repeat(2, 1fr); }
  .package-contents { padding: 2.5rem 1rem; }
}

/* Tabs */
.product-tabs {
  margin-top: 5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.tabs-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.tab-list {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.tab-button {
  padding: 1rem 0;
  background: none;
  border: none;
  font-size: 1rem;
  color: #666;
  cursor: pointer;
  transition: color 0.15s ease;
  position: relative;
  font-weight: 500;
}
.tab-button:hover { color: #00778b; }
.tab-button[aria-selected='true'] { color: #00778b; }
.tab-button[aria-selected='true']::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #00778b;
  border-radius: 2px;
}
.tab-content {
  padding: 2.5rem 0 1rem;
  color: #333;
  line-height: 1.65;
}
.tab-panel { display: none; }
.tab-panel[aria-hidden="false"] { display: block; }
.tab-content h2 { margin: 0 0 1.5rem; font-size: 1.5rem; }
.tab-content h3 { margin: 2rem 0 1rem; font-size: 1.175rem; }
.tab-content p { margin: 0 0 1rem; }
.tab-content ul {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.25rem;
  list-style-type: disc;
}
.tab-content ul ul { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.tab-content ul li { margin-bottom: 0.375rem; }

.info-grid { display: grid; gap: 0; }
.info-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  gap: 1rem;
}
.info-label { font-weight: 600; color: #1d1d1f; }
.info-value { color: #555; }

.features-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.features-list h3 {
  font-size: 1.125rem;
  color: #1d1d1f;
  margin: 0 0 0.5rem;
}
.features-list p { color: #555; margin: 0; }

.faq-list { display: grid; gap: 1.5rem; }
.faq-item h3 {
  font-size: 1.125rem;
  color: #1d1d1f;
  margin: 0 0 0.5rem;
}
.faq-item p { color: #555; margin: 0 0 0.75rem; }

@media (max-width: 768px) {
  .tab-list {
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .tab-button { white-space: nowrap; padding: 0.75rem 0; }
  .info-row { grid-template-columns: 1fr; padding: 0.75rem 0; }
  .tab-content h2 { font-size: 1.35rem; }
  .product-tabs { margin-top: 3rem; }
}

.specs-list { list-style: none; padding: 0; margin: 0; }
.specs-list li { margin-bottom: 0.35rem; }
.specs-list li:last-child { margin-bottom: 0; }

/* Shop trust band (ico product) */
.shop-section-wrapper { background: #fff; }
.shop-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* Reviews */
.reviews-section {
  padding: 4rem 1rem;
  background-color: #f9f9f9;
}
.section-title {
  text-align: center;
  margin: 0 0 2rem;
  color: #1d1d1f;
  font-size: 2rem;
  font-weight: 600;
}
.reviews-summary {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.rating-summary { text-align: center; }
.large-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.large-rating-number {
  font-size: 2.75rem;
  font-weight: 600;
  color: #00778b;
  line-height: 1;
}
.large-stars-container {
  position: relative;
  display: inline-block;
  font-size: 1.75rem;
  line-height: 1;
  margin: 0.5rem 0;
}
.large-stars-empty { color: #e0e0e0; }
.large-stars-filled {
  color: #FFC107;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
}
.rating-count-large { color: #666; font-size: 0.95rem; }

.reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.review-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.review-header { margin-bottom: 0.75rem; }
.review-stars { color: #FFC107; font-size: 1.125rem; margin-bottom: 0.5rem; }
.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.review-author { font-weight: 600; color: #1d1d1f; }
.review-date { color: #999; font-size: 0.8125rem; }
.review-content p { color: #555; line-height: 1.6; margin: 0; }
.hidden-review { display: none; }

.reviews-actions { text-align: center; margin-top: 1.5rem; }
.show-more-button {
  background-color: #00778b;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.show-more-button:hover { background-color: #005c6d; }

@media (max-width: 768px) {
  .reviews-list { grid-template-columns: 1fr; }
  .large-rating-number { font-size: 2.25rem; }
  .large-stars-container { font-size: 1.375rem; }
  .section-title { font-size: 1.5rem; }
}

/* ==========================================================================
   Accessory PDP layout — makes the shared product-section hero render
   as a proper "image left / details right" grid on desktop, stacked on mobile.
   The existing accessory templates use Foundation-style .grid-x / .cell
   markup which had no CSS backing it; these rules wire that up cleanly.
   ========================================================================== */

.product-section {
  padding: 2.5rem 0 3rem;
}

.product-section > .grid-container {
  max-width: 1200px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  overflow: visible;
}

.product-section .grid-x {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.product-section .grid-x > .cell {
  min-width: 0;
  width: 100%;
}

@media (min-width: 900px) {
  .product-section {
    padding: 3.5rem 0 4rem;
  }

  .product-section .grid-x {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }

  /* Sticky buy column so details stay in view while the page is long */
  .product-section .grid-x > .cell[data-product-section] {
    position: sticky;
    top: 100px;
  }
}

/* Gallery polish */
.product-section .product-gallery {
  position: relative;
  width: 100%;
  margin-bottom: 0;
}

.product-section .main-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f7;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.product-section .main-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

/* Buy column typography & rhythm */
.product-section h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  margin: 0 0 0.75rem;
}

.product-section .product-price {
  font-size: 1.875rem;
  color: #00778b;
  font-weight: 600;
  margin: 0.25rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
}

.product-section .stock-status {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0 0.5rem;
  margin-bottom: 0.25rem;
}

.product-section .product-description {
  color: #444;
  line-height: 1.6;
  font-size: 1.0625rem;
  margin: 1.25rem 0 1.5rem;
}

.product-section .product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.product-section .product-actions .banner-button {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  min-width: 180px;
  text-align: center;
}

/* Tabs + reviews containers match PDP width */
.product-tabs > .grid-container,
.reviews-section > .grid-container {
  max-width: 1200px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Flush thumbnails (no gap/margin around gallery imagery) */
.product-section .product-gallery,
.product-section .main-image-container,
.product-section .thumbnail-container,
.product-section .thumbnail {
  margin: 0;
}

.product-section .thumbnail-container {
  gap: 0;
}

/* Mobile refinements */
@media (max-width: 899px) {
  .product-section .main-image-container {
    padding: 0;
    border-radius: 16px;
  }

  .product-section .thumbnail-container {
    gap: 0;
  }
}

@media (max-width: 768px) {
  .product-section {
    padding: 1.5rem 0 2rem;
  }

  .product-section .grid-x {
    gap: 1.5rem;
  }

  .product-section .product-price {
    font-size: 1.625rem;
  }

  .product-section .product-actions .banner-button {
    width: 100%;
    min-width: 0;
  }
}

/* ==========================================================================
   Product Subnav (sticky scroll-triggered nav for product pages)
   ========================================================================== */
.product-subnav {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(251, 251, 253, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateY(calc(-100% - 52px));
    transition: transform 0.36s cubic-bezier(0.32, 0.08, 0.24, 1);
    will-change: transform;
    overflow: hidden;
    pointer-events: none;
}
.product-subnav.visible {
    transform: translateY(0);
    overflow: visible;
    pointer-events: auto;
}
.product-subnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    height: 52px;
    gap: 1rem;
}
.product-subnav-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
    white-space: nowrap;
    margin-right: auto;
}
.product-subnav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-right: 1rem;
}
.product-subnav-link {
    font-size: 0.82rem;
    color: #6e6e73;
    text-decoration: none;
    padding: 1rem 0;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0;
}
.product-subnav-link:hover {
    color: #1d1d1f;
}
.product-subnav-link.active {
    color: #1d1d1f;
}
.product-subnav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #0071e3;
    border-radius: 1px;
}
.product-subnav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.product-subnav-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1d1d1f;
    white-space: nowrap;
}
.product-subnav-price:empty {
    display: none;
}
.product-subnav-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0071e3;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 1.5rem;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0;
}
.product-subnav-buy:hover {
    background: #0058b8;
    color: #fff;
}
.product-subnav-dropdown-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #d2d2d7;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: #1d1d1f;
    padding: 0;
    transition: all 0.2s ease;
}
.product-subnav-dropdown-toggle:hover {
    background: #f5f5f7;
}
.product-subnav-dropdown-toggle svg {
    transition: transform 0.3s ease;
}
.product-subnav-dropdown-toggle.open svg {
    transform: rotate(180deg);
}
.product-subnav-dropdown {
    display: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.5rem 1.5rem 0.75rem;
}
.product-subnav-dropdown.open {
    display: block;
}
.product-subnav-dropdown-link {
    display: block;
    font-size: 0.95rem;
    color: #6e6e73;
    text-decoration: none;
    padding: 0.7rem 0;
    transition: color 0.15s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.product-subnav-dropdown-link:last-child {
    border-bottom: none;
}
.product-subnav-dropdown-link:hover,
.product-subnav-dropdown-link.active {
    color: #1d1d1f;
}
.product-subnav-dropdown-buy {
    color: #0071e3;
    font-weight: 600;
}
.product-subnav-dropdown-buy:hover {
    color: #0058b8;
}
.product-subnav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.product-subnav-overlay.open {
    display: block;
    opacity: 1;
}
@media screen and (max-width: 860px) {
    .product-subnav-links {
        display: none;
    }
    .product-subnav-dropdown-toggle {
        display: inline-flex;
    }
}
@media screen and (max-width: 480px) {
    .product-subnav-inner {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    .product-subnav-title {
        font-size: 0.95rem;
    }
    .product-subnav-price {
        display: none;
    }
}

/* ==========================================================================
   Product Page Polish
   Shared, lightweight refinements for product pages and their marketing
   sections (those rendered via products/extras/ + products/sections/).
   Section-specific layouts live in their existing rules above; this block
   only normalizes rhythm and anchor scrolling.
   ========================================================================== */

/* Make in-page anchor links land below the fixed header + sticky subnav. */
:target,
[id="pdp-hero"],
[id="package-contents"],
[id="details"],
[id="reviews"],
[id="highlights"],
[id="water-index"],
[id="alexa"],
[id="design"],
[id="how-it-works"],
[id="ico-app"],
[id="compare"] {
    scroll-margin-top: 120px;
}

/* Vertical rhythm for marketing sections rendered via the extras include.
   Each section already provides its own background; we just give them a
   consistent breathing room and a hairline between adjacent sections. */
.ico-section + .ico-section {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* Subnav becomes more useful with more links — keep them tight on desktop. */
@media (min-width: 861px) {
    .product-subnav-links { gap: 1.4rem; }
    .product-subnav-link { font-size: 0.8rem; }
}

/* ==========================================================================
   Product Page — Below-the-Fold Polish
   Refines the technical sections (Package Contents, Tabs, Trust band,
   Reviews) to match the Apple-inspired aesthetic of the rest of the page.
   These rules intentionally come last so they override the older base
   styles for the same elements.
   ========================================================================== */

/* ---- Shared section title rhythm ---- */
.package-content h2,
.tab-content h2,
.reviews-section .section-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: #1d1d1f;
    margin: 0 0 1.5rem;
}

/* ---- Package Contents ---- */
.package-contents {
    background: #fbfbfd;
    padding: clamp(56px, 6vw, 88px) 22px;
    margin-top: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.package-content { text-align: center; }
.package-content h2 { margin-bottom: 2.5rem; }
.contents-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.content-item img {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: block;
}
.content-item h3 { font-size: 17px; font-weight: 600; color: #1d1d1f; }
.content-item p { font-size: 14px; color: #6e6e73; line-height: 1.45; }

/* ---- Tabs ---- */
.product-tabs {
    margin-top: 0;
    padding: clamp(56px, 6vw, 96px) 22px clamp(40px, 5vw, 64px);
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.tab-list {
    gap: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    justify-content: flex-start;
}
.tab-button {
    font-size: 0.95rem;
    font-weight: 500;
    color: #6e6e73;
    letter-spacing: -0.01em;
    padding: 1rem 0;
}
.tab-button:hover { color: #1d1d1f; }
.tab-button[aria-selected='true'] { color: #1d1d1f; }
.tab-button[aria-selected='true']::after { background: #0071e3; }

.tab-content { padding: 2.75rem 0 1rem; color: #424245; }
.tab-content h2 { margin-bottom: 1.25rem; }
.tab-content h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 1.75rem 0 0.5rem;
}
.tab-content p {
    font-size: 1.0625rem;
    line-height: 1.55;
    color: #424245;
    margin: 0 0 1rem;
}
.tab-content ul { padding-left: 1.25rem; margin: 0.75rem 0 1.25rem; }
.tab-content ul li {
    font-size: 1.0625rem;
    line-height: 1.55;
    color: #424245;
    margin-bottom: 0.4rem;
}

/* ---- Specs / info table ---- */
.info-grid { gap: 0; }
.info-row {
    grid-template-columns: 240px 1fr;
    padding: 1.125rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    gap: 1.5rem;
}
.info-row:first-child { border-top: 1px solid rgba(0, 0, 0, 0.08); }
.info-label { color: #1d1d1f; font-weight: 600; }
.info-value { color: #424245; }

/* ---- FAQ accordion (uses native <details>/<summary>) ---- */
.faq-list {
    display: grid;
    gap: 0;
    max-width: 900px;
    margin: 0;
}
.faq-item {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
}
.faq-item:last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 0;
    font-size: 1.0625rem;
    font-weight: 500;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.15s ease;
}
.faq-item summary:hover { color: #0071e3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z'/></svg>") no-repeat center / contain;
    transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .faq-content {
    padding: 0 0 1.25rem;
    color: #424245;
    font-size: 1rem;
    line-height: 1.55;
}
.faq-item .faq-content p:first-child { margin-top: 0; }
.faq-item .faq-content p:last-child { margin-bottom: 0; }

/* ---- Trust band (Free Shipping / Payment Plans / Guarantee) ---- */
.shop-section-wrapper {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.shop-section { padding: clamp(40px, 5vw, 64px) 22px; }
.shop-section .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
}
.shop-section .feature-card {
    text-align: center;
    padding: 0 1.5rem;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
.shop-section .feature-card:last-child { border-right: none; }
.shop-section .feature-card .feature-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 0.75rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-section .feature-card .feature-icon img { width: 28px; height: 28px; }
.shop-section .feature-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}
.shop-section .feature-card p {
    font-size: 0.875rem;
    color: #6e6e73;
    margin: 0;
}

@media (max-width: 768px) {
    .shop-section .features-grid { grid-template-columns: 1fr; gap: 0; }
    .shop-section .feature-card {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 1.25rem 0;
    }
    .shop-section .feature-card:last-child { border-bottom: none; }
}

/* ---- Reviews ---- */
.reviews-section {
    background: #fbfbfd;
    padding: clamp(56px, 6vw, 96px) 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.section-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.1;
    margin: 0 0 2.5rem;
    color: #1d1d1f;
}
.reviews-summary { margin-bottom: 3rem; }
.large-rating {
    align-items: center;
    gap: 0.5rem;
}
.large-rating-number {
    font-size: clamp(48px, 5vw, 64px);
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
}
.large-rating-number::after {
    content: ' / 5';
    font-size: 0.4em;
    color: #6e6e73;
    font-weight: 400;
    margin-left: 0.25rem;
}
.large-stars-container { font-size: 1.5rem; }
.rating-count-large {
    font-size: 0.9375rem;
    color: #6e6e73;
    margin-top: 0.5rem;
}

.reviews-list { gap: 1.5rem; }
.review-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.08);
}
.review-stars { color: #FFC107; font-size: 1rem; margin-bottom: 0.5rem; }
.review-author { font-weight: 600; color: #1d1d1f; }
.review-date { color: #86868b; font-size: 0.8125rem; }
.review-content p { color: #424245; font-size: 0.9375rem; line-height: 1.55; }

.show-more-button {
    background: #1d1d1f;
    color: #fff;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 0.75rem 1.75rem;
    border-radius: 980px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.show-more-button:hover { background: #2d2d2f; }
.show-more-button:active { transform: scale(0.98); }

@media (max-width: 768px) {
    .info-row { grid-template-columns: 1fr; gap: 0.25rem; padding: 1rem 0; }
    .reviews-list { grid-template-columns: 1fr; }
    .tab-content h3 { font-size: 1rem; }
    .faq-item summary { font-size: 1rem; }
}

/* ============================================================================
   PDP redesign — flatten tabs and FAQ accordions.

   Description / Additional information / Features / FAQ are no longer hidden
   behind tab clicks; every panel renders inline with its own H2 acting as the
   section heading. Inside the FAQ panel, every <details> element is forced
   into an "open" visual state so all questions and answers are visible at
   once. Applies to every product page (ICO Pool, all accessories)
   because they share the same .product-tabs / .tab-panel / .faq-item markup.
   ============================================================================ */
.product-tabs .tab-list { display: none; }

.product-tabs .tab-panel,
.product-tabs .tab-panel[aria-hidden="true"],
.product-tabs .tab-panel[aria-hidden="false"] {
    display: block !important;
}

.product-tabs .tab-content > .tab-panel + .tab-panel {
    margin-top: 3.5rem;
    padding-top: 3.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.product-tabs details.faq-item > * { display: block !important; }
.product-tabs details.faq-item { cursor: default; }
.product-tabs details.faq-item summary { cursor: default; pointer-events: none; }
.product-tabs details.faq-item summary::after { content: none !important; }
.product-tabs details.faq-item summary::-webkit-details-marker { display: none; }

@media (max-width: 768px) {
    .product-tabs .tab-content > .tab-panel + .tab-panel {
        margin-top: 2.5rem;
        padding-top: 2.5rem;
    }
}
