/* CordCutter Supply — Streamline Teal system
   charcoal #15191E · teal #00B39F · cloud #F2F5F4 */
:root {
  --charcoal: #15191e;
  --charcoal-2: #1d232a;
  --teal: #00b39f;
  --teal-ink: #007a6c;   /* teal dark enough for text on light grounds */
  --cloud: #f2f5f4;
  --card: #ffffff;
  --ink: #1a1e23;
  --muted: #5b646c;
  --line: #dfe5e3;
  --danger: #c0392b;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
img, svg { max-width: 100%; }
a { color: var(--teal-ink); }

.container { max-width: 68rem; margin: 0 auto; padding: 0 1.1rem; }

/* Header */
.site-header { background: var(--charcoal); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.85rem; padding-bottom: 0.85rem;
}
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo svg { display: block; }
.logo .wm { color: #f2f5f4; font-weight: 800; letter-spacing: -0.02em; font-size: 1.12rem; white-space: nowrap; }
.logo .wm span { color: var(--teal); font-weight: 500; }
.header-tag { color: #8a9299; font-size: 0.78rem; display: none; }
@media (min-width: 640px) { .header-tag { display: block; } }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--teal); color: #06231f; font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius);
}
.btn:hover { background: #00c7b1; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 2px;
}
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn-block { display: block; width: 100%; }

/* Cards / layout */
main { padding: 1.5rem 0 3rem; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.hero { padding: 2.2rem 0 0.6rem; }
.hero h1 { font-size: 1.7rem; letter-spacing: -0.02em; margin: 0 0 0.4rem; text-wrap: balance; }
.hero p { color: var(--muted); margin: 0; max-width: 38rem; }
@media (min-width: 640px) { .hero h1 { font-size: 2.1rem; } }

.product-grid { display: grid; gap: 1.25rem; margin-top: 1.6rem; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); } }
.product-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--cloud); }
.product-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }
.product-card h2 { margin: 0; font-size: 1.1rem; letter-spacing: -0.01em; }
.product-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.price { font-weight: 800; font-variant-numeric: tabular-nums; }
.product-card .price { margin-top: 0.35rem; font-size: 1.05rem; }

/* Product page */
.product-page { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 800px) { .product-page { grid-template-columns: 1fr 1fr; align-items: start; } }
.product-page .photo { padding: 0; }
.product-page .photo img { display: block; width: 100%; }
.gallery { display: flex; flex-direction: column; gap: 0.7rem; }
.thumbs { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.thumb {
  padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--card); cursor: pointer; width: 4.6rem; height: 4.6rem; flex: none;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.active { border-color: var(--teal); }

/* Sold out */
.photo-wrap { position: relative; }
.sold-out-mark {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 2;
}
.sold-out-mark span {
  transform: rotate(-14deg); background: rgba(21, 25, 30, 0.82); color: #f2f5f4;
  letter-spacing: 0.28em; font-weight: 800; text-transform: uppercase;
  padding: 0.45em 1.4em 0.45em 1.7em; border-radius: 6px;
  font-size: clamp(0.95rem, 3.5vw, 1.5rem); white-space: nowrap;
}
.product-card .sold-out-mark span { font-size: 0.95rem; }
.btn.sold-out, .btn.sold-out:hover { background: var(--line); color: var(--muted); cursor: default; }
.product-info h1 { font-size: 1.55rem; letter-spacing: -0.02em; margin: 0 0 0.3rem; }
.product-info .price { font-size: 1.35rem; }
.tax-note { color: var(--muted); font-size: 0.85rem; margin: 0.15rem 0 0; }
.product-info .desc { color: var(--muted); }
.features { padding-left: 1.2rem; margin: 0.8rem 0; }
.features li { margin: 0.3rem 0; }
.buy-row { display: flex; gap: 0.8rem; align-items: stretch; margin: 1.2rem 0 0.6rem; }
.qty-field { display: flex; flex-direction: column; gap: 0.25rem; }
.qty-field label { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
select, input[type="text"], input[type="email"], input[type="tel"] {
  font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem 0.8rem; width: 100%;
}
.buy-row select { width: 5.2rem; }
.buy-row .btn { flex: 1; align-self: flex-end; }

/* Steps */
.steps { margin: 1.6rem 0 0; padding: 1.1rem 1.2rem; }
.steps h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 0.6rem; }
.steps ol { margin: 0; padding-left: 1.2rem; }
.steps li { margin: 0.35rem 0; }

/* Disclaimer */
.disclaimer {
  border-left: 4px solid var(--teal);
  background: var(--card); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.1rem; margin: 1.4rem 0 0; font-size: 0.92rem;
}
.disclaimer strong { letter-spacing: 0.02em; }

/* Checkout */
.checkout { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 800px) { .checkout { grid-template-columns: 3fr 2fr; align-items: start; } }
.checkout form { padding: 1.3rem; display: grid; gap: 0.95rem; }
.checkout h1 { font-size: 1.5rem; margin: 1.4rem 0 0; letter-spacing: -0.02em; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.field .hint { color: var(--muted); font-weight: 400; }
.field .err { display: none; color: var(--danger); font-size: 0.82rem; margin-top: 0.25rem; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.95rem; }
.row-csz { display: grid; grid-template-columns: 1fr; gap: 0.95rem; }
@media (min-width: 520px) { .row-csz { grid-template-columns: 2fr 1fr 1fr; } }
.summary { padding: 1.2rem; }
.summary h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 0.8rem; }
.summary .lineitem { display: flex; justify-content: space-between; gap: 1rem; margin: 0.3rem 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: 0.7rem; padding-top: 0.7rem; font-weight: 800; }
.summary .note { color: var(--muted); font-size: 0.85rem; margin-top: 0.7rem; }
.form-error {
  display: none; background: #fdf0ee; border: 1px solid #edc7c1; color: #7c2d24;
  border-radius: 8px; padding: 0.8rem 1rem; font-size: 0.92rem;
}
.form-error.show { display: block; }

/* Honeypot: visually removed, still in DOM for bots */
.hp-wrap { position: absolute; left: -6000px; top: -6000px; height: 1px; width: 1px; overflow: hidden; }

/* Interstitial overlay */
.overlay {
  position: fixed; inset: 0; background: rgba(21, 25, 30, 0.94); color: #f2f5f4;
  display: none; align-items: center; justify-content: center; text-align: center; padding: 2rem; z-index: 50;
}
.overlay.show { display: flex; }
.overlay .box { max-width: 24rem; }
.overlay h2 { margin: 1rem 0 0.4rem; font-size: 1.2rem; }
.overlay p { color: #aab3ba; margin: 0; font-size: 0.95rem; }
.spinner {
  width: 44px; height: 44px; margin: 0 auto; border-radius: 50%;
  border: 4px solid rgba(0, 179, 159, 0.25); border-top-color: var(--teal);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }

/* Error page */
.error-page { max-width: 34rem; margin: 3rem auto; padding: 1.6rem; text-align: center; }
.error-page h1 { font-size: 1.4rem; margin: 0.8rem 0 0.5rem; }
.error-page p { color: var(--muted); }
.error-ref { font: 0.8rem ui-monospace, Menlo, monospace; color: var(--muted); }

/* Footer */
.site-footer { background: var(--charcoal); color: #aab3ba; font-size: 0.88rem; margin-top: 3rem; }
.site-footer .container { padding-top: 1.6rem; padding-bottom: 2rem; display: grid; gap: 1rem; }
.site-footer .no-iptv { color: #d7dcdf; }
.site-footer .no-iptv strong { color: #ffffff; }
.site-footer a { color: var(--teal); }
.site-footer .fine { font-size: 0.8rem; color: #7b848c; }
