:root {
  --green: #0f766e;
  --ink: #13201d;
  --muted: #64756f;
  --cream: #fff9ec;
  --line: #dbe7df;
  --orange: #f59e0b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(ellipse 32rem 24rem at var(--cursor-x, 18%) var(--cursor-y, 16%), rgba(15, 118, 110, 0.18), transparent 72%),
    radial-gradient(ellipse 28rem 22rem at 88% 14%, rgba(245, 158, 11, 0.22), transparent 72%),
    linear-gradient(135deg, #fff9ec, #ecfdf5 46%, #fff7ed);
  color: var(--ink);
  overflow-x: hidden;
  position: relative;
}

body::before {
  animation: marketFloat 16s ease-in-out infinite alternate;
  background:
    radial-gradient(circle, rgba(15, 118, 110, 0.16) 0 7px, transparent 8px),
    radial-gradient(circle, rgba(245, 158, 11, 0.18) 0 6px, transparent 7px);
  background-position: 0 0, 32px 36px;
  background-size: 84px 84px;
  content: "";
  inset: 0;
  mask-image: radial-gradient(ellipse 84% 70% at 50% 34%, black 12%, transparent 86%);
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

body::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  content: "";
  inset: 0;
  opacity: 0.7;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.shell {
  width: min(1150px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  align-items: stretch;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 0.96;
  margin: 0 0 16px;
}

p { color: var(--muted); }

.total-card,
.controls,
.product,
.basket {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(19, 32, 29, 0.08);
}

@keyframes marketFloat {
  from { transform: translate3d(-1%, 0, 0) scale(1); }
  to { transform: translate3d(1%, -1%, 0) scale(1.03); }
}

.total-card {
  display: grid;
  align-content: center;
  padding: 24px;
}

.total-card span { color: var(--muted); font-weight: 800; }
.total-card strong { color: var(--green); font-size: 2.8rem; }

.controls {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 12px;
  margin: 24px 0;
  padding: 14px;
}

label { display: grid; gap: 8px; font-weight: 800; }

input,
select,
button {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  padding: 12px 14px;
}

button {
  background: var(--green);
  border: 0;
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.product {
  padding: 18px;
}

.product strong {
  display: block;
  font-size: 1.5rem;
  margin: 8px 0 14px;
}

.basket {
  align-self: start;
  padding: 18px;
  position: sticky;
  top: 18px;
}

.basket-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.basket-row button {
  background: #1f2937;
  padding: 8px 10px;
}

@media (max-width: 820px) {
  .hero,
  .controls,
  .layout {
    grid-template-columns: 1fr;
  }
}
