/* ================================================
   Township Dream — Authentic Township game palette
   Sky blues, lush greens, warm yellows, teal, orange
   Based on Playrix Township UI colors
   ================================================ */

:root {
  /* Township sky / background */
  --bg:         #eaf6fb;
  --bg2:        #e0f0f7;
  --bg3:        #d2e8f0;
  --surface:    #ffffff;
  --surface2:   #f5fbfe;
  --border:     rgba(0,80,130,.08);
  --border2:    rgba(0,80,130,.14);

  /* Text */
  --text:       #1e3a4a;
  --text2:      #4a7286;
  --text3:      #7da0b3;

  /* Township green (grass, fields, buttons) */
  --green:      #4caf50;
  --green-dark: #2e7d32;
  --green-light:#81c784;
  --green-bg:   rgba(76,175,80,.10);
  --green-bd:   rgba(76,175,80,.28);

  /* Township blue (sky, water, UI) */
  --blue:       #5d9cdc;
  --blue-dark:  #3a78b5;
  --blue-light: #84cdc5;
  --blue-bg:    rgba(93,156,220,.10);
  --blue-bd:    rgba(93,156,220,.25);

  /* Township yellow/gold (coins, rewards) */
  --yellow:     #f1d07b;
  --yellow-dark:#d4a832;
  --yellow-bg:  rgba(241,208,123,.15);
  --yellow-bd:  rgba(241,208,123,.40);

  /* Township orange (highlights, CTAs) */
  --orange:     #e48947;
  --orange-dark:#a35a3a;
  --orange-bg:  rgba(228,137,71,.10);
  --orange-bd:  rgba(228,137,71,.30);

  /* Township teal (decorations, accents) */
  --teal:       #84cdc5;
  --teal-dark:  #4ba89e;
  --teal-bg:    rgba(132,205,197,.12);
  --teal-bd:    rgba(132,205,197,.30);

  --red:        #e5503e;
  --red-bg:     rgba(229,80,62,.08);

  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --shadow:     0 1px 3px rgba(0,60,100,.06), 0 4px 16px rgba(0,60,100,.05);
  --shadow-lg:  0 4px 12px rgba(0,60,100,.08), 0 12px 40px rgba(0,60,100,.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg2);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.wrap {
  width: min(1080px, 100% - 32px);
  margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 16px; color: var(--text);
}
.logo__img {
  height: 42px;
  width: auto;
  max-width: min(140px, 38vw);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.logo__img--footer {
  height: 38px;
  max-width: 120px;
  box-shadow: none;
}
.logo__name { letter-spacing: -.3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-size: 13px; font-weight: 600; color: var(--text2);
  padding: 8px 14px; border-radius: var(--radius);
  transition: color .15s, background .15s;
  display: flex; align-items: center; gap: 6px;
}
.nav__link:hover { color: var(--text); background: rgba(93,156,220,.08); }
.nav__link--accent {
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green-dark);
  text-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.nav__link--accent:hover { background: var(--green-dark); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 52px 0 40px;
  background: linear-gradient(180deg, #d4eef8 0%, var(--bg) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero__glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(120px); opacity: .5;
}
.hero__glow--1 {
  width: 600px; height: 400px; top: -150px; left: -80px;
  background: radial-gradient(circle, rgba(76,175,80,.30), transparent 70%);
}
.hero__glow--2 {
  width: 500px; height: 350px; top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(93,156,220,.25), transparent 70%);
}
.hero__wrap {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 40px;
}
.hero__left { flex: 1; min-width: 0; }
.hero__content { max-width: 640px; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 10px; border-radius: 999px;
  background: var(--green-bg); border: 1px solid var(--green-bd);
  font-size: 12px; font-weight: 700; color: var(--green-dark);
  margin-bottom: 20px;
}
.hero__pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px rgba(76,175,80,.5);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.hero__title {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900; letter-spacing: -.8px; line-height: 1.08;
  color: var(--text);
}
.hero__sub {
  margin-top: 12px; font-size: 15px; color: var(--text2);
  max-width: 48ch; line-height: 1.6;
}
.hero__actions {
  margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-weight: 700; font-size: 13px; border: 1px solid transparent;
  cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 16px rgba(46,125,50,.30);
  text-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.btn--primary:hover { box-shadow: 0 6px 24px rgba(46,125,50,.40); filter: brightness(1.06); }
.btn--ghost {
  background: var(--surface); color: var(--text2);
  border-color: var(--border2);
  box-shadow: var(--shadow);
}
.btn--ghost:hover { background: var(--bg3); color: var(--text); }
.btn--lg { padding: 14px 28px; font-size: 14px; border-radius: var(--radius-lg); }
.btn--sm { padding: 8px 16px; font-size: 12px; }
.btn--full { width: 100%; }

/* ===== SECTIONS ===== */
.section { padding: 40px 0; }

/* Ниже первого экрана — отложенная отрисовка до прокрутки (меньше работы на мобильных) */
#catalog.section {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}
.section--hiw,
.section--faq {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
}
.section--offers {
  background: linear-gradient(180deg, rgba(241,208,123,.08), var(--bg) 80%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  content-visibility: auto;
  contain-intrinsic-size: 380px;
}
.section__head { margin-bottom: 20px; }
.section__title {
  font-size: 22px; font-weight: 800; letter-spacing: -.3px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.section__sub { margin-top: 6px; font-size: 14px; color: var(--text3); }

/* ===== FEATURED OFFER ===== */
.section--featured {
  background: linear-gradient(180deg, rgba(76,175,80,.06), var(--bg) 80%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 48px;
}
.featured-offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}
.featured-offer__main {
  position: relative;
  flex: 1 1 400px;
  max-width: 560px;
  background: var(--surface);
  border: 2px solid var(--green-bd);
  border-radius: var(--radius-xl);
  /* место под бейдж сверху — текст и картинка не заходят под него */
  padding: 40px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 0;
  box-shadow: 0 8px 36px rgba(76,175,80,.12);
  transition: border-color .2s, box-shadow .2s;
}
/* Есть фото товара — блок сверху; без фото — по центру по вертикали при высокой карточке */
.featured-offer__main:has(.featured-offer__img) {
  justify-content: flex-start;
}
.featured-offer__main:hover {
  border-color: var(--green);
  box-shadow: 0 14px 48px rgba(76,175,80,.18);
}
.featured-offer__badge {
  position: absolute;
  top: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 0 0 12px 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.featured-offer__img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: var(--radius);
}
.featured-offer__info {
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}
.featured-offer__title {
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  word-break: break-word;
}
.featured-offer__instant {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(124, 223, 90, 0.18);
  border: 1px solid rgba(124, 223, 90, 0.35);
}
.featured-offer__price {
  font-weight: 900;
  font-size: 48px;
  color: var(--green-dark);
  margin-top: 6px;
  letter-spacing: -0.02em;
}
.featured-offer__buy {
  width: 100%;
  margin-top: 4px;
  font-size: 17px;
  padding: 16px 24px;
  min-height: 52px;
}
.featured-offer__equals {
  font-size: 72px;
  font-weight: 900;
  color: var(--text3);
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
  user-select: none;
}
.featured-offer__compare {
  flex: 0 1 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 0;
}
.featured-offer__compare picture {
  display: block;
  max-width: 100%;
}
.featured-offer__compare-img {
  max-height: 560px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.2));
}
.featured-offer__compare-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--text2);
  text-align: center;
  line-height: 1.45;
  max-width: 280px;
}

/* Телефон: оффер + «=» + банка в одну горизонтальную линию */
@media (max-width: 640px) {
  .section--featured {
    padding: 28px 0 24px;
  }
  .section--featured .wrap {
    width: calc(100% - 24px);
    max-width: 100%;
  }
  .featured-offer {
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }
  .featured-offer__main {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 26px 8px 16px;
    gap: 10px;
    justify-content: center;
  }
  .featured-offer__badge {
    font-size: 8px;
    padding: 4px 10px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: calc(100% - 16px);
  }
  .featured-offer__img {
    max-height: 88px;
  }
  .featured-offer__title {
    font-size: 13px;
    line-height: 1.15;
  }
  .featured-offer__price {
    font-size: 22px;
    margin-top: 0;
  }
  .featured-offer__buy {
    padding: 8px 6px;
    font-size: 12px;
    min-height: 0;
    margin-top: 4px;
  }
  .featured-offer__equals {
    font-size: 28px;
    align-self: center;
    flex: 0 0 auto;
    line-height: 1;
  }
  .featured-offer__compare {
    flex: 0 1 30%;
    min-width: 0;
    max-width: 120px;
    gap: 6px;
    justify-content: center;
  }
  .featured-offer__compare-img {
    max-height: 150px;
    width: 100%;
    object-fit: contain;
  }
  .featured-offer__compare-label {
    font-size: 9px;
    max-width: 100%;
    line-height: 1.2;
  }
}

/* ===== FEATURED ACCOUNT CARD (inside .featured-offer flex row) ===== */
.featured-acc {
  position: relative;
  flex: 1 1 320px;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  align-self: center;
}
.featured-acc__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255,152,0,.35);
}
.featured-acc__img {
  width: 100%;
  max-width: 240px;
  max-height: 200px;
  object-fit: contain;
  border-radius: 14px;
  margin-bottom: 4px;
}
.featured-acc__name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
  word-break: break-word;
}
.featured-acc__price {
  font-weight: 900;
  font-size: 32px;
  color: var(--green-dark);
  letter-spacing: -0.02em;
  margin: 2px 0;
}
.featured-acc__desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  max-width: 340px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.featured-acc__instant {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(124,223,90,.15);
  border: 1px solid rgba(124,223,90,.3);
}
.featured-acc__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 2px;
  width: 100%;
}
.featured-acc__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
  margin-top: 6px;
}
.featured-acc__btns .btn { min-width: 130px; }

@media (max-width: 640px) {
  .featured-acc {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 26px 10px 16px;
    border-radius: 14px;
    gap: 4px;
  }
  .featured-acc__badge {
    font-size: 8px;
    padding: 4px 10px;
  }
  .featured-acc__name { font-size: 13px; }
  .featured-acc__price { font-size: 20px; margin: 0; }
  .featured-acc__desc { font-size: 10px; line-height: 1.3; }
  .featured-acc__img { max-height: 80px; max-width: 100%; }
  .featured-acc__instant { font-size: 8px; padding: 3px 8px; }
  .featured-acc__stats { gap: 6px; margin: 2px 0; }
  .featured-acc__btns { flex-direction: column; gap: 4px; }
  .featured-acc__btns .btn { width: 100%; min-width: 0; font-size: 11px; padding: 8px 6px; }
}

/* ===== SPECIAL OFFERS ===== */
.offers-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.offer {
  position: relative; padding: 28px 20px 20px;
  background: var(--surface);
  border: 2px solid var(--orange-bd);
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 4px 20px rgba(228,137,71,.08);
  transition: border-color .2s, box-shadow .2s;
}
.offer:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 32px rgba(228,137,71,.15);
}
.offer__badge {
  position: absolute; top: 0; right: 16px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff; font-size: 11px; font-weight: 800;
  padding: 5px 14px; border-radius: 0 0 10px 10px;
  letter-spacing: .5px; text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.offer__title { font-weight: 800; font-size: 18px; margin-top: 6px; color: var(--text); }
.offer__prices { display: flex; align-items: baseline; gap: 10px; }
.offer__old { text-decoration: line-through; color: var(--text3); font-size: 15px; }
.offer__new { font-weight: 900; font-size: 28px; color: var(--orange-dark); }
.offer__save {
  font-size: 12px; font-weight: 700; color: var(--green-dark);
  background: var(--green-bg); border: 1px solid var(--green-bd);
  padding: 4px 10px; border-radius: 8px; align-self: flex-start;
}

/* ===== SHOP / PRODUCT LIST ===== */
.cat-bar {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--border2); background: var(--surface);
  color: var(--text2); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s; white-space: nowrap;
  box-shadow: var(--shadow);
}
.cat-pill:hover { color: var(--text); border-color: var(--blue-bd); }
.cat-pill.active {
  background: var(--blue-bg); border-color: var(--blue-bd); color: var(--blue-dark);
}

.products { display: flex; flex-direction: column; gap: 6px; }
.p-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.p-row:hover { border-color: var(--blue-bd); box-shadow: var(--shadow-lg); }
.p-row__left { flex: 1; min-width: 0; }
.p-row__name {
  font-weight: 700; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-row__desc {
  font-size: 12px; color: var(--text3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-row__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.p-row__price {
  font-weight: 800; font-size: 16px; color: var(--green-dark);
  white-space: nowrap;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0 24px; border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer__inner {
  display: flex; flex-direction: column; gap: 28px;
}
.footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer__name { font-weight: 800; font-size: 16px; color: var(--text); }
.footer__text { font-size: 13px; color: var(--text3); max-width: 40ch; line-height: 1.6; }
.footer__links { display: flex; gap: 48px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col-title {
  font-size: 12px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px;
}
.footer__a {
  font-size: 14px; font-weight: 500; color: var(--text2);
  transition: color .15s;
}
.footer__a:hover { color: var(--green-dark); }
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text3);
  text-align: center;
}
.footer__bottom--checkout {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footer__payments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 20px;
  width: 100%;
}
.payment-logo-img {
  display: block;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.payment-logo-img--footer {
  height: 34px;
  max-width: 88px;
}
.payment-logo-img--checkout {
  height: 28px;
  max-width: 76px;
}

/* ===== FORM FIELDS (shared) ===== */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field__label { font-size: 12px; font-weight: 700; color: var(--text2); }
.field__input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--border2); background: var(--bg);
  color: var(--text); font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(93,156,220,.15);
}
.field__textarea { resize: vertical; font-family: inherit; }
.field-row { display: grid; grid-template-columns: 1fr 90px; gap: 12px; }

/* ===== SHOP TABS (Products / Accounts) ===== */
.shop-tabs {
  display: flex; gap: 4px; margin-bottom: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 4px; background: var(--bg);
}
.shop-tab {
  flex: 1; padding: 12px 16px; border-radius: var(--radius);
  border: none; background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--text2);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .15s;
}
.shop-tab:hover { color: var(--text); }
.shop-tab.active {
  background: var(--surface); color: var(--green-dark);
  box-shadow: var(--shadow);
}
/* Pane transition */
.shop-pane {
  animation: paneIn .45s cubic-bezier(.22,1,.36,1) both;
}
.shop-pane--hidden { display: none !important; }

@keyframes paneIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Staggered children animation */
.shop-pane .p-row,
.shop-pane .acc-card {
  opacity: 0;
  animation: itemSlideUp .4s cubic-bezier(.22,1,.36,1) both;
}
.shop-pane .p-row:nth-child(1), .shop-pane .acc-card:nth-child(1) { animation-delay: .04s; }
.shop-pane .p-row:nth-child(2), .shop-pane .acc-card:nth-child(2) { animation-delay: .08s; }
.shop-pane .p-row:nth-child(3), .shop-pane .acc-card:nth-child(3) { animation-delay: .12s; }
.shop-pane .p-row:nth-child(4), .shop-pane .acc-card:nth-child(4) { animation-delay: .16s; }
.shop-pane .p-row:nth-child(5), .shop-pane .acc-card:nth-child(5) { animation-delay: .20s; }
.shop-pane .p-row:nth-child(6), .shop-pane .acc-card:nth-child(6) { animation-delay: .24s; }
.shop-pane .p-row:nth-child(7), .shop-pane .acc-card:nth-child(7) { animation-delay: .28s; }
.shop-pane .p-row:nth-child(8), .shop-pane .acc-card:nth-child(8) { animation-delay: .32s; }
.shop-pane .p-row:nth-child(n+9), .shop-pane .acc-card:nth-child(n+9) { animation-delay: .36s; }

@keyframes itemSlideUp {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Category filter transition on rows */
.p-row {
  transition: opacity .25s ease, transform .25s ease;
}
.p-row.filter-hide {
  opacity: 0 !important;
  transform: scale(.95) !important;
  pointer-events: none;
  position: absolute; visibility: hidden;
}
.p-row.filter-show {
  animation: itemPop .35s cubic-bezier(.22,1,.36,1) both;
}
@keyframes itemPop {
  from { opacity: 0; transform: translateX(-12px) scale(.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* Toolbar slide-in */
.acc-toolbar {
  animation: toolbarIn .4s cubic-bezier(.22,1,.36,1) .05s both;
}
@keyframes toolbarIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cat-bar pill bounce on active */
.cat-pill {
  transition: all .2s cubic-bezier(.22,1,.36,1);
}
.cat-pill.active {
  animation: pillBounce .35s cubic-bezier(.22,1,.36,1);
}
@keyframes pillBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Account stat chips entrance */
.acc-card__stats .acc-stat {
  opacity: 0;
  animation: chipIn .3s cubic-bezier(.22,1,.36,1) both;
}
.acc-card__stats .acc-stat:nth-child(1) { animation-delay: .15s; }
.acc-card__stats .acc-stat:nth-child(2) { animation-delay: .22s; }
.acc-card__stats .acc-stat:nth-child(3) { animation-delay: .29s; }
.acc-card__stats .acc-stat:nth-child(4) { animation-delay: .36s; }
@keyframes chipIn {
  from { opacity: 0; transform: translateY(8px) scale(.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* On-scroll reveal for sections */
.section, .hero__content, .hiw-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.section.visible, .hero__content.visible, .hiw-card.visible {
  opacity: 1;
  transform: translate(0);
}

/* Offer card hover lift */
.offer {
  transition: border-color .2s, box-shadow .2s, transform .2s cubic-bezier(.22,1,.36,1);
}
.offer:hover {
  transform: translateY(-4px);
}

/* Account card hover lift */
.acc-card {
  transition: border-color .2s, box-shadow .2s, transform .2s cubic-bezier(.22,1,.36,1);
}
.acc-card:hover {
  transform: translateY(-3px);
}

/* Product row hover slide */
.p-row {
  transition: border-color .15s, box-shadow .15s, transform .15s ease;
}
.p-row:hover {
  transform: translateX(4px);
}

/* Btn ripple on primary */
.btn--primary {
  position: relative; overflow: hidden;
}
.btn--primary::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(255,255,255,.35) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.btn--primary:active::after { opacity: 1; }

/* Shop tab sliding indicator */
.shop-tab {
  position: relative;
}
.shop-tab.active::after {
  content: '';
  position: absolute; bottom: 2px; left: 20%; right: 20%;
  height: 3px; border-radius: 3px;
  background: var(--green);
  animation: tabLine .3s cubic-bezier(.22,1,.36,1);
}
@keyframes tabLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ===== ACCOUNT TOOLBAR ===== */
.acc-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.acc-sort { display: flex; align-items: center; gap: 8px; }
.acc-sort__label { font-size: 13px; font-weight: 600; color: var(--text2); white-space: nowrap; }
.acc-sort__select {
  padding: 8px 12px; border-radius: var(--radius); border: 1px solid var(--border2);
  background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600;
  cursor: pointer; outline: none; box-shadow: var(--shadow);
}
.acc-sort__select:focus { border-color: var(--blue); }
.acc-filter-check {
  display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: var(--text2); cursor: pointer; white-space: nowrap;
}
.acc-filter-check input { width: 16px; height: 16px; accent-color: var(--green); cursor: pointer; }

/* ===== ACCOUNT CARDS ===== */
.acc-list { display: flex; flex-direction: column; gap: 8px; }
.acc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.acc-card:hover { border-color: var(--teal-bd); box-shadow: var(--shadow-lg); }
.acc-card__top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 6px;
}
.acc-card__name { font-weight: 800; font-size: 16px; color: var(--text); }
.acc-card__price { font-weight: 900; font-size: 18px; color: var(--green-dark); white-space: nowrap; }
.acc-card__desc { font-size: 13px; color: var(--text2); margin-bottom: 10px; }
.acc-card__instant {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: #2e7d32;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 10px;
}
.acc-card__instant svg {
  color: #2e7d32;
  flex-shrink: 0;
}
.acc-card__stats {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.acc-stat {
  padding: 6px 12px; border-radius: 10px;
  background: var(--blue-bg); border: 1px solid var(--blue-bd);
  display: flex; flex-direction: column; align-items: center; min-width: 60px;
}
.acc-stat--gold {
  background: var(--yellow-bg); border-color: var(--yellow-bd);
}
.acc-stat__val { font-weight: 900; font-size: 15px; color: var(--blue-dark); line-height: 1.2; }
.acc-stat--gold .acc-stat__val { color: var(--yellow-dark); }
.acc-stat__lbl { font-size: 10px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .3px; }

/* ===== PRODUCT / ACCOUNT FILTERS ===== */
.product-filters {
  display: flex; align-items: flex-end; gap: 10px;
  margin-bottom: 12px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  animation: toolbarIn .4s cubic-bezier(.22,1,.36,1) both;
}
.acc-filters {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.pf-group {
  display: flex; flex-direction: column; gap: 4px;
}
.pf-label {
  font-size: 11px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: .3px;
}
.pf-input-wrap {
  display: flex; border: 1px solid var(--border2); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.pf-input {
  width: 90px; padding: 8px 10px; border: 1px solid var(--border2);
  border-radius: var(--radius); background: var(--bg);
  color: var(--text); font-size: 13px; font-weight: 600;
  outline: none; transition: border-color .15s;
  -moz-appearance: textfield;
}
.pf-input::-webkit-outer-spin-button,
.pf-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pf-input:focus { border-color: var(--blue); }
.pf-input-wrap .pf-input {
  border: none; border-radius: 0; flex: 1; min-width: 70px;
}
.pf-input--small { width: 80px; }
.pf-unit {
  padding: 8px 6px; border: none; border-left: 1px solid var(--border2);
  background: var(--bg2); color: var(--text); font-size: 13px; font-weight: 800;
  cursor: pointer; outline: none; min-width: 44px; text-align: center;
}
.pf-unit:focus { background: var(--bg3); }
.pf-group--search { flex: 1; min-width: 120px; }
.pf-input--search {
  width: 100%; border-radius: var(--radius);
  padding-left: 32px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237da0b3' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
}
.pf-clear {
  padding: 8px 14px; border-radius: var(--radius);
  border: 1px solid var(--border2); background: var(--surface);
  color: var(--text3); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .15s; white-space: nowrap;
  align-self: flex-end;
}
.pf-clear:hover { background: var(--bg3); color: var(--text); }

@media (max-width: 640px) {
  .product-filters { flex-wrap: wrap; }
  .acc-filters { gap: 8px; }
  .pf-input { width: 70px; }
  .pf-input--small { width: 60px; }
  .pf-group--search { flex-basis: 100%; }
}

/* ===== FAQ ===== */
.section--faq {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.faq-list {
  display: flex; flex-direction: column; gap: 8px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] {
  border-color: var(--blue-bd);
  box-shadow: var(--shadow-lg);
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  font-size: 14px; font-weight: 700; color: var(--text);
  cursor: pointer; list-style: none;
  transition: color .15s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '';
  width: 20px; height: 20px; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237da0b3' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  transition: transform .2s;
}
.faq-item[open] .faq-q::after {
  transform: rotate(180deg);
}
.faq-item[open] .faq-q {
  color: var(--blue-dark);
}
.faq-q:hover { color: var(--blue-dark); }
.faq-a {
  padding: 0 18px 16px;
  font-size: 13px; color: var(--text2); line-height: 1.7;
  animation: faqOpen .25s ease;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobnav {
  display: none;
}
@media (max-width: 640px) {
  .mobnav {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 90;
    display: flex; align-items: stretch; justify-content: space-around;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-top: 1px solid var(--border);
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }
  .mobnav__item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 10px;
    font-size: 10px; font-weight: 700; color: var(--text3);
    text-decoration: none;
    transition: color .15s;
    flex: 1;
  }
  .mobnav__item:hover,
  .mobnav__item:active { color: var(--green-dark); }
  .mobnav__item--accent { color: var(--green); }
  .mobnav__item--accent:hover { color: var(--green-dark); }

  body { padding-bottom: 64px; }
  .footer { margin-bottom: 0; }
}

/* ===== HOW IT WORKS SECTION ===== */
.section--hiw { background: var(--bg2); }

.hiw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.hiw-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s, transform .5s;
  display: flex; flex-direction: column;
}
.hiw-card.visible {
  opacity: 1; transform: translateY(0);
}

.hiw-card__label {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  font-size: 11px; font-weight: 800; color: var(--green-dark);
  text-transform: uppercase; letter-spacing: .5px;
  background: var(--green-bg);
  border-bottom: 1px solid var(--green-bd);
}
.hiw-card__caption {
  padding: 10px 14px; font-size: 13px; font-weight: 600;
  color: var(--text2); text-align: center;
  border-top: 1px solid var(--border);
}

.hiw-ba__dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 8px 0 10px;
}
.hiw-ba__dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--border2); background: var(--bg3);
  cursor: pointer; padding: 0;
  transition: all .2s;
}
.hiw-ba__dot--active {
  background: var(--green); border-color: var(--green);
  transform: scale(1.25);
}

/* Video player */
.hiw-video__wrap {
  flex: 1;
  background: #0a0a0a;
  overflow: hidden;
}
.hiw-video__player {
  display: block; width: 100%; height: 100%;
  object-fit: cover; background: #000;
}
.hiw-video__placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--text3); font-size: 13px; font-weight: 700;
  background: var(--bg3);
}

@media (max-width: 768px) {
  .hiw-grid { grid-template-columns: 1fr; }
}

/* ===== B/A DRAGGABLE SLIDER CORE ===== */
.ba-slider {
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  touch-action: none;
  flex: 1;
  min-height: 280px;
}
.ba-slider__after,
.ba-slider__before {
  position: absolute; inset: 0;
}
.ba-slider__after { z-index: 1; }
.ba-slider__before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.ba-slider__after img,
.ba-slider__before img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; pointer-events: none;
}
.ba-slider__ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text3); background: var(--bg3);
}
.ba-slider__handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  z-index: 5; width: 3px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,.25);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-slider__handle-grip {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.20);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark);
  transition: transform .15s;
}
.ba-slider:active .ba-slider__handle-grip {
  transform: translate(-50%, -50%) scale(1.15);
}
.ba-slider__badge {
  position: absolute; bottom: 8px; z-index: 3;
  padding: 4px 10px; border-radius: 8px;
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  pointer-events: none;
}
.ba-slider__badge--b {
  left: 8px;
  background: rgba(229,80,62,.85); color: #fff;
}
.ba-slider__badge--a {
  right: 8px;
  background: rgba(76,175,80,.85); color: #fff;
}


/* ===== CART BADGE ===== */
.nav__link--cart {
  position: relative;
}
.cart-badge {
  display: none;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff; font-size: 11px; font-weight: 800;
  line-height: 18px; text-align: center;
  pointer-events: none;
}
.cart-badge--visible { display: inline-block; }
.nav__link--cart .cart-badge {
  position: absolute; top: -2px; right: -6px;
}
.nav__link--cart-active {
  color: var(--green-dark) !important;
  background: var(--green-bg) !important;
}
.mobnav__item--cart {
  position: relative;
}
.mobnav__item--cart .cart-badge {
  position: absolute; top: 0; right: calc(50% - 18px);
}

/* ===== ADD TO CART BUTTONS ===== */
.offer__btns { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.acc-card__btns { display: flex; gap: 8px; margin-top: auto; }
.acc-card__btns .btn { flex: 1; }
.btn--add-cart { font-size: 12px; }
.btn--icon {
  padding: 8px; width: 34px; height: 34px;
}
.btn--added {
  background: var(--green-bg) !important;
  color: var(--green-dark) !important;
  border-color: var(--green-bd) !important;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-body { min-height: 100vh; display: flex; flex-direction: column; }
.checkout { flex: 1; padding: 24px 0 40px; }
.checkout__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text2);
  margin-bottom: 16px; transition: color .15s;
}
.checkout__back:hover { color: var(--green-dark); }
.checkout__title {
  font-size: 28px; font-weight: 900; letter-spacing: -.5px;
  margin-bottom: 24px; color: var(--text);
}
.checkout__grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 24px;
  align-items: flex-start;
}
.checkout__cart {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 20px;
  box-shadow: var(--shadow);
}
.checkout__empty {
  text-align: center; padding: 32px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--text3); font-size: 15px; font-weight: 600;
}
.checkout__total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; margin-top: 8px;
  border-top: 2px solid var(--border);
  font-size: 18px; font-weight: 900; color: var(--text);
}
.checkout__total span:last-child { color: var(--green-dark); }

/* Payment methods (radio + checkmark for selected) */
.checkout__payment-methods {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border2);
}
.checkout__payment-methods-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.checkout__payment-methods-sub {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text3);
}
.payment-method-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payment-method {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.payment-method--chosen {
  border-color: var(--green-bd);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}
.payment-method:hover:not(.payment-method--future) {
  border-color: var(--blue-bd);
}
.payment-method__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.payment-method__tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s, color .15s;
}
.payment-method__check-icon {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .12s ease, transform .12s ease;
  color: #fff;
}
.payment-method__input:checked + .payment-method__tick {
  border-color: var(--green);
  background: var(--green);
}
.payment-method__input:checked + .payment-method__tick .payment-method__check-icon {
  opacity: 1;
  transform: scale(1);
}
.payment-method__tick--empty {
  border-style: dashed;
  opacity: 0.5;
}
.payment-method--future {
  cursor: not-allowed;
  opacity: 0.72;
}
.payment-method__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.payment-method__row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.payment-method__row-title--logo-only {
  gap: 0;
  min-height: 56px;
}
.payment-logo-img--amazon-row {
  height: 52px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}
.place-order-btn__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.place-order-btn__ap {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.payment-method__card-ico {
  display: flex;
  color: var(--green-dark);
  opacity: 0.9;
}
.payment-method__desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text3);
}
.payment-method__desc--muted {
  font-style: italic;
}
.payment-method__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.payment-method__badges--logos {
  align-items: center;
  gap: 8px 12px;
}
.pm-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
}

/* Cart item row */
.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name {
  font-weight: 700; font-size: 14px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item__type {
  font-size: 11px; font-weight: 600; color: var(--text3);
  text-transform: capitalize;
}
.cart-item__controls {
  display: flex; align-items: center; gap: 4px;
}
.qty-btn {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--border2); background: var(--bg);
  color: var(--text); font-size: 16px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.qty-btn:hover { background: var(--bg3); border-color: var(--blue-bd); }
.cart-item__qty {
  font-size: 14px; font-weight: 800; color: var(--text);
  min-width: 24px; text-align: center;
}
.cart-item__price {
  font-weight: 800; font-size: 15px; color: var(--green-dark);
  white-space: nowrap; min-width: 70px; text-align: right;
}
.cart-item__remove {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid transparent; background: transparent;
  color: var(--text3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; flex-shrink: 0;
}
.cart-item__remove:hover { background: var(--red-bg); color: var(--red); border-color: rgba(229,80,62,.2); }

/* Checkout form side */
.checkout__form-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 24px;
  box-shadow: var(--shadow); position: sticky; top: 80px;
}
.checkout__form-title {
  font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 4px;
}
.checkout__form-sub {
  font-size: 13px; color: var(--text3); margin-bottom: 16px;
}
.checkout__fine {
  margin-top: 12px; font-size: 11px; color: var(--text3); line-height: 1.5; text-align: center;
}

/* Stripe pay button loading state (checkout.ejs) */
.pay-btn__spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: payBtnSpin .65s linear infinite;
  vertical-align: -3px;
  margin-right: 8px;
}
.pay-btn__spinner--solo {
  margin-right: 0;
  vertical-align: middle;
}
#placeOrderBtn:disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}
@keyframes payBtnSpin {
  to { transform: rotate(360deg); }
}

/* Contact method toggles */
.contact-toggles {
  display: flex; gap: 6px; margin-bottom: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 4px; background: var(--bg);
}
.contact-toggle {
  flex: 1; padding: 10px 8px; border-radius: var(--radius);
  border: none; background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--text2);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .15s; white-space: nowrap;
}
.contact-toggle:hover { color: var(--text); }
.contact-toggle.active {
  background: var(--surface); color: var(--green-dark);
  box-shadow: var(--shadow);
}

/* Contact field validation */
.field__error {
  font-size: 11px; font-weight: 600; color: var(--red);
  min-height: 16px; display: block;
}
.field__input.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-bg);
}

/* ===== ORDER SUCCESS STUB ===== */
.order-success {
  animation: paneIn .45s cubic-bezier(.22,1,.36,1) both;
}
.order-success__card {
  max-width: 520px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.order-success__icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--green-bg); border: 2px solid var(--green-bd);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
  animation: successPop .5s cubic-bezier(.22,1,.36,1) .1s both;
}
@keyframes successPop {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.order-success__title {
  font-size: 24px; font-weight: 900; color: var(--text);
}
.order-success__text {
  font-size: 14px; color: var(--text2); line-height: 1.6; max-width: 38ch;
}
.order-success__summary {
  width: 100%; margin: 8px 0;
}
.order-success__items {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 12px 16px;
  text-align: left;
}
.order-success__line {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; font-size: 13px; color: var(--text2);
}
.order-success__line + .order-success__line {
  border-top: 1px solid var(--border);
}
.order-success__line--total {
  font-weight: 800; font-size: 15px; color: var(--text);
  border-top: 2px solid var(--border) !important;
  padding-top: 10px; margin-top: 4px;
}
.order-success__line--total span:last-child { color: var(--green-dark); }
.order-success__note {
  font-size: 11px; color: var(--text3); margin-top: 4px;
  font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero__wrap { flex-direction: column; gap: 24px; }
  .checkout__grid { grid-template-columns: 1fr; }
  .checkout__form-wrap { position: static; }
}
@media (max-width: 640px) {
  .nav__link:not(.nav__link--accent):not(.nav__link--cart) { display: none; }
  .hero { padding: 32px 0 24px; }
  .offers-row { grid-template-columns: 1fr; gap: 12px; }
  .offer { padding: 24px 16px 16px; }
  .offer__new { font-size: 24px; }
  .shop-tabs { margin-bottom: 12px; }
  .acc-toolbar { gap: 8px; }
  .footer__links { flex-direction: column; gap: 24px; }
}

@media (min-width: 641px) {
  .footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 28px 48px;
  }
  .footer__left { grid-row: 1; }
  .footer__links { grid-row: 1; grid-column: 2; }
  .footer__bottom { grid-column: 1 / -1; }
}
