/* =====================================================
   Speedo Coolers — Stylesheet
   Mobile-first. Edit design tokens in :root below.
   ===================================================== */

:root {
  --brand-green: #B8D63F;
  --brand-green-dark: #9CB933;
  --brand-teal: #2C6E72;
  --brand-teal-dark: #1F5256;
  --whatsapp: #25D366;
  --whatsapp-dark: #1EB155;

  --bg: #FFFFFF;
  --bg-soft: #F6F8F7;
  --bg-card: #FFFFFF;
  --border: #E5E7EB;
  --text: #1F2937;
  --muted: #6B7280;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .12);

  --container: 1200px;
  --header-h: 68px;
  --announce-h: 36px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-teal); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.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;
}

/* ----------- Announcement bar ----------- */
.announce {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--announce-h);
  background: linear-gradient(90deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  text-align: center;
}
.announce__inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@media (max-width: 420px) {
  .announce { font-size: 12px; }
}

/* ----------- Header ----------- */
.site-header {
  position: sticky;
  top: var(--announce-h);
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.site-logo img {
  height: 36px;
  width: auto;
  border-radius: 6px;
}
.site-nav {
  display: none;
  gap: 24px;
  margin-left: auto;
}
.site-nav a {
  color: var(--text);
  font-weight: 500;
}
.header-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background .15s;
}
.header-cta:hover { background: var(--whatsapp-dark); text-decoration: none; }
@media (min-width: 768px) {
  .site-nav { display: flex; }
  .header-cta { margin-left: 0; }
}

/* ----------- Buttons ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s, border-color .15s, color .15s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 14px 22px; font-size: 16px; border-radius: var(--radius); }
.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn--primary {
  background: var(--brand-teal);
  color: #fff;
}
.btn--primary:hover { background: var(--brand-teal-dark); }
.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn--whatsapp:hover { background: var(--whatsapp-dark); }
.btn--outline {
  background: transparent;
  color: var(--brand-teal);
  border-color: var(--brand-teal);
}
.btn--outline:hover { background: var(--brand-teal); color: #fff; }

/* ----------- Hero (image-led) ----------- */
.hero {
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(44, 110, 114, .06), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  padding: 20px 0 36px;
}
.hero__inner {
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero__banner {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #eaf2f6;
  isolation: isolate;
}
.hero__banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, .18) 100%);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(44, 110, 114, .08);
  border: 1px solid rgba(44, 110, 114, .25);
  color: var(--brand-teal-dark);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
}
.hero__badge svg { color: var(--brand-teal); flex-shrink: 0; }
@media (min-width: 768px) {
  .hero__badge { font-size: 14.5px; padding: 9px 18px; }
}

.hero__cta {
  display: flex;
  justify-content: center;
  width: 100%;
}
.hero__btn {
  padding: 16px 28px;
  font-size: 17px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
  letter-spacing: .01em;
}
.hero__btn:hover { box-shadow: 0 14px 32px rgba(37, 211, 102, .42); }
@media (min-width: 768px) {
  .hero { padding: 32px 0 56px; }
  .hero__inner { gap: 28px; }
  .hero__btn { padding: 18px 36px; font-size: 18px; }
}

/* ----------- Section header ----------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}
.section-header h2 {
  font-size: clamp(24px, 4vw, 34px);
  margin: 0 0 8px;
  color: var(--brand-teal-dark);
  letter-spacing: -.01em;
}
.section-header p { color: var(--muted); margin: 0; }

/* ----------- Filters ----------- */
.products { padding: 64px 0; }
.filters { margin: 0 0 24px; }
.filters__row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.pill:hover { border-color: var(--brand-teal); }
.pill--active {
  background: var(--brand-teal);
  color: #fff;
  border-color: var(--brand-teal);
}
.filters__controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.select select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236B7280' d='M6 8L0 0h12z'/></svg>") no-repeat right 14px center / 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 200px;
}
.search svg {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.search input:focus,
.select select:focus {
  outline: 2px solid var(--brand-teal);
  outline-offset: 1px;
}
@media (min-width: 768px) {
  .filters__row { flex-direction: row; align-items: center; justify-content: space-between; }
  .filters__controls { flex: 0 0 auto; }
  .search { min-width: 260px; }
}

/* ----------- Product grid ----------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}
.card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .25s ease;
}
.card:hover .card__img { transform: scale(1.03); }
.card__body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card__category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--brand-teal);
  text-transform: uppercase;
}
.card__title {
  font-size: 17px;
  margin: 0;
  line-height: 1.3;
  color: var(--text);
}
.card__desc {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-teal-dark);
  margin-top: 6px;
}
.card__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.card__actions .btn {
  flex: 1;
  padding: 9px 10px;
  font-size: 13px;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}
.error {
  background: #FEF2F2;
  color: #991B1B;
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
}

/* ----------- Why us ----------- */
.why {
  background: var(--bg-soft);
  padding: 64px 0;
}
.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .why__grid { grid-template-columns: repeat(4, 1fr); } }
.why__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: transform .18s, box-shadow .18s;
}
.why__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.why__icon {
  font-size: 30px;
  margin-bottom: 10px;
  display: inline-block;
  width: 56px;
  height: 56px;
  line-height: 56px;
  background: linear-gradient(135deg, var(--brand-green) 0%, #d8e87f 100%);
  border-radius: 50%;
}
.why__card h3 {
  margin: 4px 0 6px;
  color: var(--brand-teal-dark);
  font-size: 17px;
}
.why__card p { color: var(--muted); margin: 0; font-size: 14px; }

/* ----------- Footer ----------- */
.site-footer {
  background: var(--brand-teal-dark);
  color: #D6E1E2;
  padding: 48px 0 24px;
  margin-top: 64px;
}
.site-footer a { color: #fff; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 700px) { .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer__brand img {
  height: 40px;
  width: auto;
  border-radius: 6px;
  background: #fff;
  padding: 4px 8px;
  margin-bottom: 8px;
}
.site-footer h4 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-footer p { margin: 4px 0; font-size: 14px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer ul li { margin: 4px 0; font-size: 14px; }
.site-footer a { transition: color .15s; }
.site-footer a:hover { color: var(--brand-green); text-decoration: none; }
.footer-map-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-footer .btn--outline {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
}
.site-footer .btn--outline:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: #fff;
}
.site-footer__bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .6);
}

/* ----------- Sticky FAB ----------- */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 2px 8px rgba(0, 0, 0, .15);
  z-index: 100;
  animation: fab-pulse 2.4s ease-in-out infinite;
  transition: transform .15s, background .15s;
}
.fab:hover { background: var(--whatsapp-dark); transform: scale(1.06); text-decoration: none; }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .35); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ----------- Product detail page ----------- */
.product-page {
  padding: 24px 16px 64px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-teal); }

.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 900px) { .product { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } }

.carousel {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.carousel__stage {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel__img,
.carousel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.carousel__img.is-active,
.carousel__video.is-active {
  opacity: 1;
  pointer-events: auto;
}
.carousel__video { background: #000; }
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .9);
  color: var(--brand-teal);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.carousel__nav:hover { background: #fff; }
.carousel__nav--prev { left: 10px; }
.carousel__nav--next { right: 10px; }
.carousel__dots {
  position: absolute;
  bottom: 12px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(44, 110, 114, .3);
  padding: 0;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.carousel__dot.is-active { background: var(--brand-teal); transform: scale(1.2); }

.product__info { display: flex; flex-direction: column; gap: 8px; }
.product__category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-teal);
}
.product__title {
  font-size: clamp(24px, 4vw, 34px);
  margin: 0;
  color: var(--brand-teal-dark);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.product__model {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.product__price {
  margin: 12px 0 4px;
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-green) 0%, #d8e87f 100%);
  color: var(--brand-teal-dark);
  font-size: 24px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius);
  align-self: flex-start;
}
.product__delivery {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 4px;
  padding: 6px 12px;
  background: rgba(184, 214, 63, .22);
  border: 1px solid rgba(184, 214, 63, .6);
  border-radius: 999px;
  color: var(--brand-teal-dark);
  font-size: 13.5px;
  font-weight: 600;
  align-self: flex-start;
}
.product__delivery svg { color: var(--brand-teal); flex-shrink: 0; }

.product__desc {
  margin: 8px 0 4px;
  color: var(--text);
  font-size: 15px;
}
.product__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 8px;
}
.product__cta .btn { flex: 1; min-width: 180px; }

.product__features { margin-top: 22px; }
.product__features h2,
.product__specs h2 {
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--brand-teal-dark);
}
.product__features ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}
.product__features li { margin: 4px 0; }

.product__specs { margin-top: 22px; }
.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.specs-table th,
.specs-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: top;
}
.specs-table tr:last-child th,
.specs-table tr:last-child td { border-bottom: 0; }
.specs-table th {
  width: 42%;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-soft);
}
.muted { color: var(--muted); }

/* ----------- 404 page ----------- */
.error-page {
  text-align: center;
  padding: 96px 16px;
}
.error-page h1 {
  font-size: clamp(64px, 14vw, 120px);
  margin: 0;
  color: var(--brand-teal-dark);
  letter-spacing: -.04em;
}
.error-page p {
  color: var(--muted);
  font-size: 18px;
  margin: 8px 0 28px;
}

/* ----------- Reduced motion ----------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .fab { animation: none; }
}
