:root {
  color-scheme: light;
  --paper: #fcfaf7;
  --ink: #352a2f;
  --brand: #a03864;
  --brand-dark: #602740;
  --brand-soft: #f8e9ef;
  --brand-line: #bc8da1;
  --muted: #6e5d65;
  --line: #e6d7dd;
  --white: #fff;
  font-family: "Instrument Sans", "Thonburi", "Noto Sans Thai", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.frame { width: min(1256px, calc(100% - 96px)); margin-inline: auto; }
.site-header { background: var(--paper); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--brand-dark); font-size: 34px; font-weight: 850; letter-spacing: -.085em; line-height: 1; }
.wordmark [data-shop-dot] { color: var(--brand); }
.wordmark-custom { letter-spacing: normal; line-height: 1.2; }
.wordmark-text { min-width: 0; overflow-wrap: anywhere; }
.wordmark-logo { flex: none; width: clamp(32px, 7vw, 44px); height: auto; aspect-ratio: 1; object-fit: contain; }
.header-inner nav { flex-shrink: 0; }
nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 650; }
nav > a:hover, .text-button:hover { text-decoration: underline; text-underline-offset: .24em; }
.primary, .outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: var(--white);
  background: var(--brand);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.primary:hover { background: var(--brand-dark); }
.outline { background: var(--white); color: var(--brand-dark); border-color: var(--brand-line); }
.outline:hover { background: var(--brand-soft); }
.lookbook {
  margin-top: 8px;
  display: grid;
  grid-template-columns: var(--look-columns, minmax(0, 1fr));
  grid-template-areas: var(--look-areas, "gallery" "copy");
  align-items: center;
  gap: var(--look-gap, 12px);
  padding: var(--look-padding, 12px);
  border-radius: var(--look-radius, 24px);
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.look-copy { grid-area: copy; display: grid; justify-items: start; gap: var(--look-copy-gap, 8px); min-width: 0; container-type: inline-size; }
.look-heading { font-size: var(--look-title-size, clamp(22px, 9cqw, 32px)); font-weight: 770; letter-spacing: -.035em; line-height: 1.18; overflow-wrap: anywhere; }
.look-description { color: var(--muted); font-size: var(--look-detail-size, 13px); line-height: 1.5; max-width: 34ch; overflow-wrap: anywhere; }
.look-copy .primary { min-width: 0; max-width: 100%; padding-inline: var(--look-button-padding, 12px); font-size: var(--look-button-size, 13px); overflow-wrap: anywhere; }
.look-copy .primary span:last-child { flex: none; }
.look-gallery { grid-area: gallery; position: relative; min-width: 0; }
.look-gallery:has(.look-thumbs:not([hidden])) { padding-inline-end: calc(var(--look-thumb-width, 54px) + 8px); }
.look-thumbs { position: absolute; inset: 0 0 0 auto; display: grid; align-content: start; gap: 6px; width: var(--look-thumb-width, 54px); padding: 2px; overflow-y: auto; scrollbar-width: thin; }
.look-thumb { position: relative; display: grid; place-items: center; min-height: 44px; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: var(--white); color: var(--brand-dark); }
.look-thumb[aria-pressed="true"] { border-color: var(--brand); }
.look-thumb:focus-visible { outline-offset: -3px; }
.look-thumb img { width: 100%; height: 100%; object-fit: cover; }
.look-thumb span { position: absolute; inset: auto 2px 2px auto; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-dark); color: var(--white); font-size: 10px; }
.look-thumb span:only-child { inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
.look-media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--look-media-ratio, 4 / 3);
  max-height: var(--look-media-height, 240px);
  overflow: hidden;
  border-radius: var(--look-media-radius, 16px);
  background: color-mix(in srgb, var(--brand) 7%, var(--brand-soft));
}
.look-image {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.lookbook-product-image .look-image { width: auto; height: auto; max-height: 100%; object-fit: contain; }
.lookbook.lookbook-text-only { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy"; }
.banner-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: var(--look-play-size, 48px); aspect-ratio: 1; padding: 0; border: 2px solid var(--white); border-radius: 50%; color: var(--white); background: var(--brand-dark); font-size: 16px; }
.dialog.banner-player { width: fit-content; max-width: calc(100vw - 24px); padding: clamp(8px, 2vw, 12px); border-radius: 24px; background: #20191d; }
.banner-player .close-form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.banner-player .close { position: static; width: 44px; height: 44px; }
.banner-video-frame { overflow: hidden; border-radius: 16px; background: #20191d; }
.banner-player video { display: block; width: auto; height: auto; max-width: min(720px, calc(100vw - 50px)); max-height: 70dvh; object-fit: contain; background: #20191d; }
.banner-player-status { margin-top: 8px; color: var(--white); text-align: center; font-size: 14px; }
.banner-player-status:empty { display: none; }
.catalog { margin: 45px 0 70px; scroll-margin-top: 20px; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.catalog h2 { color: var(--brand-dark); font-size: clamp(25px, 3.15vw, 39px); letter-spacing: -.04em; line-height: 1.15; }
.catalog-heading .search { width: min(100%, 405px); }
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 0 17px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.search:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.search input { width: 100%; min-width: 0; padding: 10px 0; border: 0; color: var(--ink); background: transparent; outline: 0; }
.search input::placeholder { color: var(--muted); }
.search-icon { width: 13px; height: 13px; border: 1.7px solid var(--brand); border-radius: 100%; position: relative; flex: none; }
.search-icon::after { content: ""; width: 7px; height: 1.7px; background: var(--brand); position: absolute; right: -5px; bottom: -2px; transform: rotate(45deg); }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 22px; background: #f3f0ed; }
.categories, .select-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.storefront .categories .chip { min-height: 44px; border-color: var(--line); }
.storefront .categories .chip[aria-pressed="true"] { border-color: var(--brand); }
.select-filters select { min-height: 44px; max-width: 100%; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}
.chip:hover { border-color: var(--brand-line); }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--white); }
select { min-height: 39px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 14px; }
.results-bar { display: flex; min-height: 45px; align-items: center; gap: 14px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.results-bar .text-button { min-height: 44px; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: var(--brand); font-weight: 700; font-size: 14px; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 15px; }
.product-card { min-width: 0; }
.product-card > [data-product] {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e9e2df;
  border-radius: 22px;
  padding: 0 0 12px;
  background: var(--white);
  text-align: left;
  color: inherit;
}
.product-card > [data-product]:hover .product-title { text-decoration: underline; text-underline-offset: .23em; }
.product-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #e1ded7; }
.admin-product-card img:not([src]) { background: var(--brand-soft); }
.product-title { display: block; font-size: 16px; font-weight: 750; padding: 10px 13px 0; line-height: 1.45; overflow-wrap: anywhere; }
.product-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin-top: auto; padding: 3px 13px 0; color: var(--muted); font-size: 13px; }
.storefront .product-meta { overflow-wrap: anywhere; line-height: 1.45; }
.empty { padding: 52px 12px; text-align: center; border: 1px dashed var(--line); border-radius: 22px; }
.empty p { margin-bottom: 12px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; min-height: 68px; gap: 8px 24px; font-size: 14px; font-weight: 650; }
.footer-inner p span, .muted { color: var(--muted); font-weight: 400; }

.dialog {
  max-height: calc(100dvh - 28px);
  width: min(820px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
}
.dialog::backdrop { background: #33222b96; }
.close-form { margin: 0; }
.close { display: grid; place-items: center; position: absolute; z-index: 1; top: 11px; right: 11px; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--brand); font: 25px/1 system-ui, sans-serif; }
.product-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.product-detail-header h2 { color: var(--brand-dark); font-size: clamp(21px, 4vw, 30px); line-height: 1.2; overflow-wrap: anywhere; }
.product-detail-header form { flex: none; }
.product-detail-header .outline { min-width: 56px; justify-content: center; }
.storefront .product-detail-header { position: sticky; top: 0; z-index: 2; background: var(--paper); }
.storefront .product-dialog { width: min(920px, calc(100vw - 40px)); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
.detail-media { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 18px; background: var(--brand-soft); }
.detail-stage { width: 100%; aspect-ratio: 1; max-height: 49dvh; overflow: hidden; border-radius: 16px; background: var(--paper); }
.detail-stage :is(.detail-photo, .detail-video, .drive-video-frame, #detail-drive-player) { display: block; width: 100%; height: 100%; object-fit: contain; }
#detail-drive-player:empty { display: none; }
.detail-video { background: #20191d; }
.drive-video-frame { display: block; width: 100%; aspect-ratio: 1; border: 0; border-radius: 12px; background: #20191d; }
.detail-stage .drive-video-frame { border-radius: 0; }
.drive-video-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px; color: var(--brand-dark); font-size: 14px; text-decoration: underline; text-underline-offset: .2em; }
.video-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.detail-media-actions .outline, .video-download { justify-content: center; gap: 6px; font-size: 14px; }
.detail-media-toolbar { display: contents; }
.storefront .detail-media-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.storefront .detail-media-toolbar .thumbnails { flex-wrap: nowrap; overflow-x: auto; padding: 4px; scrollbar-width: thin; }
.storefront .detail-media-toolbar .thumb { flex: none; }
.storefront .detail-media-actions .outline { white-space: nowrap; }
#storefront-save-status { grid-column: 1 / -1; font-size: 14px; }
#storefront-save-status:empty { display: none; }
.thumbnails { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { overflow: hidden; padding: 0; width: 55px; height: 55px; border: 2px solid transparent; border-radius: 12px; background: var(--white); }
.thumb[aria-pressed="true"] { border-color: var(--brand); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb { position: relative; width: auto; min-width: 68px; padding: 0 9px; color: var(--brand-dark); font-size: 13px; font-weight: 700; }
.video-thumb.has-clip-cover { width: 55px; min-width: 55px; padding: 0; }
.has-clip-cover .clip-icon { position: absolute; right: 3px; bottom: 3px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: #2b2026d9; font-size: 10px; }
.video-thumb[aria-pressed="true"] .clip-icon { display: none; }
.detail-copy { min-width: 0; padding: 20px 24px 24px; }
.small-dialog h2, .admin-header h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.035em; overflow-wrap: anywhere; }
.detail-category { color: var(--brand-dark); font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.detail-copy p, .small-dialog p { line-height: 1.6; }
.facts { margin: 0 0 16px; font-size: 14px; }
.detail-description + .facts { margin-top: 12px; }
.facts div { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.variant-summary { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.detail-tags .chip { background: var(--brand-soft); color: var(--brand-dark); }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.detail-actions:first-child { margin-top: 0; }
.detail-chart-link { min-height: 44px; }
.product-size-chart { padding: 18px clamp(16px, 4vw, 30px) 24px; border-top: 1px solid var(--line); }
.size-chart-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.product-size-chart h3 { color: var(--brand-dark); font-size: 21px; }
.product-size-chart p { margin: 4px 0 11px; color: var(--muted); font-size: 14px; }
.size-chart-units { display: flex; min-width: 0; margin: 0; padding: 2px; border: 1px solid var(--line); border-radius: 14px; background: var(--brand-soft); }
.size-chart-units label { position: relative; }
.size-chart-units input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.size-chart-units span { display: grid; place-items: center; min-height: 44px; min-width: 48px; padding: 0 10px; border-radius: 11px; color: var(--brand-dark); font-size: 14px; font-weight: 700; }
.size-chart-units input:checked + span { background: var(--brand-dark); color: var(--white); }
.size-chart-units input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }
.size-chart-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.product-size-chart table { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; }
.product-size-chart :is(th, td) { min-width: 58px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.product-size-chart thead { color: var(--brand-dark); background: var(--brand-soft); }
.product-size-chart tr > :first-child { position: sticky; inset-inline-start: 0; background: var(--paper); }
.product-size-chart thead th:first-child { background: var(--brand-soft); }
.product-size-chart tbody tr:last-child > * { border-bottom: 0; }
.small-dialog { width: min(450px, calc(100vw - 28px)); padding: 26px; }
.small-dialog h2 { padding-right: 34px; margin-bottom: 12px; }
.small-dialog p + p { margin-top: 7px; }
.contact-reference { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 4px 0 8px; }
.contact-reference input { min-width: 0; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); }
#contact-copy-status { color: var(--muted); font-size: 14px; }
#contact-copy-status:empty { display: none; }
#contact-line-link { margin-top: 12px; }
.admin-dialog { width: min(760px, calc(100vw - 28px)); padding: clamp(16px, 4vw, 34px); }
.admin-page, .login-panel { margin-block: clamp(18px, 5vw, 46px); background: var(--white); border: 1px solid var(--line); border-radius: 24px; }
.admin-catalog { margin-block: clamp(18px, 4vw, 38px); }
.admin-catalog .admin-page { margin-inline: auto; max-width: 100%; }
.login-panel { display: grid; justify-items: start; gap: 15px; width: min(100%, 420px); margin-inline: auto; padding: clamp(20px, 5vw, 32px); }
.login-panel h1 { color: var(--brand-dark); font-size: 28px; }
.login-panel p { color: var(--muted); }
.admin-header { margin-bottom: 23px; padding-right: 45px; }
.admin-header h2 { color: var(--brand-dark); }
.admin-header p, .optional, #admin-count { color: var(--muted); font-size: 14px; line-height: 1.55; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.admin-toolbar :is(h1, h3) { font-size: clamp(21px, 3vw, 26px); }
.admin-dialog :is(.primary, .outline) { min-height: 44px; }
#add-product, .draft-actions .primary { min-height: 48px; font-size: 16px; padding-inline: 22px; }
.admin-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; }
#admin-filter-toggle { gap: 6px; padding-inline: 12px; white-space: nowrap; }
#admin-filter-toggle[aria-expanded="true"] { border-color: var(--brand); background: var(--brand-soft); }
#admin-filter-count { min-width: 20px; padding: 1px 4px; border-radius: 999px; background: var(--brand); color: var(--white); font-size: 12px; }
#admin-reset-filters { min-height: 44px; }
.admin-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-work-field { grid-column: 2 / -1; }
.admin-filter-panel { margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--brand-soft); }
.admin-tools summary { min-height: 44px; padding-block: 10px; color: var(--brand-dark); font-size: 14px; font-weight: 700; line-height: 24px; cursor: pointer; }
.admin-filters label { display: grid; gap: 5px; font-size: 14px; font-weight: 650; }
.admin-filters :is(input, select) { min-width: 0; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font-size: 16px; font-weight: 400; }
.admin-status:not(:empty) { margin-top: 12px; padding: 10px 13px; background: var(--brand-soft); border-radius: 12px; color: var(--brand-dark); font-size: 14px; }
.admin-site-header { border-bottom: 1px solid var(--line); }
.editing-product .admin-site-header { display: none; }
.admin-tools { position: relative; }
.admin-tools summary { padding-inline: 15px; }
.admin-tools:not([open]) .shop-settings-menu { display: none; }
.shop-settings-menu { position: absolute; z-index: 4; inset-block-start: calc(100% + 6px); inset-inline-end: 0; display: grid; width: max-content; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 8px 24px #352a2f1a; }
.shop-settings-menu .text-button { display: flex; align-items: center; width: 100%; min-height: 44px; padding-inline: 12px; text-align: start; }
.edit-preview-product { min-height: 44px; }
#admin-products { margin-top: 12px; }
.admin-product-card { display: flex; flex-direction: column; border: 1px solid #e9e2df; border-radius: 22px; background: var(--white); }
.admin-product-card > [data-product] { flex: 1; height: auto; border: 0; border-radius: 21px 21px 0 0; }
.admin-card-controls { display: grid; gap: 6px; padding: 8px 12px 10px; border-top: 1px solid var(--line); }
.admin-card-status { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.admin-card-visibility { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px; }
.publication-switch { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; }
.publication-switch > span { display: flex; align-items: center; width: 38px; height: 24px; padding: 3px; border: 1px solid var(--brand-line); border-radius: 999px; background: var(--white); }
.publication-switch > span::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); }
.publication-switch[aria-checked="true"] > span { justify-content: flex-end; border-color: var(--brand); background: var(--brand); }
.publication-switch[aria-checked="true"] > span::after { background: var(--white); }
.publication-switch:disabled, .admin-publication-action:disabled { opacity: .6; cursor: wait; }
.admin-publication-action { min-height: 44px; text-align: start; }
.admin-card-actions { display: flex; align-items: center; gap: 6px; }
.admin-card-actions > button { flex: 1; min-width: 0; }
.admin-card-menu { position: relative; }
.admin-card-menu > summary { display: grid; place-items: center; width: 44px; padding: 0; list-style: none; font-size: 24px; line-height: 1; cursor: pointer; }
.admin-card-menu > summary::-webkit-details-marker { display: none; }
.admin-card-menu-body { position: absolute; z-index: 3; inset-block-start: calc(100% + 4px); inset-inline-end: 0; width: 208px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 8px 24px #352a2f1a; }
.admin-card-menu-body .text-button { display: block; width: 100%; min-height: 44px; padding-inline: 8px; text-align: start; }
.admin-card-menu-body .admin-card-status { padding: 4px 8px; }
.text-button.delete-product { color: #9b2948; }
.admin-card-menu-body > :not(button) + .delete-product { margin-top: 6px; border-top: 1px solid var(--line); }
.trash-product-reference { font-weight: 700; overflow-wrap: anywhere; }
.trash-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 16px; }
.trash-dialog-actions .text-button { min-height: 44px; padding-inline: 8px; }
.danger-button { border-color: #9b2948; background: #9b2948; }
.danger-button:hover { background: #79203a; }
.trash-dialog-actions button:disabled { opacity: .55; cursor: default; }
.trash-selection { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 10px; margin-top: 8px; }
.trash-check { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.trash-check input { flex: none; width: 18px; height: 18px; accent-color: var(--brand); }
.product-trash-list, .trash-purge-items { overflow-y: auto; overscroll-behavior: contain; }
.product-trash-list { display: grid; gap: 6px; max-height: min(45dvh, 360px); margin: 4px 0 0; padding: 2px; list-style: none; }
.product-trash-list .trash-check { padding: 4px 8px; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }
.product-trash-list .trash-check:has(input:checked) { background: var(--brand-soft); border-color: var(--brand-line); }
.trash-purge-items { max-height: 26dvh; margin: 0 0 12px; padding-inline-start: 22px; overflow-wrap: anywhere; }
.admin-empty { padding: 18px 12px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); }
.draft-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; }
#draft-form { width: min(100%, 1020px); margin-block: 0; border: 0; background: transparent; }
.editor-heading { color: var(--brand-dark); }
.draft-layout, .draft-info { display: grid; align-items: start; gap: 10px; min-width: 0; }
.draft-basics { padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
#draft-form .admin-panel summary { min-height: 44px; font-size: 15px; }
.admin-panel, .upload-panel { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.admin-panel h4, .upload-panel h2 { margin: 0; color: var(--brand-dark); font-size: 17px; }
.admin-panel h4 span { color: var(--muted); font-size: 13px; font-weight: 400; }
.admin-panel summary { min-height: 44px; padding-block: 10px; color: var(--brand-dark); font-size: 17px; font-weight: 700; line-height: 24px; cursor: pointer; }
.admin-panel[open] summary { margin-bottom: 5px; }
.admin-panel[open] > :not(summary) { margin-top: 10px; }
#manage-product-ai-style { margin-top: 4px; }
.measurement-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.measurement-parts .chip { border-color: var(--line); }
.measurement-parts .chip[aria-pressed="true"] { border-color: var(--brand); }
.draft-form label.ai-queue-choice { display: flex; align-items: center; min-height: 44px; gap: 9px; }
.ai-queue-choice input { width: 19px; height: 19px; accent-color: var(--brand); }
.ai-color-sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; color: var(--muted); }
.measurement-unit-panel { min-width: 0; margin: 0; padding: 8px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--brand-soft); }
.measurement-unit-panel legend { padding-inline: 5px; color: var(--brand-dark); font-size: 14px; font-weight: 700; }
.measurement-unit-panel .optional { margin-top: 8px; }
.measurement-unit-label { color: var(--muted); font-weight: 400; }
#measurement-editor { display: grid; gap: 12px; }
.measurement-rows { display: grid; gap: 10px; }
.measurement-rows:empty { display: none; }
.measurement-row { min-width: 0; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
.measurement-row legend { padding-inline: 5px; color: var(--brand-dark); font-weight: 700; }
.measurement-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.settings-dialog { width: min(580px, calc(100vw - 28px)); padding: clamp(16px, 4vw, 28px); }
.settings-dialog .admin-header { margin: 0; }
.settings-dialog .primary { justify-self: start; }
.banner-dialog { width: min(600px, calc(100vw - 24px)); padding: clamp(16px, 4vw, 26px); }
.banner-fields, .banner-options { display: grid; min-width: 0; gap: 10px; }
.banner-fields { margin: 0; padding: 0; border: 0; }
.banner-extra-panel { padding: 0 12px 10px; border: 1px solid var(--line); border-radius: 14px; }
.banner-extra-panel summary { display: list-item; padding-block: 12px; min-height: 44px; color: var(--brand-dark); cursor: pointer; }
.banner-extra-list { display: grid; gap: 8px; }
.banner-extra-row { display: grid; min-width: 0; gap: 6px; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.banner-extra-row legend { padding-inline: 4px; font-size: 13px; color: var(--muted); }
.banner-extra-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 8px; }
.banner-extra-actions .text-button, #add-banner-extra { min-height: 44px; }
.banner-preview { width: min(100%, 358px); }
.banner-preview h3 { font-size: 14px; color: var(--muted); }
.banner-preview .lookbook { margin-top: 6px; }
.banner-preview .look-copy .primary { cursor: default; }
.banner-error { color: #a12742; }
.site-logo-settings { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; }
.site-logo-preview { display: grid; place-items: center; width: 88px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 14px; background: var(--brand-soft); color: var(--muted); overflow: hidden; }
.site-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.site-logo-controls { display: grid; min-width: 0; gap: 6px; justify-items: start; }
.site-logo-label { font-size: 14px; font-weight: 650; }
.site-logo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.site-logo-actions .text-button { min-height: 44px; }
.reference-preview { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.reference-preview img { width: 112px; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: var(--brand-soft); }
.upload-panel { grid-template-columns: minmax(0, 1fr); background: var(--brand-soft); border-color: transparent; }
.photo-help summary { min-height: 44px; padding-block: 12px; color: var(--muted); font-size: 13px; cursor: pointer; }
.photo-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.photo-toolbar .outline { min-height: 48px; font-size: 16px; }
.upload-frame-guide { min-width: 0; border: 1px solid var(--brand-line); border-radius: 12px; background: var(--white); }
.upload-frame-guide summary { min-height: 44px; padding: 11px 10px; color: var(--brand-dark); font-size: 14px; font-weight: 700; cursor: pointer; }
.upload-frame-guide summary span { display: inline-block; margin-inline-start: 4px; color: var(--muted); font-size: 13px; font-weight: 400; }
.upload-frame-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 8px; }
.upload-frame-examples figure { display: grid; align-content: start; gap: 6px; margin: 0; padding: 8px; border-radius: 10px; background: var(--brand-soft); }
.upload-frame-examples figcaption { color: var(--brand-dark); font-size: 13px; font-weight: 700; }
.upload-frame-examples p, .upload-frame-caption { color: var(--muted); font-size: 13px; line-height: 1.45; }
.upload-frame-caption { padding: 7px 10px 9px; }
.upload-frame-stage { display: grid; place-items: center; min-height: 144px; }
.upload-frame-demo { position: relative; width: min(80px, 100%); aspect-ratio: 1; border: 1px solid var(--brand-line); border-radius: 7px; background: #edd2df; }
.upload-frame-area { position: absolute; inset: 12%; display: grid; place-items: center; border: 1px dashed var(--brand); border-radius: 4px; background: var(--white); }
.upload-frame-area::after { content: ""; width: 71%; aspect-ratio: 4 / 5; background: #b66088; clip-path: polygon(31% 0, 43% 6%, 57% 6%, 69% 0, 85% 7%, 100% 28%, 84% 37%, 74% 25%, 69% 47%, 93% 96%, 72% 100%, 28% 100%, 7% 96%, 31% 47%, 26% 25%, 16% 37%, 0 28%, 15% 7%); }
.upload-frame-demo-video { aspect-ratio: 9 / 16; }
.upload-frame-demo-video .upload-frame-area { inset: 10% 20% 23% 10%; }
.upload-frame-demo-video::before { content: ""; position: absolute; right: 5%; bottom: 25%; width: 6%; aspect-ratio: 1; border: 1px solid #9c5e7c; border-radius: 50%; box-shadow: 0 -9px 0 -1px #9c5e7c, 0 -18px 0 -1px #9c5e7c; }
.upload-frame-demo-video::after { content: ""; position: absolute; bottom: 10%; left: 10%; width: 57%; height: 1px; background: #9c5e7c; box-shadow: 0 -5px #9c5e7c; }
.upload { display: block; min-width: 0; }
.upload input { width: 100%; min-width: 0; color: var(--brand-dark); font-size: 14px; }
.upload input::file-selector-button {
  min-height: 44px;
  margin-right: 10px;
  padding: 6px 15px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.upload-preview { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.upload-preview:empty { display: none; }
.editor-photo { display: grid; width: 104px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-align: center; }
.editor-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.editor-video { grid-template-columns: minmax(0, 1fr); width: min(100%, 200px); min-width: 0; }
.editor-video:has(details[open]) { width: min(100%, 340px); }
.editor-video .editor-clip-summary { display: flex; align-items: center; gap: 12px; padding: 8px 12px; text-align: left; list-style: none; font-size: 14px; }
.editor-clip-summary::-webkit-details-marker { display: none; }
.editor-clip-summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); }
[data-editor-video][open] .editor-clip-summary::after { transform: rotate(225deg); }
.editor-clip-cover { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 8px; background: var(--brand-soft); }
.editor-video [data-drive-player] { padding: 0 8px; }
.editor-video .video-actions { padding: 8px; }
.editor-video video { display: block; width: 100%; aspect-ratio: 1; background: #20191d; }
.video-preview-error { padding: 12px 8px; }
.video-preview-error a { display: block; color: var(--brand); text-decoration: underline; }
.editor-photo .text-button, .cover-label { min-height: 36px; padding: 7px 5px; font-size: 13px; }
.editor-photo .text-button:focus-visible { outline-offset: -3px; }
.photo-tools summary { min-height: 44px; padding: 12px 5px; color: var(--brand-dark); font-size: 13px; font-weight: 700; line-height: 20px; cursor: pointer; }
.photo-tools summary:focus-visible { outline-offset: -3px; }
.photo-tools button { width: 100%; }
.editor-photo .photo-ai-button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-dark); }
.cover-label { display: grid; place-items: center; color: var(--brand-dark); background: var(--brand-soft); font-weight: 700; }
.draft-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.draft-form label:not(.upload) { display: grid; min-width: 0; gap: 5px; font-size: 14px; font-weight: 650; }
.draft-form :is(input:not([type="file"], [type="checkbox"]), select, textarea) {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}
.span-fields { grid-column: 1 / -1; }
.category-field .text-button { min-height: 36px; }
.category-entry, .option-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; padding: 10px; border-radius: 12px; background: var(--brand-soft); }
.form-feedback:empty, #category-feedback:empty { display: none; }
.field-message { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.5; }
.field-message:empty { display: none; }
.field-message[data-state="error"], #photo-error { color: #a12742; }
.field-message[data-state="notice"] { color: #754d19; }
.draft-form :is(input, select, button)[aria-invalid="true"] { border-color: #a12742; }
.draft-form button:disabled { opacity: .6; cursor: default; }
.option-entry .form-feedback { grid-column: 1 / -1; }
.variant-rows { display: grid; gap: 8px; }
.variant-row { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.variant-row .text-button { min-height: 44px; }
.variant-options summary { min-height: 44px; padding-block: 10px; color: var(--brand-dark); font-size: 14px; cursor: pointer; }
.variant-option-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.variant-row .remove-variant { color: var(--muted); }
.product-size-picker { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.product-size-picker legend { padding-inline: 5px; color: var(--brand-dark); font-size: 14px; font-weight: 700; }
.variant-sizes { display: flex; flex-wrap: wrap; gap: 5px; }
.variant-sizes .chip { min-height: 44px; border-color: var(--line); }
.variant-sizes .chip[aria-pressed="true"] { border-color: var(--brand); }
#add-variant { justify-self: start; }
.draft-actions { position: sticky; z-index: 2; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 8px 0 max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.draft-action-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 8px; grid-column: 2; grid-row: 1 / span 2; }
#back-to-admin-list { min-height: 44px; padding-inline: 12px; color: var(--muted); }
.admin-review-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px; width: 100%; min-height: 44px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--brand-dark); text-align: start; }
.admin-review-card:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.admin-review-card strong, .admin-review-card small { display: block; overflow-wrap: anywhere; }
.admin-review-card strong { font-size: 14px; }
.admin-review-card small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.admin-review-card > span:last-child { font-size: 20px; line-height: 1; }
.admin-review-dialog h2 { padding-inline-end: 44px; margin: 0 0 12px; overflow-wrap: anywhere; font-size: clamp(21px, 4vw, 26px); }
.admin-review-section { margin-block: 14px; }
.admin-review-section h3 { margin-block-end: 8px; font-size: 16px; }
.admin-review-summary { margin-top: 14px; }
.admin-review-summary h2 { margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.admin-review-summary-stats { display: grid; gap: 6px; }
.admin-review-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.admin-review-fields { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-review-stat { display: grid; align-content: space-between; gap: 2px; min-height: 48px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); text-align: start; }
.admin-review-fields .admin-review-stat { background: var(--white); }
.admin-review-stat span { font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.admin-review-stat strong { font-size: 19px; line-height: 1.15; }
.admin-review-stat:hover { border-color: var(--brand); }
.admin-review-result-count { margin-bottom: 9px; }
@media (min-width: 760px) {
  .admin-review-summary-stats { grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); }
}
@media (max-width: 520px) {
  .admin-review-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.admin-review-list { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.admin-review-missing { display: grid; gap: 6px; margin: 0; padding-inline-start: 22px; }
.admin-review-back { min-height: 44px; }
.admin-review-edit { min-height: 44px; }

@media (max-width: 940px) {
  .frame { width: calc(100% - 48px); }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 661px) and (max-width: 1200px) {
  .storefront .header-inner { min-height: 64px; }
  .catalog { margin-top: 28px; }
}
@media (min-width: 661px) {
  .storefront .lookbook {
    --look-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    --look-areas: "copy gallery";
    --look-gap: clamp(20px, 3vw, 40px);
    --look-padding: clamp(20px, 3vw, 36px);
    --look-radius: 32px;
    --look-media-radius: 24px;
    --look-media-ratio: 4 / 3;
    --look-media-height: clamp(230px, 29vw, 340px);
    --look-title-size: clamp(32px, 10cqw, 52px);
    --look-detail-size: 15px;
    --look-copy-gap: 12px;
    --look-play-size: 56px;
    --look-thumb-width: 62px;
    --look-button-padding: 18px;
    --look-button-size: 14px;
    margin-top: 16px;
  }
}
@media (min-width: 721px) {
  .draft-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; }
}
@media (max-width: 660px) {
  .frame { width: calc(100% - 32px); }
  .header-inner { min-height: 60px; gap: 8px; }
  .wordmark { font-size: clamp(22px, 7vw, 29px); }
  nav { gap: 11px; font-size: 13px; }
  nav .outline { font-size: 13px; min-height: 40px; padding-inline: 10px; }
  .storefront nav > a { display: inline-flex; align-items: center; min-height: 44px; }
  .storefront nav .outline { min-height: 44px; }
  .catalog { margin: 24px 0 45px; }
  .catalog-heading { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 13px; }
  .catalog-heading .search { width: 100%; }
  .search { padding-inline: 12px; }
  .filters { padding: 9px; border-radius: 18px; }
  .categories { gap: 6px; }
  .categories .chip { padding-inline: 10px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 9px; }
  .product-card > [data-product], .admin-product-card { border-radius: 17px; }
  .admin-product-card > [data-product] { border-radius: 16px 16px 0 0; }
  .product-title { font-size: 14px; padding-inline: 9px; }
  .product-meta { font-size: 12px; padding-inline: 9px; }
  .storefront .product-title { font-size: 15px; }
  .storefront .product-meta { font-size: 13px; }
  .footer-inner { padding-block: 11px; }
  .detail-layout { grid-template-columns: 1fr; }
  .product-detail-header { padding: 12px; }
  .detail-media { padding: 12px; }
  .detail-stage { max-height: 42dvh; }
  .detail-copy { padding: 16px; }
  .storefront .product-dialog { width: 100%; max-width: none; max-height: calc(100dvh - 12px); margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .storefront .detail-media-toolbar .thumb { width: 48px; min-width: 48px; height: 48px; }
  .storefront .detail-media-toolbar .video-thumb:not(.has-clip-cover) { width: auto; }
  .storefront .detail-copy { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .admin-dialog { padding: 15px; }
  .admin-header { margin-bottom: 16px; }
  .admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-work-field { grid-column: 1 / -1; }
  .admin-panel, .upload-panel { padding: 12px; }
  .admin-card-controls { padding-inline: 9px; }
  .admin-card-actions .outline { padding-inline: 12px; }
  .admin-card-menu > summary.outline { padding: 0; }
  .admin-product-card:nth-child(odd) .admin-card-menu-body { inset-inline-start: 0; inset-inline-end: auto; }
  .admin-site-header nav > a { display: inline-flex; align-items: center; min-height: 44px; }
  #add-product { padding-inline: 12px; font-size: 14px; }
  .draft-actions { grid-template-columns: minmax(0, 1fr); }
  .draft-action-buttons { grid-column: 1; grid-row: auto; }
  .draft-action-buttons .primary { flex: 1; }
}
@media (max-width: 380px) {
  .draft-basics { grid-template-columns: minmax(0, 1fr); }
}
.admin-panel:not([open]) { padding-block: 3px; }
