:root {
  --sun: #ffe14a;
  --hot: #ff2f6d;
  --mint: #5dffc2;
  --ink: #17141f;
  --paper: #fff6ea;
  --card: #ffffff;
  --muted: #5c5668;
  --line: rgba(23, 20, 31, 0.12);
  --shadow: 0 18px 40px rgba(23, 20, 31, 0.12);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --pad: clamp(1rem, 4vw, 3rem);
  --max: 1120px;
  --radius: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 47, 109, 0.16), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(93, 255, 194, 0.22), transparent 32%),
    radial-gradient(circle at 70% 70%, rgba(255, 225, 74, 0.28), transparent 40%),
    var(--paper);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.back-to-portfolio {
  position: fixed;
  top: 2.6rem;
  left: 0.75rem;
  z-index: 80;
  font-size: 0.75rem;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 246, 234, 0.9);
  border: 1px solid var(--line);
  opacity: 0.75;
}

.back-to-portfolio:hover {
  opacity: 1;
}

.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__track {
  display: inline-flex;
  gap: 2.5rem;
  padding: 0.55rem 0;
  animation: marquee 22s linear infinite;
}

.ticker__track span::after {
  content: "•";
  margin-left: 2.5rem;
  color: var(--hot);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  background: rgba(255, 246, 234, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.topbar__nav {
  display: none;
  gap: 1.25rem;
}

.topbar__nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
}

.topbar__nav a:hover {
  color: var(--ink);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cart-btn:hover {
  background: var(--sun);
  transform: translateY(-1px);
}

.cart-btn__count {
  min-width: 1.4rem;
  height: 1.4rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--hot);
  color: #fff;
  font-size: 0.75rem;
}

.hero {
  position: relative;
  min-height: min(92svh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: pop-in 0.85s ease both;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 246, 234, 0.94) 0%, rgba(255, 246, 234, 0.72) 42%, rgba(255, 246, 234, 0.15) 72%),
    linear-gradient(0deg, rgba(255, 225, 74, 0.35), transparent 45%);
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  padding: 3rem var(--pad) 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: fade-up 0.7s ease both;
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--hot);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 10ch;
}

.hero__lead {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__cta {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.hero__timer {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.hero__timer strong {
  font-family: var(--font-display);
  color: var(--hot);
  font-size: 1.15rem;
}

.btn-buy,
.btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--hot);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-buy:hover,
.btn-add:hover {
  background: var(--sun);
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-buy:active,
.btn-add:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-buy--wide {
  width: 100%;
}

.proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1rem var(--pad);
  border-block: 2px solid var(--ink);
  background: var(--mint);
  font-weight: 600;
}

.proof p {
  margin: 0;
}

.pulse {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 0 0 rgba(255, 47, 109, 0.55);
  animation: pulse 1.6s ease infinite;
  vertical-align: middle;
}

.catalog {
  padding: 3.5rem var(--pad) 2rem;
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 1.75rem;
}

.section-head h2,
.order h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

.grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.product {
  background: var(--card);
  border: 2px solid var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.product:hover {
  transform: translateY(-4px);
}

.product__media {
  position: relative;
  aspect-ratio: 1;
  background: #f2ece4;
  overflow: hidden;
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product:hover .product__media img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  z-index: 1;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.55rem;
  border: 2px solid var(--ink);
  background: var(--sun);
}

.badge--hot {
  left: auto;
  right: 0.75rem;
  background: var(--hot);
  color: #fff;
}

.badge--new {
  left: auto;
  right: 0.75rem;
  background: var(--mint);
}

.product__body {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.product__meta {
  margin: 0;
  color: var(--hot);
  font-size: 0.88rem;
  font-weight: 700;
}

.product__price {
  margin: 0.25rem 0 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.product__price s {
  color: var(--muted);
  font-size: 0.95rem;
}

.product__price strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.trust {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad) 3rem;
  display: grid;
  gap: 0.75rem;
}

.trust__item {
  border: 2px dashed var(--line);
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.55);
}

.trust__item strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}

.trust__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.order {
  padding: 3rem var(--pad) 4.5rem;
  background: var(--ink);
  color: #fff6ea;
}

.order__layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.order__intro p {
  color: rgba(255, 246, 234, 0.72);
  max-width: 40ch;
}

.order__perks {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.order__perks li {
  position: relative;
  padding-left: 1.2rem;
  font-weight: 600;
}

.order__perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--mint);
}

.checkout {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--sun);
  padding: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.checkout label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.checkout input,
.checkout textarea {
  width: 100%;
  border: 2px solid var(--ink);
  background: #fff;
  padding: 0.75rem 0.85rem;
  resize: vertical;
}

.checkout input:focus,
.checkout textarea:focus {
  outline: 3px solid var(--mint);
  outline-offset: 1px;
}

.checkout__summary {
  border: 2px dashed var(--line);
  padding: 0.85rem;
  background: rgba(255, 225, 74, 0.18);
  font-size: 0.95rem;
}

.checkout__summary p {
  margin: 0.2rem 0;
}

.checkout__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.checkout__success {
  margin: 0;
  font-weight: 700;
  color: #0b7a52;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--pad);
  border-top: 2px solid var(--ink);
  font-weight: 600;
}

.footer a {
  text-decoration: none;
  color: var(--hot);
}

.mini-cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(100%, 360px);
  height: 100%;
  background: var(--card);
  border-left: 2px solid var(--ink);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.mini-cart.is-open {
  transform: translateX(0);
}

.mini-cart__head,
.mini-cart__foot {
  padding: 1rem 1.1rem;
  border-bottom: 2px solid var(--line);
}

.mini-cart__foot {
  border-bottom: 0;
  border-top: 2px solid var(--line);
  margin-top: auto;
}

.mini-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-cart__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.mini-cart__close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.mini-cart__items {
  padding: 0.75rem 1.1rem;
  overflow: auto;
  flex: 1;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-line__name {
  font-weight: 700;
}

.cart-line__price {
  font-weight: 600;
}

.cart-line__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  grid-column: 1 / -1;
}

.cart-line__qty button {
  width: 1.8rem;
  height: 1.8rem;
  border: 2px solid var(--ink);
  background: var(--sun);
  font-weight: 700;
  cursor: pointer;
}

.cart-line__qty button[data-remove] {
  width: auto;
  height: auto;
  padding: 0.25rem 0.5rem;
  background: transparent;
  margin-left: 0.35rem;
  font-size: 0.85rem;
}

.mini-cart__total {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.mini-cart__save {
  margin: 0 0 0.85rem;
  color: var(--hot);
  font-weight: 700;
  min-height: 1.2em;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(23, 20, 31, 0.45);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 90;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--sun);
  font-weight: 700;
  padding: 0.75rem 1.1rem;
  border: 2px solid var(--hot);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 47, 109, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 47, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 47, 109, 0); }
}

@media (min-width: 720px) {
  .topbar__nav {
    display: flex;
  }

  .hero {
    align-items: center;
  }

  .hero__copy {
    padding: 4.5rem var(--pad);
  }

  .proof {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }

  .trust {
    grid-template-columns: repeat(3, 1fr);
  }

  .order__layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 2.5rem;
  }

  .checkout {
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .mini-cart {
    transition: none;
  }
}
