/* ==========================================================
   Quack Attack — storefront styles
   Matches the Shopify "Horizon" theme setup (Oct 2026):
   Inter type, black header, scheme-1 (white) & scheme-5 (black),
   14px button radius, 13px product-image radius,
   plus the custom Quack Attack hero (hero_edit.liquid).
   ========================================================== */
:root {
  --black: #000;
  --white: #fff;
  --ink: rgba(0, 0, 0, .81);          /* scheme-1 foreground #000000cf */
  --muted: rgba(0, 0, 0, .55);
  --line: #dfdfdf;
  --gold: #FFD700;
  --red: #E53935;
  --green: #25D366;
  --green-dark: #128C4A;
  --btn-radius: 14px;
  --img-radius: 13px;
  --page: 1200px;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --brand: "Lilita One", "Arial Black", sans-serif;

  /* default scheme = scheme-1 (white) */
  --bg: var(--white); --fg: var(--ink); --heading: #000;
  --btn-bg: #000; --btn-fg: #fff; --btn-hover: #333;
}
.scheme-dark { /* scheme-5 */
  --bg: #000; --fg: #fff; --heading: #fff; --muted: rgba(255,255,255,.7); --line: rgba(255,255,255,.25);
  --btn-bg: #fff; --btn-fg: #000; --btn-hover: rgba(255,255,255,.85);
  background: var(--bg); color: var(--fg);
}
.scheme-light { background: var(--white); color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); font-size: 14px; line-height: 22.4px; /* same as live Horizon theme */
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--heading); font-weight: 700; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Shopify page-width: 40px side margins on desktop (content 1276px at 1366px screens) */
.page-width, .container { width: min(1440px, 100% - 80px); margin-inline: auto; }
@media (max-width: 749px) { .page-width, .container { width: calc(100% - 32px); } }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.pad-l { padding-block: 40px 64px; }
.pad-xl { padding-block: 80px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.display { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 .4em; }
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip { position: absolute; left: -999px; top: 8px; background: #000; color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1.2 var(--body);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bg); border-radius: var(--btn-radius);
  padding: 12px 24px; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--btn-hover); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-big { font-size: 1.05rem; padding: 15px 30px; }
.btn-small { font-size: .85rem; padding: 7px 16px; }
.btn-ghost { background: transparent; color: var(--fg); border-color: currentColor; }
.btn-ghost:hover { background: rgba(0,0,0,.05); color: var(--fg); }
.btn-wa { background: var(--green); border-color: var(--green); color: #fff; }
.btn-wa:hover { background: var(--green-dark); color: #fff; }
.btn.is-added { background: var(--gold); border-color: var(--gold); color: #000; }
.icon-btn { background: none; border: 0; font-size: 1.1rem; cursor: pointer; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.icon-btn:hover { color: var(--red); background: #fdecee; }

/* ---------- Announcement + header (scheme-1 bar, scheme-5 header) ---------- */
/* Live site: 31px white announcement bar above the header (empty unless you add text in Settings) */
.announce { background: #fff; color: #000; text-align: center; font-size: 12px; line-height: 31px; height: 31px; padding: 0 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.site-header { background: #000; color: #fff; position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 85px; width: min(1440px, 100% - 80px); margin-inline: auto; }
.brand { display: flex; align-items: center; text-decoration: none; padding-block: 4px; }
.brand img { height: 77px; width: auto; }
.brand-text { font-family: var(--brand); font-size: 1.9rem; color: #fff; letter-spacing: 1px; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { font-size: .875rem; text-decoration: none; color: #fff; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-color: rgba(255,255,255,.6); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-link { color: #fff; display: inline-flex; padding: 8px; border-radius: 8px; }
.icon-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.cart-link { position: relative; }
.cart-count {
  position: absolute; top: 0; right: -2px; background: #fff; color: #000;
  font-size: .65rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px;
  display: grid; place-items: center; padding: 0 4px;
}
.cart-count.is-empty { display: none; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.4); } }

.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; display: grid; gap: 5px; padding: 8px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }
.mobile-nav-panel {
  position: absolute; top: 52px; left: 0; background: #000; border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px; padding: 8px; min-width: 250px; display: grid; z-index: 60;
}
.mobile-nav-panel a { padding: 10px 12px; text-decoration: none; color: #fff; border-radius: 8px; }
.mobile-nav-panel a:hover { background: #1a1a1a; }

/* ---------- Flash & toast ---------- */
.flashes { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: 10px; font-weight: 500; margin: 0 0 12px; border: 1px solid; }
.flash p { margin: 0; }
.flash-ok { background: #e6f9ee; border-color: #8fd9ae; color: #145a32; }
.flash-error { background: #fdecee; border-color: #f2a7b1; color: #8a1324; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(140px);
  background: #000; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 500; border: 1px solid #333;
  z-index: 200; transition: transform .25s ease; display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast a { color: var(--gold); }
.toast.is-error { background: #b3202f; border-color: #b3202f; }

/* ==========================================================
   QUACK ATTACK HERO (port of sections/hero_edit.liquid)
   ========================================================== */
.qah-hero {
  background: #000; position: relative; overflow: hidden;
  padding: 60px 80px; display: flex; align-items: center; justify-content: space-between;
  min-height: 520px; gap: 40px;
}
.qah-left { flex: 1; width: 100%; max-width: 800px; position: relative; z-index: 3; }
.qah-title-image { display: block; width: 100%; max-width: 750px; height: auto; margin-bottom: 20px; object-fit: contain; }
.qah-title { margin: 0; }
.qah-title-quack, .qah-title-attack {
  font-family: var(--brand); font-weight: 400; display: block; line-height: .9;
  text-transform: uppercase; letter-spacing: 2px;
}
.qah-title-quack { font-size: clamp(56px, 9vw, 112px); color: #fff; text-shadow: 2px 2px 8px rgba(0,0,0,.7); }
.qah-title-attack { font-size: clamp(60px, 10vw, 122px); color: var(--gold); -webkit-text-stroke: 2px #B8860B; margin-top: 2px; }
.qah-right {
  position: relative; flex-shrink: 0; width: 600px; height: 440px;
  display: flex; align-items: flex-end; justify-content: center; z-index: 3;
}
.qah-duck-img {
  position: relative; z-index: 2; width: 100%; max-width: 600px; height: auto; object-fit: contain;
  filter: drop-shadow(0 28px 50px rgba(0,0,0,.7)); animation: qahFloat 3.2s ease-in-out infinite; margin-bottom: -8px;
}
.qah-duck-placeholder { position: relative; z-index: 2; font-size: 200px; line-height: 1; animation: qahFloat 3.2s ease-in-out infinite; }
@keyframes qahFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .qah-duck-img, .qah-duck-placeholder { animation: none; } html { scroll-behavior: auto; } }
.qah-small-dreams {
  position: absolute; right: -20px; bottom: 10px; margin: 0;
  color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 36px; font-style: italic; font-weight: 700;
  line-height: 1.35; text-align: right; z-index: 4; text-shadow: 1px 1px 4px rgba(0,0,0,.6);
}
.qah-small-dreams::after {
  content: ""; display: block; height: 3px; background: var(--gold); border-radius: 2px; margin-top: 4px; transform: rotate(-1deg);
}

/* Strip below hero */
.qah-strip {
  background: #fff; padding: 28px 180px; display: flex; align-items: center; gap: 36px;
  border-bottom: 1px solid #e0dbd4; position: relative; overflow: hidden;
}
.qah-strip__duck { flex-shrink: 0; width: 160px; }
.qah-strip__duck img { width: 160px; height: auto; }
.qah-strip__duck-emoji { font-size: 110px; line-height: 1; display: block; }
.qah-strip__text { flex: 1; margin: 0; font-family: Arial, sans-serif; font-size: 24px; color: #222; line-height: 1.75; }
.qah-strip__text strong { font-weight: 700; }
.qah-strip__text a { color: var(--red); font-weight: 700; text-decoration: none; }
.qah-strip__text a:hover { text-decoration: underline; }

@media (max-width: 1400px) {
  .qah-hero { padding: 50px 60px; }
  .qah-right { width: 500px; height: 400px; }
  .qah-title-image { max-width: 650px; }
  .qah-duck-img { max-width: 500px; }
}
@media (max-width: 1220px) {
  .qah-hero { padding: 44px 40px; }
  .qah-title-image { max-width: 550px; }
  .qah-right { width: 480px; height: 380px; }
  .qah-duck-img { max-width: 420px; }
  .qah-small-dreams { right: 0; bottom: 20px; font-size: 22px; }
  .qah-strip { padding: 24px 40px; }
  .qah-strip__text { font-size: 16px; }
}
@media (max-width: 1024px) {
  .qah-hero { padding: 36px 32px; }
  .qah-title-image { max-width: 480px; }
  .qah-right { width: 380px; height: 340px; }
  .qah-duck-img { max-width: 340px; }
  .qah-small-dreams { right: 4px; bottom: 10px; font-size: 18px; }
  .qah-strip { padding: 20px 24px; gap: 20px; }
  .qah-strip__text { font-size: 15px; }
}
@media (max-width: 768px) {
  .qah-hero { flex-direction: column; padding: 40px 24px; text-align: center; }
  .qah-left { max-width: 100%; display: flex; flex-direction: column; align-items: center; }
  .qah-title-image { margin: 0 auto 24px; max-width: 500px; width: 100%; }
  .qah-right { width: 100%; max-width: 400px; height: auto; min-height: 300px; margin-top: 24px; flex-direction: column; align-items: center; }
  .qah-duck-img { max-width: 300px; margin: 0 auto; }
  .qah-small-dreams { position: relative; right: auto; bottom: auto; text-align: center; font-size: 20px; margin-top: 16px; width: 100%; }
  .qah-strip { flex-direction: column; padding: 32px 20px; text-align: center; }
}
@media (max-width: 480px) {
  .qah-hero { padding: 32px 16px; }
  .qah-title-image { max-width: 100%; padding: 0 10px; }
  .qah-duck-img { max-width: 250px; }
  .qah-small-dreams { font-size: 18px; }
  .qah-strip { padding: 24px 16px; gap: 16px; }
  .qah-strip__text { font-size: 14px; }
}

/* ==========================================================
   Product lists (Featured collection sections)
   ========================================================== */
.plist { padding-block: 48px; }
/* Section titles: 32px like the theme's h3; "large" = 48px (Rubber Ducks on the live site) */
.plist-title { text-align: center; margin: 0 0 28px; font-size: 32px; line-height: 35.2px; font-weight: 700; }
.plist-title.is-large { font-size: 48px; line-height: 48px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 8px; }
/* Photo shape per collection (Admin → Collections) */
.ratio-portrait .card-media { aspect-ratio: 4 / 5; }
.ratio-landscape .card-media { aspect-ratio: 4 / 3; }

.card { display: flex; flex-direction: column; color: var(--fg); }
.card-media { position: relative; aspect-ratio: 1; border-radius: var(--img-radius); overflow: hidden; background: #f5f5f5; }
.scheme-dark .card-media { background: #111; }
.card-media > a { display: block; height: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 8px; right: 8px; font-size: 13px;
  padding: 4px 10px; border-radius: 100px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.badge-sale { background: var(--gold); color: #000; text-shadow: none; }
/* Quick add: appears on hover (desktop), always visible on touch screens */
.quick-add { position: absolute; right: 10px; bottom: 10px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.card:hover .quick-add, .quick-add:focus-within { opacity: 1; transform: none; }
@media (hover: none) { .quick-add { opacity: 1; transform: none; } }
.quick-add button {
  font: 500 14px var(--body); background: #fff; color: #000; border: 0; border-radius: var(--btn-radius);
  padding: 9px 18px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.quick-add button:hover { background: #000; color: #fff; }
.quick-add button.is-added { background: var(--gold); color: #000; }
.card-title { font-size: 20px; line-height: 1.4; font-weight: 400; text-align: center; margin: 8px 0 0; padding-block: 4px; color: var(--fg); }
.card-title a { text-decoration: none; }
.price { font-size: 18px; margin: 2px 0 0; text-align: left; }
.price s { color: var(--muted); font-size: .9em; margin-left: 6px; }

/* ==========================================================
   Story + mission (multicolumn section, scheme-5)
   ========================================================== */
/* Live: 3 equal columns, 16px gap, images square-cornered, values on ONE row */
.mission { padding-block: 58px; }
.mission-row { display: flex; gap: 16px; align-items: flex-start; }
.mission-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mission-story { flex-direction: row; align-items: center; gap: 15px; }
.mission-story img, .mission-story p { flex: 1 1 0; min-width: 0; }
.mission-story img { height: auto; }
.mission-story p { font-size: 18px; line-height: 22.4px; margin: 0; }
.mission-eyebrow { font-size: 24px; line-height: 1; margin: 5px 0 18px; }
.mission-text { margin: 0; font-size: 16px; line-height: 22.4px; }
.mission-image img { width: 100%; }
.values { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: nowrap; }
.values li {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 16px; padding: 8px 4px;
  color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-align: center; line-height: 22.4px;
}
.v-icon { width: 44px; height: 44px; flex-shrink: 0; }
.v-bubble { background: #fff; border-radius: 50%; padding: 10px; display: inline-flex; margin-top: -10px; }
.v-bubble .v-icon { width: 40px; height: 40px; }

/* ---------- Inner pages (white) ---------- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.chip { padding: 6px 16px; border: 1px solid #000; border-radius: 100px; text-decoration: none; font-size: .875rem; }
.chip.is-on, .chip:hover { background: #000; color: #fff; }
.empty { text-align: center; padding: 48px 0; font-size: 1.05rem; }

.product-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.gallery-main { border-radius: var(--img-radius); overflow: hidden; background: #f5f5f5; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; width: 76px; height: 76px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on { border-color: #000; }
.price-big { font-size: 1.5rem; margin-bottom: 18px; }
.buy-form label { font-weight: 500; display: block; margin-bottom: 6px; }
.qty-row { display: flex; gap: 12px; align-items: stretch; }
.qty-row input, .qty-input { width: 84px; border: 1px solid var(--line); border-radius: var(--btn-radius); font: inherit; text-align: center; padding: 8px; }
.qty-row .btn { flex: 1; }
.low-stock { color: #b45309; font-weight: 600; }
.soldout-note { background: #f5f5f5; border-radius: 10px; padding: 12px 14px; }
.rte { margin-top: 24px; }
.giveback { margin-top: 24px; font-weight: 500; background: #fff8d6; border-radius: 10px; padding: 12px 14px; }

.cart-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; }
.cart-line { display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img { border-radius: 10px; width: 80px; height: 80px; object-fit: cover; background: #f5f5f5; }
.cart-line-info { display: grid; }
.cart-line-title { font-weight: 600; text-decoration: none; }
.cart-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.cart-total { font-size: 1.25rem; margin: 0; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.form { display: grid; gap: 6px; }
.form label { font-weight: 500; margin-top: 10px; }
.form input, .form textarea, .form select {
  font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%;
}
.form input:focus, .form textarea:focus { border-color: #000; outline: none; }
.form .btn { margin-top: 18px; }
.summary { background: #f5f5f5; border-radius: 14px; padding: 20px; position: sticky; top: 110px; }
.summary h2 { margin-top: 0; font-size: 1.2rem; }
.summary ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.summary li, .summary-total { display: flex; justify-content: space-between; gap: 12px; }
.summary-total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 1.15rem; }
.big-duck { font-size: 4rem; margin: 0; }
.search-big { display: flex; gap: 10px; margin-bottom: 20px; }
.search-big input { flex: 1; font: inherit; padding: 11px 16px; border: 1px solid var(--line); border-radius: 100px; }

/* ---------- Footer (footer-utilities) ---------- */
.site-footer { background: #fff; color: var(--ink); padding-block: 20px 48px; font-size: 12px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.copyright { margin: 0; }
.footer-links, .footer-social { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-social a { display: inline-flex; color: #000; }

/* ---------- Responsive (same breakpoint as the live theme: 750px) ---------- */
/* Header icons sit 8px outside the content edge, like the live theme */
.header-actions { margin-right: -8px; }
@media (max-width: 900px) {
  .product-grid, .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 749px) {
  /* Mobile header: menu left, small logo exactly centred, icons right */
  .main-nav { display: none; }
  .mobile-nav { display: block; }
  .header-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; min-height: 64px; }
  .brand img { height: 32px; }
  .header-actions { justify-self: end; margin-right: -8px; }
  .mission-row { flex-direction: column; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 8px; }
  .plist { padding-block: 36px; }
  .plist-title { font-size: 24px; line-height: 1.2; margin-bottom: 20px; }
  .plist-title.is-large { font-size: 32px; line-height: 1.1; }
  .card-title { font-size: 16px; }
  .price { font-size: 16px; }
  .quick-add { right: 6px; bottom: 6px; }
  .quick-add button { padding: 7px 12px; font-size: 13px; }
  .header-row { width: calc(100% - 32px); }
  .mission-story { flex-direction: column; }
  .mission-story img { width: 100%; }
  .footer-row { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 64px 1fr auto; }
  .cart-line img { width: 64px; height: 64px; }
  .cart-line .qty-input { grid-column: 2; width: 70px; }
  .cart-line-total { grid-column: 3; grid-row: 1; }
  .cart-line .icon-btn { grid-column: 3; grid-row: 2; }
  .qty-row { flex-direction: column; }
  .qty-row input { width: 100%; }
}
