/* ============================================================
   H-TOWN SIPS™ — styles.css
   Edit the CSS variables below to re-theme the whole site.
   ============================================================ */
:root {
  --navy: #0a1f44;          /* Navy Blue  — primary */
  --navy-dark: #071633;
  --red: #c8102e;           /* Deep Red   — accent / buttons */
  --red-dark: #a00d25;
  --silver: #c0c5ce;        /* Silver     — subtle accents */
  --charcoal: #3a3a3a;      /* Charcoal Gray — body text */
  --white: #ffffff;
  --off-white: #f6f7f9;
  --font-head: 'Oswald', sans-serif;   /* Primary font  */
  --font-body: 'Inter', sans-serif;    /* Secondary font */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .06em;
  padding: 14px 34px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); }
.btn-block { display: block; width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .12em;
  padding: 8px 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 28px;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .1em;
  color: var(--navy);
}
.main-nav a:hover { color: var(--red); }
.logo img { height: 52px; width: auto; }
.header-icons { display: flex; justify-content: flex-end; gap: 10px; }
.icon-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
  padding: 6px;
}
.cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(rgba(7,22,51,.55), rgba(7,22,51,.55)), url('../assets/hero.jpg') center / cover no-repeat;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 60px 28px; color: var(--white); }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  margin-bottom: 18px;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.hero p { font-size: 1.05rem; max-width: 460px; margin-bottom: 26px; color: #e8ecf4; }

/* ---------- Sections ---------- */
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--navy);
  text-align: center;
  letter-spacing: .03em;
  margin-bottom: 40px;
}
.series { max-width: 900px; margin: 0 auto; padding: 70px 28px; }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
  max-width: 640px;
  margin: 0 auto;
}
.product-grid-single { grid-template-columns: 1fr; max-width: 300px; }
.product-card { text-align: center; }
.product-img-wrap {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: var(--off-white);
  aspect-ratio: 4 / 5;
  margin-bottom: 16px;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform .3s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }
.product-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--navy);
  margin-bottom: 4px;
}
.product-card .price { font-weight: 600; color: var(--charcoal); margin-bottom: 14px; }

/* ---------- Spray Away banner ---------- */
.spray-banner {
  background: linear-gradient(rgba(7,22,51,.45), rgba(7,22,51,.45)), url('../assets/spray-away.png') center / cover no-repeat;
  min-height: 380px;
  display: flex;
  align-items: center;
}
.spray-overlay { width: 100%; max-width: 1200px; margin: 0 auto; padding: 50px 28px; display: flex; justify-content: flex-end; }
.spray-content { max-width: 430px; color: var(--white); }
.spray-content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.spray-content p { color: #dfe5ef; font-size: .95rem; }
.spray-tagline { margin-top: 10px; font-weight: 600; color: var(--white) !important; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 28px;
  text-align: center;
}
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .08em;
  color: var(--navy);
  margin-bottom: 6px;
}
.feature p { font-size: .85rem; color: #6b7280; }

/* ---------- Reviews ---------- */
.reviews { background: var(--off-white); padding: 70px 28px; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1100px;
  margin: 0 auto;
}
.review-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(10,31,68,.08);
}
.stars { color: #d4a017; font-size: 1.3rem; letter-spacing: .15em; margin-bottom: 12px; }
.review-card h4 { font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.review-card h4 span { font-weight: 500; color: #6b7280; font-size: .85rem; }
.review-card p { font-size: .9rem; color: var(--charcoal); }

/* ---------- Story ---------- */
.story { max-width: 780px; margin: 0 auto; padding: 70px 28px; }
.story-text { text-align: center; color: var(--charcoal); font-size: .98rem; }

/* ---------- FAQ / Accordions ---------- */
.faq { max-width: 780px; margin: 0 auto; padding: 10px 28px 70px; }
.accordion { border-bottom: 1px solid #e5e7eb; }
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .06em;
  color: var(--navy);
  padding: 18px 4px;
  cursor: pointer;
  text-align: left;
}
.chev { transition: transform .25s; font-size: 1.1rem; }
.accordion.open .chev { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion-body p { padding: 0 4px 18px; font-size: .9rem; color: var(--charcoal); }
.accordion-body a { color: var(--red); text-decoration: underline; }
.fine { font-size: .78rem; color: #9ca3af; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(rgba(7,22,51,.35), rgba(7,22,51,.35)), url('../assets/cta-banner.png') center / cover no-repeat;
  min-height: 380px;
  display: flex;
  align-items: center;
}
.cta-inner { max-width: 1200px; margin: 0 auto; padding: 50px 28px; color: var(--white); }
.cta-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 22px;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdd5e3; padding: 56px 28px 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto 40px;
}
.footer-logo { height: 64px; width: auto; background: var(--white); border-radius: 8px; padding: 6px; }
.footer-col h5 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .12em;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-col a { display: block; font-size: .88rem; padding: 4px 0; }
.footer-col a:hover { color: var(--white); }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: .9rem;
}
.newsletter-form .btn { padding: 12px 18px; }
.newsletter-msg { font-size: .82rem; margin-top: 8px; color: #7ee2a0; min-height: 1.2em; }
.socials { display: flex; gap: 14px; margin-top: 16px; font-size: 1.2rem; }
.footer-legal {
  text-align: center;
  font-size: .75rem;
  color: #8fa0bd;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Cart drawer ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7,22,51,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 90;
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 92vw);
  height: 100%;
  background: var(--white);
  z-index: 100;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 24px rgba(0,0,0,.18);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid #e5e7eb;
}
.drawer-header h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: .06em; color: var(--navy); }
.drawer-close { background: none; border: none; font-size: 1.1rem; cursor: pointer; }
.drawer-items { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer-empty { text-align: center; color: #9ca3af; padding: 40px 0; font-size: .9rem; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f1f4; }
.cart-item img { width: 64px; height: 76px; object-fit: cover; border-radius: 6px; border: 1px solid #e5e7eb; }
.cart-item-name { font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--navy); }
.cart-item-price { font-size: .82rem; color: #6b7280; margin-top: 2px; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-item-qty button {
  width: 24px; height: 24px;
  border: 1px solid #d1d5db;
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  font-size: .85rem;
  line-height: 1;
}
.cart-item-remove { background: none; border: none; color: var(--red); cursor: pointer; font-size: .78rem; padding: 0; }
.drawer-footer { border-top: 1px solid #e5e7eb; padding: 18px 22px; }
.drawer-subtotal { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: .95rem; }
.drawer-note { text-align: center; font-size: .75rem; color: #9ca3af; margin-top: 10px; }

/* ---------- Product detail page ---------- */
.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 28px 70px;
}
.pdp-main-img {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: var(--off-white);
  aspect-ratio: 4 / 5;
}
.pdp-main-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.pdp-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pdp-thumb {
  width: 72px; height: 88px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--off-white);
  padding: 0;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.pdp-thumb.active { border-color: var(--red); }
.pdp-info h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 10px;
}
.pdp-price { font-size: 1.15rem; font-weight: 600; margin-bottom: 22px; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.qty-label { font-family: var(--font-head); font-size: .78rem; letter-spacing: .1em; color: #6b7280; }
.qty-stepper { display: flex; align-items: center; border: 1px solid #d1d5db; border-radius: 6px; overflow: hidden; }
.qty-stepper button {
  width: 38px; height: 42px;
  border: none;
  background: var(--off-white);
  font-size: 1.1rem;
  cursor: pointer;
}
.qty-stepper input {
  width: 52px; height: 42px;
  border: none;
  text-align: center;
  font-family: var(--font-body);
  font-size: .95rem;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp-info .btn { margin-bottom: 12px; }
.pdp-accordions { margin-top: 18px; border-top: 1px solid #e5e7eb; }
.also-like { padding-top: 20px; }

/* ---------- Toast (rich, dismissable) ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: var(--white);
  font-size: .88rem;
  line-height: 1.35;
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 120;
  max-width: min(92vw, 640px);
  white-space: pre-line;
  word-break: break-word;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  text-align: left;
  opacity: 0;
  transition: all .3s;
  pointer-events: auto;
  cursor: pointer;
}
.toast code { background: rgba(255,255,255,.18); padding: 1px 6px; border-radius: 3px; font-family: ui-monospace, Menlo, monospace; font-size: .82em; }
.toast.show  { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); border-left: 4px solid rgba(255,255,255,.25); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-header { grid-template-columns: auto 1fr auto; padding: 8px 16px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 20px; border-top: 1px solid #f0f1f4; }
  .logo { justify-self: center; }
  .logo img { height: 42px; }
  .hero { min-height: 440px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .features { grid-template-columns: 1fr 1fr; padding: 48px 20px; }
  .review-grid { grid-template-columns: 1fr; max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pdp { grid-template-columns: 1fr; gap: 28px; padding: 28px 20px 56px; }
  .spray-overlay { justify-content: center; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
}
