:root {
  --bg: #faf8f6;
  --bg-elevated: #ffffff;
  --text: #1c1917;
  --muted: #57534e;
  --accent: #9d6b5c;
  --accent-hover: #7d5649;
  --error: #b91c1c;
  --success: #166534;
  --border: #e7e2dd;
  --ring: rgba(157, 107, 92, 0.45);
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  /* Funnel CTAs: dark primary + neutral outline secondary (common checkout pattern) */
  --cta-on-primary: #fafaf9;
  --cta-primary-bg: #1c1917;
  --cta-primary-bg-hover: #292524;
  --cta-primary-shadow: 0 2px 8px rgba(28, 25, 23, 0.14);
  --cta-primary-shadow-hover: 0 4px 16px rgba(28, 25, 23, 0.18);
  --cta-secondary-border: #d6d3d1;
  --cta-secondary-bg-hover: #f5f5f4;
  --cta-secondary-border-hover: #a8a29e;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: rgba(157, 107, 92, 0.2);
  touch-action: manipulation;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.skip-link:focus:not(:focus-visible) {
  box-shadow: none;
}

.skip-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

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

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.nav-cart__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
}

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

.content {
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.content:focus {
  outline: none;
}

.flashes-wrap {
  margin-bottom: 1rem;
}

.flashes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.flash-error {
  background: #fee2e2;
  color: var(--error);
}

.flash-success {
  background: #dcfce7;
  color: var(--success);
}

.hero--shop {
  text-align: center;
  padding: 2.5rem 0 2rem;
  max-width: 36rem;
  margin: 0 auto;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.hero__lead {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.product-grid-section {
  margin-top: 1rem;
}

.product-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.product-card {
  margin: 0;
}

.product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-card__link:hover {
  border-color: #d4cbc4;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.06);
}

.product-card__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.product-card__visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #efe8e4 0%, #e0d6cf 100%);
}

.product-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.85rem 1rem 0.25rem;
}

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

.product-detail {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 48rem) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
  }
}

.product-detail__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  background: linear-gradient(160deg, #efe8e4 0%, #dccfc6 100%);
  border: 1px solid var(--border);
}

.product-detail__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__info h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0.25rem 0 0.5rem;
  text-wrap: balance;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0;
}

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

.product-detail__desc {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 32rem;
}

.add-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.add-form input[type="number"] {
  width: 5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.add-form input:focus-visible,
.profile-form input:focus-visible,
.login-form input:focus-visible,
.pay-form input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.product-detail__back {
  margin-top: 2rem;
}

.product-detail__back a {
  color: var(--accent);
  text-decoration: none;
}

.product-detail__back a:hover {
  text-decoration: underline;
}

.page-section h1,
.card h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

.page-section--narrow {
  max-width: 28rem;
}

.lead {
  color: var(--muted);
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}

.card--subtle {
  box-shadow: none;
}

.card--auth {
  max-width: 22rem;
  margin: 2rem auto;
}

.login-form label,
.profile-form label,
.pay-form label {
  display: block;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.login-form input,
.profile-form input,
.pay-form input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
}

.pay-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  border-color: #d4cbc4;
  background: #faf8f6;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-secondary:hover {
  background: rgba(28, 25, 23, 0.04);
  border-color: var(--text);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.btn-ghost:hover {
  background: transparent;
  color: var(--accent-hover);
  border-color: transparent;
}

.btn-lg {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
  align-items: center;
}

.button-row--stack {
  flex-direction: column;
  align-items: stretch;
}

.button-row .btn,
.button-row .btn-cta-primary,
.button-row .btn-cta-accent,
.button-row .btn-cta-secondary {
  margin-top: 0;
}

.btn-small {
  width: auto;
  margin-top: 0.75rem;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

.inline-logout {
  display: inline;
  margin: 0;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}

.link-button:hover {
  color: var(--accent-hover);
}

.link-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: 4px;
}

.btn-text {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.btn-text:hover {
  color: var(--accent);
}

.btn-text:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: 4px;
}

.btn-text--danger {
  color: #78716c;
}

.btn-text--danger:hover {
  color: var(--error);
}

.btn-text--drawer {
  margin-top: 0.35rem;
  display: inline-block;
}

.cart-line__main .btn-text--danger {
  margin: 0.4rem 0 0;
  display: inline-block;
}

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

.cart-drawer__remove-form {
  margin: 0.25rem 0 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.mono {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.site-footer p {
  margin: 0;
}

.cart-lines {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.cart-bag .cart-lines {
  margin-bottom: 0;
}

.cart-line {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-line__thumb-wrap {
  flex: 0 0 4.5rem;
  align-self: flex-start;
}

.cart-line__thumb {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.cart-line__thumb--placeholder {
  background: linear-gradient(145deg, #efe8e4 0%, #e0d6cf 100%);
}

.cart-line__main {
  flex: 1 1 12rem;
  min-width: 0;
}

.cart-line__qty {
  flex: 0 0 auto;
}

.cart-line__sub {
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  font-weight: 600;
}

.cart-line__main a {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.cart-line__main a:hover {
  color: var(--accent);
}

.cart-line__qty label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.cart-line__qty input {
  width: 3.5rem;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.cart-total {
  font-size: 1.1rem;
  margin: 1rem 0;
}

.cart-summary--cta {
  padding: 1.5rem 1.35rem 1.35rem;
}

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

.cart-summary__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.cart-summary__amount {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.cart-summary__note {
  margin: 0.75rem 0 1.15rem;
  line-height: 1.45;
}

.cart-summary__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-summary__trust {
  margin: -0.15rem 0 0;
  text-align: center;
  line-height: 1.4;
}

/* Block CTAs (cart, checkout, stacked PDP) */
.btn-cta--block {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}

/* Primary: solid, high contrast, ≥48px touch target */
a.btn-cta-primary,
button.btn-cta-primary {
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  min-height: 3.25rem;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: 10px;
  background-color: var(--cta-primary-bg);
  color: var(--cta-on-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.015em;
  line-height: 1.3;
  box-shadow: var(--cta-primary-shadow);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

a.btn-cta-primary:hover,
button.btn-cta-primary:hover {
  background-color: var(--cta-primary-bg-hover);
  color: var(--cta-on-primary);
  box-shadow: var(--cta-primary-shadow-hover);
  transform: translateY(-1px);
}

a.btn-cta-primary:focus-visible,
button.btn-cta-primary:focus-visible {
  outline: none;
  box-shadow: var(--cta-primary-shadow), 0 0 0 3px var(--ring);
}

/* Brand primary (e.g. Add to bag on PDP) */
a.btn-cta-accent,
button.btn-cta-accent {
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  min-height: 3.25rem;
  padding: 0.875rem 1.25rem;
  border: 1px solid rgba(40, 30, 28, 0.12);
  border-radius: 10px;
  background-color: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.015em;
  line-height: 1.3;
  box-shadow: 0 2px 10px rgba(157, 107, 92, 0.28);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

a.btn-cta-accent:hover,
button.btn-cta-accent:hover {
  background-color: var(--accent-hover);
  border-color: rgba(40, 30, 28, 0.15);
  color: #fff;
  box-shadow: 0 4px 14px rgba(157, 107, 92, 0.35);
  transform: translateY(-1px);
}

a.btn-cta-accent:focus-visible,
button.btn-cta-accent:focus-visible {
  outline: none;
  box-shadow: 0 2px 10px rgba(157, 107, 92, 0.28), 0 0 0 3px var(--ring);
}

/* Secondary: outlined, same geometry as primary */
a.btn-cta-secondary,
button.btn-cta-secondary {
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  min-height: 3.25rem;
  padding: 0.8125rem 1.25rem;
  border: 1.5px solid var(--cta-secondary-border);
  border-radius: 10px;
  background-color: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

a.btn-cta-secondary:hover,
button.btn-cta-secondary:hover {
  background-color: var(--cta-secondary-bg-hover);
  border-color: var(--cta-secondary-border-hover);
  color: var(--text);
  box-shadow: 0 2px 6px rgba(28, 25, 23, 0.06);
  transform: translateY(-1px);
}

a.btn-cta-secondary:focus-visible,
button.btn-cta-secondary:focus-visible {
  outline: none;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 0 0 3px var(--ring);
}

@media (prefers-reduced-motion: reduce) {
  a.btn-cta-primary:hover,
  button.btn-cta-primary:hover,
  a.btn-cta-accent:hover,
  button.btn-cta-accent:hover,
  a.btn-cta-secondary:hover,
  button.btn-cta-secondary:hover {
    transform: none;
  }
}

.summary-lines {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.order-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-card {
  padding: 1.25rem;
}

.order-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.order-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #f0ebe7;
  color: var(--muted);
}

.order-status--fulfilled {
  background: #dcfce7;
  color: var(--success);
}

.order-status--shipped {
  background: #dbeafe;
  color: #1d4ed8;
}

.order-status--refunded {
  background: #f3e8ff;
  color: #6b21a8;
}

.order-status--pending_payment {
  background: #fef3c7;
  color: #92400e;
}

.order-status--cancelled {
  background: #fee2e2;
  color: var(--error);
}

.order-card__total {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.order-card__lines {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.account-greeting {
  margin-bottom: 1.5rem;
}

.account-tiles {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 40rem) {
  .account-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.account-tile {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 1.25rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-tile:hover {
  border-color: #d4cbc4;
  box-shadow: 0 6px 20px rgba(28, 25, 23, 0.05);
}

.account-tile:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.account-tile__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.pay-summary {
  margin-bottom: 1.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.hero__actions .btn {
  margin-top: 0;
  min-width: 11rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

.section-head .section-title {
  margin: 0;
}

.section-head__meta {
  margin: 0;
  font-size: 0.88rem;
}

.product-grid--featured {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 52rem) {
  .product-grid--featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 2rem;
  }
}

.product-card--large .product-card__visual {
  aspect-ratio: 16 / 11;
  min-height: 14rem;
}

.product-card__copy {
  padding: 1.25rem 1.35rem 1.35rem;
}

.product-card--large .product-card__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.product-card__desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.product-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  font-weight: 600;
}

.product-card__chev {
  color: var(--accent);
  font-weight: 400;
}

/* Main shop — refined hover (transform + shadow; honor reduced motion below) */
.product-grid--featured .product-card__link {
  transition:
    transform 0.55s cubic-bezier(0.19, 1, 0.22, 1),
    border-color 0.4s ease,
    box-shadow 0.55s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-grid--featured .product-card__link:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(28, 25, 23, 0.09);
  border-color: #d8cfc8;
}

.product-grid--featured .product-card__img {
  transition: transform 0.75s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-grid--featured .product-card__link:hover .product-card__img {
  transform: scale(1.04);
}

.product-grid--featured .product-card__chev {
  transition:
    transform 0.45s cubic-bezier(0.19, 1, 0.22, 1),
    color 0.35s ease;
}

.product-grid--featured .product-card__link:hover .product-card__chev {
  transform: translateX(5px);
  color: var(--accent-hover);
}

@media (prefers-reduced-motion: reduce) {
  .product-grid--featured .product-card__link,
  .product-grid--featured .product-card__img,
  .product-grid--featured .product-card__chev {
    transition-duration: 0.01ms;
  }

  .product-grid--featured .product-card__link:hover,
  .product-grid--featured .product-card__link:hover .product-card__img,
  .product-grid--featured .product-card__link:hover .product-card__chev {
    transform: none;
  }
}

body.cart-drawer-open {
  overflow: hidden;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  visibility: hidden;
}

.cart-drawer[aria-hidden="false"],
body.cart-drawer-open .cart-drawer {
  pointer-events: auto;
  visibility: visible;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.cart-drawer-open .cart-drawer__backdrop {
  opacity: 1;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 22rem);
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(28, 25, 23, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  overscroll-behavior: contain;
}

body.cart-drawer-open .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.cart-drawer__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0;
}

.cart-drawer__close {
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.cart-drawer__close:hover {
  color: var(--text);
}

.cart-drawer__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.cart-drawer__body {
  padding: 1rem 1.1rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.cart-drawer__lines {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.cart-drawer__line {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-drawer__thumb-wrap {
  flex-shrink: 0;
}

.cart-drawer__thumb {
  display: block;
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.cart-drawer__thumb--placeholder {
  background: linear-gradient(145deg, #efe8e4 0%, #e0d6cf 100%);
}

.cart-drawer__line-text {
  min-width: 0;
  flex: 1;
}

.cart-drawer__line a {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.cart-drawer__line a:hover {
  color: var(--accent);
}

.cart-drawer__total {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.cart-drawer__actions .btn {
  margin-top: 0.5rem;
}

.site-footer--rich {
  text-align: left;
  padding: 2.5rem 1.25rem 1.5rem;
}

.site-footer__grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer__brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}

.site-footer__heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.65rem;
  color: var(--muted);
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer__links a:hover {
  color: var(--accent);
}

.site-footer__links li {
  margin-bottom: 0.45rem;
}

.site-footer__legal {
  max-width: 72rem;
  margin: 2rem auto 0;
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.page-header-block {
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

.page-header-block--left {
  margin-left: 0;
  text-align: left;
}

.page-header-block .page-header-block__lead {
  margin: 0;
  line-height: 1.5;
}

.profile-page__grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 56rem) {
  .profile-page__grid {
    grid-template-columns: 1fr 16rem;
  }
}

.profile-form .form-section-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.25rem;
}

.profile-form .form-section-title:first-of-type {
  margin-top: 0;
}

.optional-label {
  font-weight: 400;
  color: var(--muted);
}

.profile-aside__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.profile-aside__links {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.profile-aside__links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.profile-aside__links li {
  margin-bottom: 0.4rem;
}

.auth-layout {
  display: flex;
  justify-content: center;
  padding: 1rem 0 2rem;
}

.auth-help {
  margin-top: 1.25rem;
}

.auth-help a {
  color: var(--accent);
}

.delivery-panel {
  margin-bottom: 2rem;
  padding: 1.35rem 1.5rem;
}

.delivery-panel__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}

.delivery-panel__note {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.delivery-line {
  margin: 0.2rem 0;
}

.order-card__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  align-items: flex-start;
}

.order-card__date {
  font-weight: 600;
  margin: 0;
}

.order-card__ref {
  margin: 0.15rem 0 0;
}

.order-ship {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: #faf8f6;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.order-ship__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.contact-layout {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
}

@media (min-width: 48rem) {
  .contact-layout {
    grid-template-columns: 1fr 16rem;
  }
}

.contact-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 8rem;
}

.contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.support-aside__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.support-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.support-list li {
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}

.empty-state {
  padding: 2rem 1.5rem;
  text-align: center;
}

.empty-state .button-row {
  justify-content: center;
}

.empty-state__cta {
  max-width: 16rem;
  margin-inline: auto;
}

.checkout-foot {
  margin-top: 1rem;
  text-align: center;
}

.checkout-foot a {
  color: var(--accent);
  text-decoration: none;
}

.product-detail__trust a {
  color: var(--accent);
  text-decoration: none;
}

.pay-form .btn-cta-primary {
  margin-top: 1.5rem;
}
