:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --paper: #f5f7fb;
  --surface: #ffffff;
  --line: #d9e1ea;
  --brass: #c8a24d;
  --teal: #138f84;
  --red: #9f3f35;
  --green: #315c46;
  --blue: #2563eb;
  --shadow: 0 18px 55px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #eef3f8 0, var(--paper) 360px, #ffffff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.announcement {
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  text-align: center;
}

.nav-bar {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  padding: 1rem 1.2rem;
}

.brand {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  min-width: 270px;
}

.brand-logo,
.brand-mark {
  align-items: center;
  aspect-ratio: 1;
  border-radius: 14px;
  display: grid;
  height: 68px;
  justify-content: center;
  width: 68px;
}

.brand-mark {
  background: var(--brass);
  border: 2px solid #e5cf93;
  color: #1e1a12;
  font-weight: 800;
}

.brand small {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}

.brand strong {
  display: block;
  font-size: 1.42rem;
  line-height: 1.05;
}

.nav-tools {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}

.language-select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  height: 44px;
  padding: 0 0.65rem;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}

.nav-links a,
.text-link {
  color: var(--muted);
  font-weight: 700;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--teal);
}

.nav-action,
.button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0.76rem 1rem;
}

.button-like {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.cart-button {
  cursor: pointer;
  gap: 0.5rem;
}

#cartBadge {
  align-items: center;
  background: var(--brass);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.78rem;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 0.4rem;
}

.nav-action,
.button.primary {
  background: var(--ink);
  color: #fff;
}

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

.hero {
  display: grid;
  gap: clamp(1.2rem, 3vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  margin: 0 auto;
  max-width: 1240px;
  min-height: min(500px, calc(100vh - 108px));
  padding: clamp(1.5rem, 3.5vw, 3rem) 1.2rem 2rem;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.8vw, 3.65rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 1rem;
  max-width: 680px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 0;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: 0;
  line-height: 1.25;
}

.hero-text {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 570px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero-gallery {
  display: grid;
  align-self: center;
  gap: 0.7rem;
  grid-template-columns: 1.05fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  max-height: 360px;
  min-height: 310px;
}

.hero-gallery img {
  background: #eef3f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-gallery img:first-child {
  grid-row: span 2;
}

.metrics {
  background: var(--surface);
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
}

.metrics div {
  border-left: 1px solid var(--line);
  padding: 1.2rem;
  text-align: center;
}

.metrics div:first-child {
  border-left: 0;
}

.metrics strong {
  display: block;
  font-size: 1.65rem;
}

.metrics span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(3rem, 7vw, 6rem) 1rem;
}

.section-heading {
  margin-bottom: 1.5rem;
  max-width: 780px;
}

.section-heading.row {
  align-items: end;
  display: flex;
  justify-content: space-between;
  max-width: none;
}

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

.collection-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 170px;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.collection-card::after {
  background: var(--accent);
  bottom: 0;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
}

.collection-card span {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
}

.collection-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.08;
  margin: 0.35rem 0 1rem;
}

.toolbar {
  align-items: end;
  background: #eef3f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr 230px 180px;
  padding: 0.8rem;
}

label span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

input,
select {
  background: var(--surface);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  height: 44px;
  padding: 0 0.75rem;
  width: 100%;
}

.product-count {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 1rem 0;
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.product-media {
  align-items: center;
  aspect-ratio: 1;
  background: #eef3f8;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.product-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
  width: 100%;
}

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

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.product-actions {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr 1fr;
}

.product-actions .button {
  min-height: 40px;
  padding: 0.55rem 0.7rem;
}

.button[disabled],
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  background: #eef8f6;
  border: 1px solid #cde7e2;
  border-radius: 999px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
}

.product-title {
  flex: 1;
  min-height: 3.8em;
}

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

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

.external {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 900;
}

.full {
  width: 100%;
}

.product-dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  max-width: 920px;
  padding: 0;
  width: calc(100vw - 2rem);
}

.product-dialog::backdrop {
  background: rgba(22, 23, 25, 0.48);
}

.dialog-product {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  padding: 1rem;
}

.dialog-product img {
  aspect-ratio: 1;
  background: #ece7df;
  border: 1px solid var(--line);
  object-fit: cover;
  width: 100%;
}

.dialog-copy {
  align-self: center;
  padding: 1rem;
}

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

.detail-list {
  border-block: 1px solid var(--line);
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0;
  padding: 1rem 0;
}

.detail-list div {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.detail-list span {
  color: var(--muted);
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.icon-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.5rem;
  height: 40px;
  justify-content: center;
  line-height: 1;
  width: 40px;
}

.close-dialog {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  z-index: 1;
}

.cart-drawer,
.chat-panel {
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 430px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(110%);
  transition: transform 180ms ease;
  width: min(100vw, 430px);
  z-index: 40;
}

.cart-drawer.open,
.chat-panel.open {
  transform: translateX(0);
}

.cart-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem;
}

.cart-header h2 {
  font-size: 1.65rem;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 1rem;
}

.cart-line {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 72px 1fr;
  padding: 0.9rem 0;
}

.cart-line img {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  object-fit: cover;
}

.cart-line h3 {
  font-size: 0.94rem;
  margin-bottom: 0.25rem;
}

.qty-row {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.qty-row button {
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  height: 30px;
  width: 30px;
}

.cart-summary {
  border-top: 1px solid var(--line);
  padding: 1rem;
}

.cart-summary div {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.cart-summary p,
.chat-copy {
  color: var(--muted);
  font-size: 0.92rem;
}

.scrim {
  background: rgba(22, 23, 25, 0.32);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 35;
}

.scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.chat-panel {
  height: auto;
  min-height: 360px;
  padding-bottom: 1rem;
  top: auto;
  bottom: 0;
}

.chat-panel > p,
.chat-panel > a {
  margin-inline: 1rem;
}

.chat-panel > a + a {
  margin-top: 0.7rem;
}

.floating-chat {
  background: var(--teal);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  bottom: 1.2rem;
  box-shadow: var(--shadow);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 46px;
  padding: 0 1.1rem;
  position: fixed;
  right: 1.2rem;
  z-index: 25;
}

.checkout-page {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(2rem, 6vw, 5rem) 1rem;
}

.checkout-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 380px;
}

.checkout-form,
.order-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.checkout-form h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.form-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr 1fr;
}

.checkout-form label {
  display: block;
  margin-bottom: 0.8rem;
}

.payment-methods {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
  padding: 0.8rem;
}

.checkout-form .button + .button {
  margin-top: 0.7rem;
}

.payment-methods label {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  margin: 0;
}

.payment-methods input {
  height: auto;
  width: auto;
}

.summary-line {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 58px 1fr;
  padding: 0.75rem 0;
}

.summary-line img {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  object-fit: cover;
}

.split-section {
  background: #111827;
  color: #fff;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-top: 2rem;
  padding: clamp(3rem, 7vw, 6rem) max(1rem, calc((100vw - 1180px) / 2));
}

.split-section p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
}

.split-section .eyebrow {
  color: #d7ad63;
}

.contact-panel {
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.contact-panel .button.primary {
  background: #fff;
  color: var(--ink);
}

.contact-panel .button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.about-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}

.about-grid p,
.about-grid li {
  color: var(--muted);
  font-size: 1.02rem;
}

.about-grid ul {
  margin: 0;
  padding-left: 1.2rem;
}

.footer {
  align-items: start;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 2rem max(1rem, calc((100vw - 1180px) / 2));
}

.footer p {
  color: var(--muted);
  margin: 0.25rem 0 0;
}

.footer div:last-child {
  display: flex;
  gap: 1rem;
}

.footer a {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 920px) {
  .nav-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav-tools {
    flex-wrap: wrap;
  }

  .hero,
  .split-section,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
    min-height: 340px;
  }

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

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

  .dialog-product,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .announcement {
    font-size: 0.74rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo,
  .brand-mark {
    height: 58px;
    width: 58px;
  }

  .brand strong {
    font-size: 1.22rem;
  }

  .brand small {
    font-size: 0.8rem;
  }

  .nav-tools {
    width: 100%;
  }

  .cart-button {
    flex: 1;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    min-height: 118px;
  }

  .hero-gallery img:first-child {
    grid-row: auto;
  }

  .hero-gallery img {
    aspect-ratio: 1;
    height: auto;
  }

  .collection-grid,
  .product-grid,
  .metrics,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.row,
  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}
