/* thehappysales.co shop (2026-10-29). Layout modelled on a clean digital-goods storefront:
   header with categories, product grid, product page with gallery + buy box + description + "more" carousel.
   Every Buy button goes to the Etsy listing. Brand: plum + cream, Archivo, Kyrie's characters. */
:root { --plum:#3B0F2E; --cream:#FAF6E9; --ink:#1A1A1A; --mute:#6F655E; --line:#E3DCCB; --coral:#FF7F6B; }
* { box-sizing:border-box; margin:0; }
html { scroll-behavior:smooth; }
body { background:var(--cream); color:var(--ink); font:16px/1.55 Archivo, Arial, sans-serif; }
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }
.wrap { max-width:1200px; margin:0 auto; padding:0 20px; }

/* Header */
header { position:sticky; top:0; z-index:10; background:rgba(250,246,233,.94); backdrop-filter:blur(8px); border-bottom:1px solid var(--line); }
header .wrap { display:flex; align-items:center; gap:28px; height:68px; }
.logo { display:flex; align-items:center; gap:10px; font-weight:900; font-stretch:115%; font-size:20px; color:var(--plum); }
.logo img { width:38px; height:38px; border-radius:50%; }
nav { display:flex; gap:22px; font-weight:600; font-size:15px; color:var(--mute); }
nav a:hover, nav a.on { color:var(--plum); }
.etsy-link { margin-left:auto; font-weight:700; font-size:14px; padding:9px 16px; border:2px solid var(--plum); border-radius:999px; color:var(--plum); }
.etsy-link:hover { background:var(--plum); color:var(--cream); }
@media (max-width:760px) { nav { display:none; } header .wrap { gap:12px; } .logo { font-size:17px; } .etsy-link { white-space:nowrap; padding:8px 12px; font-size:13px; } }

/* Hero */
.hero { padding:56px 0 30px; display:grid; grid-template-columns:1.3fr 1fr; gap:30px; align-items:center; }
.hero h1 { font-weight:900; font-stretch:125%; font-size:clamp(38px,6vw,72px); line-height:.95; letter-spacing:-.02em; color:var(--plum); }
.hero p { margin-top:18px; font-size:19px; color:#4a3a44; max-width:520px; }
.hero .chars { display:flex; justify-content:center; align-items:flex-end; gap:6px; }
.hero .chars img { width:30%; }
@media (max-width:760px) { .hero { grid-template-columns:1fr; padding-top:36px; } }

/* Category pills */
.cats { display:flex; flex-wrap:wrap; gap:10px; margin:10px 0 28px; }
.cats button { font:600 14px Archivo, sans-serif; padding:9px 18px; border-radius:999px; border:2px solid var(--line); background:#fff; color:var(--plum); cursor:pointer; }
.cats button.on { background:var(--plum); border-color:var(--plum); color:var(--cream); }

/* Product grid */
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:26px; padding-bottom:60px; }
.card { display:block; }
.card .ph { border-radius:18px; overflow:hidden; aspect-ratio:4/3; background:#eee; transition:transform .2s; }
.card:hover .ph { transform:translateY(-4px); }
.card .ph img { width:100%; height:100%; object-fit:cover; }
.card .meta { display:flex; justify-content:space-between; gap:10px; margin-top:12px; }
.card h3 { font-size:16px; font-weight:700; }
.card .cat { font-size:13px; color:var(--mute); }
.price { font-weight:800; white-space:nowrap; }
.price s { color:var(--mute); font-weight:500; margin-left:6px; font-size:.85em; }
.tag { display:inline-block; font-size:12px; font-weight:700; padding:3px 10px; border-radius:999px; background:var(--coral); color:#fff; margin-left:6px; vertical-align:middle; }

/* Product page */
.crumbs { padding:22px 0 0; font-size:14px; color:var(--mute); }
.crumbs a:hover { color:var(--plum); }
.product { display:grid; grid-template-columns:1.35fr 1fr; gap:44px; padding:22px 0 50px; align-items:start; }
.product > *, .more, .rail > * { min-width:0; }
@media (max-width:900px) { .product { grid-template-columns:1fr; gap:26px; } .buy { position:static; } }
.gallery .main { position:relative; border-radius:20px; overflow:hidden; aspect-ratio:4/3; background:#eee; }
.gallery .main img { width:100%; height:100%; object-fit:cover; }
.gallery .arrow { position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:50%; border:0; background:rgba(255,255,255,.9); font-size:22px; cursor:pointer; color:var(--plum); }
.gallery .prev { left:12px; } .gallery .next { right:12px; }
.thumbs { display:flex; gap:10px; margin-top:12px; overflow-x:auto; padding-bottom:4px; }
.thumbs img { width:86px; height:64px; object-fit:cover; border-radius:10px; cursor:pointer; opacity:.6; border:2px solid transparent; flex:none; }
.thumbs img.on { opacity:1; border-color:var(--plum); }
.buy { position:sticky; top:90px; }
.buy .cat { font-size:14px; color:var(--mute); font-weight:600; }
.buy h1 { font-weight:900; font-stretch:120%; font-size:clamp(30px,4vw,44px); line-height:1; letter-spacing:-.01em; color:var(--plum); margin:6px 0 14px; }
.buy .by { font-size:14px; color:var(--mute); }
.buy .by b { color:var(--plum); }
.buy .price { font-size:28px; display:block; margin:18px 0; }
.btn { display:block; text-align:center; font-weight:800; font-size:17px; padding:17px; border-radius:999px; background:var(--plum); color:var(--cream); }
.btn:hover { background:#5A2148; }
.btn.off { background:#c9bfb7; pointer-events:none; }
.note { font-size:14px; color:var(--mute); margin-top:12px; text-align:center; }
.facts { margin-top:22px; border-top:1px solid var(--line); }
.facts div { display:flex; gap:10px; padding:11px 0; border-bottom:1px solid var(--line); font-size:15px; }
.facts b { min-width:110px; color:var(--plum); }
.buddy { width:120px; margin:24px auto 0; }

.desc { max-width:760px; padding-bottom:40px; }
.desc h2, .more h2 { font-weight:900; font-stretch:115%; font-size:26px; color:var(--plum); margin-bottom:12px; }
.desc p { margin:10px 0; color:#3d3138; }
.desc .cap { font-weight:800; letter-spacing:.06em; color:var(--plum); margin-top:22px; font-size:14px; }
.desc ul { padding-left:20px; color:#3d3138; } .desc li { margin:5px 0; }

.more { padding:20px 0 60px; }
.rail { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(240px,1fr); gap:20px; overflow-x:auto; padding-bottom:8px; }

/* Footer */
footer { background:var(--plum); color:var(--cream); padding:46px 0; margin-top:20px; }
footer .wrap { display:flex; flex-wrap:wrap; gap:30px; justify-content:space-between; }
footer h4 { font-weight:900; font-stretch:115%; font-size:18px; margin-bottom:10px; }
footer a { opacity:.85; display:block; margin:5px 0; } footer a:hover { opacity:1; }
footer .small { opacity:.65; font-size:13px; margin-top:14px; }
