/* SwimFresh sell layer — loads last. Phone, tablet, desktop. */

html {
  --sf-cookie-h: 0px;
}

body.sf-cookie-open {
  --sf-cookie-h: 6.75rem;
}

.sf-offer-bar {
  background: linear-gradient(90deg, #084850 0%, #0b5c63 48%, #0d7a85 100%);
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: clamp(0.78rem, 2.4vw, 0.95rem);
  letter-spacing: 0.01em;
  line-height: 1.3;
  padding: 0.42rem 1rem;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

.sf-offer-bar a {
  color: #fff !important;
  text-decoration: none;
  display: inline-block;
}

.sf-offer-bar a:hover,
.sf-offer-bar a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Basket stays visible next to the hamburger on phone + tablet. */
@media (max-width: 1024px) {
  .sf-cart-link.header-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.8rem !important;
    min-height: 44px !important;
    font-size: 0.82rem !important;
    white-space: nowrap;
  }

  .sf-cart-link__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: #fff;
    color: #084850;
    font-size: 0.72rem;
    font-weight: 800;
  }

  .header-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .header-inner .logo-link,
  .header-inner .brand-logo {
    margin-right: auto;
  }
}

@media (min-width: 1025px) {
  .sf-cart-link.header-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
  }

  .sf-cart-link__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: #fff;
    color: #084850;
    font-size: 0.75rem;
    font-weight: 800;
  }
}

/* High-contrast offer on dark hero photos */
.hero__offer {
  display: inline-block;
  margin: 0.85rem 0 0;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: #f5a623;
  color: #084850 !important;
  font-weight: 800;
  font-size: clamp(0.82rem, 2.2vw, 0.98rem);
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(245, 166, 35, 0.35);
}

.hero .btn--primary {
  background: linear-gradient(135deg, #f5a623, #ffd166) !important;
  color: #084850 !important;
  border: 0 !important;
  box-shadow: 0 6px 0 #c47f0a, 0 14px 24px rgba(245, 166, 35, 0.32) !important;
}

.hero-controls {
  z-index: 4;
}

@media (max-width: 1024px) {
  .hero__text .btn-group {
    margin-bottom: 3.25rem;
  }

  .hero-controls {
    bottom: calc(0.55rem + var(--sf-cookie-h)) !important;
  }

  .hero {
    padding-bottom: calc(4.5rem + var(--sf-cookie-h)) !important;
  }
}

@media (max-width: 720px) {
  .hero__offer {
    margin-top: 0.7rem;
    margin-bottom: 3rem;
    max-width: 100%;
  }
}

.product-card__deal {
  margin: 0 0 0.65rem;
  font-weight: 800;
  color: #0b5c63;
  font-size: 0.95rem;
}

.product-card__or {
  margin: 0.45rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5a858c;
}

.product-card .btn--accent {
  background: linear-gradient(135deg, #f5a623, #ffd166) !important;
  color: #084850 !important;
  box-shadow: 0 6px 0 #c47f0a, 0 12px 22px rgba(245, 166, 35, 0.28) !important;
}

/* Sticky ATC sits above cookie bar on phones/tablets. */
.sf-sticky-atc {
  bottom: var(--sf-cookie-h) !important;
  padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px)) !important;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .sf-sticky-atc.is-visible {
    display: flex !important;
  }
}

body.sf-cookie-open #sf-cookie.sf-cookie.is-visible {
  z-index: 1000002;
}

/* iOS / Safari */
.hero {
  min-height: min(88svh, 720px);
}

@supports (height: 100dvh) {
  @media (max-width: 720px) {
    .hero {
      min-height: min(88dvh, 680px);
    }
  }
}

button,
.btn,
.sf-cart-link {
  -webkit-tap-highlight-color: rgba(11, 92, 99, 0.18);
}

input,
select,
textarea {
  font-size: 16px !important;
}

/* Checkout has its own brand bar — never stack marketing chrome */
body.woocommerce-checkout .sf-offer-bar,
body.sf-co .sf-offer-bar {
  display: none !important;
}
