:root {
  --paper: #f7f3ec;
  --paper-2: #eee7dc;
  --white: #fff;
  --ink: #1f1d1a;
  --muted: #6f675e;
  --line: #d9d0c4;
  --wine: #6f2430;
  --wine-dark: #47151d;
  --copper: #a66f45;
  --green: #486358;
  --shadow: 0 18px 55px rgba(47, 35, 25, .10);
  --radius: 22px;
  --serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
.hidden { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(217, 208, 196, .75);
  background: rgba(247, 243, 236, .94);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  color: #fff;
  background: var(--wine);
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: .08em;
}
.brand strong { display: block; font-family: Georgia, serif; letter-spacing: .16em; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.desktop-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.desktop-nav a { position: relative; }
.desktop-nav a::after {
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  content: "";
  background: var(--wine);
  transition: right .25s ease;
}
.desktop-nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-button, .admin-link, .back-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  background: rgba(255,255,255,.55);
}
.language-button:hover, .admin-link:hover, .back-link:hover { color: var(--wine); border-color: var(--wine); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  align-items: center;
  min-height: 690px;
  padding: 70px 5vw 80px;
  overflow: hidden;
}
.hero::before {
  position: absolute;
  top: -30%;
  left: -16%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(166,111,69,.20), transparent 68%);
}
.hero-copy { position: relative; z-index: 2; max-width: 640px; padding-right: 6vw; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero h1, .section-heading h2, .detail-title, .craft-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.18;
}
.hero h1 { max-width: 9em; font-size: clamp(46px, 5.8vw, 86px); }
.hero-lead { max-width: 40em; margin: 28px 0 34px; color: var(--muted); font-size: 17px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.primary-button, .secondary-button, .outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--wine);
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.primary-button { color: #fff; background: var(--wine); }
.secondary-button { color: var(--wine); background: transparent; }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(111,36,48,.18); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 30px; }
.hero-stats span { display: grid; }
.hero-stats strong { color: var(--wine); font-family: Georgia, serif; font-size: 25px; font-weight: 500; line-height: 1.1; }
.hero-stats small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.hero-visual {
  position: relative;
  min-height: 560px;
  border-radius: 42px 10px 42px 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e8e0d5;
}
.hero-visual img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.hero-visual-blank {
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.08)),
    #e8e0d5;
  box-shadow: inset 0 0 0 1px rgba(66,52,41,.08), var(--shadow);
}
.hero-visual-blank::after {
  content: "";
  position: absolute;
  inset: 32px;
  border: 1px dashed rgba(66,52,41,.18);
  border-radius: 30px 8px 30px 8px;
}
.hero-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  max-width: 260px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 16px;
  color: #fff;
  background: rgba(30,25,21,.68);
  backdrop-filter: blur(12px);
  font-size: 13px;
}
.hero.hero-banner-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  padding: 0;
  background: var(--paper);
}
.hero.hero-banner-layout::before { display: none; }
.hero-banner-layout .hero-visual {
  order: 1;
  width: 100%;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
  background: #07192c;
}
.hero-banner-layout .hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1942 / 809;
  object-fit: contain;
}
.hero-banner-layout .hero-note { display: none; }
.hero-banner-layout .hero-copy {
  order: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 52px 5vw 64px;
}
.hero-banner-layout h1 { max-width: 13em; font-size: clamp(38px, 4.2vw, 64px); }
.hero-banner-layout .hero-lead { max-width: 58em; }

.section { padding: 88px 5vw; }
.section-alt { background: var(--paper-2); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto 34px;
}
.section-heading h2 { font-size: clamp(32px, 4vw, 56px); }
.section-heading p { max-width: 560px; margin: 0; color: var(--muted); }

.collection-grid, .product-grid, .related-grid {
  display: grid;
  gap: 22px;
  max-width: 1440px;
  margin: 0 auto;
}
.collection-grid { grid-template-columns: repeat(4, 1fr); }
.collection-card {
  position: relative;
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.58);
  transition: transform .25s ease, box-shadow .25s ease;
}
.collection-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.collection-number { color: var(--copper); font-family: Georgia, serif; font-size: 13px; }
.collection-card h3 { margin: 38px 0 8px; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.collection-card p { margin: 0; color: var(--muted); font-size: 14px; }
.collection-count {
  position: absolute;
  right: 24px;
  bottom: 22px;
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 32px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1440px;
  margin: 0 auto 28px;
}
.filter-button {
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.65);
}
.filter-button.active { color: #fff; border-color: var(--wine); background: var(--wine); }
.result-count { max-width: 1440px; margin: -12px auto 18px; color: var(--muted); font-size: 13px; }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-image-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f2eee8; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover img { transform: scale(1.035); }
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(71,21,29,.86);
  font-size: 11px;
}
.product-body { padding: 22px 22px 24px; }
.product-code { margin-bottom: 5px; color: var(--copper); font-size: 11px; letter-spacing: .16em; }
.product-card h3 { margin: 0 0 9px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.product-card p { min-height: 48px; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.product-link { color: var(--wine); font-weight: 700; }

.craft-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}
.craft-visual { border-radius: 8px 36px; overflow: hidden; box-shadow: var(--shadow); }
.craft-visual img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.craft-copy h2 { font-size: clamp(34px, 4vw, 58px); }
.craft-copy p { color: var(--muted); }
.craft-points { display: grid; gap: 16px; margin-top: 28px; }
.craft-point { padding: 17px 0 17px 22px; border-left: 2px solid var(--copper); }
.craft-point strong { display: block; margin-bottom: 3px; font-family: var(--serif); font-size: 18px; }
.craft-point span { color: var(--muted); font-size: 14px; }

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 45px;
  padding: 55px 5vw;
  color: #e8ded4;
  background: #211b18;
}
.site-footer h3 { margin: 0 0 12px; font-family: Georgia, serif; letter-spacing: .16em; }
.site-footer h4 { margin: 0 0 12px; font-size: 14px; }
.site-footer p, .site-footer a { color: #aa9d91; font-size: 13px; }
.footer-links { display: grid; gap: 7px; }

.product-page { min-height: 70vh; padding: 45px 5vw 90px; }
.breadcrumbs { max-width: 1440px; margin: 0 auto 26px; color: var(--muted); font-size: 13px; }
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(370px, .88fr);
  gap: 5vw;
  max-width: 1440px;
  margin: 0 auto;
}
.gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eee8df;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.zoom-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  font-size: 12px;
}
.thumbnail-strip {
  --thumb-size: 72px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--thumb-size);
  justify-content: start;
  gap: 8px;
  margin-top: 12px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: thin;
  scrollbar-color: #c8b9ad transparent;
}
.thumbnail {
  width: var(--thumb-size);
  height: var(--thumb-size);
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #eee8df;
  scroll-snap-align: start;
}
.thumbnail.active { border-color: var(--wine); }
.thumbnail:focus-visible { outline: 3px solid rgba(166,111,69,.32); outline-offset: 2px; }
.thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.detail-info { padding: 10px 0; }
.detail-code { color: var(--copper); font-size: 12px; letter-spacing: .16em; }
.detail-title { margin-top: 8px; font-size: clamp(38px, 4vw, 60px); }
.detail-tagline { margin: 16px 0 26px; color: var(--wine); font-family: var(--serif); font-size: 20px; }
.detail-description { color: var(--muted); }
.contact-strip {
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(520px, 1.25fr);
  gap: 28px;
  align-items: center;
  margin: 24px 0 28px;
  padding: 22px 24px;
  border: 1px solid #d7c8bb;
  border-radius: 18px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 10px 28px rgba(47,35,25,.06);
}
.contact-copy h3 { margin: 2px 0 4px; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.contact-copy > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.contact-kicker { color: var(--copper); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.contact-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.contact-button {
  display: grid;
  min-width: 0;
  min-height: 62px;
  padding: 10px 13px;
  border: 1px solid #d8cec4;
  border-radius: 12px;
  background: #fff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.contact-button:hover, .contact-button:focus-visible { transform: translateY(-2px); border-color: var(--copper); box-shadow: 0 7px 18px rgba(47,35,25,.09); outline: none; }
.contact-button strong { color: var(--wine); font-size: 11px; letter-spacing: .08em; }
.contact-button span { overflow: hidden; color: #4f4943; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.contact-button.contact-whatsapp { border-color: rgba(37,211,102,.38); background: #f3fbf6; }
.contact-button.contact-whatsapp strong { color: #177f40; }
.product-contact-card { margin: 24px 0; padding: 16px; border: 1px solid #d7c8bb; border-radius: 16px; background: rgba(255,255,255,.78); }
.product-contact-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 11px; }
.product-contact-heading strong { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.contact-actions-compact .contact-button { min-height: 56px; padding: 8px 10px; }
.detail-block { padding: 19px 0; border-top: 1px solid var(--line); }
.detail-block:first-of-type { margin-top: 24px; }
.detail-block h3 { margin: 0 0 9px; font-size: 14px; }
.detail-block p, .detail-block li { color: var(--muted); font-size: 14px; }
.detail-block ul { margin: 0; padding-left: 20px; }
.detail-note {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  color: #5f5146;
  background: #eee3d6;
  font-size: 13px;
}
.related-section { max-width: 1440px; margin: 80px auto 0; }
.related-section h2 { font-family: var(--serif); font-size: 34px; font-weight: 500; }
.related-grid { grid-template-columns: repeat(3, 1fr); }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 5vw;
  background: rgba(12,10,9,.91);
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  border: 0;
  color: #fff;
  background: none;
  font-size: 38px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 70px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* Shopping configuration and cart */
.purchase-panel {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid #d7c8bb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(47,35,25,.07);
}
.purchase-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.purchase-kicker { color: var(--copper); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.purchase-heading h2 { margin: 3px 0 0; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.quote-badge { flex: none; padding: 5px 10px; border-radius: 999px; color: var(--wine); background: #f5e9e8; font-size: 11px; }
.purchase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sales-mode-options { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; border: 0; }
.sales-mode-options legend { margin-bottom: 2px; color: #5f564e; font-size: 12px; font-weight: 700; }
.sales-mode-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: #faf8f4; cursor: pointer; }
.sales-mode-card:has(input:checked) { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(166,111,69,.10); background: #fff; }
.sales-mode-card input { margin-top: 4px; accent-color: var(--wine); }
.sales-mode-card strong, .sales-mode-card small { display: block; }
.sales-mode-card strong { color: var(--ink); font-size: 13px; }
.sales-mode-card small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.sales-mode-card b { color: var(--wine); font-size: 12px; white-space: nowrap; }
.sales-mode-card.unavailable { opacity: .58; cursor: not-allowed; }
.purchase-field { display: grid; gap: 7px; color: #5f564e; font-size: 12px; font-weight: 700; }
.purchase-field select, .purchase-field input {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #fff;
}
.purchase-field select:focus, .purchase-field input:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(166,111,69,.12); }
.field-help { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.45; }
.quantity-control { display: grid; grid-template-columns: 40px 1fr 40px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.quantity-control button { border: 0; color: var(--wine); background: #f7f2eb; font-size: 20px; }
.quantity-control input { height: 42px; border: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 0; text-align: center; }
.color-allocation-panel { margin: 18px 0 0; padding: 16px; border: 1px solid #dccfc3; border-radius: 14px; background: #faf8f4; }
.color-allocation-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.color-allocation-heading legend { padding: 0; color: #5f564e; font-size: 12px; font-weight: 700; }
.color-allocation-heading p { max-width: 560px; margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.color-allocation-heading button { flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--wine); border-radius: 9px; color: var(--wine); background: #fff; font-size: 11px; font-weight: 700; }
.color-rows { display: grid; gap: 10px; margin-top: 13px; }
.color-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .72fr) auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.color-quantity-control { min-width: 180px; }
.remove-color-row { min-height: 44px; padding: 0 10px; border: 0; color: #8c3342; background: transparent; font-size: 11px; }
.remove-color-row:disabled { color: #aaa19a; cursor: not-allowed; opacity: .55; }
.color-allocation-summary { margin: 11px 0 0; padding: 9px 11px; border-radius: 9px; font-size: 11px; font-weight: 700; }
.color-allocation-summary.valid { color: #2f6841; background: #edf7f0; }
.color-allocation-summary.invalid { color: #963143; background: #fff0f2; }
.accessory-options { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; border: 0; }
.accessory-options legend { width: 100%; margin-bottom: 3px; color: #5f564e; font-size: 12px; font-weight: 700; }
.accessory-options label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: #faf8f4; font-size: 12px; }
.buckle-order-options { margin: 18px 0 0; padding: 16px; border: 1px solid #dccfc3; border-radius: 14px; background: rgba(255,255,255,.62); }
.buckle-order-options legend { padding: 0 6px; color: #5f564e; font-size: 12px; font-weight: 700; }
.order-mode-toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.order-mode-toggle input { margin-top: 4px; accent-color: var(--wine); }
.order-mode-toggle strong, .order-mode-toggle small { display: block; }
.order-mode-toggle strong { color: var(--ink); font-size: 13px; }
.order-mode-toggle small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.order-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.order-choice-grid input:disabled { color: #766b62; background: #f1ede7; cursor: not-allowed; }
.buckle-rule { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--copper); color: #5f564e; background: #f7f2eb; font-size: 11px; line-height: 1.65; }
.purchase-note { margin: 16px 0; color: var(--muted); font-size: 12px; }
.add-cart-button, .checkout-button, .copy-order-button {
  width: 100%; min-height: 47px; border: 1px solid var(--wine); border-radius: 12px; font-weight: 700;
}
.add-cart-button, .checkout-button { color: #fff; background: var(--wine); }
.payment-actions { display: grid; gap: 9px; }
.checkout-button.secondary-payment { color: var(--wine); background: #fff; }
.copy-order-button { margin-top: 9px; color: var(--wine); background: #fff; }
.checkout-button:disabled, .copy-order-button:disabled { cursor: not-allowed; opacity: .48; }
.cart-toggle { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.7); }
.cart-toggle strong { position: absolute; top: -4px; right: -5px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; color: #fff; background: var(--wine); font-size: 10px; }
.cart-overlay { position: fixed; inset: 0; z-index: 79; visibility: hidden; background: rgba(20,16,14,.42); opacity: 0; transition: .25s; }
.cart-overlay.open { visibility: visible; opacity: 1; }
.cart-drawer { position: fixed; top: 0; right: 0; z-index: 80; display: grid; grid-template-rows: auto 1fr auto; width: min(440px, 94vw); height: 100vh; background: #fbf8f3; box-shadow: -20px 0 60px rgba(20,16,14,.18); transform: translateX(105%); transition: transform .3s ease; }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px; border-bottom: 1px solid var(--line); }
.cart-head span { color: var(--copper); font-size: 10px; letter-spacing: .18em; }
.cart-head h2 { margin: 1px 0 0; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.cart-head button { border: 0; background: none; font-size: 32px; }
.cart-lines { padding: 14px 20px; overflow: auto; }
.cart-line { display: grid; grid-template-columns: 82px 1fr; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 82px; height: 82px; border-radius: 10px; object-fit: cover; background: #fff; }
.cart-line strong, .cart-line small { display: block; }
.cart-line strong { margin-bottom: 4px; font-family: var(--serif); font-size: 15px; }
.cart-line small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.cart-line-actions { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 11px; }
.cart-line-actions button { padding: 0; border: 0; color: var(--wine); background: none; }
.cart-empty { padding: 70px 10px; color: var(--muted); text-align: center; }
.cart-footer { padding: 18px 22px 24px; border-top: 1px solid var(--line); background: #fff; }
.cart-footer p { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.site-toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; padding: 11px 17px; border-radius: 999px; color: #fff; background: #211b18; opacity: 0; transform: translate(-50%, 15px); pointer-events: none; transition: .2s; }
.site-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Admin */
.admin-body { min-height: 100vh; background: #ece7df; }
.admin-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px 24px;
  color: #fff;
  background: #211b18;
}
.admin-brand strong { display: block; font-family: Georgia, serif; letter-spacing: .12em; }
.admin-brand span { color: #aa9d91; font-size: 12px; }
.admin-actions { display: flex; align-items: center; gap: 10px; }
.save-status { color: #bcb1a8; font-size: 12px; }
.admin-button, .admin-button-secondary, .admin-button-danger {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
}
.admin-button { color: #fff; background: var(--wine); }
.admin-button-secondary { color: var(--ink); border-color: var(--line); background: #fff; }
.admin-button-danger { color: #9d2436; border-color: #e3b8bf; background: #fff4f5; }
.admin-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}
.admin-sidebar {
  padding: 20px;
  border-right: 1px solid #d5cec4;
  background: #f7f4ef;
}
.admin-tools { display: grid; gap: 9px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #d5cec4; }
.admin-tools h3 { margin: 0 0 2px; font-size: 13px; }
.admin-tools small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.admin-payment-field { display: grid; gap: 5px; color: #5f564e; font-size: 11px; font-weight: 700; }
.admin-payment-field input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #d6cec4; border-radius: 9px; outline: none; background: #fff; font-size: 11px; }
.admin-payment-field input:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(166,111,69,.12); }
.admin-tools > button, .admin-tools > label:not(.admin-payment-field) { min-height: 38px; padding: 9px 11px; border: 1px solid #d6cec4; border-radius: 9px; color: var(--wine); background: #fff; font-size: 11px; text-align: center; cursor: pointer; }
.admin-tools input[type="file"] { display: none; }
.pricing-editor { margin: 22px 0; padding: 18px; border: 1px solid #d8cdc0; border-radius: 14px; background: #faf8f4; }
.pricing-editor-heading h2 { margin: 0; font-size: 18px; }
.pricing-editor-heading p, .pricing-editor-note { color: var(--muted); font-size: 11px; line-height: 1.6; }
.pricing-editor-heading p { margin: 5px 0 14px; }
.pricing-editor-note { margin: 12px 0 0; padding: 9px 11px; border-left: 3px solid var(--copper); background: #fff; }
.auto-translate-status { margin: 0 0 18px; padding: 10px 13px; border: 1px solid #d9c8b9; border-radius: 10px; background: #f7f0e8; color: #684d3e; font-size: .88rem; line-height: 1.5; }
.auto-translate-status.translating { border-color: #c99d70; color: #854e23; }
.auto-translate-status.success { border-color: #9fbea8; background: #eef7f0; color: #2e6540; }
.auto-translate-status.error { border-color: #d8a3a3; background: #fff0f0; color: #8d2929; }
.form-grid.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pricing-grid label { display: grid; gap: 6px; color: #5f564e; font-size: 11px; font-weight: 700; }
.pricing-grid input { width: 100%; height: 42px; padding: 0 10px; border: 1px solid #d6cec4; border-radius: 9px; outline: none; background: #fff; }
.pricing-grid input:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(166,111,69,.12); }
.pricing-grid input[readonly] { color: var(--wine); background: #f0ebe4; cursor: not-allowed; }
.admin-search, .admin-field input, .admin-field textarea, .admin-field select {
  width: 100%;
  border: 1px solid #d6cec4;
  border-radius: 10px;
  outline: none;
  background: #fff;
}
.admin-search { height: 42px; padding: 0 12px; margin-bottom: 14px; }
.admin-search:focus, .admin-field input:focus, .admin-field textarea:focus, .admin-field select:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(166,111,69,.12);
}
.admin-product-list { display: grid; gap: 7px; max-height: calc(100vh - 250px); overflow: auto; }
.admin-product-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  background: transparent;
}
.admin-product-item:hover, .admin-product-item.active { border-color: #d8cdc0; background: #fff; }
.admin-product-item img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #eee; }
.admin-product-item strong { display: block; font-size: 13px; }
.admin-product-item span { color: var(--muted); font-size: 11px; }
.sidebar-actions { display: grid; gap: 8px; margin-top: 16px; }
.admin-editor { padding: 28px; overflow: hidden; }
.admin-panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid #dad1c7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(49,38,29,.06);
}
.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee7df;
}
.admin-panel-heading h1 { margin: 0; font-family: var(--serif); font-size: 30px; }
.admin-panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.admin-grid .full { grid-column: 1 / -1; }
.admin-field label { display: block; margin-bottom: 6px; color: #5f564e; font-size: 12px; font-weight: 700; }
.admin-field input, .admin-field select { height: 43px; padding: 0 12px; }
.admin-field textarea { min-height: 106px; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.checkbox-row { display: flex; gap: 24px; align-items: center; margin-bottom: 18px; }
.checkbox-row label { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }
.admin-images { margin-top: 26px; padding-top: 22px; border-top: 1px solid #eee7df; }
.admin-images-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.admin-images h2 { margin: 0; font-size: 18px; }
.upload-label { position: relative; overflow: hidden; }
.upload-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.admin-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.admin-gallery-item { position: relative; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #eee; }
.admin-gallery-item.main { border-color: var(--wine); }
.admin-gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.admin-gallery-tools { display: flex; gap: 5px; padding: 7px; background: #fff; }
.admin-gallery-tools button { flex: 1; padding: 5px; border: 1px solid #ddd4ca; border-radius: 7px; background: #fff; font-size: 11px; }
.admin-gallery-tools .remove-image { color: #a52a3d; }
.admin-form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  max-width: 360px;
  padding: 13px 18px;
  border-radius: 12px;
  color: #fff;
  background: #29221e;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero.hero-banner-layout { padding: 0; }
  .hero-copy { padding: 0 0 45px; }
  .hero h1 { max-width: 12em; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .thumbnail-strip { --thumb-size: 64px; }
  .detail-info { max-width: 760px; }
  .contact-strip { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 260px minmax(0,1fr); }
}

@media (max-width: 760px) {
  .site-header { min-height: 66px; padding: 0 18px; }
  .brand small, .admin-link { display: none; }
  .hero { min-height: auto; padding: 44px 18px 58px; }
  .hero.hero-banner-layout { padding: 0; }
  .hero-banner-layout .hero-copy { padding: 38px 18px 48px; }
  .hero-banner-layout .hero-visual, .hero-banner-layout .hero-visual img { min-height: 0; }
  .hero h1 { font-size: 42px; }
  .hero-visual, .hero-visual img { min-height: 390px; }
  .section { padding: 65px 18px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 12px; }
  .collection-grid, .product-grid, .related-grid { grid-template-columns: 1fr; }
  .collection-card { min-height: 230px; }
  .craft-section { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .product-page { padding: 28px 18px 70px; }
  .thumbnail-strip { --thumb-size: 56px; gap: 6px; margin-top: 9px; padding-bottom: 6px; }
  .product-detail { gap: 30px; }
  .contact-strip { margin: 20px 0 24px; padding: 17px; gap: 16px; }
  .contact-copy h3 { font-size: 20px; }
  .contact-actions { grid-template-columns: 1fr; }
  .contact-button { min-height: 54px; padding: 8px 12px; }
  .contact-button span { font-size: 13px; }
  .product-contact-card { padding: 14px; }
  .product-contact-heading { display: grid; gap: 2px; }
  .purchase-panel { padding: 18px; }
  .purchase-heading { display: block; }
  .quote-badge { display: inline-block; margin-top: 9px; }
  .purchase-grid { grid-template-columns: 1fr; }
  .color-allocation-heading { display: block; }
  .color-allocation-heading button { margin-top: 12px; }
  .color-row { grid-template-columns: 1fr; }
  .remove-color-row { justify-self: start; min-height: 32px; padding-left: 0; }
  .order-choice-grid { grid-template-columns: 1fr; }
  .sales-mode-card { grid-template-columns: auto minmax(0, 1fr); }
  .sales-mode-card b { grid-column: 2; }
  .form-grid.four { grid-template-columns: 1fr 1fr; }
  .admin-header { position: static; flex-wrap: wrap; }
  .admin-actions { width: 100%; flex-wrap: wrap; }
  .admin-shell { display: block; }
  .admin-sidebar { border-right: 0; border-bottom: 1px solid #d5cec4; }
  .admin-product-list { grid-template-columns: repeat(2, 1fr); max-height: 250px; }
  .admin-editor { padding: 14px; }
  .admin-panel { padding: 18px; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-grid .full { grid-column: auto; }
  .admin-gallery { grid-template-columns: repeat(2, 1fr); }
  .admin-form-actions { flex-direction: column-reverse; }
}
