/* ==========================================================================
   AutomatyProDeti.cz — Playful Tactile Gachapon & ToyStation E-Shop Theme
   ========================================================================== */

:root {
  --bg: #fffbf2;
  --bg-lilac: #f5f0ff;
  --bg-sky: #eef6ff;
  --bg-mint: #ebfcf6;
  --bg-peach: #fff2ec;
  --surface: #ffffff;

  --ink: #1e2038;
  --ink-muted: #565c78;
  --border: #e7e4f2;
  --outline: #1e2038;

  --coral: #ff4d6d;
  --coral-hover: #f0385b;
  --yellow: #ffc300;
  --yellow-soft: #fff6cc;
  --sky: #3a86ff;
  --sky-soft: #e6f0ff;
  --mint: #06d6a0;
  --mint-soft: #e3fbf4;
  --lilac: #8338ec;
  --lilac-soft: #f2e8ff;
  --orange: #ff7b00;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-pop: 0 5px 0 var(--outline);
  --shadow-pop-sm: 0 3px 0 var(--outline);
  --shadow-soft: 0 14px 36px rgba(30, 32, 56, 0.09);
  --shadow-lg: 0 24px 60px rgba(30, 32, 56, 0.16);

  --font-display: 'Fredoka', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: min(1220px, calc(100% - 32px));
  margin-inline: auto;
}

/* ======================== TOP BAR ======================== */
.topbar {
  background: linear-gradient(90deg, #1e2038 0%, #2d2654 50%, #1e2038 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 0;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__right a:hover {
  color: var(--yellow);
}

.topbar__sep {
  opacity: 0.35;
}

.dot-live {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 4px;
  box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.3);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.25);
    opacity: 0.75;
  }
}

/* ======================== HEADER ======================== */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 251, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--outline);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand__mark {
  transform: rotate(-14deg) scale(1.1);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}

.brand__tld {
  color: var(--coral);
}

.brand__text small {
  font-size: 0.72rem;
  color: var(--lilac);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav a {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  transition: background 0.18s, color 0.18s, transform 0.15s;
}

.nav a:hover {
  background: var(--yellow-soft);
  color: var(--ink);
  transform: translateY(-1px);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 2px solid var(--outline);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  width: 215px;
  box-shadow: 0 3px 0 rgba(30, 32, 56, 0.12);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
  border-color: var(--sky);
  box-shadow: 0 3px 0 var(--sky);
}

.search-box svg {
  color: var(--ink-muted);
  flex-shrink: 0;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--outline);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow-pop-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s;
}

.cart-btn:hover {
  background: #ffd036;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--outline);
}

.cart-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--outline);
}

.cart-btn__badge {
  background: var(--coral);
  color: #fff;
  border: 1.5px solid var(--outline);
  min-width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 6px;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 2px solid var(--outline);
  background: var(--surface);
  box-shadow: var(--shadow-pop-sm);
  cursor: pointer;
  padding: 0 10px;
}

.menu-btn span {
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px 18px;
  border-top: 2px solid var(--outline);
  background: var(--surface);
}

.mobile-nav[hidden] {
  display: none;
}

@media (min-width: 1025px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav a {
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: var(--yellow-soft);
}

/* ======================== TACTILE POP BUTTONS ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--outline);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.96rem;
  padding: 11px 20px;
  cursor: pointer;
  box-shadow: var(--shadow-pop-sm);
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.12s ease, background 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--outline);
}

.btn--lg {
  padding: 14px 26px;
  font-size: 1.05rem;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background: var(--coral);
  color: #fff;
}

.btn--primary:hover {
  background: var(--coral-hover);
}

.btn--secondary {
  background: var(--sky);
  color: #fff;
}

.btn--secondary:hover {
  background: #2776f5;
}

.btn--fun {
  background: var(--yellow);
  color: var(--ink);
}

.btn--fun:hover {
  background: #ffd133;
}

.btn--outline {
  background: var(--surface);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--bg-lilac);
}

/* ======================== HERO SECTION ======================== */
.hero {
  position: relative;
  padding: 52px 0 68px;
  background-color: #fff8e8;
  background-image:
    radial-gradient(circle at 15% 22%, rgba(255, 77, 109, 0.16) 0%, transparent 38%),
    radial-gradient(circle at 88% 18%, rgba(58, 134, 255, 0.17) 0%, transparent 40%),
    radial-gradient(circle at 75% 88%, rgba(6, 214, 160, 0.16) 0%, transparent 38%),
    radial-gradient(rgba(30, 32, 56, 0.06) 1.5px, transparent 1.5px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 26px 26px;
  overflow: hidden;
}

/* Decorative floating CSS 3D toy capsules */
.float-capsule {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2.5px solid var(--outline);
  pointer-events: none;
  z-index: 1;
  box-shadow: inset -6px -6px 0 rgba(0, 0, 0, 0.09), 0 8px 16px rgba(30, 32, 56, 0.12);
  animation: floatBob 6s ease-in-out infinite;
}

.float-capsule::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, transparent 47%, var(--outline) 47%, var(--outline) 54%, rgba(255, 255, 255, 0.88) 54%);
}

.float-capsule::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 11px;
  width: 14px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  transform: rotate(-28deg);
}

.float-capsule--1 {
  top: 32px;
  left: 4%;
  background: var(--coral);
  animation-delay: 0s;
}

.float-capsule--2 {
  bottom: 48px;
  left: 44%;
  background: var(--mint);
  width: 42px;
  height: 42px;
  animation-delay: -2s;
}

.float-capsule--3 {
  top: 44px;
  right: 4%;
  background: var(--yellow);
  width: 48px;
  height: 48px;
  animation-delay: -3.5s;
}

.float-capsule--4 {
  bottom: 32px;
  right: 3%;
  background: var(--lilac);
  width: 38px;
  height: 38px;
  animation-delay: -1.2s;
}

@keyframes floatBob {

  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }

  50% {
    transform: translateY(-14px) rotate(10deg);
  }
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 2px solid var(--outline);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--lilac);
  box-shadow: var(--shadow-pop-sm);
}

.pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.6vw, 3.8rem);
  line-height: 1.05;
  margin: 20px 0 16px;
  letter-spacing: -0.015em;
}

.hero h1 .highlight {
  display: inline-block;
  color: var(--coral);
  background: var(--yellow);
  padding: 2px 14px 4px;
  border-radius: 18px;
  border: 2.5px solid var(--outline);
  box-shadow: 0 4px 0 var(--outline);
  transform: rotate(-1.5deg);
}

.hero__lead {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink-muted);
  max-width: 55ch;
  margin: 0 0 26px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: var(--surface);
  border: 2px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  box-shadow: var(--shadow-pop-sm);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

.stat:nth-child(1) strong {
  color: var(--coral);
}

.stat:nth-child(2) strong {
  color: var(--sky);
}

.stat:nth-child(3) strong {
  color: #05a87d;
}

.stat span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.hero-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 3px solid var(--outline);
  box-shadow: 10px 10px 0 var(--yellow), 10px 10px 0 3px var(--outline);
  transform: rotate(1deg);
  transition: transform 0.3s ease;
}

.hero-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.hero-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 12px;
  border-radius: calc(var(--radius-lg) - 10px);
  background: #ffffff;
}

.hero-card__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 2.5px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-pop-sm);
}

.hero-card__badge--top {
  top: 20px;
  left: -22px;
  background: var(--yellow-soft);
  transform: rotate(-3deg);
}

.hero-card__badge--bottom {
  bottom: 20px;
  right: -18px;
  background: var(--mint-soft);
  transform: rotate(2deg);
}

.badge-emoji {
  font-size: 1.5rem;
}

.hero-card__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.94rem;
}

.hero-card__badge small {
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ======================== MARQUEE TICKER ======================== */
.marquee {
  background: var(--ink);
  color: #fff;
  border-top: 2.5px solid var(--outline);
  border-bottom: 2.5px solid var(--outline);
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  gap: 32px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  animation: marqueeScroll 28s linear infinite;
}

.marquee__track:hover {
  animation-play-state: paused;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.marquee__dot {
  color: var(--yellow);
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ======================== TRUST STRIP ======================== */
.trust-strip {
  background: var(--surface);
  padding: 26px 0;
  border-bottom: 2px solid var(--border);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--bg);
  transition: transform 0.18s ease, border-color 0.18s;
}

.trust-item:hover {
  transform: translateY(-2px);
  border-color: var(--outline);
}

.trust-item__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 2px solid var(--outline);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 3px 0 var(--outline);
}

.trust-item:nth-child(1) .trust-item__icon {
  background: var(--yellow-soft);
}

.trust-item:nth-child(2) .trust-item__icon {
  background: var(--sky-soft);
}

.trust-item:nth-child(3) .trust-item__icon {
  background: var(--mint-soft);
}

.trust-item:nth-child(4) .trust-item__icon {
  background: var(--lilac-soft);
}

.trust-item strong {
  display: block;
  font-size: 0.92rem;
}

.trust-item span {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 600;
}

/* ======================== SECTIONS ======================== */
.section {
  padding: 72px 0;
  position: relative;
}

.section--tinted {
  background-color: var(--bg-sky);
  background-image: radial-gradient(rgba(58, 134, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  border-top: 2px solid var(--outline);
  border-bottom: 2px solid var(--outline);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--lilac-soft);
  color: var(--lilac);
  border: 1.5px solid var(--lilac);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.section-head h2,
.roi-card h2,
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  margin: 0;
  line-height: 1.12;
}

.section-subtitle {
  max-width: 52ch;
  color: var(--ink-muted);
  font-weight: 500;
  margin: 0;
}

/* VAT Mode Toggle */
.price-mode-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 2px solid var(--outline);
  border-radius: var(--radius-pill);
  padding: 4px;
  box-shadow: var(--shadow-pop-sm);
}

.mode-btn {
  border: none;
  background: transparent;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink-muted);
  cursor: pointer;
}

.mode-btn.is-active {
  background: var(--ink);
  color: var(--yellow);
}

/* ======================== CATALOG CONTROLS ======================== */
.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.cat-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--outline);
  background: var(--surface);
  color: var(--ink);
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: var(--shadow-pop-sm);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.15s;
}

.cat-tab:hover {
  transform: translateY(-2px);
  background: var(--yellow-soft);
}

.cat-tab.is-active {
  background: var(--sky);
  color: #fff;
  box-shadow: var(--shadow-pop);
}

.tab-count {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(30, 32, 56, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.cat-tab.is-active .tab-count {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.catalog-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--outline);
  transform: translateY(-1px);
}

.filter-pill.is-active {
  background: var(--coral);
  border-color: var(--outline);
  color: #fff;
  box-shadow: 0 3px 0 var(--outline);
}

.sort-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.sort-select select {
  border: 2px solid var(--outline);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

/* ======================== COLLECTIBLE PRODUCT CARDS ======================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 2.5px solid var(--outline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 7px 0 var(--outline);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 0 var(--outline);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  overflow: hidden;
  border-bottom: 2.5px solid var(--outline);
  cursor: pointer;
  padding: 12px;
}

/* Alternating playful pastel glow strips behind cards */
.product-card:nth-child(5n + 1) .product-card__media {
  background: radial-gradient(circle at 50% 50%, #ffffff 55%, #ffe9ef 100%);
}

.product-card:nth-child(5n + 2) .product-card__media {
  background: radial-gradient(circle at 50% 50%, #ffffff 55%, #e6f2ff 100%);
}

.product-card:nth-child(5n + 3) .product-card__media {
  background: radial-gradient(circle at 50% 50%, #ffffff 55%, #e4fcf4 100%);
}

.product-card:nth-child(5n + 4) .product-card__media {
  background: radial-gradient(circle at 50% 50%, #ffffff 55%, #fff6d6 100%);
}

.product-card:nth-child(5n + 5) .product-card__media {
  background: radial-gradient(circle at 50% 50%, #ffffff 55%, #f3eaff 100%);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-card__media img {
  transform: scale(1.06) rotate(-1deg);
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.p-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--outline);
  letter-spacing: 0.02em;
}

.p-badge--hot {
  background: var(--coral);
  color: #fff;
}

.p-badge--new {
  background: var(--yellow);
  color: var(--ink);
}

.p-badge--size {
  background: var(--surface);
  color: var(--ink);
}

.product-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.stock-pill {
  color: #049a73;
  background: var(--mint-soft);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-weight: 800;
}

.product-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 8px;
  line-height: 1.22;
  cursor: pointer;
}

.product-card__title:hover {
  color: var(--coral);
}

.product-card__desc {
  font-size: 0.87rem;
  color: var(--ink-muted);
  margin: 0 0 16px;
  flex: 1;
}

.product-card__pricing {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  padding-top: 12px;
  border-top: 2px dashed var(--border);
  margin-bottom: 14px;
}

.price-main {
  font-family: var(--font-display);
  font-size: 1.48rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.price-sub {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-top: 2px;
}

.price-unit {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--lilac);
  background: var(--lilac-soft);
  border: 1.5px solid rgba(131, 56, 236, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.product-card__actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
}

.empty-state {
  text-align: center;
  padding: 56px 20px;
  background: var(--surface);
  border: 2.5px dashed var(--outline);
  border-radius: var(--radius-lg);
}

.empty-state__icon {
  font-size: 2.8rem;
  margin-bottom: 8px;
}

/* ======================== 4-COLOR TOYSTATION SHOWCASE ======================== */
.color-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.color-card {
  background: var(--surface);
  border: 2.5px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-pop-sm);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}

.color-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 9px 0 var(--outline);
}

.color-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  padding: 6px;
}

.color-card__pill {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--outline);
}

.color-card--blue .color-card__pill { background: #e3f0ff; color: #1956b8; }
.color-card--green .color-card__pill { background: #e1faee; color: #057a55; }
.color-card--orange .color-card__pill { background: #fff0df; color: #c75100; }
.color-card--pink .color-card__pill { background: #ffe6f0; color: #c9186b; }

@media (max-width: 900px) {
  .color-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ======================== COMPARISON TABLE ======================== */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 2.5px solid var(--outline);
  box-shadow: 0 8px 0 var(--outline);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.compare-table th,
.compare-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1.5px solid var(--border);
  font-size: 0.92rem;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-size: 1.05rem;
  background: var(--yellow-soft);
  border-bottom: 2.5px solid var(--outline);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .is-featured {
  background: #fff6f8;
}

.mini-badge {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--coral);
  color: #fff;
  border: 1.5px solid var(--outline);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  vertical-align: middle;
}

/* ======================== ARCADE ROI CALCULATOR ======================== */
.roi-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  background: var(--surface);
  border: 3px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 10px 10px 0 var(--mint), 10px 10px 0 3px var(--outline);
}

.roi-card p {
  color: var(--ink-muted);
  margin: 10px 0 24px;
}

.slider-group {
  margin-bottom: 22px;
}

.slider-group__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.94rem;
}

.slider-group__head strong {
  font-family: var(--font-display);
  color: var(--coral);
  font-size: 1.05rem;
}

.slider-group input[type='range'] {
  width: 100%;
  accent-color: var(--coral);
  height: 8px;
  cursor: pointer;
}

.coin-toggle {
  display: inline-flex;
  gap: 10px;
}

.coin-btn {
  border: 2px solid var(--outline);
  background: var(--surface);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-pop-sm);
}

.coin-btn.is-active {
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-2px);
}

.roi-card__results {
  background: linear-gradient(145deg, #1e2038 0%, #312361 100%);
  color: #fff;
  border: 2.5px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.roi-metric span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.76);
}

.roi-metric strong {
  font-family: var(--font-display);
  font-size: 1.65rem;
}

.roi-metric--primary strong {
  font-size: 2.75rem;
  color: var(--yellow);
  line-height: 1.08;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

.roi-metric--primary small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.roi-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.2);
}

.roi-note {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.65) !important;
  margin: 0 !important;
}

/* ======================== CONTACT & STEPS ======================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 26px;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 2px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-pop-sm);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--outline);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-item:nth-child(2) .step-num {
  background: var(--mint);
}

.step-item:nth-child(3) .step-num {
  background: var(--coral);
  color: #fff;
}

.step-item p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.inquiry-form {
  background: var(--surface);
  border: 2.5px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 8px 0 var(--outline);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inquiry-form h3 {
  font-family: var(--font-display);
  margin: 0 0 4px;
  font-size: 1.45rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

input[type='text'],
input[type='email'],
input[type='tel'],
select,
textarea {
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sky);
  background: var(--surface);
}

.form-feedback {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid var(--outline);
  background: var(--mint-soft);
  color: #056b52;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ======================== FOOTER ======================== */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 58px 0 28px;
  border-top: 3px solid var(--outline);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1.5px dashed rgba(255, 255, 255, 0.18);
}

.brand--footer strong {
  color: #fff;
}

.brand--footer small {
  color: var(--yellow);
}

.footer__desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 12px;
  max-width: 34ch;
}

.footer h4 {
  font-family: var(--font-display);
  color: var(--yellow);
  margin: 0 0 12px;
  font-size: 1.02rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

.footer a:hover {
  color: var(--mint);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.56);
}

/* ======================== MODALS & CART DRAWER ======================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 32, 56, 0.66);
  backdrop-filter: blur(5px);
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop[hidden],
.drawer-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  background: var(--surface);
  border: 3px solid var(--outline);
  border-radius: var(--radius-lg);
  width: min(860px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 14px 0 var(--outline);
  animation: modalPop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal--checkout {
  width: min(640px, 100%);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--outline);
  background: var(--yellow-soft);
  font-weight: 800;
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
}

.modal__close:hover {
  background: var(--coral);
  color: #fff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.detail-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 14px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 2.5px solid var(--outline);
}

.detail-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 6px 0 10px;
  line-height: 1.18;
}

.detail-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.86rem;
}

.detail-specs td {
  padding: 8px 0;
  border-bottom: 1.5px solid var(--border);
}

.detail-specs td:first-child {
  color: var(--ink-muted);
  width: 44%;
}

.tiers-box {
  background: var(--yellow-soft);
  border: 2px solid var(--outline);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 14px 0;
  font-size: 0.84rem;
}

.tiers-box strong {
  display: block;
  margin-bottom: 6px;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tier-chip {
  background: var(--surface);
  border: 1.5px solid var(--outline);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
}

.detail-buy {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--outline);
  border-radius: var(--radius-pill);
  background: var(--surface);
  overflow: hidden;
}

.qty-control button {
  width: 34px;
  height: 38px;
  border: none;
  background: transparent;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}

.qty-control button:hover {
  background: var(--yellow-soft);
}

.qty-control span {
  min-width: 30px;
  text-align: center;
  font-weight: 800;
  font-size: 0.92rem;
}

/* Cart Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 32, 56, 0.58);
  backdrop-filter: blur(4px);
  z-index: 70;
  display: flex;
  justify-content: flex-end;
}

.cart-drawer {
  width: min(440px, 100%);
  height: 100%;
  background: var(--surface);
  border-left: 3px solid var(--outline);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.cart-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--yellow-soft);
  border-bottom: 2.5px solid var(--outline);
}

.cart-drawer__head h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.35rem;
}

.icon-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--outline);
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
}

.shipping-bar {
  padding: 12px 20px;
  background: var(--bg-sky);
  border-bottom: 2px solid var(--border);
  font-size: 0.82rem;
}

.shipping-bar p {
  margin: 0 0 8px;
}

.shipping-bar__track {
  height: 10px;
  background: #dce7ff;
  border: 1.5px solid var(--outline);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.shipping-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mint) 0%, var(--sky) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.25s ease;
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--ink-muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1.5px dashed var(--border);
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  border-radius: 12px;
  border: 2px solid var(--outline);
}

.cart-item__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.cart-item__title {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
}

.cart-item__remove {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.9rem;
}

.cart-item__remove:hover {
  color: var(--coral);
}

.cart-item__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.cart-drawer__foot {
  padding: 18px 20px;
  border-top: 2.5px solid var(--outline);
  background: var(--bg);
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
}

.cart-summary__row--total {
  padding-top: 8px;
  border-top: 2px dashed var(--border);
  font-family: var(--font-display);
  font-size: 1.18rem;
}

/* Checkout */
.checkout-lead {
  color: var(--ink-muted);
  margin: 6px 0 18px;
  font-size: 0.92rem;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid var(--outline);
  background: var(--yellow-soft);
  font-size: 1.02rem;
}

.order-success {
  text-align: center;
  padding: 20px 10px;
}

.order-success__icon {
  font-size: 3.4rem;
  margin-bottom: 8px;
}

/* ======================== TOASTS & CONFETTI ======================== */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--yellow);
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(30, 32, 56, 0.25);
  animation: toastIn 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.confetti-dot {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 120;
  animation: confettiFly 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes confettiFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.4);
  }
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .hero__grid,
  .roi-card,
  .contact-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card {
    transform: none;
  }

  .hero-card__badge--top {
    left: 10px;
    top: 10px;
  }

  .hero-card__badge--bottom {
    right: 10px;
    bottom: 10px;
  }

  .float-capsule {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar__left span:nth-child(n + 2) {
    display: none;
  }

  .search-box {
    display: none;
  }

  .cart-btn__label {
    display: none;
  }

  .product-grid,
  .trust-strip__grid,
  .footer__grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }

  .roi-card {
    padding: 22px;
  }
}