.catalog-page { display: flex; min-height: 100vh; flex-direction: column; }
.catalog-page .catalog-shell { flex: 1; width: 100%; }

.catalog-shell {
  max-width: 80rem;
  margin-inline: auto;
  min-height: 66vh;
  padding: 2.75rem 2rem 4rem;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e1da;
}

.catalog-heading h1 {
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.catalog-browse {
  --catalog-gutter: clamp(1rem, 3vw, 2rem);
  padding: 1.65rem var(--catalog-gutter) 4rem;
}

.catalog-results { min-width: 0; container-type: inline-size; }
.catalog-section + .catalog-section { margin-top: 1.45rem; }
.catalog-main-name {
  margin: 0 0 .55rem;
  padding-left: .55rem;
  border-left: .21rem solid #805c36;
  font-size: clamp(1.18rem, 2.2vw, 1.5rem);
  font-weight: 750;
  overflow-wrap: anywhere;
}
.catalog-group { padding: .78rem; border: 1px solid #e5e1da; border-radius: .88rem; background: #fff; }
.catalog-group + .catalog-group { margin-top: .68rem; }
.catalog-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .65rem; }
.catalog-group-name { min-width: 0; font-size: clamp(.97rem, 1.6vw, 1.12rem); font-weight: 700; overflow-wrap: anywhere; }
.catalog-group-heading a { margin-left: auto; color: #805c36; font-size: .85rem; font-weight: 650; white-space: nowrap; }
.catalog-group-heading a:hover { text-decoration: underline; }


.catalog-search {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: min(100%, 23rem);
  padding: .25rem;
  padding-inline-start: .85rem;
  border: 1px solid #e5e1da;
  border-radius: .7rem;
  background: #fff;
}

.catalog-search:focus-within { border-color: #8f7048; }
.catalog-search input:focus-visible { outline: none; }
.catalog-search i { color: #8f7048; font-size: 1.12rem; }
.catalog-search input {
  min-width: 0;
  flex: 1;
  padding: .55rem 0;
  outline: none;
  background: transparent;
  font-size: .94rem;
}

.catalog-search button, .product-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1rem;
  border-radius: .48rem;
  background: #80623d;
  color: #fff;
  font-size: .9rem;
  font-weight: 650;
  white-space: nowrap;
}

.catalog-search button:hover, .product-primary:hover { background: #654a2c; }

/* ===== 商品頁版頭: 白色品牌卡, 左側品牌圖填滿、右側搜尋 (900px 以下上下排) ===== */
.catalog-stage {
  position: relative; z-index: 34;  /* 高於篩選列 (33), 搜尋建議清單才不會被蓋住 */
  display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(16rem, 1fr); align-items: center; gap: 1.75rem;
  margin-bottom: 1.1rem; padding: 1.1rem 1.75rem 1.25rem 1.1rem;
  border: 1px solid #e5e1da; border-radius: 1.35rem; background: #fff;
  box-shadow: 0 14px 34px -22px rgba(30, 79, 163, .35);
}
/* 裝飾層獨立裁切: 品牌卡本身不能 overflow:hidden, 否則搜尋建議清單會被切掉 */
.catalog-stage-bg { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.catalog-stage-bg::before {
  content: ""; position: absolute; top: -40%; right: -12%; width: 62%; height: 180%;
  background: radial-gradient(closest-side, rgba(234, 244, 255, .95), rgba(234, 244, 255, 0));
}
.catalog-stage-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, #1e4fa3, #3e8bea 45%, #ffc93c 70%, #f28c1b);
}
.catalog-stage-brand { position: relative; min-width: 0; margin: 0; }
.catalog-stage-brand img { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 667; }
.catalog-stage-side { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; min-width: 0; }
.catalog-stage-title { color: #1e4fa3; font-size: .95rem; font-weight: 700; letter-spacing: .04em; overflow-wrap: anywhere; }
.catalog-stage .catalog-search { width: 100%; min-width: 0; }
.catalog-stage .catalog-search button { flex: none; }

@media (max-width: 899px) {
  .catalog-stage { grid-template-columns: minmax(0, 1fr); gap: .8rem; padding: .7rem .7rem 1.05rem; border-radius: 1.1rem; }
  .catalog-stage-brand img { max-width: 45rem; margin-inline: auto; }
  .catalog-stage-side { width: 100%; max-width: 45rem; margin-inline: auto; }
  .catalog-stage-title { display: none; }
}
@media (max-width: 639px) {
  .catalog-stage { margin-bottom: .9rem; }
}

/* ===== 商品頁搜尋框 + 搜尋建議 ===== */
.catalog-search[data-catalog-search] { position: relative; }
.catalog-search-field { display: flex; flex: 1; align-items: center; gap: .65rem; min-width: 0; }
.catalog-search-field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.catalog-search-clear {
  display: inline-grid; place-items: center; flex: none;
  width: 1.9rem; height: 1.9rem; border-radius: 999px; color: #8a7f73;
}
.catalog-search-clear:hover { background: #f1efea; color: #29221b; }
.catalog-search .catalog-search-clear i { color: inherit; font-size: .95rem; }
.catalog-suggest {
  position: absolute; z-index: 40; top: calc(100% + .45rem); left: 0; right: 0;
  display: grid; padding: .35rem;
  border: 1px solid #e5e1da; border-radius: .9rem; background: #fff;
  box-shadow: 0 1.1rem 2.2rem -.9rem rgba(62, 52, 36, .32);
}
.catalog-suggest li { list-style: none; }
.catalog-suggest a {
  display: flex; align-items: center; gap: .4rem; min-height: 2.4rem; padding: .45rem .75rem;
  border-radius: .55rem; color: #29221b; font-size: .92rem; line-height: 1.4;
}
.catalog-suggest a > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-suggest [aria-selected="true"] a, .catalog-suggest a:hover { background: #f1efea; }
.catalog-suggest mark { background: none; color: #805c36; font-weight: 750; }
.catalog-suggest-path { flex: none; color: #8a7f73; white-space: nowrap; }
.catalog-suggest-sep { height: 1px; margin: .25rem .5rem; background: #f0ede7; }

/* ===== 商品篩選列 (置於頁首下方, 不隨捲動跟隨) ===== */
.catalog-filter {
  position: relative; z-index: 33;
  margin-bottom: 1rem;
  border: 1px solid #e5e1da; border-radius: .88rem;
  background: #fff;
  box-shadow: 0 2px 5px #3e34240a;
}
.catalog-filter ul, .catalog-filter ol { margin: 0; padding: 0; list-style: none; }
.catalog-filter-main, .catalog-filter-chips { display: flex; gap: .45rem; }
.catalog-filter-main { flex-wrap: wrap; align-items: center; padding: .75rem .85rem; }
/* 選中膠囊只包住文字 (內距收小), 不再撐出大塊圓形底色 */
.catalog-tab {
  position: relative; display: inline-flex; align-items: center;
  padding: .3rem .9rem; border-radius: 999px;
  color: #5a5a5a; font-size: 1rem; font-weight: 500; line-height: 1.5; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}
.catalog-tab:hover { background: #f1efea; color: #29221b; }
.catalog-tab[aria-current] { background: #3e3424; color: #fff; font-weight: 700; box-shadow: 0 4px 10px -7px rgba(62, 52, 36, .7); }
.catalog-filter-sub {
  display: flex; align-items: center; gap: .55rem;
  padding: .7rem 1.15rem .8rem;
  border-top: 1px dashed #e5e1da;
}
.catalog-filter-path { display: flex; flex: none; align-items: center; gap: .3rem; margin-right: .2rem !important; }
.catalog-filter-path li { display: flex; align-items: center; gap: .3rem; }
.catalog-filter-path a { display: inline-flex; align-items: center; gap: .28rem; color: #805c36; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.catalog-filter-path a:hover { text-decoration: underline; }
.catalog-filter-path .ph-caret-right { color: #8a7f73; font-size: .7rem; }
.catalog-filter-chips { flex-wrap: wrap; min-width: 0; }
.catalog-chip {
  display: inline-flex; align-items: center;
  padding: .2rem .85rem; border: 1px solid #e5e1da; border-radius: 999px; background: #fff;
  color: #5a5a5a; font-size: .9rem; line-height: 1.5; white-space: nowrap;
  transition: border-color .18s ease, color .18s ease;
}
.catalog-chip:hover { border-color: #b8956a; color: #29221b; }
.catalog-chip[aria-current] { border-color: #b8956a; background: rgba(184, 149, 106, .1); color: #805c36; font-weight: 700; }
.catalog-filter :focus-visible { outline-offset: 1px; }
.catalog-results { transition: opacity .15s ease; }
[data-catalog][aria-busy="true"] .catalog-results { opacity: .55; }

/* 平板以下: 兩層都改單排左右滑動 (不換行、右緣漸層淡出) */
@media (max-width: 1023px) {
  .catalog-filter-main, .catalog-filter-chips {
    position: relative; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    overscroll-behavior-x: contain; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent);
  }
  .catalog-filter-main::-webkit-scrollbar, .catalog-filter-chips::-webkit-scrollbar { display: none; }
  .catalog-filter-main li, .catalog-filter-chips li { flex: none; scroll-snap-align: start; }
  .catalog-filter-main li:last-child, .catalog-filter-chips li:last-child { padding-right: 1.5rem; }
}

.catalog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
}

.catalog-grid article, .catalog-rows article { min-width: 0; }
.catalog-rows { display: grid; gap: .8rem; max-width: 56rem; margin-inline: auto; }
.product-card {
  display: block;
  overflow: hidden;
  height: 100%;
  border: 1px solid #e5e1da;
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 2px 4px rgba(62, 52, 36, .035);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.product-card:hover {
  border-color: #b8956a;
  box-shadow: 0 5px 14px rgba(62, 52, 36, .10);
}

.product-card-photo { aspect-ratio: 4/3; overflow: hidden; background: #f1efe9; }
.product-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .23s ease;
}

.product-card:hover img { transform: scale(1.025); }
.product-card-content {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-width: 0;
  padding: 1rem;
}

.product-card :is(h2, h3, h4, p) {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card :is(h2, h3, h4) { color: #29221b; font-size: 1.08rem; font-weight: 700; line-height: 1.45; }
.product-card p { color: #5a5a5a; font-size: .88rem; line-height: 1.52; }
.product-pricing { display: flex; flex-wrap: wrap; align-items: center; gap: .28rem .5rem; }
.product-price { min-width: 0; color: #805c36; font-size: 1.22rem; font-weight: 750; overflow-wrap: anywhere; }
.product-currency { display: inline-block; font-size: .76em; font-weight: 500; color: #5a5a5a; white-space: nowrap; }
.product-installment-label {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  max-width: 100%;
  padding: .14rem .49rem;
  border: 1px solid #e8dac7;
  border-radius: 1rem;
  background: #f5ede2;
  color: #69482b;
  font-size: .74rem;
  font-weight: 650;
  line-height: 1.35;
}
.product-installment-label i { flex: none; font-size: .86rem; }
.product-installment-label span { min-width: 0; overflow-wrap: anywhere; }
.catalog-rows .product-card { display: grid; align-items: stretch; grid-template-columns: minmax(0, 30%) minmax(0, 1fr); }
.catalog-rows .product-card-content { justify-content: center; padding: 1.4rem; }

.product-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .8rem;
  min-height: 18rem;
  padding: 2rem 1rem;
  border: 1px solid #e5e1da;
  border-radius: .95rem;
  background: #fff;
  text-align: center;
}

.product-empty-icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1rem;
  background: #f4ede3;
  color: #80623d;
  font-size: 1.55rem;
}

.product-empty h2 { font-size: 1.1rem; font-weight: 650; }
.product-empty a { color: #80623d; font-size: .88rem; text-decoration: underline; }

.product-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .38rem;
  margin-top: 2rem;
}

.product-pagination > :is(a, span) {
  display: grid;
  min-width: 2.36rem;
  min-height: 2.5rem;
  place-items: center;
  padding-inline: .36rem;
  border: 1px solid #e5e1da;
  border-radius: .5rem;
  background: #fff;
  color: #5a5a5a;
  font-size: .87rem;
}

.product-pagination > a:hover { border-color: #8f7048; color: #805c36; }
.product-pagination > [aria-current="page"] { border-color: #80623d; background: #80623d; color: #fff; font-weight: 700; }
.product-pagination > [aria-disabled="true"] { opacity: .5; }
.product-pagination > .product-pagination-ellipsis { min-width: 1.15rem; padding: 0; border-color: transparent; background: transparent; }

.product-detail { padding-top: 1.6rem; }
.product-detail-tools { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.product-back { display: inline-flex; align-items: center; gap: .45rem; color: #5a5a5a; font-size: .9rem; font-weight: 550; }
.product-back:hover { color: #80623d; }
.product-detail-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.product-detail-summary h1 {
  margin-bottom: .35rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.product-detail-summary .product-price { font-size: 1.55rem; }
.product-detail-desktop-contact { display: none; }
.product-detail-desktop-contact p { margin-bottom: .8rem; color: #5a5a5a; font-size: .88rem; font-weight: 650; }
.product-gallery-main { position: relative; overflow: hidden; border: 1px solid #e5e1da; border-radius: .9rem; background: #eeeae3; }
.product-gallery-main > img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; }
.product-gallery-main button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(62, 52, 36, .15);
  border-radius: 50%;
  background: #fff;
  color: #3e3424;
}

.product-gallery-main button:disabled { display: none; }
.product-gallery-main button[data-gallery-step="-1"] { left: .75rem; }
.product-gallery-main button[data-gallery-step="1"] { right: .75rem; }
.product-gallery-thumbs { display: flex; gap: .55rem; overflow-x: auto; margin-top: .65rem; padding: .2rem; }
.product-gallery-thumbs a { flex: 0 0 5rem; overflow: hidden; border: 2px solid transparent; border-radius: .55rem; }
.product-gallery-thumbs a[aria-current] { border-color: #8f7048; }
.product-gallery-thumbs img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }

.product-detail-description { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; min-width: 0; }
.product-detail-intro, .product-detail-merchant {
  padding: 1.3rem 1.5rem;
  border: 1px solid #e5e1da;
  border-radius: .9rem;
  background: white;
}
.product-detail-intro h2, .product-detail-merchant h2 { margin-bottom: .7rem; font-size: 1.1rem; font-weight: 700; }
.product-intro-copy { color: #484440; line-height: 1.75; overflow-wrap: anywhere; white-space: pre-line; }
.product-detail-video { margin-top: 1rem; }
.product-video-watch {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .38rem;
  margin-top: .55rem;
  color: #805c36;
  font-size: .88rem;
}
.product-video-watch:hover { text-decoration: underline; }
.product-detail-merchant dl > div { display: grid; grid-template-columns: minmax(5.5rem, 28%) minmax(0, 1fr); gap: .58rem; padding: .56rem 0; border-top: 1px solid #eeebe4; font-size: .89rem; }
.product-detail-merchant dt { color: #5a4b3e; font-weight: 650; }
.product-detail-merchant dd { color: #484440; white-space: pre-line; overflow-wrap: anywhere; }
.product-detail-mobile-contact {
  position: fixed;
  z-index: 40;
  inset-inline: 0;
  bottom: 0;
  padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
  border-top: 1px solid #e5e1da;
  background: white;
  box-shadow: 0 -4px 14px rgba(62, 52, 36, .06);
}
.product-detail-mobile-contact + footer { padding-bottom: 6rem; }
.product-detail [data-contact-channel="line"],
.product-detail-mobile-contact [data-contact-channel="line"] { background: #08743d; color: #fff; }
.product-detail [data-contact-channel="line"]:hover,
.product-detail-mobile-contact [data-contact-channel="line"]:hover { background: #06552e; }
.product-detail-desktop-contact [data-contact-channel="messenger"],
.product-detail-desktop-contact [data-contact-channel="facebook"] { background: #125dbe; color: #fff; }
.product-detail-mobile-contact [data-contact-channel="messenger"],
.product-detail-mobile-contact [data-contact-channel="facebook"] { color: #164d96; }

.product-admin-shell { max-width: 72rem; margin-inline: auto; padding: 2rem 1.5rem 4rem; }
.product-admin-shell--editor { max-width: 55rem; }
.product-admin-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.35rem; }
.product-admin-heading h1 { font-size: clamp(1.45rem, 4vw, 1.9rem); font-weight: 750; line-height: 1.3; }
.product-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.product-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem .85rem;
  border: 1px solid #ded8ce;
  border-radius: .48rem;
  color: #54412e;
  background: #fff;
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
}
.product-secondary:hover { border-color: #8f7048; background: #f9f6f1; }
.product-admin-toolbar { display: flex; gap: .65rem; align-items: stretch; margin-bottom: 1rem; }
.catalog-search.product-admin-search { width: min(100%, 23rem); min-width: 0; }
.product-admin-filter { position: relative; flex: 0 0 auto; }
.product-admin-filter > summary {
  min-width: 5.6rem;
  height: 100%;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
}
.product-admin-filter > summary::-webkit-details-marker { display: none; }
.product-admin-filter[open] > summary { border-color: #8f7048; background: #f9f6f1; }
.product-admin-filter[open] > summary i { transform: rotate(180deg); }
.product-filter-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + .32rem);
  right: 0;
  min-width: 100%;
  padding: .22rem;
  border: 1px solid #ded8ce;
  border-radius: .55rem;
  background: #fff;
  box-shadow: 0 .25rem .8rem #3e34241a;
}
.product-filter-options > a { display: block; padding: .5rem .6rem; border-radius: .33rem; color: #54412e; font-size: .86rem; }
.product-filter-options > a:hover, .product-filter-options > a[aria-current] { background: #f4ede3; }
.product-filter-options > a[aria-current] { font-weight: 700; }
.product-admin-panel { border: 1px solid #e5e1da; border-radius: .85rem; background: white; }
.product-admin-table-header, .product-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5rem, 12%) minmax(5rem, 13%) minmax(5.9rem, 9%);
  align-items: center;
  gap: .8rem;
  padding: .78rem 1rem;
}
.product-admin-table-header { color: #5a5a5a; font-size: .82rem; background: #faf8f5; border-radius: .85rem .85rem 0 0; }
.product-admin-row { border-top: 1px solid #eeebe4; font-size: .92rem; }
.product-admin-item { display: flex; align-items: center; gap: .75rem; min-width: 0; font-weight: 650; overflow-wrap: anywhere; }
.product-admin-item:hover { color: #80623d; }
.product-admin-item img { flex: 0 0 4rem; width: 4rem; height: 3rem; border-radius: .45rem; object-fit: cover; background: #f1efe9; }
.product-status { display: inline-flex; width: fit-content; padding: .19rem .55rem; border-radius: 1rem; background: #f4f0e9; color: #5a5045; font-weight: 650; font-size: .73rem; white-space: nowrap; }
.product-status--public { background: #e8f2e9; color: #28513b; }
.product-admin-price { color: #54412e; font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-admin-edit { color: #80623d; text-decoration: underline; text-underline-offset: .16em; }
.product-admin-row-actions { display: flex; justify-content: flex-end; gap: .7rem; white-space: nowrap; }
.product-admin-delete { color: #a52626; text-decoration: underline; text-underline-offset: .16em; }
.product-danger { background: #a52626; }
.product-danger:hover { background: #831e1e; }

.product-editor { display: grid; gap: .8rem; }
.product-editor section, .product-editor details { padding: 1.15rem 1.3rem; }
.product-editor section h2, .product-editor summary { font-weight: 700; }
.product-editor summary { cursor: pointer; }
.product-editor-grid { display: grid; gap: .9rem; grid-template-columns: minmax(0, 2fr) minmax(8rem, 1fr); }
.product-editor-grid--equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-editor-section-heading { display: flex; justify-content: space-between; align-items: center; gap: .55rem; }
.product-editor-section-heading span { color: #655a4e; font-size: .82rem; }
.product-editor-video-field { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem .7rem; }
.product-editor-video-field .product-field { flex: 1 0 min(100%, 14rem); }
.product-editor-video-field button { min-height: 2.7rem; }
.product-editor-video-field button[hidden] { display: none; }
.product-editor-video-field button:disabled { opacity: .55; cursor: default; }
#product-video-preview { max-width: 41rem; margin-top: .75rem; }
.product-field { min-width: 0; }
.product-field label { display: block; margin-bottom: .27rem; color: #4d4032; font-size: .87rem; font-weight: 650; }
.product-price-field-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .45rem; }
.product-price-optional { color: #5a5a5a; font-size: .76rem; }
.product-editor-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: .15rem .5rem;
  border: 1px solid #e5e1da;
  border-radius: .55rem;
  background: #faf7f2;
}
.product-editor-option {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.65rem;
  padding: .35rem .55rem;
  color: #4d4032;
  font-size: .87rem;
  font-weight: 650;
  cursor: pointer;
}
.product-editor-option + .product-editor-option { border-inline-start: 1px solid #e5e1da; padding-inline-start: .8rem; }
.product-editor-option input { flex: none; width: 1rem; height: 1rem; accent-color: #805c36; }
.product-field :is(input, textarea, select), .product-order-node [data-product-position] {
  display: block;
  width: 100%;
  padding: .58rem .7rem;
  border: 1px solid #ded8ce;
  border-radius: .53rem;
  outline: none;
  background: #fff;
  font-size: .94rem;
}
.product-field textarea { resize: vertical; }
.product-field :is(input, textarea, select):focus, .product-order-node [data-product-position]:focus { border-color: #8f7048; box-shadow: 0 0 0 2px #f1e7d9; }
.product-field select:disabled { background: #f5f2ed; color: #70655b; }
.product-field input[type="file"] { padding: .3rem; }
.product-field input::file-selector-button { max-width: 100%; padding: .36rem .55rem; margin-right: .6rem; border-radius: .35rem; background: #f4ede3; color: #54412e; cursor: pointer; }
.product-field .errorlist, .product-errors { margin-top: .35rem; color: #a52626; font-size: .85rem; }
.product-editor-cover { width: min(100%, 17rem); margin-bottom: .65rem; aspect-ratio: 4/3; object-fit: cover; border-radius: .55rem; }
.product-edit-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.6rem, 1fr)); gap: .6rem; margin: .7rem 0; }
.product-edit-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: .45rem; }
.product-edit-photos label { display: flex; align-items: center; gap: .35rem; padding-block: .38rem; color: #5a5a5a; font-size: .82rem; }
.product-translations > details { padding: .7rem 0; border-top: 1px solid #eeebe4; }
.product-translations > details:first-child { margin-top: .75rem; }

.product-order-tree { display: grid; gap: .7rem; }
.product-order-node {
  --order-controls-width: 7.2rem;
  position: relative;
  min-width: 0;
  scroll-margin-top: 6rem;
}
.product-order-node > .product-order-handle { position: absolute; top: .45rem; left: .45rem; }
.product-order-other { margin-top: .7rem; --order-controls-width: .8rem; }
.product-order-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem .5rem;
  min-height: 3.25rem;
  padding: .55rem var(--order-controls-width) .55rem 2.45rem;
  list-style: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.product-order-other .product-order-summary { padding-left: .9rem; }
.product-order-summary::-webkit-details-marker { display: none; }
.product-order-summary strong { color: #453427; font-size: .92rem; }
.product-order-count, .product-order-empty { color: #655a4e; font-size: .78rem; }
.product-order-summary .ph { color: #80623d; font-size: .76rem; }
.product-order-node details[open] > .product-order-summary .ph { transform: rotate(180deg); }
.product-order-body { padding: .2rem .8rem .7rem; }
.product-order-subheading { display: flex; align-items: baseline; justify-content: space-between; gap: .55rem; margin: .1rem 0 .5rem; font-size: .83rem; font-weight: 650; }
.product-order-subheading i { margin-right: .2rem; }
.product-order-children { display: grid; gap: .45rem; margin-left: .15rem; padding-left: .65rem; border-left: 1px solid #e5e1da; }
.product-order-children > li { border: 1px solid #e5e1da; border-radius: .58rem; background: #faf8f5; }
.product-order-children .product-order-body { padding-inline: .65rem; }
.product-order-tag-actions { position: absolute; top: .38rem; right: .5rem; display: flex; align-items: center; gap: .35rem; }
.product-order-tag-actions a { display: grid; place-items: center; width: 2rem; min-height: 2rem; border: 1px solid #ded8ce; border-radius: .42rem; background: #fff; color: #80623d; }
.product-order-tag-actions a:hover { background: #f4ede3; }
.product-order-node [data-product-position] {
  width: 3.75rem;
  min-height: 2.25rem;
  padding: .22rem .35rem;
  text-align: end;
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
}
.product-order-items { border: 1px solid #e5e1da; border-radius: .58rem; background: #fff; }
.product-order-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .45rem; padding: .4rem .48rem; }
.product-order-row + .product-order-row { border-top: 1px solid #eeebe4; }
.product-order-item { display: flex; align-items: center; gap: .5rem; min-width: 0; overflow-wrap: anywhere; font-size: .86rem; }
.product-order-item:hover { color: #805c36; }
.product-order-item img { flex: none; width: 3rem; height: 2.25rem; object-fit: cover; border-radius: .33rem; background: #f1efe9; }
.product-order-item small { display: block; color: #805c36; font-size: .76rem; }
.product-order-handle { display: grid; place-items: center; min-height: 2.25rem; padding: .2rem; color: #80623d; font-size: 1.2rem; cursor: grab; touch-action: none; }
.product-order-ghost { opacity: .35; }
.product-tag-form { display: grid; gap: .7rem; padding: .8rem; margin: .12rem 0 .65rem; border: 1px solid #e5e1da; border-radius: .58rem; background: #fff; }
.product-tag-form summary { cursor: pointer; font-size: .85rem; font-weight: 650; }
.product-tag-translations { display: grid; gap: .6rem; margin-top: .55rem; }

.catalog-shell :focus-visible, .product-admin-shell :focus-visible { outline: 2px solid #8f7048; outline-offset: 2px; }

@media (min-width: 360px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .product-detail-grid { grid-template-columns: minmax(0, 1fr) minmax(17rem, 20rem); gap: 1.3rem; }
  .product-detail-summary {
    position: sticky;
    top: 5.5rem;
    align-self: start;
    grid-area: 1 / 2 / span 2 / 3;
    padding: 1.4rem;
    border: 1px solid #e5e1da;
    border-radius: .9rem;
    background: white;
  }
  .product-detail-desktop-contact { display: block; margin-top: 1.2rem; padding-top: 1.05rem; border-top: 1px solid #e5e1da; }
  .product-detail-mobile-contact { display: none; }
  .product-detail-mobile-contact + footer { padding-bottom: 0; }
}

@media (min-width: 1280px) {
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .catalog-shell { padding: 1.65rem 1rem 3rem; }
  .catalog-heading { flex-direction: column; align-items: stretch; gap: .9rem; margin-bottom: 1.05rem; padding-bottom: .9rem; }
  .catalog-search { width: 100%; }
  .catalog-grid { gap: .72rem; }
  .product-card :is(h2, h3, h4) { font-size: .94rem; }
  .product-card p { font-size: .79rem; }
  .product-card-content { gap: .28rem; padding: .65rem .72rem .8rem; }
  .product-card .product-price { font-size: 1.05rem; }
  .catalog-rows .product-card { grid-template-columns: minmax(0, 35%) minmax(0, 1fr); }
  .catalog-rows .product-card-content { padding: .65rem .72rem; }
  .catalog-rows .product-card-photo { aspect-ratio: auto; }
  .product-detail-has-contact { padding-bottom: 3.5rem; }
  .product-detail-intro, .product-detail-merchant { padding: 1rem; }
  .product-admin-shell { padding: 1.25rem 1rem 3rem; }
  .catalog-search.product-admin-search { flex: 1; }
  .product-admin-filter > summary { min-width: 4.8rem; padding-inline: .65rem; }
  .product-admin-table-header { display: none; }
  .product-admin-row { grid-template-columns: 4.75rem minmax(0, 1fr) auto; gap: .3rem .55rem; }
  .product-admin-row:first-of-type { border-top: 0; }
  .product-admin-item { grid-column: 1 / -1; }
  .product-admin-edit { text-align: end; }
  .product-editor-grid { grid-template-columns: minmax(0, 1fr); }
  .product-editor-options { grid-template-columns: minmax(0, 1fr); }
  .product-editor-option { min-height: 2.75rem; }
  .product-editor-option + .product-editor-option {
    border-inline-start: 0;
    border-block-start: 1px solid #e5e1da;
    padding-inline-start: .55rem;
  }
  .product-editor section, .product-editor details { padding: .9rem; }
  .product-translations > details { padding: .7rem 0; }
  .product-order-node { --order-controls-width: 6rem; }
  .product-order-other { --order-controls-width: .8rem; }
  .product-order-body { padding-inline: .55rem; }
  .product-order-children { padding-left: .4rem; }
  .product-order-node [data-product-position] { width: 3rem; }
  .product-order-summary { padding-left: 2rem; }
  .product-order-children .product-order-body { padding-inline: .4rem; }
  .product-order-item { gap: .33rem; }
  .product-order-item img { width: 2.25rem; height: 1.7rem; }
}

@media (max-width: 639px) {
  .catalog-group { padding: .65rem; }
  .catalog-filter { margin-inline: -1rem; border-inline: 0; border-radius: 0; }
  .catalog-filter-main { padding: .65rem 1rem; }
  .catalog-tab { padding: .3rem .85rem; font-size: .95rem; }
  .catalog-filter-sub { padding: .6rem 0 .7rem 1rem; }
  .catalog-filter-path { display: none; }
  .catalog-filter-sub--path { display: none; }
}
@media (max-width: 639px) and (max-height: 600px) {
  .catalog-browse { padding-top: 1rem; }
}
@media (pointer: coarse) {
  .catalog-suggest a { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card, .product-card img, .catalog-tab, .catalog-chip, .catalog-results { transition: none; }
}
