/*
 * Copyright (c) 2026 Salem Experience Design.
 * Design and implementation by Salem Experience Design. All rights reserved unless otherwise agreed in writing.
 * Production storefront stylesheet.
 */
:root {
  --bg: #f7f2ec;
  --paper: #fffdf9;
  --paper-soft: #fbf7f1;
  --ink: #211f1d;
  --muted: #746b62;
  --line: rgba(70, 54, 40, 0.16);
  --accent: #9f7255;
  --accent-dark: #4b3327;
  --shadow: 0 22px 70px rgba(58, 43, 31, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 56px);
  background: rgba(247, 242, 236, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.top-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

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

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

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

.lang-button,
.filter-button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.lang-button.is-active,
.filter-button.is-active {
  color: #fff;
  background: var(--accent-dark);
}

.cart-button,
.account-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: var(--accent-dark);
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.cart-button svg,
.account-button svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-button strong {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  color: var(--accent-dark);
  background: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
}

.account-button {
  color: var(--accent-dark);
  background: var(--paper);
  border-color: var(--line);
}

main {
  padding: 0 clamp(18px, 5vw, 56px) 64px;
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: 1320px;
  margin: 0 auto;
  min-height: min(720px, calc(100svh - 94px));
  padding: clamp(42px, 7vw, 88px) 0 34px;
}

.hero-copy {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.hero-copy h1,
.section-head h2,
.story-section h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 640px;
  font-size: clamp(3.2rem, 6.4vw, 6.4rem);
  line-height: 0.92;
}

.hero-copy p,
.section-head p,
.story-section p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-copy p {
  max-width: 440px;
  margin: 22px 0 0;
}

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

.hero-visual {
  position: relative;
  min-height: clamp(440px, 45vw, 620px);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(180deg, rgba(255, 253, 249, 0), rgba(33, 31, 29, 0.28));
}

.hero-visual-note {
  position: absolute;
  right: clamp(18px, 3vw, 30px);
  bottom: clamp(18px, 3vw, 30px);
  left: clamp(18px, 3vw, 30px);
  z-index: 1;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(70, 54, 40, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(58, 43, 31, 0.16);
  backdrop-filter: blur(12px);
}

.hero-visual-note img {
  width: 64px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: contain;
}

.hero-visual-note p:not(.product-type) {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.product-type,
.card-category {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.05;
}

.product-card p:not(.card-category) {
  color: var(--muted);
  line-height: 1.6;
}

.featured-actions,
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.featured-actions strong,
.card-actions strong {
  color: var(--accent-dark);
  font-size: 1.02rem;
}

.product-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px 0 24px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-head h2,
.story-section h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.section-head p {
  margin: 10px 0 0;
}

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

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

.product-card-open {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
}

.product-card-open img,
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
}

.product-card-body {
  padding: 18px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--accent-dark);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  max-width: 1240px;
  margin: 48px auto 0;
  padding: clamp(26px, 4vw, 48px);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.story-media {
  overflow: hidden;
  min-height: clamp(430px, 42vw, 560px);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(58, 43, 31, 0.12);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-section p {
  max-width: 600px;
}

.story-section p + p {
  margin-top: 14px;
}

.story-signature {
  max-width: 560px;
  margin-top: 22px;
  padding: 18px 20px;
  color: var(--accent-dark);
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.35;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  max-width: 1320px;
  margin: 8px auto 0;
  padding: 26px clamp(18px, 5vw, 56px) 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.45;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  justify-self: start;
}

.site-footer p:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer nav:not(.footer-social) {
  justify-self: center;
}

.footer-social {
  justify-self: end;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--accent-dark);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.footer-social a:hover {
  color: #fff;
  background: var(--accent-dark);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-social svg rect,
.footer-social svg circle,
.footer-social svg path[d^="M16.8"] {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.footer-social svg path {
  fill: currentColor;
}

.site-footer a,
.consent-check a {
  color: var(--accent-dark);
  font-weight: 850;
  text-underline-offset: 3px;
}

.cart-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  width: min(100%, 420px);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

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

.cart-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  background: var(--paper);
  box-shadow: -20px 0 80px rgba(39, 29, 22, 0.18);
}

.cart-head,
.cart-row,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}

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

.cart-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
}

.cart-row p,
.cart-row .line-note,
.cart-empty p {
  margin: 0;
  color: var(--muted);
}

.cart-row .line-note,
.order-items .line-note {
  display: block;
  margin-top: 5px;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.45;
}

.cart-total {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.checkout-button {
  width: 100%;
  margin-top: 0;
}

.checkout-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.checkout-form input,
.checkout-form textarea,
.engraving-field textarea {
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.checkout-form textarea {
  resize: vertical;
}

.engraving-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.engraving-field[hidden] {
  display: none;
}

.engraving-field label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.engraving-field textarea {
  min-height: 76px;
  resize: vertical;
}

.engraving-field p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.checkout-message {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  background: rgba(33, 31, 29, 0.24);
}

.cart-panel.is-open + .cart-overlay {
  display: block;
}

.cart-panel {
  width: min(100%, 560px);
}

.cart-panel-inner {
  gap: 16px;
  overflow-y: auto;
}

.cart-kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-steps li {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.checkout-steps button {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  color: var(--muted);
  background: var(--paper-soft);
  border: 0;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.checkout-steps li.is-active button {
  color: #fff;
  background: var(--accent-dark);
}

.checkout-steps li.is-complete button {
  color: var(--accent-dark);
  background: #fff;
}

.checkout-steps button:disabled {
  cursor: default;
  opacity: 1;
}

.cart-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.cart-row-image {
  width: 76px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.cart-row-main {
  min-width: 0;
}

.cart-row-main h3 {
  margin: 0 0 4px;
}

.cart-row-end {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 30px 34px 30px;
  align-items: center;
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.quantity-control button {
  height: 30px;
  color: var(--accent-dark);
  background: transparent;
  border: 0;
  font-weight: 900;
}

.quantity-control button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.quantity-control span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
}

.text-link {
  padding: 0;
  color: var(--accent-dark);
  background: transparent;
  border: 0;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.cart-summary strong,
.cart-total strong {
  color: var(--ink);
}

.cart-summary .cart-total {
  margin: 0;
  padding-top: 10px;
}

.cart-account {
  display: grid;
  gap: 10px;
  padding: 14px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-account p {
  margin: 0;
  line-height: 1.5;
}

.cart-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-actions,
.checkout-form-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
}

.cart-actions[hidden],
.checkout-form[hidden],
.cart-account[hidden] {
  display: none;
}

.checkout-form-head {
  display: grid;
  gap: 5px;
  margin-bottom: 2px;
}

.checkout-form-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.checkout-form-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.checkout-grid .full,
.account-form button,
.account-form .full {
  grid-column: 1 / -1;
}

.consent-list {
  display: grid;
  gap: 8px;
  margin: 3px 0;
}

.checkout-consents {
  margin: 2px 0 4px;
}

.consent-check,
.account-form .consent-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.consent-check input,
.account-form .consent-check input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--accent-dark);
}

.consent-check span {
  min-width: 0;
}

.checkout-form input[readonly],
.account-form input[readonly] {
  color: var(--muted);
  background: var(--paper-soft);
}

.account-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 48;
  width: min(100%, 580px);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

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

.account-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: 22px;
  overflow-y: auto;
  background: var(--paper);
  box-shadow: -20px 0 80px rgba(39, 29, 22, 0.18);
}

.account-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  background: rgba(33, 31, 29, 0.28);
}

.account-panel.is-open + .account-overlay {
  display: block;
}

.account-content,
.account-orders {
  display: grid;
  gap: 14px;
}

.account-order-group {
  display: grid;
  gap: 10px;
}

.account-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.account-tabs button {
  min-height: 38px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.account-tabs button.is-active {
  color: #fff;
  background: var(--accent-dark);
}

.account-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.account-form input {
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.account-summary,
.order-card {
  padding: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.account-summary div {
  display: grid;
  gap: 3px;
}

.account-summary span,
.order-card p,
.tracking-box span {
  color: var(--muted);
}

.account-orders h3,
.account-order-group h4,
.order-card h3 {
  margin: 0;
}

.account-order-group h4 {
  color: var(--accent-dark);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-card {
  display: grid;
  gap: 12px;
}

.order-card-head,
.order-items div,
.tracking-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-chip {
  padding: 6px 9px;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.order-items {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.tracking-box {
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}

.tracking-box a {
  color: var(--accent-dark);
  font-weight: 900;
}

.account-details {
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-details summary {
  display: grid;
  gap: 3px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.account-details summary small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.account-details .account-form {
  margin-top: 14px;
}

.account-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-message.is-error {
  color: #9f2f24;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 40px);
  pointer-events: none;
}

.product-modal.is-open {
  display: flex;
}

.product-modal-window {
  position: relative;
  z-index: 65;
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(20px, 4vw, 42px);
  width: min(100%, 1020px);
  max-height: min(86vh, 820px);
  overflow: auto;
  padding: clamp(16px, 3vw, 28px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(34, 27, 22, 0.24);
}

.product-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 253, 249, 0.9);
}

.product-modal-media {
  display: grid;
  gap: 12px;
}

.product-modal-media > img {
  width: 100%;
  aspect-ratio: 1 / 1.04;
  object-fit: cover;
  border-radius: 6px;
}

.product-thumbs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.product-thumbs button {
  flex: 0 0 72px;
  padding: 3px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.product-thumbs button.is-active {
  border-color: var(--accent-dark);
}

.product-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

.product-modal-copy {
  align-self: center;
  padding-right: 22px;
}

.product-modal-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
}

.product-modal-copy > p:not(.product-type) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.product-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 24px 0 0;
  max-width: 260px;
}

.product-facts div {
  padding: 12px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.product-facts dt,
.product-facts dd {
  margin: 0;
}

.product-facts dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.product-facts dd {
  margin-top: 5px;
  font-weight: 800;
}

.product-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  background: rgba(33, 31, 29, 0.42);
}

.product-modal.is-open + .product-modal-overlay {
  display: block;
}

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

  .top-nav,
  .header-actions {
    justify-content: flex-start;
  }

  .shop-hero,
  .hero-visual,
  .story-section,
  .product-modal-window {
    grid-template-columns: 1fr;
  }

  .shop-hero {
    min-height: 0;
  }

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

@media (max-width: 680px) {
  .brand span {
    display: inline;
    max-width: 106px;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px 12px;
  }

  .top-nav {
    display: none;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .header-actions {
    justify-content: flex-end;
    gap: 6px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .cart-button span,
  .account-button span {
    display: none;
  }

  .cart-button,
  .account-button,
  .primary-button {
    min-height: 38px;
    padding: 0 11px;
  }

  .language-switcher {
    padding: 2px;
  }

  .lang-button {
    min-height: 31px;
    padding: 0 9px;
  }

  main {
    padding: 0 14px 38px;
  }

  .shop-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 0 12px;
  }

  .hero-copy h1 {
    max-width: 11.2ch;
    font-size: clamp(2.15rem, 10vw, 2.9rem);
    line-height: 1;
  }

  .hero-copy p {
    max-width: 33ch;
    margin-top: 10px;
    font-size: 0.93rem;
    line-height: 1.52;
  }

  .hero-actions {
    gap: 9px;
    margin-top: 16px;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    min-height: 38px;
    padding: 0 13px;
  }

  .hero-visual {
    min-height: 0;
    aspect-ratio: 1.8 / 1;
    box-shadow: 0 12px 34px rgba(58, 43, 31, 0.1);
  }

  .hero-visual > img {
    object-position: 44% center;
  }

  .hero-visual-note {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .hero-visual-note img {
    width: 46px;
  }

  .hero-visual-note .product-type {
    margin-bottom: 4px;
    font-size: 0.62rem;
  }

  .hero-visual-note p:not(.product-type) {
    max-width: none;
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.35;
    text-align: left;
  }

  .story-section,
  .product-modal-window {
    padding: 12px;
  }

  .story-media {
    min-height: 0;
  }

  .story-media img {
    aspect-ratio: 1 / 0.72;
    height: auto;
  }

  .featured-actions {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
  }

  .featured-actions strong {
    white-space: nowrap;
  }

  .featured-actions .primary-button {
    width: auto;
    min-width: 112px;
    min-height: 36px;
    padding: 0 12px;
  }

  .product-modal-copy {
    padding-right: 0;
  }

  .product-facts {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
  }

  .product-section {
    padding-top: 10px;
  }

  .section-head h2,
  .story-section h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .section-head p {
    margin-top: 8px;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .filter-tabs {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

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

  .story-section {
    margin-top: 28px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
    margin-top: 0;
    padding: 22px 14px 30px;
  }

  .site-footer p:first-child,
  .site-footer p:last-child,
  .site-footer nav:not(.footer-social),
  .footer-social {
    grid-column: auto;
    justify-self: start;
    text-align: left;
  }

  .cart-panel-inner,
  .account-panel-inner {
    padding: 18px;
  }

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

  .cart-row-end {
    grid-column: 2;
    justify-items: start;
  }

  .checkout-grid,
  .account-form,
  .cart-actions,
  .checkout-form-footer {
    grid-template-columns: 1fr;
  }

  .account-summary,
  .order-card-head,
  .tracking-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .brand span {
    display: none;
  }
}

@media (max-width: 380px) {
  .lang-button {
    padding: 0 7px;
  }

  .cart-button,
  .account-button {
    padding: 0 9px;
  }

  .featured-actions .primary-button {
    min-width: 116px;
    padding: 0 10px;
    font-size: 0.86rem;
  }
}
