
:root {
  --bg: #050505;
  --surface: #0c0c0c;
  --panel: #111111;
  --line: #242424;
  --text: #f3f3f3;
  --muted: #a7a7a7;
  --muted-2: #7e7e7e;
  --button: #f5f5f5;
  --button-text: #111111;
  --ac-red: #d11f2a;
  --max: 1120px;
}
.brand .ac-r{ color: var(--ac-red); }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.topbar {
  text-align: center; font-size: 12px; letter-spacing: 0.16em; padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.site-header {
  max-width: var(--max); margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { font-weight: 800; letter-spacing: 0.06em; font-size: 20px; }
.main-nav { display: flex; gap: 36px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; }
.header-icons { display: flex; gap: 14px; align-items: center; font-size: 18px; }
.cart-count { font-size: 14px; color: var(--muted); }
main { max-width: var(--max); margin: 0 auto; padding: 0 24px 48px; }
.hero {
  display: grid; grid-template-columns: 1.05fr 1.15fr; min-height: 420px; background: #070707; border: 1px solid var(--line);
}
.hero-copy { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { font-size: clamp(62px, 8vw, 88px); line-height: 0.94; letter-spacing: -0.04em; margin: 0 0 24px; font-weight: 800; }
.tagline { font-size: 18px; letter-spacing: 0.22em; color: var(--text); margin: 0 0 36px; }
.hero-copy p:not(.tagline) { color: var(--muted); }
.hero-art { min-height: 420px; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.button { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; background: var(--button); color: var(--button-text); padding: 16px 28px; border: 1px solid #e8e8e8; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; }
.button.secondary { background: transparent; color: var(--text); border-color: #5b5b5b; }
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-top: none; background: var(--surface);
}
.features article { display: flex; gap: 18px; padding: 28px 20px; border-right: 1px solid var(--line); }
.features article:last-child { border-right: none; }
.feature-icon { font-size: 28px; line-height: 1; opacity: 0.95; }
.features h3, .product-card h3, .site-footer h4 { margin: 0 0 10px; font-size: 14px; letter-spacing: 0.08em; }
.features p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.collection, .story, .newsletter { border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.collection { padding: 30px 24px 24px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.eyebrow { display: inline-block; color: var(--muted); font-size: 12px; letter-spacing: 0.16em; margin-bottom: 12px; }
.eyebrow.center { display: block; text-align: center; }
.section-head h2, .story h2, .newsletter h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -0.04em; }
.view-all { font-size: 14px; letter-spacing: 0.1em; color: var(--text); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { background: transparent; }
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #151515; border: 1px solid var(--line); }
.product-card h3 { margin-top: 14px; font-size: 18px; letter-spacing: 0.02em; }
.product-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 15px; }
.story { display: grid; grid-template-columns: 0.9fr 1.1fr; }
.story-copy { padding: 34px 24px 28px; display: flex; flex-direction: column; justify-content: center; }
.story-copy p { color: var(--muted); line-height: 1.8; font-size: 18px; margin: 18px 0 30px; max-width: 540px; }
.story-art img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.newsletter { padding: 36px 24px 40px; background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%); }
.newsletter h2 { text-align: center; font-size: clamp(26px, 3vw, 42px); margin-bottom: 24px; }
.newsletter-form { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter-form input { background: #0d0d0d; border: 1px solid #2f2f2f; color: var(--text); padding: 16px; font-size: 15px; }
.newsletter-form button { background: var(--button); color: var(--button-text); border: none; padding: 16px 22px; font-weight: 700; letter-spacing: 0.08em; }
.site-footer {
  max-width: var(--max); margin: 0 auto 50px; padding: 32px 24px 0; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; gap: 24px; border: 1px solid var(--line); border-top: none;
}
.site-footer h3 { margin: 0 0 14px; font-size: 28px; line-height: 0.94; letter-spacing: -0.04em; }
.site-footer p, .site-footer a { color: var(--muted); display: block; margin: 8px 0; font-size: 14px; }
.socials { display: flex; gap: 14px; margin-top: 18px; font-size: 16px; }
.footer-note { align-self: start; }
@media (max-width: 1024px) {
  .hero, .story { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .features article:nth-child(2) { border-right: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .site-header { flex-wrap: wrap; }
  .main-nav { width: 100%; justify-content: center; flex-wrap: wrap; gap: 18px 24px; }
  .hero-copy { padding: 42px 24px; }
  .hero-copy h1 { font-size: 56px; }
  .tagline { font-size: 14px; letter-spacing: 0.14em; }
  .features { grid-template-columns: 1fr; }
  .features article { border-right: none; border-bottom: 1px solid var(--line); }
  .features article:last-child { border-bottom: none; }
  .product-grid { grid-template-columns: 1fr; }
  .newsletter-form { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

/* Canvas template safety: ensure no stray top margin from admin bar context */
body.ac-canvas { background: var(--bg); }

/* Featured single-product layout (editorial: product + collection note) */
.featured-solo{ display:grid; grid-template-columns:minmax(0,360px) 1fr; gap:48px; align-items:center; }
.featured-solo .product-card{ display:block; }
.featured-note{ max-width:440px; }
.featured-note .eyebrow{ display:block; }
.featured-note h3{ font-size:clamp(26px,3vw,38px); line-height:1.05; letter-spacing:-.03em; margin:0 0 16px; font-weight:800; }
.featured-note p{ color:var(--muted); line-height:1.8; font-size:16px; margin:0 0 26px; }
@media (max-width:768px){ .featured-solo{ grid-template-columns:1fr; gap:28px; } .featured-note{ max-width:none; } }

/* Newsletter: honeypot + status note */
.ac-hp{ position:absolute !important; left:-9999px !important; top:auto; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
.newsletter-note{ margin:16px auto 0; max-width:560px; color:var(--muted); font-size:13px; letter-spacing:.04em; text-align:center; }
.newsletter-note.is-success{ color:#fff; }
.newsletter-note.is-error{ color:#e7a3a3; }

/* Footer: align width with the content stack above + close the detached gap */
main{ padding-bottom:0 !important; }
.site-footer{ max-width:calc(var(--max) - 48px) !important; margin:0 auto !important; padding:40px 28px 44px !important; border-top:none; grid-template-columns:1.4fr 1fr 1fr 1.1fr !important; }

/* Hero wordmark on a red brand block (matches the AC tag on the hats) */
.hero h1{ align-self:flex-start; background:var(--ac-red); color:#fff; padding:.06em .3em .14em; }

/* Header cart icon (white) + red/white count badge */
.ac-cart-link{ position:relative; display:inline-flex; align-items:center; color:#fff; }
.ac-cart-ico{ display:block; }
.ac-cart-count{ position:absolute; top:-7px; right:-9px; min-width:16px; height:16px; padding:0 4px; background:var(--ac-red); color:#fff; font-size:11px; font-weight:700; line-height:16px; text-align:center; border-radius:9px; box-sizing:border-box; }
.ac-cart-count[hidden]{ display:none; }

/* Drop tag: red box, white text (matches AC brand mark) */
.drop-tag{ display:inline-block; background:var(--ac-red); color:#fff; padding:5px 12px 6px; margin:0 0 14px; font-size:11px; font-weight:800; letter-spacing:.18em; text-transform:uppercase; }

/* Hero drop eyebrow */
.hero-badge{ align-self:flex-start; display:inline-flex; align-items:center; gap:9px; margin:0 0 18px; font-size:12px; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:var(--muted); }
.hero-badge::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--ac-red); display:inline-block; }

/* Announcement bar: keep on one clean line on small screens */
@media (max-width:560px){ .topbar{ font-size:10.5px; letter-spacing:.1em; padding:9px 12px; } }
