/* LuLu Art — cozy storefront styles */
:root {
  --cream: #fff5e9;
  --cream-2: #fdebd5;
  --paper: #fffaf3;
  --ink: #2f2622;
  --ink-soft: #6d5d55;
  --line: #ecdcc8;
  --accent: #1a7f75;       /* deep turquoise from the MOOdy palette (#2faea0), dark enough for white text */
  --accent-dark: #135f58;
  --accent-light: #6ee2d4; /* MOOdy aqua */
  --accent-tint: #e3f7f4;
  --sale: #c8391a;         /* MOOdy warm red: pops next to turquoise */
  --sale-tint: #fde8e2;
  --warm: #b95c33;         /* terracotta, kept for small headings */
  --rose: #f3c9c0;
  --gold: #e7b75f;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(80, 50, 30, .06), 0 8px 24px -12px rgba(80, 50, 30, .22);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
code { background: var(--cream-2); padding: .1em .4em; border-radius: 6px; font-size: .9em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px var(--accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-danger { background: #b3261e; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: .45em 1em; font-size: .875rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.linklike.danger, .danger { color: #b3261e; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Announcement + header */
.announce { background: var(--ink); color: var(--cream); text-align: center; font-size: .9rem; padding: .55em 1em; }
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); background: var(--cream); position: sticky; top: 0; z-index: 10; }
.nav-left { display: flex; gap: 22px; }
.nav-left a { text-decoration: none; font-weight: 600; }
.nav-left a:hover, .nav-left a.active { text-decoration: underline; text-underline-offset: 5px; }
.logo img { height: 74px; width: auto; }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.icon-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; position: relative; }
.cart-count { position: absolute; top: -6px; right: -9px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.admin-pill { font-size: .75rem; font-weight: 800; background: var(--ink); color: var(--cream); padding: .3em .8em; border-radius: 999px; text-decoration: none; }
.search-form { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); padding: 2px 4px 2px 12px; }
.search-form input { border: 0; background: transparent; width: 110px; font: inherit; padding: 4px 0; outline: none; }
.search-form button { border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 4px; color: var(--ink); }

main { min-height: 60vh; }
.page-pad { padding: 40px clamp(16px, 4vw, 40px); max-width: 1180px; margin: 0 auto; }
.narrow { max-width: 680px; }

/* Flash */
.flash { max-width: 1100px; margin: 16px auto 0; padding: 12px 44px 12px 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); position: relative; }
.flash-success { background: #e6f4ee; border-color: #b6dcc9; }
.flash-error { background: #fdeceb; border-color: #f3c1bd; }
.flash-x { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--ink-soft); }
.notice { background: var(--paper); border: 1px dashed var(--accent); border-radius: 14px; padding: 14px 18px; margin: 0 0 20px; }
.notice.success { border-style: solid; border-color: #b6dcc9; background: #e6f4ee; }
.error { color: #b3261e; font-weight: 600; }
.ok { color: var(--accent-dark); font-weight: 600; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; max-width: 1180px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 40px); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--warm); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.hero-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.hero-feature { position: relative; display: block; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(1.5deg); transition: transform .3s; background: var(--paper); }
.hero-feature:hover { transform: rotate(0) scale(1.01); }
.hero-feature::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 8px rgba(255, 250, 243, .7); pointer-events: none; }
.hero-feature { text-decoration: none; }
.hero-feature-tag { display: block; background: var(--paper); padding: .7em 1em; font-weight: 800; font-size: .95rem; text-align: center; }

/* Shop */
section[id] { scroll-margin-top: 100px; }
.shop-section { max-width: 1180px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 56px; }
.section-head { text-align: center; margin-bottom: 22px; }
.cat-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 10px; }
.cat-tabs a { text-decoration: none; padding: .5em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: .95rem; transition: all .15s; }
.cat-tabs a:hover { border-color: var(--ink); }
.cat-tabs a.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.cat-tabs .count { font-size: .75rem; opacity: .6; margin-left: 2px; }
.cat-desc { text-align: center; color: var(--ink-soft); min-height: 1.6em; margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(18px, 3vw, 32px); }
.grid-small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(80,50,30,.06), 0 18px 36px -16px rgba(80,50,30,.35); }
.card-img { position: relative; display: block; aspect-ratio: 1; background: var(--cream-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { display: grid; place-items: center; height: 100%; font-size: 3rem; }
.img-placeholder.big { aspect-ratio: 1; font-size: 6rem; background: var(--cream-2); border-radius: var(--radius); }
.card-body { padding: 14px 16px 18px; text-align: center; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.35; margin: 0; flex: 1; }
.card-body h3 a { text-decoration: none; }
/* Labels sit under the picture, never on it */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.product-info .tags { justify-content: flex-start; margin-bottom: 10px; }
.tag { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.tag-sale { background: var(--sale-tint); color: var(--sale); }
.tag-free { background: var(--accent-tint); color: var(--accent-dark); }
.tag-gift { background: #fff1cf; color: #8a5a00; }
.tag-bundle { background: #ece6ff; color: #4b3a8f; }
.tag-owned { background: var(--ink); color: var(--cream); }
.price { font-weight: 700; }
.price-was { color: var(--ink-soft); font-weight: 500; margin-right: 4px; }
.price-now.free { color: var(--accent-dark); }
.price-now.gift { color: #8a5a00; font-size: .95rem; }
.card .price-was + .price-now { color: var(--sale); }
.price.big { font-size: 1.6rem; font-family: var(--serif); margin: 10px 0 18px; }
.save { font-family: var(--sans); font-size: .95rem; color: var(--sale); }
.empty { text-align: center; color: var(--ink-soft); grid-column: 1 / -1; padding: 30px 0; }
.empty-box { text-align: center; background: var(--paper); border-radius: var(--radius); padding: 40px 20px; box-shadow: var(--shadow); }

.freebie-band { background: var(--cream-2); padding: 48px clamp(16px, 4vw, 40px); }
.freebie-band .grid, .gift-band .grid { max-width: 1100px; margin: 0 auto; }
.gift-band { background: linear-gradient(180deg, #fff1cf55, transparent); padding: 48px clamp(16px, 4vw, 40px); }
.gift-band .section-head p { max-width: 620px; margin: 0 auto; }

/* Coming soon */
.soon { max-width: 1180px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 40px); }
.soon-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 260px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; justify-content: safe center; }
.soon-item { margin: 0; scroll-snap-align: start; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.soon-item img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.9); }
.soon-item::before { content: 'Soon'; position: absolute; z-index: 1; top: 10px; right: 10px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; padding: .2em .7em; border-radius: 999px; }
.soon-item figcaption { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.soon-item figcaption span { color: var(--ink-soft); font-size: .88rem; }
.subscribe-form { display: flex; gap: 10px; max-width: 460px; margin: 22px auto 8px; }
.subscribe-form input { flex: 1; border-radius: 999px; }

/* Library extras */
.lib-gifts, .lib-offers { background: var(--paper); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 22px; }
.lib-gifts { border: 2px dashed #e7b75f; }
.lib-gifts h2, .lib-offers h2 { font-size: 1.3rem; }
.gift-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.gift-option { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; font-size: .9rem; }
.gift-option img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.offer-list { display: flex; flex-direction: column; gap: 12px; }
.offer { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; }
.offer img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.offer .strong { font-weight: 700; text-decoration: none; }
.offer p { margin: 0; }

.about { max-width: 980px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 40px); display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.about-avatar { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 8px solid var(--paper); box-shadow: var(--shadow); }

/* Product page */
.crumbs { max-width: 1180px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 40px) 0; font-size: .9rem; color: var(--ink-soft); }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.product { max-width: 1180px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 40px) 30px; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery-single { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.gallery { position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--radius); box-shadow: var(--shadow); scrollbar-width: none; background: var(--cream-2); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 1; object-fit: contain; scroll-snap-align: center; }
.gallery-nav { position: absolute; top: calc(50% - 46px); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 250, 243, .92); color: var(--ink);
  font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; }
.gallery-nav:hover { background: var(--accent); color: #fff; }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding: 2px; scrollbar-width: none; scroll-behavior: smooth; }
.gallery-thumbs::-webkit-scrollbar, .soon-strip::-webkit-scrollbar { display: none; }
.soon-strip { scrollbar-width: none; }
.gallery-thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; opacity: .65; transition: opacity .15s, border-color .15s; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { opacity: 1; border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.bundle-page { max-width: 980px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 40px) 30px; display: flex; flex-direction: column; gap: 24px; }
.bundle-head { text-align: center; }
.bundle-head .tags, .bundle-head .deal-line { justify-content: center; }
.bundle-head h1 { margin-top: 8px; }
.bundle-head .lead { margin-bottom: 8px; }
.bundle-buy { width: 100%; max-width: 520px; margin: 0 auto; text-align: center; }
.bundle-buy .price.big { margin-top: 0; }
.bundle-buy .gift-note, .bundle-buy .upsell-note, .bundle-buy .inside { text-align: left; }
.bundle-buy .gift-thumbs { justify-content: flex-start; }
.bundle-mosaic { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.bundle-mosaic-head { margin: 0 0 12px; font-weight: 800; color: var(--ink-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; text-align: center; }
.bundle-tiles { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px; }
.bundle-tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; text-align: center; }
.bundle-tile img, .bundle-tile .img-placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--cream-2); transition: transform .2s; }
.bundle-tile:hover img { transform: translateY(-3px); }
.bt-title { font-weight: 700; font-size: .85rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bt-price { font-size: .8rem; color: var(--ink-soft); }
.deal-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 600; font-size: .95rem; }
.bundle-save { background: var(--accent-tint); border-radius: 12px; padding: 10px 14px; }
.gift-note, .upsell-note { margin-top: 18px; background: var(--paper); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
.gift-note p, .upsell-note p { margin: 0 0 8px; }
.gift-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gift-thumbs img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.upsell-note ul { margin: 0 0 6px; padding-left: 18px; }
.upsell-note li { margin: 4px 0; }
.product-info { position: sticky; top: 120px; }
.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.sale-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions form { margin: 0; }
.inside { margin-top: 26px; background: var(--paper); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.inside h3 { font-size: 1.1rem; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.file-list li:last-child { border-bottom: 0; }
.file-list .fn { flex: 1; font-weight: 600; word-break: break-word; }
.file-list .fs { color: var(--ink-soft); font-size: .85rem; white-space: nowrap; }
.product-desc { max-width: 760px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 40px) 40px; font-size: 1.05rem; }
.product-desc h3 { margin-top: 1.4em; font-size: 1.35rem; }

/* Cart */
.cart-list { list-style: none; padding: 0; margin: 0 0 20px; }
.cart-item { display: flex; align-items: center; gap: 16px; background: var(--paper); border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.ci-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ci-body a { font-weight: 700; text-decoration: none; }
.coupon-form { display: flex; gap: 8px; margin-bottom: 8px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; margin: 20px 0; }
.totals dd { margin: 0; text-align: right; }
.totals .total { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: 8px; }

/* Forms */
input, select, textarea { font: inherit; color: inherit; padding: .65em .9em; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; width: 100%; }
textarea { resize: vertical; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .92rem; }
label small { font-weight: 500; color: var(--ink-soft); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.coupon-form input { flex: 1; }

/* Auth */
.auth { display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 430px; background: var(--paper); border-radius: 24px; padding: 34px 30px; box-shadow: var(--shadow); text-align: center; }
.auth-card form { text-align: left; margin: 18px 0; }
.auth-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 4px solid var(--cream-2); }

/* Library */
.lib-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.lib-list { display: flex; flex-direction: column; gap: 18px; }
.lib-item { display: grid; grid-template-columns: 150px 1fr; gap: 22px; background: var(--paper); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); scroll-margin-top: 120px; }
.lib-item:target { outline: 3px solid var(--gold); }
.lib-cover { display: grid; place-items: center; width: 150px; height: 150px; border-radius: 12px; background: var(--cream-2); font-size: 3rem; text-decoration: none; }
.lib-cover img { width: 150px; height: 150px; border-radius: 12px; object-fit: cover; }
.lib-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.lib-title-row h2 { font-size: 1.3rem; margin: 0; }
.lib-title-row h2 a { text-decoration: none; }
.file-list.dl li { padding: 10px 0; }

/* Footer */
.site-footer { text-align: center; padding: 40px 16px 30px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.footer-logo { height: 60px; width: auto; margin: 0 auto 10px; opacity: .85; }
.site-footer nav a { text-decoration: none; } .site-footer nav a:hover { text-decoration: underline; }

/* Product picture always fits the window height on laptops (square image + thumbnails + header) */
@media (min-width: 861px) {
  .product { grid-template-columns: 1fr 1fr; }
  .product .gallery, .product .gallery-single { width: 100%; max-width: min(100%, max(340px, calc(100vh - 310px))); justify-self: center; }
}

/* Responsive */
@media (max-width: 860px) {
  .hero, .product, .about { grid-template-columns: 1fr; }
  .hero-feature { max-width: 440px; margin: 0 auto; }
  .product-info { position: static; }
  .about { text-align: center; } .about-avatar { margin: 0 auto; }
  .search-form { display: none; }
}
@media (max-width: 600px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: 10px; }
  .nav-left { gap: 12px; font-size: .9rem; } .nav-left a:nth-child(n+3) { display: none; }
  .subscribe-form { flex-direction: column; }
  .offer { grid-template-columns: 56px 1fr; } .offer img { width: 56px; height: 56px; } .offer form { grid-column: 1 / -1; }
  .gallery-nav { display: none; }
  .bundle-tiles { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr)); }
  .logo img { height: 56px; }
  .hide-sm { display: none; }
  .lib-item { grid-template-columns: 1fr; } .lib-cover { width: 100%; height: auto; aspect-ratio: 1; } .lib-cover img { width: 100%; height: auto; aspect-ratio: 1; }
  .lib-head { flex-direction: column; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 10px 10px 14px; } .card-body h3 { font-size: .9rem; }
  .tag { font-size: .68rem; }
}

/* Formatted descriptions */
.product-desc h2 { margin-top: 1.4em; font-size: 1.7rem; }
.product-desc h4 { margin-top: 1.2em; font-size: 1.1rem; }
.product-desc ul, .product-desc ol { padding-left: 1.4em; } .product-desc li { margin: .25em 0; }
.product-desc blockquote { border-left: 4px solid var(--accent); margin: 1em 0; padding: .3em 0 .3em 16px; color: var(--ink-soft); font-style: italic; }
.product-desc hr { border: 0; border-top: 1.5px dashed var(--line); margin: 1.6em 0; }
.product-desc a { color: var(--accent-dark); }

/* Instagram / email buttons */
.social { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 12px 0 14px; }
.about-social { justify-content: flex-start; margin-top: 18px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; padding: .55em 1.1em; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); text-decoration: none; font-weight: 700; color: var(--ink); transition: transform .15s, background .15s; }
.social-link:hover { transform: translateY(-2px); background: var(--accent-tint); color: var(--accent-dark); }
.social-link svg { color: var(--accent); }
@media (max-width: 760px) { .about-social { justify-content: center; } }

/* Coming soon month */
.soon-month { align-self: center; background: var(--accent-tint); color: var(--accent-dark) !important; font-weight: 800; font-size: .76rem !important; padding: .15em .7em; border-radius: 999px; margin-bottom: 4px; }

/* Sign-in extras */
.code-input { font: 700 1.4rem ui-monospace, Consolas, monospace; letter-spacing: .3em; text-align: center; }
.pw-option { text-align: left; margin-top: 4px; }
.pw-option summary { cursor: pointer; color: var(--ink-soft); font-weight: 700; text-align: center; list-style: none; }
.pw-option summary::-webkit-details-marker { display: none; }
.pw-option summary::after { content: ' ▾'; }
.lib-head .row-actions { display: flex; gap: 8px; align-items: center; }
.lib-head .row-actions form { margin: 0; }

/* Thank-you popup */
.popup-wrap { position: fixed; inset: 0; background: rgba(47,38,34,.4); display: grid; place-items: center; z-index: 100; padding: 16px; overflow: hidden; animation: popFade .2s ease-out; }
.popup-wrap.closing { opacity: 0; transition: opacity .2s; }
.popup { background: var(--paper); border-radius: 28px; padding: 30px 28px 26px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 24px 60px rgba(47,38,34,.25); animation: popIn .35s cubic-bezier(.2,1.4,.4,1); position: relative; z-index: 1; }
.popup h2 { margin: 6px 0 8px; font-size: 1.6rem; }
.popup p { color: var(--ink-soft); margin: 0 0 18px; }
.popup-art { font-size: 3.4rem; width: 96px; height: 96px; margin: -70px auto 0; display: grid; place-items: center; background: var(--accent-tint); border-radius: 50%; border: 6px solid var(--paper); animation: wiggle 1.4s ease-in-out .3s 2; }
.popup-error .popup-art { background: var(--cream-2); }
.popup-heart { position: absolute; bottom: -30px; animation: floatUp 2.6s ease-out forwards; pointer-events: none; }
@keyframes popFade { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.8) translateY(20px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes floatUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-105vh) scale(1.1) rotate(25deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .popup, .popup-art, .popup-heart, .popup-wrap { animation: none; } .popup-heart { display: none; } }

/* Discount code box on product pages */
.promo-box { margin: 10px 0 0; font-size: .92rem; }
.promo-box summary { cursor: pointer; color: var(--ink-soft); font-weight: 700; list-style: none; text-align: center; }
.promo-box summary::-webkit-details-marker { display: none; }
.promo-form { display: flex; gap: 8px; margin-top: 8px; }
.promo-form input { flex: 1; text-transform: uppercase; letter-spacing: .05em; }
.promo-on { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--accent-tint); border-radius: 12px; padding: 8px 12px; }
.promo-on form, .promo-on button { margin: 0; }
