:root {
  --ink: #33241e;
  --muted: #7d6b62;
  --paper: #fbf5ed;
  --surface: #fffaf3;
  --cream: #f2e4d5;
  --line: #e4d3c4;
  --gold: #b98328;
  --gold-dark: #7a4f19;
  --rose: #c77573;
  --plum: #6f3f42;
  --shadow: 0 24px 70px rgba(75, 45, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(228, 211, 196, 0.78);
  background: rgba(251, 245, 237, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--plum);
  font-size: 0.82rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

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

.nav-cta {
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff !important;
  background: var(--ink);
}

.cart-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.cart-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--plum);
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(30px, 6vw, 88px);
  min-height: calc(100vh - 74px);
  align-items: center;
  padding: 54px clamp(20px, 6vw, 86px) 72px;
  background:
    radial-gradient(circle at 15% 18%, rgba(199, 117, 115, 0.18), transparent 30%),
    linear-gradient(135deg, #fff8ee, #f2ddca 58%, #efe2d7);
}

.hero-content {
  max-width: 680px;
}

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

.hero h1,
.section-heading h2,
.feature h2,
.contact-band h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 9vw, 8rem);
  font-weight: 500;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

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

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(122, 79, 25, 0.24);
}

.hero-gallery {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  min-height: 560px;
}

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

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

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: -36px clamp(20px, 6vw, 86px) 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.stats-band div {
  padding: 24px;
  background: var(--surface);
}

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

.stats-band strong {
  color: var(--plum);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 500;
}

.stats-band span {
  margin-top: 8px;
  color: var(--muted);
}

.section,
.feature,
.contact-band {
  padding: 92px clamp(20px, 6vw, 86px);
}

.section-heading {
  display: grid;
  max-width: 760px;
  gap: 8px;
  margin-bottom: 34px;
}

.section-heading h2,
.feature h2,
.contact-band h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 500;
}

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

.collection-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 35px rgba(75, 45, 25, 0.08);
  cursor: pointer;
}

.collection-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.collection-card div {
  padding: 22px;
}

.card-kicker {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.collection-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.collection-card p,
.feature p,
.contact-band p {
  margin: 0;
  color: var(--muted);
}

.product-section {
  background: #fff9f2;
}

.product-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: end;
  margin-bottom: 34px;
}

.product-heading .section-heading {
  margin-bottom: 0;
}

.catalog-tools {
  display: grid;
  gap: 14px;
}

.search-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}

.search-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  outline-color: var(--gold);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  background: var(--surface);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.filter-tab.is-active {
  color: #fff;
  border-color: var(--plum);
  background: var(--plum);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(75, 45, 25, 0.08);
}

.product-image-button {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.product-image-button img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-image-button span {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(51, 36, 30, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

.product-info {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.product-info p {
  margin: 0;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-info h3 {
  min-height: 54px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.product-info strong {
  color: var(--plum);
  font-size: 1.08rem;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 8px;
  margin-top: 6px;
}

.product-actions .button {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.empty-state {
  margin: 28px 0 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  color: var(--muted);
  background: var(--surface);
}

.feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(340px, 1.2fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: #f6e8df;
}

.feature-copy {
  display: grid;
  gap: 18px;
}

.text-link {
  width: fit-content;
  color: var(--plum);
  font-weight: 900;
  border-bottom: 2px solid rgba(111, 63, 66, 0.35);
}

.feature-images {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 14px;
  align-items: end;
}

.feature-images img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-images img:first-child {
  aspect-ratio: 16 / 10;
}

.feature-images img:last-child {
  aspect-ratio: 3 / 4;
}

.gallery-section {
  background: var(--paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cream);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 11px;
  border-radius: 8px;
  color: #fff;
  background: rgba(51, 36, 30, 0.72);
  font-size: 0.9rem;
  font-weight: 850;
}

.lookbook {
  overflow: hidden;
  padding: 22px 0 92px;
  background: var(--paper);
}

.lookbook-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 240px);
  gap: 14px;
  overflow-x: auto;
  padding: 0 clamp(20px, 6vw, 86px) 10px;
  scroll-snap-type: x mandatory;
}

.lookbook-track img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  scroll-snap-align: start;
  box-shadow: 0 12px 30px rgba(75, 45, 25, 0.1);
}

.contact-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(26px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(51, 36, 30, 0.93), rgba(51, 36, 30, 0.8)),
    url("assets/jewelry-17.jpeg") center / cover;
}

.contact-band .eyebrow {
  color: #f3c98d;
}

.contact-band p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 750;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 13px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.form-status {
  min-height: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 6vw, 86px);
  color: var(--muted);
  background: var(--surface);
}

.site-footer a {
  color: var(--plum);
  font-weight: 850;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  justify-content: end;
  background: rgba(51, 36, 30, 0);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    background 180ms ease;
}

.cart-drawer.is-open {
  background: rgba(51, 36, 30, 0.38);
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100vw);
  height: 100vh;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  box-shadow: -18px 0 60px rgba(51, 36, 30, 0.18);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

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

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.panel-header h2,
.modal-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 500;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

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

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

.cart-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.cart-item img {
  width: 86px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.25;
}

.cart-item p {
  margin: 0 0 9px;
  color: var(--plum);
  font-weight: 850;
}

.quantity-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.quantity-controls button {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.quantity-controls span {
  min-width: 24px;
  text-align: center;
  font-weight: 850;
}

.cart-summary {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.cart-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary span {
  color: var(--muted);
  font-weight: 850;
}

.cart-summary strong {
  color: var(--plum);
  font-size: 1.35rem;
}

.cart-summary .button {
  width: 100%;
}

.product-modal {
  width: min(900px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-modal::backdrop {
  background: rgba(51, 36, 30, 0.42);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.9fr);
}

.modal-body > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.modal-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 5vw, 48px);
}

.modal-copy strong {
  color: var(--plum);
  font-size: 1.5rem;
}

.modal-copy p {
  margin: 0;
  color: var(--muted);
}

.admin-page .section-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-status {
  color: var(--muted);
  font-weight: 800;
}

.customer-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(75, 45, 25, 0.08);
}

.customer-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.customer-table th,
.customer-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.customer-table th {
  color: var(--gold-dark);
  background: #fff3e6;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.customer-table td {
  color: var(--ink);
  font-size: 0.94rem;
}

.customer-table tr:last-child td {
  border-bottom: 0;
}

.customer-table a {
  color: var(--plum);
  font-weight: 850;
}

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

  .hero-gallery {
    min-height: 480px;
  }

  .collection-grid,
  .product-heading,
  .contact-band {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 74px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

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

@media (max-width: 620px) {
  .hero {
    padding-top: 42px;
  }

  .hero-gallery,
  .feature-images {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
  }

  .hero-gallery img,
  .hero-gallery img:first-child {
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }

  .section,
  .feature,
  .contact-band {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 320px;
  }

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

  .product-actions,
  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-body > img {
    min-height: 320px;
    aspect-ratio: 4 / 5;
  }

  .gallery-item.large,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .site-header {
    gap: 10px;
  }

  .brand span:last-child {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cart-button {
    padding-inline: 9px;
  }
}
