/* Dotsies shop — Twilight Plum backdrop, Hearth Cream type, cream creature cards. */
:root {
  --plum: #6B4E9B;
  --plum-shade: #4A326E;
  --hearth: #FFF4E6;
  --cream: #FFF8F0;
  --white: #ffffff;
  --gold: #F4B942;
  --cocoa: #4A2E2A;
  --cocoa-soft: #6A4A44;
  --shadow: 0 12px 30px rgba(74, 50, 110, 0.22);
  --radius: 22px;
  --max: 1120px;
  --header-h: 4.25rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--plum);
  color: var(--hearth);
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--hearth); }
h1, h2, h3, .logo-text {
  font-family: Grandstander, "Trebuchet MS", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--hearth);
}
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--cocoa); padding: 0.5rem 1rem; z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }
.preview-banner {
  background: var(--plum-shade);
  color: var(--hearth);
  text-align: center;
  padding: 0.45rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
}
.preview-banner strong { color: var(--gold); font-weight: 700; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--plum);
  border-bottom: 1px solid rgba(255, 244, 230, 0.15);
}
.header-inner, .footer-inner, .wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: inherit;
  flex: 0 0 auto;
}
.brand img { height: 44px; width: auto; }
.nav {
  display: flex; align-items: center; gap: 1.1rem;
  margin-left: auto;
  font-weight: 700;
}
.nav a { color: var(--hearth); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav-toggle {
  display: none;
  background: transparent; border: 2px solid var(--hearth); color: var(--hearth);
  border-radius: 10px; padding: 0.3rem 0.55rem; font-weight: 700;
}
.cart-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--plum-shade);
  color: var(--hearth) !important;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 2px solid var(--gold);
  font-weight: 700;
}
.cart-count {
  background: var(--gold); color: var(--cocoa);
  min-width: 1.35rem; height: 1.35rem; border-radius: 999px;
  display: inline-grid; place-items: center;
  font-size: 0.8rem; padding: 0 0.3rem;
}
.main { padding: 1.5rem 0 3.5rem; }
.hero {
  width: min(1240px, 100%);
  margin: 0 auto 2rem;
}
.hero-art {
  width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0 0 28px 28px;
  background: var(--plum);
}
.hero-copy {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1.4rem auto 0;
  text-align: center;
}
.hero-copy h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 0.4rem; }
.tagline { font-size: 1.2rem; margin: 0 0 1.2rem; font-style: italic; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  font-family: Nunito, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.btn-gold { background: var(--gold); color: var(--cocoa); }
.btn-gold:hover { color: var(--cocoa); }
.btn-cream { background: var(--hearth); color: var(--plum-shade); }
.btn-cream:hover { color: var(--plum-shade); }
.btn-plum { background: var(--plum); color: var(--hearth); border-color: var(--plum-shade); }
.btn-plum:hover { color: var(--hearth); }
.btn-ghost { background: transparent; color: var(--hearth); border-color: var(--hearth); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.section-title { font-size: 1.8rem; margin: 2.2rem 0 1rem; text-align: center; }
.lede { text-align: center; max-width: 40rem; margin: -0.4rem auto 1.4rem; }

/* Cream cards for creatures */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.15rem;
}
.group-label {
  grid-column: 1 / -1;
  margin: 0.6rem 0 0;
  font-family: Grandstander, sans-serif;
  font-size: 1.25rem;
  color: var(--gold);
}
.card {
  background: var(--cream);
  color: var(--cocoa);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.card h3, .card h2 { color: var(--cocoa); margin: 0 0 0.2rem; }
.card a { color: var(--plum-shade); }
.card .media { background: var(--hearth); aspect-ratio: 1; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.meta { font-size: 0.88rem; color: var(--cocoa-soft); margin: 0; }
.price { font-weight: 800; font-size: 1.15rem; color: var(--plum-shade); margin: 0.3rem 0 0.5rem; }
.price s { font-weight: 600; color: var(--cocoa-soft); margin-left: 0.35rem; }
.card .btn { width: 100%; margin-top: auto; }

.pack-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
  margin: 0.5rem 0 2rem;
}
.pack-card { padding: 0; }
.pack-card .body { padding: 1.2rem 1.3rem 1.3rem; }
.pack-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  background: var(--hearth);
  padding: 8px;
}
.pack-thumbs img { border-radius: 8px; width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Product page */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}
.product-art {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.product-info h1 { margin: 0 0 0.2rem; }
.product-info .meta, .product-info .story, .product-info .tiny { color: var(--hearth); }
.product-info .tiny a { color: var(--gold); }
.product-info .price { color: var(--gold); }

.kicker { color: var(--gold); font-weight: 700; margin: 0 0 0.3rem; }
.story { font-size: 1.05rem; }
.disclosure, .note {
  font-size: 0.92rem;
  background: var(--plum-shade);
  color: var(--hearth);
  padding: 0.85rem 1rem;
  border-radius: 14px;
}
.card .disclosure { background: #efe4d4; color: var(--cocoa-soft); }
.qty-row { display: flex; align-items: center; gap: 0.6rem; margin: 0.8rem 0; }
.qty-row input {
  width: 4rem; padding: 0.45rem; border-radius: 10px; border: 2px solid var(--plum-shade);
  font: inherit; color: var(--cocoa); text-align: center; background: var(--cream);
}
.sticky-cart {
  display: none;
}

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.9fr);
  gap: 1.2rem;
  align-items: start;
}
.cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 0.9rem;
  background: var(--cream);
  color: var(--cocoa);
  border-radius: 18px;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow);
}
.cart-item img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }
.cart-item h3 { margin: 0; font-size: 1.1rem; color: var(--cocoa); }
.cart-item button.link {
  background: none; border: 0; color: var(--plum-shade); cursor: pointer;
  font: inherit; font-weight: 700; padding: 0; text-decoration: underline;
}
.summary {
  background: var(--plum-shade);
  color: var(--hearth);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  position: sticky; top: calc(var(--header-h) + 1.2rem);
}
.summary h2 { margin-top: 0; }
.summary .total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 800; }
.checkout-warn {
  background: var(--gold); color: var(--cocoa);
  font-weight: 800; padding: 0.55rem 0.7rem; border-radius: 10px;
  margin: 0.6rem 0 0.9rem; text-align: center;
}
.empty { text-align: center; padding: 2rem 1rem; }

/* Prose pages */
.prose {
  background: var(--cream);
  color: var(--cocoa);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem 2rem;
  max-width: 46rem;
  margin-inline: auto;
}
.prose h1, .prose h2, .prose h3 { color: var(--plum-shade); }
.prose a { color: var(--plum); }

/* Footer */
.site-footer {
  background: var(--plum-shade);
  color: var(--hearth);
  padding: 2rem 0 2.4rem;
  margin-top: auto;
}
.footer-inner { display: grid; gap: 1rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; }
.footer-nav a { color: var(--hearth); }
.footer-nav a:hover { color: var(--gold); }
.tiny { font-size: 0.88rem; opacity: 0.9; }

/* Consent */
.consent {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--plum-shade);
  color: var(--hearth);
  padding: 1rem;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
  display: none;
}
.consent.open { display: block; }
.consent-inner { width: min(var(--max), 100%); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; justify-content: space-between; }
.consent p { margin: 0; flex: 1 1 16rem; font-size: 0.95rem; }
.consent a { color: var(--gold); }

/* Success */
.dl-list { list-style: none; padding: 0; margin: 1rem 0; }
.dl-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0; border-bottom: 1px solid rgba(74, 50, 110, 0.15);
}
.toast {
  position: fixed; bottom: 1rem; right: 1rem; z-index: 60;
  background: var(--gold); color: var(--cocoa);
  padding: 0.7rem 1rem; border-radius: 12px; font-weight: 700;
  box-shadow: var(--shadow); display: none;
}
.toast.show { display: block; }

.form { display: grid; gap: 0.7rem; }
.form label { font-weight: 700; }
.form input, .form textarea {
  font: inherit; padding: 0.55rem 0.7rem; border-radius: 10px;
  border: 2px solid var(--plum-shade); background: var(--white); color: var(--cocoa);
}

@media (max-width: 800px) {
  .product, .cart-layout { grid-template-columns: 1fr; }
  .hero-art { aspect-ratio: 4 / 1; object-fit: contain; border-radius: 0 0 20px 20px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--plum-shade);
    flex-direction: column; align-items: stretch;
    padding: 0.8rem 1rem 1rem; gap: 0.6rem;
  }
  .nav.open { display: flex; }
  .header-inner { position: relative; }
  .cart-link { margin-left: 0.4rem; }
  .sticky-cart {
    display: flex; position: sticky; bottom: 0; z-index: 30;
    background: var(--plum-shade); padding: 0.7rem 1rem;
    margin: 1rem -1rem -1.5rem; gap: 0.6rem; align-items: center;
    box-shadow: 0 -8px 20px rgba(0,0,0,0.15);
  }
  .sticky-cart .price { color: var(--hearth); margin: 0 auto 0 0; }
  .summary { position: static; }
  .pack-thumbs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 420px) {
  .brand img { height: 36px; }
  .cart-item { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-item .qty-row { grid-column: 1 / -1; }
}

/* Phone wallpaper products */
.wallpaper-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.wallpaper-card .media {
  aspect-ratio: 1290 / 2796;
  background: #1a1030;
}
.wallpaper-card .media img {
  object-fit: cover;
  object-position: center 40%;
}
.wallpaper-art {
  max-width: 380px;
  margin: 0 auto;
  background: #1a1030;
}
.wallpaper-art img {
  width: 100%;
  height: auto;
  display: block;
}
.preview-note {
  margin: 0.6rem 0.8rem 0.9rem;
  color: var(--cocoa-soft);
  text-align: center;
}
.wallpaper-product .product-art {
  background: #1a1030;
}
@media (min-width: 800px) {
  .wallpaper-product {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }
}

/* Collection filters */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.filters {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.6rem;
  padding: 0.95rem 1rem 1rem;
  background: var(--plum-shade);
  color: var(--hearth);
  border-radius: var(--radius);
}
.filter-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: #4A326E;
  color: var(--hearth);
  cursor: pointer;
}
.chip:hover, .chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.chip.is-active {
  background: var(--gold);
  color: var(--cocoa);
}
.filter-search input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 2px solid #4A326E;
  background: var(--cream);
  color: var(--cocoa);
}
.filter-status { margin: 0; font-size: 0.9rem; color: var(--hearth); }
.group-section { margin-bottom: 1.4rem; }
@media (max-width: 800px) {
  .filters { margin-left: 0; margin-right: 0; }
  .chip { min-height: 44px; padding-inline: 0.9rem; } /* comfortable tap target */
  .filter-search input[type="search"] { min-height: 44px; font-size: 1rem; }
}
