:root {
  --ink: #171513;
  --muted: #6e6760;
  --line: #e7e0d7;
  --paper: #fffdf9;
  --soft: #f5efe6;
  --gold: #b58b24;
  --charcoal: #242321;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(33, 28, 24, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(23, 21, 19, 0.08);
  background: var(--paper);
}

.brand img {
  width: 190px;
  height: 78px;
  object-fit: contain;
  object-position: center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cart-trigger:hover {
  border-color: rgba(181, 139, 36, 0.38);
  color: var(--ink);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.language-button {
  min-width: 38px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.language-button.active {
  background: var(--soft);
  color: var(--gold);
}

.cart-trigger span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: clamp(38px, 7vw, 88px) clamp(18px, 5vw, 72px) clamp(28px, 5vw, 58px);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  font-size: clamp(3.3rem, 8vw, 7.8rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

h3 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.hero-copy > p:not(.eyebrow),
.section-heading > p,
.atelier-copy > p,
.contact-panel p {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

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

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

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

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

.button.ghost {
  background: transparent;
  color: var(--ink);
}

.button[aria-disabled="true"] {
  opacity: 0.48;
  pointer-events: none;
}

.hero-media {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--white);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band div {
  padding: 28px clamp(18px, 4vw, 52px);
  background: var(--soft);
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band strong {
  margin-bottom: 6px;
}

.intro-band span {
  color: var(--muted);
}

.collection-section,
.atelier,
.contact-section {
  padding: clamp(56px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

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

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.collection-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.collection-view {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.collection-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
  transition: transform 220ms ease;
}

.collection-card:hover img {
  transform: scale(1.025);
}

.collection-info {
  padding: 18px;
}

.collection-info h3 {
  margin: 0 0 8px;
  font-family: Inter, Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.25;
}

.collection-info p {
  min-height: 44px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.collection-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.collection-meta strong {
  color: var(--gold);
}

.catalog-toolbar {
  margin-top: 30px;
}

.back-collections {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.back-collections:hover {
  border-color: var(--gold);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 28px;
}

.filter-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.filter-button.active,
.filter-button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.product-card .product-view {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
  transition: transform 220ms ease;
}

.product-card:hover img {
  transform: scale(1.025);
}

.product-info {
  padding: 18px;
}

.product-info h3 {
  margin-bottom: 8px;
  font-family: Inter, Arial, sans-serif;
  font-size: 1.04rem;
  line-height: 1.25;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 18px 18px;
}

.add-cart-button {
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.atelier {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  background: var(--charcoal);
  color: var(--white);
}

.atelier-copy > p {
  color: rgba(255, 255, 255, 0.72);
}

.atelier-image {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
}

.atelier-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.contact-panel {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.product-dialog {
  width: min(1040px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cart-dialog {
  width: min(460px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cart-dialog::backdrop {
  background: rgba(23, 21, 19, 0.46);
}

.cart-content {
  padding: clamp(24px, 4vw, 40px);
}

.cart-items {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

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

.cart-promo {
  margin: 0;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
}

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

.cart-item img {
  width: 72px;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  background: var(--soft);
}

.cart-item h4 {
  margin: 0 0 4px;
  font-size: 0.96rem;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-quantity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cart-quantity button,
.remove-cart-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cart-quantity button {
  width: 30px;
  height: 30px;
}

.remove-cart-item {
  padding: 8px 10px;
  color: var(--muted);
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  font-size: 1.08rem;
}

.cart-note {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.product-dialog::backdrop {
  background: rgba(23, 21, 19, 0.46);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  gap: 0;
}

.dialog-gallery {
  padding: 18px;
  background: var(--soft);
}

#dialogImage {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--white);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.thumb-row button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

.thumb-row button.active {
  border-color: var(--gold);
}

.thumb-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.dialog-content {
  padding: clamp(24px, 4vw, 48px);
}

.dialog-content p {
  color: var(--muted);
}

.dialog-content dl {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.dialog-content dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.dialog-content dt {
  color: var(--muted);
}

.dialog-content dd {
  margin: 0;
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero,
  .atelier,
  .contact-section,
  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  .intro-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand img {
    width: 160px;
    height: 66px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

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

  .button {
    width: 100%;
  }

  .product-dialog {
    width: calc(100vw - 16px);
  }
}
