:root {
  --kiddos-red: #e53935;
  --cream: #fff9f3;
  --charcoal: #2c2f33;
  --gold: #ffd166;
  --glass-bg: rgba(255, 255, 255, 0.6);
}

/* SECTION & CARD */
.bestseller-hero {
  background: linear-gradient(
    180deg,
    rgba(255, 245, 238, 0.9) 0%,
    rgba(255, 250, 245, 0.95) 40%,
    rgba(255, 255, 255, 1) 100%
  );
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(10, 10, 10, 0.06);
  position: relative;
  overflow: visible;
}
.bestseller-hero::before,
.bestseller-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.22;
}
.bestseller-hero::before {
  width: 360px;
  height: 360px;
  right: -80px;
  top: -80px;
  background: radial-gradient(
    circle at center,
    rgba(229, 83, 83, 0.35),
    transparent 50%
  );
}
.bestseller-hero::after {
  width: 280px;
  height: 280px;
  left: -60px;
  bottom: -60px;
  background: radial-gradient(
    circle at center,
    rgba(255, 209, 102, 0.25),
    transparent 50%
  );
}

.bestseller-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px) saturate(120%);
  border-radius: 18px;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  position: relative;
  overflow: visible;
  transform-origin: center;
  opacity: 0;
  transform: translateY(8px);
  animation: entrance 520ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards 120ms;
}
@keyframes entrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 768px) {
  .bestseller-card {
    grid-template-columns: 48% 52%;
    gap: 2rem;
    padding: 2rem;
  }
}

/* ribbon */
.ribbon {
  position: absolute;
  left: 1rem;
  top: -12px;
  transform: rotate(-6deg);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #ffd166, #f4b400);
  color: #2a2a2a;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(20, 20, 20, 0.12);
  z-index: 30;
}

/* visual stage */
.visual-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-orb {
  width: 400px;
  height: 400px;
  border-radius: 999px;
  /*background: radial-gradient(circle, #fff 0%, #fff0 40%);*/
  background-color: #ff7a6f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(33, 33, 33, 0.08);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.product-orb img {
  width: 350px;
  height: 350px;
  object-fit: contain;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.particles {
  position: absolute;
  inset: -8% -6% auto -6%;
  height: 40%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.6;
}
.particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  filter: blur(0.6px);
  animation: particleUp linear infinite;
}
@keyframes particleUp {
  from {
    transform: translateY(18px) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  to {
    transform: translateY(-36px) scale(1);
    opacity: 0;
  }
}

/* product content */
.product-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.05;
  margin: 0;
}
.product-sub {
  color: var(--kiddos-red);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.desc {
  color: rgba(44, 47, 51, 0.8);
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--charcoal);
}
.stars {
  display: flex;
  gap: 0.18rem;
  align-items: center;
}

.pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}
.pill-primary {
  background: var(--kiddos-red);
  color: white;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(229, 57, 53, 0.12);
}
.pill-ghost {
  background: white;
  border: 1px solid rgba(44, 47, 51, 0.06);
  color: var(--charcoal);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

.stock-wrap {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.stock-bar {
  background: rgba(44, 47, 51, 0.07);
  height: 8px;
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}
.stock-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--kiddos-red), #ff7a6f);
  width: 70%;
  transition: width 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}
.btn-primary {
  background: var(--kiddos-red);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(229, 57, 53, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-secondary {
  background: transparent;
  border: 1px solid rgba(44, 47, 51, 0.08);
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  color: var(--charcoal);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:active {
  transform: translateY(1px) scale(0.995);
}
.btn-primary:focus,
.btn-secondary:focus {
  outline: 3px solid rgba(229, 57, 53, 0.12);
  outline-offset: 2px;
}

/* SEE MORE button area */
.see-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  opacity: 0;
  transform: translateY(8px);
  animation: entrance 520ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards 240ms;
}
.see-more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--kiddos-red);
  border: 2px solid rgba(44, 47, 51, 0.06);
  color: var(--charcoal);
  /*transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;*/
  box-shadow: 0 6px 18px rgba(10, 10, 10, 0.04);
}
.see-more .chev {
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* Hover effects only on devices that support hover */
@media (hover: hover) and (pointer: fine) {
  .see-more:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(10, 10, 10, 0.12);
    background: linear-gradient(
      90deg,
      rgba(229, 57, 53, 0.06),
      rgba(255, 255, 255, 0.02)
    );
  }
  .see-more:hover .chev {
    transform: translateX(6px);
  }
  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(229, 57, 53, 0.18);
  }
  .product-orb:hover {
    transform: translateY(-6px) scale(1.02);
  }
}

/* mobile adjustments */
@media (max-width: 767.98px) {
  .bestseller-card {
    padding: 1rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .product-orb {
    width: 180px;
    height: 180px;
  }
  .product-orb img {
    width: 150px;
    height: 150px;
  }
  .btn-primary {
    flex: 1;
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }
  .btn-secondary {
    display: none;
  }
  .ribbon {
    left: 0.5rem;
    top: -10px;
    transform: rotate(-4deg);
    font-size: 0.86rem;
    padding: 0.4rem 0.7rem;
  }
  .particles span {
    display: none;
  } /* reduce work on mobile */
  .see-more {
    width: 100%;
    justify-content: center;
    padding: 0.85rem;
    border-radius: 12px;
  }
}

/* accessibility preference */
@media (prefers-reduced-motion: reduce) {
  .product-orb,
  .product-orb img,
  .stock-fill,
  .bestseller-card,
  .see-more-wrap {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  .particles span {
    display: none;
  }
}
