/* =====================================================================
   PLAYFUL — Toys & Games E-Commerce Store Template
   style.css — vanilla CSS, theming via :root custom properties.
   No external images. All visuals: CSS gradients, inline SVG, emoji.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. THEME TOKENS
--------------------------------------------------------------------- */
:root {
  /* Palette */
  --bg:       #fffdf6;
  --ink:      #2a2540;
  --accent:   #ff5da2;   /* pink   */
  --accent-d: #e8408a;   /* darker pink for hovers */
  --accent2:  #ffb830;   /* yellow */
  --accent3:  #4fc4d6;   /* cyan   */
  --muted:    #877f96;
  --surface:  #ffffff;
  --line:     #efe9f2;

  /* Fonts */
  --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Scale */
  --maxw: 1200px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow:    0 10px 30px rgba(42,37,64,.07);
  --shadow-lg: 0 24px 60px rgba(42,37,64,.13);
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Product / category gradients (reused across pages) */
  --g-blocks:  linear-gradient(150deg,#ff8fc4,#ff5da2);
  --g-plush:   linear-gradient(150deg,#ffd06b,#ffb830);
  --g-puzzle:  linear-gradient(150deg,#7fe0ee,#4fc4d6);
  --g-car:     linear-gradient(150deg,#9d8bf5,#6c54e0);
  --g-board:   linear-gradient(150deg,#ff9d6b,#ff6f3d);
  --g-doll:    linear-gradient(150deg,#ffa6d6,#ff5da2);
  --g-robot:   linear-gradient(150deg,#6ad4e6,#3fb0c4);
  --g-craft:   linear-gradient(150deg,#b8e986,#7ed957);
  --g-fun:     linear-gradient(135deg,#ff5da2,#ffb830);
  --g-cool:    linear-gradient(135deg,#4fc4d6,#9d8bf5);
}

/* ---------------------------------------------------------------------
   2. RESET / BASE
--------------------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input,select,textarea { font-family: inherit; font-size: 1rem; }

h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-d);
  font-weight: 700;
  margin-bottom: 16px;
}
.muted { color: var(--muted); }

/* ---------------------------------------------------------------------
   3. BUTTONS
--------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px;
  font-family: var(--font-head);
  font-size: .9rem; font-weight: 700;
  letter-spacing: .01em;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(255,93,162,.32); }
.btn--primary:hover { background: var(--accent-d); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent2); color: var(--ink); }
.btn--gold { background: var(--accent2); color: var(--ink); box-shadow: 0 8px 20px rgba(255,184,48,.32); }
.btn--gold:hover { background: #f0a716; transform: translateY(-2px); }

.btn--add {
  width: 100%;
  background: var(--surface); color: var(--ink);
  border-color: var(--line);
  padding: 12px 18px; margin-top: 14px;
}
.btn--add:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------------------------------------------------------------------
   4. ANNOUNCEMENT BAR
--------------------------------------------------------------------- */
.announcement {
  background: var(--g-fun); color: #fff;
  font-size: .8rem; letter-spacing: .01em; font-weight: 600;
}
.announcement__inner {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 40px; position: relative; text-align: center;
}
.announcement strong { color: #fff; font-weight: 800; }
.announcement__close {
  position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.8);
  font-size: 1.3rem; line-height: 1; padding: 4px;
}
.announcement__close:hover { color: #fff; }
.announcement.is-hidden { display: none; }

/* ---------------------------------------------------------------------
   5. HEADER
--------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,253,246,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(42,37,64,.06); }
.header__inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 78px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  font-size: 1.7rem; line-height: 1;
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--g-fun); box-shadow: 0 6px 16px rgba(255,93,162,.3);
}
.logo__text {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 800;
  letter-spacing: -.02em;
}

.nav { margin-left: 6px; }
.nav__list { display: flex; gap: 30px; }
.nav__link {
  font-family: var(--font-head);
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  color: var(--ink);
  position: relative; padding: 6px 0;
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--accent); border-radius: 3px; transition: width .3s var(--ease);
}
.nav__link:hover { color: var(--accent-d); }
.nav__link.active { color: var(--accent-d); }
.nav__link.active::after, .nav__link:hover::after { width: 100%; }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.search {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 2px solid var(--line);
  border-radius: var(--radius-pill); padding: 8px 16px; min-width: 220px;
  transition: border-color .25s;
}
.search:focus-within { border-color: var(--accent); }
.search__icon { color: var(--muted); display: flex; }
.search__input {
  border: none; background: none; outline: none; width: 100%;
  font-size: .9rem; color: var(--ink);
}
.search__input::placeholder { color: var(--muted); }

.cart {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: #fff;
  border: none; border-radius: var(--radius-pill);
  padding: 10px 18px; font-family: var(--font-head); font-size: .85rem; font-weight: 700;
  transition: background .25s, transform .2s;
}
.cart:hover { background: #3a3358; transform: translateY(-1px); }
.cart__icon { font-size: 1.05rem; line-height: 1; }
.cart__count {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--accent2); color: var(--ink);
  border-radius: var(--radius-pill); font-size: .74rem; font-weight: 800;
  transition: transform .2s var(--ease);
}
.cart__count.is-bump { animation: bump .4s var(--ease); }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.55)} 100%{transform:scale(1)} }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
}
.hamburger span {
  width: 24px; height: 3px; background: var(--ink); border-radius: 3px;
  transition: transform .3s var(--ease), opacity .3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; background: rgba(42,37,64,.45);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 90;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------------------
   6. SECTIONS / HEADINGS
--------------------------------------------------------------------- */
.section { padding: 90px 0; }
.section--alt { background: var(--surface); }
.section--tight { padding: 60px 0; }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__title { font-size: clamp(2rem, 4vw, 2.9rem); }
.section__subtitle { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.section__head--left { margin-left: 0; text-align: left; }

/* ---------------------------------------------------------------------
   7. HERO (homepage)
--------------------------------------------------------------------- */
.hero {
  padding: 80px 0 96px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,184,48,.18), transparent 45%),
    radial-gradient(circle at 88% 80%, rgba(79,196,214,.18), transparent 45%),
    var(--bg);
}
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.hero__eyebrow { color: var(--accent-d); }
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.3rem); line-height: 1.02; margin-bottom: 22px;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__title .hl { color: var(--accent3); }
.hero__text { font-size: 1.12rem; color: var(--muted); max-width: 470px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  display: flex; gap: 40px; margin-top: 46px;
  padding-top: 30px; border-top: 2px dashed var(--line);
}
.hero__stats strong { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--accent); }
.hero__stats span { font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Hero visual — playful CSS card stack */
.hero__visual { position: relative; min-height: 440px; }
.hero__frame {
  position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: var(--g-fun); overflow: hidden;
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.35), transparent 40%),
    radial-gradient(circle at 78% 75%, rgba(255,255,255,.2), transparent 40%);
}
.hero__frame-emoji { font-size: 10rem; filter: drop-shadow(0 14px 28px rgba(42,37,64,.28)); position: relative; z-index: 1; animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 0%,100%{transform:translateY(0) rotate(-3deg)} 50%{transform:translateY(-14px) rotate(3deg)} }
.hero__card {
  position: absolute; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px; z-index: 2;
}
.hero__card-emoji {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.5rem; background: var(--surface);
}
.hero__card small { display: block; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hero__card strong { font-family: var(--font-head); font-size: 1rem; }
.hero__card--1 { top: 26px; left: -26px; }
.hero__card--2 { bottom: 32px; right: -22px; }
.hero__price-tag {
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 24px; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-size: .82rem; font-weight: 700; box-shadow: var(--shadow); z-index: 3;
}

/* ---------------------------------------------------------------------
   8. CATEGORY TILES
--------------------------------------------------------------------- */
.categories {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.category-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 220px; display: flex; align-items: flex-end;
  background: var(--cat, var(--g-fun));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: var(--shadow);
}
.category-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(42,37,64,.6));
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.category-card__emoji {
  position: absolute; top: 20px; left: 22px; font-size: 2.8rem;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)); z-index: 1;
  transition: transform .35s var(--ease);
}
.category-card:hover .category-card__emoji { transform: scale(1.12) rotate(-6deg); }
.category-card__body { position: relative; z-index: 1; padding: 22px; color: #fff; width: 100%; }
.category-card__body h3 { font-size: 1.4rem; }
.category-card__link {
  font-family: var(--font-head); font-size: .76rem; letter-spacing: .04em;
  color: var(--accent2); font-weight: 700;
  margin-top: 4px; display: inline-block;
}

/* ---------------------------------------------------------------------
   9. PRODUCT CARDS
--------------------------------------------------------------------- */
.products { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.products--three { grid-template-columns: repeat(3,1fr); }

.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s;
  display: flex; flex-direction: column;
}
.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: transparent; }
.product__media {
  position: relative; aspect-ratio: 1/1; background: var(--pg, var(--g-fun));
  display: grid; place-items: center; overflow: hidden;
}
.product__media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.3), transparent 60%);
}
.product__emoji { font-size: 4.6rem; filter: drop-shadow(0 10px 20px rgba(42,37,64,.22)); z-index: 1; transition: transform .35s var(--ease); }
.product:hover .product__emoji { transform: scale(1.1) rotate(5deg); }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-head);
  font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius-pill); color: #fff;
}
.badge--sale { background: var(--accent); }
.badge--new  { background: var(--accent3); }
.badge--hot  { background: var(--accent2); color: var(--ink); }

.product__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product__cat {
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px; font-weight: 700;
}
.product__name { font-size: 1.12rem; font-weight: 800; }
.product__name a:hover { color: var(--accent-d); }
.product__rating { color: var(--accent2); font-size: .82rem; margin: 8px 0 2px; }
.product__rating span { color: var(--muted); margin-left: 4px; font-size: .76rem; }
.product__price { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 10px; }
.price { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.price--old { color: var(--muted); text-decoration: line-through; font-size: .92rem; font-weight: 600; }

/* ---------------------------------------------------------------------
   10. PROMO BANNER
--------------------------------------------------------------------- */
.promo {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  background: var(--g-cool); border-radius: var(--radius-lg); overflow: hidden;
  color: #fff; min-height: 320px;
}
.promo__content { padding: 54px; }
.promo__eyebrow { color: var(--accent2); }
.promo__title { font-size: clamp(2rem,4vw,2.9rem); margin-bottom: 16px; color: #fff; }
.promo__text { color: rgba(255,255,255,.86); max-width: 380px; margin-bottom: 28px; }
.promo__visual {
  position: relative; align-self: stretch; min-height: 320px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 70% 40%, rgba(255,255,255,.22), transparent 55%);
}
.promo__circle {
  width: 168px; height: 168px; border-radius: 50%;
  background: var(--accent2); color: var(--ink);
  display: grid; place-content: center; text-align: center;
  font-family: var(--font-head); font-size: 2.9rem; font-weight: 800;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.promo__circle small { display: block; font-size: .7rem; letter-spacing: .28em; font-weight: 700; }
.promo__emoji { position: absolute; font-size: 2.4rem; filter: drop-shadow(0 6px 12px rgba(0,0,0,.2)); }
.promo__emoji--1 { top: 36px; left: 46px; }
.promo__emoji--2 { bottom: 44px; right: 56px; }
.promo__emoji--3 { top: 56px; right: 84px; opacity: .85; }

/* ---------------------------------------------------------------------
   11. FEATURES / TRUST STRIP
--------------------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.feature {
  display: flex; align-items: center; gap: 16px;
  padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; color: #fff; font-size: 1.5rem;
  background: var(--g-fun);
}
.feature:nth-child(2) .feature__icon { background: var(--g-cool); }
.feature:nth-child(3) .feature__icon { background: var(--g-craft); }
.feature:nth-child(4) .feature__icon { background: var(--g-board); }
.feature h3 { font-size: 1.02rem; }
.feature p { font-size: .84rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   12. NEWSLETTER
--------------------------------------------------------------------- */
.newsletter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,184,48,.16), transparent 50%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 54px;
}
.newsletter__title { font-size: clamp(1.8rem,3vw,2.4rem); }
.newsletter__content p { color: var(--muted); margin-top: 12px; }
.newsletter__field { display: flex; gap: 12px; }
.newsletter__input {
  flex: 1; border: 2px solid var(--line); background: #fff;
  border-radius: var(--radius-pill); padding: 14px 20px; outline: none;
  transition: border-color .25s;
}
.newsletter__input:focus { border-color: var(--accent); }
.newsletter__input.is-error { border-color: #e23b5b; }
.newsletter__msg { margin-top: 12px; font-size: .85rem; min-height: 20px; }
.newsletter__msg.is-error { color: #e23b5b; }
.newsletter__msg.is-success { color: #2faf6a; font-weight: 600; }

/* ---------------------------------------------------------------------
   13. PAGE BANNER (inner pages)
--------------------------------------------------------------------- */
.page-banner {
  background:
    radial-gradient(circle at 80% 20%, rgba(255,184,48,.2), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(79,196,214,.18), transparent 50%),
    var(--g-fun);
  color: #fff; padding: 76px 0 70px; text-align: center;
}
.breadcrumb {
  display: inline-flex; gap: 10px; align-items: center;
  font-family: var(--font-head);
  font-size: .78rem; letter-spacing: .02em; font-weight: 600;
  color: rgba(255,255,255,.85); margin-bottom: 16px;
}
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: rgba(255,255,255,.55); }
.page-banner h1 { font-size: clamp(2.3rem,5vw,3.4rem); }
.page-banner p { color: rgba(255,255,255,.9); max-width: 580px; margin: 14px auto 0; }

/* ---------------------------------------------------------------------
   14. SHOP LAYOUT
--------------------------------------------------------------------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 14px;
}
.shop-toolbar p { font-size: .9rem; color: var(--muted); }
.shop-sort { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.shop-sort select { border: 2px solid var(--line); border-radius: var(--radius-pill); padding: 9px 16px; background: #fff; font-weight: 600; }

.sidebar { position: sticky; top: 100px; }
.filter-group { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: none; }
.filter-group h4 {
  font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 16px;
}
.filter-list li { margin-bottom: 11px; }
.filter-list label { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #5a5468; cursor: pointer; }
.filter-list label:hover { color: var(--ink); }
.filter-list input { accent-color: var(--accent); width: 16px; height: 16px; }
.filter-list .count { margin-left: auto; color: var(--muted); font-size: .78rem; }
.price-range { display: flex; align-items: center; gap: 12px; }
.price-range input[type=range] { flex: 1; accent-color: var(--accent); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.size-chip {
  min-width: 46px; padding: 9px 14px; text-align: center;
  border: 2px solid var(--line); border-radius: var(--radius-pill); background: #fff;
  font-family: var(--font-head); font-size: .82rem; font-weight: 700; transition: all .25s; cursor: pointer;
}
.size-chip:hover { border-color: var(--accent); }
.size-chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

.filter-toggle {
  display: none; align-items: center; gap: 8px;
  border: 2px solid var(--line); background: #fff; border-radius: var(--radius-pill);
  padding: 11px 20px; font-family: var(--font-head); font-size: .85rem; font-weight: 700;
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 54px; }
.pagination a {
  min-width: 44px; height: 44px; display: grid; place-items: center;
  border: 2px solid var(--line); border-radius: var(--radius-pill);
  font-family: var(--font-head); font-size: .9rem; font-weight: 700; transition: all .25s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-d); }
.pagination a.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination a.is-disabled { opacity: .4; pointer-events: none; }

/* ---------------------------------------------------------------------
   15. PRODUCT DETAIL
--------------------------------------------------------------------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.gallery__main {
  aspect-ratio: 1/1; border-radius: var(--radius-lg); background: var(--gallery, var(--g-blocks));
  display: grid; place-items: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery__main::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.3), transparent 60%);
}
.gallery__emoji { font-size: 8rem; filter: drop-shadow(0 14px 28px rgba(42,37,64,.24)); z-index: 1; }
.gallery__thumbs { display: flex; gap: 14px; margin-top: 16px; }
.gallery__thumb {
  width: 82px; height: 82px; border-radius: var(--radius); cursor: pointer;
  background: var(--g, var(--g-fun)); display: grid; place-items: center; font-size: 2rem;
  border: 3px solid transparent; transition: border-color .25s; overflow: hidden;
}
.gallery__thumb.is-active { border-color: var(--accent); }

.pd-info .product__cat { font-size: .72rem; }
.pd-title { font-size: clamp(2rem,3.4vw,2.7rem); margin: 6px 0 10px; }
.pd-rating { color: var(--accent2); margin-bottom: 18px; }
.pd-rating span { color: var(--muted); margin-left: 6px; font-size: .85rem; }
.pd-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.pd-price .price { font-size: 2rem; color: var(--accent-d); }
.pd-price .price--old { font-size: 1.15rem; }
.pd-save { background: var(--accent2); color: var(--ink); font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: var(--radius-pill); }
.pd-desc { color: #5a5468; margin-bottom: 28px; max-width: 480px; }

.pd-option { margin-bottom: 24px; }
.pd-option__head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.pd-option__head h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.pd-option__value { font-size: .85rem; color: var(--muted); }
.size-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.size-chips .size-chip { min-width: 56px; }
.color-dots { display: flex; gap: 12px; }
.color-dot {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent;
  box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: border-color .25s;
}
.color-dot.is-active { border-color: var(--accent); }

.pd-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin: 30px 0 12px; }
.qty {
  display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: var(--radius-pill);
}
.qty button { width: 44px; height: 100%; background: none; border: none; font-size: 1.3rem; color: var(--ink); }
.qty button:hover { color: var(--accent-d); }
.qty__input {
  width: 46px; text-align: center; border: none; outline: none;
  border-left: 2px solid var(--line); border-right: 2px solid var(--line);
  align-self: stretch; font-weight: 700; font-family: var(--font-head);
}
.pd-actions .btn { flex: 1; min-width: 160px; }
.pd-meta { font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.pd-meta div { margin-bottom: 6px; }
.pd-meta strong { color: var(--ink); font-weight: 700; }

/* Tabs */
.tabs { margin-top: 78px; }
.tabs__nav { display: flex; gap: 6px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.tabs__btn {
  background: none; border: none; padding: 16px 22px;
  font-family: var(--font-head); font-size: .9rem; font-weight: 700;
  color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color .25s, border-color .25s;
}
.tabs__btn:hover { color: var(--ink); }
.tabs__btn.is-active { color: var(--ink); border-color: var(--accent); }
.tabs__panel { display: none; padding: 32px 0; max-width: 720px; color: #5a5468; }
.tabs__panel.is-active { display: block; animation: fade .4s var(--ease); }
.tabs__panel h3 { font-size: 1.3rem; margin-bottom: 12px; }
.tabs__panel ul { list-style: none; padding-left: 0; margin-top: 10px; }
.tabs__panel li { margin-bottom: 8px; padding-left: 26px; position: relative; }
.tabs__panel li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   16. ABOUT PAGE
--------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split h2 { font-size: clamp(1.9rem,3.4vw,2.6rem); margin-bottom: 18px; }
.split p { color: #5a5468; margin-bottom: 16px; }
.split--reverse .split-media { order: -1; }
.split-media {
  position: relative; min-height: 380px; border-radius: var(--radius-lg);
  background: var(--g-fun); display: grid; place-items: center; color: #fff;
  overflow: hidden; box-shadow: var(--shadow);
}
.split-media__emoji { font-size: 8rem; filter: drop-shadow(0 14px 28px rgba(42,37,64,.24)); animation: floaty 5s ease-in-out infinite; }
.split-media--cool { background: var(--g-cool); }

.stats-band { background: var(--g-cool); color: #fff; }
.stats-band .section__title { color: #fff; }
.stats-band .section__subtitle { color: rgba(255,255,255,.85); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 3rem; color: var(--accent2); }
.stat span { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.85); font-weight: 600; }

.value-card, .team-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.value-card:hover, .team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.value-card .icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.8rem; margin-bottom: 16px; background: var(--g-fun); color: #fff;
}
.value-card:nth-child(2) .icon { background: var(--g-cool); }
.value-card:nth-child(3) .icon { background: var(--g-craft); }
.value-card:nth-child(4) .icon { background: var(--g-board); }
.value-card:nth-child(5) .icon { background: var(--g-puzzle); }
.value-card:nth-child(6) .icon { background: var(--g-doll); }
.value-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: .92rem; }
.team-card { text-align: center; }
.team-photo {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-size: 2.4rem;
  color: #fff; background: var(--g-fun);
}
.team-card:nth-child(2) .team-photo { background: var(--g-cool); }
.team-card:nth-child(3) .team-photo { background: var(--g-craft); }
.team-card:nth-child(4) .team-photo { background: var(--g-board); }
.team-card h3 { font-size: 1.2rem; }
.team-card .role { color: var(--accent-d); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; margin: 4px 0 10px; }
.team-card p { color: var(--muted); font-size: .88rem; }

/* ---------------------------------------------------------------------
   17. CONTACT PAGE
--------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 13px 16px; outline: none; background: #fff; transition: border-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }
.field input.is-error, .field select.is-error, .field textarea.is-error { border-color: #e23b5b; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-msg { margin-top: 16px; font-size: .9rem; min-height: 22px; }
.form-msg.is-error { color: #e23b5b; }
.form-msg.is-success { color: #2faf6a; font-weight: 700; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 14px; }

.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; margin-bottom: 24px; }
.info-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; background: var(--g-fun);
  display: grid; place-items: center; font-size: 1.2rem; color: #fff;
}
.info-row:nth-child(2) .info-ic { background: var(--g-cool); }
.info-row:nth-child(3) .info-ic { background: var(--g-craft); }
.info-row:nth-child(4) .info-ic { background: var(--g-board); }
.info-row b { display: block; font-family: var(--font-head); font-size: .95rem; margin-bottom: 2px; }
.info-row span { color: var(--muted); font-size: .9rem; }
.info-row a { color: var(--muted); }
.info-row a:hover { color: var(--accent-d); }
.map-placeholder {
  border-radius: var(--radius-lg); min-height: 240px; overflow: hidden;
  display: grid; place-items: center; text-align: center; color: #fff;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 14px, transparent 14px 28px),
    var(--g-cool);
  border: 1px solid var(--line);
}
.map-placeholder .pin { font-size: 2.6rem; margin-bottom: 8px; }
.map-placeholder b { font-family: var(--font-head); color: #fff; display: block; font-size: 1.1rem; }
.map-placeholder span { color: rgba(255,255,255,.85); font-size: .82rem; }

/* ---------------------------------------------------------------------
   18. CTA BAND
--------------------------------------------------------------------- */
.cta-band {
  text-align: center; border-radius: var(--radius-lg); padding: 70px 40px; color: #fff;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,184,48,.3), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(79,196,214,.3), transparent 55%),
    var(--g-fun);
}
.cta-band h2 { font-size: clamp(2rem,4vw,2.8rem); margin-bottom: 14px; color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 540px; margin: 0 auto 30px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------------------------------------------------------------------
   19. FOOTER
--------------------------------------------------------------------- */
.footer { background: #221d36; color: rgba(255,255,255,.72); padding-top: 70px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 54px; }
.logo--light .logo__text { color: #fff; }
.footer__tagline { margin: 18px 0 22px; font-size: .9rem; max-width: 290px; }
.footer__social { display: flex; gap: 12px; }
.footer__social-link {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); font-size: 1.1rem; transition: background .25s, transform .25s;
}
.footer__social-link:hover { background: var(--accent); transform: translateY(-3px); }
.footer__col h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col ul li { margin-bottom: 11px; }
.footer__col a { font-size: .9rem; transition: color .2s; }
.footer__col a:hover { color: var(--accent2); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px; font-size: .82rem; flex-wrap: wrap; gap: 12px;
}
.footer__legal { display: flex; gap: 22px; }
.footer__legal a:hover { color: var(--accent2); }

/* ---------------------------------------------------------------------
   20. TOAST
--------------------------------------------------------------------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 14px 24px; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-size: .88rem; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all .35s var(--ease); z-index: 200;
  border: 2px solid var(--accent);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------------------------------------------------------------------
   21. REVEAL ON SCROLL
--------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   22. RESPONSIVE
--------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { min-height: 360px; max-width: 460px; }
  .categories { grid-template-columns: repeat(2,1fr); }
  .products { grid-template-columns: repeat(3,1fr); }
  .features { grid-template-columns: repeat(2,1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .search { min-width: 160px; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(78vw, 320px);
    background: #fff; flex-direction: column; padding: 90px 32px 32px;
    transform: translateX(100%); transition: transform .35s var(--ease);
    z-index: 95; box-shadow: -10px 0 40px rgba(0,0,0,.1); margin: 0;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { display: block; padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .hamburger { display: flex; }
  .search { display: none; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(82vw, 320px);
    background: #fff; padding: 32px 28px; overflow-y: auto;
    transform: translateX(-100%); transition: transform .35s var(--ease);
    z-index: 95; box-shadow: 10px 0 40px rgba(0,0,0,.1);
  }
  .sidebar.is-open { transform: translateX(0); }
  .pd { grid-template-columns: 1fr; gap: 36px; }
  .tabs { margin-top: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .products, .products--three { grid-template-columns: repeat(2,1fr); gap: 18px; }
  .promo { grid-template-columns: 1fr; }
  .promo__content { padding: 40px 32px; }
  .promo__visual { min-height: 220px; }
  .newsletter { grid-template-columns: 1fr; padding: 40px 32px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split-media { order: 0; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 32px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero__stats { gap: 22px; flex-wrap: wrap; }
  .categories { grid-template-columns: 1fr; }
  .products, .products--three { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .promo__content, .newsletter { padding: 32px 22px; }
  .pd-actions .btn { min-width: 100%; }
  .footer__inner { grid-template-columns: 1fr; }
  .announcement__close { right: 14px; }
  .newsletter__field { flex-direction: column; }
}

/* 380px — smallest target: keep everything readable */
@media (max-width: 380px) {
  .logo__text { font-size: 1.25rem; }
  .hero__title { font-size: 2.3rem; }
  .cart__label { display: none; }
}
