:root {
  --page-bg: #f8f8f6;
  --header-bg: #ffffff;
  --text: #121212;
  --muted: #5a5a5a;
  --line: #e8e8e3;
  --hero-dark: #20262d;
  --hero-mid: #2d343c;
  --hero-light: #5d6670;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
}

.admin-page {
  min-height: 100vh;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.7),
      rgba(255, 255, 255, 0.92)
    ),
    radial-gradient(circle at top, rgba(18, 18, 18, 0.08), transparent 35%),
    var(--page-bg);
}

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

button {
  font: inherit;
}

.site-header {
  background: var(--header-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.top-bar,
.main-nav {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
}

.header-search {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 20px;
}

.header-search[hidden] {
  display: none;
}

.header-search__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.header-search__label {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-search__input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
}

.header-search__input:focus {
  outline: 2px solid rgba(18, 18, 18, 0.18);
  outline-offset: 0;
}

.header-search__submit {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid #121212;
  background: #121212;
  color: #fff;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.header-search__results {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 32px rgba(18, 18, 18, 0.08);
}

.header-search__results[hidden] {
  display: none;
}

.header-search__result {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.header-search__result:first-child {
  border-top: 0;
}

.header-search__result:hover,
.header-search__result:focus-visible {
  background: #f5f4ef;
}

.header-search__thumb {
  width: 62px;
  height: 62px;
  object-fit: contain;
  background: transparent;
}

.header-search__meta {
  min-width: 0;
}

.header-search__category {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-search__name {
  margin: 0 0 4px;
  font-size: 0.96rem;
  font-weight: 600;
}

.header-search__price {
  margin: 0;
  font-size: 0.9rem;
}

.header-search__empty {
  margin: 0;
  padding: 16px 14px;
  color: var(--muted);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
}

.brand-logo {
  display: block;
  width: auto;
  height: 64px;
  object-fit: contain;
}

.utility-nav {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 20px;
  font-size: 0.9rem;
}

.utility-nav--social {
  justify-self: start;
}

.utility-nav a {
  color: var(--text);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  position: relative;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  min-height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #c91d1d;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 68px;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a,
.nav-dropdown__toggle {
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after,
.nav-dropdown__toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.nav-dropdown__toggle:hover::after,
.nav-dropdown__toggle:focus-visible::after,
.nav-dropdown.is-open .nav-dropdown__toggle::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: -14px;
}

.nav-dropdown__toggle {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  display: grid;
  min-width: 190px;
  padding: 12px 0;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 32px rgba(18, 18, 18, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown__menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.nav-dropdown__menu a::after {
  display: none;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible {
  background: #f5f4ef;
}

.hero {
  width: 100%;
}

.hero-art {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: #1e242a;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.08)
  );
  z-index: 1;
}

.hero-image {
  display: block;
  width: 100%;
  height: 700px;
  min-height: 420px;
  object-fit: cover;
  object-position: 50% 100%;
}

.utility-nav--compact {
  gap: 0;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.customer-auth-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.customer-dashboard-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 74px);
  padding: 56px 0 72px;
}

.login-card {
  width: min(100%, 480px);
  padding: 40px 36px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 50px rgba(18, 18, 18, 0.08);
}

.login-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.1rem;
  font-weight: 600;
  line-height: 0.95;
}

.login-copy {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.login-shell--customer .login-card {
  width: min(100%, 520px);
}

.customer-auth__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.customer-auth__divider::before,
.customer-auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.field {
  display: grid;
  gap: 8px;
}

.field.is-error input,
.field.is-error select,
.field.is-error textarea,
.field.is-error .variant-editor__color-input {
  border-color: #b42318;
}

.field--images {
  grid-column: 1 / -1;
}

.field--variants {
  grid-column: 1 / -1;
}

.field__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.field span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #cfcfc9;
  border-radius: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cfcfc9;
  border-radius: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.field select {
  min-height: 52px;
  padding: 0 16px;
}

.field textarea {
  padding: 14px 16px;
  resize: vertical;
}

.image-upload {
  display: grid;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.image-upload__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.image-upload__slot-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.image-upload__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 1px dashed #bdbdb6;
  background: #fff;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.image-upload__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 84px;
  align-content: flex-start;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid #cfcfc9;
  background: #fafaf7;
}

.image-upload__empty {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  color: #7a7469;
  font-size: 0.88rem;
}

.image-upload__thumb {
  width: 100%;
  max-width: 100%;
  height: 92px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: transparent;
}

.image-upload__thumb--large {
  width: 100%;
}

.variant-editor__list {
  display: grid;
  gap: 18px;
}

.variant-editor {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.variant-editor.is-error {
  border-color: #b42318;
}

.variant-editor__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.variant-editor__header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.variant-editor__add,
.variant-editor__remove {
  min-height: 38px;
  padding: 0 14px;
}

.variant-editor__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.variant-editor__color-input {
  width: 100%;
  min-height: 52px;
  padding: 6px;
  border: 1px solid #cfcfc9;
  background: #fff;
  cursor: pointer;
}

.image-upload__notice {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.image-upload__notice.is-error {
  color: #b42318;
}

.image-upload__notice.is-success {
  color: #157347;
}

.field-error {
  margin: 0;
  color: #b42318;
  font-size: 0.82rem;
  line-height: 1.35;
}

.field-error:empty {
  display: none;
}

.image-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field input:focus {
  outline: 1px solid var(--text);
  outline-offset: 0;
}

.field select:focus,
.field textarea:focus {
  outline: 1px solid var(--text);
  outline-offset: 0;
}

.field--checkbox {
  align-content: end;
}

.field--checkbox input {
  width: 22px;
  min-height: 22px;
  padding: 0;
}

.login-submit {
  min-height: 52px;
  border: 0;
  background: #121212;
  color: #fff;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.login-submit--ghost {
  min-height: 38px;
  padding: 0 16px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.login-submit--danger {
  min-height: 38px;
  padding: 0 16px;
  background: #b12525;
  color: #fff;
}

.login-submit--success {
  background: #177245;
  color: #fff;
}

.button-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button-success svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status.is-error {
  color: #b12525;
}

.form-status.is-success {
  color: #177245;
}

.login-hint {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.login-hint p {
  margin: 6px 0 0;
}

.login-hint a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.customer-dashboard-shell {
  padding: 56px 0 72px;
}

.customer-dashboard__intro {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.customer-dashboard__intro h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 0.95;
}

.customer-dashboard__intro .login-submit {
  width: fit-content;
}

.customer-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.customer-card {
  min-height: 220px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.05);
}

.customer-card h2 {
  margin: 0 0 20px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
}

.customer-card__list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.customer-card__list div {
  display: grid;
  gap: 6px;
}

.customer-card__list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.customer-card__list dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.customer-card__empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-shell {
  padding: 56px 0 72px;
}

.dashboard-intro {
  margin-bottom: 28px;
}

.dashboard-intro h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 0.95;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 220px));
  gap: 18px;
}

.dashboard-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.05);
  text-align: center;
}

.dashboard-card--action {
  cursor: pointer;
}

.dashboard-card--action[aria-expanded="true"] {
  border-color: #121212;
}

.dashboard-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.05rem;
  font-weight: 600;
}

.admin-panel {
  margin-top: 28px;
  padding: 28px 28px 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.05);
}

.admin-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-panel__header h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  font-weight: 600;
}

.admin-panel__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-panel__button {
  min-height: 44px;
  padding: 0 18px;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.admin-pagination__button {
  min-height: 36px;
  min-width: 44px;
  padding: 0 12px;
}

.admin-pagination__button[disabled] {
  opacity: 0.45;
  cursor: default;
}

.admin-pagination__status {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

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

.admin-table th {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--muted);
}

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

.admin-table__actions {
  width: 1%;
  white-space: nowrap;
}

.admin-table__actions-wrap {
  display: flex;
  gap: 10px;
}

.admin-action-button {
  min-height: 34px;
  padding: 0 12px;
}

.admin-table__image {
  width: 72px;
}

.product-thumb {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #f1f1eb;
}

.product-thumb--placeholder {
  display: grid;
  place-items: center;
  color: #7a7469;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-name {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.product-meta {
  margin-top: 6px;
  color: #7a7469;
  font-size: 0.82rem;
  line-height: 1.5;
}

.product-price {
  display: grid;
  gap: 4px;
}

.product-price strong {
  color: var(--text);
}

.product-price span {
  font-size: 0.82rem;
}

.admin-category-select {
  width: 100%;
  min-width: 160px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #d6d6d0;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.admin-category-select:focus {
  outline: 1px solid var(--text);
  outline-offset: 0;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f0efe9;
  color: #121212;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-featured {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e7f5ec;
  color: #177245;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-featured--off {
  background: #f0efe9;
  color: #6d665a;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(18, 18, 18, 0.5);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(100%, 480px);
  max-height: calc(100vh - 48px);
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 50px rgba(18, 18, 18, 0.18);
  overflow-x: hidden;
  overflow-y: auto;
}

.modal-card--wide {
  width: min(100%, 860px);
}

.modal-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-card__header h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.1rem;
  font-weight: 600;
}

.modal-form {
  display: grid;
  gap: 18px;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.modal-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.form-status__success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #177245;
  font-weight: 600;
}

.form-status__success svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-heading {
  width: min(1180px, calc(100% - 48px));
  margin: 32px auto 0;
}

.section-heading h2 {
  margin: 0;
  color: #000;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  font-weight: 600;
}

.featured-products {
  width: min(100%, calc(100% - 48px));
  margin: 22px auto 0;
  padding-bottom: 48px;
}

.products-hero,
.products-index {
  width: min(100%, calc(100% - 48px));
  margin: 0 auto;
}

.products-hero {
  padding: 52px 0 24px;
}

.products-hero__inner {
  display: grid;
  gap: 8px;
}

.products-hero__eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.products-hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.1rem;
  font-weight: 600;
  line-height: 0.95;
}

.products-index {
  padding-bottom: 56px;
}

.products-index__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.checkout-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 32px;
  align-items: start;
}

.checkout-column {
  min-width: 0;
}

.checkout-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.checkout-card h1,
.checkout-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 0.95;
}

.checkout-cart {
  display: grid;
  gap: 16px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.checkout-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.checkout-item__image {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
}

.checkout-item__content {
  display: grid;
  gap: 4px;
}

.checkout-item__content h3,
.checkout-item__content p {
  margin: 0;
}

.checkout-item__content h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.checkout-item__content p {
  color: var(--muted);
  font-size: 0.9rem;
}

.checkout-item__remove {
  min-height: 34px;
}

.checkout-form {
  display: grid;
  gap: 18px;
}

.checkout-card-details {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.checkout-card-details__title {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.checkout-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.product-detail {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 44px;
  align-items: start;
}

.product-detail--empty {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.product-detail__image-wrap {
  flex: 1 1 auto;
  aspect-ratio: 1 / 1.02;
  display: grid;
  place-items: center;
}

.product-detail__image-button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.product-detail__media {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.product-detail__thumbs {
  display: grid;
  gap: 12px;
  width: 92px;
  flex: 0 0 92px;
}

.product-detail__thumb {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.product-detail__thumb img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: contain;
}

.product-detail__thumb span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-detail__thumb.is-active {
  border-color: #121212;
}

.product-detail__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  transition: transform 220ms ease;
}

.product-detail__image-wrap.is-zoomed .product-detail__image-button {
  cursor: zoom-out;
}

.product-detail__image-wrap.is-zoomed .product-detail__image {
  transform: scale(1.75);
}

.product-detail__content {
  display: grid;
  gap: 16px;
  align-content: start;
}

.product-detail__content h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 0.95;
}

.product-detail__price {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.product-detail__description {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.product-detail__buy {
  min-width: 180px;
  justify-self: start;
  padding: 0 28px;
}

.product-detail__swatches,
.product-detail__views {
  margin-top: 0;
}

.featured-products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.featured-card {
  background: transparent;
}

.featured-card__link {
  display: block;
  cursor: pointer;
}

.featured-card__media {
  aspect-ratio: 1 / 0.9;
  overflow: hidden;
}

.featured-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  transition: transform 180ms ease;
}

.featured-card__media:hover .featured-card__image,
.featured-card__media:focus-within .featured-card__image {
  transform: scale(1.04);
}

.featured-card__image--empty {
  display: grid;
  place-items: center;
  background: transparent;
  color: #7a7469;
  font-size: 0.88rem;
}

.featured-card__body {
  display: grid;
  gap: 6px;
  padding: 18px 18px 20px;
  justify-items: center;
  text-align: center;
}

.featured-card__views {
  display: inline-flex;
  gap: 8px;
  margin-top: 2px;
}

.featured-card__swatches {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.featured-card__swatch {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(18, 18, 18, 0.16);
  border-radius: 999px;
  background: var(--swatch-color, #c7c7c7);
  cursor: pointer;
}

.featured-card__swatch.is-active {
  outline: 2px solid #121212;
  outline-offset: 2px;
}

.featured-card__view-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.featured-card__view-button.is-active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.featured-card__category {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-card__body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: transparent;
  transition: text-decoration-color 180ms ease;
}

.featured-card:has(.featured-card__media:hover) .featured-card__body h3,
.featured-card:has(.featured-card__media:focus-within) .featured-card__body h3,
.featured-card__body h3:hover,
.featured-card__body h3:focus-within {
  text-decoration-color: currentColor;
}

.featured-card__price {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
}

.featured-card--empty {
  grid-column: 1 / -1;
  padding: 26px 22px;
}

.featured-card--empty p {
  margin: 0;
  color: var(--muted);
}

.anchor-strip {
  height: 1px;
}

.about-page {
  padding: 52px 0 24px;
}

.about-page__inner {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
}

.about-page__copy {
  display: grid;
  gap: 20px;
}

.about-page__copy p {
  margin: 0;
  color: #242424;
  font-size: 1rem;
  line-height: 1.9;
}

.about-page__signoff {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.connect-page {
  padding: 52px 0 24px;
}

.connect-page__grid {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.connect-card {
  padding: 30px 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.05);
}

.connect-card h2 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
}

.connect-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.connect-form {
  margin-top: 0;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer__inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
}

.site-footer__eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__signup h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  font-weight: 600;
}

.site-footer__signup {
  display: grid;
  gap: 18px;
  align-content: start;
}

.site-footer__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 22px;
}

.site-footer__input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #cfcfc9;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.site-footer__input:focus {
  outline: 1px solid var(--text);
  outline-offset: 0;
}

.site-footer__submit {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid #121212;
  background: #121212;
  color: #fff;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-footer__status {
  min-height: 20px;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__status.is-success {
  color: #177245;
}

.site-footer__status.is-error {
  color: #b12525;
}

.site-footer__meta {
  display: grid;
  gap: 22px;
  align-content: start;
}

.site-footer__social,
.site-footer__payments {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 2px;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  background: #f5f4ef;
  border-color: #121212;
  transform: translateY(-1px);
}

.site-footer__social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer__social a[aria-label="Facebook"] svg,
.site-footer__social a[aria-label="TikTok"] svg {
  fill: currentColor;
  stroke: none;
}

.site-footer__region {
  display: grid;
  gap: 6px;
}

.site-footer__region-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer__select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cfcfc9;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.site-footer__select:focus {
  outline: 1px solid var(--text);
  outline-offset: 0;
}

.site-footer__language {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.site-footer__payment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 70px;
  min-height: 50px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #f8f8f6;
  color: #121212;
}

.site-footer__payment img {
  display: block;
  max-width: 70px;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-footer__legal {
  border-top: 1px solid var(--line);
  padding: 18px 24px 24px;
}

.site-footer__legal p {
  width: min(1180px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
  text-align: center;
}

.site-footer__legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 920px) {
  .top-bar {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 0;
  }

  .header-search__form {
    grid-template-columns: 1fr;
  }

  .header-search__submit {
    width: 100%;
  }

  .brand,
  .utility-nav {
    justify-self: center;
  }

  .main-nav {
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 0 18px;
    min-height: auto;
  }

  .nav-dropdown__menu {
    left: 0;
  }

  .hero-art {
    min-height: 320px;
  }

  .hero-image {
    height: 320px;
    min-height: 320px;
  }

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

  .customer-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .connect-page__grid {
    grid-template-columns: 1fr;
  }

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

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

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

  .checkout-shell {
    width: min(100% - 48px, 1180px);
    grid-template-columns: 1fr;
  }

  .product-detail {
    width: min(100% - 48px, 1180px);
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-detail__media {
    flex-direction: column-reverse;
  }

  .product-detail__thumbs {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(88px, 88px));
  }

  .admin-panel__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-panel__actions {
    flex-wrap: wrap;
  }

  .variant-editor__grid {
    grid-template-columns: 1fr;
  }

  .admin-pagination {
    justify-content: flex-start;
  }

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

@media (max-width: 640px) {
  .site-footer__form {
    grid-template-columns: 1fr;
  }

  .site-footer__submit {
    width: 100%;
  }

  .site-footer__social a,
  .site-footer__payment {
    min-width: 46px;
    width: auto;
  }

  .site-footer__payments {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .top-bar,
  .main-nav {
    width: min(100% - 24px, 1180px);
  }

  .admin-main {
    width: min(100% - 24px, 1180px);
  }

  .login-shell {
    padding: 28px 0 44px;
  }

  .login-card {
    padding: 28px 22px;
  }

  .login-card h1 {
    font-size: 2.4rem;
  }

  .dashboard-shell {
    padding: 28px 0 44px;
  }

  .dashboard-intro h1 {
    font-size: 2.5rem;
  }

  .section-heading {
    width: min(100% - 24px, 1180px);
    margin-top: 22px;
  }

  .featured-products {
    width: calc(100% - 24px);
    margin-top: 18px;
    padding-bottom: 32px;
  }

  .products-hero,
  .products-index {
    width: calc(100% - 24px);
  }

  .checkout-shell {
    width: calc(100% - 24px);
    padding: 34px 0 44px;
  }

  .product-detail {
    width: calc(100% - 24px);
    padding: 34px 0 44px;
  }

  .modal-card {
    padding: 22px;
  }

  .modal-form__actions {
    flex-direction: column-reverse;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .featured-products__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .products-hero {
    padding: 34px 0 20px;
  }

  .products-hero h1 {
    font-size: 2.4rem;
  }

  .products-index__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .checkout-card {
    padding: 22px;
  }

  .checkout-card h1,
  .checkout-card h2 {
    font-size: 2.1rem;
  }

  .checkout-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .checkout-item__remove {
    grid-column: 2;
    justify-self: start;
  }

  .checkout-form__grid {
    grid-template-columns: 1fr;
  }

  .product-detail__content h1 {
    font-size: 2.5rem;
  }

  .utility-nav {
    gap: 14px;
    font-size: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav {
    gap: 16px;
    font-size: 0.84rem;
  }

  .nav-dropdown__menu {
    min-width: 170px;
  }

  .hero-art {
    min-height: 250px;
  }

  .hero-image {
    height: 250px;
    min-height: 250px;
  }
}
