:root {
  --red: #e80012;
  --red-dark: #a0000c;
  --yellow: #ffe96c;
  --green: #1fb42a;
  --ink: #111111;
  --muted: #626262;
  --line: #e7e0d8;
  --paper: #fffdf8;
  --soft: #f6f1e8;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(17, 17, 17, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Trebuchet MS", Arial, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
select,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 10px clamp(16px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 56px;
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
}

.brand-logo img {
  width: auto;
  height: auto;
  max-width: calc(100% - 8px);
  max-height: calc(100% - 8px);
  object-fit: contain;
}

.brand-name {
  font-weight: 900;
  font-size: 1.15rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 34px);
  font-weight: 800;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 10px 0 var(--ink);
}

.button-primary:hover {
  background: #fff086;
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-dark:hover {
  background: #2a2a2a;
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.button-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(17, 17, 17, 0.18);
}

.cart-toggle {
  gap: 10px;
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
  font-size: 0.85rem;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(500px, 72svh, 680px);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 6vw, 86px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42) 46%, rgba(0, 0, 0, 0.1)),
    url("assets/bouillotte-mira.jfif") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--green));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
}

h1 {
  max-width: 100%;
  font-size: clamp(4.2rem, 12vw, 9.5rem);
  color: var(--yellow);
  text-shadow:
    0 7px 0 #000000,
    0 12px 24px rgba(0, 0, 0, 0.35);
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
  font-size: clamp(1.28rem, 2vw, 1.65rem);
}

.hero-slogan {
  margin: 8px 0 0;
  color: var(--white);
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  font-weight: 900;
}

.hero-copy {
  max-width: 650px;
  margin: 20px 0 0;
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 74px);
}

.section-heading {
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  margin: 18px auto 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  grid-template-rows: minmax(220px, 270px) 1fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(17, 17, 17, 0.08);
}

.product-media {
  display: grid;
  place-items: center;
  min-width: 0;
  background: linear-gradient(135deg, #ffffff, #f3f3f3);
}

.product-media-dark {
  background: linear-gradient(135deg, #fdfdfd, #ededed);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.product-body p {
  margin: 10px 0 0;
  color: var(--muted);
}

.product-kicker {
  color: var(--red) !important;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-size: 2rem;
  font-weight: 900;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  background: #e9f8e9;
  border: 1px solid rgba(31, 180, 42, 0.35);
  border-radius: 999px;
  color: #0e6f17;
  font-size: 0.82rem;
  font-weight: 900;
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cfc6bc;
  border-radius: 8px;
  background: var(--white);
}

.option-line,
.color-options {
  display: grid;
  gap: 8px;
}

.option-title {
  color: var(--ink);
  font-weight: 900;
}

.static-option {
  color: var(--muted);
}

.color-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.color-options input {
  accent-color: var(--red);
}

.swatch {
  width: 18px;
  height: 18px;
  border: 1px solid #999999;
  border-radius: 50%;
}

.swatch-white {
  background: #ffffff;
}

.swatch-black {
  background: #000000;
}

.swatch-mix {
  background: linear-gradient(90deg, #000000 0 50%, #ffffff 50% 100%);
}

.card-actions {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-self: end;
}

.quantity-control {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid #cfc6bc;
  border-radius: 8px;
  background: var(--white);
}

.quantity-control button {
  width: 32px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.quantity-input {
  width: 100%;
  min-width: 0;
  border: 0;
  text-align: center;
  font-weight: 900;
  pointer-events: none;
}

.featured-product {
  border-color: rgba(232, 0, 18, 0.35);
  box-shadow: 0 18px 44px rgba(232, 0, 18, 0.13);
}

.use-section {
  background: var(--soft);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.split-layout p {
  color: var(--muted);
  font-size: 1.08rem;
}

.steps {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.step span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-weight: 900;
}

.step p {
  margin: 6px 0 0;
}

.use-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.use-visual img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.heat-section {
  color: var(--white);
  background: var(--ink);
}

.heat-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 30px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: center;
}

.heat-panel h2 {
  color: var(--yellow);
}

.heat-panel p {
  margin: 0;
  color: #f3f3f3;
  font-size: clamp(1.04rem, 2vw, 1.32rem);
}

.arguments-section {
  background:
    linear-gradient(180deg, rgba(232, 0, 18, 0.08), rgba(255, 253, 248, 0) 34%),
    var(--paper);
}

.argument-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.argument-list li {
  min-height: 126px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  border-radius: 8px;
  color: #333333;
  font-weight: 800;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100vw);
  height: 100svh;
  background: var(--white);
  box-shadow: -18px 0 60px rgba(0, 0, 0, 0.18);
  transform: translateX(104%);
  transition: transform 220ms ease;
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-header,
.cart-footer {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 18px;
}

.empty-cart,
.cart-notice {
  margin: 0;
  color: var(--muted);
}

.cart-line {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.cart-line h3 {
  font-size: 1rem;
}

.cart-line p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.remove-line {
  border: 0;
  background: transparent;
  color: var(--red-dark);
  font-weight: 900;
  cursor: pointer;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 1.18rem;
}

.full-width {
  width: 100%;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.34);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.5);
}

.info-modal {
  width: min(920px, 100%);
  max-height: min(760px, 92svh);
  overflow: auto;
  padding: clamp(18px, 4vw, 34px);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

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

.info-grid > div,
.supplier-links {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.materials-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.materials-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.materials-list dt {
  font-weight: 900;
}

.materials-list dd {
  margin: 0;
  color: var(--red);
  font-weight: 900;
}

.supplier-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.supplier-links h3 {
  width: 100%;
}

.supplier-links a {
  padding: 9px 12px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
}

.site-footer img {
  width: 66px;
  height: 42px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
}

@media (max-width: 1180px) {
  .product-grid,
  .argument-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: start;
    order: 3;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-actions {
    gap: 6px;
  }

  .button {
    padding-inline: 12px;
  }

  .hero {
    min-height: clamp(460px, 68svh, 620px);
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.48)),
      url("assets/bouillotte-mira.jfif") center / cover no-repeat;
  }

  .split-layout,
  .heat-panel,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .heat-panel {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .brand-name {
    display: none;
  }

  .brand-logo {
    width: 66px;
    height: 50px;
  }

  .hero-actions,
  .card-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .product-grid,
  .argument-list {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-rows: minmax(210px, 250px) 1fr;
  }

  .card-actions {
    display: grid;
  }

  .quantity-control {
    grid-template-columns: 44px 1fr 44px;
  }

  .quantity-control button {
    width: 44px;
  }

  .cart-line {
    grid-template-columns: 52px 1fr;
  }

  .remove-line {
    grid-column: 2;
    justify-self: start;
  }
}
