/* Noble Sloth Foods — site styles
   Tokens carried over 1:1 from the previous (Lovable) build so the brand look is unchanged:
   cream background, warm-brown text, terracotta primary, sage accent, Playfair Display + DM Sans. */
:root {
  --bg: hsl(40 30% 96%);
  --fg: hsl(25 30% 15%);
  --card: hsl(40 25% 98%);
  --primary: hsl(20 55% 45%);
  --primary-dark: hsl(20 50% 38%);
  --primary-fg: hsl(40 30% 98%);
  --secondary: hsl(35 40% 85%);
  --muted: hsl(35 20% 90%);
  --muted-fg: hsl(25 15% 45%);
  --accent: hsl(145 35% 42%);
  --accent-light: hsl(145 30% 55%);
  --border: hsl(35 25% 85%);
  --cream: hsl(40 35% 93%);
  --cream-light: hsl(40 30% 97%);
  --warm-brown: hsl(30 40% 25%);
  --radius: .75rem;
  --gradient-hero: linear-gradient(180deg, hsl(40 35% 93%) 0%, hsl(35 30% 90%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(40 25% 98%) 0%, hsl(35 20% 95%) 100%);
  --gradient-cta: linear-gradient(135deg, hsl(20 55% 45%) 0%, hsl(20 50% 38%) 100%);
  --shadow-soft: 0 4px 20px -4px hsl(30 30% 20% / .1);
  --shadow-card: 0 8px 30px -8px hsl(30 30% 20% / .12);
  --shadow-elevated: 0 12px 40px -10px hsl(30 30% 20% / .15);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.accent { color: var(--primary); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section.alt { background: var(--card); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted-fg); font-size: 1.1rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--secondary); color: var(--warm-brown); font-size: .85rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 20px; }
.eyebrow.sage { background: hsl(145 35% 42% / .14); color: hsl(145 40% 28%); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: var(--radius); font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gradient-cta); color: var(--primary-fg); box-shadow: var(--shadow-soft); }
.btn-primary:hover { box-shadow: var(--shadow-card); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: hsl(20 55% 45% / .08); }
.btn-sm { padding: 10px 16px; font-size: .95rem; border-radius: 10px; }
.btn-dark { background: var(--fg); color: var(--cream-light); }
.btn[disabled] { opacity: .6; cursor: default; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: hsl(40 30% 96% / .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; color: var(--muted-fg); font-size: .98rem; }
.nav a:hover { color: var(--fg); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn { position: relative; background: transparent; border: 0; cursor: pointer; padding: 8px; color: var(--fg); display: inline-flex; }
.cart-btn .count { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; display: none; align-items: center; justify-content: center; }
.cart-btn .count.show { display: inline-flex; }
.menu-btn { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; color: var(--fg); }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .menu-btn { display: inline-flex; }
  .header-actions .btn { display: none; }
}

/* Hero */
.hero { padding: 150px 0 80px; background: var(--gradient-hero); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted-fg); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 32px; }
.cert-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.cert-pills span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: .9rem; font-weight: 600; color: var(--warm-brown); box-shadow: var(--shadow-soft); }
.cert-pills svg { width: 16px; height: 16px; color: var(--accent); }
.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 520px; margin: 0 auto; border-radius: 24px; box-shadow: var(--shadow-elevated); background: var(--card); }
@media (max-width: 900px) { .hero { padding-top: 120px; } .hero .wrap { grid-template-columns: 1fr; } .hero-art img { max-width: 360px; } }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust div { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); }
.trust b { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 6px; }
.trust p { margin: 0; color: var(--muted-fg); font-size: .97rem; }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* Product grids */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--gradient-card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); }
.card .media { aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: contain; }
.card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.2rem; }
.card h3 a { text-decoration: none; }
.card p { margin: 0; color: var(--muted-fg); font-size: .95rem; flex: 1; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.price { font-weight: 700; font-size: 1.1rem; }
.size { font-size: .82rem; color: var(--muted-fg); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: hsl(145 40% 28%); background: hsl(145 35% 42% / .12); padding: 3px 9px; border-radius: 999px; }
.card .media .badge { position: absolute; }
.amazon-link { font-size: .95rem; font-weight: 600; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.amazon-link:hover { text-decoration: underline; }
.state { text-align: center; color: var(--muted-fg); padding: 30px; grid-column: 1 / -1; }

/* Facility */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.photo { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-elevated); background: var(--muted); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo figcaption { font-size: .85rem; color: var(--muted-fg); padding: 10px 14px; background: var(--card); }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.facts .ico { width: 44px; height: 44px; border-radius: 12px; background: hsl(145 35% 42% / .12); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.facts .ico svg { width: 22px; height: 22px; }
.facts b { display: block; font-family: var(--serif); font-size: 1.08rem; }
.facts span { color: var(--muted-fg); font-size: .95rem; }

/* Standards */
.standards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: std; }
@media (max-width: 900px) { .standards { grid-template-columns: 1fr; } }
.standards article { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-soft); position: relative; }
.standards article::before { counter-increment: std; content: counter(std, decimal-leading-zero); font-family: var(--serif); font-size: 2rem; color: var(--primary); opacity: .55; display: block; margin-bottom: 8px; }
.standards h3 { margin-bottom: 8px; }
.standards p { margin: 0; color: var(--muted-fg); font-size: .97rem; }
.note { background: hsl(20 55% 45% / .07); border-left: 4px solid var(--primary); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 32px; color: var(--warm-brown); }

/* About / band */
.band { background: var(--primary); color: var(--primary-fg); }
.band h2, .band p { color: inherit; }
.band .split { align-items: center; }
.band .btn-light { background: var(--cream-light); color: var(--primary-dark); }
.mascot-sm { width: 100%; max-width: 380px; border-radius: 24px; margin: 0 auto; box-shadow: var(--shadow-elevated); }

/* Contact */
.contact-card { max-width: 640px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 44px 32px; box-shadow: var(--shadow-card); }
.contact-card .email { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; color: var(--primary); text-decoration: none; word-break: break-all; }

/* Footer */
.site-footer { background: var(--warm-brown); color: hsl(40 30% 90%); padding: 56px 0 28px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: inherit; text-decoration: none; opacity: .9; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer .brand { color: #fff; }
.site-footer .legal { border-top: 1px solid hsl(40 30% 90% / .2); margin-top: 36px; padding-top: 20px; font-size: .85rem; opacity: .8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: hsl(25 30% 15% / .45); z-index: 80; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--bg); z-index: 90; box-shadow: var(--shadow-elevated); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.drawer.open { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.drawer header h3 { margin: 0; }
.drawer .lines { flex: 1; overflow: auto; padding: 12px 22px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.line img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--border); }
.line b { display: block; font-size: .98rem; }
.line .qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 6px; }
.line .qty button { background: transparent; border: 0; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; color: var(--fg); }
.line .qty span { min-width: 28px; text-align: center; font-weight: 600; }
.line .remove { background: transparent; border: 0; color: var(--muted-fg); cursor: pointer; font-size: .85rem; text-decoration: underline; padding: 0; margin-left: 10px; }
.drawer footer { padding: 18px 22px 24px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.drawer .subtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; }
.drawer .empty { text-align: center; color: var(--muted-fg); padding: 40px 0; }
.icon-btn { background: transparent; border: 0; cursor: pointer; color: var(--fg); padding: 6px; display: inline-flex; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--fg); color: var(--cream-light); padding: 12px 20px; border-radius: 999px; font-weight: 600; opacity: 0; transition: all .25s ease; z-index: 100; pointer-events: none; box-shadow: var(--shadow-elevated); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Product page */
.product-page { padding: 120px 0 80px; }
.product-page .split { align-items: start; gap: 48px; }
.gallery img { border-radius: 20px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; border: 2px solid transparent; cursor: pointer; background: #fff; }
.thumbs img.active { border-color: var(--primary); }
.product-page .price { font-size: 1.6rem; margin: 12px 0 20px; display: block; }
.product-page .desc { color: var(--muted-fg); }
.crumb { font-size: .9rem; color: var(--muted-fg); margin-bottom: 20px; display: inline-block; text-decoration: none; }
.crumb:hover { color: var(--fg); }
.facility-line { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-top: 28px; font-size: .95rem; color: var(--warm-brown); }
.facility-line svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
