:root {
  --cream: #fff3c4;
  --yellow: #ffe58a;
  --sun: #ffd85e;
  --blue: #6d9ad1;
  --blue-deep: #3d6fa8;
  --ink: #26374d;
  --paper: rgba(255, 250, 226, 0.86);
  --line: rgba(61, 111, 168, 0.18);
  --shadow: 0 18px 48px rgba(61, 111, 168, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Baloo Bhaijaan 2", system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 232, 148, 0.35), rgba(255, 246, 210, 0.92)),
    url("images/back%20ground%20.jpeg") center top / 420px repeat;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: -80px 0 auto auto;
  width: 320px;
  height: 320px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(109, 154, 209, 0.34), transparent 68%);
  filter: blur(8px);
  transform: translateX(45%);
  animation: drift 8s ease-in-out infinite alternate;
}

.app {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 16px 108px;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-content: space-between;
  padding: 18px 0 26px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 70px 0 10px;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 247, 212, 0), rgba(255, 243, 196, 0.88)),
    url("images/logo%20%202.jpeg") center 32% / min(88vw, 430px) auto no-repeat;
  opacity: 0.95;
  transform-origin: center;
  animation: floatLogo 4.8s ease-in-out infinite;
}

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

.brand-mark {
  width: 78px;
  height: 78px;
  border: 2px solid rgba(109, 154, 209, 0.28);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.whatsapp-top,
.checkout a {
  color: #fff;
  text-decoration: none;
  background: var(--blue-deep);
  box-shadow: 0 12px 24px rgba(61, 111, 168, 0.26);
}

.whatsapp-top {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 999px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
}

.hero-copy {
  margin-top: auto;
  padding: 0 2px 24px;
}

.drop-label,
.section-kicker {
  margin: 0 0 4px;
  color: var(--blue-deep);
  font-size: 15px;
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 340px;
  font-size: clamp(42px, 12.5vw, 58px);
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero-copy p:last-child {
  max-width: 320px;
  margin-top: 18px;
  color: rgba(38, 55, 77, 0.78);
  font-size: 18px;
  line-height: 1.45;
}

.hero-card {
  justify-self: end;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  animation: bob 3.4s ease-in-out infinite;
}

.hero-card span,
.hero-card small {
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 800;
}

.hero-card strong {
  color: var(--blue-deep);
  font-family: Inter, system-ui, sans-serif;
  font-size: 42px;
  line-height: 0.95;
}

.selector {
  display: grid;
  gap: 14px;
  margin-top: -18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

h2 {
  font-size: 32px;
  line-height: 1;
}

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

.size-chip {
  min-height: 42px;
  border: 1px solid rgba(61, 111, 168, 0.2);
  border-radius: 16px;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.56);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.size-chip[aria-checked="true"] {
  color: #fff;
  background: var(--blue);
  transform: translateY(-2px);
}

.catalog {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.product {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 252, 236, 0.9);
  box-shadow: var(--shadow);
}

.product::before {
  content: "";
  position: absolute;
  inset: -80px auto auto -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 216, 94, 0.55);
}

.image-stage {
  position: relative;
  height: clamp(330px, 88vw, 460px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--yellow), #fff4c6);
}

.image-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 280ms ease, transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.image-stage .back {
  opacity: 0;
  transform: scale(1.05) rotate(1deg);
}

.product.show-back .image-stage .front {
  opacity: 0;
  transform: scale(1.05) rotate(-1deg);
}

.product.show-back .image-stage .back {
  opacity: 1;
  transform: scale(1);
}

.product-info {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.product-title h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.price {
  color: var(--blue-deep);
  font-family: Inter, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.actions button {
  min-height: 46px;
  border: 0;
  border-radius: 18px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.flip-btn {
  color: var(--blue-deep);
  background: rgba(109, 154, 209, 0.14);
}

.pick-btn {
  color: #fff;
  background: var(--blue-deep);
}

.product.active {
  outline: 3px solid rgba(109, 154, 209, 0.52);
}

.checkout {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 16px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  background: rgba(255, 250, 226, 0.9);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.checkout div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.checkout span {
  color: var(--blue-deep);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout strong {
  font-size: 24px;
  line-height: 1;
}

.checkout a {
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

@keyframes floatLogo {
  from {
    transform: translateY(-8px) rotate(-1deg);
  }
  to {
    transform: translateY(10px) rotate(1deg);
  }
}

@keyframes bob {
  50% {
    transform: translateY(-8px) rotate(3deg);
  }
}

@keyframes drift {
  to {
    transform: translate3d(-34px, 58px, 0) translateX(45%);
  }
}

@media (min-width: 700px) {
  body {
    background-size: 520px;
  }

  .app,
  .checkout {
    border-inline: 1px solid rgba(61, 111, 168, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
