:root {
  --bg: #f7f1e8;
  --paper: #fffaf2;
  --ink: #2a211b;
  --muted: #74675c;
  --line: #ded1c2;
  --accent: #8a5a44;
  --accent-dark: #5e3b2d;
  --radius: 28px;
  --shadow: 0 24px 60px rgba(42, 33, 27, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(247, 241, 232, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(222, 209, 194, .7);
}
.brand { font-family: Georgia, serif; font-size: 1.35rem; letter-spacing: .02em; }
.nav { display: flex; gap: 22px; color: var(--muted); font-size: .95rem; }
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,250,242,.72);
}
.language-button {
  min-width: 42px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
}
.language-button.active {
  background: var(--accent);
  color: #fffaf2;
}
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-dark);
  font-weight: 800;
}
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf2;
  font-size: .75rem;
  line-height: 1;
}
.mobile-cart-bar {
  display: none;
}
.back-to-top {
  position: fixed;
  right: clamp(18px, 3vw, 36px);
  bottom: clamp(18px, 3vw, 36px);
  z-index: 18;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 250, 242, .55);
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fffaf2;
  box-shadow: 0 12px 30px rgba(42, 33, 27, .22);
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent);
}
.back-to-top:focus-visible,
.mobile-cart-bar:focus-visible {
  outline: 3px solid rgba(138, 90, 68, .35);
  outline-offset: 3px;
}
.menu-button { display: none; background: transparent; border: 0; font-size: 1.6rem; }

.section { padding: clamp(56px, 8vw, 112px) clamp(18px, 5vw, 72px); }
.hero {
  min-height: 86vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 52px);
  align-items: start;
  padding-top: clamp(24px, 4vw, 44px);
}
.hero-copy { max-width: 920px; }
.hero h1 { font-family: Georgia, serif; font-size: clamp(2.35rem, 5.8vw, 5rem); line-height: 1.02; margin: 0 0 24px; max-width: 880px; }
.hero p { max-width: 650px; color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-weight: 700;
}
.button.primary { background: var(--accent); color: #fffaf2; }
.button.ghost { color: var(--accent-dark); }
.hero-cover {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--paper);
}
.hero-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.shop-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin: -8px 0 24px;
}
.shop-toolbar label {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}
.shop-toolbar select {
  min-width: 260px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 42px 12px 14px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.shop-toolbar select:focus-visible {
  outline: 3px solid rgba(173, 117, 84, .22);
  border-color: var(--accent);
}
h2 { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 4rem); margin: 0; }
.about-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-copy {
  max-width: 900px;
}
.about-copy p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-image { height: 360px; border-radius: 18px; background: #fff; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(222, 209, 194, .7); }
button.product-image {
  position: relative;
  width: 100%;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.product-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
button.product-image::after {
  content: attr(data-detail-label);
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(42, 33, 27, .74);
  color: #fffaf2;
  font-size: .78rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
button.product-image:hover::after,
button.product-image:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.product-meta { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 18px 4px 10px; }
.product-meta h3 { margin: 3px 0 6px; line-height: 1.25; }
.product-meta p { margin: 0; color: var(--muted); }
.product-meta strong { white-space: nowrap; }
.product-code { display: inline-block; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.stock-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 1.7em;
  margin: 0 4px 12px;
}
.stock-status {
  margin: 0;
  color: var(--accent-dark);
  font-size: .86rem;
  font-weight: 800;
}
.stock-status.low-stock {
  color: #b06b20;
}
.stock-status.sold-out {
  color: #a33a2f;
}
.product-card.sold-out {
  opacity: .86;
}
.product-card.sold-out .product-image img {
  filter: grayscale(.2) contrast(.95);
}
.product-card.sold-out .add-cart {
  background: #b7ada0;
  border-color: #b7ada0;
  color: #fffaf2;
}
.detail-stock-meta {
  margin: 0 0 16px;
}
.color-picker {
  display: grid;
  gap: 9px;
  padding: 0 4px 16px;
}
.color-picker > span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}
.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.color-swatch {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}
.color-swatch::after {
  content: '';
  position: absolute;
  z-index: 20;
  left: calc(100% + 10px);
  top: 50%;
  bottom: auto;
  width: 116px;
  height: 116px;
  border: 5px solid var(--paper);
  border-radius: 18px;
  background: var(--swatch-preview);
  box-shadow: 0 12px 32px rgba(42, 33, 27, .24);
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%) scale(.92);
  transition: opacity .16s ease, transform .16s ease;
}
.color-swatch:hover::after,
.color-swatch:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}
.color-swatch:nth-last-child(-n + 3)::after {
  right: calc(100% + 10px);
  left: auto;
  transform: translate(-8px, -50%) scale(.92);
}
.color-swatch:nth-last-child(-n + 3):hover::after,
.color-swatch:nth-last-child(-n + 3):focus-visible::after {
  transform: translate(0, -50%) scale(1);
}
.color-swatch.has-image-preview::after { display: none; }
.swatch-image-preview {
  position: absolute;
  z-index: 20;
  left: calc(100% + 10px);
  top: 50%;
  width: 116px;
  height: 116px;
  border: 5px solid var(--paper);
  border-radius: 18px;
  object-fit: cover;
  background: #f3eee7;
  box-shadow: 0 12px 32px rgba(42, 33, 27, .24);
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%) scale(.92);
  transition: opacity .16s ease, transform .16s ease;
}
.color-swatch:hover .swatch-image-preview,
.color-swatch:focus-visible .swatch-image-preview {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}
.color-swatch:nth-last-child(-n + 3) .swatch-image-preview {
  right: calc(100% + 10px);
  left: auto;
  transform: translate(-8px, -50%) scale(.92);
}
.color-swatch:nth-last-child(-n + 3):hover .swatch-image-preview,
.color-swatch:nth-last-child(-n + 3):focus-visible .swatch-image-preview {
  transform: translate(0, -50%) scale(1);
}
.color-swatch.pattern-swatch {
  width: 44px;
  height: 44px;
  padding: 0;
}
.color-swatch:disabled {
  cursor: not-allowed;
  opacity: .35;
}
.color-swatch span {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(42, 33, 27, .14);
  border-radius: 50%;
}
.color-swatch.selected {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 2px rgba(138, 90, 68, .2);
}
.nn013-selector {
  display: grid;
  gap: 14px;
  padding: 0 4px 16px;
}
.nn013-selector-group {
  display: grid;
  gap: 8px;
}
.nn013-selector-group > span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}
.nn013-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nn013-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.nn013-option b { font-size: .78rem; }
.nn013-option.selected {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 2px rgba(138, 90, 68, .18);
}
.nn013-option:disabled {
  cursor: not-allowed;
  opacity: .35;
}
.nn013-pattern-preview,
.nn013-color-preview {
  display: block;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(42, 33, 27, .14);
  border-radius: 9px;
}
.nn013-pattern-preview {
  overflow: hidden;
  background: #f3eee7;
}
.nn013-pattern-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nn013-pattern-option {
  position: relative;
}
.nn013-hover-preview {
  position: absolute;
  z-index: 20;
  left: calc(100% + 10px);
  top: 50%;
  bottom: auto;
  width: 140px;
  height: 140px;
  border: 5px solid var(--paper);
  border-radius: 18px;
  overflow: hidden;
  background: #f3eee7;
  box-shadow: 0 12px 32px rgba(42, 33, 27, .24);
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%) scale(.92);
  transition: opacity .16s ease, transform .16s ease;
}
.nn013-hover-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nn013-pattern-option:hover .nn013-hover-preview,
.nn013-pattern-option:focus-visible .nn013-hover-preview {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}
.nn013-pattern-option:nth-last-child(-n + 2) .nn013-hover-preview {
  right: calc(100% + 10px);
  left: auto;
  transform: translate(-8px, -50%) scale(.92);
}
.nn013-pattern-option:nth-last-child(-n + 2):hover .nn013-hover-preview,
.nn013-pattern-option:nth-last-child(-n + 2):focus-visible .nn013-hover-preview {
  transform: translate(0, -50%) scale(1);
}
.nn015-size-option {
  justify-content: center;
  min-width: 58px;
  padding: 8px 16px;
}
.nn015-color-option {
  position: relative;
}
.nn015-color-option:hover .nn013-hover-preview,
.nn015-color-option:focus-visible .nn013-hover-preview {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}
.nn015-color-option:nth-last-child(-n + 3) .nn013-hover-preview {
  right: calc(100% + 10px);
  left: auto;
  transform: translate(-8px, -50%) scale(.92);
}
.nn015-color-option:nth-last-child(-n + 3):hover .nn013-hover-preview,
.nn015-color-option:nth-last-child(-n + 3):focus-visible .nn013-hover-preview {
  transform: translate(0, -50%) scale(1);
}
.nn013-selection {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}
.nn013-selection strong { color: var(--accent-dark); }
.add-cart { width: 100%; cursor: pointer; }
.add-cart.added { background: var(--accent-dark); border-color: var(--accent-dark); }
.add-cart:disabled { cursor: not-allowed; opacity: .55; }

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
}
.product-modal.open {
  display: flex;
}
.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 33, 27, .58);
  backdrop-filter: blur(10px);
}
.product-modal-dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(42, 33, 27, .24);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(42, 33, 27, .14);
  border-radius: 50%;
  background: rgba(255,250,242,.9);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
}
.modal-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0 0 4px;
  border: 1px solid rgba(42, 33, 27, .16);
  border-radius: 50%;
  background: rgba(255, 250, 242, .94);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(42, 33, 27, .2);
  cursor: pointer;
  font: 2rem/1 Georgia, serif;
  transform: translateY(-50%);
  transition: background .16s ease, transform .16s ease;
}
.modal-nav:hover,
.modal-nav:focus-visible { background: #fff; transform: translateY(-50%) scale(1.06); }
.modal-prev { left: 12px; }
.modal-next { right: 12px; }
.modal-swipe-hint {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 4;
  display: none;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid rgba(255, 250, 242, .42);
  border-radius: 999px;
  background: rgba(42, 33, 27, .82);
  color: #fffaf2;
  box-shadow: 0 8px 24px rgba(42, 33, 27, .18);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.2;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
}
.modal-swipe-hint.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#productModalContent.swipe-next {
  animation: productSwipeNext .22s ease-out;
}
#productModalContent {
  touch-action: pan-y pinch-zoom;
  will-change: transform, opacity;
}
#productModalContent.is-dragging {
  opacity: var(--swipe-drag-opacity, 1);
  transform: translateX(var(--swipe-drag-x, 0));
  transition: none;
}
#productModalContent.swipe-previous {
  animation: productSwipePrevious .22s ease-out;
}
@keyframes productSwipeNext {
  from { opacity: .35; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes productSwipePrevious {
  from { opacity: .35; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, 1fr);
  gap: 24px;
  padding: 20px;
}
.product-detail-image {
  min-height: 520px;
  border: 1px solid rgba(222, 209, 194, .7);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.product-detail-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.product-detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 18px 18px 18px 0;
}
.product-detail-info h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}
.product-detail-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.product-detail-price {
  color: var(--accent-dark);
  font-size: 1.5rem;
  font-weight: 900;
}
.product-detail .color-picker {
  padding: 4px 0 0;
}

.cart-panel { background: var(--paper); margin: 0 clamp(18px, 5vw, 72px); border-radius: var(--radius); border: 1px solid var(--line); }
.cart-items { display: grid; gap: 12px; margin: 22px 0; }
.cart-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.quantity-control {
  display: inline-flex;
  align-items: center;
  min-width: 112px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,250,242,.75);
}
.quantity-control span {
  min-width: 36px;
  text-align: center;
  font-weight: 800;
}
.quantity-button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}
.quantity-button:hover {
  background: rgba(138, 90, 68, .12);
}
.cart-total { display: flex; justify-content: space-between; gap: 16px; font-size: 1.2rem; margin-bottom: 12px; }
.shipping-total {
  color: var(--accent-dark);
  font-size: 1rem;
}
.shipping-total strong,
.grand-total strong {
  max-width: 58%;
  text-align: right;
  overflow-wrap: anywhere;
}
.grand-total {
  margin-bottom: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}
.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.clear-cart {
  cursor: pointer;
  background: transparent;
}
.clear-cart:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.split { display: grid; grid-template-columns: .8fr 1fr; gap: 28px; align-items: start; }
.split p { color: var(--muted); font-size: 1.05rem; line-height: 1.9; margin: 0; }
.alt { background: #efe3d5; }
.order-section { background: var(--ink); color: var(--paper); }
.order-section .eyebrow { color: #d9c4ad; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.steps article { border: 1px solid rgba(255,250,242,.18); border-radius: 22px; padding: 22px; background: rgba(255,250,242,.04); }
.steps span { color: #d9c4ad; font-weight: 800; }
.steps p { line-height: 1.7; }
.checkout-form { margin-top: 28px; padding: 24px; border: 1px solid rgba(255,250,242,.18); border-radius: 22px; background: rgba(255,250,242,.05); }
.payment-confirmation {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(255,250,242,.28);
  border-radius: 18px;
  background: rgba(255,250,242,.08);
}
.payment-confirmation[hidden] { display: none; }
.confirmation-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 12px;
}
.confirmation-heading h3 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 1.55rem; }
.confirmation-heading .eyebrow { margin: 0; }
.confirmation-order-id { color: #f7eadb; overflow-wrap: anywhere; }
.confirmation-countdown { margin: 0 0 16px; color: #f7eadb; font-weight: 800; }
.payment-confirmation.expired .payment-box { display: none; }
.payment-confirmation.payment-reported .payment-box { display: none; }
.confirmation-actions { margin-top: 16px; }
.checkout-actions button:disabled { cursor: wait; opacity: .62; }
.form-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 18px; }
.form-heading h3, .order-summary-box h3 { margin: 0; font-family: Georgia, serif; font-size: 1.55rem; }
.form-heading p { margin: 0; color: #d9c4ad; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid label { display: grid; gap: 8px; color: #f7eadb; font-weight: 700; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea {
  width: 100%;
  border: 1px solid rgba(255,250,242,.2);
  border-radius: 14px;
  background: rgba(255,250,242,.95);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}
.form-grid textarea { resize: vertical; }
.order-summary-box { margin-top: 20px; display: grid; gap: 12px; }
.order-summary-box pre {
  white-space: pre-wrap;
  min-height: 150px;
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,250,242,.2);
  background: rgba(255,250,242,.95);
  color: var(--ink);
  font: 0.95rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.payment-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,250,242,.18);
  background: rgba(255,250,242,.06);
}
.payment-box h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 1.55rem; }
.payment-box p { margin: 0; color: #d9c4ad; line-height: 1.7; }
.payment-box .payment-note {
  margin-top: 12px;
  color: #fffaf2;
  font-weight: 800;
}
.payment-box img {
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  border: 8px solid rgba(255,250,242,.95);
  background: #fff;
  display: block;
  justify-self: end;
}
.checkout-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.button.light { border-color: rgba(255,250,242,.55); color: var(--paper); }
.copy-status { min-height: 1.4em; margin: 12px 0 0; color: #d9c4ad; }
.bot-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#captchaContainer { margin-top: 18px; }
.status-section, .privacy-section { max-width: 900px; margin: 0 auto; }
.status-form { display: grid; gap: 10px; max-width: 680px; }
.status-form-row { display: flex; gap: 10px; }
.status-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; font: inherit; text-transform: uppercase; }
.status-result { min-height: 1.5em; font-weight: 700; }
.privacy-section p { color: var(--muted); line-height: 1.8; }
.contact-section { text-align: center; }
.contact-section p { color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px clamp(18px, 4vw, 56px); color: var(--muted); border-top: 1px solid var(--line); }

.admin-header { justify-content: space-between; padding: 18px clamp(18px, 5vw, 72px); }
.admin-panel { max-width: 1200px; margin: 0 auto 72px; padding: 0 clamp(18px, 5vw, 72px); }
.admin-summary-section,
.admin-pos-section,
.admin-orders-section,
.admin-stock-section,
.admin-status-section { margin-bottom: 42px; }
.admin-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.admin-summary-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px; text-align: center; }
.admin-summary-card strong { display: block; margin-bottom: 10px; font-size: .9rem; color: var(--accent); }
.admin-summary-card span { font-size: 2rem; font-weight: 700; }
.admin-pos-card { display: grid; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 20px; }
.pos-order-rows { display: grid; gap: 12px; }
.pos-order-row { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr) 100px auto; gap: 12px; align-items: end; }
.pos-order-row label,
.pos-order-details label { display: grid; gap: 8px; }
.pos-order-row input,
.pos-order-row select,
.pos-order-details input,
.pos-order-details select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: #fffaf2; color: #2a2724; }
.pos-order-details { display: grid; grid-template-columns: 1fr 220px 1fr; gap: 12px; }
.pos-order-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.pos-order-footer strong { font-size: 1.25rem; }
.pos-total-summary { display: grid; grid-template-columns: auto minmax(180px, 220px); align-items: end; gap: 6px 16px; }
.pos-total-summary > span { align-self: center; }
.pos-total-summary label { display: grid; gap: 6px; font-weight: 700; }
.pos-total-summary input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: #fffaf2; color: #2a2724; font: inherit; font-weight: 700; }
.pos-total-summary small { grid-column: 2; color: var(--muted); }
.pos-total-summary small strong { font-size: inherit; color: var(--accent); }
.admin-controls { display: grid; grid-template-columns: 1fr 240px; gap: 16px; margin-bottom: 24px; }
.admin-controls label { display: grid; gap: 8px; color: var(--text); }
.admin-controls input,
.admin-controls select { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: #fffaf2; color: #2a2724; }
.admin-table-wrap { overflow-x: auto; }
.admin-orders-table,
.admin-stock-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-orders-table th,
.admin-orders-table td,
.admin-stock-table th,
.admin-stock-table td { border: 1px solid var(--line); padding: 14px 16px; text-align: left; }
.admin-orders-table th,
.admin-stock-table th { background: rgba(255,250,242,.8); }
.admin-orders-table td button.order-action { margin-right: 8px; }
.admin-stock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-stock-form-card,
.admin-stock-list-card { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 20px; }
.admin-stock-form { display: grid; gap: 16px; }
.admin-stock-row { display: grid; grid-template-columns: 1fr 1fr 120px auto; gap: 12px; align-items: end; }
.admin-stock-row label { display: grid; gap: 8px; }
.admin-stock-row input { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: #fffaf2; }
.stock-search { display: grid; gap: 8px; margin: 18px 0; }
.stock-search > label { font-weight: 700; }
.stock-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.stock-search input,
.stock-inline-input { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: #fffaf2; color: #2a2724; }
.stock-inline-input { width: 100px; }
.stock-inline-save { white-space: nowrap; }
.stock-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-status-message { min-height: 1.8rem; margin-top: 12px; color: var(--text); font-weight: 700; }
.admin-status-message.success { color: #1c6c4d; }
.admin-status-message.error { color: #8b1a1a; }
.admin-auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-auth-card { width: min(100%, 460px); background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 5vw, 40px); box-shadow: var(--shadow); }
.admin-auth-card h1 { margin-bottom: 8px; }
.admin-auth-card > p:not(.eyebrow):not(.admin-auth-message) { color: var(--muted); }
.admin-auth-form { display: grid; gap: 16px; margin-top: 24px; }
.admin-auth-form label { display: grid; gap: 8px; }
.admin-auth-form input { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: #fffaf2; color: #2a2724; }
.admin-auth-message { min-height: 1.5rem; margin-top: 16px; font-weight: 700; }
.admin-auth-message.success { color: #1c6c4d; }
.admin-auth-message.error { color: #8b1a1a; }
.admin-identity { color: var(--muted); font-size: .9rem; }

@media (max-width: 980px) {
  body.mobile-cart-active {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }
  .mobile-cart-bar {
    position: fixed;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 14px;
    z-index: 17;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 10px 16px 10px 18px;
    border: 1px solid rgba(255, 250, 242, .32);
    border-radius: 999px;
    background: var(--accent-dark);
    color: #fffaf2;
    box-shadow: 0 16px 38px rgba(42, 33, 27, .28);
  }
  .mobile-cart-bar.has-items {
    display: flex;
  }
  .mobile-cart-summary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
  }
  .mobile-cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    border-radius: 999px;
    background: #fffaf2;
    color: var(--accent-dark);
    font-size: .78rem;
  }
  .mobile-cart-bar strong {
    font-size: 1rem;
  }
  .back-to-top {
    right: 18px;
    bottom: 18px;
  }
  body.mobile-cart-active .back-to-top {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .admin-controls { grid-template-columns: 1fr; }
  .admin-stock-grid { grid-template-columns: 1fr; }
  .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stock-row { grid-template-columns: 1fr; }
  .pos-order-row,
  .pos-order-details { grid-template-columns: 1fr; }
  .pos-order-footer { align-items: stretch; }
  .pos-total-summary { grid-template-columns: 1fr; width: 100%; }
  .pos-total-summary small { grid-column: 1; }
  .stock-search-row { grid-template-columns: 1fr; }
  .admin-orders-table,
  .admin-stock-table { min-width: 100%; }
  .nav { display: none; }
  .nav.open { display: grid; position: absolute; top: 64px; left: 18px; right: 18px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .menu-button { display: block; }
  .site-header { flex-wrap: wrap; gap: 12px; }
  .language-switcher { order: 3; margin-left: auto; }
  .hero, .split { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .shop-toolbar { align-items: stretch; flex-direction: column; }
  .shop-toolbar select { width: 100%; min-width: 0; }
  .product-grid, .steps { grid-template-columns: 1fr; }
  .form-heading { display: grid; align-items: start; }
  .form-grid { grid-template-columns: 1fr; }
  .payment-box { grid-template-columns: 1fr; }
  .payment-box img { justify-self: start; max-width: 280px; }
  .product-image { height: 320px; }
  .product-detail { grid-template-columns: 1fr; padding: 14px; }
  .product-detail-image { min-height: auto; aspect-ratio: 4 / 5; }
  .product-detail-info { padding: 0 4px 4px; }
  .cart-row { display: grid; }
  .cart-row-actions { justify-content: space-between; }
  .cart-panel { margin: 0 18px; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 980px) and (hover: none) and (pointer: coarse) {
  .modal-swipe-hint.visible { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .back-to-top { transition: none; }
  #productModalContent.swipe-next,
  #productModalContent.swipe-previous { animation: none; }
}
