:root {
  --ink: #1d1a16;
  --muted: #70695f;
  --line: #e6ded0;
  --paper: #fbf8f1;
  --panel: #fffdf8;
  --moss: #58643a;
  --moss-dark: #38452d;
  --clay: #a6532d;
  --heart: #5f584f;
  --gold: #c8943f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(29, 26, 22, .12);
  background: rgba(251, 248, 241, .9);
  backdrop-filter: blur(14px);
}
.subnav {
  position: sticky;
  top: 68px;
  z-index: 19;
  display: flex;
  gap: 18px;
  min-height: 38px;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid rgba(29, 26, 22, .1);
  background: #f4eee4;
  color: var(--moss-dark);
  font-size: 14px;
  font-weight: 650;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav { scrollbar-width: none; }
.subnav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 9px;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.subnav .promo-link { white-space: nowrap; }
.subnav a:hover {
  background: rgba(49, 71, 58, .08);
  color: var(--ink);
}
.subnav .promo-link {
  border: 1px solid rgba(166, 83, 45, .18);
  background: rgba(166, 83, 45, .08);
  color: #7a442f;
}
.subnav .promo-link:hover {
  background: rgba(166, 83, 45, .14);
  box-shadow: inset 0 0 0 1px rgba(166, 83, 45, .08);
}

.brand, .nav, .hero-actions, .buy-row, .chips, .summary-line {
  display: flex;
  align-items: center;
}

.brand { gap: 10px; color: var(--moss-dark); font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.brand-mark {
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(29, 26, 22, .08);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(116px, 150px) minmax(260px, 1fr) 48px;
  flex: 1 1 680px;
  max-width: 760px;
  margin: 0 22px;
}
.top-search select, .top-search input {
  min-width: 0;
  border: 1px solid var(--line);
  background: white;
  padding: 10px 12px;
}
.top-search select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background-color: #f4eee4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2370695f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  color: var(--muted);
  cursor: pointer;
  padding-right: 48px;
  background-position: right 18px center;
}
.top-search select::-ms-expand { display: none; }
.search-suggest-panel {
  position: absolute;
  top: calc(100% - 1px);
  left: 150px;
  right: 48px;
  z-index: 45;
  display: none;
  max-height: 190px;
  overflow: auto;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: white;
  box-shadow: 0 18px 44px rgba(29, 26, 22, .16);
  padding: 6px 0;
}
.top-search:focus-within .search-suggest-panel,
.top-search.suggest-open .search-suggest-panel {
  display: block;
}
.search-suggest-panel button {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  border: 0;
  border-radius: 0;
  background: white;
  color: var(--ink);
  padding: 7px 12px;
  text-align: left;
}
.search-suggest-panel button[hidden] {
  display: none !important;
}
.search-suggest-panel button:hover,
.search-suggest-panel button.active {
  background: #f5f5f5;
}
.search-suggest-panel span {
  color: var(--muted);
}
.top-search input {
  border-right: 0;
  border-radius: 0;
}
.top-search button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: var(--moss);
  color: white;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.top-search button:hover { background: #6b7545; box-shadow: inset 0 0 0 999px rgba(255,255,255,.04); }
.top-search button:active, .button:active, .buy-row button:not(.wishlist-button):active { transform: translateY(1px); }
.top-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
}
.top-search .search-suggest-panel button {
  display: flex;
  place-items: initial;
  min-height: 38px;
  border-radius: 0;
  background: white;
  color: #39342e;
  box-shadow: none;
  font-weight: 500;
}
.top-search .search-suggest-panel button:hover,
.top-search .search-suggest-panel button.active {
  background: #f3f3f3;
  color: #111;
}
.top-search .search-suggest-panel button:active {
  transform: none;
}

.nav { gap: 8px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.cart-hover { position: relative; display: inline-flex; }
.account-hover { position: relative; display: inline-flex; }
.cart-hover::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: min(360px, 92vw);
  height: 12px;
}
.cart-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(360px, 92vw);
  max-height: 70vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 46px rgba(29, 26, 22, .18);
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.cart-hover:hover .cart-popover, .cart-hover:focus-within .cart-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  display: none;
  width: min(360px, 92vw);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 46px rgba(29, 26, 22, .16);
  padding: 14px;
  color: var(--ink);
}
.account-popover::before {
  content: "";
  position: absolute;
  top: -12px;
  right: 0;
  width: 96px;
  height: 12px;
}
.account-hover:hover .account-popover,
.account-hover:focus-within .account-popover { display: grid; gap: 10px; }
.account-hover.logged-in .account-popover { display: none; }
.account-popover .folder-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.account-popover .folder-tabs button {
  min-width: 0;
  white-space: normal;
  line-height: 1.2;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 10px;
}
.nav a:hover { background: rgba(49, 71, 58, .08); color: var(--ink); }
.lang-toggle {
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(112, 105, 95, .22);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background .16s ease, color .16s ease;
}
.lang-toggle:hover { background: rgba(49, 71, 58, .08); color: var(--ink); }
.account-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.cart-count, .wishlist-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--moss);
  color: white;
  font-size: 12px;
  line-height: 1;
}

main { width: min(1360px, calc(100% - 32px)); margin: 0 auto; }
.admin-toolbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 0 20px;
  background: #1f1d19;
  color: #f8f0e4;
  font-size: 13px;
  overflow-x: auto;
}
.admin-toolbar a {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
}
.admin-toolbar a:hover { background: rgba(255,255,255,.12); }
.admin-subtoolbar {
  grid-column: 1 / -1;
  position: sticky;
  top: 34px;
  z-index: 18;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0 0 0 8px;
}
.admin-subtoolbar a, .media-view-tabs button {
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #f4eee4;
  color: var(--moss-dark);
  padding: 10px 14px;
  cursor: pointer;
  transform: translateY(1px);
}
.admin-subtoolbar a:hover, .editor-tools button:hover, .media-view-tabs button:hover {
  background: var(--panel);
}
.admin-subtoolbar a.active {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--moss);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 40px;
  align-items: center;
  min-height: calc(78vh - 138px);
  padding: 48px 0 36px;
}

.eyebrow, .category {
  margin: 0;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.category a { color: inherit; }

h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  font-weight: 500;
}

.hero-copy {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions { gap: 12px; margin-top: 30px; }
.button, .search button, .buy-row button:not(.wishlist-button) {
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.button:hover, .search button:hover, .buy-row button:not(.wishlist-button):hover {
  background: #6b7545;
  color: white;
}
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button.ghost:hover { background: rgba(49, 71, 58, .08); color: var(--ink); }
.button.full { width: 100%; margin-top: 18px; }
.button.center { display: block; text-align: center; }
.text-action {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--moss-dark);
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-art {
  position: relative;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(49,71,58,.92), rgba(29,26,22,.78)),
    url("https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1200&q=80") center/cover;
  box-shadow: 0 30px 80px rgba(29, 26, 22, .22);
}
.hero-art span {
  position: absolute;
  border: 1px solid rgba(255,255,255,.5);
  transform: rotate(45deg);
}
.hero-art span:nth-child(1) { width: 180px; height: 180px; left: 70px; top: 70px; }
.hero-art span:nth-child(2) { width: 90px; height: 90px; right: 88px; bottom: 112px; }
.hero-art span:nth-child(3) { width: 260px; height: 260px; right: -80px; top: 170px; }

.filters {
  display: grid;
  gap: 18px;
  padding: 28px 0 20px;
  border-top: 1px solid var(--line);
}
.search, .quick-filters {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.quick-filters { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.search input, .quick-filters select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 13px 14px;
}
.quick-filters button {
  border: 0;
  border-radius: 6px;
  background: var(--moss);
  color: white;
  cursor: pointer;
}
.chips { gap: 8px; flex-wrap: wrap; }
.chips a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--panel);
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.chips a.active { border-color: var(--ink); color: var(--ink); }
.chips a:hover { background: rgba(49, 71, 58, .08); border-color: rgba(49, 71, 58, .22); color: var(--ink); }
.chips span { color: var(--clay); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 0 70px;
  max-width: 100%;
}
.compact-listing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.home-carousel {
  display: grid;
  gap: 14px;
  padding: 18px 0 28px;
  max-width: 100%;
}
.product-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: none;
  scroll-behavior: smooth;
  padding: 2px 2px 10px;
  scrollbar-width: none;
  max-width: 100%;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
  -webkit-user-drag: none;
}
.product-rail img,
.related-track img,
.cluster-strip img,
.product-thumbs img {
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
}
.product-rail::-webkit-scrollbar { display: none; }
.product-rail .product {
  flex: 0 0 min(260px, 72vw);
  scroll-snap-align: none;
}
.carousel-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.product-rail.grabbing {
  cursor: grabbing;
}
.product-rail.grabbing .product {
  cursor: grabbing;
}
.cluster-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 0 18px;
  scrollbar-width: none;
  max-width: 100%;
}
.cluster-strip::-webkit-scrollbar { display: none; }
.cluster-card {
  flex: 0 0 min(330px, 82vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}
.cluster-card small {
  display: block;
  margin-bottom: 2px;
  color: var(--clay);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cluster-card strong { display: block; color: var(--moss-dark); }
.cluster-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.cluster-card a, .cluster-card button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.cluster-card button { background: rgba(88, 100, 58, .08); color: var(--moss-dark); }
.cluster-card button.active, .cluster-card button[aria-pressed="true"] {
  border-color: var(--moss);
  background: var(--moss);
  color: white;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.collection-card {
  flex: none;
  grid-template-columns: 108px minmax(0, 1fr);
}
.collection-card-image {
  grid-row: span 2;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #e9dfcf;
}
.collection-card-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.followed-card {
  flex: 0 0 min(260px, 72vw);
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
  color: var(--ink);
}
.followed-card img, .followed-line img {
  width: 74px;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  object-fit: cover;
  background: #e9dfcf;
}
.followed-card small, .followed-line small {
  display: block;
  color: var(--clay);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.followed-card strong, .followed-line strong { color: var(--moss-dark); }
.followed-line a {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.catalogue-hidden { display: none; }
.show-more {
  display: block;
  margin: -42px auto 70px;
}

.product {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  position: relative;
  min-width: 0;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}
.grid .product:hover, .product-rail .product:hover, .related-card:hover, .cluster-card:hover {
  border-color: rgba(49, 71, 58, .26);
  box-shadow: 0 12px 28px rgba(49, 40, 28, .09);
  transform: translateY(-2px);
}
.product * { min-width: 0; }
.product-image { display: block; aspect-ratio: 4 / 5; background: #e9dfcf; border-radius: 8px 8px 0 0; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: Georgia, serif;
  font-size: 84px;
  color: rgba(49,71,58,.45);
}
.product-body { display: grid; gap: 6px; padding: 14px; }
.follow-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.follow-meta .category { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product h2 { margin: 0; font-family: Georgia, serif; font-size: 20px; line-height: 1.14; font-weight: 500; }
.product p { margin: 0; color: var(--muted); line-height: 1.5; }
@media (hover: hover) and (min-width: 861px) {
  .grid .product .product-body {
    position: absolute;
    inset: auto 0 0;
    max-height: 78%;
    overflow: auto;
    background: linear-gradient(to top, rgba(255,253,248,.98), rgba(255,253,248,.9));
    border-top: 1px solid rgba(230, 222, 208, .85);
    transform: translateY(calc(100% - 62px));
    transition: transform .22s ease;
  }
  .grid .product:hover .product-body,
  .grid .product:focus-within .product-body {
    transform: translateY(0);
  }
  .grid .product h2 { font-size: 18px; }
}
.stock-badge {
  justify-self: start;
  border: 1px solid rgba(88, 100, 58, .22);
  border-radius: 999px;
  background: rgba(88, 100, 58, .08);
  color: var(--moss-dark) !important;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badges span {
  border-radius: 999px;
  background: rgba(200, 148, 63, .15);
  color: #7a442f;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 750;
}
.stock-badge.low {
  border-color: rgba(166, 83, 45, .22);
  background: rgba(166, 83, 45, .08);
  color: #7a442f !important;
}
.stock-badge.unavailable, .stock-badge.restock {
  border-color: rgba(112, 105, 95, .24);
  background: rgba(112, 105, 95, .08);
  color: var(--muted) !important;
}
.options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.compact-options select {
  flex: 1 1 70px;
  min-width: 58px;
}
.compact-options .color-select {
  flex-basis: 128px;
  padding-left: 34px;
  background:
    radial-gradient(circle at 16px 50%, var(--selected-color, #d8c9b6) 0 8px, transparent 9px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2370695f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 7px center/14px 14px no-repeat,
    white;
}
.options label, .coupon-label, .admin-login label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.options select, .coupon-row input, .admin-login input, .admin-panel input, .admin-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 10px 11px;
}
.options select {
  appearance: none;
  -webkit-appearance: none;
  padding: 6px 26px 6px 8px;
  min-height: 32px;
  font-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2370695f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 14px 14px;
  background-position: right 7px center;
}
.select-with-swatch {
  grid-template-columns: 16px minmax(104px, 1fr);
}
.buy-row { justify-content: space-between; gap: 14px; margin-top: auto; }
.buy-row span { display: inline-flex; align-items: center; gap: 8px; }
.buy-row button:not(.wishlist-button) {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--moss);
  white-space: nowrap;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}
.buy-row button:not(.wishlist-button).just-added,
.product-actions .add-detail.just-added {
  background: #6f7b46;
  box-shadow: 0 0 0 5px rgba(111, 123, 70, .18);
  transform: scale(1.06);
}
.add-word { display: none; }
.add-plus { display: inline; transform: translateY(-1px); }
.wishlist-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: var(--heart);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  padding: 0;
}
.wishlist-button.compact {
  width: 32px;
  height: 32px;
  font-size: 25px;
}
.wishlist-button:hover, .wishlist-button.active { color: #5f372d; background: transparent; }
.wishlist-button.active {
  color: #5f372d;
  -webkit-text-stroke: 1.1px #5f372d;
  text-shadow: 0 0 0 #5f372d;
  transform: scaleX(1.08);
}
.wishlist-button.compact:hover, .wishlist-button.compact.active { font-size: 25px; transform: scaleX(1.1); }

.product-detail {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 34px;
  margin: 44px 0 72px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.product-gallery-main {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 1;
  background: #e9dfcf;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.product-thumbs::-webkit-scrollbar { display: none; }
.product-thumbs button {
  flex: 0 0 78px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  padding: 0;
}
.product-thumbs button.active { border-color: var(--moss); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-detail-body {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 8px 0;
}
.product-detail-body h1 { font-size: clamp(32px, 4vw, 48px); }
.product-detail-body p { margin: 0; color: var(--muted); line-height: 1.65; }
.detail-price { display: flex; align-items: center; gap: 10px; color: var(--ink) !important; font-size: 24px; font-weight: 800; }
.detail-price del, .price-stack del { color: var(--muted); font-weight: 500; opacity: .7; }
.detail-price em {
  border-radius: 999px;
  background: rgba(166, 83, 45, .1);
  color: var(--clay);
  padding: 4px 8px;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}
.price-stack {
  display: grid;
  gap: 2px;
  line-height: 1.15;
}
.price-stack .stock-badge {
  justify-self: start;
  max-width: 100%;
  margin-top: 2px;
  font-size: 11px;
  white-space: nowrap;
}
.price-stack del { font-size: 12px; }
.product-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.product-actions .add-detail {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}
.product-actions .add-detail,
.buy-row button:not(.wishlist-button) {
  align-items: center;
  justify-items: center;
  line-height: 0;
}
.product-actions .add-detail .add-plus,
.buy-row .add-plus {
  display: block;
  transform: translateY(-1px);
  line-height: 1;
}
.price-stock-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-stock-row .detail-price { margin: 0; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: var(--panel);
  font-size: 13px;
}
.follow-button {
  justify-self: start;
  border: 1px solid rgba(95, 88, 79, .28);
  border-radius: 999px;
  background: rgba(95, 88, 79, .05);
  color: var(--heart);
  padding: 8px 12px;
  cursor: pointer;
}
.follow-button.compact {
  justify-self: start;
  margin-top: -6px;
  padding: 5px 9px;
  font-size: 12px;
}
.follow-button.active, .follow-suggestions button.active { border-color: var(--moss); color: var(--moss-dark); background: rgba(88, 100, 58, .1); }
.related-section {
  display: grid;
  gap: 16px;
  margin: -34px 0 72px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.section-head h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}
.related-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: none;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
  padding-bottom: 8px;
}
.related-track.grabbing { cursor: grabbing; }
.related-card {
  flex: 0 0 min(240px, 72vw);
  scroll-snap-align: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}
.related-card img, .related-card .placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}
.related-card strong, .related-card span {
  display: block;
  padding: 0 12px;
}
.related-card strong { margin-top: 12px; font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.related-card span { margin: 7px 0 12px; color: var(--muted); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(29, 26, 22, .36);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  width: min(420px, 100%);
  min-height: 100%;
  padding: 24px;
  background: var(--panel);
  box-shadow: -20px 0 60px rgba(29,26,22,.18);
  transform: translateX(28px);
  transition: transform .24s ease;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.icon {
  float: right;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.cart-line {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-popover .cart-line {
  grid-template-columns: 26px 1fr auto;
  gap: 8px;
  padding: 10px 0;
}
.cart-popover .cart-line h3 { font-size: 14px; }
.cart-popover .text-action { font-size: 12px; }
.cart-popover .qty button {
  width: 26px;
  height: 26px;
}
.saved-panel {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.saved-panel h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 500;
}
.saved-line {
  display: grid;
  grid-template-columns: 72px 1fr auto 32px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.saved-line img, .saved-line a > span {
  width: 72px;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  background: #e9dfcf;
}
.saved-line a > span {
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  color: rgba(49,71,58,.55);
}
.saved-line strong, .saved-line small, .saved-line p { display: block; margin: 0; }
.saved-line small, .saved-line p { color: var(--muted); }
.saved-line .add-saved {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}
.cart-line h3 { margin: 0 0 4px; font-size: 16px; }
.cart-line p { margin: 0; color: var(--muted); }
.cart-color-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cart-color-option i {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(49, 40, 28, .24);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
.discount-applied.unlocked {
  display: flex;
  align-items: center;
  gap: 8px;
}
.unlock-check {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--moss);
  color: white;
  font-weight: 800;
  line-height: 1;
}
.qty { display: flex; gap: 8px; align-items: center; }
.qty button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  cursor: pointer;
}
.remove-line {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}
.remove-line:hover { background: rgba(29, 26, 22, .08); }

.message-page, .cart-page { padding: 80px 0; }
.message-page .eyebrow { margin-bottom: 12px; }
.message-page h1, .cart-page h1 { font-size: clamp(32px, 5vw, 52px); }
.content-body {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.blog-home {
  display: grid;
  gap: 34px;
  padding: 76px 0;
}
.blog-hero,
.article-hero {
  display: grid;
  gap: 14px;
  max-width: 860px;
}
.blog-hero h1,
.article-hero h1 {
  max-width: 820px;
}
.blog-list {
  display: grid;
  gap: 0;
  max-width: 860px;
  border-top: 1px solid var(--line);
}
.blog-card a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 220px);
  gap: 10px 22px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.blog-card img {
  grid-row: 1 / span 3;
  grid-column: 2;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.blog-card small,
.article-meta {
  color: var(--muted);
  font-size: 13px;
}
.blog-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
}
.blog-card p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.article-page {
  display: grid;
  justify-items: center;
  padding: 78px 0;
}
.article-page > * {
  width: min(760px, 100%);
}
.article-page .content-body {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.78;
}
.article-page .content-body p {
  margin: 0 0 1.25em;
}
.article-page .content-body img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 18px 0;
}
.article-page .content-body figure {
  margin: 28px 0;
}
.article-page .content-body figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.article-page .content-body h2,
.article-page .content-body h3 {
  margin: 1.4em 0 .45em;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}
.content-editor {
  display: grid;
  gap: 10px;
}
.content-title-field {
  display: grid;
  gap: 7px;
}
.content-lang-title[hidden] { display: none; }
.content-lang-tabs {
  display: inline-flex;
  justify-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.content-lang-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  cursor: pointer;
}
.content-lang-tabs button.active {
  background: var(--ink);
  color: white;
}
.content-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: start;
  gap: 16px;
}
.content-settings {
  display: grid;
  gap: 12px;
  align-content: start;
}
.content-settings label {
  display: grid;
  gap: 7px;
}
.content-settings .button {
  width: 100%;
  justify-content: center;
}
.slug-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px 36px;
  gap: 6px;
}
.slug-row button,
.editor-tools button.active {
  border-color: rgba(88, 100, 58, .34);
  background: rgba(88, 100, 58, .12);
  color: var(--moss-dark);
}
.slug-row button.active {
  background: var(--moss);
  color: white;
}
.editor-tools, .media-view-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.editor-tools {
  position: sticky;
  top: 76px;
  z-index: 4;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  background: #f7f3ea;
  padding: 8px;
  box-shadow: 0 8px 18px rgba(29,26,22,.06);
}
.editor-tools button {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(112,105,95,.18);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-weight: 650;
}
.editor-tools button:hover {
  background: #ece5da;
}
.editor-tools select {
  height: 38px;
  width: auto;
  max-width: 160px;
  border: 1px solid rgba(112,105,95,.18);
  border-radius: 6px;
  background: white;
  padding: 0 10px;
  color: var(--ink);
}
.content-editor textarea {
  border-radius: 0 0 10px 10px;
  min-height: 380px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
}
.editor-preview {
  display: none;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
}
.content-editor.visual textarea {
  display: none;
}
.content-editor textarea[hidden] { display: none; }
.content-editor.visual .editor-preview {
  display: block;
  min-height: 420px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
  outline: 0;
}
.media-library {
  display: grid;
  gap: 10px;
  padding: 0;
}
.media-library.grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.media-library.list { grid-template-columns: 1fr; }
.media-library.masonry { columns: 4 150px; display: block; }
.media-library figure {
  break-inside: avoid;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}
.media-library img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.media-library.masonry img { aspect-ratio: auto; }
.media-library.list figure {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
}
.media-library figcaption {
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.media-meta-form {
  display: grid !important;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px !important;
  padding: 8px;
}
.media-meta-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 8px;
}
.media-meta-form button {
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  padding: 7px 9px;
}
.contact-form {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}
.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.share-panel {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 24px 0 4px;
}
.share-panel input {
  min-width: min(280px, 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 11px 12px;
}
.share-panel button, .follow-suggestions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  padding: 9px 12px;
  cursor: pointer;
}
.cart-shell {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 34px;
  margin-top: 28px;
}
.summary {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}
.summary p { color: var(--muted); line-height: 1.5; }
.progress-stack { display: grid; gap: 10px; }
.progress-stack.pulse .progress-card i { transition: width .65s cubic-bezier(.2,.8,.2,1); }
.progress-stack.compact {
  gap: 6px;
  margin: 8px 0;
}
.progress-stack.compact .progress-card {
  padding: 8px;
  min-width: 0;
}
.progress-stack.compact .progress-card p {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  font-size: 11px;
  line-height: 1.25;
}
.progress-card {
  border: 1px solid rgba(112, 105, 95, .22);
  border-radius: 8px;
  background: #f0ebe2;
  padding: 9px 10px;
  color: #1f1d19;
  min-width: 0;
}
.progress-card.shipping-progress i,
.progress-card.discount-progress i { background: #174f8f; }
.progress-card.complete {
  background: #eef5e8;
  border-color: rgba(95, 88, 79, .28);
}
.progress-card p {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin: 0 0 7px;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 750;
  min-width: 0;
}
.progress-card p strong,
.progress-card p span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.progress-card p span { font-weight: 650; color: #3a352f; }
.free-shipping-badge,
.discount-applied {
  border: 1px solid rgba(88, 100, 58, .18);
  border-radius: 8px;
  background: #f9fbf5;
  color: var(--moss-dark);
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
}
.discount-applied {
  background: #fffaf0;
  border-color: rgba(200, 148, 63, .3);
  color: #755118;
}
.unlock-pop {
  animation: unlock-pop .42s ease-out;
}
@keyframes unlock-pop {
  0% { transform: scale(.98); box-shadow: 0 0 0 rgba(88,100,58,0); }
  55% { transform: scale(1.018); box-shadow: 0 0 0 5px rgba(88,100,58,.12); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(88,100,58,0); }
}
.progress-card .progress-track {
  display: block;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(251, 248, 241, .72);
}
.progress-card i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--moss);
  transition: width .65s cubic-bezier(.2,.8,.2,1);
}
.summary-line { justify-content: space-between; margin-top: 18px; font-size: 18px; }
.summary-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.cart-notice {
  position: fixed;
  top: 86px;
  left: 50%;
  z-index: 90;
  width: min(620px, calc(100vw - 28px));
  transform: translateX(-50%);
  border: 1px solid rgba(23, 79, 143, .2);
  border-radius: 8px;
  background: #f7fbff;
  box-shadow: 0 18px 46px rgba(29, 26, 22, .14);
  padding: 12px 14px;
  color: var(--ink);
}
.cart-notice strong { color: #174f8f; }
.cart-notice a {
  margin-left: 8px;
  color: #174f8f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-notice button {
  margin-left: 8px;
  border: 1px solid rgba(23,79,143,.25);
  border-radius: 999px;
  background: white;
  color: #174f8f;
  padding: 5px 9px;
  cursor: pointer;
}
.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}
.coupon-row button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--muted);
  background: #f0eadf;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 34px 18px 42px;
  color: rgba(112,105,95,.55);
  font-size: 12px;
}
.footer a:hover { color: var(--muted); }

.admin-page { padding: 80px 0; }
.account-page { padding: 68px 0; }
.account-tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  align-items: end;
  margin: 24px 0 0;
  border-bottom: 1px solid var(--line);
}
.account-tabs button {
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #eee3d4;
  color: var(--muted);
  padding: 10px 14px;
  cursor: pointer;
  transform: translateY(1px);
}
.account-tabs button.active {
  border-color: var(--moss);
  background: var(--panel);
  color: var(--moss-dark);
  padding-top: 12px;
}
.folder-tabs {
  display: flex;
  gap: 2px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.folder-tabs button {
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #eee3d4;
  color: var(--muted);
  padding: 9px 11px;
  cursor: pointer;
}
.folder-tabs button.active {
  background: var(--panel);
  border-color: var(--moss);
  color: var(--moss-dark);
}
.checkout-account {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.checkout-account h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
}
.auth-panel {
  display: none;
  gap: 8px;
  padding-top: 4px;
}
.auth-panel.active {
  display: grid;
}
.auth-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 10px 11px;
}
.auth-panel button {
  border: 0;
  border-radius: 6px;
  background: var(--moss);
  color: white;
  padding: 10px 12px;
  cursor: pointer;
}
.checkout-account p {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.account-panel {
  display: none;
  gap: 14px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 0 8px 8px 8px;
  background: var(--panel);
  padding: 20px;
}
.danger-zone {
  border-color: rgba(143, 50, 35, .3);
  background: #fff8f5;
}
.danger-zone form,
.danger-zone label {
  display: grid;
  gap: 8px;
  max-width: 420px;
}
.danger-zone input[name="confirm_email"] {
  max-width: 360px;
}
.button.danger {
  background: #8f3223;
  color: white;
}
.account-panel.active { display: grid; }
.account-panel h2 { margin: 0; font-family: Georgia, serif; font-weight: 500; }
.account-panel input, .account-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 10px 11px;
}
.profile-form {
  display: grid;
  gap: 12px;
}
.address-fields {
  display: grid;
  gap: 10px;
}
.flat-address-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.flat-address-fields input:first-child,
.flat-address-fields input:nth-child(2) {
  grid-column: 1 / -1;
}
.profile-form label {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.profile-form label span {
  color: var(--muted);
  font-size: 13px;
}
.profile-form input, .profile-form textarea {
  min-height: 38px;
  padding: 8px 10px;
}
.profile-form .button { justify-self: end; margin-top: 8px; }
.address-capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0;
}
.address-capsules button {
  max-width: 100%;
  border: 1px solid rgba(88, 100, 58, .2);
  border-radius: 999px;
  background: rgba(88, 100, 58, .08);
  color: var(--moss-dark);
  padding: 7px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.admin-page h1 {
  max-width: 760px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: .98;
}
.admin-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.admin-head .button { flex: 0 0 auto; margin-top: 18px; }
.admin-login, .admin-panel {
  max-width: 520px;
  display: grid;
  gap: 14px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}
.admin-login {
  margin-left: auto;
  margin-right: auto;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}
.admin-panel { max-width: none; margin: 0; align-content: start; }
.admin-panel.admin-hidden { display: none; }
.admin-panel h2 { margin: 0; font-family: Georgia, serif; font-weight: 500; }
.admin-panel p, .notice { color: var(--muted); line-height: 1.5; }
.feature-form {
  display: grid;
  gap: 12px;
}
.feature-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.feature-toggle span {
  display: grid;
  gap: 4px;
}
.feature-toggle strong {
  font-size: 16px;
}
.feature-toggle small {
  color: var(--muted);
}
.feature-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.feature-toggle i {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #cfc7ba;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  transition: background .2s ease;
}
.feature-toggle i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: transform .2s ease;
}
.feature-toggle input:checked + i {
  background: #4f8fd9;
}
.feature-toggle input:checked + i::after {
  transform: translateX(24px);
}
.notice {
  display: inline-grid;
  justify-self: start;
  border: 1px solid rgba(88, 100, 58, .22);
  border-radius: 8px;
  background: #f3f8ef;
  color: var(--moss-dark);
  padding: 8px 11px;
}
.compact-button {
  width: auto;
  justify-self: start;
}
.inline-form {
  display: inline-grid !important;
  justify-self: start;
}
.product-editor { grid-row: span 3; }
.product-form, .admin-panel form {
  display: grid;
  gap: 14px;
}
.product-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product-form input, .product-form textarea, .admin-panel input, .admin-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 10px 11px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.product-form textarea { resize: vertical; line-height: 1.5; }
.tag-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 7px;
}
.tag-list { display: contents; }
.tag-list button {
  border: 0;
  border-radius: 999px;
  background: #efe4d5;
  color: var(--ink);
  padding: 7px 10px;
  cursor: pointer;
}
.tag-editor input {
  flex: 1 1 150px;
  min-width: 120px;
  border: 0 !important;
  padding: 6px !important;
}
.stock-rule-builder {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
[data-stock-rules-input] { display: none; }
.stock-rule-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr)) minmax(80px, .8fr) minmax(64px, .6fr) minmax(120px, 1fr) 34px;
  gap: 6px;
}
.stock-rule-row input, .stock-rule-row select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 9px 8px;
}
.stock-rule-row button, .stock-rule-builder > button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  padding: 9px 10px;
}
.upload-drop {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  min-height: 0;
  border: 1px solid rgba(49, 71, 58, .28);
  border-radius: 8px;
  background: rgba(49, 71, 58, .05);
  color: var(--muted);
  text-align: center;
  padding: 0;
  cursor: pointer;
}
.upload-drop svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--moss-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.upload-drop strong {
  color: var(--moss-dark);
  font-weight: 600;
}
.upload-drop.dragging { border-color: var(--clay); background: rgba(166, 83, 45, .08); }
.upload-drop:focus-visible { outline: 2px solid rgba(88, 100, 58, .45); outline-offset: 3px; }
.upload-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
}
.color-editor {
  display: grid;
  grid-template-columns: 1fr 42px;
}
.color-editor .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}
.color-editor input[type="color"] {
  width: 42px;
  min-width: 42px;
  height: 34px;
  padding: 2px !important;
  border: 0 !important;
  background: transparent;
}
.color-dot, [data-color-dot] {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(49, 40, 28, .22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
.select-with-swatch {
  display: grid;
  grid-template-columns: 16px minmax(104px, 1fr);
  align-items: center;
  gap: 5px;
}
.tag-list .color-dot { margin-right: 5px; vertical-align: -2px; }
.upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
body.crop-active { overflow: hidden; }
body.crop-active::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(29, 26, 22, .42);
}
body.crop-active .upload-preview:not(:empty) {
  position: fixed;
  inset: 6vh auto auto 50%;
  z-index: 100;
  width: min(760px, calc(100vw - 28px));
  max-height: 88vh;
  overflow: auto;
  transform: translateX(-50%);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(29, 26, 22, .28);
  padding: 58px 18px 18px;
}
body.crop-active .upload-preview:not(:empty)::before {
  content: "Cadrer les images (ratio 4:5)";
  position: fixed;
  top: calc(6vh + 16px);
  left: calc(50% - min(380px, calc(50vw - 14px)) + 18px);
  z-index: 101;
  color: #1d1a16;
  font-weight: 650;
}
.crop-done {
  position: fixed;
  top: calc(6vh + 10px);
  left: 50%;
  z-index: 101;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  background: #1d1a16;
  color: white;
  padding: 9px 14px;
  cursor: pointer;
}
.upload-preview figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: grab;
  outline: 999px solid rgba(29, 26, 22, .04);
  outline-offset: -999px;
}
body.crop-active .upload-preview figure {
  overflow: visible;
  background:
    linear-gradient(#fff,#fff) padding-box,
    repeating-linear-gradient(45deg, rgba(29,26,22,.08) 0 8px, rgba(29,26,22,.14) 8px 16px) border-box;
}
body.crop-active .upload-preview figure img {
  position: relative;
  z-index: 1;
}
.upload-preview figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(29,26,22,.86);
  border-radius: 10px;
  box-shadow: 0 0 0 999px rgba(29, 26, 22, .24);
  pointer-events: none;
  z-index: 2;
}
.upload-preview figure.grabbing { cursor: grabbing; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center; }
.upload-preview button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(29, 26, 22, .72);
  color: white;
  cursor: pointer;
}
.upload-preview input[type="range"] {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  width: calc(100% - 16px);
  accent-color: var(--moss);
}
.stock-alert-button {
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(112,105,95,.08);
  color: var(--ink);
  padding: 7px 10px;
  cursor: pointer;
}
.account-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.form-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-pair.compact {
  grid-template-columns: minmax(80px, 120px) repeat(2, minmax(0, 1fr));
  align-items: end;
}
.product-form label.check, label.check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 9px 10px;
  line-height: 1.35;
}
.product-form label.check input, label.check input {
  width: 16px;
  height: 16px;
  margin: 0;
  justify-self: center;
}
.admin-products { display: grid; gap: 10px; }
.inventory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.inventory-filters input,
.media-search input {
  min-width: 160px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 9px 10px;
}
.media-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.import-preview {
  display: grid;
  gap: 8px;
}
.import-table .inventory-head,
.import-table .inventory-row {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}
.autosave-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.translate-button {
  min-width: 108px;
}
.order-row {
  color: inherit;
  text-decoration: none;
}
body[data-theme="light"] {
  --paper: #ffffff;
  --panel: #fbfbf8;
  --moss: #4f6f67;
  --moss-dark: #284d45;
  --clay: #8f4f3b;
  --gold: #a67c2d;
}
body[data-theme="mineral"] {
  --paper: #f4f6f4;
  --panel: #ffffff;
  --moss: #49636b;
  --moss-dark: #2d454d;
  --clay: #7f5c4b;
  --gold: #9b7b45;
}
body[data-theme="nocturne"] {
  --ink: #f6f0e8;
  --muted: #c7baaa;
  --line: rgba(246,240,232,.18);
  --paper: #171615;
  --panel: #211f1c;
  --moss: #87955c;
  --moss-dark: #d8e2a8;
  --clay: #d18a62;
}
body.shop-disabled .cart-hover,
body.shop-disabled .wishlist-count,
body.shop-disabled .promo-link {
  display: none !important;
}
.inventory-filters a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  padding: 7px 11px;
}
.inventory-filters a.active {
  background: var(--ink);
  color: white;
}
.inventory-table {
  display: grid;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.inventory-head,
.inventory-row {
  display: grid;
  grid-template-columns: 90px minmax(180px, 1fr) 100px 150px 90px;
  gap: 10px;
  align-items: center;
  min-width: 720px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}
.inventory-head {
  background: #f7f3ea;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}
.inventory-row:last-child { border-bottom: 0; }
.inventory-row a { color: var(--moss-dark); font-weight: 700; }
#activity-panel a {
  color: #174f8f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.admin-mini-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.admin-mini-list div {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.65);
  padding: 9px 10px;
}
.admin-mini-list small {
  color: var(--muted);
}
.admin-product, .promo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
}
.admin-product strong, .admin-product small, .promo-row strong, .promo-row small { display: block; }
.admin-product small, .promo-row small { margin-top: 4px; color: var(--muted); }
.promo-list { display: grid; gap: 10px; }
.promo-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  padding: 7px 10px;
  cursor: pointer;
}
.muted-product { opacity: .55; }
.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-actions a, .admin-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 700;
}
.admin-actions a:hover, .admin-actions button:hover { background: rgba(49, 71, 58, .08); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.stats-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
}
.stats-grid strong {
  display: block;
  color: var(--moss-dark);
  font-size: 24px;
}
.stats-grid span { color: var(--muted); font-size: 12px; }
.size-guide {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}
.size-guide div {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.admin-image-gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-image-preview {
  width: 120px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.admin-image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-row {
  display: grid;
  grid-template-columns: 90px 110px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.order-row small { color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .topbar { padding: 0 18px; }
  .blog-card a { grid-template-columns: 1fr; }
  .blog-card img { grid-row: auto; grid-column: auto; }
  .hero, .cart-shell { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-art { min-height: 340px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .content-admin-layout { grid-template-columns: 1fr; }
  .content-settings { order: 2; }
  .product-editor { grid-row: auto; }
}

@media (max-width: 560px) {
  main { width: min(100% - 24px, 1360px); }
  .topbar { flex-wrap: wrap; padding: 12px; gap: 10px; }
  .subnav {
    gap: 8px;
    padding: 6px 12px;
    white-space: nowrap;
  }
  .top-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; grid-template-columns: minmax(92px, 118px) 1fr 44px; }
  .nav { gap: 12px; font-size: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-rail .product { flex-basis: min(172px, 46vw); }
  .compact-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cluster-card { flex-basis: min(300px, 84vw); grid-template-columns: minmax(0, 1fr) auto; }
  .cluster-card button { grid-column: 2; }
  .admin-grid { grid-template-columns: 1fr; }
  .filters h1, .cart-page h1, .account-page h1, .message-page h1 { font-size: 34px; }
  .section-head h2 { font-size: 22px; }
  .product-body { padding: 8px; gap: 4px; }
  .product h2 { font-size: 14px; }
  .category { font-size: 10px; }
  .card-description { display: none; }
  .buy-row { align-items: end; gap: 8px; }
  .buy-row span { gap: 4px; justify-content: flex-end; }
  .buy-row button:not(.wishlist-button) {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
  }
  .buy-row button:not(.wishlist-button) .add-word { display: none; }
  .buy-row button:not(.wishlist-button) .add-plus { display: inline; }
  .price-stack { font-size: 12px; gap: 2px; }
  .wishlist-button.compact { width: 28px; height: 28px; font-size: 22px; }
  .wishlist-button.compact:hover, .wishlist-button.compact.active { font-size: 22px; }
  .stock-badge { font-size: 9px; padding: 3px 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .search { grid-template-columns: 1fr; }
  .quick-filters {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .quick-filters select, .quick-filters button { flex: 0 0 130px; min-height: 40px; }
  .options { grid-template-columns: 1fr; gap: 4px; }
  .options label { font-size: 9px; }
  .options select { min-height: 28px; font-size: 11px; padding-top: 4px; padding-bottom: 4px; }
  h1 { font-size: 36px; }
  .admin-page { padding: 46px 0; }
  .admin-page h1 { font-size: 42px; }
  .admin-head { display: grid; }
  .order-row { grid-template-columns: 1fr; gap: 4px; }
  .saved-line { grid-template-columns: 56px 1fr; }
  .saved-line img, .saved-line a > span { width: 56px; }
  .profile-form label { grid-template-columns: 1fr; gap: 6px; }
  .form-pair, .form-pair.compact, .admin-product { grid-template-columns: 1fr; }
  .stock-rule-row, .promo-row { grid-template-columns: 1fr; }
  .admin-actions { justify-content: flex-start; }
}
