.admin-body { min-height: 100vh; background: #f3f4ef; }
.admin-topbar { position: sticky; z-index: 20; top: 0; display: flex; height: 70px; align-items: center; justify-content: space-between; padding-inline: 29px; border-bottom: 1px solid rgba(32,42,36,.09); background: rgba(255,254,250,.96); backdrop-filter: blur(14px); }
.admin-top-actions { display: flex; align-items: center; gap: 19px; }
.local-badge { display: flex; align-items: center; gap: 7px; color: #778273; font-size: 8px; }
.local-badge i, .store-state i, .gateway-status i { width: 7px; height: 7px; border-radius: 50%; background: #91a381; }
.admin-view-link { padding: 9px 13px; border: 1px solid var(--line); color: var(--forest); font-size: 9px; }
.admin-shell { display: grid; min-height: calc(100vh - 70px); grid-template-columns: 220px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 70px; display: flex; height: calc(100vh - 70px); flex-direction: column; padding: 31px 15px 18px; border-right: 1px solid rgba(32,42,36,.09); background: #fbfcf8; }
.sidebar-label { padding: 0 12px; color: #98a092; font-size: 7px; font-weight: 600; letter-spacing: .17em; }
.admin-nav-item { display: flex; min-height: 42px; align-items: center; gap: 10px; margin-top: 4px; padding: 0 12px; border: 0; background: none; color: #59645a; text-align: left; font-size: 10px; cursor: pointer; }
.admin-nav-item:first-of-type { margin-top: 14px; }
.admin-nav-item > span { width: 17px; color: #798674; font-size: 14px; text-align: center; }
.admin-nav-item b { display: grid; min-width: 20px; height: 18px; place-items: center; margin-left: auto; border-radius: 10px; background: #edf0e8; color: #72806c; font-size: 8px; font-weight: 500; }
.admin-nav-item.is-active { background: var(--forest); color: white; }
.admin-nav-item.is-active > span { color: #cbd2bd; }
.admin-nav-item.is-active b { background: rgba(255,255,255,.17); color: white; }
.sidebar-bottom { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.store-state { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #59645a; font-size: 9px; }
.sidebar-bottom > a { padding: 10px 12px 0; color: #74806e; font-size: 9px; }
.admin-main { min-width: 0; max-width: 1440px; padding: 42px clamp(25px, 5vw, 75px) 80px; }
.admin-section { display: none; }
.admin-section.is-visible { display: block; animation: admin-in .22s ease-out; }
@keyframes admin-in { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.admin-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.admin-page-heading .eyebrow { color: #84907d; font-size: 8px; }
.admin-page-heading h1 { margin: 8px 0 4px; font-family: var(--serif); font-size: clamp(29px, 3.3vw, 39px); font-weight: 600; letter-spacing: -.055em; line-height: 1.2; }
.admin-page-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 10px; }
.date-stamp { color: #7b8578; font-size: 9px; white-space: nowrap; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.admin-stats article, .admin-panel { border: 1px solid rgba(32,42,36,.08); background: #fffefa; }
.admin-stats article { display: flex; min-height: 126px; flex-direction: column; padding: 17px; }
.admin-stats article span { color: #889284; font-size: 7px; font-weight: 600; letter-spacing: .13em; }
.admin-stats article strong { margin-top: 13px; color: var(--forest); font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1; }
.admin-stats article small { margin-top: 9px; color: var(--muted); font-size: 8px; }
.admin-overview-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.admin-panel { padding: 20px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-heading .eyebrow, .form-aside .eyebrow { color: #879181; font-size: 7px; }
.panel-heading h2, .admin-panel > h2, .form-aside h2 { margin: 6px 0 0; font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: -.04em; }
.admin-link-button { padding: 0; border: 0; background: none; color: #77836f; font-size: 8px; cursor: pointer; }
.mini-product-list { margin-top: 14px; }
.mini-product-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(32,42,36,.08); }
.mini-product-row img { width: 40px; height: 46px; object-fit: cover; background: #e9e9e1; }
.mini-product-row strong { display: block; font-family: var(--serif); font-size: 11px; font-weight: 600; }
.mini-product-row span { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; }
.mini-product-row button { border: 0; background: none; color: #77836f; font-size: 8px; cursor: pointer; }
.overview-promo > p { margin: 13px 0 17px; color: var(--muted); font-size: 9px; line-height: 1.8; }
.overview-promo .button { min-height: 40px; padding-inline: 13px; font-size: 8px; }
.local-note { display: flex; flex-direction: column; gap: 3px; margin-top: 20px; padding: 12px; border-left: 2px solid #a6b093; background: #f4f5ef; }
.local-note strong { color: #697660; font-size: 8px; font-weight: 600; }
.local-note span { color: #778077; font-size: 8px; line-height: 1.6; }
.product-management { padding: 0; }
.product-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 19px; border-bottom: 1px solid var(--line); color: #7c857a; font-size: 8px; }
.admin-search { display: flex; width: min(340px, 100%); align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); }
.admin-search span { color: #809078; font-size: 14px; }
.admin-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 9px; }
.table-scroll { overflow-x: auto; }
.admin-product-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-product-table th { padding: 11px 13px; color: #949b90; font-size: 7px; font-weight: 600; letter-spacing: .11em; white-space: nowrap; }
.admin-product-table td { padding: 10px 13px; border-top: 1px solid rgba(32,42,36,.08); color: #59645a; font-size: 8px; white-space: nowrap; }
.admin-product-table td:first-child { min-width: 230px; }
.admin-product-cell { display: flex; align-items: center; gap: 10px; }
.admin-product-cell img { width: 37px; height: 43px; object-fit: cover; background: #e9e9e1; }
.admin-product-cell strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 10px; font-weight: 600; }
.admin-product-cell small { display: block; margin-top: 2px; color: #8b9387; font-size: 7px; }
.admin-table-action { padding: 5px 8px; border: 1px solid var(--line); background: none; color: var(--forest); font-size: 8px; cursor: pointer; }
.admin-price-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.admin-price-cell strong { color: var(--forest); font-size: 12px; font-weight: 700; }
.admin-price-cell > span { display: flex; align-items: center; gap: 6px; }
.admin-price-cell del { color: var(--muted); font-size: 10px; }
.admin-price-cell em { padding: 2px 5px; border-radius: 999px; background: #f2ead5; color: #806222; font-size: 9px; font-style: normal; font-weight: 700; }
.admin-form-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); align-items: start; gap: 16px; }
.admin-form { padding: clamp(20px, 3vw, 32px); }
.admin-form > h2 { margin: 0 0 20px; }
.admin-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.admin-field label { color: #687369; font-size: 8px; font-weight: 500; }
.admin-field input, .admin-field textarea, .admin-field select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 0; background: #fffefa; color: var(--ink); font-size: 9px; }
.admin-field input { min-height: 41px; }
.admin-field textarea { resize: vertical; line-height: 1.6; }
.admin-field input[type=file] { padding: 8px; }
.admin-field small { color: #90978d; font-size: 7px; line-height: 1.5; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 19px; }
.form-actions .button { min-height: 42px; font-size: 8px; }
.admin-text-button { padding: 8px 0; border: 0; background: none; color: #828a7e; font-size: 8px; cursor: pointer; }
.form-feedback { min-height: 16px; margin: 9px 0 0; color: #66765f; font-size: 8px; }
.form-aside { position: sticky; top: 96px; padding: 23px; }
.form-aside h2 { max-width: 220px; margin-top: 10px; font-size: 21px; line-height: 1.25; }
.form-aside p:not(.eyebrow) { margin: 10px 0 13px; color: var(--muted); font-size: 9px; line-height: 1.8; }
.form-aside a { color: #6f7b68; font-size: 8px; }
.hero-preview-box { position: relative; overflow: hidden; width: 100%; max-width: 280px; height: 170px; background: #e7e8df; }
.hero-preview-box img { width: 100%; height: 100%; object-fit: cover; }
.hero-preview-box span { position: absolute; bottom: 8px; left: 8px; padding: 5px 8px; background: rgba(255,254,250,.88); color: var(--forest); font-size: 7px; }
.inline-state { padding: 6px 9px; background: #edf1e7; color: #6e7a64; font-size: 8px; }
.admin-outlet-list { margin-top: 15px; }
.admin-outlet-row { display: grid; grid-template-columns: 29px 1fr auto; gap: 11px; align-items: start; padding: 15px 0; border-top: 1px solid var(--line); }
.admin-outlet-row > span:first-child { color: #9ca58f; font-family: var(--serif); font-size: 10px; }
.admin-outlet-row strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 12px; font-weight: 600; }
.admin-outlet-row p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.admin-outlet-row a { color: #74806e; font-size: 8px; }
.future-outlets { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding-top: 15px; border-top: 1px solid var(--line); }
.future-outlets span { flex-basis: 100%; color: #99a092; font-size: 7px; letter-spacing: .13em; }
.future-outlets strong { padding: 6px 9px; border: 1px solid var(--line); color: #788273; font-size: 8px; font-weight: 400; }
.gateway-status { display: flex; align-items: center; gap: 7px; margin-top: 16px; color: #798572; font-size: 8px; }
.admin-modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgba(12,21,16,.55); backdrop-filter: blur(3px); }
.admin-modal { position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: clamp(22px, 4vw, 37px); background: #fffefa; box-shadow: var(--shadow); }
.admin-modal-close { position: absolute; top: 13px; right: 14px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--forest); font-size: 21px; cursor: pointer; }
.admin-modal h2 { margin: 4px 38px 4px 0; font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -.05em; }
.admin-modal > p { margin: 0 0 20px; color: var(--muted); font-size: 9px; }
.admin-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-modal .admin-field.full { grid-column: 1 / -1; }
.stock-heading { margin: 15px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); color: #819078; font-size: 8px; font-weight: 600; letter-spacing: .11em; }
.stock-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(32,42,36,.06); }
.stock-row > strong { font-size: 8px; font-weight: 500; }
.stock-row label { display: flex; flex-direction: column; gap: 4px; color: #91998f; font-size: 7px; }
.stock-row input { width: 100%; min-height: 32px; padding: 6px 8px; border: 1px solid var(--line); background: white; font-size: 8px; }
.admin-modal-preview { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: #75816d; font-size: 8px; }
.admin-modal-preview img { width: 50px; height: 57px; object-fit: cover; background: #e9e9e1; }
.admin-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.admin-modal-actions .button { min-height: 40px; font-size: 8px; }
.admin-delete-button { margin-right: auto; padding: 8px 0; border: 0; background: none; color: #a16e5b; font-size: 8px; cursor: pointer; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 185px minmax(0,1fr); }
  .admin-main { padding-inline: 25px; }
  .admin-stats { grid-template-columns: repeat(2,1fr); }
  .admin-overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin-topbar { height: 62px; padding-inline: 14px; }
  .admin-topbar .brand-wordmark { font-size: 10px; }
  .local-badge { display: none; }
  .admin-shell { min-height: calc(100vh - 62px); grid-template-columns: 1fr; }
  .admin-sidebar { position: sticky; z-index: 10; top: 62px; height: auto; overflow-x: auto; flex-direction: row; align-items: center; gap: 4px; padding: 8px 11px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-sidebar > .sidebar-label, .sidebar-bottom { display: none; }
  .admin-nav-item { flex: 0 0 auto; min-height: 34px; gap: 5px; margin: 0; padding: 0 9px; font-size: 8px; }
  .admin-nav-item:first-of-type { margin: 0; }
  .admin-nav-item > span { width: 13px; font-size: 11px; }
  .admin-nav-item b { min-width: 17px; height: 15px; margin-left: 0; font-size: 7px; }
  .admin-main { padding: 25px 15px 60px; }
  .admin-page-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 18px; }
  .admin-page-heading h1 { font-size: 30px; }
  .admin-stats { gap: 8px; }
  .admin-stats article { min-height: 105px; padding: 12px; }
  .admin-stats article strong { margin-top: 10px; font-size: 24px; }
  .admin-stats article span { font-size: 6px; }
  .admin-panel { padding: 15px; }
  .product-management { padding: 0; }
  .admin-form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; }
  .admin-form-row { grid-template-columns: 1fr; gap: 0; }
  .admin-product-table th, .admin-product-table td { padding-inline: 9px; }
  .admin-modal-backdrop { padding: 9px; }
  .admin-modal { max-height: calc(100vh - 18px); padding: 21px 15px; }
  .admin-modal-grid { grid-template-columns: 1fr; gap: 0; }
  .admin-modal .admin-field.full { grid-column: auto; }
  .stock-row { grid-template-columns: 1fr 1fr 1fr; gap: 5px; }
}

/* Backoffice controls and theme tokens. */
.admin-body {
  --serif: Arial, sans-serif;
  --sans: Arial, sans-serif;
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f4ef;
}
.admin-body :is(button, input, select, textarea) { font-family: Arial, Helvetica, sans-serif; }
.admin-body :is(h1, h2, h3, strong) { font-family: Arial, Helvetica, sans-serif; }
.admin-top-actions { gap: 12px; }
.theme-toggle,
.admin-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 37px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--forest);
  font-size: 12px;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.theme-toggle:hover { background: rgba(28,43,36,.07); }
.theme-toggle-icon { font-size: 16px; line-height: 1; }
.admin-menu-toggle { display: none; width: 40px; height: 40px; flex-direction: column; gap: 5px; padding: 0; }
.admin-menu-toggle span { display: block; width: 17px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s, opacity .18s; }
.admin-nav-backdrop { display: none; }
.admin-body.admin-menu-open { overflow: hidden; }

.admin-body.theme-dark {
  --forest: #d1a64f;
  --forest-deep: #121815;
  --forest-soft: #38433d;
  --cream: #252e29;
  --paper: #1b2320;
  --sage: #d1a64f;
  --olive: #d8bd80;
  --ink: #f0f2eb;
  --muted: #aab5ad;
  --line: rgba(255,255,255,.13);
  --shadow: 0 24px 70px rgba(0,0,0,.46);
  background: #151b18;
  color: #f0f2eb;
  color-scheme: dark;
}
.admin-body.theme-dark .admin-topbar { border-color: rgba(255,255,255,.1); background: rgba(25,33,29,.96); }
.admin-body.theme-dark .admin-topbar .brand-mark { filter: brightness(0) invert(1); }
.admin-body.theme-dark .admin-topbar .brand-wordmark { color: #f2f2eb; }
.admin-body.theme-dark .admin-topbar .brand-wordmark small { color: #aab5ad; }
.admin-body.theme-dark .local-badge,
.admin-body.theme-dark .date-stamp,
.admin-body.theme-dark .store-state { color: #b5bdb7; }
.admin-body.theme-dark .admin-view-link { border-color: var(--line); color: #e3c77f; }
.admin-body.theme-dark .theme-toggle,
.admin-body.theme-dark .admin-menu-toggle { border-color: rgba(255,255,255,.18); color: #e3c77f; }
.admin-body.theme-dark .theme-toggle:hover,
.admin-body.theme-dark .admin-menu-toggle:hover { background: rgba(255,255,255,.08); }
.admin-body.theme-dark .admin-sidebar { border-color: rgba(255,255,255,.1); background: #1c2420; }
.admin-body.theme-dark .sidebar-label { color: #95a198; }
.admin-body.theme-dark .admin-nav-item { color: #c3cbc5; }
.admin-body.theme-dark .admin-nav-item > span { color: #bdc7be; }
.admin-body.theme-dark .admin-nav-item b { background: #303a34; color: #d5ddd6; }
.admin-body.theme-dark .admin-nav-item.is-active { background: #d1a64f; color: #17201b; }
.admin-body.theme-dark .admin-nav-item.is-active > span,
.admin-body.theme-dark .admin-nav-item.is-active b { color: #17201b; }
.admin-body.theme-dark .admin-nav-item.is-active b { background: rgba(23,32,27,.13); }
.admin-body.theme-dark .sidebar-bottom { border-color: var(--line); }
.admin-body.theme-dark .sidebar-bottom > a,
.admin-body.theme-dark .admin-link-button,
.admin-body.theme-dark .mini-product-row button,
.admin-body.theme-dark .admin-outlet-row a,
.admin-body.theme-dark .form-aside a { color: #e0bd6b; }
.admin-body.theme-dark .admin-stats article,
.admin-body.theme-dark .admin-panel,
.admin-body.theme-dark .admin-modal { border-color: rgba(255,255,255,.1); background: #202925; }
.admin-body.theme-dark .admin-stats article span,
.admin-body.theme-dark .panel-heading .eyebrow,
.admin-body.theme-dark .form-aside .eyebrow,
.admin-body.theme-dark .admin-page-heading .eyebrow,
.admin-body.theme-dark .product-list-toolbar,
.admin-body.theme-dark .admin-product-table th,
.admin-body.theme-dark .stock-heading { color: #d1b875; }
.admin-body.theme-dark .admin-search span { color: #d1b875; }
.admin-body.theme-dark .admin-stats article strong { color: #e4bd6c; }
.admin-body.theme-dark .admin-page-heading p:not(.eyebrow),
.admin-body.theme-dark .overview-promo > p,
.admin-body.theme-dark .form-aside p:not(.eyebrow),
.admin-body.theme-dark .admin-modal > p { color: #b4beb7; }
.admin-body.theme-dark .mini-product-row { border-color: rgba(255,255,255,.1); }
.admin-body.theme-dark .mini-product-row img,
.admin-body.theme-dark .admin-product-cell img,
.admin-body.theme-dark .admin-modal-preview img { background: #303a35; }
.admin-body.theme-dark .mini-product-row span,
.admin-body.theme-dark .admin-product-cell small,
.admin-body.theme-dark .admin-field small,
.admin-body.theme-dark .stock-row label,
.admin-body.theme-dark .admin-modal-preview { color: #aab5ad; }
.admin-body.theme-dark .local-note { border-color: #d1a64f; background: #29332e; }
.admin-body.theme-dark .local-note strong { color: #e3c77f; }
.admin-body.theme-dark .local-note span { color: #bec7c0; }
.admin-body.theme-dark .admin-product-table td { border-color: rgba(255,255,255,.09); color: #cbd2cc; }
.admin-body.theme-dark .admin-product-cell strong { color: #f0f2eb; }
.admin-body.theme-dark .admin-price-cell strong { color: #f0f2eb; }
.admin-body.theme-dark .admin-price-cell del { color: #aab5ad; }
.admin-body.theme-dark .admin-price-cell em { background: #453b25; color: #e3c77f; }
.admin-body.theme-dark .admin-table-action { color: #e3c77f; }
.admin-body.theme-dark .admin-field label { color: #c3cbc5; }
.admin-body.theme-dark .admin-field input,
.admin-body.theme-dark .admin-field textarea,
.admin-body.theme-dark .admin-field select,
.admin-body.theme-dark .stock-row input { border-color: rgba(255,255,255,.16); background: #171e1a; color: #f0f2eb; }
.admin-body.theme-dark .admin-field input::placeholder,
.admin-body.theme-dark .admin-field textarea::placeholder,
.admin-body.theme-dark .admin-search input::placeholder { color: #87948a; }
.admin-body.theme-dark .admin-text-button { color: #c5cec7; }
.admin-body.theme-dark .form-feedback { color: #d5c58e; }
.admin-body.theme-dark .hero-preview-box { background: #303a35; }
.admin-body.theme-dark .hero-preview-box span { background: rgba(27,35,32,.9); color: #f0f2eb; }
.admin-body.theme-dark .inline-state { background: #2e3932; color: #d4c17f; }
.admin-body.theme-dark .admin-outlet-row { border-color: var(--line); }
.admin-body.theme-dark .admin-outlet-row > span:first-child,
.admin-body.theme-dark .future-outlets span { color: #d1b875; }
.admin-body.theme-dark .admin-outlet-row strong { color: #f0f2eb; }
.admin-body.theme-dark .admin-outlet-row p { color: #aab5ad; }
.admin-body.theme-dark .future-outlets { border-color: var(--line); }
.admin-body.theme-dark .future-outlets strong { border-color: var(--line); color: #cbd2cc; }
.admin-body.theme-dark .gateway-status { color: #d5c58e; }
.admin-body.theme-dark .admin-modal-close { border-color: var(--line); color: #f0f2eb; }
.admin-body.theme-dark .stock-row { border-color: rgba(255,255,255,.1); }
.admin-body.theme-dark .admin-modal-actions { border-color: var(--line); }
.admin-body.theme-dark .admin-delete-button { color: #e5a18c; }
.admin-body.theme-dark .button-dark { background: #d1a64f; color: #17201b; }
.admin-body.theme-dark .button-dark:hover { background: #e4bd6c; color: #17201b; }
.admin-body.theme-dark .admin-modal-backdrop { background: rgba(0,0,0,.68); }

@media (max-width: 640px) {
  .admin-topbar { height: 62px; gap: 10px; padding-inline: 13px; }
  .admin-topbar .brand-lockup { gap: 6px; margin-right: auto; }
  .admin-topbar .brand-mark { width: 24px; height: 28px; }
  .admin-topbar .brand-wordmark { font-size: 9px; }
  .admin-topbar .brand-wordmark small { font-size: 6px; }
  .admin-top-actions { flex: 0 0 auto; gap: 7px; }
  .local-badge, .admin-view-link { display: none; }
  .theme-toggle { min-height: 37px; padding-inline: 9px; font-size: 11px; }
  .admin-menu-toggle { display: flex; width: 38px; height: 38px; }
  .admin-menu-toggle.is-open span:first-child { transform: translateY(7px) rotate(45deg); }
  .admin-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .admin-menu-toggle.is-open span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .admin-shell { min-height: calc(100vh - 62px); grid-template-columns: 1fr; }
  .admin-nav-backdrop:not([hidden]) { position: fixed; z-index: 35; inset: 62px 0 0; display: block; background: rgba(8,14,11,.56); backdrop-filter: blur(2px); }
  .admin-sidebar { position: fixed; z-index: 40; top: 62px; bottom: 0; left: 0; display: flex; width: min(300px, 84vw); height: auto; overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 23px 14px 18px; border-right: 1px solid var(--line); border-bottom: 0; background: #fbfcf8; box-shadow: 18px 0 50px rgba(0,0,0,.15); transform: translateX(-105%); transition: transform .24s ease; }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-sidebar > .sidebar-label { display: block; padding: 0 12px 13px; }
  .admin-sidebar .sidebar-bottom { display: flex; }
  .admin-nav-item,
  .admin-nav-item:first-of-type { width: 100%; flex: 0 0 auto; min-height: 47px; gap: 12px; margin: 3px 0 0; padding: 0 13px; border-radius: 10px; font-size: 14px; }
  .admin-nav-item > span { width: 20px; font-size: 16px; }
  .admin-nav-item b { min-width: 23px; height: 21px; margin-left: auto; font-size: 10px; }
  .admin-main { padding: 25px 15px 60px; }
  .admin-page-heading h1 { font-size: 29px; }
  .admin-page-heading p:not(.eyebrow) { max-width: 100%; font-size: 12px; }
  .admin-stats article span { font-size: 7px; }
  .admin-stats article small { font-size: 9px; }
  .admin-panel > h2, .panel-heading h2, .form-aside h2 { font-family: Arial, Helvetica, sans-serif; }
  .admin-body.theme-dark .admin-sidebar { background: #1c2420; }
}

@media (max-width: 360px) {
  .admin-topbar { padding-inline: 9px; }
  .admin-top-actions { gap: 5px; }
  .theme-toggle { gap: 4px; padding-inline: 7px; }
  .theme-toggle-label { font-size: 10px; }
  .admin-topbar .brand-wordmark { font-size: 8px; letter-spacing: .13em; }
}

/* Larger control labels and copy for comfortable backoffice editing. */
.admin-body .local-badge,
.admin-body .admin-view-link,
.admin-body .store-state,
.admin-body .sidebar-bottom > a { font-size: 12px; }
.admin-body .sidebar-label,
.admin-body .admin-page-heading .eyebrow,
.admin-body .panel-heading .eyebrow,
.admin-body .form-aside .eyebrow { font-size: 10px; }
.admin-body .admin-nav-item { min-height: 46px; font-size: 13px; }
.admin-body .admin-nav-item b { min-width: 22px; height: 20px; font-size: 10px; }
.admin-body .admin-page-heading p:not(.eyebrow),
.admin-body .overview-promo > p,
.admin-body .form-aside p:not(.eyebrow),
.admin-body .admin-modal > p { font-size: 13px; }
.admin-body .date-stamp { font-size: 11px; }
.admin-body .admin-stats article span { font-size: 9px; }
.admin-body .admin-stats article small { font-size: 11px; }
.admin-body .panel-heading h2,
.admin-body .admin-panel > h2 { font-size: 20px; }
.admin-body .admin-link-button,
.admin-body .mini-product-row button,
.admin-body .admin-table-action,
.admin-body .admin-text-button,
.admin-body .form-aside a { font-size: 12px; }
.admin-body .admin-link-button,
.admin-body .mini-product-row button,
.admin-body .admin-table-action { min-height: 34px; }
.admin-body .mini-product-row strong { font-size: 13px; }
.admin-body .mini-product-row span,
.admin-body .local-note strong,
.admin-body .local-note span { font-size: 11px; }
.admin-body .overview-promo .button,
.admin-body .form-actions .button,
.admin-body .admin-modal-actions .button,
.admin-body .button { min-height: 46px; font-size: 13px; }
.admin-body .admin-product-table th { font-size: 9px; }
.admin-body .admin-product-table td { font-size: 11px; }
.admin-body .admin-product-cell strong { font-size: 12px; }
.admin-body .admin-product-cell small { font-size: 9px; }
.admin-body .admin-field label { font-size: 12px; }
.admin-body .admin-field input,
.admin-body .admin-field textarea,
.admin-body .admin-field select { min-height: 44px; font-size: 13px; }
.admin-body .admin-field small { font-size: 10px; }
.admin-body .form-feedback,
.admin-body .inline-state,
.admin-body .admin-outlet-row > span:first-child,
.admin-body .admin-outlet-row a,
.admin-body .future-outlets strong,
.admin-body .gateway-status { font-size: 11px; }
.admin-body .admin-outlet-row strong { font-size: 14px; }
.admin-body .admin-outlet-row p { font-size: 11px; }
.admin-body .future-outlets span { font-size: 9px; }
.admin-body .form-aside h2 { font-size: 23px; }
.admin-body .hero-preview-box span,
.admin-body .admin-modal-preview { font-size: 10px; }
.admin-body .admin-modal h2 { font-size: 26px; }
.admin-body .stock-heading { font-size: 10px; }
.admin-body .stock-row > strong { font-size: 11px; }
.admin-body .stock-row label { font-size: 10px; }
.admin-body .stock-row input { min-height: 38px; font-size: 12px; }
.admin-body .admin-delete-button { font-size: 12px; }

@media (max-width: 640px) {
  .admin-body .admin-topbar .brand-wordmark small { font-size: 8px; }
  .admin-body .admin-stats article span { font-size: 9px; }
  .admin-body .admin-stats article small { font-size: 11px; }
  .admin-body .product-list-toolbar,
  .admin-body .admin-search input { font-size: 11px; }
  .admin-body .admin-product-table th { font-size: 10px; }
  .admin-body .admin-product-table td { font-size: 11px; }
  .admin-body .admin-product-cell small { font-size: 10px; }
  .admin-body .admin-field label { font-size: 12px; }
  .admin-body .form-feedback { font-size: 11px; }
  .admin-body .stock-row label { font-size: 10px; }
  .admin-body .future-outlets span { font-size: 10px; }
}

/* Softer, more spacious admin styling to match the storefront. */
.admin-body:not(.theme-dark) {
  background: #f5f4ee;
  color: #28372d;
}
.admin-topbar {
  height: 74px;
  padding-inline: clamp(18px, 3.5vw, 52px);
  border-color: rgba(40,55,45,.09);
  background: rgba(252,251,247,.95);
  box-shadow: 0 5px 24px rgba(39,50,41,.035);
}
.admin-topbar .brand-mark { width: 34px; height: 39px; }
.admin-shell { grid-template-columns: 248px minmax(0,1fr); }
.admin-sidebar {
  padding: 30px 18px 22px;
  border-color: rgba(40,55,45,.08);
  background: #f1f1e9;
}
.sidebar-label { font-size: 10px; letter-spacing: .13em; }
.admin-nav-item {
  min-height: 48px;
  gap: 12px;
  margin-top: 6px;
  padding-inline: 14px;
  border-radius: 13px;
  font-size: 14px;
  transition: background .18s, color .18s, transform .18s;
}
.admin-nav-item:hover:not(.is-active) { background: rgba(255,255,255,.75); color: #26372c; transform: translateX(2px); }
.admin-nav-item > span { width: 21px; font-size: 17px; }
.admin-nav-item b { min-width: 25px; height: 22px; font-size: 11px; }
.admin-nav-item.is-active { background: #26382e; box-shadow: 0 7px 18px rgba(38,56,46,.16); }
.admin-main { padding: 42px clamp(24px, 4.3vw, 66px) 84px; }
.admin-page-heading { align-items: flex-start; margin-bottom: 28px; }
.admin-page-heading .eyebrow { font-size: 10px; letter-spacing: .16em; }
.admin-page-heading h1 { margin-top: 9px; font-size: clamp(34px, 3.5vw, 44px); letter-spacing: -.045em; }
.admin-page-heading p:not(.eyebrow) { color: #737d72; font-size: 14px; line-height: 1.65; }
.date-stamp { padding: 10px 14px; border: 1px solid rgba(40,55,45,.09); border-radius: 999px; background: rgba(255,254,250,.8); font-size: 12px; }
.admin-stats { gap: 15px; margin-bottom: 20px; }
.admin-stats article,
.admin-panel {
  border: 1px solid rgba(40,55,45,.075);
  border-radius: 22px;
  background: #fffefa;
  box-shadow: 0 10px 30px rgba(39,50,41,.035);
}
.admin-stats article { min-height: 139px; padding: 21px; }
.admin-stats article span { color: #818b7d; font-size: 10px; letter-spacing: .11em; }
.admin-stats article strong { margin-top: 16px; color: #2b4033; font-size: 31px; }
.admin-stats article small { margin-top: 10px; color: #7d877b; font-size: 12px; }
.admin-overview-grid { gap: 18px; }
.admin-panel { padding: 24px; }
.panel-heading .eyebrow, .form-aside .eyebrow { font-size: 10px; letter-spacing: .14em; }
.panel-heading h2, .admin-panel > h2, .form-aside h2 { margin-top: 8px; font-size: 21px; letter-spacing: -.025em; }
.mini-product-row { grid-template-columns: 48px 1fr auto; gap: 13px; padding: 11px 0; border-color: rgba(40,55,45,.08); }
.mini-product-row img { width: 48px; height: 54px; border-radius: 11px; }
.mini-product-row strong { font-size: 14px; }
.mini-product-row span { margin-top: 3px; color: #788276; font-size: 11px; }
.mini-product-row button { padding: 6px 11px; border-radius: 999px; font-size: 12px; }
.admin-link-button { min-height: 38px; padding-inline: 12px; border-radius: 999px; background: #f2f3ec; font-size: 12px; }
.overview-promo > p { margin: 16px 0 19px; color: #748074; font-size: 13px; line-height: 1.75; }
.local-note { gap: 5px; margin-top: 20px; padding: 15px 16px; border: 0; border-left: 3px solid #a5b394; border-radius: 0 14px 14px 0; background: #f2f3ec; }
.local-note strong { font-size: 12px; }
.local-note span { font-size: 12px; line-height: 1.65; }
.admin-body .button { min-height: 46px; padding-inline: 18px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.admin-body .button-dark { background: #26382e; color: #fffefa; }
.admin-body .button-dark:hover { background: #3a5143; }
.admin-body .button-light { border: 1px solid #dfe2d7; border-radius: 999px; background: #f6f6f0; color: #324538; }
.admin-body .button-light:hover { background: #e9ede3; }
.admin-heading-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.admin-heading-actions .file-button { display: inline-flex; align-items: center; cursor: pointer; }
.product-management { overflow: hidden; padding: 0; }
.product-list-toolbar { min-height: 76px; padding: 15px 22px; border-color: rgba(40,55,45,.08); font-size: 13px; }
.admin-search { min-height: 44px; padding: 0 14px; border-color: #e1e4d9; border-radius: 999px; background: #fafaf6; }
.admin-search span { font-size: 18px; }
.admin-body .admin-search input { font-size: 13px; }
.csv-helper { margin: 17px 22px; padding: 13px 16px; border-radius: 12px; background: #f3f4ed; color: #727d70; font-size: 12px; line-height: 1.65; }
.table-scroll { padding-inline: 8px; }
.admin-product-table { min-width: 720px; }
.admin-product-table th { padding: 13px 15px; color: #899285; font-size: 10px; }
.admin-product-table td { padding: 12px 15px; border-color: rgba(40,55,45,.075); color: #626e63; font-size: 12px; }
.admin-product-table tbody tr { transition: background .16s; }
.admin-product-table tbody tr:hover { background: #fafaf6; }
.admin-product-cell { gap: 12px; }
.admin-product-cell img { width: 45px; height: 52px; border-radius: 10px; }
.admin-product-cell strong { font-size: 14px; }
.admin-product-cell small { font-size: 10px; }
.admin-price-cell strong { font-size: 14px; }
.admin-price-cell del { font-size: 11px; }
.admin-price-cell em { padding: 3px 7px; font-size: 10px; }
.admin-table-action { min-height: 37px; padding: 0 13px; border-color: #dfe2d7; border-radius: 999px; background: #fffefa; font-size: 12px; }
.product-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 22px; padding: 16px 0 19px; border-top: 1px solid rgba(40,55,45,.08); color: #717c70; font-size: 13px; }
.product-pagination button { min-height: 40px; padding: 0 14px; border: 1px solid #dfe2d7; border-radius: 999px; background: #fffefa; color: #33483a; font-size: 13px; cursor: pointer; }
.product-pagination button:hover:not(:disabled) { background: #eff1e9; }
.product-pagination button:disabled { opacity: .45; cursor: default; }
.product-import-feedback { margin: 0 22px 15px; font-size: 12px; }
.admin-form-layout { gap: 19px; }
.admin-form { padding: clamp(23px, 3vw, 34px); }
.admin-form > h2 { margin-bottom: 23px; }
.admin-field { gap: 8px; margin-bottom: 17px; }
.admin-field label { color: #536256; font-size: 13px; font-weight: 600; }
.admin-field input, .admin-field textarea, .admin-field select { border-color: #dfe2d7; border-radius: 12px; background: #fffefa; font-size: 14px; }
.admin-field input { min-height: 48px; }
.admin-field textarea { padding-block: 12px; }
.admin-field small { color: #7f897d; font-size: 11px; }
.form-actions { gap: 12px; }
.form-feedback { font-size: 12px; }
.form-aside { top: 95px; padding: 27px; }
.form-aside h2 { font-size: 24px; }
.form-aside p:not(.eyebrow) { font-size: 13px; line-height: 1.75; }
.hero-preview-box { overflow: hidden; border-radius: 14px; }
.hero-preview-box span { border-radius: 999px; font-size: 10px; }
.admin-outlet-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 17px; }
.outlet-management { padding: 25px; border: 1px solid rgba(40,55,45,.075); border-radius: 22px; background: #fffefa; box-shadow: 0 10px 30px rgba(39,50,41,.035); }
.outlet-management-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.outlet-management-heading .eyebrow { color: #818b7d; font-size: 10px; letter-spacing: .14em; }
.outlet-management-heading h2 { margin: 6px 0 0; font-size: 21px; letter-spacing: -.025em; }
.inline-state { padding: 8px 12px; border-radius: 999px; font-size: 12px; }
.admin-outlet-card { min-width: 0; padding: 18px; border: 1px solid #e6e8df; border-radius: 17px; background: #fffefa; }
.admin-outlet-card-heading { display: grid; grid-template-columns: 33px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.outlet-index { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 50%; background: #eff1e9; color: #70806f; font-size: 12px; font-weight: 700; }
.admin-outlet-card-heading strong { display: block; color: #2d3d32; font-size: 14px; line-height: 1.35; }
.admin-outlet-card-heading small { display: block; margin-top: 4px; color: #7d877b; font-size: 11px; }
.admin-outlet-card-heading a { padding: 7px 9px; border-radius: 999px; background: #f3f4ed; color: #566a59; font-size: 11px; white-space: nowrap; }
.admin-outlet-address { margin: 15px 0 12px; color: #727d71; font-size: 12px; line-height: 1.6; }
.outlet-wa-state { margin-bottom: 11px; padding: 8px 10px; border-radius: 9px; font-size: 11px; }
.outlet-wa-state.is-ready { background: #edf4ec; color: #4f7857; }
.outlet-wa-state.is-missing { background: #faf0e5; color: #8a633c; }
.outlet-phone-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 9px; }
.outlet-phone-form label { display: grid; gap: 6px; color: #536256; font-size: 12px; font-weight: 600; }
.outlet-phone-form input { width: 100%; min-width: 0; min-height: 45px; padding: 0 12px; border: 1px solid #dfe2d7; border-radius: 11px; background: #fffefa; color: #28372d; font: inherit; font-size: 13px; }
.outlet-phone-form .button { min-height: 45px; padding-inline: 13px; font-size: 12px; white-space: nowrap; }
.admin-outlet-card .form-feedback { min-height: 0; }
.outlet-create-panel { position: relative; margin-bottom: 20px; padding: 25px; }
.outlet-create-panel .panel-heading { margin-bottom: 20px; }
.outlet-create-panel .admin-modal-close { top: 20px; right: 20px; border-radius: 50%; }
.outlet-create-panel .admin-form-row { gap: 15px; }
.outlet-create-panel .form-actions { align-items: center; }
.admin-modal { border: 1px solid rgba(40,55,45,.08); border-radius: 23px; }
.admin-modal-close { display: grid; place-items: center; width: 39px; height: 39px; background: #f4f4ed; }
.admin-modal h2 { font-size: 28px; letter-spacing: -.035em; }
.admin-modal > p { font-size: 13px; }
.stock-heading { font-size: 11px; }
.stock-row { gap: 12px; padding: 11px 0; }
.stock-row > strong { font-size: 12px; }
.stock-row label { font-size: 10px; }
.stock-row input { min-height: 40px; border-radius: 9px; font-size: 13px; }
.admin-modal-preview { font-size: 11px; }
.admin-modal-actions { gap: 12px; }

.admin-body.theme-dark {
  background: #151b18;
}
.admin-body.theme-dark .admin-sidebar { background: #1b2420; }
.admin-body.theme-dark .admin-nav-item:hover:not(.is-active) { background: rgba(255,255,255,.06); color: #f0f2eb; }
.admin-body.theme-dark .admin-nav-item.is-active { background: #d1a64f; box-shadow: 0 7px 18px rgba(0,0,0,.2); }
.admin-body.theme-dark .date-stamp { border-color: var(--line); background: #202925; color: #bec7c0; }
.admin-body.theme-dark .admin-stats article,
.admin-body.theme-dark .admin-panel,
.admin-body.theme-dark .outlet-management { border-color: rgba(255,255,255,.1); background: #202925; }
.admin-body.theme-dark .admin-stats article strong { color: #e4bd6c; }
.admin-body.theme-dark .mini-product-row { border-color: rgba(255,255,255,.1); }
.admin-body.theme-dark .mini-product-row span,
.admin-body.theme-dark .admin-stats article small { color: #aab5ad; }
.admin-body.theme-dark .admin-link-button,
.admin-body.theme-dark .local-note,
.admin-body.theme-dark .csv-helper { background: #29332e; color: #c0c9c2; }
.admin-body.theme-dark .admin-link-button { color: #e3c77f; }
.admin-body.theme-dark .product-list-toolbar,
.admin-body.theme-dark .product-pagination { border-color: var(--line); }
.admin-body.theme-dark .admin-search,
.admin-body.theme-dark .product-pagination button,
.admin-body.theme-dark .admin-table-action,
.admin-body.theme-dark .outlet-phone-form input,
.admin-body.theme-dark .admin-outlet-card { border-color: rgba(255,255,255,.13); background: #202925; color: #f0f2eb; }
.admin-body.theme-dark .admin-product-table tbody tr:hover { background: rgba(255,255,255,.035); }
.admin-body.theme-dark .admin-product-table td { border-color: rgba(255,255,255,.1); }
.admin-body.theme-dark .admin-product-table th,
.admin-body.theme-dark .product-list-toolbar,
.admin-body.theme-dark .product-pagination { color: #d1b875; }
.admin-body.theme-dark .product-pagination button { color: #e3c77f; }
.admin-body.theme-dark .admin-field input,
.admin-body.theme-dark .admin-field textarea,
.admin-body.theme-dark .admin-field select { border-color: rgba(255,255,255,.15); background: #171e1a; }
.admin-body.theme-dark .outlet-management-heading h2,
.admin-body.theme-dark .admin-outlet-card-heading strong { color: #f0f2eb; }
.admin-body.theme-dark .outlet-management-heading .eyebrow,
.admin-body.theme-dark .admin-outlet-address,
.admin-body.theme-dark .admin-outlet-card-heading small,
.admin-body.theme-dark .outlet-phone-form label { color: #b4beb7; }
.admin-body.theme-dark .outlet-index,
.admin-body.theme-dark .admin-outlet-card-heading a { background: #303a34; color: #e3c77f; }
.admin-body.theme-dark .outlet-wa-state.is-ready { background: #24392d; color: #b7d7b9; }
.admin-body.theme-dark .outlet-wa-state.is-missing { background: #453b2d; color: #e4c18b; }
.admin-body.theme-dark .admin-body .button-light,
.admin-body.theme-dark .button-light { border-color: rgba(255,255,255,.17); background: #303a34; color: #edf0e7; }
.admin-body.theme-dark .button-light:hover { background: #3b4740; }
.admin-body.theme-dark .button-dark { background: #d1a64f; color: #17201b; }
.admin-body.theme-dark .button-dark:hover { background: #e4bd6c; color: #17201b; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 205px minmax(0,1fr); }
  .admin-main { padding-inline: 22px; }
  .admin-outlet-grid { grid-template-columns: 1fr; }
  .admin-heading-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .admin-topbar { height: 62px; padding-inline: 13px; }
  .admin-topbar .brand-mark { width: 27px; height: 31px; }
  .admin-shell { min-height: calc(100vh - 62px); grid-template-columns: 1fr; }
  .admin-sidebar { background: #f1f1e9; }
  .admin-body.theme-dark .admin-sidebar { background: #1b2420; }
  .admin-main { padding: 25px 14px 58px; }
  .admin-page-heading { gap: 14px; margin-bottom: 20px; }
  .admin-page-heading h1 { font-size: 31px; }
  .admin-heading-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .admin-heading-actions > :last-child { grid-column: 1 / -1; }
  .admin-heading-actions .button { width: 100%; padding-inline: 10px; }
  .admin-stats article { min-height: 116px; padding: 14px; border-radius: 17px; }
  .admin-stats article strong { margin-top: 11px; font-size: 25px; }
  .admin-stats article small { font-size: 10px; }
  .admin-panel { padding: 17px; border-radius: 18px; }
  .product-management { padding: 0; }
  .product-list-toolbar { align-items: stretch; flex-direction: column; padding: 15px; }
  .admin-search { width: 100%; }
  .csv-helper { margin: 13px 15px; padding: 12px; font-size: 11px; }
  .table-scroll { padding-inline: 0; }
  .product-pagination { margin-inline: 15px; font-size: 11px; }
  .product-pagination button { min-height: 38px; padding-inline: 10px; font-size: 11px; }
  .product-import-feedback { margin-inline: 15px; }
  .outlet-management { padding: 17px; border-radius: 18px; }
  .outlet-management-heading { align-items: flex-start; }
  .outlet-management-heading h2 { font-size: 18px; }
  .admin-outlet-card { padding: 15px; }
  .admin-outlet-card-heading { grid-template-columns: 30px minmax(0,1fr); }
  .admin-outlet-card-heading a { grid-column: 2; justify-self: start; }
  .outlet-phone-form { grid-template-columns: 1fr; }
  .outlet-phone-form .button { width: 100%; }
  .outlet-create-panel { padding: 18px; }
  .outlet-create-panel .admin-modal-close { top: 14px; right: 14px; }
  .admin-modal-actions { flex-wrap: wrap; }
  .admin-modal-actions .button { flex: 1 1 auto; }
  .admin-delete-button { flex-basis: 100%; text-align: left; }
}

.hero-preview-box video { width: 100%; height: 100%; object-fit: cover; }
.product-media-manager { margin-top: 20px; padding: 17px; border: 1px solid rgba(40,55,45,.1); border-radius: 16px; background: #fafaf6; }
.product-media-manager .stock-heading:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.admin-product-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 10px 0 18px; }
.admin-media-thumb { position: relative; min-width: 0; overflow: hidden; border: 1px solid #e2e5db; border-radius: 11px; background: #f0f1eb; }
.admin-media-thumb img { display: block; width: 100%; height: 105px; object-fit: cover; }
.admin-media-thumb > span { display: block; padding: 6px 8px; color: #68766a; font-size: 11px; }
.admin-media-thumb button,
.admin-product-video-preview button { min-height: 31px; padding: 0 10px; border: 1px solid #dfe2d7; border-radius: 999px; background: #fffefa; color: #735e51; font: inherit; font-size: 11px; cursor: pointer; }
.admin-media-thumb button { position: absolute; top: 7px; right: 7px; }
.media-empty { grid-column: 1 / -1; margin: 0; color: #7d877b; font-size: 12px; }
.admin-product-video-preview { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 11px; margin: 10px 0 18px; }
.admin-product-video-preview video { display: block; width: min(100%, 360px); max-height: 200px; border-radius: 11px; background: #222; }
.admin-body.theme-dark .product-media-manager { border-color: var(--line); background: #1a221e; }
.admin-body.theme-dark .admin-media-thumb { border-color: var(--line); background: #29332e; }
.admin-body.theme-dark .admin-media-thumb > span,
.admin-body.theme-dark .media-empty { color: #b4beb7; }
.admin-body.theme-dark .admin-media-thumb button,
.admin-body.theme-dark .admin-product-video-preview button { border-color: var(--line); background: #303a34; color: #f0f2eb; }

@media (max-width: 640px) {
  .product-media-manager { padding: 12px; }
  .admin-media-thumb img { height: 85px; }
  .admin-media-thumb button { top: 5px; right: 5px; min-height: 27px; padding-inline: 8px; font-size: 10px; }
  .admin-product-video-preview { grid-template-columns: 1fr; }
}
