:root {
  color-scheme: light;
  --paper: #fdfaf7;
  --ink: #29201e;
  --muted: #64544f;
  --accent: #762f3b;
  --line: #e5d9d2;
  --wa: #1f7a4c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
html, body { touch-action: manipulation; }
button { color: inherit; font: inherit; cursor: pointer; user-select: none; -webkit-user-select: none; }
.gallery-stage, .gallery-thumbs, .qty-control, .pagination { touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.notice {
  background: #2d2123;
  color: #fff5ef;
  text-align: center;
  padding: 9px 16px;
  font-size: .85rem;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.vip-pill {
  background: #d4a359;
  color: #23191a;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.vip-pill[hidden] { display: none; }
.nav-text-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
}
.nav-text-btn:hover { text-decoration: underline; }
.header {
  min-height: 75px;
  padding: 16px clamp(18px, 5vw, 84px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.wordmark {
  font: 700 clamp(1.2rem, 3vw, 1.65rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: .14em;
  text-decoration: none;
}
.header nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 28px);
  font-size: .875rem;
  white-space: nowrap;
}
.header nav a { text-decoration: none; }
.header nav a:hover { text-decoration: underline; }
.wa-nav { color: var(--wa); font-weight: 600; }

.lang-wrap select {
  appearance: auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 6px 10px;
  font: inherit;
  font-size: .82rem;
  border-radius: 3px;
  cursor: pointer;
}

.bag-link {
  border: 0;
  background: none;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.bag-badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0dfdd;
  color: #5e2330;
  font-weight: 600;
  font-size: .8rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f3e6e0;
}
.hero-copy {
  align-self: center;
  padding: clamp(36px, 7vw, 100px) clamp(22px, 7vw, 100px);
}
.eyebrow {
  font: 700 .85rem/1.4 Georgia, serif;
  letter-spacing: .18em;
  color: var(--accent);
}
h1, h2, h3, p { margin-block: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  line-height: 1.08;
  margin: 16px 0 20px;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 30em;
  color: var(--muted);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.solid {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  min-height: 44px;
  border: 1px solid var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}
.solid:hover { background: #5b202a; }
.outline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  color: var(--ink);
  padding: 12px 20px;
  min-height: 44px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}
.outline:hover { background: var(--ink); color: #fff; }

.hero-image { min-width: 0; }
.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 620px;
  min-height: 400px;
  object-fit: cover;
  object-position: center;
}

.collection {
  max-width: 1440px;
  margin: auto;
  padding: clamp(35px, 6vw, 84px) clamp(18px, 5vw, 84px);
}
.collection-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
}
.collection-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box input {
  width: 220px;
  min-height: 36px;
  padding: 7px 28px 7px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .875rem;
  border-radius: 3px;
}
.search-box input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.search-box button {
  position: absolute;
  right: 4px;
  border: 0;
  background: none;
  width: 26px;
  height: 26px;
  font-size: 1.1rem;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.search-box button[hidden] { display: none; }
.empty-search {
  text-align: center;
  color: var(--muted);
  padding: 36px 16px;
  font-size: .95rem;
}
.empty-search[hidden] { display: none; }
.price.inquire-tag {
  color: var(--accent);
  font-size: .9rem;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 14px;
  font-size: .875rem;
  min-height: 36px;
}
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}
.product { min-width: 0; }
.product-photo {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  width: 100%;
  background: #f2e5df;
  overflow: hidden;
}
.photo-count-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(41, 32, 30, 0.72);
  color: #fff;
  font-size: .72rem;
  padding: 3px 8px;
  border-radius: 999px;
  pointer-events: none;
}
.product-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .25s;
}
.product-photo:hover img { transform: scale(1.035); }
.product-body { padding-top: 16px; }
.category {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
h3 { margin-block: 6px 6px; font-size: 1.08rem; }
h3 button {
  background: none;
  border: none;
  text-align: left;
  padding: 0;
  font-weight: 600;
}
h3 button:hover { text-decoration: underline; }
.description { line-height: 1.55; color: var(--muted); font-size: .92rem; }
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.price {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}
.sku-tag {
  color: var(--muted);
  font-size: .78rem;
}
.quick-add-btn {
  margin-top: 10px;
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 600;
  padding: 6px 10px;
  transition: background .15s, color .15s;
}
.quick-add-btn:hover { background: var(--ink); color: #fff; }
.quick-add-btn.added { background: var(--wa); border-color: var(--wa); color: #fff; }

.info-strip {
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px clamp(18px, 5vw, 84px) 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
}
.info-item h3 {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.info-item p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

.contact-qr {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px clamp(18px, 5vw, 84px) 64px;
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--line);
}
.contact-copy h2 { margin: 8px 0 12px; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; max-width: 34em; }
.contact-phone {
  margin-top: 12px;
  color: var(--ink) !important;
  font-weight: 700;
  font-size: 1rem;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.wa-solid { background: var(--wa); border-color: var(--wa); }
.wa-solid:hover { background: #165e39; }
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(41, 32, 30, .06);
}
.qr-card img {
  display: block;
  width: 176px;
  height: 176px;
}
.qr-card span {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
}

#qr-dialog { width: min(92vw, 400px); }
.qr-modal-body { text-align: center; }
.qr-modal-img {
  display: block;
  width: min(240px, 68vw);
  height: auto;
  margin: 4px auto 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.qr-modal-phone {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 6px;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  gap: 15px;
  color: var(--muted);
  padding: 26px clamp(18px, 5vw, 84px);
  font-size: .875rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.footer-links a {
  color: var(--wa);
  font-weight: 600;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }

dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(92vw, 760px);
  max-height: 88dvh;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(25, 16, 15, .28);
  overflow: hidden;
  overscroll-behavior: contain;
}
dialog[open] {
  display: flex;
  flex-direction: column;
}
dialog::backdrop {
  background: rgba(35, 25, 26, .62);
}
.dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  flex: 0 0 auto;
}
.dialog-bar h2 {
  font-size: 1.25rem;
  margin: 0;
}
.dialog-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
}
.share-btn:hover { border-color: var(--ink); }
.share-btn.copied { background: var(--wa); border-color: var(--wa); color: #fff; }
.dialog-bar form { margin: 0; }

.option-group { margin-bottom: 14px; }
.option-group[hidden] { display: none; }
.opt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.opt-label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.opt-head .opt-label { margin-bottom: 0; }
.size-guide-link { padding: 0; font-size: .8rem; }
.opt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.opt-pill {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 6px 12px;
  min-height: 34px;
  font-size: .84rem;
  font-weight: 600;
  border-radius: 3px;
}
.opt-pill[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

#guide-dialog { width: min(92vw, 620px); }
.guide-section { margin-bottom: 22px; }
.guide-section:last-child { margin-bottom: 0; }
.guide-section h3 {
  font-family: Georgia, serif;
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.guide-tip { color: var(--muted); font-size: .88rem; line-height: 1.55; margin-bottom: 10px; }
.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  background: #fff;
}
.size-table th, .size-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: center;
}
.size-table th { background: #f3e6e0; font-weight: 600; }
.guide-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}
.guide-list li { margin-bottom: 6px; }
.dialog-body {
  padding: 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
}
.close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.close:hover { background: #efe4de; }
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 24px;
}
.detail-gallery { min-width: 0; }
.gallery-stage {
  position: relative;
  background: #f2e5df;
  overflow: hidden;
}
.gallery-stage img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(253, 250, 247, 0.88);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.gallery-nav:hover { background: #fff; }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-nav[hidden] { display: none; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.gallery-thumbs[hidden] { display: none; }
.gallery-thumb {
  width: 60px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  background: #f2e5df;
  overflow: hidden;
}
.gallery-thumb[aria-current="true"] { border-color: var(--accent); }
.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-layout h2 { font-size: 1.55rem; margin: 6px 0 10px; }
.detail-layout p { line-height: 1.6; }
.detail-price { font-size: 1.25rem; margin-top: 14px; }
.sku { color: var(--muted); font-size: .85rem; margin-block: 8px 12px; }
.qty-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.qty-label { font-size: .88rem; color: var(--muted); font-weight: 600; }
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}
.qty-control button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.qty-control button:hover { background: #f3e6e0; }
.qty-control span {
  min-width: 34px;
  text-align: center;
  font-weight: 600;
  font-size: .92rem;
}
.detail-actions { display: flex; flex-direction: column; gap: 10px; }

#bag-dialog { width: min(92vw, 540px); }
.bag-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
}
.bag-item-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: #f2e5df;
  border-radius: 4px;
}
.bag-item-meta { min-width: 0; }
.bag-item-name { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.bag-item-sub { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.bag-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.bag-item .qty-control button { width: 30px; height: 30px; font-size: 1rem; }
.bag-item .qty-control span { min-width: 28px; font-size: .85rem; }
.bag-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 4px;
  font-size: 1.05rem;
}
.bag-actions { display: flex; flex-direction: column; gap: 10px; }
.bag-wa-btn { width: 100%; background: var(--wa); border-color: var(--wa); }
.bag-wa-btn:hover { background: #165e39; }
.bag-sub-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bag-sub-actions .outline { flex: 1; min-height: 40px; padding: 8px 12px; font-size: .86rem; }
.text-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: .84rem;
  padding: 8px 6px;
  text-decoration: underline;
}
.text-btn:hover { color: var(--accent); }
.empty { margin-top: 14px; color: var(--muted); }

.fab-wa {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}
.fab-wa:hover { background: #165e39; }

@media (max-width: 780px) {
  html, body { overflow-x: hidden; }
  .notice { font-size: .76rem; padding: 8px 12px; }
  .header { min-height: 60px; padding: 12px 16px; gap: 10px; }
  .wordmark { font-size: 1.15rem; letter-spacing: .12em; }
  .header nav { gap: 10px; }
  .wa-nav, .nav-text-btn { display: none; }
  .lang-wrap select { padding: 6px 6px; font-size: .78rem; max-width: 112px; }

  .hero { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .hero-image img { min-height: 0; max-height: 320px; aspect-ratio: 4 / 3; }
  .hero-copy { padding: 24px 16px 30px; }
  h1 { font-size: 2rem; margin: 10px 0 12px; }
  .hero-actions { margin-top: 18px; }
  .hero-actions a { flex: 1 1 140px; }

  .collection { padding: 28px 14px 40px; }
  .collection-head { margin-bottom: 18px; gap: 12px; }
  .collection-tools { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .search-box, .search-box input { width: 100%; }
  .filters {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: 0 0 auto; padding: 8px 14px; }

  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-body { padding-top: 10px; }
  .category { font-size: .72rem; }
  h3 { font-size: .95rem; margin-block: 4px; }
  .description { font-size: .8rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .price-row { flex-direction: column; gap: 2px; margin-top: 8px; }
  .price { font-size: .95rem; }
  .sku-tag { font-size: .72rem; }

  .info-strip { grid-template-columns: 1fr; padding: 26px 16px 36px; gap: 18px; }
  .contact-qr { grid-template-columns: 1fr; padding: 28px 16px 36px; gap: 20px; text-align: center; }
  .contact-copy > p:not(.eyebrow) { margin-inline: auto; }
  .contact-actions { justify-content: center; }
  .qr-card { margin-inline: auto; }
  footer { padding: 22px 16px calc(76px + env(safe-area-inset-bottom, 0px)); font-size: .8rem; }
  .fab-wa { display: inline-flex; }
}

@media (max-width: 640px) {
  .header nav > a[href="#collection"] { display: none; }
  dialog {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: 86dvh;
    border-radius: 12px;
  }
  .dialog-bar { padding: 10px 10px 10px 16px; }
  .dialog-body { padding: 14px 16px 18px; }
  .close { width: 42px; height: 42px; font-size: 1.65rem; }
  .detail-layout { grid-template-columns: 1fr; gap: 14px; }
  .gallery-stage img {
    aspect-ratio: auto;
    max-height: 38dvh;
    width: 100%;
    object-fit: contain;
    background: #f2e5df;
  }
  .gallery-nav { width: 40px; height: 40px; font-size: 1.45rem; }
  .gallery-thumb { width: 50px; height: 50px; }
  .detail-layout h2 { font-size: 1.25rem; margin: 0 0 6px; }
  .detail-layout p { font-size: .9rem; line-height: 1.5; }
  .detail-price { font-size: 1.15rem; margin-top: 10px; }
  .sku { margin-block: 6px 12px; }
  .detail-actions .solid, .detail-actions .outline { width: 100%; min-height: 46px; }
}

@media (max-width: 340px) {
  .products { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .product-photo img { transition: none; }
}


/* === 5603-item Catalog Pagination & Stats === */
.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .86rem;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}
.pagination[hidden] { display: none; }
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 600;
  border-radius: 3px;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--ink);
}
.page-btn[aria-current="page"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.page-btn:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.page-ellipsis {
  padding: 0 4px;
  color: var(--muted);
  font-size: .88rem;
}
@media (max-width: 780px) {
  .pagination { gap: 6px; margin-top: 24px; }
  .page-btn { min-width: 34px; height: 34px; padding: 0 9px; font-size: .8rem; }
}


/* === Photo-as-Variant Selector & Optional Note === */
.gallery-select-hint {
  margin-top: 10px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
}
.gallery-select-hint[hidden] { display: none; }
.gallery-thumb {
  position: relative;
  border-radius: 4px;
}
.gallery-thumb-num {
  position: absolute;
  left: 3px;
  bottom: 3px;
  background: rgba(41, 32, 30, 0.78);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 3px;
  pointer-events: none;
}
.gallery-thumb[aria-current="true"] .gallery-thumb-num {
  background: var(--accent);
}
.note-group {
  margin-bottom: 14px;
}
.note-input {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .85rem;
  border-radius: 3px;
}
.note-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}


/* === Red-Pen Photo Markup Canvas === */
#mark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  z-index: 4;
}
#mark-canvas[hidden] { display: none; }
.mark-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.mark-bar[hidden] { display: none; }
.mark-trigger-btn {
  border: 1px dashed var(--accent);
  background: #fff8f6;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 12px;
  min-height: 34px;
  border-radius: 4px;
}
.mark-trigger-btn:hover {
  background: var(--accent);
  color: #fff;
}
.mark-badge {
  background: #e6f4ec;
  color: var(--wa);
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}
.mark-badge[hidden] { display: none; }
.mark-tools {
  margin-top: 10px;
  padding: 10px;
  background: #fff8f6;
  border: 1px solid #eccfd4;
  border-radius: 6px;
}
.mark-tools[hidden] { display: none; }
.mark-guide {
  font-size: .8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.mark-tool-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mark-mini-btn {
  padding: 6px 10px;
  min-height: 34px;
  font-size: .8rem;
}
.mark-save-btn {
  padding: 6px 14px;
  min-height: 34px;
  font-size: .82rem;
  margin-left: auto;
}
