:root {
  --ink: #262626;
  --muted: #626262;
  --line: #d8d4cf;
  --paper: #fbfaf8;
  --surface: #ffffff;
  --clay: #9d5f4b;
  --sage: #677865;
  --violet: #6f58a8;
  --violet-dark: #5d4895;
  --blue: #2f5f9f;
  --shadow: 0 18px 50px rgba(36, 31, 27, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(251, 250, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.main-nav a,
.primary-link {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--clay);
  border-radius: 50%;
}

.main-nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--ink);
}

.cart-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--surface);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
}

.cart-chip strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(36px, 7vw, 92px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  color: #fff;
  background: var(--clay);
  border-radius: 4px;
  font-weight: 800;
}

.hero-still {
  position: relative;
  min-height: 440px;
  border-left: 1px solid var(--line);
}

.plate-shape,
.cup-shape,
.bowl-shape {
  position: absolute;
  box-shadow: var(--shadow);
}

.plate-shape {
  right: 4%;
  top: 7%;
  width: min(74%, 430px);
  aspect-ratio: 1;
  background: radial-gradient(circle, #fdfcf9 0 32%, #d7e0d1 33% 54%, #8b9b83 55% 57%, #f7f0e8 58%);
  border-radius: 50%;
}

.cup-shape {
  left: 8%;
  bottom: 10%;
  width: min(52%, 260px);
  aspect-ratio: 1.1 / 1;
  background: linear-gradient(135deg, #fff 0 28%, #dccbc0 29% 100%);
  border: 12px solid #94614e;
  border-radius: 26px 26px 70px 70px;
}

.bowl-shape {
  right: 8%;
  bottom: 3%;
  width: min(50%, 300px);
  aspect-ratio: 1.55 / 1;
  background: radial-gradient(ellipse at top, #f7fbf7 0 32%, #5f7885 33% 56%, #2f5f6f 57%);
  border-radius: 12px 12px 150px 150px;
}

.shop-section,
.cart-section {
  padding: clamp(42px, 7vw, 88px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-art {
  display: grid;
  min-height: 210px;
  place-items: center;
  overflow: hidden;
  background: #f3efea;
  border-radius: 6px;
}

.product-art img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  display: block;
}

.product-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.add-button,
.checkout-button,
.secondary-button,
.outline-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  font-weight: 800;
}

.add-button,
.checkout-button {
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: start;
}

.cart-items,
.cart-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-empty {
  margin: 0;
  padding: 24px;
  color: var(--muted);
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line h3 {
  margin: 0 0 4px;
}

.quantity-controls {
  display: inline-grid;
  grid-template-columns: 36px 38px 36px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.quantity-controls button {
  width: 36px;
  height: 36px;
  background: #fff;
  border: 0;
}

.quantity-controls span {
  text-align: center;
}

.remove-button {
  min-height: 36px;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.cart-summary {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.total-row {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
}

.checkout-message {
  min-height: 22px;
  margin: 0;
  color: var(--sage);
  font-weight: 700;
}

.cookie-backdrop,
.details-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 17, 17, 0.16);
}

.cookie-panel {
  position: relative;
  width: min(100%, 760px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 36px 34px 52px;
  color: #686868;
  background: #fff;
  border: 2px solid #8d8d96;
  box-shadow: 0 0 0 1px #d1d1d1, var(--shadow);
}

.cookie-panel h2,
.details-panel h2 {
  margin: 0 42px 18px 0;
  color: #676767;
  font-size: 1.55rem;
}

.cookie-copy {
  font-size: 0.96rem;
  line-height: 1.5;
}

.cookie-copy a {
  color: #345aa8;
  font-weight: 800;
}

.cookie-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  color: #575757;
  background: transparent;
  border: 0;
  font-size: 2rem;
  line-height: 1;
}

.cookie-options {
  display: grid;
  gap: 14px;
  max-height: 196px;
  overflow: auto;
  margin: 18px 0 28px;
  padding: 18px;
  background: #f7f7f9;
  border-radius: 8px;
  box-shadow: inset -12px 0 0 rgba(0, 0, 0, 0.06), 0 2px 12px rgba(0, 0, 0, 0.08);
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  font-weight: 800;
}

.cookie-option input {
  width: 22px;
  height: 22px;
  accent-color: #7e9bd0;
}

.cookie-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.cookie-actions-right {
  display: flex;
  gap: 18px;
}

.outline-button {
  min-width: 160px;
  color: var(--violet-dark);
  background: #fff;
  border: 1px solid var(--violet);
}

.secondary-button {
  min-width: 154px;
  color: #fff;
  background: var(--violet);
  border: 1px solid var(--violet);
}

.powered-by {
  position: absolute;
  right: 22px;
  bottom: 8px;
  margin: 0;
}

.powered-by span {
  color: #6eb245;
  font-size: 1.12rem;
}

.details-panel {
  position: relative;
  width: min(100%, 650px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.details-content {
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.details-content h3 {
  margin: 18px 0 0;
  color: var(--ink);
}

.details-content p {
  margin: 0;
}

.details-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.cookie-reopen {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  background: var(--violet);
  border: 0;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .main-nav {
    display: none;
  }

  .hero,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-still {
    min-height: 340px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand span:last-child,
  .cart-chip span {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .cart-line {
    grid-template-columns: 1fr;
  }

  .cookie-panel {
    padding: 28px 18px 58px;
  }

  .cookie-actions,
  .cookie-actions-right {
    display: grid;
    grid-template-columns: 1fr;
  }

  .outline-button,
  .secondary-button {
    width: 100%;
  }
}
