:root {
  --color-bg: #f7f2ea;
  --color-surface: #fffdf8;
  --color-surface-strong: #f1e7d6;
  --color-text: #171512;
  --color-muted: #635b51;
  --color-accent: #ad8250;
  --color-accent-deep: #8f693e;
  --color-border: rgba(23, 21, 18, 0.12);
  --shadow-soft: 0 24px 60px rgba(24, 18, 10, 0.08);
  --shadow-card: 0 18px 32px rgba(24, 18, 10, 0.06);
  --radius-large: 28px;
  --radius-medium: 18px;
  --radius-small: 12px;
  --container-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  background: linear-gradient(180deg, #fbf8f2 0%, var(--color-bg) 100%);
  color: var(--color-text);
}

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

button,
a {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
  background: none;
}

.container {
  width: min(calc(100% - 2rem), var(--container-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 242, 234, 0.86);
  border-bottom: 1px solid rgba(23, 21, 18, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark__label,
h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.brand-mark__label {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-mark__subtext {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.cart-button,
.primary-button,
.secondary-button,
.text-button,
.modal-close {
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.cart-button:hover,
.primary-button:hover,
.secondary-button:hover,
.text-button:hover,
.modal-close:hover {
  transform: translateY(-1px);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.8rem;
  min-height: 1.8rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--color-text);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-section {
  padding: 0 0 2rem;
  
}

.hero-backdrop {
  min-height: 584.95px;
  background:
    linear-gradient(90deg, rgba(24, 21, 18, 0.46) 0%, rgba(24, 21, 18, 0.22) 34%, rgba(24, 21, 18, 0.08) 58%, rgba(24, 21, 18, 0.12) 100%),
    url("assets/hero/figma-hero.png") center/cover no-repeat;
   
}

.hero-stage {
  min-height: 584.95px;
}

.hero-inner {
  position: absolute;
  top: 150px;
  left: 30%;
  transform: translateX(-50%);
  width: min(1200px, calc(100vw - 2rem));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.hero-copy {
  width: 635px;
  flex: 0 0 635px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px 0;
}

.hero-copy-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
}

.eyebrow--light {
  color: rgba(247, 245, 245, 0.92);
}

.hero-eyebrow {
  margin-bottom: 0;
  letter-spacing: 2.688px;
  line-height: 1;
}

h1 {
  margin: 0;
  font-size: 60px;
  line-height: 82.94px;
  font-weight: 600;
  color: #fff;
}

.hero-text {
  max-width: 100%;
  margin: 0;
  font-size: 17.3px;
  line-height: 29.38px;
  color: #f7f5f5;
}

.hero-text--highlight {
  display: inline-block;
  padding: 6px 5px;
  border-radius: 5px;
  background: rgba(28, 28, 28, 0.02);
  backdrop-filter: blur(2.5px);
}

.hero-actions {
  margin-top: 0;
}

.hero-note {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #f7f5f5;
}

.hero-visual {
  position: relative;
  flex: 0 0 537px;
  width: 537px;
  height: 381px;
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-large);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-section {
  padding: 2rem 0 5rem;
  background: #fbf8f2;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 50rem;
  margin-bottom: 2rem;
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
}

.product-group + .product-group {
  margin-top: 3rem;
}

.product-group__heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.4rem;
}

.product-group__heading h3 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(23, 21, 18, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.product-card__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 330px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(241, 231, 214, 0.95), rgba(255, 255, 255, 0.95));
}

.product-card__image-frame {
  width: 277.895px;
  height: 330px;
  transform: translateX(-1.45px);
  flex: 0 0 auto;
}

.product-card__image {
  width: 100%;
  height: 100%;
  display: block;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.25rem;
}

.product-card__meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.product-card__name {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.02;
  font-weight: 600;
}

.product-card__price {
  margin: 0.15rem 0 0;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 700;
}

.product-card__description,
.modal-description,
.field-hint,
.status-widget__detail {
  margin: 0;
  line-height: 1.65;
  color: var(--color-muted);
}

.product-card__actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: auto;
}

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
}

.primary-button {
  background: var(--color-text);
  color: #fff;
}

.primary-button:hover {
  background: #2a261f;
}

.secondary-button {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(23, 21, 18, 0.14);
}

.secondary-button:hover {
  border-color: rgba(173, 130, 80, 0.6);
  color: var(--color-accent-deep);
}

.text-button {
  color: var(--color-muted);
  padding-inline: 0.2rem;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 8, 0.45);
}

.modal-card {
  position: relative;
  width: min(100%, 920px);
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: 0 30px 80px rgba(11, 10, 8, 0.24);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  color: var(--color-muted);
}

.modal-layout,
.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 460px;
}

.modal-product,
.result-preview {
  background: linear-gradient(180deg, rgba(241, 231, 214, 1), rgba(255, 253, 248, 1));
}

.modal-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}

.modal-content h3 {
  margin: 0;
  font-size: 2.35rem;
  font-weight: 600;
}

.upload-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px dashed rgba(23, 21, 18, 0.2);
  border-radius: var(--radius-small);
  background: rgba(247, 242, 234, 0.72);
}

.upload-field input {
  width: 100%;
}

.status-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 35;
  width: min(320px, calc(100vw - 2rem));
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(173, 130, 80, 0.18);
  border-radius: 18px;
  background: rgba(23, 21, 18, 0.96);
  box-shadow: 0 18px 50px rgba(11, 10, 8, 0.26);
  color: #fff;
}

.status-widget__label {
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.status-widget__detail {
  color: rgba(255, 255, 255, 0.76);
}

.result-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.result-preview__image {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: var(--radius-medium);
  border: 1px dashed rgba(23, 21, 18, 0.2);
  background:
    linear-gradient(140deg, rgba(173, 130, 80, 0.24), rgba(255, 255, 255, 0.9)),
    url("assets/hero/result-texture.svg") center/cover no-repeat;
  color: var(--color-text);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 2rem;
  text-align: center;
}

.body-lock {
  overflow: hidden;
}

@media (max-width: 980px) {
  .modal-layout,
  .result-layout {
    grid-template-columns: 1fr;
  }

  .hero-backdrop {
    padding: 2rem 0;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-inner {
    position: static;
    transform: none;
    width: min(1200px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: flex-start;
    padding-top: 2rem;
  }

  .hero-copy,
  .hero-visual {
    width: 100%;
    flex-basis: auto;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .header-inner {
    gap: 1rem;
  }

  h1 {
    font-size: 2.9rem;
    line-height: 1.04;
  }

  .hero-actions,
  .product-card__actions,
  .result-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .product-card__image-wrap {
    height: 280px;
  }

  .product-card__image-frame {
    width: auto;
    max-width: 100%;
    height: 280px;
    transform: none;
  }

  .product-card__image {
    width: auto;
    max-width: 100%;
    height: 100%;
  }

  .modal-content {
    padding: 1.35rem;
  }

  .modal-content h3 {
    font-size: 1.95rem;
  }
}
