:root {
  --bg: #f7efe3;
  --surface: rgba(255, 250, 243, 0.88);
  --surface-strong: #fffaf4;
  --foreground: #1c1713;
  --muted: #665a4d;
  --line: rgba(177, 138, 78, 0.24);
  --gold: #b89456;
  --gold-deep: #8f6a32;
  --shadow: 0 24px 70px rgba(95, 63, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--foreground);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 28%),
    radial-gradient(circle at top right, rgba(230, 198, 144, 0.18), transparent 22%),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 52%, #f5ebdc 100%);
  font-family: "Manrope", sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 249, 241, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(184, 148, 86, 0.4);
}

.brand span,
.brand small {
  display: block;
}

.brand span {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.brand small,
.site-nav a,
.eyebrow,
.filter-chip,
.product-meta,
.price-note,
.about-copy p,
.hero-highlights li,
.feature-banner p,
.order-card p {
  letter-spacing: 0.03em;
}

.brand small,
.site-nav a,
.hero-text,
.feature-banner p,
.section-heading p,
.order-card p,
.product-description,
.product-specs li,
.empty-state,
.about-copy p {
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 18px;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  padding: 64px 0 32px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-deep);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about-copy h2,
.modal-copy h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.95;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 6.6vw, 6.5rem);
}

.hero-text {
  max-width: 62ch;
  margin: 20px 0 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions,
.product-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(184, 148, 86, 0.18);
}

.button-primary {
  background: linear-gradient(135deg, #1f594e 0%, #103d34 100%);
  color: #fff7ec;
  border-color: rgba(16, 61, 52, 0.25);
}

.button-secondary {
  background: rgba(255, 250, 244, 0.92);
  color: var(--foreground);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li,
.filter-chip,
.product-badge,
.price-note {
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.72);
}

.hero-highlights li {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 720px;
}

.hero-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(184, 148, 86, 0.28);
  border-radius: 28px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.hero-card-main {
  inset: 12% 2% 6% 18%;
}

.hero-card-top {
  width: 46%;
  top: 0;
  right: 0;
}

.hero-card-bottom {
  width: 42%;
  left: 0;
  bottom: 0;
}

.feature-banner,
.order-section,
.catalog-section,
.about-section {
  margin-top: 34px;
}

.feature-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-banner article,
.order-card,
.catalog-tools,
.about-section,
.product-card,
.product-modal {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-banner article,
.order-card {
  padding: 24px;
  border-radius: 24px;
}

.feature-banner h2,
.order-card h3,
.product-copy h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.section-heading {
  max-width: 780px;
}

.section-heading h2,
.about-copy h2 {
  font-size: clamp(2.5rem, 4.6vw, 4.2rem);
}

.section-heading p {
  margin-top: 14px;
  line-height: 1.8;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.order-card {
  border-radius: 28px;
}

.catalog-section {
  padding: 36px 0 8px;
}

.catalog-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.catalog-meta {
  display: flex;
  gap: 16px;
}

.catalog-meta div {
  min-width: 110px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 251, 246, 0.74);
  text-align: center;
}

.catalog-meta span {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
}

.catalog-meta small {
  color: var(--muted);
}

.catalog-tools {
  margin-top: 24px;
  padding: 18px;
  border-radius: 28px;
}

.search-box {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.filters {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--foreground);
  cursor: pointer;
}

.filter-chip.active {
  border-color: rgba(16, 61, 52, 0.2);
  background: linear-gradient(135deg, #1f594e 0%, #103d34 100%);
  color: #fff8ee;
}

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

.product-card {
  display: grid;
  overflow: hidden;
  border-radius: 28px;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1.08;
  background: linear-gradient(180deg, #f7f1e7 0%, #f2e3cd 100%);
}

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

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.product-copy {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.product-copy h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  line-height: 1.1;
}

.product-meta {
  font-size: 0.82rem;
  color: var(--gold-deep);
  text-transform: uppercase;
  font-weight: 800;
}

.product-description {
  min-height: 48px;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-now {
  font-size: 1.25rem;
  font-weight: 800;
}

.price-was {
  color: var(--muted);
  text-decoration: line-through;
}

.price-note {
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 800;
}

.product-actions .button {
  flex: 1 1 0;
  min-width: 0;
}

.about-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  align-items: center;
  padding: 24px;
  border-radius: 32px;
}

.about-section img {
  border-radius: 26px;
}

.product-modal {
  width: min(1100px, calc(100% - 28px));
  padding: 0;
  border-radius: 32px;
}

.product-modal::backdrop {
  background: rgba(30, 21, 9, 0.46);
  backdrop-filter: blur(6px);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 1.7rem;
  cursor: pointer;
}

.modal-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.modal-gallery {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, #fbf5eb 0%, #f3e7d2 100%);
}

.modal-main-image {
  aspect-ratio: 1 / 1.02;
  border-radius: 24px;
  object-fit: cover;
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.modal-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(184, 148, 86, 0.28);
}

.modal-copy {
  padding: 30px;
}

.modal-copy h3 {
  font-size: 3rem;
}

.modal-copy p {
  line-height: 1.8;
}

.product-specs {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding-left: 18px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 20px;
  border: 1px dashed var(--line);
  border-radius: 26px;
  text-align: center;
}

.modal-order-controls,
.form-grid,
.order-layout {
  display: grid;
  gap: 16px;
}

.modal-order-controls {
  grid-template-columns: 1fr 120px;
  margin-top: 4px;
}

.modal-order-field,
.form-field {
  display: grid;
  gap: 8px;
}

.modal-order-field span,
.form-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal-order-field select,
.modal-order-field input,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(184, 148, 86, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--foreground);
}

.modal-order-field input,
.form-field input[type="number"] {
  text-align: center;
}

.order-page {
  padding-top: 52px;
}

.order-hero {
  margin-bottom: 22px;
}

.order-layout {
  grid-template-columns: 320px 1fr;
  align-items: start;
}

.order-summary-card,
.order-form-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.selected-product-summary {
  display: grid;
  gap: 16px;
}

.selected-product-summary img {
  width: 100%;
  aspect-ratio: 1 / 1.02;
  object-fit: cover;
  border-radius: 20px;
}

.selected-product-summary h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.selected-product-summary p {
  margin: 6px 0;
  color: var(--muted);
}

.selected-product-copy {
  display: grid;
  gap: 8px;
}

.selected-product-description {
  line-height: 1.7;
}

.selected-product-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.selected-product-stats span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.76);
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 700;
}

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

.form-field-span-2 {
  grid-column: span 2;
}

.form-field textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.total-box {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 249, 243, 0.9);
}

.total-box div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.checkbox-field {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
}

.checkbox-field input {
  margin-top: 3px;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header,
  .catalog-heading,
  .feature-banner,
  .order-grid,
  .about-section,
  .modal-content,
  .hero,
  .order-layout {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .site-header {
    align-items: stretch;
  }

  .site-nav {
    justify-content: space-between;
  }

  .hero-visual {
    min-height: 620px;
  }

  .catalog-meta {
    flex-wrap: wrap;
  }

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

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 18px, 100%);
  }

  .site-header {
    top: 8px;
    padding: 14px;
    border-radius: 18px;
  }

  .site-nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 42px;
    gap: 22px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-visual {
    min-height: 430px;
  }

  .hero-card-main {
    inset: 12% 0 0 14%;
  }

  .feature-banner,
  .order-grid,
  .product-grid,
  .modal-thumbs,
  .modal-order-controls,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .product-actions .button,
  .modal-actions .button,
  .order-actions .button {
    width: 100%;
  }

  .modal-copy {
    padding: 20px;
  }

  .modal-copy h3 {
    font-size: 2.2rem;
  }

  .form-field-span-2 {
    grid-column: span 1;
  }
}
