:root {
  --ink: #10251d;
  --muted: #64736c;
  --line: #dce5de;
  --paper: #fbfcf8;
  --soft: #edf5e8;
  --leaf: #397f38;
  --leaf-dark: #0d3b28;
  --sun: #d9a441;
  --rose: #b56355;
  --sky: #d7e8ed;
  --shadow: 0 20px 60px rgba(16, 37, 29, 0.12);
  --page-background: #fbf7ef;
  --primary-green: #315b3b;
  --dark-green: #123f2c;
  --sage-surface: #edf1df;
  --warm-surface: #fffaf3;
  --peach-accent: #ef8068;
  --butter-accent: #f4d98b;
  --body-text: #202821;
  --secondary-text: #657068;
  --market-border: #dedfd4;
  --focus-ring: #f0a55d;
  --seller-workspace-background: #f4f7f4;
  --seller-sidebar-background: #e8ecdf;
  --seller-sidebar-accent: #ccd8c2;
  --seller-sidebar-hover: #dbe3d3;
  --seller-sidebar-text: #304136;
  --seller-sidebar-muted: #4f5e55;
  --seller-sidebar-border: #cbd3c4;
  --card-radius: 16px;
  --control-radius: 12px;
  --market-shadow: 0 12px 32px rgba(39, 56, 41, 0.08);
  --market-transition: 180ms ease;
}

/* Marketplace visual refresh */
body { background: var(--page-background); color: var(--body-text); }
body > main { display: flex; flex-direction: column; }
#marketplaceHero { order: 1; }
#shops-near-you { order: 3; }
#marketplace { order: 4; }
#marketplaceQuickStart { order: 5; }
#detailView { order: 6; }
#assistant { order: 7; }
#seller { order: 8; }

.site-header {
  grid-template-columns: auto minmax(240px, 1fr) auto auto auto auto auto auto;
  min-height: 76px;
  padding: 10px clamp(20px, 3.5vw, 52px);
  gap: clamp(10px, 1.4vw, 20px);
  background: rgba(255, 252, 246, 0.94);
  border-color: rgba(49, 91, 59, 0.12);
}
.brand img { width: 105px; height: 44px; }
.header-search { border-radius: var(--control-radius); border-color: var(--market-border); box-shadow: 0 3px 12px rgba(39,56,41,.04); }
.header-search:focus-within { border-color: var(--primary-green); box-shadow: 0 0 0 3px rgba(49,91,59,.13); }
.header-search button { margin: 4px; border-radius: 9px; background: var(--primary-green); }
.nav-links { gap: 4px; }
.nav-links a { padding: 9px 8px; white-space: nowrap; font-weight: 700; }
.header-favourites, .basket-button { border-color: transparent; background: transparent; }
.icon-button { width: auto; min-width: 48px; padding: 0 12px; border: 1px solid var(--market-border); border-radius: var(--control-radius); color: var(--dark-green); background: var(--warm-surface); }
.account-button { border-color: var(--market-border); border-radius: var(--control-radius); background: var(--sage-surface); }

.hero {
  width: min(1480px, calc(100% - 48px));
  min-height: 480px;
  margin: 22px auto 0;
  padding: clamp(42px, 5vw, 74px);
  grid-template-columns: minmax(320px, .92fr) minmax(400px, 1.08fr);
  gap: clamp(36px, 6vw, 90px);
  border-radius: 34px;
  background: radial-gradient(circle at 14% 20%, rgba(255,255,255,.72), transparent 35%), linear-gradient(120deg, #fee5d1, #fff4e7 54%, #eef0dd);
}
.marketplace-session-cached #marketplaceHero, .marketplace-session-cached #marketplaceQuickStart,
.marketplace-user-signed-in #marketplaceHero, .marketplace-user-signed-in #marketplaceQuickStart { display: grid; }
.hero-copy { padding: 0; align-self: center; }
.hero-copy .eyebrow { color: var(--primary-green); }
h1 { max-width: 12ch; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.1rem, 5.6vw, 5.8rem); line-height: .98; color: var(--dark-green); }
.hero-copy > p:not(.eyebrow) { max-width: 52ch; font-size: 1.08rem; color: #3f4942; }
.primary-action { border-color: var(--dark-green); background: var(--dark-green); }
.secondary-action { border-color: rgba(18,63,44,.28); background: rgba(255,255,255,.56); }
.hero-media { min-height: 360px; overflow: hidden; border-radius: 26px; box-shadow: var(--market-shadow); }
.hero-media img { min-height: 360px; border-radius: 0; }
.hero-badge { width: 136px; min-height: 136px; right: 22px; bottom: 22px; background: rgba(18,63,44,.92); }

.nearby-shops-section, .marketplace, .quick-start, .assistant-section, .seller-section { width: min(1380px, calc(100% - 48px)); margin-inline: auto; }
.nearby-shops-section { padding: 68px 0 38px; background: transparent; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading .eyebrow { margin: 0; }
.nearby-shops-heading h2, .marketplace .section-heading h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3vw, 3rem); color: var(--dark-green); }
.shop-filter-bar { padding: 14px 16px; border: 1px solid var(--market-border); border-radius: var(--card-radius); background: var(--warm-surface); }
.shop-filter-bar input[type="search"] { border-radius: var(--control-radius); }
.nearby-shop-card { flex-basis: clamp(250px, 23vw, 310px); border-radius: var(--card-radius); border-color: var(--market-border); background: var(--warm-surface); box-shadow: none; transition: transform var(--market-transition), box-shadow var(--market-transition), border-color var(--market-transition); }
.nearby-shop-card:hover, .nearby-shop-card:focus-within { transform: translateY(-4px); border-color: #b9c7b8; box-shadow: var(--market-shadow); }
.nearby-shop-image, .nearby-shop-image > img { height: 156px; }
.nearby-shop-logo { width: 70px; height: 70px; bottom: -28px; }
.nearby-shop-body { min-height: 150px; padding: 38px 18px 18px; }
.nearby-shop-action { color: var(--primary-green); }

.marketplace { padding: 52px 0 68px; }
.market-layout { grid-template-columns: minmax(245px, 280px) minmax(0, 1fr); gap: 28px; }
.filters { top: 94px; gap: 10px; }
.filter-card { border-radius: var(--card-radius); border-color: var(--market-border); background: var(--warm-surface); box-shadow: none; }
.filter-card:nth-child(2) { background: var(--sage-surface); }
.filter-card:nth-child(4) { background: #fff1e9; }
.filter-card input { accent-color: var(--primary-green); }
.marketplace-category-options { display:grid; gap:7px; }
.marketplace-category-options label { margin:0; }
.marketplace-category-group { border-bottom:1px solid rgba(49,91,59,.1); padding-bottom:6px; }
.marketplace-category-group summary { display:flex; align-items:center; justify-content:space-between; gap:8px; cursor:pointer; list-style:none; }
.marketplace-category-group summary::-webkit-details-marker { display:none; }
.marketplace-category-group summary label { flex:1; }
.marketplace-category-group summary input { position:relative; z-index:1; }
.category-expand-icon { width:8px; height:8px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); transition:transform 150ms ease; }
.marketplace-category-group[open] > summary .category-expand-icon { transform:rotate(225deg); }
.marketplace-category-children { display:grid; gap:7px; padding:9px 0 2px 20px; }
.marketplace-category-leaf { min-width:0; }
.filter-help { margin:0; color:var(--muted); font-size:.86rem; }
.marketplace-price-filter input[type="range"] { width:100%; margin:7px 0 2px; accent-color:var(--primary-green); cursor:pointer; }
.marketplace-price-filter .filter-card-heading strong { color:var(--dark-green); font-size:.9rem; }
.price-filter-scale { display:flex; justify-content:space-between; color:var(--muted); font-size:.78rem; }
.filter-card input:focus-visible, .results-toolbar select:focus-visible, .shop-filter-bar input:focus-visible { outline: 3px solid rgba(240,165,93,.38); outline-offset: 2px; }
.results-toolbar { min-height: 60px; padding: 10px 14px; border: 1px solid var(--market-border); border-radius: var(--control-radius); background: var(--warm-surface); }
.results-toolbar > div[hidden] ~ label { margin-left:auto; }
.product-grid { gap: 18px; }
.product-card { border-radius: var(--card-radius); border-color: var(--market-border); background: var(--warm-surface); box-shadow: none; }
.discovery-tabs { display:flex; gap:6px; margin:0 0 18px; padding:5px; overflow-x:auto; border:1px solid var(--market-border); border-radius:16px; background:#f4f6ed; }
.discovery-tabs button { flex:1 0 max-content; min-height:42px; padding:9px 16px; border:0; border-radius:12px; color:var(--dark-green); background:transparent; font:inherit; font-weight:700; cursor:pointer; }
.discovery-tabs button[aria-selected="true"] { color:#fff; background:var(--dark-green); box-shadow:0 3px 10px rgba(23,70,45,.18); }
.discovery-tabs button:focus-visible { outline:3px solid #e4a34a; outline-offset:2px; }
.product-discovery-badges { display:flex; flex-wrap:wrap; gap:6px; min-height:0; }
.discovery-pill { display:inline-flex; align-items:center; width:max-content; padding:4px 9px; border:1px solid #b8cfad; border-radius:999px; color:#194b31; background:#eaf4e4; font-size:.72rem; font-weight:800; line-height:1; }
.local-maker-pill { color:#56326e; border-color:#d7c2e5; background:#f3eafb; }
.product-image-maker-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(46, 27, 59, .14);
  pointer-events: none;
}
.collection-pill { color:#24562d; border-color:#b8d7ae; background:#ebf7e7; }
.product-card-collection-pill { margin-left: auto; }
.product-card-delivery-pill { margin-left: auto; }
.physical-distance {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  white-space: nowrap;
}

.physical-distance-pin {
  display: block;
  flex: 0 0 auto;
  height: 17px;
  overflow: visible;
  width: 17px;
}

.physical-distance-pin path,
.physical-distance-pin circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.maker-origin { color:#67447b; font-size:.78rem; font-weight:700; }
.filter-helper { margin:8px 0 0; color:var(--secondary-text); font-size:.78rem; line-height:1.4; }
.search-load-more { display:flex; justify-content:center; padding:24px 0 4px; }
.search-load-more button { min-height:44px; padding:10px 22px; border:1px solid var(--dark-green); border-radius:999px; color:var(--dark-green); background:#fff; font:inherit; font-weight:800; cursor:pointer; }
.search-empty-card { grid-column:1/-1; }
.product-card:hover, .product-card:focus-within { transform: translateY(-4px); border-color: #b9c7b8; box-shadow: var(--market-shadow); }
.product-card img { aspect-ratio: 1 / .82; }
.product-body { padding: 14px; gap: 8px; }
.product-title-link { font-size: .93rem; }
.product-card .favourite-button { background: rgba(255,250,243,.94); }
.price { color: var(--dark-green); font-size: 1rem; }
.product-variant-badge { background: var(--peach-accent); }

.quick-start { order: 5; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 24px 0 70px; background: transparent; }
.quick-start article { min-height: 0; padding: 26px; background: var(--sage-surface); border-right: 1px solid rgba(49,91,59,.12); }
.quick-start article:first-child { border-radius: var(--card-radius) 0 0 var(--card-radius); }
.quick-start article:last-child { border-radius: 0 var(--card-radius) var(--card-radius) 0; border-right: 0; }
.quick-start span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--dark-green); background: var(--butter-accent); font-size: 1.25rem; }
.quick-start article:nth-child(2) span { background: #f7c9ba; }
.quick-start article:nth-child(3) span { background: #d9e5c8; }
.quick-start article:nth-child(4) span { background: #f3dda8; }
.assistant-section, .seller-section { border-radius: 24px; }
.site-footer { background: var(--dark-green); }

:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto minmax(220px, 1fr) auto auto auto auto auto; }
  .nav-links { display: none; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .site-header { grid-template-columns: auto 1fr auto auto auto; padding: 8px 16px 12px; }
  .header-search { grid-column: 1 / -1; grid-row: 2; }
  .account-menu { justify-self: end; }
  .header-favourites { display: none; }
  .hero { width: calc(100% - 28px); min-height: 0; margin-top: 14px; padding: 36px 28px; grid-template-columns: 1fr; border-radius: 24px; }
  .hero-media { min-height: 270px; }
  .hero-media img { min-height: 270px; }
  .nearby-shops-section, .marketplace, .quick-start, .assistant-section, .seller-section { width: calc(100% - 32px); }
  .market-layout { grid-template-columns: 1fr; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .filter-card:first-child, .filter-card:nth-child(3) { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-start { grid-template-columns: repeat(2, 1fr); }
  .quick-start article:first-child { border-radius: var(--card-radius) 0 0 0; }
  .quick-start article:nth-child(2) { border-radius: 0 var(--card-radius) 0 0; }
  .quick-start article:nth-child(3) { border-radius: 0 0 0 var(--card-radius); }
  .quick-start article:last-child { border-radius: 0 0 var(--card-radius) 0; }
}
@media (max-width: 560px) {
  #marketplaceHero, #marketplaceQuickStart { display: grid; }
  .site-header { grid-template-columns: auto 1fr auto auto; }
  .brand img { width: 86px; }
  .icon-button { min-width: 44px; padding: 0 8px; }
  .account-button { width: 44px; overflow: hidden; padding: 0 7px; white-space: nowrap; }
  .hero { padding: 30px 22px; }
  h1 { font-size: clamp(2.65rem, 13vw, 3.5rem); }
  .hero-media { min-height: 220px; }
  .hero-media img { min-height: 220px; }
  .hero-badge { width: 104px; min-height: 104px; padding: 14px; }
  .hero-badge span { font-size: .68rem; }
  .section-heading { display: block; }
  .shop-filter-bar { grid-template-columns: 1fr; }
  .shop-open-now { grid-column: 1; grid-row: auto; }
  .carousel-arrow { display: none; }
  .shop-carousel-shell { display: block; }
  .nearby-shop-card { flex-basis: min(82vw, 300px); }
  .filters { grid-template-columns: 1fr; }
  .filter-card:first-child, .filter-card:nth-child(3) { grid-column: auto; }
  .results-toolbar { align-items: stretch; flex-direction: column; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-body { padding: 10px; }
  .store-line { display: block; }
  .store-line > span:last-child { display: block; }
  .product-card-footer { display: grid; }
  .product-card-footer .stock { margin-left: 0; text-align: left; }
  .quick-start { grid-template-columns: 1fr; }
  .quick-start article, .quick-start article:first-child, .quick-start article:nth-child(2), .quick-start article:nth-child(3), .quick-start article:last-child { border-radius: 0; border-right: 0; border-bottom: 1px solid rgba(49,91,59,.12); }
  .quick-start article:first-child { border-radius: var(--card-radius) var(--card-radius) 0 0; }
  .quick-start article:last-child { border-radius: 0 0 var(--card-radius) var(--card-radius); }
}

.taxonomy-selected{display:flex;flex-wrap:wrap;gap:8px;min-height:34px}.taxonomy-selected:empty{display:none}.taxonomy-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:7px 10px;border-radius:999px;background:#e8f2ec;color:var(--green);font-size:.84rem;font-weight:700}.taxonomy-chip.inactive{background:#f2eeee;color:#755}.taxonomy-chip button{display:inline-grid;width:24px;height:24px;box-sizing:border-box;flex:0 0 auto;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;font-size:0;line-height:1;cursor:pointer}.taxonomy-chip button::before{content:"×";font-size:1.1rem;line-height:1;transform:translateY(-1px)}.taxonomy-empty{color:var(--muted);font-size:.86rem}.category-picker-options{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;max-height:360px;overflow:auto;padding:2px}.category-picker-group{min-width:0;border:1px solid var(--line);border-radius:10px;background:#fff}.category-picker-group summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;font-weight:750;cursor:pointer}.category-picker-group summary small{flex:0 0 auto;color:var(--muted);font-size:.72rem;font-weight:600}.category-picker-group>div{display:grid;gap:3px;padding:0 10px 11px}.category-picker-group label,.attribute-option{display:flex;align-items:center;gap:10px;min-width:0;padding:9px 10px;border-radius:8px;cursor:pointer}.category-picker-group label>span{min-width:0;overflow-wrap:anywhere}.category-picker-group label:hover,.attribute-option:hover{background:#f4f7f5}.category-picker-group input,.attribute-option input{width:18px;height:18px;flex:0 0 auto;accent-color:var(--green)}.category-root-option{font-weight:750;background:#f7faf8}.category-child-option{margin-left:18px;padding-left:14px!important;border-left:2px solid #dce8e1;border-radius:0 8px 8px 0!important}.category-child-option small{margin-left:auto;color:var(--muted)}.attribute-picker-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.attribute-picker-group{min-width:0;margin:0;padding:10px;border:1px solid var(--line);border-radius:10px}.attribute-picker-group legend{padding:0 5px;font-weight:800}.attribute-option.inactive{color:var(--muted)}
.category-picker-search { margin-bottom: 4px; width: 100%; }

.seller-onboarding-page { min-height:100vh; background:linear-gradient(135deg,#f7f5ed,#f7eee6); color:var(--ink); }
.seller-onboarding-header { display:flex;align-items:center;gap:18px;padding:18px clamp(20px,5vw,64px);border-bottom:1px solid var(--line);background:rgba(255,255,255,.82);font-weight:800; }
.seller-onboarding-header .brand { width:165px; }
.seller-onboarding-shell { width:min(760px,calc(100% - 32px));margin:40px auto 80px; }
.seller-onboarding-progress { --step-progress:0%; position:relative; display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:4px 0 30px; }
.seller-onboarding-progress::before,.seller-onboarding-progress::after { content:"";position:absolute;z-index:0;top:21px;left:8.333%;height:3px;border-radius:999px; }
.seller-onboarding-progress::before { right:8.333%;background:#d9ddd8; }
.seller-onboarding-progress::after { width:var(--step-progress);background:var(--primary-green);transition:width 240ms ease; }
.seller-onboarding-progress span { position:relative;z-index:1;display:grid;justify-items:center;gap:9px;color:var(--muted);font-size:.86rem;text-align:center; }
.seller-onboarding-progress i { display:grid;width:44px;height:44px;place-items:center;border:2px solid #d9ddd8;border-radius:50%;color:#333;background:#fff;font-size:1.05rem;font-style:normal;font-weight:750;box-shadow:0 1px 4px rgba(20,52,36,.08); }
.seller-onboarding-progress b { font-weight:750; }
.seller-onboarding-progress span.active,.seller-onboarding-progress span.complete { color:var(--primary-green); }
.seller-onboarding-progress span.active i,.seller-onboarding-progress span.complete i { border-color:var(--primary-green);color:#fff;background:var(--primary-green); }
.seller-onboarding-progress-fill { display:block; width:25%; }
.onboarding-step { padding:clamp(24px,5vw,48px);border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 18px 45px rgba(27,56,39,.09); }
.onboarding-step h1 { max-width:none;margin:.25rem 0 .65rem;font-size:clamp(1.8rem,4vw,2.7rem); }
.onboarding-step > h1[tabindex="-1"]:focus-visible { outline: none; }
.onboarding-step form { display:grid;gap:20px;margin-top:28px; }
.onboarding-step form>label,.onboarding-step fieldset { display:grid;gap:8px; }
.onboarding-step input:where(:not(.sr-only)),.onboarding-step textarea,.onboarding-step select { width:100%;padding:12px 14px;border:1px solid #bdc8c0;border-radius:10px;font:inherit;background:#fff; }
.onboarding-step fieldset { margin:0;padding:0;border:0; }
.onboarding-step legend { margin-bottom:10px;font-weight:800; }
.onboarding-choice { display:flex!important;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;cursor:pointer; }
.onboarding-question-help { margin:0 0 4px;color:var(--muted);font-size:.9rem;line-height:1.5; }
.onboarding-character-count { justify-self:end;color:var(--muted);font-variant-numeric:tabular-nums; }
.profile-character-count { justify-self:end;color:var(--muted);font-size:.78rem;font-weight:500;font-variant-numeric:tabular-nums; }
.onboarding-field-help { margin:0;color:var(--muted);font-size:.9rem;font-weight:400;line-height:1.45; }
.onboarding-step [data-local-maker-question][hidden] { display:none; }
.onboarding-choice input { width:18px;flex:0 0 auto;margin-top:2px;accent-color:var(--green); }
.onboarding-step footer { display:flex;justify-content:flex-end;gap:12px;margin-top:10px; }
.onboarding-location-actions [data-location-back] { margin-right:auto; }
.onboarding-saved-locations { display:grid;gap:9px;margin:20px 0 4px; }
.onboarding-saved-locations article { display:flex;align-items:flex-start;gap:11px;padding:12px 14px;border:1px solid #cadbc4;border-radius:12px;background:#f7faf5; }
.onboarding-saved-locations article>span { display:grid;width:23px;height:23px;flex:0 0 auto;place-items:center;border-radius:50%;color:#fff;background:var(--primary-green);font-size:.8rem;font-weight:850; }
.onboarding-saved-locations article>div { min-width:0;flex:1; }
.onboarding-saved-locations article p { margin:2px 0 0;color:var(--muted);font-size:.88rem; }
.onboarding-saved-locations .onboarding-saved-hours { margin-top:7px;line-height:1.45; }
.onboarding-saved-locations .onboarding-saved-hours b { color:#34443c;font-weight:750; }
.onboarding-saved-fulfilment { display:flex;flex-wrap:wrap;gap:6px;margin-top:9px; }
.onboarding-saved-fulfilment span { padding:3px 8px;border-radius:999px;color:var(--dark-green);background:#e9f3e6;font-size:.78rem;font-weight:700; }
.onboarding-saved-fulfilment span.muted { color:var(--muted);background:#f0f2ef;font-weight:500; }
.onboarding-saved-locations article>button { align-self:center;padding:5px 7px;border:0;text-decoration:underline;color:#8a3c28;background:transparent;cursor:pointer; }
.onboarding-saved-locations article>button:disabled { opacity:.55;cursor:wait; }
.onboarding-step-footer { display:flex;justify-content:space-between;margin-top:18px; }
.onboarding-location-types { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px; }
.onboarding-location-types button { position:relative;display:grid;align-content:center;justify-items:center;gap:5px;min-height:154px;padding:16px 12px;border:2px solid var(--line);border-radius:16px;text-align:center;color:inherit;background:#fff;cursor:pointer; }
.onboarding-location-types button strong { max-width:24ch;line-height:1.3; }
.onboarding-location-icon { display:grid;width:52px;height:52px;margin-bottom:2px;place-items:center;color:var(--dark-green); }
.onboarding-location-icon svg { width:46px;height:46px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round; }
.onboarding-location-types button:hover,.onboarding-location-types button:focus-visible { border-color:var(--primary-green);background:#f1f7f1; }
.onboarding-location-types button[aria-pressed="true"] { border-color:var(--primary-green);background:#fbfdf9;box-shadow:0 0 0 2px rgba(49,91,59,.1); }
.onboarding-location-types button[aria-pressed="true"]::after { content:"✓";position:absolute;top:-12px;right:-10px;display:grid;width:38px;height:38px;place-items:center;border:3px solid #fff;border-radius:50%;color:#fff;background:var(--primary-green);box-shadow:0 3px 9px rgba(20,52,36,.2);font-size:1.25rem;font-weight:850; }
.onboarding-location-types button[aria-pressed="true"] .onboarding-location-icon { color:var(--primary-green); }
.onboarding-location-types span,.privacy-copy { color:var(--muted);font-size:.9rem; }
.onboarding-geography { display:grid;gap:16px;padding:16px;border-radius:14px;background:#f4f7f2; }
.onboarding-geography h2 { margin:0;font-family:inherit;font-size:1rem; }
.onboarding-geography [data-geography-hierarchy] { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px; }
.onboarding-geography [data-geography-choice] { position:relative;display:grid;gap:2px;padding:11px 13px;border:2px solid transparent;border-radius:11px;text-align:left;color:inherit;background:#fff;cursor:pointer; }
.onboarding-geography [data-geography-choice]:hover,.onboarding-geography [data-geography-choice]:focus-visible { border-color:#9fbaa5; }
.onboarding-geography [data-geography-choice].selected { border-color:var(--primary-green);background:#f8fcf7;box-shadow:0 0 0 2px rgba(49,91,59,.09); }
.onboarding-geography [data-geography-choice].selected::after { content:"✓";position:absolute;right:10px;top:9px;color:var(--primary-green);font-weight:900; }
.onboarding-geography small { color:var(--muted); }
.onboarding-market-dates,.onboarding-shop-types { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.onboarding-shop-types label,.onboarding-other-category,.onboarding-primary-category label { display:flex!important;align-items:center;gap:9px;min-width:0;cursor:pointer; }
.onboarding-shop-types input[type="checkbox"],.onboarding-other-category input[type="checkbox"],.onboarding-primary-category input[type="radio"] { flex:0 0 18px;width:18px;height:18px;margin:0;padding:0;accent-color:var(--primary-green); }
.onboarding-other-category { display:flex!important;grid-template-columns:none!important;align-items:center;gap:8px;margin-top:12px; }
.onboarding-step .onboarding-primary-category { margin-top:28px;padding-top:0;border:0; }
.onboarding-primary-category p { margin:0 0 10px; }
.onboarding-primary-category [data-primary-category-options] { display:grid;gap:9px; }
.onboarding-fulfilment-options { display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important; }
.onboarding-fulfilment-options legend,.onboarding-fulfilment-options p { grid-column:1/-1; }
.onboarding-fulfilment-options label { display:flex;align-items:center;gap:9px; }
.onboarding-fulfilment-options input[type="checkbox"] { flex:0 0 18px;width:18px;height:18px;margin:0;padding:0;accent-color:var(--primary-green); }
.onboarding-links { display:grid;gap:13px; }
.onboarding-link-row { display:grid;grid-template-columns:minmax(130px,.7fr) minmax(0,1.5fr) auto;align-items:center;gap:10px; }
.onboarding-link-row label { margin:0; }
.onboarding-link-preset { align-self:center; }
.onboarding-link-name { display:grid;gap:6px; }
.onboarding-link-address { width:100%; }
.onboarding-link-row .text-button { margin:0; }
.onboarding-add-link { justify-self:start; }
.onboarding-branding-grid { display:grid;gap:22px; }
.onboarding-upload,.onboarding-banner-upload { display:grid!important;justify-items:start;gap:12px!important; }
.onboarding-upload { cursor:pointer; }
.onboarding-upload>strong { font-size:1.05rem; }
.onboarding-banner-upload>strong { font-size:1.05rem; }
.onboarding-logo-preview { display:grid;overflow:hidden;place-items:center;border:2px dashed #b7c7b8;background:#f4f7f2; }
.onboarding-logo-preview { width:150px;height:150px;border-radius:50%; }
.onboarding-logo-preview img { width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none; }
.onboarding-logo-preview img:not([data-logo-placeholder]) { transform:translate(calc((var(--logo-position-x,50) - 50) * 1%),calc((var(--logo-position-y,50) - 50) * 1%)) scale(calc(var(--logo-scale,100) / 100)); }
.onboarding-logo-preview[tabindex="0"] { cursor:grab;touch-action:none; }
.onboarding-logo-preview.is-dragging { cursor:grabbing; }
.onboarding-image-position-controls { display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:12px;width:100%; }
.onboarding-image-position-controls label { display:grid;gap:5px; }
.onboarding-image-position-controls[hidden] { display:none; }
.onboarding-banner-file-button { cursor:pointer; }
@media(max-width:720px){.onboarding-image-position-controls{grid-template-columns:1fr}}
.shop-external-links { display:flex;flex-wrap:wrap;gap:8px;margin-top:12px; }
.seller-onboarding-page .opening-hours-help-trigger { cursor:pointer; }
.onboarding-step [data-other-business-category] { display:grid;gap:8px;margin-top:12px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#f8faf7; }
.onboarding-step [data-other-business-category][hidden] { display:none; }
.onboarding-status { min-height:24px;color:#8a3c28; }
@media(max-width:620px){.seller-onboarding-shell{margin-top:22px}.seller-onboarding-progress{gap:1px}.seller-onboarding-progress span{font-size:.58rem}.seller-onboarding-progress i{width:34px;height:34px}.seller-onboarding-progress::before,.seller-onboarding-progress::after{top:16px}.onboarding-location-types,.onboarding-market-dates,.onboarding-shop-types,.onboarding-geography [data-geography-hierarchy],.onboarding-link-row{grid-template-columns:1fr}.onboarding-link-row .text-button{justify-self:start;margin:0}.onboarding-step footer{align-items:stretch;flex-direction:column-reverse}.onboarding-step footer button{width:100%}}
.getting-started-card { position:relative;display:grid;gap:14px;padding:18px 20px;border:1px solid #cadbc4;border-radius:14px;background:#f3f8ef; }
.getting-started-card h2 { margin:3px 35px 0 0;font-size:1.05rem; }
.getting-started-card>.dialog-close { position:absolute;right:12px;top:10px; }
.getting-started-card ul { display:flex;flex-wrap:wrap;gap:9px 18px;margin:0;padding:0;list-style:none; }
.getting-started-card li { display:flex;align-items:center;gap:6px;color:var(--green); }
.getting-started-card li.complete { color:var(--muted); }
.getting-started-card li button { padding:0;border:0;text-decoration:underline;color:inherit;background:none;cursor:pointer; }
.getting-started-card li:has(small) { align-items:baseline; }
.getting-started-card li small { display:block;color:var(--muted); }
@media(max-width:700px){.category-picker-options,.attribute-picker-groups{grid-template-columns:1fr}.taxonomy-chip{max-width:100%}.taxonomy-chip button{flex:0 0 auto}}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto auto auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 248, 0.94);
  border-bottom: 1px solid rgba(220, 229, 222, 0.8);
  backdrop-filter: blur(16px);
}

.header-favourites,
.favourite-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 9px;
  color: var(--leaf-dark);
  background: white;
  cursor: pointer;
}

.header-favourites svg,
.favourite-button svg { width: 100%; height: 100%; fill: transparent; stroke: currentColor; stroke-width: 1.8; }
.header-favourites:hover svg,
.header-favourites:focus-visible svg,
.favourite-button:hover svg,
.favourite-button:focus-visible svg,
.favourite-button.is-favourite svg { fill: #b83a51; stroke: #b83a51; }
.favourite-button:disabled { cursor: wait; opacity: 0.6; }
.product-card > .favourite-button,
.nearby-shop-card > .favourite-button,
.compact-product > .favourite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
}
.nearby-shop-card { position: relative; }
.compact-product { position: relative; }
.shop-profile-summary > .favourite-button { align-self: start; }
.detail-copy > .favourite-button { margin-bottom: 10px; }

.favourites-page { display: grid; gap: 36px; width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 56px 0 80px; }
.favourites-page section { display: grid; gap: 18px; }
.favourites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.favourite-marketplace-card { width: 100%; }
.favourites-grid .nearby-shop-card { flex-basis: auto; }
.favourites-empty { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--line); border-radius: 10px; background: var(--soft); }
.favourites-status { color: var(--muted); }

.brand img {
  width: 116px;
  height: 48px;
  object-fit: cover;
  object-position: center 45%;
}

.header-search {
  display: grid;
  grid-template-columns: 1fr auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  overflow: hidden;
}

.header-search input {
  min-width: 0;
  border: 0;
  padding: 12px 16px;
  background: transparent;
}

.header-search button,
.primary-action,
.secondary-action,
.input-row button,
.assistant-card button {
  border: 1px solid var(--leaf);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.header-search button {
  margin: 4px 14px 4px 4px;
  padding: 8px 16px;
  color: white;
  background: var(--leaf);
}

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 750;
}

.nav-links a {
  padding: 6px;
  border-radius: 6px;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--leaf-dark);
  background: white;
  box-shadow: 0 7px 16px rgba(16, 37, 29, 0.12);
  transform: translateY(-2px);
}

button:not(.product-image-link):not(.compact-product-image-link):not(.product-title-link):not(.compact-product-title-link):not(.store-name-link):not(:disabled),
.primary-action,
.secondary-action,
.profile-actions a,
.account-summary-actions a {
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

button:not(.product-image-link):not(.compact-product-image-link):not(.product-title-link):not(.compact-product-title-link):not(.store-name-link):not(:disabled):not(.basket-item-controls button):hover,
button:not(.product-image-link):not(.compact-product-image-link):not(.product-title-link):not(.compact-product-title-link):not(.store-name-link):not(:disabled):not(.basket-item-controls button):focus-visible,
.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible,
.profile-actions a:hover,
.profile-actions a:focus-visible,
.account-summary-actions a:hover,
.account-summary-actions a:focus-visible {
  border-color: #2d6e36;
  box-shadow: 0 8px 18px rgba(16, 37, 29, 0.15);
  transform: translateY(-2px);
}

button:not(:disabled):active,
.primary-action:active,
.secondary-action:active,
.profile-actions a:active,
.account-summary-actions a:active,
.nav-links a:active {
  box-shadow: 0 3px 8px rgba(16, 37, 29, 0.1);
  transform: translateY(0);
}

.auth-state-pending #openAccount {
  min-width: 64px;
  color: transparent;
  pointer-events: none;
  position: relative;
}

.auth-state-pending #openAccount::after {
  content: "";
  position: absolute;
  inset: 50% 12px auto;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf3eb, #dfe9dd, #edf3eb);
  transform: translateY(-50%);
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--leaf-dark);
  cursor: pointer;
  font-weight: 900;
}

.account-button {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--leaf-dark);
  border-radius: 8px;
  color: var(--leaf-dark);
  background: white;
  cursor: pointer;
  font-weight: 850;
}

.account-menu .account-button[data-order-alert-count]::before {
  position: absolute;
  top: -9px;
  right: -9px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  box-sizing: border-box;
  padding: 0;
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  background: #c83f35;
  content: attr(data-order-alert-count);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.account-button:focus-visible {
  border-color: var(--leaf-dark);
  outline: 3px solid rgba(57, 127, 56, 0.2);
  outline-offset: 2px;
}

.account-menu {
  position: relative;
  z-index: 30;
}

.account-menu .account-button[data-menu-enabled="true"]::after {
  width: 7px;
  height: 7px;
  margin: -4px 0 0 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease, margin 160ms ease;
}

.account-menu .account-button[data-menu-enabled="true"][aria-expanded="true"]::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 34px rgba(16, 37, 29, 0.16);
}

.account-menu-panel a,
.account-menu-panel button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.seller-admin-header-actions .account-menu-panel a,
.seller-admin-header-actions .account-menu-panel button {
  color: var(--ink);
}

.account-menu-panel a:hover,
.account-menu-panel a:focus-visible,
.account-menu-panel button:hover,
.account-menu-panel button:focus-visible {
  color: var(--leaf-dark);
  background: var(--soft);
  box-shadow: none;
  transform: none;
}

.account-menu-panel a[data-order-alert-count]::after {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  box-sizing: border-box;
  margin-left: auto;
  border-radius: 50%;
  color: white;
  background: #c83f35;
  content: attr(data-order-alert-count);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.account-menu-panel a[data-customer-order-alert-count]::after,
.account-section-nav a[data-customer-order-alert-count]::after {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  margin-left: auto;
  border-radius: 50%;
  color: white;
  background: #c83f35;
  content: attr(data-customer-order-alert-count);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.basket-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--leaf-dark);
  background: white;
  cursor: pointer;
}

.basket-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.basket-count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  background: var(--leaf);
  font-size: 0.7rem;
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  min-height: min(720px, calc(100vh - 78px));
  padding: clamp(28px, 5vw, 70px) clamp(18px, 4vw, 56px) 0;
  background: linear-gradient(90deg, #f8f7ef 0%, #f8f7ef 45%, #e6efe1 100%);
  overflow: hidden;
}

/* Keep the welcome hero and shortcuts hidden across responsive layout overrides. */
html.marketplace-hero-dismissed body #marketplaceHero,
html.marketplace-hero-dismissed body .discovery-strip,
html.marketplace-session-cached body #marketplaceHero,
html.marketplace-session-cached body .discovery-strip,
body.marketplace-user-signed-in #marketplaceHero,
body.marketplace-user-signed-in .discovery-strip {
  display: none !important;
}

.marketplace-session-cached #marketplaceHero,
.marketplace-session-cached #marketplaceQuickStart,
.marketplace-user-signed-in #marketplaceHero,
.marketplace-user-signed-in #marketplaceQuickStart {
  display: none;
}

.hero-copy {
  align-self: center;
  max-width: 620px;
  padding-bottom: clamp(32px, 7vw, 92px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 58ch;
  color: #33413a;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.primary-action {
  color: white;
  background: var(--leaf);
}

.secondary-action {
  background: transparent;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
}

.hero-media {
  position: relative;
  min-height: 430px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: 8px 0 0 0;
}

.hero-badge {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  bottom: clamp(16px, 4vw, 48px);
  display: grid;
  gap: 4px;
  width: 150px;
  min-height: 150px;
  place-items: center;
  padding: 22px;
  color: white;
  text-align: center;
  background: var(--leaf);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.hero-badge strong {
  font-size: 1.18rem;
}

.hero-badge span {
  font-size: 0.8rem;
  font-weight: 800;
}

.quick-start {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 1px clamp(18px, 4vw, 56px);
  background: var(--line);
}

.quick-start article {
  min-height: 150px;
  padding: 28px;
  background: #f1f7ec;
}

.quick-start span {
  color: var(--leaf);
  font-weight: 900;
}

.quick-start h2 {
  margin: 10px 0 6px;
  font-size: 1.08rem;
}

.quick-start p {
  margin-bottom: 0;
  color: var(--muted);
}

.marketplace,
.nearby-shops-section,
.assistant-section,
.seller-section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.marketplace {
  scroll-margin-top: 96px;
}

.marketplace-user-signed-in .marketplace {
  padding-top: 32px;
}

.nearby-shops-section {
  scroll-margin-top: 96px;
  background: #f1f7ec;
}

.nearby-shops-heading h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.shop-carousel-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.shop-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 420px) auto;
  gap: 8px 18px;
  align-items: end;
  margin-bottom: 10px;
}

.shop-filter-bar > label:first-child {
  grid-column: 1;
  font-weight: 800;
}

.shop-filter-bar input[type="search"] {
  grid-column: 1;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
}

.shop-open-now {
  grid-column: 2;
  grid-row: 2;
  display: inline-flex;
  gap: 8px;
  min-height: 44px;
  align-items: center;
  font-weight: 800;
}

.shop-result-summary {
  min-height: 1.4em;
  margin: 0 0 12px;
  color: var(--muted);
}

.shop-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 3px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.shop-carousel:focus-visible {
  outline: 3px solid #85a989;
  outline-offset: 4px;
}

.nearby-shop-card {
  flex: 0 0 clamp(250px, 24vw, 330px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 30px rgba(16, 37, 29, 0.08);
  scroll-snap-align: start;
}

.nearby-shop-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.nearby-shop-card-link:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: -3px;
}

.nearby-shop-image {
  position: relative;
  min-height: 150px;
  color: rgba(49, 91, 59, 0.45);
  background: linear-gradient(135deg, #dcebd9, #f5ead2);
}

.nearby-shop-image > img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.nearby-shop-image > span:not(.nearby-shop-logo) {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.nearby-shop-logo {
  position: absolute;
  bottom: -24px;
  left: 18px;
  width: 108px;
  height: 108px;
  border: 3px solid white;
  box-shadow: 0 5px 16px rgba(16, 37, 29, 0.18);
}

.nearby-shop-body {
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 34px 18px 18px;
}

.nearby-shop-body h3,
.nearby-shop-body p { margin: 0; }
.nearby-shop-body p { color: var(--muted); }
.nearby-shop-action { margin-top: auto; color: var(--leaf-dark); font-weight: 900; }
.shop-carousel-state { min-width: 100%; padding: 34px; border: 1px solid var(--line); border-radius: 8px; text-align: center; background: white; }
.shop-carousel-state p { margin-bottom: 0; color: var(--muted); }
.product-carousel-state { box-sizing: border-box; flex: 0 0 100%; }
.shop-card-skeleton { min-height: 320px; pointer-events: none; }
.shop-card-skeleton .nearby-shop-image,
.shop-card-skeleton .nearby-shop-body { background: linear-gradient(90deg, #e8eee6 25%, #f5f8f4 50%, #e8eee6 75%); background-size: 200% 100%; animation: shop-loading 1.4s infinite; }
@keyframes shop-loading { to { background-position: -200% 0; } }
.shop-carousel-shell .carousel-arrow:disabled { opacity: 0.35; cursor: default; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}

.section-heading h2,
.assistant-copy h2,
.seller-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.assistant-copy p:not(.eyebrow),
.seller-copy p:not(.eyebrow) {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--muted);
}

.marketplace .section-heading {
  grid-template-columns: 1fr;
}

.marketplace .section-heading h2 {
  white-space: nowrap;
}

.seller-cta {
  display: block;
  width: fit-content;
  margin: 32px auto 0;
  padding: 12px 20px;
}

.market-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.filter-card,
.assistant-card,
.seller-workflows article,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 30px rgba(16, 37, 29, 0.05);
}

.filter-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.filter-card-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.filter-card h3,
.seller-workflows h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.filter-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.filter-actions button {
  border: 1px solid #c8d8cc;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--leaf-dark);
  background: #f7fbf6;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
}

.filter-actions button:hover {
  border-color: #9cb89f;
  box-shadow: 0 8px 18px rgba(16, 37, 29, 0.1);
  transform: translateY(-1px);
}

.filter-card label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #34443c;
  font-size: 0.84rem;
}

.filter-card input[type="text"],
.assistant-card input,
.assistant-card select,
.results-toolbar select,
.location-dialog input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
}

.form-note,
.location-status {
  margin: -2px 0 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.location-status {
  min-height: 1.2em;
  margin-top: 8px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.input-row button {
  padding: 0 12px;
  color: white;
  background: var(--leaf-dark);
}

input[type="range"] {
  accent-color: var(--leaf);
}

.results-panel {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.results-toolbar span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.homepage-catalogue-source {
  display: none;
}

.popular-products-heading {
  display: flex;
}

.popular-products-heading h2 {
  white-space: normal;
}

.view-all-products {
  flex: 0 0 auto;
  color: var(--leaf-dark);
  font-weight: 800;
  text-decoration: none;
}

.view-all-products:hover,
.view-all-products:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-carousel-shell {
  position: relative;
}

.popular-product-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(205px, calc((100% - 54px) / 4));
  grid-template-columns: none;
  overflow-x: auto;
  padding: 4px 2px 20px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.popular-product-carousel::-webkit-scrollbar {
  display: none;
}

.popular-product-carousel .product-card {
  scroll-snap-align: start;
}

.product-carousel-shell .carousel-arrow.previous {
  left: -23px;
}

.product-carousel-shell .carousel-arrow.next {
  right: -23px;
}

.products-catalogue-page #marketplaceHero,
.products-catalogue-page .discovery-strip,
.products-catalogue-page #marketplaceQuickStart,
.products-catalogue-page .nearby-shops-section,
.products-catalogue-page .assistant-section,
.products-catalogue-page .seller-section {
  display: none;
}

.products-catalogue-page #marketplace {
  margin-top: 0;
  padding-top: 24px;
}

@media (max-width: 900px) {
  .popular-product-carousel {
    grid-auto-columns: minmax(190px, calc((100% - 20px) / 2));
  }
}

@media (max-width: 560px) {
  .popular-products-heading {
    gap: 12px;
  }

  .view-all-products {
    font-size: .86rem;
  }

  .popular-product-carousel {
    grid-auto-columns: minmax(170px, 82%);
  }
}

.product-card {
  position: relative;
  z-index: 0;
  isolation: isolate;
  container-type: inline-size;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  backface-visibility: hidden;
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.product-card:focus-within {
  z-index: 1;
  transform: translateY(-5px);
  border-color: #bfd0c3;
  box-shadow: 0 18px 38px rgba(16, 37, 29, 0.14);
}

.product-image-link {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--soft);
  cursor: pointer;
}

.product-card img {
  width: 100%;
  aspect-ratio: 13 / 10;
  object-fit: cover;
  background: var(--soft);
  transition: transform 240ms ease;
}

.product-card:hover .product-image-link img,
.product-card:focus-within .product-image-link img {
  transform: scale(1.035);
}

.product-variant-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 4px 8px;
  color: white;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(13, 59, 40, 0.92);
  box-shadow: 0 3px 10px rgba(16, 37, 29, 0.28);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
  pointer-events: none;
}

.product-body {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 6px;
  padding: 10px 12px;
  line-height: 1.25;
}

.product-meta,
.fulfilment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.product-meta {
  min-width: 0;
  gap: 6px;
}

.product-title-link {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 1.25em;
  border: 0;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.25;
}

.product-title-link > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-title-link:hover,
.product-title-link:focus-visible,
.store-name-link:hover,
.store-name-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.price {
  color: var(--leaf-dark);
  font-size: 0.92rem;
  font-weight: 900;
}

.product-card-footer {
  display: flex;
  min-width: 0;
  gap: 5px 10px;
  align-items: baseline;
  justify-content: space-between;
  align-self: end;
  flex-wrap: wrap;
  padding-top: 3px;
}

.product-card-footer .price,
.product-card-footer .stock {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-card-footer .stock {
  margin-left: auto;
  font-size: 0.78rem;
  text-align: right;
  white-space: nowrap;
}

.stock-nearby-compact {
  display: none;
}

@container (max-width: 280px) {
  .product-card-footer .stock-nearby-full {
    display: none;
  }

  .product-card-footer .stock-nearby-compact {
    display: inline;
  }
}

.store-name,
.store-name-link {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.store-line > span:last-child {
  white-space: nowrap;
}

.offer-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.offer-summary span + span::before {
  content: "· ";
}

.store-name-link {
  border: 0;
  padding: 0;
  color: var(--muted);
  text-decoration: none;
  text-align: left;
  background: transparent;
  cursor: pointer;
  font-weight: 750;
}

.shop-logo-lockup {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.shop-logo-lockup > span:last-child:not(.shop-logo-mark) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-logo-mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(49, 91, 59, 0.18);
  border-radius: 50%;
  color: transparent;
  background: #eef6ec url("assets/shop-logo-placeholder.png") center / cover no-repeat;
  font-size: 0.82rem;
  font-weight: 900;
}

.shop-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Override the shared 34px logo size for Marketplace shop cards. */
.shop-logo-mark.nearby-shop-logo {
  width: 108px;
  height: 108px;
}

.shop-logo-mark.large {
  width: 64px;
  height: 64px;
  font-size: 1.45rem;
}

.tag {
  padding: 5px 8px;
  color: #2d4638;
  border-radius: 999px;
  background: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.fulfilment-tags .tag {
  white-space: nowrap;
}

.stock {
  color: var(--leaf);
  font-weight: 900;
}

.assistant-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  background: var(--sky);
}

.assistant-card {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 3vw, 28px);
}

.assistant-card button {
  min-height: 46px;
  color: white;
  background: var(--leaf);
}

.suggestions {
  display: grid;
  gap: 10px;
}

.suggestion {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.suggestion strong {
  display: block;
}

.suggestion span {
  color: var(--muted);
  font-size: 0.9rem;
}

.seller-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 32px;
  background: #fffaf0;
}

.seller-workflows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.seller-workflows article {
  min-height: 170px;
  padding: 22px;
  border-top: 5px solid var(--leaf);
}

.seller-workflows article:nth-child(2) {
  border-top-color: var(--sun);
}

.seller-workflows article:nth-child(3) {
  border-top-color: var(--rose);
}

.seller-workflows article:nth-child(4) {
  border-top-color: #4f8aa0;
}

.seller-workflows p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px clamp(24px, 4vw, 64px);
  align-items: center;
  padding: 20px clamp(18px, 4vw, 56px);
  color: white;
  background: var(--leaf-dark);
  font-size: 0.875rem;
  line-height: 1.5;
}

.site-footer > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.site-footer strong {
  font-size: 1rem;
}

.footer-legal-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0 clamp(20px, 3vw, 44px);
  align-items: start;
  justify-self: start;
  min-width: 0;
}

.footer-link-column {
  display: grid;
  align-content: start;
  min-width: 0;
}

.footer-back-link {
  justify-self: end;
  white-space: nowrap;
}

.site-footer span {
  color: #cfe2d6;
}

.footer-copyright {
  margin-top: 3px;
  color: #cfe2d6;
  font-size: 0.75rem;
  line-height: 1.5;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-block: 4px;
  color: white;
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:focus-visible,
.legal-page a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.site-header [aria-current="page"],
.site-footer [aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.about-intro,
.about-story,
.about-impact,
.about-mission {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
  background: white;
}

.about-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}

.about-intro h2,
.about-story h2,
.about-impact h2,
.about-mission h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1;
}

.about-intro > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: center;
}

.about-story:nth-of-type(even) {
  background: #f1f7ec;
}

.about-story-media {
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-story-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.about-story-media-tall {
  min-height: 500px;
}

.about-story-copy {
  max-width: 620px;
}

.about-story-copy > p:not(.eyebrow) {
  color: #33413a;
  font-size: 1.02rem;
}

.about-points {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.about-points li {
  position: relative;
  padding-left: 26px;
  color: var(--leaf-dark);
  font-weight: 800;
}

.about-points li::before {
  position: absolute;
  top: 0.34em;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--leaf);
  content: "";
}

.about-impact {
  color: white;
  background: var(--leaf-dark);
}

.about-impact .eyebrow {
  color: #9ecf9b;
}

.about-impact-heading {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 7vw, 100px);
  align-items: end;
  margin-bottom: clamp(34px, 6vw, 64px);
}

.about-impact-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}

.about-impact-heading h2,
.about-impact-heading p {
  margin-bottom: 0;
}

.about-impact-heading p {
  color: #cfe2d6;
}

.about-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.about-impact-grid article {
  padding: clamp(22px, 4vw, 36px);
  background: #164b35;
}

.about-impact-grid span {
  color: #9ecf9b;
  font-weight: 900;
}

.about-impact-grid h3 {
  margin: 20px 0 8px;
}

.about-impact-grid p {
  margin-bottom: 0;
  color: #cfe2d6;
}

.about-mission {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
  background: var(--sky);
}

.about-mission blockquote {
  margin: 0;
  color: var(--leaf-dark);
  font-size: clamp(1.45rem, 3vw, 2.7rem);
  font-weight: 850;
  line-height: 1.18;
}

.about-mission .primary-action {
  grid-column: 2;
  justify-self: start;
}

.legal-page {
  padding: clamp(42px, 7vw, 76px) clamp(18px, 4vw, 56px);
  background: #f7faf6;
}

.legal-hero,
.legal-content {
  width: min(860px, 100%);
  margin: 0 auto;
}

.legal-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.legal-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  max-width: none;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.legal-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.legal-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 42px);
  background: white;
  box-shadow: 0 18px 48px rgba(16, 37, 29, 0.08);
}

.legal-section + .legal-section {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.legal-content h2,
.legal-content h3 {
  margin: 0 0 18px;
  color: var(--leaf-dark);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.35;
  scroll-margin-top: 120px;
}

.legal-content h3 {
  margin-top: 24px;
  font-size: 1.1rem;
}

.legal-content p,
.legal-content li,
.legal-content address {
  color: #34443c;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.legal-content p,
.legal-content address {
  margin: 0 0 18px;
}

.legal-content address {
  font-style: normal;
}

.legal-section > :last-child {
  margin-bottom: 0;
}

.legal-content a {
  color: var(--leaf-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 22px;
}

.privacy-controls {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.privacy-controls[hidden] {
  display: none;
}

.privacy-controls label {
  display: flex;
  align-items: start;
  gap: 10px;
  line-height: 1.6;
}

.privacy-controls input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--leaf-dark);
}

.privacy-controls button {
  max-width: 100%;
  min-height: 44px;
  border: 1px solid var(--leaf-dark);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--leaf-dark);
  background: white;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.privacy-controls :is(input, button):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.privacy-controls p:empty {
  display: none;
}

@media (max-width: 820px) {
  .site-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 20px;
    align-items: start;
  }

  .footer-legal-links {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: stretch;
    column-gap: 20px;
  }

  .footer-back-link {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
}

.location-dialog {
  width: min(460px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.location-dialog form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.location-radius-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: center;
  padding: 14px;
  border-radius: 10px;
  background: #fff6ea;
}

.location-radius-control label {
  font-weight: 800;
}

.location-radius-control output {
  color: var(--leaf-dark);
  font-weight: 850;
}

.location-radius-control input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  margin: 2px 0 0;
}

.location-dialog::backdrop {
  background: rgba(16, 37, 29, 0.32);
}

.location-dialog menu {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 8px 0 0;
  padding: 0;
}

.location-dialog button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--leaf);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-weight: 800;
}

.location-dialog button:last-child {
  color: white;
  background: var(--leaf);
}

.account-dialog,
.shop-access-dialog {
  width: min(520px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.account-dialog::backdrop,
.shop-access-dialog::backdrop {
  background: rgba(16, 37, 29, 0.42);
}

.account-dialog-inner,
.shop-access-dialog-inner {
  position: relative;
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(22px, 4vw, 34px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--soft);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.dialog-close:hover {
  background: #e8eee8;
}

.dialog-close:focus-visible {
  outline: 3px solid rgba(57, 127, 56, 0.2);
  outline-offset: 2px;
}

.account-dialog h2 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: 2rem;
  line-height: 1.05;
}

.shop-access-dialog h2 {
  margin: 0 0 14px;
  font-size: 1.8rem;
  line-height: 1.08;
}

.shop-access-dialog-inner {
  display: grid;
  gap: 18px;
}

.shop-access-dialog-inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.shop-access-dialog-inner strong {
  color: var(--ink);
}

.shop-access-dialog-inner .primary-action {
  justify-self: end;
  min-width: 92px;
}

.account-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 8px;
  background: var(--soft);
}

.account-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.account-tabs button.active {
  color: white;
  background: var(--leaf-dark);
}

.account-form,
.account-summary {
  display: grid;
  gap: 11px;
}

.account-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
}

.account-help a {
  color: var(--primary-green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-help a:hover,
.account-help a:focus-visible {
  color: var(--dark-green);
}

.account-help a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

.account-form > button,
.account-summary > button {
  min-height: 44px;
  border: 1px solid var(--leaf);
  border-radius: 8px;
  color: white;
  background: var(--leaf);
  cursor: pointer;
  font-weight: 850;
}

.account-roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.account-roles legend {
  padding: 0 4px;
  font-weight: 800;
}

.account-roles label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.account-roles input {
  width: auto;
}

.account-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
}

.account-status:empty {
  display: none;
}

.account-summary .primary-action {
  width: fit-content;
}

.account-summary p {
  color: var(--muted);
}

.account-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-summary-actions .primary-action,
.account-summary-actions button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--leaf);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.account-summary-actions .primary-action {
  display: inline-flex;
  align-items: center;
  color: white;
  background: var(--leaf);
}

.account-summary-actions button {
  color: var(--leaf-dark);
  background: white;
}

.profile-page-header {
  grid-template-columns: auto 1fr auto auto auto auto;
}

.profile-page {
  min-height: calc(100vh - 78px);
  padding: clamp(44px, 7vw, 84px) clamp(18px, 6vw, 88px);
  background: #f7faf7;
}

.shop-page {
  min-height: calc(100vh - 78px);
  padding: clamp(16px, 3vw, 30px) clamp(18px, 6vw, 88px) clamp(34px, 6vw, 70px);
  background: #f7faf7;
}

.product-page {
  min-height: calc(100vh - 78px);
  padding: clamp(34px, 6vw, 70px) clamp(18px, 6vw, 88px);
  background: #f7faf7;
}

.shop-page-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.product-page-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.product-page-status {
  min-height: 1.3em;
  margin: -4px 0 0;
  color: var(--muted);
}

.profile-shell {
  width: min(920px, 100%);
}

.profile-heading {
  margin-bottom: 36px;
}

.profile-heading h1 {
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.profile-heading > p:last-child,
.profile-signed-out p {
  color: var(--muted);
}

.profile-details {
  border-top: 1px solid var(--line);
}

.profile-detail-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.profile-detail-row > span:first-child {
  color: var(--muted);
  font-weight: 750;
}

.profile-inline-action {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.profile-inline-action button,
.profile-inline-action a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--leaf);
  border-radius: 8px;
  color: var(--leaf-dark);
  background: white;
  cursor: pointer;
  font-weight: 850;
}

.profile-inline-action a {
  color: white;
  background: var(--leaf);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.profile-actions a,
.profile-actions button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--leaf);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.profile-actions .primary-action {
  color: white;
  background: var(--leaf);
}

.profile-actions button {
  color: var(--leaf-dark);
  background: white;
}

.profile-security {
  display: grid;
  grid-template-columns: minmax(190px, 0.36fr) minmax(320px, 0.64fr);
  gap: clamp(28px, 7vw, 84px);
  margin-top: 56px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-security-heading h2 {
  margin: 0 0 5px;
  font-size: 1.3rem;
}

.profile-security-heading p {
  margin: 0;
  color: var(--muted);
}

.password-change-form {
  display: grid;
  gap: 8px;
}

.password-change-form label {
  margin-top: 7px;
  color: #34443c;
  font-size: 0.86rem;
  font-weight: 750;
}

.password-change-form label:first-child {
  margin-top: 0;
}

.password-change-form input {
  width: 100%;
  border: 1px solid #cfd9d1;
  border-radius: 7px;
  padding: 10px 12px;
  background: white;
}

.password-change-form input:focus {
  border-color: #79a17f;
  outline: 3px solid rgba(57, 127, 56, 0.12);
}

.password-change-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}

.password-change-actions button {
  min-height: 42px;
  border: 1px solid var(--leaf);
  border-radius: 7px;
  padding: 0 15px;
  color: white;
  background: var(--leaf);
  cursor: pointer;
  font-weight: 850;
}

.password-change-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.password-change-actions .account-status {
  margin: 0;
}

.profile-danger-zone {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #e3c4bf;
  border-radius: 10px;
  background: #fffafa;
}

.profile-danger-zone h2 {
  margin-bottom: 4px;
  font-size: 1.3rem;
}

.profile-danger-zone p,
.delete-account-dialog p,
.seller-setup-dialog p {
  color: var(--muted);
}

.profile-danger-zone button,
.delete-account-actions button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #a33c35;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.profile-danger-zone button,
.delete-account-actions button:last-child {
  color: white;
  background: #a33c35;
}

.delete-account-actions button.seller-setup-confirm,
.delete-account-actions button.seller-setup-confirm:last-child {
  color: white;
  border-color: var(--leaf);
  background: var(--leaf);
}

.delete-account-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.delete-account-actions button:first-child {
  color: var(--leaf-dark);
  border-color: var(--line);
  background: white;
}

.delete-account-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.delete-account-dialog {
  width: min(680px, calc(100% - 28px));
}

.delete-account-dialog h2 {
  max-width: none;
  margin: 0 44px 12px 0;
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.delete-account-dialog h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.delete-account-dialog .eyebrow {
  margin: 0 0 8px;
}

.delete-consequence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.delete-consequence-grid section {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e3c4bf;
  border-radius: 9px;
  background: #fff4f2;
}

.delete-consequence-grid ul,
.delete-owner-conflict ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.delete-consequence-grid li + li {
  margin-top: 7px;
}

.delete-verification-field {
  margin-top: 16px;
}

.delete-verification-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.delete-verification-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd9d1;
  border-radius: 9px;
  padding: 10px 12px;
  background: white;
  font: inherit;
}

.delete-verification-field input:focus {
  border-color: #9d554e;
  outline: 3px solid rgba(163, 60, 53, 0.12);
}

.delete-verification-field input[aria-invalid="true"] {
  border-color: #a33c35;
}

.delete-owner-conflict {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid #a33c35;
  border-radius: 6px;
  background: #fff4f2;
}

.delete-owner-conflict p {
  margin: 5px 0 8px;
}

.basket-page-header {
  grid-template-columns: auto 1fr auto auto auto;
}

.basket-page {
  min-height: calc(100vh - 78px);
  padding: clamp(48px, 8vw, 90px) clamp(18px, 5vw, 72px);
  background: #f7faf7;
}

.basket-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.basket-heading h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.basket-heading > p:not(.eyebrow) {
  color: var(--muted);
}

.basket-empty {
  display: grid;
  max-width: 680px;
  min-height: 280px;
  place-content: center;
  justify-items: center;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  background: white;
}

.basket-empty h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.basket-empty p {
  color: var(--muted);
}

.basket-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.basket-seller-group {
  grid-column: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.basket-seller-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--soft);
}

.basket-seller-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.basket-seller-heading span,
.basket-line-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.basket-seller-link,
.basket-shop-link {
  width: fit-content;
  transition: color 160ms ease;
}

.basket-shop-link {
  color: var(--muted);
  font-size: 0.9rem;
}

.basket-seller-link:hover,
.basket-seller-link:focus-visible,
.basket-shop-link:hover,
.basket-shop-link:focus-visible {
  color: var(--leaf-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.basket-line-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.checkout-collection-group .basket-line-item {
  grid-template-columns: 28px 88px minmax(0, 1fr) auto;
}

.basket-line-selection {
  display: grid;
  width: 28px;
  height: 44px;
  place-items: center;
  cursor: pointer;
}

.basket-line-selection input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--leaf-dark);
  cursor: pointer;
}

.basket-line-deselected .basket-item-image-link,
.basket-line-deselected .basket-item-details,
.basket-line-deselected > strong {
  opacity: 0.58;
}

.basket-line-item img {
  width: 88px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.basket-item-image-link {
  display: block;
  border-radius: 8px;
  transition: box-shadow 160ms ease, outline-color 160ms ease;
}

.basket-item-image-link:hover,
.basket-item-image-link:focus-visible {
  outline: 1px solid #84a98c;
  outline-offset: 2px;
  box-shadow: 0 7px 16px rgba(16, 37, 29, 0.16);
}

.basket-item-title-link {
  width: fit-content;
  color: var(--ink);
  font-weight: 850;
}

.basket-item-title-link:hover,
.basket-item-title-link:focus-visible {
  color: var(--leaf-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.basket-line-item div {
  display: grid;
  gap: 4px;
}

.basket-line-item .basket-item-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 6px;
}

.basket-item-controls label {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.basket-item-controls input {
  width: 64px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  background: white;
}

.basket-item-controls button {
  min-height: 36px;
  border: 0;
  padding: 0;
  color: var(--leaf-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.basket-item-controls .remove-item-button {
  color: #a33c35;
}

.basket-feedback {
  min-height: 0;
  margin: 0;
}

.basket-availability-notice {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #e4c979;
  border-left: 4px solid #b88924;
  border-radius: 6px;
  background: #fff9e8;
}

.basket-availability-notice p {
  margin: 3px 0 0;
  color: #66562d;
}

.basket-availability-notice button {
  min-width: 58px;
  min-height: 38px;
  border: 1px solid #9a741d;
  border-radius: 6px;
  color: #654a0e;
  background: white;
  cursor: pointer;
  font-weight: 850;
}

.saved-for-later {
  margin-top: clamp(42px, 7vw, 72px);
}

.saved-for-later-heading {
  margin-bottom: 18px;
}

.saved-for-later-heading h2 {
  margin-bottom: 6px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.saved-for-later-heading > p:last-child {
  color: var(--muted);
}

.saved-seller-groups {
  display: grid;
  gap: 16px;
  max-width: calc(100% - 298px);
}

.saved-seller-group {
  grid-column: auto;
}

.basket-summary {
  position: sticky;
  top: 96px;
  grid-column: 2;
  grid-row: 1 / span 20;
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.basket-summary strong {
  font-size: 1.3rem;
}

.basket-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.availability-card button,
.text-button {
  min-height: 40px;
  border: 1px solid var(--leaf);
  border-radius: 8px;
  background: white;
  color: var(--leaf-dark);
  cursor: pointer;
  font-weight: 850;
}

.availability-card button {
  color: white;
  background: var(--leaf);
}

@media (prefers-reduced-motion: reduce) {
  .shop-carousel { scroll-behavior: auto; }
  .shop-card-skeleton .nearby-shop-image,
  .shop-card-skeleton .nearby-shop-body { animation: none; }
  .nav-links a,
  button,
  .account-menu .account-button[data-menu-enabled="true"]::after,
  .basket-item-image-link,
  .basket-seller-link,
  .basket-shop-link,
  .primary-action,
  .secondary-action,
  .profile-actions a,
  .account-summary-actions a,
  .product-card,
  .product-card img,
  .compact-product,
  .compact-product img {
    transition: none;
  }

  .product-card:hover,
  .product-card:focus-within,
  .compact-product:hover,
  .compact-product:focus-within,
  .nav-links a:hover,
  .nav-links a:focus-visible,
  button:hover,
  button:focus-visible,
  .primary-action:hover,
  .primary-action:focus-visible,
  .secondary-action:hover,
  .secondary-action:focus-visible,
  .profile-actions a:hover,
  .profile-actions a:focus-visible,
  .account-summary-actions a:hover,
  .account-summary-actions a:focus-visible {
    transform: none;
  }
}

.text-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0 14px;
}

.detail-view {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 56px);
  background: white;
  border-top: 1px solid var(--line);
}

.detail-shell {
  display: grid;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.product-detail {
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr);
  align-items: start;
}

.product-detail > .text-button,
.product-detail > .availability-panel {
  grid-column: 1 / -1;
}

.detail-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.detail-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.product-gallery {
  min-width: 0;
}

.product-gallery-main {
  position: relative;
}

.gallery-arrow {
  position: absolute;
  display: grid;
  top: 50%;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(20, 42, 31, 0.18);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(20, 42, 31, 0.16);
  font-size: 0;
}

.gallery-arrow::before {
  content: "";
  position: relative;
  top: 6px;
  width: 16px;
  height: 16px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

.gallery-arrow-previous { left: 12px; }
.gallery-arrow-previous::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10.5 2.5 5 8l5.5 5.5' fill='none' stroke='%2310251d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.gallery-arrow-next { right: 12px; }
.gallery-arrow-next::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m5.5 2.5 5.5 5.5-5.5 5.5' fill='none' stroke='%2310251d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible,
.gallery-arrow:active {
  transform: translateY(-50%) !important;
}

.product-gallery-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 2px 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.product-gallery-thumbnail {
  flex: 0 0 68px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 7px;
  background: var(--soft);
  scroll-snap-align: center;
}

.product-gallery-thumbnail.is-active {
  border-color: var(--leaf-dark);
}

.product-gallery-thumbnail:hover,
.product-gallery-thumbnail:focus-visible,
.product-gallery-thumbnail:active {
  transform: none !important;
}

.product-gallery-thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.detail-copy {
  display: grid;
  gap: 12px;
}

.detail-copy h2,
.seller-profile h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.detail-copy p,
.seller-profile p {
  color: var(--muted);
}

.detail-price {
  color: var(--leaf-dark);
  font-size: 1.7rem;
}

.product-variant-selectors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.product-variant-selector {
  display: grid;
  gap: 7px;
  max-width: 340px;
  min-width: min(220px, 100%);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.product-variant-selector select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-weight: 760;
}

.product-variant-selector option:disabled {
  color: var(--muted);
}

.product-variant-status,
.collection-unavailable-note {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.detail-tags,
.availability-card,
.seller-locations,
.seller-products {
  display: grid;
  gap: 12px;
}

.availability-panel {
  display: grid;
  gap: 14px;
}

.availability-heading {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.availability-controls {
  display: grid;
  min-width: min(240px, 100%);
  gap: 10px;
  justify-items: end;
}

.availability-stock-summary {
  color: var(--leaf-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.availability-open-now {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.availability-heading h2 {
  margin: 0;
}

.availability-location-title {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.inline-location-link {
  border: 0;
  padding: 0;
  color: var(--leaf);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-location-link::before {
  content: "(";
  color: var(--muted);
  text-decoration: none;
}

.inline-location-link::after {
  content: ")";
  color: var(--muted);
  text-decoration: none;
}

.inline-location-link:hover,
.inline-location-link:focus-visible {
  color: var(--leaf-dark);
}

.availability-context {
  max-width: 52rem;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.availability-sort {
  display: grid;
  gap: 6px;
  min-width: 210px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.availability-sort select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  font-weight: 700;
}

.availability-card {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.availability-card div {
  display: grid;
  gap: 5px;
}

.add-basket-row {
  display: grid !important;
  grid-template-columns: auto 74px minmax(132px, auto);
  gap: 8px !important;
  align-items: center;
}

.add-basket-row label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.add-basket-row input {
  min-height: 40px;
  width: 74px;
  border: 1px solid #cbd8ce;
  border-radius: 8px;
  padding: 0 9px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-weight: 760;
}

.availability-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.multiline-copy {
  white-space: normal;
}

.seller-listing-note {
  margin: 4px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf7;
}

.seller-listing-note strong {
  font-size: 0.95rem;
}

.product-level-note {
  margin: 0;
}

.seller-listing-note p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: pre-line;
}

.seller-listing-note-inline {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: pre-line;
}

.seller-detail {
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
}

.shop-profile-hero {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
}

.shop-banner {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(135deg, rgba(239, 246, 237, 0.96), rgba(207, 226, 202, 0.88)),
    radial-gradient(circle at 82% 28%, rgba(85, 141, 72, 0.18), transparent 32%);
}

.shop-banner img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 5 / 1.05;
  object-fit: cover;
}

.shop-banner.is-placeholder::before,
.shop-banner.is-placeholder::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(49, 91, 59, 0.18);
  border-radius: 999px;
}

.shop-banner.is-placeholder::before {
  right: 9%;
  bottom: -44px;
  width: 190px;
  height: 190px;
}

.shop-banner.is-placeholder::after {
  right: 22%;
  top: 34px;
  width: 76px;
  height: 76px;
}

.shop-profile-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 3vw, 26px);
  align-items: start;
  padding: 0 clamp(18px, 4vw, 34px) 26px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: white;
}

.shop-profile-summary .shop-logo-mark.large {
  width: clamp(82px, 10vw, 112px);
  height: clamp(82px, 10vw, 112px);
  margin-top: 24px;
  border: 4px solid white;
  box-shadow: 0 14px 30px rgba(16, 37, 29, 0.16);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.shop-profile-summary > div {
  min-width: 0;
  padding-top: 24px;
}

.shop-profile-summary h1 {
  max-width: none;
  margin-bottom: 8px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
}

.shop-profile-summary p:not(.eyebrow) {
  max-width: 740px;
  color: var(--muted);
}

.shop-profile-summary .secondary-action {
  margin-top: 14px;
}

.shop-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

.shop-profile-meta > span + .rating-anchor::before {
  content: "· ";
  color: var(--muted);
  font-weight: 900;
}

.shop-closure-notice { display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;width:fit-content;margin:0 0 12px;padding:10px 12px;border:1px solid #dfc77f;border-radius:8px;color:#624d12;background:#fff8df; }
.shop-closure-notice span { color:#756331; }
.closed-shop-state { grid-column:1/-1;max-width:720px;margin:clamp(40px,8vw,110px) auto;padding:clamp(28px,5vw,54px);border:1px solid var(--line);border-radius:10px;text-align:center;background:#fff;box-shadow:0 18px 45px rgba(16,37,29,.08); }
.closed-shop-state h1 { margin:8px 0 12px;font-size:clamp(2rem,5vw,3.8rem); }
.closed-shop-state p:not(.eyebrow) { margin:0 auto 24px;color:var(--muted); }

.shop-rating {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.shop-rating-stars {
  font-size: 0.95rem;
  line-height: 1;
  position: relative;
  display: inline-block;
}

.shop-rating .shop-rating-empty {
  color: #c9d1c3;
}

.shop-rating .shop-rating-fill {
  color: #d99a21;
  inset: 0 auto 0 0;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

.rating-anchor {
  display: inline-flex;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.rating-anchor:hover,
.rating-anchor:focus-visible,
.public-shop-page .shop-profile-meta a.shop-location-summary:hover,
.public-shop-page .shop-profile-meta a.shop-location-summary:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
}

.reviews-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  scroll-margin-top: 110px;
}

.reviews-section .section-heading {
  display: block;
  margin-bottom: 0;
}

.reviews-section .section-heading .eyebrow {
  margin: 0 0 8px;
}

.reviews-section .section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.review-carousel-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.review-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.review-card {
  flex: 0 0 min(360px, 86vw);
  display: grid;
  gap: 14px;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(16, 37, 29, 0.08);
  scroll-snap-align: start;
}

.review-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.review-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.review-card strong {
  color: var(--leaf-dark);
}

.carousel-arrow {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  z-index: 1;
}

.seller-detail > .text-button,
.seller-detail > .seller-products {
  grid-column: 1 / -1;
}

.seller-profile,
.seller-locations,
.seller-products {
  align-self: start;
}

.shop-profile-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.shop-profile-mark {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(49, 91, 59, 0.18);
  border-radius: 50%;
  color: var(--leaf-dark);
  background: #eef6ec;
  font-size: 1.35rem;
  font-weight: 900;
}

.shop-profile-heading h1 {
  max-width: none;
}

.compact-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.compact-product {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.compact-product:hover,
.compact-product:focus-within {
  transform: translateY(-4px);
  border-color: #bfd0c3;
  box-shadow: 0 14px 30px rgba(16, 37, 29, 0.12);
}

.compact-product-image-link {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: white;
  cursor: pointer;
  line-height: 0;
}

.compact-product img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 240ms ease;
}

.compact-product:hover img,
.compact-product:focus-within img {
  transform: scale(1.035);
}

.compact-product div {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.compact-product > div > span {
  color: var(--muted);
  font-size: 0.9rem;
}

.compact-product-title-link {
  border: 0;
  padding: 0;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.compact-product-title-link:hover,
.compact-product-title-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seller-admin-body {
  min-width: 320px;
  background: var(--seller-workspace-background);
}

.seller-admin-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 10px clamp(18px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.seller-admin-header .brand {
  position: relative;
  width: 198px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seller-admin-header .brand img {
  position: absolute;
  width: 165px;
  height: 66px;
  max-width: none;
  object-fit: contain;
  transform: scale(1.55);
  transform-origin: center;
}

@media (max-width: 560px) {
  .seller-admin-header .brand { width: 144px; height: 48px; }
  .seller-admin-header .brand img { width: 120px; height: 50px; }
}

.seller-admin-product-name {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.seller-admin-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.seller-admin-header-actions a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.seller-admin-header-actions a:hover,
.seller-admin-header-actions a:focus-visible {
  color: var(--ink);
  background: var(--soft);
}

.seller-admin-main {
  min-height: calc(100vh - 68px);
}

.seller-login-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(340px, 460px);
  gap: clamp(44px, 8vw, 120px);
  align-items: center;
  width: min(1120px, calc(100% - 36px));
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 54px 0;
}

.seller-login-copy h1 {
  max-width: 11ch;
  margin: 8px 0 18px;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.96;
}

.seller-login-copy > p:last-of-type {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
}

.seller-login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.seller-login-points span {
  padding: 7px 10px;
  border: 1px solid #cbd8ce;
  border-radius: 6px;
  color: var(--leaf-dark);
  background: white;
  font-size: 0.84rem;
  font-weight: 750;
}

.seller-login-form {
  display: grid;
  gap: 12px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 20px 55px rgba(16, 37, 29, 0.1);
}

.seller-login-form h2 {
  margin: 0 0 12px;
  font-size: 1.75rem;
}

.seller-login-form input,
.listing-toolbar input,
.listing-toolbar select,
.product-list-controls .listing-search input,
.shop-profile-form input,
.shop-profile-form select,
.shop-profile-form textarea,
.staff-user-body input,
.staff-user-body select,
.csv-import-panel select,
.csv-import-panel textarea,
.product-admin-form input,
.product-admin-form select,
.product-admin-form textarea {
  width: 100%;
  border: 1px solid #cfd9d1;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.product-admin-form select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--leaf-dark) 50%),
    linear-gradient(135deg, var(--leaf-dark) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.product-admin-form select:hover {
  border-color: #9db1a2;
}

.product-admin-form select option {
  color: var(--ink);
  background: white;
  font: inherit;
}

.seller-login-form input:focus,
.listing-toolbar input:focus,
.listing-toolbar select:focus,
.product-list-controls .listing-search input:focus,
.shop-profile-form input:focus,
.shop-profile-form select:focus,
.shop-profile-form textarea:focus,
.staff-user-body input:focus,
.staff-user-body select:focus,
.csv-import-panel select:focus,
.csv-import-panel textarea:focus,
.product-admin-form input:focus,
.product-admin-form select:focus,
.product-admin-form textarea:focus {
  border-color: #79a17f;
  outline: 3px solid rgba(57, 127, 56, 0.12);
}

.seller-login-form > button,
.admin-primary-action,
.admin-secondary-action,
.image-upload-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--leaf);
  border-radius: 7px;
  padding: 0 15px;
  cursor: pointer;
  font-weight: 820;
}

.seller-login-form > button,
.admin-primary-action {
  color: white;
  background: var(--leaf);
}

.admin-secondary-action,
.image-upload-button {
  color: var(--leaf-dark);
  background: white;
}

.danger-text-action {
  color: #9b4038;
  border-color: #e1c2bd;
}

.admin-primary-action:disabled,
.integration-row button:disabled,
#saveShopProfile:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.admin-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-field-error{min-height:20px;margin:4px 0 0;color:#9b4038;font-size:.82rem;font-weight:700}
.managed-product-highlight{outline:3px solid rgba(82,137,93,.35);outline-offset:-3px;animation:managed-product-highlight 2.4s ease-out}
@keyframes managed-product-highlight{0%,45%{background:#edf6ee}100%{background:transparent}}

.seller-workspace {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}

.seller-admin-sidebar {
  position: sticky;
  top: 68px;
  display: flex;
  height: calc(100vh - 68px);
  flex-direction: column;
  padding: 22px 14px;
  border-right: 1px solid var(--seller-sidebar-border);
  background: var(--seller-sidebar-background);
}

.seller-sidebar-shop {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0 5px 24px;
  border-radius: 8px;
  padding: 10px;
  color: var(--seller-sidebar-text);
  background: var(--seller-sidebar-accent);
}

.seller-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: var(--seller-sidebar-text);
  background: #f8f5e9;
  font-weight: 900;
}

.seller-sidebar-shop div {
  min-width: 0;
}

.seller-sidebar-shop > .shop-logo-mark {
  width: 46px;
  height: 46px;
  justify-self: center;
}

.seller-shop-switcher {
  display: grid;
  min-width: 0;
  position: relative;
  min-height: 44px;
  align-items: center;
}

.seller-shop-current {
  display: -webkit-box;
  overflow: hidden;
  padding-right: 24px;
  color: var(--seller-sidebar-text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.seller-shop-switcher-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
  padding: 0;
  color: var(--seller-sidebar-text);
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
}

.seller-shop-switcher-trigger:focus-visible {
  outline: 3px solid rgba(48, 65, 54, 0.22);
  outline-offset: 2px;
}

.seller-shop-switcher::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--seller-sidebar-text);
  border-bottom: 2px solid var(--seller-sidebar-text);
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

.seller-shop-dropdown { position:absolute;z-index:40;top:calc(100% + 9px);left:-8px;display:grid;width:max(100%,190px);box-sizing:border-box;padding:7px;border:1px solid #bfd5bb;border-radius:10px;background:#fff;box-shadow:0 14px 30px rgba(7,30,21,.28); }
.seller-shop-dropdown[hidden] { display:none; }
.seller-shop-dropdown::before { content:"";position:absolute;top:-6px;right:17px;width:10px;height:10px;border-left:1px solid #bfd5bb;border-top:1px solid #bfd5bb;background:#fff;transform:rotate(45deg); }
.seller-shop-dropdown button { position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;border:0;border-radius:7px;padding:10px 11px;color:#173c2d;background:transparent;font:inherit;font-size:.86rem;font-weight:750;text-align:left;cursor:pointer; }
.seller-sidebar-shop .seller-shop-dropdown button span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#173c2d;font-size:.86rem; }
.seller-shop-dropdown button:hover,.seller-shop-dropdown button:focus-visible { outline:0;background:#edf6e9; }
.seller-shop-dropdown button[aria-checked="true"] { color:#245d32;background:#e2f0dd;font-weight:850; }
.seller-sidebar-shop .seller-shop-dropdown button[aria-checked="true"] span { color:#245d32; }
.seller-shop-dropdown b { color:#397f38;font-size:1rem; }
.seller-shop-dropdown .seller-shop-add-option { margin-top:5px;border-top:1px solid #dce7dc;border-radius:0 0 7px 7px;padding-top:12px;color:#245d32; }
.seller-sidebar-shop .seller-shop-dropdown .seller-shop-add-option span { color:#245d32;font-weight:850; }
.seller-add-shop-dialog{width:min(500px,calc(100vw - 28px));padding:0;border:0;border-radius:18px;color:var(--ink);box-shadow:0 24px 80px #102f2950}.seller-add-shop-dialog::backdrop{background:#0b211c99}.seller-add-shop-dialog-inner{padding:26px}.seller-add-shop-dialog header{position:relative;padding-right:38px}.seller-add-shop-dialog h2{margin:0;font-size:1.45rem}.seller-add-shop-dialog .dialog-close{position:absolute;right:0;top:-5px}.seller-add-shop-choices{display:grid;gap:10px;margin-top:22px}.seller-add-shop-choices>button{display:grid;gap:5px;width:100%;padding:16px;border:1px solid #cbd8d3;border-radius:11px;text-align:left;color:var(--ink);background:#fff;cursor:pointer}.seller-add-shop-choices>button:hover,.seller-add-shop-choices>button:focus-visible{border-color:#4f8d78;outline:0;background:#f3f8f6}.seller-add-shop-choices strong{font-size:1rem}.seller-add-shop-choices span{color:var(--muted);font-size:.86rem}.seller-add-shop-dialog footer{display:flex;justify-content:flex-end;margin-top:20px}

.seller-sidebar-shop span:last-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-sidebar-shop span:last-child {
  color: var(--seller-sidebar-muted);
  font-size: 0.78rem;
}

.seller-sidebar-shop strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.seller-admin-nav {
  display: grid;
  gap: 5px;
}

.seller-admin-nav button,
.seller-sidebar-footer a,
.seller-sidebar-footer button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--seller-sidebar-muted);
  background: transparent;
  cursor: pointer;
  font-weight: 760;
  text-align: left;
}

.seller-admin-nav button:hover,
.seller-admin-nav button:focus-visible,
.seller-admin-nav button.active,
.seller-sidebar-footer a:hover,
.seller-sidebar-footer a:focus-visible,
.seller-sidebar-footer button:hover,
.seller-sidebar-footer button:focus-visible {
  color: var(--seller-sidebar-text);
  background: var(--seller-sidebar-hover);
  box-shadow: none !important;
  transform: none !important;
}

.seller-admin-nav button.active {
  background: var(--seller-sidebar-accent);
}

.seller-admin-nav button[data-order-alert-count]::after {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  box-sizing: border-box;
  margin-left: auto;
  border-radius: 50%;
  color: white;
  background: #c83f35;
  content: attr(data-order-alert-count);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.seller-sidebar-footer {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--seller-sidebar-border);
}

.seller-admin-content {
  min-width: 0;
  padding: 28px clamp(20px, 4vw, 54px) 70px;
}

.seller-workspace-toolbar,
.admin-view-heading,
.panel-heading,
.product-editor-header,
.product-editor-footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.seller-workspace-toolbar {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.seller-workspace-toolbar h1 {
  max-width: none;
  margin: 3px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: 0;
  line-height: 1.05;
}

.seller-workspace-toolbar .eyebrow {
  margin: 0;
}

.seller-workspace-subtitle { margin:8px 0 0;color:var(--muted);font-size:.98rem; }

.seller-admin-view {
  max-width: 1320px;
}

.admin-view-heading {
  margin-bottom: 22px;
}

.admin-view-heading h2,
.admin-overview-section h2,
.panel-heading h3 {
  margin: 0;
  font-size: 1.35rem;
}

.admin-view-heading p,
.profile-form-section p,
.shop-snapshot > p {
  margin: 5px 0 0;
  color: var(--muted);
}

.admin-dashboard {
  display: grid;
  gap: 22px;
}

.analytics-heading { align-items: end; }
.analytics-range-control { display:grid;gap:6px;color:var(--muted);font-size:.78rem;font-weight:760; }
.analytics-range-control select { min-width:150px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink); }
.analytics-dashboard { display:grid;gap:20px; }
.analytics-metrics { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px; }
.analytics-metrics article,.analytics-panel { border:1px solid var(--line);border-radius:8px;background:#fff; }
.analytics-metrics article { padding:18px; }
.analytics-metrics span,.analytics-metrics small { display:block;color:var(--muted);font-size:.78rem; }
.analytics-metrics strong { display:block;margin-top:8px;font-size:1.7rem; }
.analytics-panel { overflow:hidden; }
.analytics-panel-heading { padding:18px 20px;border-bottom:1px solid var(--line); }
.analytics-panel-heading h3 { margin:0; }.analytics-panel-heading p { margin:5px 0 0;color:var(--muted);font-size:.85rem; }
.analytics-table-wrap { overflow:auto; }.analytics-table-wrap table { width:100%;min-width:650px;border-collapse:collapse; }.analytics-table-wrap th,.analytics-table-wrap td { padding:13px 16px;border-bottom:1px solid var(--line);text-align:left; }.analytics-table-wrap th { color:var(--muted);font-size:.7rem;text-transform:uppercase; }.analytics-table-wrap td { font-size:.86rem; }
.visitor-area-table table { min-width:0; }
.visitor-area-table tbody th { color:var(--ink);font-size:.86rem;text-transform:none; }
.analytics-split { display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,.6fr);gap:20px; }
.analytics-source-list>div { display:flex;justify-content:space-between;gap:18px;padding:14px 18px;border-bottom:1px solid var(--line);font-size:.85rem; }.analytics-source-list span:first-child { display:grid;gap:3px; }.analytics-source-list small { color:var(--muted); }
.analytics-distance { display:grid;grid-template-columns:repeat(3,1fr);margin:0;padding:20px; }.analytics-distance div { padding:4px 14px;border-right:1px solid var(--line); }.analytics-distance div:last-child { border:0; }.analytics-distance dt { color:var(--muted);font-size:.72rem; }.analytics-distance dd { margin:7px 0 0;font-size:1.2rem;font-weight:800; }
.analytics-distance-groups>section+section { border-top:1px solid var(--line); }.analytics-distance-groups h4 { margin:0;padding:16px 20px 0;font-size:.86rem; }
.analytics-empty { padding:32px;text-align:center;color:var(--muted); }.analytics-empty strong { color:var(--ink); }.analytics-empty p { margin:7px auto 0;max-width:520px; }
@media(max-width:1050px){.analytics-metrics{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.analytics-heading{align-items:stretch;flex-direction:column}.analytics-metrics{grid-template-columns:repeat(2,1fr)}.analytics-split{grid-template-columns:1fr}.analytics-distance{grid-template-columns:1fr}.analytics-distance div{border-right:0;border-bottom:1px solid var(--line);padding:12px 0}}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.admin-stats article {
  min-width: 0;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.admin-stats article:last-child {
  border-right: 0;
}

.admin-stats span,
.admin-stats small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-stats strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 2rem;
}

.admin-overview-grid,
.import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.admin-overview-section,
.csv-import-panel,
.integration-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.open-orders-overview { grid-column:1; grid-row:1; }
.stock-watch-overview { grid-column:1; grid-row:2; }
.overview-order-list { display:grid; gap:10px; margin-top:16px; }
.overview-order-card { display:flex; width:100%; align-items:center; justify-content:space-between; gap:16px; min-height:0; padding:13px 0; border:0; border-top:1px solid var(--line); border-radius:0; color:var(--ink); background:transparent; text-align:left; cursor:pointer; }
.overview-order-card > span:first-child { display:grid; gap:3px; }
.overview-order-card small { color:var(--muted); }
.overview-order-card:hover,.overview-order-card:focus-visible { color:var(--leaf-dark); box-shadow:none; transform:none; }

.seller-closure-banner { display:flex;gap:18px;align-items:center;justify-content:space-between;margin-bottom:20px;padding:14px 18px;border:1px solid #dfc77f;border-radius:8px;color:#624d12;background:#fff8df; }
.seller-closure-banner[hidden] { display:none; }
.seller-closure-banner div { display:grid;gap:3px; }
.seller-closure-banner strong { font-size:1rem; }
.seller-closure-banner span { color:#756331;line-height:1.45; }

.admin-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-text-action {
  border: 0;
  padding: 6px 0;
  color: var(--leaf-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.admin-text-action:hover,
.admin-text-action:focus-visible {
  box-shadow: none !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  transform: none !important;
}

.attention-list {
  display: grid;
  margin-top: 16px;
}

.attention-list article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.attention-list img {
  width: 44px;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.attention-list div,
.integration-row div {
  display: grid;
}

.attention-list div span,
.integration-row div span {
  color: var(--muted);
  font-size: 0.8rem;
}

.stock-pill,
.listing-status,
.admin-status-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: #245b2a;
  background: #e3f2df;
  font-size: 0.75rem;
  font-weight: 800;
}

.listing-status {
  display: inline-flex;
  min-height: 34px;
  align-self: center;
  align-items: center;
  justify-content: center;
}

.stock-pill.out,
.listing-status.inactive {
  color: #86382f;
  background: #f8e6e2;
}

.shop-snapshot dl {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
}

.shop-snapshot dl div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.shop-snapshot dt {
  color: var(--muted);
}

.shop-snapshot dd {
  margin: 0;
  font-weight: 750;
}

.listing-location-context {
  display: flex;
  margin-bottom: 10px;
}

.listing-location-context label {
  display: grid;
  width: min(100%, 340px);
  gap: 7px;
  color: #34443c;
  font-size: 0.83rem;
  font-weight: 750;
}

.listing-location-context select {
  min-height: 42px;
  border: 1px solid #cbd8ce;
  border-radius: 6px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.listing-location-context select:focus {
  outline: 3px solid rgba(78, 133, 70, 0.22);
  border-color: var(--leaf);
}

.listing-location-context select:disabled {
  cursor: default;
  color: var(--muted);
  background: #f4f6f4;
}

.listing-empty-state {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.listing-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.listing-result-count {
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
}

.listing-feedback {
  margin-bottom: 8px;
}

.listing-empty-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: #fbfdfb;
}

.listing-missing-products-notice {
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

#sellerProductsList > .listing-missing-products-notice:only-child {
  border-bottom: 0;
}

.listing-empty-import strong,
.listing-empty-import span {
  display: block;
}

.listing-empty-import span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.listing-empty-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.listing-empty-import-actions select {
  min-height: 42px;
  min-width: 240px;
  border: 1px solid #cbd8ce;
  border-radius: 6px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.missing-products-panel {
  max-width: 760px;
}

.missing-products-body {
  display: grid;
  gap: 14px;
  padding: 18px 22px;
}

.missing-products-body > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.select-all-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--leaf-dark);
  font-weight: 800;
}

.missing-products-list {
  display: grid;
  max-height: min(430px, 52vh);
  overflow: auto;
  border: 1px solid #dfe9e1;
  border-radius: 8px;
}

.missing-product-row {
  display: grid;
  grid-template-columns: auto 46px minmax(0, 1fr) minmax(190px, 240px);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-top: 1px solid #e8efe9;
  background: #fff;
}

.missing-product-row:first-child {
  border-top: 0;
}

.missing-product-row > img {
  width: 46px;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.missing-product-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.missing-product-copy strong,
.missing-product-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.missing-product-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.missing-product-row select {
  min-height: 36px;
  min-width: 0;
  border: 1px solid #cbd8ce;
  border-radius: 6px;
  padding: 0 9px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
}

.admin-products {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.admin-product-card {
  border-bottom: 1px solid var(--line);
}

.admin-product-card:last-child {
  border-bottom: 0;
}

.admin-product-row {
  display: grid;
  grid-template-columns: 58px minmax(190px, 1fr) 132px 76px 96px 210px;
  gap: 14px;
  align-items: center;
  padding: 9px 16px 13px;
}

.admin-product-row > img {
  width: 58px;
  aspect-ratio: 1;
  border-radius: 7px;
  object-fit: cover;
}

.admin-product-info {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-product-info strong,
.admin-product-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-info span {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-product-price {
  display: flex;
  min-height: 34px;
  align-self: center;
  align-items: center;
  font-size: 0.92rem;
}

.admin-stock-control {
  position: relative;
  display: grid;
  grid-template-columns: 72px;
  gap: 0;
  align-self: center;
  align-items: center;
  justify-self: start;
}

.admin-stock-control input {
  width: 72px;
  height: 34px;
  border: 1px solid #cfd9d1;
  border-radius: 6px;
  padding: 5px 7px;
}

.admin-stock-summary {
  display: grid;
  gap: 2px;
  align-self: center;
  justify-items: start;
}

.admin-stock-summary span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1;
}

.admin-stock-summary strong {
  font-size: 1rem;
}

.admin-row-actions button,
.integration-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 9px;
  color: var(--leaf-dark);
  background: white;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.stock-save-state {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  min-width: 96px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1;
}

.stock-save-state[data-state="saved"] {
  color: var(--leaf-dark);
}

.stock-save-state[data-state="error"] {
  color: #9b4038;
}

.admin-variant-stock-rows {
  display: grid;
  gap: 0;
  margin: -2px 16px 12px 88px;
  border: 1px solid #dfe9e1;
  border-radius: 7px;
  overflow: hidden;
  background: #fbfdf8;
}

.admin-variant-stock-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(90px, 1fr) 96px;
  gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 7px 10px;
  border-top: 1px solid #e6eee7;
}

.admin-variant-stock-row:first-child {
  border-top: 0;
}

.variant-stock-name {
  color: var(--leaf-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.variant-stock-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.variant-stock-control {
  justify-self: end;
}

.admin-row-actions {
  display: grid;
  grid-template-columns: 52px 88px 58px;
  gap: 5px;
  align-self: center;
  justify-content: flex-end;
}

.admin-row-actions button {
  width: 100%;
}

.admin-row-actions .deactivate-listing-button {
  color: #9b4038;
}

.admin-row-actions .activate-listing-button {
  color: #245b2a;
  border-color: #a9c8ae;
}

.admin-row-actions .delete-listing-button {
  color: #9b4038;
}

.membership-role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid #bad0bf;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--leaf-dark);
  background: #eef6ef;
  font-size: 0.82rem;
  font-weight: 820;
}

.shop-profile-form {
  border-top: 1px solid var(--line);
  background: transparent;
}

.shop-profile-footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
}

.shop-profile-footer .admin-status {
  flex: 1;
}

.profile-form-section {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(320px, 0.62fr);
  gap: clamp(28px, 7vw, 90px);
  padding: 28px 24px;
  border-bottom: 1px solid var(--line);
}

.profile-form-section h3,
.product-form-section h3,
.product-image-editor h3 {
  margin: 0;
  font-size: 1rem;
}

.profile-form-fields {
  display: grid;
  gap: 8px;
}

.location-manage-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.shop-locations-editor {
  display: grid;
  gap: 14px;
}

.shop-locations-editor > div {
  display: grid;
  gap: 14px;
}

.location-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfdfb;
}

.location-card header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.location-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.location-card-actions button {
  white-space: nowrap;
}

.location-card-inactive {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  color: #6a756d;
  background: #f1f4f0;
  border-color: #d8e1d8;
}

.location-card-inactive h4 {
  color: #5a665d;
}

.location-card-inactive span {
  display: block;
  margin-top: 3px;
  color: #7c897f;
  font-size: 0.86rem;
}

.location-card h4 {
  margin: 0;
  font-size: 1rem;
}

.location-card header span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.location-card-fields {
  display: grid;
  gap: 10px;
}

.location-card-fields label {
  display: grid;
  gap: 7px;
}
.location-dialog{width:min(720px,calc(100vw - 28px));max-height:calc(100vh - 28px);padding:0;border:0;border-radius:18px;color:var(--ink);box-shadow:0 24px 80px #102f2950}.location-dialog::backdrop{background:#0b211c99}.location-dialog-body{position:relative;padding:28px;overflow:auto}.location-dialog h2{margin:7px 36px 8px 0}.location-type-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:22px}.location-type-choices button{display:grid;gap:5px;text-align:left;padding:16px;border:1px solid #cbd8d3;border-radius:11px;background:#fff;color:var(--ink);cursor:pointer}.location-type-choices button:hover,.location-type-choices button:focus-visible{border-color:#4f8d78;background:#f3f8f6}.location-type-choices span{color:var(--muted);font-size:.82rem;line-height:1.4}.location-dialog .location-card-fields{margin-top:16px}.location-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.location-privacy-note{display:grid;gap:5px;margin-top:16px;padding:14px;border-radius:10px;background:#edf7f2;color:#285f4d}.location-privacy-note span{font-size:.84rem}.location-type-badge{display:inline-flex;margin-left:7px;padding:4px 7px;border-radius:99px;background:#e7f0ec;color:#285f4d;font-size:.68rem;vertical-align:middle}.location-capability-summary{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.location-capability-summary span{padding:4px 7px;border-radius:99px;background:#f0f3f2;color:#53645e;font-size:.7rem}.location-date-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.location-capability-list{margin-top:16px}.location-capability-list label{display:flex;align-items:center;gap:8px}.location-capability-list input{width:18px;height:18px}.location-dialog input[type=datetime-local]{width:100%;padding:10px;border:1px solid #c4d0cb;border-radius:8px}
@media(max-width:620px){.location-type-choices,.location-date-grid{grid-template-columns:1fr}.location-dialog-body{padding:22px 18px}.location-dialog footer{align-items:stretch;flex-direction:column-reverse}.location-dialog footer button{width:100%}}
.location-dialog input[type=date]{width:100%;padding:10px;border:1px solid #c4d0cb;border-radius:8px;background:#fff;color:var(--ink)}
.location-opening-hours{display:grid;gap:2px;margin-top:10px}.location-opening-hours strong{font-size:.76rem}.location-card header .location-opening-hours span,.location-card-inactive .location-opening-hours span{margin:0;color:var(--muted);font-size:.78rem;line-height:1.45}

/* Seller Admin location modal intentionally overrides the older customer location dialog rules. */
.location-dialog{font-family:ui-rounded,"SF Pro Rounded","Avenir Next Rounded","Nunito",Inter,ui-sans-serif,system-ui,sans-serif}
.location-dialog .location-type-choices button,
.location-dialog .location-type-choices button:last-child{min-height:0;padding:16px;border:1px solid #cbd8d3;border-radius:11px;color:var(--ink);background:#fff;font-family:inherit;font-weight:inherit}
.location-dialog .location-type-choices button:hover,
.location-dialog .location-type-choices button:focus-visible,
.location-dialog .location-type-choices button:last-child:hover,
.location-dialog .location-type-choices button:last-child:focus-visible{border-color:#4f8d78;color:var(--ink);background:#f3f8f6}
.location-dialog .location-type-choices strong{font-weight:800}
.location-dialog .location-type-choices button { grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-content: start; }
.location-dialog .location-type-choices .seller-location-icon { display: inline-grid; grid-column: 1; grid-row: 1 / span 2; color: #496e57; background: transparent; }
.location-dialog .location-type-choices button > strong,
.location-dialog .location-type-choices button > span:not(.seller-location-icon) { grid-column: 2; }

.location-dialog .location-dialog-close,
.location-dialog .location-dialog-close:last-child{position:absolute;z-index:2;top:18px;right:18px;width:34px;height:34px;min-height:34px;padding:0;border:1px solid #d5ded9;border-radius:50%;color:var(--ink);background:#fff;box-shadow:0 2px 7px rgba(16,47,41,.08)}
.location-dialog .location-dialog-close:hover,
.location-dialog .location-dialog-close:focus-visible{border-color:#9bada6;background:#f4f7f5}
.location-dialog-close span::before,.location-dialog-close span::after{content:"";position:absolute;top:50%;left:50%;width:14px;height:1.5px;border-radius:2px;background:currentColor}
.location-dialog-close span::before{transform:translate(-50%,-50%) rotate(45deg)}
.location-dialog-close span::after{transform:translate(-50%,-50%) rotate(-45deg)}

.opening-hours-field {
  display: grid;
  gap: 7px;
}
.opening-hours-field[hidden] { display:none; }

.opening-hours-label-row {
  position: relative;
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-start;
}

.opening-hours-help-trigger {
  display: inline-grid;
  width: 20px;
  height: 20px;
  min-height: 20px;
  place-items: center;
  border: 1px solid #87978b;
  border-radius: 50%;
  padding: 0;
  color: #536158;
  background: white;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
}

.location-dialog .opening-hours-help-trigger,
.location-dialog .opening-hours-help-trigger:last-child {
  display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid #87978b;
  border-radius: 999px;
  color: #536158;
  background: #fff;
  box-shadow: none;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
}

.location-dialog .opening-hours-help-trigger:hover,
.location-dialog .opening-hours-help-trigger:focus-visible {
  border-color: #52675e;
  color: #28483d;
  background: #f4f7f5;
}

.opening-hours-help-popover {
  position: absolute;
  z-index: 12;
  top: calc(100% + 7px);
  left: 0;
  display: grid;
  width: min(330px, calc(100vw - 64px));
  gap: 7px;
  border: 1px solid #cbd7cc;
  border-radius: 8px;
  padding: 12px;
  color: #34443c;
  background: white;
  box-shadow: 0 10px 28px rgba(16, 37, 29, 0.16);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
}

.opening-hours-help-popover[hidden] {
  display: none;
}

.opening-hours-help-popover strong {
  font-size: 0.86rem;
}

.opening-hours-help-popover code {
  border-radius: 5px;
  padding: 8px;
  background: #f2f6f1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}

.location-primary-check {
  display: flex !important;
}

.location-fulfilment-list {
  margin-top: 2px;
}

.add-location-toggle {
  justify-self: start;
}

.profile-form-fields label,
.csv-import-panel > label,
.product-admin-form label,
.product-image-editor > label:not(.image-upload-button) {
  color: #34443c;
  font-size: 0.83rem;
  font-weight: 750;
}

.profile-form-fields label:not(:first-child) {
  margin-top: 7px;
}

.shop-logo-preview,
.shop-banner-preview {
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(239, 246, 237, 0.96), rgba(207, 226, 202, 0.88)),
    radial-gradient(circle at 82% 28%, rgba(85, 141, 72, 0.18), transparent 32%);
  font-size: 0.88rem;
  font-weight: 750;
}

.shop-logo-preview {
  min-height: 96px;
  aspect-ratio: 5 / 1.45;
  gap: 8px;
  padding: 12px;
}

.shop-logo-preview .shop-logo-mark.large {
  width: 112px;
  height: 112px;
  font-size: 2rem;
}

.shop-banner-preview {
  position: relative;
  min-height: 96px;
}

.shop-banner-editor,
.shop-logo-editor {
  display: grid;
  gap: 10px;
}

.shop-banner-editor[hidden],
.shop-logo-editor[hidden] {
  display: none;
}

.shop-banner-preview[tabindex="0"] {
  cursor: grab;
  touch-action: none;
}

/* Editing hint overlays the image without blocking pointer dragging. */
.shop-banner-drag-hint { display: none; }
.shop-banner-preview[tabindex="0"] .shop-banner-drag-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: white;
  pointer-events: none;
  user-select: none;
}
.shop-banner-drag-hint svg {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8));
}
.shop-banner-drag-hint > span {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .5);
  font-size: .75rem;
  line-height: 1.35;
  font-weight: 650;
}
.shop-banner-upload-row[hidden] { display: none; }
.shop-banner-preview[tabindex="0"]:is(:hover, :focus-visible, .is-dragging) {
  outline: 2px solid var(--leaf);
  outline-offset: -2px;
}
.shop-banner-preview[tabindex="0"].is-dragging {
  cursor: grabbing;
}
.shop-banner-preview.is-dragging .shop-banner-drag-hint { opacity: .55; }

.shop-banner-preview[tabindex="0"]:focus-visible {
  outline: 3px solid rgba(49, 91, 59, 0.32);
  outline-offset: 3px;
}

.shop-logo-upload-row,
.shop-banner-upload-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.shop-logo-upload-row .image-upload-button,
.shop-banner-upload-row .image-upload-button {
  min-height: 42px;
  white-space: nowrap;
}

.shop-banner-replace-button {
  margin-top: 2px !important;
}

.shop-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.shop-image-delete-button {
  border-color: #b83d33;
  color: #b83d33;
  font-size: 0.83rem;
  font-weight: 750;
}

.shop-image-delete-button:hover,
.shop-image-delete-button:focus-visible {
  border-color: #922f28;
  color: #922f28;
  background: #fff7f6;
}

#editShopBanner,
#centreShopBanner,
#editShopLogo {
  color: #34443c;
  font-size: 0.83rem;
  font-weight: 750;
}

.shop-banner-preview img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 5 / 1.45;
  object-fit: cover;
  object-position: var(--banner-position-x, 50%) var(--banner-position-y, 50%);
  pointer-events: none;
  user-select: none;
}

.shop-banner-position-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.shop-banner-position-controls[hidden] {
  display: none;
}

.shop-banner-position-controls label {
  display: grid;
  gap: 5px;
  margin-top: 0 !important;
}

.shop-banner-position-controls input[type="range"] {
  width: 100%;
}

@media (max-width: 640px) {
  .shop-banner-position-controls {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.profile-toggle-list {
  display: grid;
  gap: 8px;
}

.profile-toggle-list label,
.admin-checks label,
.admin-inline-check {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafcf9;
}

.profile-toggle-list input,
.admin-checks input,
.admin-inline-check input {
  width: auto;
  accent-color: var(--leaf);
}

.admin-brand-label-row { display:flex;align-items:center;justify-content:space-between;gap:16px; }
.admin-brand-label-row > label:first-child { margin:0; }
.admin-brand-own-check { display:inline-flex!important;align-items:center;gap:7px;margin:0!important;color:var(--muted);font-size:.84rem;font-weight:700;cursor:pointer; }
.admin-brand-own-check input { width:17px!important;height:17px!important;flex:0 0 auto;margin:0!important;accent-color:var(--green); }
.product-admin-form #adminBrand[readonly] { color:var(--ink);background:#f3f6f2;cursor:default; }

.canonical-product-summary {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf7;
}

.canonical-product-summary span,
.canonical-product-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.canonical-product-summary .admin-text-action {
  justify-self: start;
  padding: 0;
}

.csv-import-panel {
  display: grid;
  gap: 11px;
}

.csv-dropzone {
  display: grid;
  min-height: 150px;
  place-content: center;
  border: 1px dashed #91ab96;
  border-radius: 8px;
  color: var(--leaf-dark);
  background: #f5faf3;
  cursor: pointer;
  text-align: center;
}

.csv-dropzone:hover,
.csv-dropzone:focus-within,
.csv-dropzone.dragging {
  border-color: var(--leaf);
  background: #edf7e9;
}

.csv-dropzone span,
.csv-file-name {
  color: var(--muted);
  font-size: 0.82rem;
}

.csv-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.csv-advanced {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.csv-advanced summary {
  color: var(--leaf-dark);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 800;
}

.csv-advanced textarea {
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}

.integration-list {
  display: grid;
  margin-top: 14px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.staff-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: white;
  box-shadow: 0 12px 30px rgba(16, 37, 29, 0.06);
}

.staff-remove-button {
  min-height: 36px;
  padding: 0 12px;
}

.staff-card strong,
.staff-card span {
  display: block;
}

.staff-card div:nth-child(2) span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.staff-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: var(--leaf-dark);
  background: #e8f1e9;
  font-weight: 900;
}

.integration-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.integration-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: #50655b;
  font-size: 0.72rem;
  font-weight: 900;
}

.shopify-mark { background: #4f8d38; }
.square-mark { background: #26332d; }
.woo-mark { background: #7656a8; }
.lightspeed-mark { background: #c8443a; }

.nile-modal {
  max-height: calc(100vh - 28px);
  overflow: auto;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: white;
  box-shadow: 0 24px 70px rgba(16, 37, 29, 0.22);
}

.nile-modal::backdrop {
  background: rgba(16, 37, 29, 0.5);
}

.product-editor-dialog {
  width: min(980px, calc(100% - 28px));
  overscroll-behavior: contain;
}

/* Keep wheel/touch gestures in Product Edit, including with a photo dialog above it. */
html:has(.product-editor-dialog[open]) {
  overflow: hidden;
}

.barcode-duplicate-dialog,
.delete-listing-dialog,
.discard-product-dialog,
.staff-user-dialog,
.remove-staff-dialog,
.deactivate-location-dialog {
  width: min(560px, calc(100% - 28px));
}

.close-shop-dialog { width: min(600px, calc(100% - 28px)); }
#shopProfileLeaveDialog { width: min(460px, calc(100% - 28px)); }
#shopProfileLeaveDialog .product-editor-footer { justify-content: flex-end; }
.marketplace-choice-dialog { width:min(620px,calc(100% - 28px)); }
.marketplace-choice-body { display:grid;gap:18px;padding:22px; }
.marketplace-choice-body > p { margin:0;color:var(--muted);line-height:1.5; }
.marketplace-choice-body fieldset { display:grid;gap:10px;margin:0;padding:0;border:0; }
.marketplace-choice-option { display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:8px;padding:15px;cursor:pointer; }
.marketplace-choice-option:has(input:checked) { border-color:var(--primary-green);background:#f4faf3;box-shadow:0 0 0 1px var(--primary-green); }
.marketplace-choice-option input { flex:0 0 auto;margin-top:3px;accent-color:var(--primary-green); }
.marketplace-choice-option span { display:grid;gap:5px; }
.marketplace-choice-option small { color:var(--muted);font-size:.88rem;line-height:1.45; }
.close-shop-body label { display:grid;gap:7px;color:#34443c;font-size:.83rem;font-weight:750; }
.close-shop-body select,.close-shop-body textarea,.close-shop-body input[type="date"] { width:100%;box-sizing:border-box;border:1px solid #cbd8cf;border-radius:7px;padding:10px;background:#fff;font:inherit; }
.close-shop-location-guidance { display:grid;gap:7px;border:1px solid #d8e5d9;border-radius:8px;padding:14px;background:#f5faf3; }
.close-shop-location-guidance span { color:var(--muted); }
.shop-closure-zone { border-top:1px solid #ead4d0;padding:28px 24px; }
.close-shop-body .admin-inline-check { display:flex;grid-template-columns:none;gap:10px;align-items:flex-start;padding:12px;line-height:1.45; }
.close-shop-body .admin-inline-check input { flex:0 0 auto;width:auto;margin:3px 0 0; }

.missing-products-dialog {
  width: min(760px, calc(100% - 28px));
}

.barcode-duplicate-panel,
.staff-user-panel {
  display: grid;
}

.barcode-duplicate-body,
.delete-listing-body,
.staff-user-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.barcode-duplicate-body > p,
.delete-listing-body > p,
.staff-user-body > p {
  margin: 0;
  color: var(--muted);
}

.staff-user-body label {
  display: grid;
  gap: 7px;
  color: #34443c;
  font-size: 0.83rem;
  font-weight: 750;
}

.staff-user-intro {
  display: grid;
  gap: 5px;
  border: 1px solid #dbe8dd;
  border-radius: 8px;
  padding: 14px;
  background: #f5faf3;
}

.staff-user-intro strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.staff-user-intro span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.staff-user-panel .product-editor-footer {
  border-top: 1px solid var(--line);
}

.admin-danger-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #a2362e;
  border-radius: 7px;
  padding: 0 16px;
  color: white;
  background: #b83d33;
  cursor: pointer;
  font-weight: 850;
}

.admin-danger-action:hover,
.admin-danger-action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(184, 61, 51, 0.22);
}

.product-admin-form {
  display: grid;
}

.product-editor-header,
.product-editor-footer {
  position: sticky;
  z-index: 2;
  padding: 18px 22px;
  background: white;
}

.product-editor-header {
  top: 0;
  border-bottom: 1px solid var(--line);
}

.product-editor-header h2 {
  margin: 2px 0 0;
  font-size: 1.5rem;
}

.product-editor-header .eyebrow {
  margin: 0;
}

.product-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  column-gap: 28px;
  row-gap: 24px;
  padding: 22px;
}

.product-editor-fields {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.product-form-section {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.product-form-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-split,
.admin-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.variant-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
  border: 0;
  padding: 0;
}

.variant-toggle-group legend {
  width: 100%;
  margin-bottom: 0;
  padding-bottom: 14px;
  font-weight: 700;
}

.variant-toggle-group label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}

.variant-toggle-group input[type="radio"] {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  accent-color: var(--leaf);
}

.location-required-dialog {
  width: min(520px, calc(100% - 28px));
}

.location-required-panel {
  display: grid;
}

.location-required-body {
  display: grid;
  gap: 10px;
  padding: 24px 22px;
}

.location-required-body p {
  margin: 0;
  color: var(--muted);
}

.location-required-panel .product-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.variant-editor-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.variant-editor-heading h3,
.variant-editor-heading .form-note {
  margin: 0;
}

.variant-row-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.add-variant-row-button {
  justify-self: end;
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.84rem;
  font-weight: 400;
}

.variant-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 0.75fr) minmax(0, 0.65fr) auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.variant-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.variant-row input {
  width: 100%;
}

.variant-remove-button {
  min-height: 38px;
  border: 1px solid #e7bbb6;
  border-radius: 7px;
  padding: 0 10px;
  color: #a33a31;
  background: #fff7f5;
}

.admin-split label {
  display: grid;
  gap: 7px;
}

.admin-split .inventory-choice-group label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.input-prefix {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cfd9d1;
  border-radius: 7px;
}

.input-prefix > span {
  padding-left: 12px;
  color: var(--muted);
}

.input-prefix input {
  border: 0;
  outline: 0;
}

.product-admin-form .input-prefix:focus-within {
  border-color: #79a17f;
  outline: 3px solid rgba(57, 127, 56, 0.12);
}

.product-admin-form .input-prefix input:focus {
  border-color: transparent;
  outline: none;
}

#adminPrice,
[data-variant-field="price"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

#adminPrice::-webkit-inner-spin-button,
#adminPrice::-webkit-outer-spin-button,
[data-variant-field="price"]::-webkit-inner-spin-button,
[data-variant-field="price"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.product-image-editor {
  align-self: start;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

@media (max-width: 940px) {
  .product-editor-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-image-editor {
    width: 100%;
    box-sizing: border-box;
  }
}

.admin-image-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}

.admin-image-preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-image-preview-list .admin-image-preview:first-child {
  grid-column: 1 / -1;
}

.admin-image-preview-list .admin-image-preview span {
  display: block;
  padding: 5px 7px;
  color: var(--muted);
  font-size: 0.75rem;
}

.admin-image-preview-actions {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 7px;
}

.admin-image-preview-list .admin-image-preview:not(:first-child) .admin-image-preview-actions {
  min-height: 28px;
  padding-top: 1px;
  padding-bottom: 1px;
}

.admin-image-preview-list .admin-image-preview:not(:first-child) .admin-image-preview-actions button {
  min-height: 22px;
}

.admin-image-preview-list .admin-image-preview:not(:first-child) .admin-remove-image {
  width: 22px;
  height: 22px;
}

.admin-image-preview-actions button {
  min-height: 28px;
  border: 0;
  padding: 2px 4px;
  color: var(--leaf-dark);
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
}

.admin-image-preview-actions button:hover,
.admin-image-preview-actions button:focus-visible {
  color: var(--leaf);
  text-decoration: underline;
  transform: none;
  box-shadow: none;
}

.admin-image-preview-actions .admin-remove-image {
  display: grid;
  width: 26px;
  height: 26px;
  min-height: 0;
  place-items: center;
  border-radius: 50%;
  padding: 0;
  color: #a33a31;
  background: #fff3f1;
  font-size: 1.15rem;
  line-height: 1;
  text-decoration: none;
}

.admin-image-preview-actions .admin-make-main {
  color: #7b8882;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-image-preview-actions .admin-make-main:hover,
.admin-image-preview-actions .admin-make-main:focus-visible {
  color: #596760;
}

.admin-image-preview-actions .admin-remove-image:hover,
.admin-image-preview-actions .admin-remove-image:focus-visible {
  color: white;
  background: #a33a31;
  text-decoration: none;
}

.admin-image-preview-actions .admin-main-image-label {
  padding: 0;
  color: var(--leaf-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-image-preview.is-main {
  border-color: #8fb39a;
}

.admin-image-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-editor-footer {
  bottom: 0;
  border-top: 1px solid var(--line);
}

.product-editor-footer .admin-status {
  flex: 1;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-empty-state {
  margin: 16px 0 0;
  color: var(--muted);
}

.account-page {
  min-height: calc(100vh - 78px);
  padding: clamp(32px, 5vw, 64px) clamp(18px, 5vw, 72px) 72px;
  background: #f7faf7;
}

.account-page-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.account-page-heading {
  max-width: 700px;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.account-page-heading h1 {
  max-width: none;
  margin: 3px 0 8px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
}

.account-page-heading > p:last-child,
.account-section-heading p,
.account-form-copy p,
.account-empty-state p,
.account-membership-card p {
  color: var(--muted);
}

.account-refresh-status {
  width: min(720px, 100%);
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: white;
  box-shadow: 0 8px 24px rgba(16, 37, 29, 0.05);
}

.account-settings-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.account-section-sidebar {
  position: sticky;
  top: 98px;
}

.account-section-nav {
  display: grid;
  gap: 3px;
}

.account-section-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #43534b;
  font-size: 0.94rem;
  font-weight: 780;
}

.account-section-nav a:hover {
  color: var(--leaf-dark);
  background: var(--soft);
}

.account-section-nav a:focus-visible {
  outline: 3px solid rgba(57, 127, 56, 0.2);
  outline-offset: 2px;
}

.account-section-nav a.active {
  border-color: #cbdccc;
  color: var(--leaf-dark);
  background: white;
  box-shadow: 0 7px 18px rgba(16, 37, 29, 0.07);
}

.account-sidebar-session {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.account-sidebar-session button {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 12px;
  color: #5d6862;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 780;
}

.account-sidebar-session button:hover {
  color: var(--leaf-dark);
  background: var(--soft);
}

.account-sidebar-session button:focus-visible {
  outline: 3px solid rgba(57, 127, 56, 0.2);
  outline-offset: 2px;
}

.account-mobile-navigation {
  display: none;
}

.account-section-content {
  min-width: 0;
}

.account-section-content input:not([type="checkbox"]):not([type="hidden"]):focus,
.account-dialog input:not([type="checkbox"]):not([type="hidden"]):focus {
  border-color: #79a17f;
  outline: 3px solid rgba(57, 127, 56, 0.14);
  outline-offset: 0;
}

.delete-account-dialog input:not([type="checkbox"]):not([type="hidden"]):focus {
  border-color: #9d554e;
  outline: 3px solid rgba(163, 60, 53, 0.16);
  outline-offset: 0;
}

.account-section-content a:focus-visible,
.account-section-content button:focus-visible,
.account-dialog button:focus-visible {
  outline: 3px solid rgba(57, 127, 56, 0.2);
  outline-offset: 2px;
}

.account-settings-section {
  min-width: 0;
}

.account-settings-section:focus {
  outline: none;
}

.account-profile-section:focus {
  outline: none;
}

.account-profile-section > .account-section-heading {
  margin-bottom: 18px;
  padding: 0;
  border: 0;
}

.account-settings-card {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 10px 28px rgba(16, 37, 29, 0.055);
}

.account-settings-card + .account-settings-card {
  margin-top: 16px;
}

.account-card-heading {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.account-card-heading h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.account-card-heading p,
.account-data-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.account-card-edit {
  min-width: 68px;
  min-height: 40px;
  border: 1px solid var(--leaf);
  border-radius: 7px;
  padding: 0 14px;
  color: var(--leaf-dark);
  background: white;
  cursor: pointer;
  font-weight: 820;
}

.security-sessions-card .account-card-heading { flex-wrap: wrap; }
.security-sessions-card .account-card-edit { flex-shrink: 0; max-width: none; }
@media (max-width: 600px) {
  .security-sessions-card .account-card-heading { flex-direction: column; align-items: flex-start; }
}

.account-data-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.account-data-list > div {
  display: grid;
  grid-template-columns: minmax(135px, 0.34fr) minmax(0, 0.66fr);
  gap: 8px 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.account-data-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.account-data-list dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.account-data-list dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-weight: 760;
  overflow-wrap: anywhere;
}

.account-data-list p {
  grid-column: 2;
}

.personal-details-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 22px;
}

.personal-details-form label {
  display: block;
  margin-bottom: 6px;
  color: #34443c;
  font-size: 0.88rem;
  font-weight: 760;
}

.personal-details-form label span {
  color: var(--muted);
  font-weight: 600;
}

.personal-details-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd9d1;
  border-radius: 7px;
  padding: 9px 11px;
  background: white;
}

.personal-details-form input:focus {
  border-color: #79a17f;
  outline: 3px solid rgba(57, 127, 56, 0.12);
}

.personal-details-form input[aria-invalid="true"] {
  border-color: #a33c35;
}

.field-error {
  min-height: 1.25em;
  margin: 5px 0 0;
  color: #8f302a;
  font-size: 0.84rem;
}

.personal-details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  grid-column: 1 / -1;
}

.personal-details-actions button {
  min-height: 42px;
  border: 1px solid var(--leaf);
  border-radius: 7px;
  padding: 0 15px;
  cursor: pointer;
  font-weight: 820;
}

.personal-details-actions button[type="submit"] {
  color: white;
  background: var(--leaf);
}

.personal-details-actions button[type="button"] {
  color: var(--leaf-dark);
  background: white;
}

.personal-details-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.personal-details-status {
  margin-bottom: 0;
}

.account-current-location {
  margin: 18px 0 12px;
  color: var(--muted);
}

.account-current-location strong {
  color: var(--ink);
}

.account-settings-card .password-change-form {
  max-width: 560px;
}

.account-security-section:focus {
  outline: none;
}

.account-security-section > .account-section-heading {
  margin-bottom: 18px;
}

.security-password-form {
  gap: 15px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.security-password-form > div:not(.password-change-actions) {
  display: grid;
  gap: 6px;
}

.security-password-form label {
  margin: 0;
}

.field-help,
.field-error {
  margin: 0;
  font-size: 0.82rem;
}

.field-help {
  color: var(--muted);
}

.field-error {
  min-height: 1em;
  color: #9b2f24;
}

.security-password-form input[aria-invalid="true"] {
  border-color: #b94a3d;
}

.password-change-actions .password-change-cancel {
  color: var(--leaf-dark);
  background: white;
}

.security-password-status {
  margin: 14px 0 0;
}

.security-feature-list {
  border-top: 1px solid var(--line);
}

.security-feature-list > div {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.security-feature-list > div:last-child {
  border-bottom: 0;
}

.security-feature-list h4,
.security-feature-list p {
  margin: 0;
}

.security-feature-list h4 {
  font-size: 0.98rem;
}

.security-feature-list p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.security-coming-soon {
  flex: none;
  border: 1px solid #cbd8cd;
  border-radius: 999px;
  padding: 4px 9px;
  color: #405b46;
  background: #f1f6f1;
  font-size: 0.76rem;
  font-weight: 800;
}

.address-section-heading {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.address-add-button,
.address-empty-state .primary-action {
  width: auto;
  min-height: 42px;
  border: 0;
  cursor: pointer;
}

.address-section-status {
  margin: 18px 0 0;
}

.address-load-error {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #dfc9c5;
  border-radius: 10px;
  background: #fffafa;
}

.address-load-error h3,
.address-load-error p {
  margin: 0 0 8px;
}

.address-empty-state .primary-action {
  margin-top: 16px;
}

.address-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.address-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 24px rgba(16, 37, 29, 0.05);
}

.address-card-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.address-card-heading h3 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

.address-default-badge {
  flex: none;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--leaf-dark);
  background: #edf5ed;
  font-size: 0.76rem;
  font-weight: 850;
}

.address-card address {
  display: grid;
  gap: 2px;
  margin-top: 14px;
  color: #425149;
  font-style: normal;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.address-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.address-card-actions button {
  border: 0;
  padding: 2px 0;
  color: var(--leaf-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.address-card-actions .address-delete-action {
  color: #98362d;
}

.address-dialog {
  width: min(700px, calc(100% - 28px));
}

.address-form-intro {
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.address-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-top: 20px;
}

.address-field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.address-field-wide {
  grid-column: 1 / -1;
}

.address-field label,
.address-country-label {
  color: #34443c;
  font-size: 0.86rem;
  font-weight: 750;
}

.address-field label span {
  color: var(--muted);
  font-weight: 600;
}

.address-field input:not([type="hidden"]) {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd9d1;
  border-radius: 7px;
  padding: 9px 11px;
  background: white;
}

.address-field input:focus {
  border-color: #79a17f;
  outline: 3px solid rgba(57, 127, 56, 0.12);
}

.address-field input[aria-invalid="true"] {
  border-color: #b94a3d;
}

.address-country-value {
  min-height: 42px;
  margin: 0;
  padding: 10px 0;
}

.address-default-choice {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 18px;
  font-weight: 700;
}

.address-default-choice input {
  margin-top: 3px;
}

.address-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.address-dialog-actions button {
  min-height: 42px;
  border: 1px solid var(--leaf);
  border-radius: 7px;
  padding: 0 16px;
  color: var(--leaf-dark);
  background: white;
  cursor: pointer;
  font-weight: 820;
}

.address-dialog-actions .primary-action {
  color: white;
  background: var(--leaf);
}

.address-dialog-actions button:disabled,
.address-card-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
}

@media (max-width: 560px) {
  .shop-filter-bar { grid-template-columns: 1fr; }
  .shop-open-now { grid-column: 1; grid-row: auto; }
  .security-feature-list > div {
    align-items: flex-start;
  }

  .security-coming-soon {
    margin-top: 1px;
  }

  .address-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .address-add-button {
    align-self: flex-start;
  }

  .address-card-list,
  .address-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .address-field-wide {
    grid-column: auto;
  }

  .address-dialog-actions {
    flex-direction: column-reverse;
  }

  .address-dialog-actions button {
    width: 100%;
  }

}

.account-information-list .profile-inline-action {
  align-items: center;
}

.account-section-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.account-section-heading h2 {
  margin: 0 0 5px;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.account-section-heading p,
.account-form-copy p {
  margin: 0;
}

.account-settings-section .profile-details {
  margin-bottom: 8px;
  border-top: 0;
}

.account-form-section {
  display: grid;
  grid-template-columns: minmax(150px, 0.38fr) minmax(260px, 0.62fr);
  gap: clamp(24px, 5vw, 56px);
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.account-section-heading + .account-form-section {
  border-top: 0;
}

.account-form-copy h3,
.account-empty-state h3,
.account-membership-card h3,
.profile-danger-zone h3 {
  margin: 0 0 5px;
  font-size: 1.08rem;
}

.account-empty-state {
  margin-top: 28px;
  padding: 24px;
  border: 1px dashed #cbd8cf;
  border-radius: 8px;
  background: var(--paper);
}

.account-empty-state p {
  max-width: 60ch;
  margin: 0;
}

.payment-methods-placeholder {
  max-width: 680px;
  margin-top: 22px;
}

.payment-placeholder-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.payment-placeholder-icon {
  position: relative;
  width: 46px;
  height: 34px;
  border: 2px solid #739278;
  border-radius: 7px;
  background: #f3f7f3;
}

.payment-placeholder-icon::before {
  content: "";
  position: absolute;
  top: 8px;
  right: -2px;
  width: 17px;
  height: 14px;
  border: 2px solid #739278;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: white;
}

.payment-placeholder-icon span {
  position: absolute;
  top: 12px;
  right: 7px;
  z-index: 1;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--leaf-dark);
}

.payment-methods-placeholder > h3 {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(1.18rem, 2.4vw, 1.42rem);
  line-height: 1.32;
}

.payment-methods-placeholder > p {
  max-width: 56ch;
  margin: 9px 0 0;
  color: var(--muted);
}

.payment-security-note {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #d6e0d7;
  border-radius: 8px;
  background: #f7faf7;
}

.payment-security-note strong {
  display: block;
  margin-bottom: 4px;
  color: #334b38;
  font-size: 0.92rem;
}

.payment-security-note p {
  max-width: 58ch;
  margin: 0;
  color: #56645d;
  font-size: 0.88rem;
  line-height: 1.5;
}

.account-membership-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.account-membership-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.account-membership-status {
  grid-column: 1 / -1;
  margin: -18px -18px 0;
  padding: 9px 18px;
  border-radius: 8px 8px 0 0;
  font-size: 0.84rem;
  font-weight: 850;
}

.account-membership-status.temporarily-closed {
  color: #604a08;
  background: #fff3c4;
}

.account-membership-status.closed {
  color: #45504a;
  background: #e9ecea;
}

.account-membership-status.suspended {
  color: #7c241b;
  background: #f9d8d4;
}

.account-membership-logo {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d4ddd5;
  border-radius: 9px;
  color: var(--leaf-dark);
  background: #f1f6f1;
  font-weight: 900;
}

.account-membership-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-membership-details {
  min-width: 0;
}

.account-membership-details h3,
.account-membership-details p {
  overflow-wrap: anywhere;
}

.account-membership-details p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.account-membership-location::before {
  content: "Location: ";
  font-weight: 750;
}

.account-membership-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  align-items: center;
  justify-content: flex-end;
}

.account-membership-actions .primary-action {
  min-height: 40px;
  padding: 10px 14px;
}

.account-membership-actions a:not(.primary-action) {
  color: var(--leaf-dark);
  font-weight: 800;
}

.seller-onboarding-state {
  max-width: 680px;
  margin-top: 22px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 10px 28px rgba(16, 37, 29, 0.05);
}

.seller-onboarding-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid #d4ddd5;
  background: #f1f6f1;
}

.seller-onboarding-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-onboarding-state h3,
.seller-onboarding-state p {
  margin: 0;
}

.seller-onboarding-state p {
  max-width: 57ch;
  margin-top: 7px;
  color: var(--muted);
}

.seller-onboarding-state .primary-action {
  width: auto;
  margin-top: 20px;
  border: 0;
  cursor: pointer;
}

.seller-membership-summary {
  margin: 22px 0 12px;
  color: var(--muted);
}

.seller-location-note {
  max-width: 70ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .account-membership-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .account-membership-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.account-membership-card p {
  margin: 0;
  font-size: 0.9rem;
}

.account-seller-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.seller-add-shop {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.seller-add-shop .seller-location-note {
  max-width: 620px;
  margin: 10px 0 0;
}

.seller-setup-field {
  margin-top: 18px;
}

.seller-setup-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.seller-setup-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c6d3c9;
  border-radius: 11px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fbfdfb;
  box-shadow: inset 0 1px 2px rgba(16, 37, 29, 0.035), 0 1px 2px rgba(16, 37, 29, 0.04);
  font: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.seller-setup-field input:focus {
  border-color: #79a17f;
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(57, 127, 56, 0.14), 0 4px 12px rgba(16, 37, 29, 0.06);
}

.seller-setup-field input[aria-invalid="true"] {
  border-color: #a33c35;
}

@media (prefers-reduced-motion: reduce) {
  .seller-setup-field input {
    transition: none;
  }
}

.account-signed-out .primary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto auto auto;
  }

  .nav-links {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .basket-page-header {
    grid-template-columns: auto 1fr auto auto auto;
  }

  .profile-page-header {
    grid-template-columns: auto 1fr auto auto auto;
  }

  .admin-product-row {
    grid-template-columns: 58px minmax(160px, 1fr) 90px 76px 210px;
  }

  .admin-product-row > img {
    grid-row: 1 / span 2;
  }

  .admin-variant-stock-rows {
    margin-left: 74px;
  }

  .admin-row-actions {
    grid-column: 5;
  }
}

@media (max-width: 820px) {
  .marketplace .section-heading h2 {
    white-space: normal;
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .profile-page-header {
    grid-template-columns: auto 1fr auto auto auto;
  }

  .account-page {
    padding-top: 32px;
  }

  .account-settings-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .account-section-sidebar {
    display: none;
  }

  .account-mobile-navigation {
    display: grid;
    gap: 6px;
  }

  .account-mobile-navigation label {
    color: #34443c;
    font-size: 0.86rem;
    font-weight: 780;
  }

  .account-mobile-navigation select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cbd8cf;
    border-radius: 8px;
    padding: 0 40px 0 12px;
    color: var(--ink);
    background: white;
  }

  .account-mobile-navigation select:focus-visible {
    border-color: var(--leaf);
    outline: 3px solid rgba(57, 127, 56, 0.16);
  }

  .header-search {
    grid-column: 1 / -1;
    order: 2;
  }

  .hero,
  .market-layout,
  .assistant-section,
  .seller-section,
  .about-intro,
  .about-story,
  .about-impact-heading,
  .about-mission,
  .admin-layout,
  .section-heading,
  .product-detail,
  .seller-detail,
  .availability-card {
    grid-template-columns: 1fr;
  }

  .about-story-image-right .about-story-media {
    grid-row: 1;
  }

  .about-impact-grid {
    grid-template-columns: 1fr;
  }

  .about-mission .primary-action {
    grid-column: 1;
  }

  .filters {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .basket-groups {
    grid-template-columns: 1fr;
  }

  .basket-summary {
    position: static;
    grid-column: 1;
    grid-row: auto;
  }

  .saved-seller-groups {
    max-width: none;
  }

  .availability-card {
    align-items: stretch;
  }

  .add-basket-row {
    grid-template-columns: auto 74px 1fr;
  }

  .shop-profile-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .shop-profile-summary .shop-logo-mark.large {
    margin-top: 20px;
  }

  .shop-profile-summary > div {
    padding-top: 0;
  }

  .availability-heading {
    display: grid;
  }

  .availability-controls {
    justify-items: start;
  }

  .availability-sort {
    min-width: 0;
  }

  .compact-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 0;
    padding-top: 28px;
  }

  h1 {
    max-width: 11ch;
  }

  .hero-media {
    min-height: 360px;
  }

  .quick-start {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters {
    position: static;
  }

  .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .seller-login-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .seller-login-copy h1 {
    max-width: 13ch;
  }

  .seller-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .seller-admin-sidebar {
    position: sticky;
    top: 68px;
    z-index: 20;
    display: block;
    width: 100%;
    height: auto;
    overflow-x: auto;
    padding: 8px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--seller-sidebar-border);
  }

  .seller-sidebar-shop,
  .seller-sidebar-footer {
    display: none;
  }

  .seller-admin-nav {
    display: flex;
    width: max-content;
  }

  .seller-admin-nav button {
    width: auto;
    white-space: nowrap;
  }

  .seller-admin-content {
    padding-top: 24px;
  }

  .admin-overview-grid,
  .import-layout,
  .profile-form-section,
  .product-editor-layout {
    grid-template-columns: 1fr;
  }

  .profile-form-section {
    gap: 20px;
  }

  .location-manage-row {
    grid-template-columns: 1fr;
  }

  .staff-card {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .staff-card .membership-role-pill,
  .staff-remove-button {
    grid-column: 2;
    justify-self: start;
  }

  .product-image-editor {
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: start;
  }

  .product-image-editor h3 {
    grid-column: 1 / -1;
  }

  .admin-image-preview {
    grid-row: span 3;
  }
}

@media (max-width: 560px) {
  #marketplaceHero,
  #marketplaceQuickStart {
    display: none;
  }

  .marketplace {
    padding-top: 24px;
    scroll-margin-top: 176px;
  }

  .profile-page-header {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  .profile-page-header .secondary-action {
    display: none;
  }

  .brand img {
    width: 94px;
  }

  .header-search {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .header-search button {
    margin: 0 8px 8px;
  }

  h1 {
    font-size: 3rem;
  }

  .quick-start,
  .product-grid,
  .seller-workflows,
  .compact-product-grid,
  .admin-stats,
  .admin-split,
  .admin-checks {
    grid-template-columns: 1fr;
  }

  .seller-admin-header {
    grid-template-columns: auto 1fr;
  }

  .seller-admin-product-name {
    display: none;
  }

  .seller-admin-header-actions > a:first-child {
    display: none;
  }

  .seller-login-copy h1 {
    font-size: 3.2rem;
  }

  .seller-workspace-toolbar,
  .admin-view-heading,
  .product-editor-footer,
  .shop-profile-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-profile-footer .admin-primary-action {
    width: 100%;
  }

  .seller-workspace-toolbar .admin-primary-action,
  .admin-view-heading .admin-primary-action {
    width: 100%;
  }

  .admin-stats article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-stats article:last-child {
    border-bottom: 0;
  }

  .listing-toolbar {
    grid-template-columns: 1fr;
  }

  .listing-empty-import {
    grid-template-columns: 1fr;
  }

  .listing-empty-import-actions {
    justify-content: flex-start;
  }

  .listing-empty-import-actions select {
    min-width: 0;
    width: 100%;
  }

  .listing-result-count {
    text-align: left;
  }

  .admin-product-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 9px 13px 13px;
  }

  .admin-product-row > img {
    grid-row: 1;
    width: 52px;
  }

  .admin-product-info {
    grid-column: 2;
  }

  .admin-product-price {
    grid-column: 3;
    grid-row: 1;
  }

  .listing-status {
    grid-column: 2;
  }

  .admin-stock-control,
  .admin-row-actions {
    grid-column: 2 / 4;
  }

  .admin-stock-control {
    margin-top: 12px;
  }

  .admin-variant-stock-rows {
    margin: 0 13px 12px;
  }

  .admin-variant-stock-row {
    grid-template-columns: minmax(0, 1fr) 82px;
  }

  .variant-stock-meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .variant-stock-control {
    grid-column: 2;
    grid-row: 1;
  }

  .missing-product-row {
    grid-template-columns: auto 42px minmax(0, 1fr);
  }

  .missing-product-row select {
    grid-column: 2 / -1;
  }

  .admin-row-actions {
    justify-content: flex-start;
  }

  .product-image-editor {
    grid-template-columns: 1fr;
  }

  .product-image-editor h3,
  .admin-image-preview {
    grid-column: auto;
    grid-row: auto;
  }

  .admin-actions {
    display: grid;
    width: 100%;
  }

  .basket-line-item {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .basket-line-item > strong {
    grid-column: 2;
  }

  .checkout-collection-group .basket-line-item {
    grid-template-columns: 28px 68px minmax(0, 1fr);
  }

  .checkout-collection-group .basket-item-details,
  .checkout-collection-group .basket-line-item > strong {
    grid-column: 3;
  }

  .profile-detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .account-page {
    padding: 24px 14px 48px;
  }

  .account-page-heading {
    margin-bottom: 24px;
  }

  .account-settings-section {
    min-width: 0;
  }

  .account-settings-card {
    border-radius: 8px;
    padding: 20px 16px;
  }

  .account-card-heading {
    gap: 14px;
  }

  .account-data-list > div,
  .personal-details-form {
    grid-template-columns: 1fr;
  }

  .account-data-list > div {
    gap: 3px;
  }

  .account-data-list p {
    grid-column: 1;
    margin-top: 3px;
  }

  .personal-details-actions {
    display: grid;
    grid-column: 1;
  }

.account-settings-section strong {
    overflow-wrap: anywhere;
  }

  .account-form-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-security {
    grid-template-columns: 1fr;
  }

  .password-change-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .password-change-actions button {
    width: 100%;
  }

  .profile-danger-zone,
  .delete-account-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .delete-consequence-grid {
    grid-template-columns: 1fr;
  }

  .profile-danger-zone button,
  .delete-account-actions button {
    width: 100%;
  }

  .basket-availability-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .basket-availability-notice button {
    width: 100%;
  }

  .basket-item-controls {
    align-items: flex-start;
  }

  .results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-badge {
    width: 124px;
    min-height: 124px;
    padding: 16px;
  }
}

.seller-order-counts { display:grid; grid-template-columns:repeat(5,minmax(110px,1fr)); gap:12px; margin:18px 0; }
.seller-order-counts > div { padding:14px; border:1px solid #ddd8ca; border-radius:12px; background:#fff; display:grid; gap:4px; }
.seller-order-counts strong { font-size:1.45rem; }
.seller-order-counts span { color:#5f625a; font-size:.85rem; }
.seller-order-toolbar { display:flex; flex-wrap:wrap; gap:12px; align-items:end; margin-bottom:12px; }
.seller-order-toolbar label { display:grid; gap:5px; min-width:180px; font-size:.85rem; font-weight:700; }
.seller-order-toolbar select,.seller-order-toolbar input { min-height:42px; }
.seller-order-layout { display:grid; grid-template-columns:minmax(280px,.85fr) minmax(360px,1.35fr); gap:18px; align-items:start; }
.seller-order-list { display:grid; gap:10px; }
.seller-order-card { width:100%; border:1px solid #d9d6cc; border-left:5px solid #a4a79d; border-radius:12px; background:#fff; color:inherit; padding:14px; display:grid; gap:7px; text-align:left; cursor:pointer; }
.seller-order-card:hover,.seller-order-card:focus-visible { border-color:#245c4b; box-shadow:0 0 0 2px rgba(36,92,75,.12); }
.seller-order-card.pending { border-left-color:#c17a22; }
.seller-order-card.ready { border-left-color:#245c4b; }
.seller-order-card-heading { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.seller-order-status,.order-deadline { display:inline-flex; width:max-content; border-radius:999px; padding:4px 9px; background:#eceee8; font-size:.78rem; font-weight:800; }
.customer-order-card .seller-order-status[data-status="pending_acceptance"] { color:#7a5313; background:#fff0ce; }
.customer-order-card .seller-order-status[data-status="accepted"],
.customer-order-card .seller-order-status[data-status="ready_for_collection"] { color:#216548; background:#dff3e9; }
.customer-order-card .seller-order-status[data-status="collected"] { color:#666; background:#eee; }
.customer-order-card .seller-order-status[data-status="rejected"],
.customer-order-card .seller-order-status[data-status="cancelled"],
.customer-order-card .seller-order-status[data-status="expired"] { color:#8f2f2a; background:#f9dddd; }
.order-deadline.approaching { background:#fff0d8; color:#85500e; }
.order-deadline.overdue { background:#f8dddd; color:#8b2525; }
.seller-order-detail { border:1px solid #d9d6cc; border-radius:14px; background:#fff; padding:20px; }
.seller-order-detail:focus { outline:2px solid #245c4b; outline-offset:3px; }
.seller-order-detail > header { display:flex; justify-content:space-between; gap:16px; }
.seller-order-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:18px 0; }
.seller-order-facts div { background:#f7f6f1; padding:10px; border-radius:9px; }
.seller-order-facts dt { color:#666; font-size:.78rem; }
.seller-order-facts dd { margin:3px 0 0; }
.seller-order-items { display:grid; margin-top:18px; }
.seller-order-items > div { display:grid; grid-template-columns:1fr auto auto; gap:14px; padding:12px 0; border-bottom:1px solid #ece9df; }
.seller-order-items > div > div { display:grid; }
.seller-order-total { display:flex; justify-content:space-between; font-size:1.1rem; padding:16px 0; }
.seller-order-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; margin-top:18px; }
.seller-order-action-dialog { width:min(560px,calc(100% - 28px)); }
.seller-order-action-dialog #sellerOrderReasonLabel { display:grid; gap:8px; margin-top:18px; color:var(--ink); font-weight:750; }
.seller-order-action-dialog #sellerOrderReasonLabel[hidden] { display:none; }
.seller-order-action-dialog textarea { width:100%; min-height:104px; box-sizing:border-box; resize:vertical; border:1px solid #cbd8cf; border-radius:8px; padding:11px 12px; color:var(--ink); background:#fff; font:inherit; font-weight:400; line-height:1.45; }
.seller-order-action-dialog textarea:focus { border-color:var(--leaf-dark); outline:3px solid rgba(57,127,56,.18); outline-offset:1px; }

@media (max-width: 800px) {
  .seller-order-counts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .seller-order-layout { grid-template-columns:1fr; }
  .seller-order-facts { grid-template-columns:1fr; }
  .seller-order-items > div { grid-template-columns:1fr auto; }
  .seller-order-items > div > strong { grid-column:2; }
}

.basket-feedback { min-height:1.4rem; color:var(--leaf-dark); font-weight:700; }
.checkout-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,340px); gap:24px; align-items:start; }
.checkout-groups,.reservation-confirmation-groups { display:grid; gap:18px; }
.checkout-collection-group,.reservation-confirmation-group,.reservation-success-heading,.reservation-next-steps { border:1px solid var(--line); border-radius:14px; background:#fff; padding:20px; box-shadow:0 12px 30px rgba(16,37,29,.05); }
.checkout-collection-group > header:not(.basket-seller-heading),.reservation-confirmation-group > header { border-bottom:1px solid var(--line); padding-bottom:14px; }
.checkout-collection-group > header h2,.reservation-confirmation-group h2 { margin:.2rem 0; }
.checkout-collection-group > footer,.reservation-confirmation-group > footer { display:flex; justify-content:space-between; padding-top:16px; font-size:1.05rem; }
.checkout-line,.confirmation-item { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:16px; align-items:center; padding:16px 0; border-bottom:1px solid #ece9df; }
.checkout-line > div:first-child,.confirmation-item > div { display:grid; gap:4px; }
.checkout-line span,.confirmation-item span { color:var(--muted); }
.checkout-summary { position:sticky; top:104px; display:grid; gap:13px; }
.checkout-summary .reserve-action { width:100%; }
.checkout-collection-group.basket-seller-group { padding:0; border-radius:8px; box-shadow:none; }
.checkout-collection-group .basket-seller-heading { padding:16px 18px; background:var(--soft); }
.checkout-collection-group .basket-seller-heading > div { display:grid; justify-items:end; gap:2px; }
.checkout-collection-group .basket-seller-heading > div > span { color:var(--muted); font-size:.82rem; }
.checkout-collection-group > footer { padding:16px 18px; }
.checkout-price-ack { display:flex; gap:10px; align-items:flex-start; padding:12px; border:1px solid #c17a22; border-radius:9px; background:#fff9ed; }
.checkout-price-ack input { width:auto; margin-top:3px; }
.basket-line-notice { margin:4px 0 0; color:#8a3d32; font-size:.88rem; font-weight:700; }
.checkout-loading,.reservation-confirmation-error { padding:40px 20px; text-align:center; }
.reservation-confirmation-page { width:min(1120px,calc(100% - 32px)); margin:0 auto; padding:48px 0 72px; }
.reservation-success-heading h1 { margin:.2rem 0 .7rem; }
.reservation-success-heading h1:focus { outline:none; }
.reservation-success-heading dl { display:flex; flex-wrap:wrap; gap:22px; margin:20px 0 0; }
.reservation-success-heading dl div { display:grid; gap:3px; }
.reservation-success-heading dt { color:var(--muted); font-size:.82rem; }
.reservation-success-heading dd { margin:0; font-weight:800; }
.reservation-confirmation-groups { margin-top:20px; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); }
.reservation-next-steps { margin-top:20px; }
.reservation-next-steps > div { display:flex; flex-wrap:wrap; gap:10px; }
.account-orders-heading { display:flex; justify-content:space-between; gap:16px; align-items:start; }
.customer-order-filters { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 18px; }
.customer-order-filters button { min-height:38px; border:1px solid var(--line); border-radius:999px; padding:0 14px; color:var(--ink); background:white; cursor:pointer; font:inherit; font-size:.86rem; font-weight:750; }
.customer-order-filters button.active { border-color:var(--leaf); color:var(--leaf-dark); background:var(--soft); }
.customer-order-list { display:grid; gap:14px; margin:0; padding:0; list-style:none; }
.customer-order-list-heading { margin-top:8px; padding-top:4px; }
.customer-order-list-heading.completed,.customer-order-list-heading.unsuccessful { margin-top:24px; padding-top:24px; border-top:1px solid var(--line); }
.customer-order-list-heading h3 { margin:0; font-size:1.2rem; }
.customer-order-list-subheading { margin-top:4px; }
.customer-order-list-subheading h4 { margin:0; color:var(--muted); font-size:.86rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.customer-order-card { padding:20px; border:1px solid var(--line); border-radius:12px; background:white; box-shadow:0 8px 24px rgba(16,37,29,.05); overflow-wrap:anywhere; }
.customer-order-card.is-ready { border-left:5px solid var(--leaf); }
.customer-order-card-heading,.customer-order-card-footer { display:flex; justify-content:space-between; gap:16px; align-items:start; }
.customer-order-card-heading p,.customer-order-card-footer span,.customer-order-deadline { margin:0; color:var(--muted); }
.customer-order-child-summary { display:grid; gap:6px; margin:16px 0; padding:14px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); list-style:none; }
.customer-order-child-summary li { display:grid; grid-template-columns:minmax(130px,1fr) minmax(130px,1fr) auto; gap:10px; align-items:center; }
.customer-order-child-summary span { color:var(--muted); }
.customer-order-card-footer { align-items:center; justify-content:space-between; }
.customer-order-card-footer:has(.secondary-action:only-child) { justify-content:flex-end; }
.customer-orders-pagination { display:grid; justify-items:center; gap:8px; margin-top:20px; color:var(--muted); }
.customer-orders-error,.customer-orders-empty { margin-top:12px; }
.copyable-reference { user-select:all; }
.customer-order-heading-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.customer-cancel-action { min-height:42px; border:1px solid #c68780; border-radius:8px; padding:0 14px; color:#873b34; background:#fff8f7; cursor:pointer; font:inherit; font-weight:780; }
.customer-cancel-action:hover,.customer-cancel-action:focus-visible { color:white; background:#9c443b; }
.customer-order-lifecycle { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:8px; margin:14px 0; }
.customer-order-lifecycle div { padding:9px; border-radius:7px; background:#f5f8f5; }
.customer-order-lifecycle dt { color:var(--muted); font-size:.75rem; font-weight:750; }
.customer-order-lifecycle dd { margin:2px 0 0; font-size:.84rem; }
.reservation-confirmation-group address { margin-top:8px; color:var(--muted); font-style:normal; }
.customer-order-action-status { margin:0 0 18px; padding:14px 16px; border:1px solid #a9cbae; border-radius:9px; color:var(--leaf-dark); background:var(--soft); }
.customer-cancellation-dialog textarea { width:100%; resize:vertical; border:1px solid var(--line); border-radius:8px; padding:10px; font:inherit; }
.customer-cancellation-dialog ul { padding-left:20px; }

@media (max-width: 760px) {
  .checkout-layout { grid-template-columns:1fr; }
  .checkout-summary { position:static; }
  .checkout-line { grid-template-columns:1fr auto; }
  .checkout-line .checkout-quantity-controls { grid-column:1 / -1; }
  .confirmation-item { grid-template-columns:1fr auto; }
  .reservation-confirmation-page { width:min(100% - 20px,1120px); padding-top:24px; }
  .customer-order-card-heading,.customer-order-card-footer { align-items:stretch; flex-direction:column; }
  .customer-order-child-summary li { grid-template-columns:1fr; gap:2px; }
  .customer-order-card-footer .secondary-action { width:100%; text-align:center; }
  .account-orders-heading { align-items:stretch; flex-direction:column; }
}

/* Keep Marketplace refresh rules last in the cascade. */
body { background: var(--page-background); color: var(--body-text); }
body > main { display: flex; flex-direction: column; }
body #marketplaceHero { order: 1; width: min(1480px, calc(100% - 48px)); min-height: 480px; margin: 22px auto 0; padding: clamp(42px, 5vw, 74px); grid-template-columns: minmax(320px,.92fr) minmax(400px,1.08fr); gap: clamp(36px,6vw,90px); border-radius: 34px; background: radial-gradient(circle at 14% 20%,rgba(255,255,255,.72),transparent 35%),linear-gradient(120deg,#fee5d1,#fff4e7 54%,#eef0dd); }
#shops-near-you { order: 3; } #marketplace { order: 4; } #marketplaceQuickStart { order: 5; } #detailView { order: 6; } #assistant { order: 7; } #seller { order: 8; }
body .site-header { grid-template-columns: auto minmax(240px,1fr) auto auto auto auto auto auto; min-height: 76px; padding: 10px clamp(20px,3.5vw,52px); gap: clamp(10px,1.4vw,20px); background: rgba(255,252,246,.94); border-color: rgba(49,91,59,.12); }
body .brand { width: 198px; height: 66px; display: flex; align-items: center; justify-content: center; }
/* Enlarge the artwork without changing the logo box or header height. */
body .brand img { width: 165px; height: 66px; object-fit: contain; transform: scale(1.55); transform-origin: center; }
body .header-search { border-radius: var(--control-radius); border-color: var(--market-border); }
body .header-search button { margin: 4px; border-radius: 9px; background: var(--primary-green); }
body .nav-links { gap: 4px; } body .nav-links a { padding: 9px 8px; white-space: nowrap; }
body .icon-button { width: auto; min-width: 48px; padding: 0 12px; border: 1px solid var(--market-border); border-radius: var(--control-radius); color: var(--dark-green); background: var(--warm-surface); }
body .account-button { border-color: var(--market-border); border-radius: var(--control-radius); background: var(--sage-surface); }
.marketplace-session-cached body #marketplaceHero,.marketplace-session-cached body #marketplaceQuickStart,.marketplace-user-signed-in #marketplaceHero,.marketplace-user-signed-in #marketplaceQuickStart { display: grid; }
body .hero-copy { padding: 0; } body h1 { max-width: 12ch; font-family: Georgia,"Times New Roman",serif; font-size: clamp(3.1rem,5.6vw,5.8rem); line-height: .98; color: var(--dark-green); }
body .hero-media { min-height: 360px; overflow: hidden; border-radius: 26px; box-shadow: var(--market-shadow); }
body .hero-media img { min-height: 360px; border-radius: 0; }
body .nearby-shops-section,body .marketplace,body .quick-start,body .assistant-section,body .seller-section { width: min(1380px,calc(100% - 48px)); margin-inline: auto; }
body .nearby-shops-section { padding: 68px 0 38px; background: transparent; }
body .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
body .section-heading .eyebrow { margin: 0; }
body .nearby-shops-heading h2,body .marketplace .section-heading h2 { font-family: Georgia,"Times New Roman",serif; font-size: clamp(2rem,3vw,3rem); color: var(--dark-green); }
body .nearby-shop-card,body .product-card,body .filter-card { border-radius: var(--card-radius); border-color: var(--market-border); background: var(--warm-surface); box-shadow: none; }
body .nearby-shop-card:hover,body .nearby-shop-card:focus-within,body .product-card:hover,body .product-card:focus-within { transform: translateY(-4px); border-color: #b9c7b8; box-shadow: var(--market-shadow); }
body .nearby-shop-logo { width: 70px; height: 70px; bottom: -28px; }
body .nearby-shop-body { min-height: 150px; padding: 38px 18px 18px; }
body .marketplace { padding: 52px 0 68px; }
body .market-layout { grid-template-columns: minmax(245px,280px) minmax(0,1fr); gap: 28px; }
body .filters { top: 94px; gap: 10px; }
body .filter-card:nth-child(2) { background: var(--sage-surface); } body .filter-card:nth-child(4) { background: #fff1e9; }
body .results-toolbar { min-height: 60px; padding: 10px 14px; border: 1px solid var(--market-border); border-radius: var(--control-radius); background: var(--warm-surface); }
body .product-grid { gap: 18px; }
body .product-card img { aspect-ratio: 1/.82; } body .product-body { padding: 14px; gap: 8px; }
body .quick-start { grid-template-columns: repeat(4,1fr); gap: 0; padding: 24px 0 70px; background: transparent; }
body .quick-start article { min-height: 0; padding: 26px; background: var(--sage-surface); border-right: 1px solid rgba(49,91,59,.12); }
body .quick-start span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--dark-green); background: var(--butter-accent); font-size: 1.25rem; }
body .site-footer { background: var(--dark-green); }
@media (max-width:1180px){body .site-header{grid-template-columns:auto minmax(220px,1fr) auto auto auto auto auto}body .nav-links{display:none}body .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:820px){body .site-header{grid-template-columns:auto 1fr auto auto auto;padding:8px 16px 12px}body .header-search{grid-column:1/-1;grid-row:2}body .header-favourites{display:none}body #marketplaceHero{width:calc(100% - 28px);min-height:0;margin-top:14px;padding:36px 28px;grid-template-columns:1fr;border-radius:24px}body .nearby-shops-section,body .marketplace,body .quick-start,body .assistant-section,body .seller-section{width:calc(100% - 32px)}body .market-layout{grid-template-columns:1fr}body .filters{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}body .filter-card:first-child,body .filter-card:nth-child(3){grid-column:1/-1}body .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body .quick-start{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){body #marketplaceHero,body #marketplaceQuickStart{display:grid}body .site-header{grid-template-columns:auto 1fr auto auto}body .brand{width:144px;height:50px}body .brand img{width:120px;height:50px}body .account-button{min-width:60px;padding:0 9px;white-space:nowrap}body #marketplaceHero{padding:30px 22px}body h1{font-size:clamp(2.65rem,13vw,3.5rem)}body .section-heading{display:block}body .carousel-arrow{display:none}body .shop-carousel-shell{display:block}body .filters{grid-template-columns:1fr}body .filter-card:first-child,body .filter-card:nth-child(3){grid-column:auto}body .results-toolbar{align-items:stretch;flex-direction:column}body .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body .quick-start{grid-template-columns:1fr}}

/* Homepage product rail and standalone catalogue page overrides. */
body .homepage-catalogue-source {
  display: none;
}

body .popular-product-carousel {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, calc((100% - 56px) / 5));
  align-items: start;
}

body .popular-product-carousel .product-card {
  align-self: start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

body .popular-product-carousel .product-image-link {
  aspect-ratio: 1 / .82;
}

body .popular-product-carousel .product-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

body .popular-product-carousel .product-body {
  width: 100%;
  min-width: 0;
  grid-template-rows: auto auto auto;
  align-content: start;
}

body .popular-product-carousel .multi-seller-store-line {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  overflow: hidden;
}

body .popular-product-carousel .multi-seller-store-line > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .popular-product-carousel .product-card-footer {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

body .popular-product-carousel .product-card-footer .price {
  flex: 0 0 auto;
  white-space: nowrap;
}

body .popular-product-carousel .product-card-footer .discovery-pill {
  flex: 0 0 auto;
}

body .popular-products-section {
  order: 4;
  padding-top: 42px;
  background: transparent;
}

body .discovery-carousels-panel {
  display: grid;
  row-gap: 44px;
  order: 4;
  width: min(1380px, calc(100% - 48px));
  margin: 38px auto 12px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body .suggested-collections-section { order: 3; padding: 54px 0 24px; background: transparent; }
.suggested-collections-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.suggested-collections-heading h2 { margin: 0; color: var(--dark-green); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 2.8vw, 2.7rem); }
.suggested-collections-heading p { margin: 7px 0 0; color: var(--secondary-text); }
.suggested-collections-carousel { display: flex; gap: 16px; min-width: 0; overflow-x: auto; padding: 6px 3px 20px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.suggested-collections-carousel::-webkit-scrollbar { display: none; }
.suggested-collections-carousel:focus-visible { outline: 3px solid #85a989; outline-offset: 4px; }
.suggested-collection-card { flex: 0 0 clamp(260px, 25vw, 330px); overflow: hidden; border: 1px solid var(--market-border); border-radius: 18px; color: var(--body-text); background: #fffdf9; box-shadow: 0 7px 20px rgba(38,45,38,.08); scroll-snap-align: start; transition: transform var(--market-transition), box-shadow var(--market-transition); }
.suggested-collection-card:hover, .suggested-collection-card:focus-visible { transform: translateY(-4px); box-shadow: 0 15px 32px rgba(38,45,38,.14); }
.suggested-collection-card:focus-visible { outline: 3px solid var(--leaf); outline-offset: -3px; }
.suggested-collection-image { display: block; height: 178px; overflow: hidden; background: #edf3e4; }
.suggested-collection-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--market-transition); }
.suggested-collection-image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--primary-green); font-size: 2.4rem; background: linear-gradient(135deg,#edf3e4,#fff3e5); }
.suggested-collection-card:hover .suggested-collection-image img, .suggested-collection-card:focus-visible .suggested-collection-image img { transform: scale(1.025); }
.suggested-collection-copy { display: grid; gap: 5px; min-height: 82px; padding: 12px 16px 13px; }
.suggested-collection-copy strong { color: var(--dark-green); font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; line-height: 1.15; }
.suggested-collection-copy > span { color: var(--secondary-text); font-size: .82rem; line-height: 1.25; }
.suggested-collection-copy .suggested-collection-action { margin-top: auto; color: var(--primary-green); font-weight: 850; }
.suggested-collection-skeleton { min-height: 260px; border-color: transparent; background: linear-gradient(90deg, #e8eee6 25%, #f8f5ee 50%, #e8eee6 75%); background-size: 200% 100%; animation: shop-loading 1.4s infinite; pointer-events: none; }

@media (max-width: 820px) {
  body .suggested-collections-section { padding-top: 42px; }
  .suggested-collection-card { flex-basis: min(72vw, 310px); }
}
@media (max-width: 560px) {
  .suggested-collections-shell { display: block; }
  .suggested-collections-shell .carousel-arrow { display: none; }
  .suggested-collection-card { flex-basis: min(84vw, 300px); }
  .suggested-collection-image { height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .suggested-collections-carousel { scroll-behavior: auto; }
  .suggested-collection-card, .suggested-collection-image img { transition: none; }
  .suggested-collection-skeleton { animation: none; }
}

body .discovery-carousels-panel > .nearby-shops-section {
  order: initial;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

body .discovery-carousels-panel > .popular-products-section {
  padding-top: 0;
  border-top: 0;
}

body .discovery-carousels-panel > #shops-near-you {
  padding: 0;
}

body .discovery-carousels-panel > #local-makers {
  padding: 0;
}

.shops-directory-tabs {
  display: flex;
  gap: 8px;
  margin: 22px 0 28px;
  overflow-x: auto;
}

.shops-directory-tabs a {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dark-green);
  background: white;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.shops-directory-tabs a[aria-selected="true"] {
  border-color: var(--dark-green);
  color: white;
  background: var(--dark-green);
}

body #marketplace {
  order: 5;
}

body #marketplaceQuickStart {
  order: 6;
}

body #detailView {
  order: 7;
}

body #assistant {
  order: 8;
}

body #seller {
  order: 9;
  scroll-margin-top: 96px;
}

body .popular-products-section .popular-products-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

body .popular-products-section .popular-products-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  color: var(--dark-green);
}

body .popular-products-section .product-carousel-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

body .popular-products-section .popular-product-carousel {
  gap: 14px;
  padding: 8px 3px 18px;
}

body .popular-products-section .popular-product-carousel.is-empty {
  display: block;
}

body .popular-products-section .popular-product-carousel.is-empty .product-carousel-state {
  width: 100%;
  min-width: 0;
  text-align: center;
}

body .popular-products-section .popular-product-carousel.is-empty .product-carousel-state h3,
body .popular-products-section .popular-product-carousel.is-empty .product-carousel-state p {
  margin: 0;
  text-align: center;
}

body .popular-products-section .popular-product-carousel.is-empty .product-carousel-state p {
  margin-top: 8px;
}

body .product-carousel-cta {
  min-height: 240px;
  place-content: center;
  gap: 12px;
  padding: 28px;
  color: var(--dark-green);
  text-align: center;
  text-decoration: none;
  background: rgba(255, 253, 249, .78);
}

body .product-carousel-cta-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin: 0 auto 4px;
  border-radius: 50%;
  color: white;
  background: var(--primary-green);
  font-size: 1.4rem;
}

body .product-carousel-cta strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

body .product-carousel-cta > span:last-child {
  color: var(--secondary-text);
  font-size: .8rem;
}

body.products-catalogue-page #marketplaceHero,
body.products-catalogue-page .discovery-strip,
body.products-catalogue-page #marketplaceQuickStart,
body.products-catalogue-page .discovery-carousels-panel,
body.products-catalogue-page .nearby-shops-section,
body.products-catalogue-page .assistant-section,
body.products-catalogue-page .seller-section {
  display: none;
}

@media (max-width: 900px) {
  body .popular-product-carousel {
    grid-template-columns: none;
    grid-auto-columns: minmax(190px, calc((100% - 20px) / 2));
  }
}

@media (max-width: 560px) {
  body .popular-product-carousel {
    grid-template-columns: none;
    grid-auto-columns: minmax(170px, 82%);
  }
}

@media (max-width: 820px) {
  body .discovery-carousels-panel {
    width: calc(100% - 32px);
    padding: 0;
    border-radius: 0;
  }
}

/* Reference-led Marketplace composition */
.discovery-strip { order: 2; position: relative; z-index: 4; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: min(1240px,calc(100% - 96px)); margin: -42px auto 0; padding: 10px; border: 1px solid rgba(49,91,59,.12); border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: 0 18px 42px rgba(57,63,48,.12); backdrop-filter: blur(12px); }
.discovery-strip > * { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; align-items: center; min-height: 88px; padding: 14px 18px; border: 0; border-right: 1px solid #ece8df; color: var(--body-text); text-align: left; background: transparent; cursor: pointer; }
.discovery-strip > *:last-child { border-right: 0; }
.discovery-strip strong,.discovery-strip small { display: block; }
.discovery-strip strong { color: var(--dark-green); font-size: .95rem; }
.discovery-strip small { margin-top: 3px; color: var(--secondary-text); font-size: .78rem; }
.discovery-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; color: var(--dark-green); background: #e7efd6; font-size: 1.4rem; }
.discovery-icon.butter { background: #fff0bf; }.discovery-icon.sage { background: #dde9cf; }.discovery-icon.peach { color: #c55842; background: #ffe0d5; }
.discovery-strip > *:hover { background: #fffaf3; }.discovery-strip > *:focus-visible { position: relative; z-index: 2; }

body .hero-copy { max-width: 640px; }
body .site-header .header-search { display: grid; }
body #marketplaceHero { min-height: 520px; padding: 46px clamp(42px,5vw,72px) 88px; grid-template-columns: minmax(430px,.95fr) minmax(430px,1.05fr); gap: 30px; overflow: hidden; }
body #marketplaceHero h1 { max-width: 11ch; margin-bottom: 14px; font-size: clamp(3.3rem,4.8vw,5rem); }
.hero-search { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; max-width: 650px; margin-top: 24px; padding: 4px 4px 4px 16px; border: 1px solid rgba(18,63,44,.16); border-radius: 15px; background: rgba(255,255,255,.96); box-shadow: 0 8px 22px rgba(73,63,50,.09); }
.hero-search > span { color: var(--dark-green); font-size: 1.45rem; }
.hero-search input { min-width: 0; height: 48px; border: 0; padding: 0 12px; color: var(--body-text); background: transparent; outline: none; }
.hero-search button { min-width: 112px; height: 46px; border: 0; border-radius: 11px; color: white; background: var(--peach-accent); cursor: pointer; font-weight: 850; }
.hero-search:focus-within { border-color: var(--dark-green); box-shadow: 0 0 0 3px rgba(49,91,59,.13); }
.popular-searches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; color: #535d56; font-size: .78rem; }
.popular-searches button { min-height: 30px; border: 1px solid rgba(49,91,59,.09); border-radius: 999px; padding: 4px 12px; color: #4d463f; background: rgba(255,255,255,.72); cursor: pointer; }
.popular-searches button:hover { border-color: #d59c85; background: white; }
body .hero-actions,body .trust-row { display: none; }
body .hero-media { align-self: stretch; min-height: 380px; overflow: visible; border-radius: 0; box-shadow: none; }
body .hero-media img { width: 100%; height: 100%; min-height: 380px; object-fit: contain; mix-blend-mode: multiply; }
body .hero-badge { display: none; }
body .nearby-shops-section { padding-top: 50px; }
body .nearby-shops-heading { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; }
body .nearby-shops-heading .eyebrow { grid-column: 1/-1; }
body .nearby-shops-heading p:not(.eyebrow) { justify-self: end; }
body .nearby-shop-card { flex-basis: clamp(250px,22vw,295px); }
body .nearby-shop-image,body .nearby-shop-image > img { min-height: 136px; height: 136px; }

@media (min-width:1181px) {
  body .site-header { grid-template-columns: auto 1fr auto auto auto auto auto; }
  body .nav-links { justify-self: center; }
}
@media (max-width:960px) {
  body #marketplaceHero { grid-template-columns: 1fr; padding-bottom: 76px; }
  body .hero-media { min-height: 300px; }
  body .hero-media img { min-height: 300px; max-height: 380px; }
  .discovery-strip { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: -38px; }
  .discovery-strip > *:nth-child(2) { border-right: 0; }
  .discovery-strip > *:nth-child(-n+2) { border-bottom: 1px solid #ece8df; }
}
@media (max-width:560px) {
  body #marketplaceHero { padding: 28px 20px 54px; }
  body #marketplaceHero h1 { font-size: clamp(2.7rem,13vw,3.4rem); }
  .hero-search { grid-template-columns: auto minmax(0,1fr); padding: 4px 10px; }
  .hero-search button { grid-column: 1/-1; width: 100%; margin: 2px 0 4px; }
  .popular-searches { display: none; }
  body .hero-media { min-height: 220px; }
  body .hero-media img { min-height: 220px; }
  .discovery-strip { grid-template-columns: 1fr; width: calc(100% - 42px); margin-top: -28px; padding: 6px; }
  .discovery-strip > * { min-height: 72px; border-right: 0; border-bottom: 1px solid #ece8df; padding: 10px 12px; }
  .discovery-strip > *:last-child { border-bottom: 0; }
  body .nearby-shops-heading { display: block; }
  body .nearby-shops-heading p:not(.eyebrow) { margin-top: 8px; }
}

/* Compact hero proportions, aligned to the Marketplace reference. */
body #marketplaceHero {
  min-height: 410px;
  max-height: 470px;
  padding: 34px clamp(38px,4.5vw,68px) 68px;
  grid-template-columns: minmax(430px,.9fr) minmax(420px,1.1fr);
  gap: 24px;
}
body #marketplaceHero .hero-copy { align-self: center; }
body #marketplaceHero .eyebrow { margin-bottom: 8px; font-size: .72rem; }
body #marketplaceHero h1 {
  max-width: 12ch;
  margin-bottom: 10px;
  font-size: clamp(2.8rem,4vw,4.15rem);
  line-height: .96;
}
body #marketplaceHero .hero-copy > p:not(.eyebrow) {
  max-width: 48ch;
  margin-bottom: 0;
  font-size: .98rem;
}
body #marketplaceHero .hero-search { margin-top: 18px; }
body #marketplaceHero .popular-searches { margin-top: 10px; }
body #marketplaceHero .hero-media { min-height: 310px; height: 350px; align-self: center; }
body #marketplaceHero .hero-media img { min-height: 0; height: 100%; object-fit: cover; object-position: 61% center; border-radius: 20px; }
.discovery-strip { margin-top: -38px; }

@media (max-width:960px) {
  body #marketplaceHero { min-height: 0; max-height: none; padding: 30px 30px 62px; grid-template-columns: minmax(0,1fr) minmax(280px,.78fr); }
  body #marketplaceHero h1 { font-size: clamp(2.5rem,6vw,3.55rem); }
  body #marketplaceHero .hero-media { min-height: 270px; height: 300px; }
}
@media (max-width:720px) {
  body #marketplaceHero { grid-template-columns: 1fr; gap: 16px; }
  body #marketplaceHero .hero-media { min-height: 0; height: 210px; }
  body #marketplaceHero .hero-media img { object-position: 58% 49%; }
}
@media (max-width:560px) {
  body #marketplaceHero { padding: 24px 20px 48px; gap: 12px; }
  body #marketplaceHero .eyebrow { margin-bottom: 6px; }
  body #marketplaceHero h1 { margin-bottom: 8px; font-size: clamp(2.35rem,11.5vw,3rem); }
  body #marketplaceHero .hero-copy > p:not(.eyebrow) { font-size: .92rem; line-height: 1.45; }
  body #marketplaceHero .hero-search { margin-top: 14px; }
  body #marketplaceHero .hero-media { height: 175px; }
  .discovery-strip { margin-top: -24px; }
}

/* Flowing organic shapes and botanical details from the reference artwork. */
body #marketplaceHero { position: relative; isolation: isolate; }
body #marketplaceHero .hero-copy,
body #marketplaceHero .hero-media { position: relative; z-index: 2; }
.hero-organics { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.organic { position: absolute; display: block; opacity: .72; filter: blur(.2px); }
.organic-sage {
  width: 42%; height: 88%; right: 17%; bottom: -39%;
  border-radius: 58% 42% 62% 38% / 42% 52% 48% 58%;
  background: rgba(177,194,147,.48);
  transform: rotate(-13deg);
}
.organic-peach {
  width: 38%; height: 62%; left: -12%; bottom: -38%;
  border-radius: 46% 54% 38% 62% / 58% 35% 65% 42%;
  background: rgba(246,177,139,.35);
  transform: rotate(17deg);
}
.organic-butter {
  width: 29%; height: 65%; right: -8%; top: 14%;
  border-radius: 64% 36% 44% 56% / 38% 56% 44% 62%;
  background: rgba(245,202,99,.42);
  transform: rotate(8deg);
}
.botanical {
  position: absolute; display: block; width: 120px; height: 180px;
  opacity: .72;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 160'%3E%3Cpath d='M48 155C49 119 49 82 63 21' fill='none' stroke='%236f9554' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M52 121C35 108 25 96 18 80M55 102C72 91 80 79 86 63M58 81C43 70 37 58 32 44M61 59C74 49 80 39 83 28' fill='none' stroke='%236f9554' stroke-width='1.7' stroke-linecap='round'/%3E%3Cg fill='%2389aa68'%3E%3Cellipse cx='29' cy='103' rx='7' ry='14' transform='rotate(-45 29 103)'/%3E%3Cellipse cx='18' cy='78' rx='6' ry='13' transform='rotate(-34 18 78)'/%3E%3Cellipse cx='74' cy='88' rx='7' ry='14' transform='rotate(42 74 88)'/%3E%3Cellipse cx='85' cy='61' rx='6' ry='13' transform='rotate(35 85 61)'/%3E%3Cellipse cx='40' cy='64' rx='6' ry='13' transform='rotate(-38 40 64)'/%3E%3Cellipse cx='32' cy='42' rx='5' ry='11' transform='rotate(-28 32 42)'/%3E%3Cellipse cx='75' cy='47' rx='6' ry='12' transform='rotate(38 75 47)'/%3E%3Cellipse cx='84' cy='27' rx='5' ry='11' transform='rotate(29 84 27)'/%3E%3C/g%3E%3C/svg%3E");
}
.botanical-left { left: 47%; bottom: -52px; transform: rotate(-20deg) scale(.72); }
.botanical-right { right: 1.5%; top: 2%; transform: rotate(17deg) scale(.7); }
.botanical-small { left: 2%; top: -62px; transform: rotate(132deg) scale(.5); opacity: .45; }

@media (max-width:960px) {
  .organic-sage { width: 48%; right: 8%; }
  .botanical-left { left: 43%; }
}
@media (max-width:720px) {
  .organic-sage { width: 78%; height: 48%; right: -20%; bottom: -10%; }
  .organic-butter { width: 52%; height: 35%; top: auto; right: -17%; bottom: 2%; }
  .botanical-left { left: auto; right: 24%; bottom: -66px; transform: rotate(-17deg) scale(.56); }
  .botanical-right { right: -5%; top: 48%; transform: rotate(18deg) scale(.5); }
}
@media (max-width:560px) {
  .organic-peach { width: 70%; height: 30%; left: -25%; bottom: -10%; }
  .botanical-small { display: none; }
}

/* Exact artwork viewport from the user-supplied Marketplace mock-up.
   Source crop: x 760–1509, y 90–462 of the 1536×1024 reference. */
body #marketplaceHero .hero-media {
  position: relative;
  width: min(100%,585px);
  height: auto;
  min-height: 0;
  aspect-ratio: 749 / 372;
  justify-self: end;
  align-self: center;
  overflow: hidden;
  border-radius: 0 26px 26px 0;
  box-shadow: none;
  background: #fff3e4;
}
body #marketplaceHero .hero-media .marketplace-reference-crop {
  position: absolute;
  top: -24.194%;
  left: -101.469%;
  width: 205.073%;
  height: 275.269%;
  max-width: none;
  min-height: 0;
  object-fit: fill;
  object-position: initial;
  border-radius: 0;
  mix-blend-mode: normal;
}
@media (max-width:960px) {
  body #marketplaceHero .hero-media { width: min(100%,500px); height: auto; min-height: 0; }
}
@media (max-width:720px) {
  body #marketplaceHero .hero-media { width: 100%; height: auto; min-height: 0; justify-self: stretch; border-radius: 18px; }
}

/* Header location control */
.header-location {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  padding: 7px 8px;
  color: #171b18;
  background: transparent;
  cursor: pointer;
  font-weight: 750;
  white-space: nowrap;
}
.header-location > svg:first-child {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.header-location .location-chevron {
  width: 16px;
  height: 16px;
  margin-left: 1px;
  fill: none;
  stroke: #777d78;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.header-location:hover { background: rgba(237,241,223,.72); }
.header-location:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
@media (max-width:1180px) {
  .header-location { padding-inline: 6px; }
}
@media (max-width:460px) {
  .header-location { gap: 6px; font-size: .86rem; }
  .header-location > svg:first-child { width: 24px; height: 24px; }
  .header-location .location-chevron { display: none; }
}

/* One seamless hero artwork: background, foliage and tote are a single image. */
body #marketplaceHero {
  position: relative;
  display: block;
  min-height: 420px;
  max-height: 460px;
  padding: 42px clamp(38px,5vw,76px) 70px;
  overflow: hidden;
  background: #fff0df;
}
body #marketplaceHero .hero-unified-artwork {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}
body #marketplaceHero .hero-copy {
  position: relative;
  z-index: 1;
  width: min(47%,620px);
  max-width: 620px;
  padding: 0;
}
@media (max-width:960px) {
  body #marketplaceHero {
    min-height: 390px;
    max-height: 430px;
    padding: 34px 30px 62px;
  }
  body #marketplaceHero .hero-copy { width: min(53%,520px); }
  body #marketplaceHero .hero-unified-artwork { object-position: 58% center; }
}
@media (max-width:720px) {
  body #marketplaceHero {
    min-height: 520px;
    max-height: none;
    padding: 28px 22px 46px;
  }
  body #marketplaceHero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg,rgba(255,239,222,.98) 0%,rgba(255,239,222,.9) 48%,rgba(255,239,222,0) 72%);
    pointer-events: none;
  }
  body #marketplaceHero .hero-copy { z-index: 2; width: 100%; max-width: 520px; }
  body #marketplaceHero .hero-unified-artwork { object-position: 68% center; }
}
@media (max-width:560px) {
  body #marketplaceHero { min-height: 500px; padding: 24px 20px 42px; }
}

/* Give the live hero copy the same broad left-hand field as the mock-up. */
body #marketplaceHero .hero-copy {
  width: min(58%,720px);
  max-width: 720px;
}
body #marketplaceHero h1 {
  width: max-content;
  max-width: none;
  font-size: clamp(2.75rem,3.65vw,3.85rem);
  white-space: nowrap;
}
body #marketplaceHero .hero-copy > p:not(.eyebrow) { max-width: 46ch; }
@media (max-width:1100px) {
  body #marketplaceHero .hero-copy { width: min(60%,620px); }
  body #marketplaceHero h1 { font-size: clamp(2.5rem,4.8vw,3.35rem); }
}
@media (max-width:720px) {
  body #marketplaceHero .hero-copy { width: 100%; max-width: 540px; }
  body #marketplaceHero h1 { width: auto; max-width: 12ch; white-space: normal; }
}

body #marketplaceHero .popular-searches {
  flex-wrap: nowrap;
  width: max-content;
  max-width: calc(100% - 42px);
  margin-left: 42px;
  white-space: nowrap;
}
body #marketplaceHero .popular-searches > * { flex: 0 0 auto; }
@media (max-width:720px) {
  body #marketplaceHero .popular-searches {
    display: flex;
    max-width: calc(100% - 28px);
    margin-left: 28px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }
}

/* Compact Nearby shops carousel, matching the Marketplace reference. */
body .nearby-shops-section { padding-top: 42px; }
body .nearby-shops-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
body .nearby-shops-heading h2 { margin: 0; font-size: clamp(1.55rem,2vw,2.15rem); }
.view-all-shops { display: inline-flex; min-height: 40px; align-items: center; gap: 7px; color: var(--dark-green); font-size: .9rem; font-weight: 800; }
.view-all-shops:hover,.view-all-shops:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
body .shop-carousel-shell { gap: 10px; }
body .shop-carousel { gap: 14px; padding: 8px 3px 18px; }
body .shop-carousel { scrollbar-width: none; }
body .shop-carousel::-webkit-scrollbar { display: none; }

/* Customer categories landing page */
body.categories-page { min-height: 100vh; }
.categories-page .categories-basket-link,
.categories-page .categories-account-link { text-decoration: none; }
.categories-main { gap: 0; }
.categories-hero {
  position: relative;
  width: min(1480px, calc(100% - 48px));
  aspect-ratio: 2396 / 820;
  margin: 22px auto 0;
  overflow: hidden;
  background: #fffaf3;
}
.categories-hero-mockup {
  position: absolute;
  top: -14.64%;
  left: 0;
  width: 100%;
  height: auto;
}
.categories-hero-copy {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1% 0 0 8.2%;
  pointer-events: none;
}
.categories-hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 7%;
  left: 5.2%;
  width: 36.5%;
  height: 72%;
  border-radius: 20%;
  background: #fdf9f3;
}
.categories-hero-copy h1 {
  max-width: none;
  margin: 1.2% 0 2.5%;
  color: var(--dark-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 5.4vw, 5.1rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
}
.categories-hero-copy > p {
  margin: 0;
  color: #18362d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(.7rem, 1.65vw, 1.55rem);
  line-height: 1.55;
}
.categories-popular-section,
.all-categories-section,
.category-detail-bridge { width: min(1380px, calc(100% - 48px)); margin-inline: auto; }
.categories-popular-section { padding: clamp(54px, 7vw, 88px) 0 30px; }
.all-categories-section { padding: 44px 0 86px; scroll-margin-top: 100px; }
.categories-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.categories-section-heading p { margin: 0 0 7px; }
.categories-section-heading h2,
.category-detail-bridge h2 { margin: 0; color: var(--dark-green); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 4vw, 4rem); }
.categories-popular-heading { align-items: center; margin-bottom: 8px; }
.categories-popular-heading h2,
.categories-all-heading h2 { font-size: clamp(1.55rem, 2vw, 2.15rem); }
.categories-all-heading { align-items: center; }
.categories-carousel-shell { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.categories-carousel-controls { display: flex; gap: 8px; }
.categories-carousel-controls button { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--market-border); border-radius: 50%; color: var(--dark-green); background: var(--warm-surface); font-size: 1.7rem; cursor: pointer; }
.categories-carousel-controls button:disabled { opacity: .35; cursor: default; }
.categories-carousel { display: flex; gap: 14px; overflow-x: auto; padding: 8px 3px 18px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.categories-carousel::-webkit-scrollbar { display: none; }
.category-card { display: grid; min-width: 0; overflow: hidden; border: 1px solid var(--market-border); border-radius: 20px; color: inherit; background: var(--warm-surface); box-shadow: 0 8px 24px rgba(39,56,41,.06); text-decoration: none; transition: transform var(--market-transition), border-color var(--market-transition), box-shadow var(--market-transition); }
.category-card:hover,
.category-card:focus-visible { transform: translateY(-5px); border-color: #aebfae; box-shadow: var(--market-shadow); }
.category-card:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.popular-category-card { flex: 0 0 calc((100% - 72px) / 5); scroll-snap-align: start; }
.category-card-media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sage-surface); }
.category-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.category-card:hover .category-card-media img { transform: scale(1.035); }
.category-card-copy { display: flex; min-height: 66px; align-items: center; padding: 13px 16px; }
.category-card-copy strong { color: var(--dark-green); font-family: Georgia, "Times New Roman", serif; font-size: 1.32rem; line-height: 1.15; }
.category-card-copy small { grid-column: 1; color: var(--secondary-text); }
.category-card-action { grid-column: 2; grid-row: 1 / span 2; color: var(--primary-green); font-weight: 850; }
.all-categories-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.categories-status { min-height: 1.5em; margin: -10px 0 18px; color: var(--secondary-text); }
.categories-status:empty { display: none; }
.categories-empty-state,
.categories-carousel-state { width: 100%; padding: 34px; border: 1px solid var(--market-border); border-radius: 18px; text-align: center; background: var(--warm-surface); }
.categories-empty-state { grid-column: 1 / -1; }
.categories-empty-state h3 { margin-top: 0; color: var(--dark-green); font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; }
.categories-empty-state p,
.categories-carousel-state p { margin-bottom: 0; color: var(--secondary-text); }
.categories-error-state button { min-height: 44px; margin-top: 12px; padding: 0 20px; border: 0; border-radius: var(--control-radius); color: white; background: var(--dark-green); font-weight: 800; cursor: pointer; }
.categories-loading-card { flex: 0 0 calc((100% - 72px) / 5); min-height: 260px; border-radius: 20px; background: linear-gradient(90deg, #e5eadc 25%, #f7f4e9 50%, #e5eadc 75%); background-size: 200% 100%; animation: shop-loading 1.4s infinite; }
.category-detail-bridge { margin-block: 52px 90px; padding: clamp(34px, 6vw, 68px); border-radius: 26px; background: var(--sage-surface); text-align: center; }
.category-detail-bridge p:not(.eyebrow) { max-width: 58ch; margin: 18px auto 26px; color: var(--secondary-text); }
.category-detail-bridge .hero-actions { justify-content: center; }

.category-browser { width: min(1380px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 90px; }
.category-breadcrumbs { margin-bottom: 20px; }
.category-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; color: var(--secondary-text); font-size: .9rem; }
.category-breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 7px; color: #98a199; }
.category-breadcrumbs a { color: var(--primary-green); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.category-browser-header { overflow: hidden; min-height: 210px; padding: clamp(28px, 4vw, 52px); border-radius: 28px; background: linear-gradient(125deg, #fff1e8, #f5f2e5 58%, #e4ecd8); }
.category-browser-header > div { max-width: 760px; }
.category-browser-header h1 { max-width: none; margin: 5px 0 16px; }
.category-browser-header p:last-child { max-width: 58ch; margin: 0; color: #435047; font-size: 1.08rem; }
.category-subcategories, .category-results-section, .category-shops-section { padding-top: clamp(44px, 6vw, 72px); }
.category-subcategories h2, .category-results-heading h2 { margin: 0; color: var(--dark-green); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 2.5vw, 2.6rem); }
.category-subcategory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 18px; }
.category-subcategory-card { display: grid; gap: 3px; min-height: 82px; align-content: center; padding: 15px 17px; border: 1px solid var(--market-border); border-radius: 14px; background: var(--warm-surface); box-shadow: 0 5px 16px rgba(39,56,41,.05); transition: transform var(--market-transition), border-color var(--market-transition), box-shadow var(--market-transition); }
.category-subcategory-card:hover, .category-subcategory-card:focus-visible { transform: translateY(-3px); border-color: #aebfae; box-shadow: var(--market-shadow); }
.category-subcategory-card strong { color: var(--dark-green); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.category-subcategory-card span { color: var(--secondary-text); font-size: .78rem; }
.category-results-heading { display: flex; gap: 24px; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.category-results-heading p { min-height: 1.4em; margin: 5px 0 0; color: var(--secondary-text); }
.category-results-heading label { display: flex; gap: 8px; align-items: center; white-space: nowrap; color: var(--secondary-text); font-size: .78rem; font-weight: 800; }
.category-results-heading select { min-height: 44px; border: 1px solid var(--market-border); border-radius: var(--control-radius); padding: 0 36px 0 12px; color: var(--body-text); background: var(--warm-surface); }
.category-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-filter-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.category-filters { top: 94px; }
.category-filter-results { min-width: 0; }
.category-filter-results .category-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.category-price-fields { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; align-items: center; }
.category-price-fields input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; background: white; }
.category-filters .input-row button { min-height: 40px; }
.category-result-state { grid-column: 1 / -1; padding: 36px; border: 1px dashed var(--market-border); border-radius: var(--card-radius); background: var(--warm-surface); text-align: center; }
.category-result-state h3 { margin: 0 0 8px; color: var(--dark-green); font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.category-result-state p { margin: 0; color: var(--secondary-text); }
.category-result-state button { margin-top: 16px; }
.category-load-more { display: flex; margin: 24px auto 0; }
.category-shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category-shop-grid .nearby-shop-card { min-width: 0; }
.category-shop-grid .category-result-state { grid-column: 1 / -1; }
.product-category-path { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; color: var(--primary-green); font-size: .82rem; font-weight: 800; }
.product-category-path a { text-decoration: underline; text-underline-offset: 3px; }
.product-category-path span { color: #98a199; }

@media (max-width: 1050px) {
  .popular-category-card, .categories-loading-card { flex-basis: calc((100% - 36px) / 3); }
  .all-categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-product-grid, .category-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-filter-results .category-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .categories-hero { width: calc(100% - 28px); }
  .categories-popular-section, .all-categories-section, .category-detail-bridge { width: calc(100% - 32px); }
  .popular-category-card, .categories-loading-card { flex-basis: calc((100% - 14px) / 2); }
  .all-categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .category-browser { width: calc(100% - 32px); padding-top: 24px; }
  .category-browser-header { padding: 28px; }
  .category-product-grid, .category-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .category-filter-layout { display: block; }
  .category-filters { margin-bottom: 22px; }
  .category-filter-results .category-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .categories-section-heading { align-items: center; }
  .categories-section-heading h2 { font-size: 2.25rem; }
  .categories-carousel-shell { display: block; }
  .categories-carousel-shell .carousel-arrow { display: none; }
  .popular-category-card, .categories-loading-card { flex-basis: 100%; }
  .all-categories-grid { grid-template-columns: 1fr; }
  .category-browser-header { padding: 27px 22px; border-radius: 22px; }
  .category-browser-header h1 { font-size: clamp(2.65rem, 13vw, 3.5rem); }
  .category-subcategory-grid { grid-template-columns: 1fr; }
  .category-results-heading { align-items: stretch; flex-direction: column; }
  .category-results-heading select { width: 100%; }
  .category-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-filter-results .category-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-shop-grid { grid-template-columns: 1fr; }
  .category-card-copy { min-height: 62px; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .categories-carousel { scroll-behavior: auto; }
  .category-card, .category-card-media img { transition: none; }
  .categories-loading-card { animation: none; }
}
body .nearby-shop-card {
  flex: 0 0 clamp(305px,23.5vw,340px);
  min-height: 246px;
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 5px 14px rgba(38,45,38,.08);
}
body .nearby-shop-card:hover,body .nearby-shop-card:focus-within { transform: translateY(-4px); box-shadow: 0 13px 28px rgba(38,45,38,.15); }
body .nearby-shop-image,body .nearby-shop-image > img { height: 120px; min-height: 120px; }
body .nearby-shop-logo {
  left: 16px;
  bottom: -27px;
  width: 62px;
  height: 62px;
  border-width: 3px;
}
body .nearby-shop-body { gap: 6px; min-height: 126px; padding: 27px 15px 12px; }
.nearby-shop-title-row { display: flex; min-width: 0; gap: 8px; align-items: start; justify-content: space-between; }
.nearby-shop-title-row > div { min-width: 0; }
.nearby-shop-title-row h3 { overflow: hidden; font-family: Georgia,"Times New Roman",serif; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.nearby-shop-meta { overflow: hidden; color: var(--secondary-text); font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.shop-new-pill { flex: 0 0 auto; border-radius: 999px; padding: 3px 8px; color: #245328; background: #dceec6; font-size: .68rem; font-weight: 850; }
.nearby-shop-tagline { display: -webkit-box; min-height: 2.5em; overflow: hidden; color: #515851 !important; font-size: .78rem; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.nearby-shop-card-footer { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: auto; }
.shop-opening-pill { display: inline-flex; min-height: 26px; align-items: center; overflow: hidden; border-radius: 999px; padding: 4px 8px; color: #35513b; text-overflow: ellipsis; white-space: nowrap; background: #edf3df; font-size: .68rem; font-weight: 800; }
.shop-opening-pill.local-maker-pill { color:#56326e; border:1px solid #d7c2e5; background:#f3eafb; }
.nearby-shop-card-footer .shop-rating { flex: 0 0 auto; font-size: .7rem; }
.nearby-shop-card > .favourite-button { top: 8px; right: 8px; width: 36px; height: 36px; padding: 8px; border-color: rgba(255,255,255,.7); background: rgba(255,253,249,.94); }
@media (max-width:760px) {
  body .nearby-shops-heading { display: flex; }
  body .nearby-shop-card { flex-basis: min(86vw,330px); }
}

.directory-header-link { min-height: 42px; display: inline-flex; align-items: center; font-weight: 750; }
.shops-directory-main { width: min(1380px,calc(100% - 48px)); margin: 0 auto; padding: 42px 0 84px; }
.shops-directory-intro { max-width: 900px; }
.shops-directory-intro h1 { max-width: none; margin-bottom: 14px; font-size: clamp(2.7rem,4vw,4.4rem); }
.shops-directory-intro > p:last-child,.shops-directory-status { color: var(--secondary-text); }
.shops-directory-layout { margin-top: 32px; }
.shops-directory-layout .filters { min-width: 0; }
.shops-directory-layout .filter-card:first-child { background: var(--warm-surface); }
.shops-directory-layout .filter-card:nth-child(2) { background: var(--sage-surface); }
.shops-directory-layout .filter-card:nth-child(3) { background: #fff1e9; }
.shops-directory-layout .location-status:empty { display: none; }
.shops-directory-layout .marketplace-category-options { display: grid; gap: 9px; }
.shops-directory-layout .marketplace-category-options label { align-items: flex-start; }
.shops-directory-layout .results-panel { min-width: 0; }
.shops-directory-tabs { margin-top: 0; }
.shops-results-toolbar { justify-content: flex-start; margin-bottom: 0; }
.shops-directory-status { margin: 18px 0 16px; font-weight: 750; }
.shops-directory-status:empty { display: none; }
.shops-directory-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); gap: 20px; }
.shops-directory-grid .nearby-shop-card { min-width: 0; }
.directory-shop-card { position: relative; overflow: hidden; border: 1px solid var(--market-border); border-radius: var(--card-radius); background: #fffdf9; box-shadow: 0 7px 20px rgba(38,45,38,.08); transition: transform var(--market-transition),box-shadow var(--market-transition); }
.directory-shop-card:hover,.directory-shop-card:focus-within { transform: translateY(-4px); box-shadow: 0 15px 32px rgba(38,45,38,.14); }
.directory-shop-card > a { display: block; height: 100%; }
.directory-shop-banner { position: relative; height: 145px; background: linear-gradient(135deg,#dcebd9,#f5ead2); }
.directory-shop-banner > img { width: 100%; height: 100%; object-fit: cover; }
.directory-shop-banner .shop-logo-mark { position: absolute; left: 18px; bottom: -27px; width: 64px; height: 64px; border: 3px solid white; }
.directory-shop-copy { display: grid; gap: 7px; padding: 36px 18px 18px; }
.directory-shop-copy h2,.directory-shop-copy p { margin: 0; }
.directory-shop-copy h2 { font-family: Georgia,"Times New Roman",serif; font-size: 1.15rem; }
.directory-shop-copy p { color: var(--secondary-text); font-size: .82rem; }
.directory-shop-card > .favourite-button { position: absolute; top: 10px; right: 10px; z-index: 3; background: rgba(255,255,255,.94); }
.shops-directory-empty { grid-column: 1/-1; padding: 38px; border: 1px dashed var(--market-border); border-radius: var(--card-radius); background: var(--sage-surface); text-align: center; }
@media (max-width:820px) {
  .shops-directory-main { width: calc(100% - 32px); padding-top: 30px; }
  .shops-directory-layout { grid-template-columns: 1fr; }
  .shops-directory-layout .filters { position: static; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-height: none; overflow: visible; padding-right: 0; }
  .shops-directory-layout .filter-card:first-child,.shops-directory-layout .filter-card:nth-child(3) { grid-column: 1/-1; }
}
@media (max-width:700px) {
  .shops-directory-grid { grid-template-columns: 1fr; }
  .shops-directory-layout .filters { grid-template-columns: 1fr; }
  .shops-directory-layout .filter-card:first-child,.shops-directory-layout .filter-card:nth-child(3) { grid-column: auto; }
}

/* Customer collection landing pages */
.collection-main { width: min(1240px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 84px; }
.collection-main .category-breadcrumbs { width: 100%; margin-bottom: 18px; }
.collection-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); min-height: 310px; overflow: hidden; border: 1px solid #e4dcd0; border-radius: 30px; background: linear-gradient(135deg, #f9f1e6 0%, #edf3e4 58%, #f8dfd2 100%); box-shadow: 0 12px 34px rgba(38,45,38,.08); }
.collection-hero > div { display: grid; align-content: center; padding: clamp(34px, 6vw, 72px); }
.collection-hero h1 { max-width: 760px; margin: 3px 0 15px; color: var(--dark-green); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 5.5vw, 5.25rem); line-height: .98; }
.collection-hero p:last-child { max-width: 620px; margin: 0; color: #465048; font-size: clamp(1rem, 1.8vw, 1.2rem); line-height: 1.55; }
.collection-hero img { width: 100%; height: 100%; min-height: 310px; object-fit: cover; }
.collection-products, .collection-shops { margin-top: 58px; }
.collection-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.collection-location-bar { display: grid; grid-template-columns: minmax(280px, 1.2fr) minmax(210px, .8fr); gap: 12px 24px; align-items: end; margin-bottom: 22px; border: 1px solid var(--market-border); border-radius: 16px; padding: 16px 18px; background: var(--warm-surface); }
.collection-location-bar > div { display: grid; gap: 7px; }
.collection-location-bar label { color: var(--secondary-text); font-size: .8rem; font-weight: 800; }
.collection-location-bar input[type="text"] { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.collection-location-bar input[type="range"] { width: 100%; accent-color: var(--primary-green); }
.collection-location-bar p { grid-column: 1 / -1; margin: 0; color: var(--secondary-text); font-size: .8rem; }
.collection-location-bar .input-row { grid-template-columns: minmax(0, 1fr) auto; }

@media (max-width: 1050px) {
  .collection-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .collection-main { width: calc(100% - 32px); padding-top: 24px; }
  .collection-hero { grid-template-columns: 1fr; }
  .collection-hero img { max-height: 260px; min-height: 220px; }
  .collection-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .collection-location-bar { grid-template-columns: 1fr; }
  .collection-location-bar p { grid-column: auto; }
}
@media (max-width: 560px) {
  .collection-hero { border-radius: 22px; }
  .collection-hero > div { padding: 30px 22px; }
  .collection-hero h1 { font-size: clamp(2.5rem, 13vw, 3.5rem); }
  .collection-products, .collection-shops { margin-top: 42px; }
  .collection-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .collection-location-bar .input-row { grid-template-columns: 1fr; }
}

/* Seller product taxonomy controls must override the general full-width form inputs. */
.product-admin-form .category-picker-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 700px) {
  .discovery-tabs { margin-inline:-2px; }
  .discovery-tabs button { flex:0 0 auto; }
  .product-admin-form .category-picker-options { grid-template-columns: minmax(0, 1fr); }
}

.product-admin-form .category-picker-group,
.product-admin-form .category-picker-group > div {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.product-admin-form .category-picker-group > div {
  display: flex;
  flex-direction: column;
}

.product-admin-form .category-picker-group label,
.product-admin-form .attribute-picker-group .attribute-option {
  display: flex;
  grid-template-columns: none;
  width: 100%;
  min-width: 0;
  align-items: center;
}

.product-admin-form .category-picker-group input[type="checkbox"],
.product-admin-form .attribute-picker-group input[type="checkbox"] {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
}

.product-admin-form .category-picker-group label > span,
.product-admin-form .attribute-picker-group .attribute-option > span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Single-page seller product editor */
.product-editor-dialog{width:min(1080px,calc(100% - 28px));max-height:calc(100dvh - 28px)}
.product-editor-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px}.product-editor-header>div{display:grid;gap:3px}.product-editor-header h2{margin:0}.product-editor-header p{margin:0;color:var(--muted);font-size:.86rem}
.product-editor-layout{display:block;width:min(960px,100%);box-sizing:border-box;margin:0 auto;padding:8px 22px 32px}.product-editor-fields{gap:0}
.product-form-section{gap:14px;padding:28px 0;border-bottom:1px solid #dce5df}.product-form-section:last-child{border-bottom:0}
.product-about-section{padding-bottom:40px}
.product-section-heading{display:flex;gap:12px;align-items:flex-start;margin-bottom:4px}.product-section-heading>span{display:grid;width:28px;height:28px;flex:0 0 28px;place-items:center;border-radius:50%;color:var(--green);background:#e8f2ec;font-size:.78rem;font-weight:900}.product-section-heading h3{margin:1px 0 3px;color:var(--dark-green);font-size:1.08rem}.product-section-heading p{margin:0;color:var(--muted);font-size:.84rem;line-height:1.4}
.optional-indicator{margin-left:6px;color:var(--muted);font-size:.72rem;font-weight:600}
.product-field-row{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px;align-items:start}.product-field-row>label{padding-top:10px;font-weight:750}.product-field-row>div{display:grid;gap:7px}.product-field-row small{color:var(--muted);font-weight:500}.product-field-row input,.product-field-row textarea{width:100%}
.choice-field-row{align-items:start}.product-choice-label{padding-top:1px;font-size:1rem;font-weight:750;line-height:1.4}.choice-field-row>.variant-toggle-group{min-height:24px;align-items:center}.inventory-settings-rows{display:grid;gap:24px;padding:4px 0 7px}.inventory-settings-rows>.choice-field-row{padding:2px 0}
.product-editor-dialog .product-admin-form .product-field-row>label,.product-editor-dialog .product-admin-form .admin-split>label{font-size:1rem}
.product-field-row .admin-brand-own-check{padding-top:10px}
.barcode-fields{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px;align-items:center}.barcode-fields label{font-weight:750}
.product-image-editor{display:grid;grid-template-columns:1fr;gap:12px;align-items:start;padding:0;border:0;background:transparent}.admin-image-preview-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;min-height:0}.admin-image-preview-list:empty{display:none}.admin-image-preview-list .admin-image-preview:first-child{grid-column:auto}.admin-image-preview{position:relative;aspect-ratio:1;min-width:0}.admin-image-preview img{width:100%;height:100%;object-fit:cover}.admin-image-preview-actions{position:absolute;inset:auto 4px 4px;display:flex;justify-content:space-between;gap:3px;align-items:center}.admin-main-image-label,.admin-make-main,.admin-remove-image{border:0;border-radius:5px;padding:4px 6px;background:rgba(255,255,255,.94);font-size:.67rem}.image-upload-button{display:grid;width:100%;min-height:190px;box-sizing:border-box;place-content:center;justify-items:center;gap:8px;padding:24px;border:2px dashed #9fb4a7;border-radius:14px;text-align:center;background:#f7faf7;cursor:pointer}.image-upload-button:hover,.image-upload-button:focus-within,.image-upload-button.is-dragging{border-color:var(--dark-green);background:#f0f6f1}.image-upload-button strong{color:var(--dark-green);font-size:1rem}.image-upload-button span{color:var(--muted);font-size:.88rem}.admin-image-preview-list:not(:empty)+.image-upload-button{min-height:112px}.product-image-editor>#adminImageCount{text-align:center}.product-image-editor>#adminImageError{margin:0}
.admin-image-preview-actions .admin-make-main{border:1px solid rgba(28,58,45,.16);border-radius:6px;padding:5px 7px;color:var(--dark-green);background:#fff;box-shadow:0 1px 4px rgba(12,34,24,.22);font-weight:750}.admin-image-preview-actions .admin-make-main:hover,.admin-image-preview-actions .admin-make-main:focus-visible{color:#fff;background:var(--dark-green);text-decoration:none}
.variant-editor-section{display:grid;gap:13px;margin-top:4px;padding:16px 18px;border-left:3px solid #8cac96;background:#f7faf8}.variant-editor-heading h4{margin:0 0 3px}.variant-row{grid-template-columns:minmax(120px,1.2fr) minmax(120px,1fr) minmax(100px,.8fr) minmax(100px,.75fr) auto;padding:10px;background:#fff}.variant-row label{font-size:.73rem}
.compact-taxonomy-selector{position:relative}.compact-taxonomy-selector>summary{position:relative;list-style:none;border:1px solid #cbd8cf;border-radius:8px;padding:11px 38px 11px 13px;background:#fff;cursor:pointer;font-weight:700}.compact-taxonomy-selector>summary::-webkit-details-marker{display:none}.compact-taxonomy-selector>summary::after{content:"";position:absolute;top:50%;right:12px;width:10px;height:6px;transform:translateY(-50%);background-image:linear-gradient(45deg,transparent 50%,var(--leaf-dark) 50%),linear-gradient(135deg,var(--leaf-dark) 50%,transparent 50%);background-position:0 0,5px 0;background-size:5px 5px;background-repeat:no-repeat}.compact-taxonomy-popover{display:grid;gap:10px;margin-top:6px;border:1px solid var(--line);border-radius:9px;padding:12px;background:#fff;box-shadow:0 12px 30px rgba(22,50,38,.1)}.product-admin-form .category-picker-options{grid-template-columns:repeat(2,minmax(0,1fr));max-height:260px}.taxonomy-divider{height:1px;background:#e4eae6}.attribute-picker-groups{display:flex;flex-wrap:wrap;gap:8px}.product-admin-form .attribute-picker-group{display:contents}.product-admin-form .attribute-picker-group legend{width:100%;margin-top:5px;color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.05em}.product-admin-form .attribute-picker-group .attribute-option{width:auto;border:1px solid #d7e1da;border-radius:999px;padding:7px 10px;background:#fff}.taxonomy-suggest{justify-self:start}
.product-tags-row .taxonomy-suggest{margin-top:6px}
.product-admin-form .attribute-picker-group .attribute-option{position:relative;transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;user-select:none}.product-admin-form .attribute-picker-group .attribute-option:hover{border-color:#8cac96;background:#f0f6f1}.product-admin-form .attribute-picker-group .attribute-option.selected,.product-admin-form .attribute-picker-group .attribute-option:has(input:checked){border-color:var(--primary-green);color:#fff;background-color:var(--primary-green)}.product-admin-form .attribute-picker-group .attribute-option.selected:hover,.product-admin-form .attribute-picker-group .attribute-option:has(input:checked):hover{border-color:var(--dark-green);background-color:var(--dark-green)}.product-admin-form .attribute-picker-group .attribute-option:focus-within{outline:3px solid rgba(49,91,59,.22);outline-offset:2px}.product-admin-form .attribute-picker-group .attribute-option input[type="checkbox"]{position:absolute;width:1px;min-width:1px;max-width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.product-admin-form .attribute-picker-group .attribute-option.inactive{border-style:dashed}.product-admin-form .attribute-picker-group .attribute-option:has(input:disabled){cursor:not-allowed;opacity:.68}
.variant-pricing-note,.inventory-empty{margin:0;border:1px solid #dce6df;border-radius:8px;padding:12px;color:var(--muted);background:#f7faf8}
.product-fulfilment-notice { margin-top: 12px; }
.product-fulfilment-notice strong { color: var(--ink); }
.product-fulfilment-notice p, .inventory-fulfilment-empty { margin: 4px 0; }
.inventory-fulfilment-empty { color: var(--muted); font-size: .9rem; }
#productEditorDialog #adminImageFile { inset-inline-start:0; width:1px; }
#productFulfilmentRefresh { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; margin-top:8px; }
.product-save-footer > div:first-child { flex:1; }
.product-save-footer .admin-status { min-height:0; }
.inventory-settings-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}.stock-management-field{display:grid;gap:12px;font-size:1rem!important;font-weight:700}.stock-management-field select{max-width:280px}.inventory-by-location{display:grid;gap:14px}.inventory-location-group{display:grid;gap:12px;padding:16px 0;border-top:1px solid #dce5df}.inventory-location-group:first-child{margin-top:4px}.inventory-location-group h4{margin:0;color:var(--dark-green);font-size:1rem}.location-single-inventory label{display:grid;grid-template-columns:180px minmax(120px,220px);gap:18px;align-items:center}.location-single-inventory label>span{font-weight:750}.location-variant-table-wrap{max-width:560px;overflow-x:auto}.location-variant-table{width:100%;border-collapse:collapse}.location-variant-table th,.location-variant-table td{padding:9px 10px;border-bottom:1px solid #e5ebe7;text-align:left}.location-variant-table thead th{color:var(--muted);background:#f7faf8;font-size:.76rem}.location-variant-table tbody th{min-width:150px;font-size:.86rem}.location-variant-table td{width:210px}.inventory-cell{display:grid;gap:5px}.inventory-cell input,.inventory-cell select{width:100%;box-sizing:border-box}.inventory-explicit-status{color:#8a4b18;font-size:.75rem;font-weight:750}.inventory-explicit-status.sold{color:#8a352e}.location-fulfilment-summary{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px 18px;padding-top:10px;border-top:1px solid #e7ece9;color:var(--muted);font-size:.82rem}.location-fulfilment-summary>span{display:grid;gap:2px}.location-fulfilment-summary strong{color:var(--ink);font-weight:650}.location-fulfilment-summary small{font-size:.72rem}.location-fulfilment-summary .admin-text-action{font-size:.8rem}.location-fulfilment-customisation{display:grid;gap:10px;padding:11px 13px;border:1px solid #dce5df;border-radius:8px;background:#f8faf9}.location-fulfilment-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px}.location-fulfilment-controls label{display:inline-flex;align-items:center;gap:7px;color:var(--ink)}.location-fulfilment-controls input{width:auto;accent-color:var(--primary-green)}.fulfilment-mixed-note{margin:0;color:#755319;font-size:.78rem;line-height:1.45}.location-fulfilment-customisation>[data-use-location-defaults]{justify-self:start}
.inventory-settings-row>.inventory-choice-group{align-content:start}.inventory-settings-row>.inventory-choice-group legend{font-size:1rem;line-height:1.35;font-weight:700}.inventory-location-group h4{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 10px}.inventory-location-group h4 .location-fulfilment-summary{display:inline;padding:0;border:0;color:var(--muted);font-size:.82rem;font-weight:400}.inventory-fulfilment-action{display:flex;justify-content:flex-end;padding-top:2px}.inventory-fulfilment-action .admin-text-action{font-size:.82rem}
.inventory-cell input[data-inventory-cell]{width:140px;max-width:100%}
#singleProductPriceRow .input-prefix{width:140px;max-width:100%}
.inventory-by-location{gap:0}.inventory-location-group{gap:10px;padding:13px 0}.inventory-location-group:last-child{padding-bottom:7px}.inventory-location-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.inventory-location-heading>div{display:grid;gap:3px;min-width:0}.inventory-location-heading h4{display:block;margin:0}.inventory-location-heading .location-fulfilment-summary{display:inline-flex;align-items:center;justify-self:start;gap:6px;margin-left:-4px;padding:3px 5px;border:0;border-radius:6px;color:var(--muted);background:transparent;font:inherit;font-size:.78rem;font-weight:400;cursor:pointer;transition:color .15s ease,background-color .15s ease}.inventory-location-heading .location-fulfilment-summary:hover{color:var(--dark-green);background:#edf4ef}.inventory-location-heading .location-fulfilment-summary:focus-visible{outline:2px solid rgba(49,91,59,.35);outline-offset:2px}.fulfilment-check-icon,.fulfilment-neutral-icon{display:inline-grid;place-items:center;width:15px;height:15px;border-radius:50%;font-size:10px;font-weight:800;line-height:1}.fulfilment-check-icon{color:#fff;background:var(--primary-green)}.fulfilment-neutral-icon{color:#6f7d75;background:#e2e8e4}.fulfilment-summary-chevron{width:14px;height:14px;margin-left:1px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s ease}.location-fulfilment-summary[aria-expanded="true"] .fulfilment-summary-chevron{transform:rotate(180deg)}
.product-editor-footer{bottom:0;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);box-shadow:0 -8px 22px rgba(18,43,32,.05)}.product-editor-footer .admin-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.product-list-action{background:var(--primary-green)}
@media(max-width:700px){.product-editor-header{padding:15px 18px}.product-editor-header p{display:none}.product-editor-layout{padding:0 18px 20px}.product-form-section{padding:23px 0}.product-about-section{padding-bottom:34px}.product-field-row,.barcode-fields{grid-template-columns:1fr;gap:6px}.product-field-row>label,.product-field-row .admin-brand-own-check{padding-top:0}.product-field-spacer{display:none}.product-choice-label{padding-top:0}.product-image-editor{grid-template-columns:1fr}.admin-image-preview-list{grid-template-columns:repeat(3,minmax(0,1fr))}.image-upload-button,.product-image-editor>#adminImageCount{grid-column:1;grid-row:auto}.variant-row{grid-template-columns:1fr 1fr}.variant-row .variant-remove-button{grid-column:1/-1}.inventory-matrix-wrap{overflow:visible;border:0}.inventory-matrix,.inventory-matrix tbody{display:grid;gap:10px}.inventory-matrix thead{display:none}.inventory-matrix tr{display:grid;grid-template-columns:1fr 1fr;gap:9px;border:1px solid var(--line);border-radius:9px;padding:12px}.inventory-matrix th,.inventory-matrix td{display:grid;gap:4px;padding:0;border:0}.inventory-matrix tbody th{grid-column:1/-1;font-size:.95rem}.inventory-matrix td::before{content:attr(data-location-label);color:var(--muted);font-size:.7rem}.fulfilment-location-row{grid-template-columns:1fr 1fr}.fulfilment-location-row strong{grid-column:1/-1}.product-editor-footer{align-items:stretch;padding:12px 15px}.product-editor-footer:not(.product-save-footer) .admin-actions{display:grid;grid-template-columns:1fr 1fr}.product-editor-footer:not(.product-save-footer) .admin-danger-action{grid-column:1/-1}.product-admin-form .category-picker-options{grid-template-columns:1fr}}
@media(max-width:700px){.inventory-settings-row{grid-template-columns:1fr;gap:18px}.stock-management-field select{max-width:none}.location-single-inventory label{grid-template-columns:1fr;gap:6px}.location-variant-table-wrap{max-width:none;overflow:visible}.location-variant-table,.location-variant-table tbody{display:grid;gap:9px}.location-variant-table thead{display:none}.location-variant-table tr{display:grid;gap:7px;padding:11px;border:1px solid var(--line);border-radius:8px}.location-variant-table th,.location-variant-table td{display:grid;width:auto;min-width:0;padding:0;border:0}.location-variant-table td::before{content:attr(data-field-label);color:var(--muted);font-size:.72rem}.inventory-cell input[data-inventory-cell]{width:140px;max-width:100%}.location-fulfilment-summary{align-items:flex-start}.location-fulfilment-controls{align-items:flex-start}}

.taxonomy-suggestion-history { display: grid; gap: 8px; margin-top: 10px; }
.taxonomy-suggestion-history h4 { margin: 0; }
.taxonomy-suggestions-panel { display: grid; gap: 10px; margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: rgba(255,255,255,.72); }
.taxonomy-suggestions-panel h2,
.taxonomy-suggestions-panel h3 { margin: 0; }
.taxonomy-suggestions-panel > div { display: grid; gap: 8px; }
.taxonomy-suggestion-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: white; }
.taxonomy-suggestion-row > div { display: grid; min-width: 0; }
.taxonomy-suggestion-row span { color: var(--muted); font-size: .78rem; }
.taxonomy-suggestion-form { display: grid; gap: 14px; }
.taxonomy-suggestion-form #taxonomySuggestionAttributeFields { display: grid; gap: 14px; }
.taxonomy-suggestion-form #taxonomySuggestionAttributeFields[hidden] { display: none; }
.taxonomy-suggestion-form label { display: grid; gap: 6px; font-weight: 750; }
.taxonomy-suggestion-form input,
.taxonomy-suggestion-form select,
.taxonomy-suggestion-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.taxonomy-suggestion-form #taxonomySuggestionParentField select { background-color: #fff; }
.taxonomy-suggestion-form #taxonomySuggestionAttributeFields select[name="attribute_definition_choice"] { background-color: #fff; }
.taxonomy-suggestion-form small { color: var(--muted); font-weight: 500; }
.taxonomy-alternatives { border-radius: 9px; padding: 12px; background: #f3f7ef; }
.taxonomy-alternatives ul { margin: 6px 0 0; padding-left: 20px; }
.resolve-home-geography { justify-self: start; margin-top: -2px; }
.home-geography-status { min-height: 1.25rem; margin: 6px 0 0; }
.home-geography-results { display: grid; gap: 16px; margin-top: 8px; padding: 16px; border: 1px solid #d4e0db; border-radius: 12px; background: #f8fbfa; }
.home-geography-results[hidden] { display: none; }
#newShopLocationPanel [data-home-geography-status]:empty { display: none; }
#newShopLocationPanel .home-geography-question { margin: 0; font-size: 1rem; line-height: 1.4; }
#newShopLocationPanel [data-add-missing-geography] { justify-self: start; width: auto; min-height: 40px; padding: 8px 12px; border: 1px solid #cbd8d3; border-radius: 8px; background: #fff; color: var(--muted); font-size: 1rem; line-height: 1.4; font-weight: 600; }
#newShopLocationPanel .home-geography-choice { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px; border: 1px solid #d4e0db; border-radius: 9px; background: #fff; cursor: pointer; }
#newShopLocationPanel .home-geography-choice > span { padding: 0; background: transparent; }
#newShopLocationPanel .home-geography-choice input { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: var(--leaf); }
#newShopLocationPanel .home-geography-choice:has(input:checked) { border-color: #4f8d78; background: #edf7f2; }
#newShopLocationPanel .home-geography-choice:hover { border-color: #4f8d78; }
#newShopLocationPanel .home-geography-choice:focus-within { outline: 2px solid rgba(57,127,56,.4); outline-offset: 2px; }
.resolved-geography-hierarchy { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.resolved-geography-hierarchy span { display: grid; gap: 2px; padding: 10px; border-radius: 9px; background: #fff; }
.resolved-geography-hierarchy small { color: var(--muted); }
.home-geography-preview { margin: 0; padding: 12px; border-radius: 9px; background: #edf7f2; color: #285f4d; font-weight: 800; }
.onboarding-missing-area { display:grid; gap:10px; margin-top:4px; padding:14px; border:1px solid #d4e0db; border-radius:10px; background:#fff; }
.onboarding-missing-area[hidden] { display:none; }
.onboarding-missing-area p { margin:0; color:var(--muted); font-size:.88rem; }
.missing-geography-form { display: grid; gap: 10px; padding: 12px; border: 1px solid #d4e0db; border-radius: 10px; background: #fff; }
.missing-geography-form[hidden] { display: none; }
.missing-geography-form label { display: grid; gap: 5px; }
.missing-geography-form input,
.missing-geography-form select { width: 100%; border: 1px solid #c6d3c9; border-radius: 9px; padding: 9px 11px; font: inherit; }
@media (max-width:620px) { .resolved-geography-hierarchy { grid-template-columns: 1fr; } }

/* Compact marketplace sorting control. */
body .results-toolbar {
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  margin-left: auto;
  flex-direction: row;
  justify-content: flex-end;
  gap: 8px;
  padding: 7px 10px;
}
body .results-toolbar > label {
  margin-left: auto;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
body .results-toolbar > select {
  width: 158px;
  min-height: 36px;
  border-color: #c5d3c7;
  border-radius: 10px;
  padding: 7px 30px 7px 10px;
  color: var(--dark-green);
  background-color: #fff;
  font-size: .84rem;
  font-weight: 700;
}

@media (max-width: 560px) {
  body .results-toolbar { align-items: center; flex-direction: row; }
  body .results-toolbar > select { width: 150px; }
}

@media (min-width: 821px) {
  body .filters {
    box-sizing: border-box;
    max-height: calc(100dvh - 112px);
    padding: 0 8px 56px 0;
    scroll-padding-bottom: 56px;
  }
}

/* My Products: a photo-first working collection, not a marketplace table. */
.my-products-tabbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 16px;border-bottom:1px solid var(--line)}
.my-products-tabs{display:flex;align-self:stretch;gap:6px;margin:0}
.my-products-create-actions{isolation:isolate;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px}
#addProductsFromPhotoButton,#addProductButton{position:relative;min-height:42px;overflow:visible;border:0;padding:0;-webkit-user-select:none;user-select:none;caret-color:transparent;background:transparent;transform:none;transition:none;box-shadow:none}
#addProductsFromPhotoButton{width:246.08px}#addProductButton{width:145.16px}
#addProductsFromPhotoButton::before,#addProductsFromPhotoButton::after,#addProductButton::before,#addProductButton::after{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border:1px solid #397f38;border-radius:7px;color:#fff;background:#397f38;content:"+ " attr(aria-label);pointer-events:none;backface-visibility:hidden;will-change:opacity,transform;transition:opacity 160ms ease,transform 160ms ease}
#addProductsFromPhotoButton::before,#addProductButton::before{z-index:1;opacity:1;transform:translate3d(0,0,0)}
#addProductsFromPhotoButton::after,#addProductButton::after{z-index:2;border-color:#2d6e36;opacity:0;transform:translate3d(0,0,0);box-shadow:0 8px 18px rgba(16,37,29,.15)}
#addProductsFromPhotoButton:hover,#addProductButton:hover,#addProductsFromPhotoButton:focus-visible,#addProductButton:focus-visible{border:0;background:transparent;transform:none;box-shadow:none}
#addProductsFromPhotoButton:hover::before,#addProductButton:hover::before,#addProductsFromPhotoButton:focus-visible::before,#addProductButton:focus-visible::before{opacity:0}
#addProductsFromPhotoButton:hover::after,#addProductButton:hover::after,#addProductsFromPhotoButton:focus-visible::after,#addProductButton:focus-visible::after{opacity:1;transform:translate3d(0,-2px,0)}
#addProductsFromPhotoButton:focus-visible,#addProductButton:focus-visible{outline:3px solid rgba(57,127,56,.28);outline-offset:2px}
#addProductsFromPhotoButton:active::after,#addProductButton:active::after{transform:translate3d(0,0,0);box-shadow:0 3px 8px rgba(16,37,29,.1)}
.seller-workspace-toolbar.seller-page-heading{margin-bottom:16px;padding-bottom:16px}
.seller-page-heading h1{font-family:inherit;font-weight:800;letter-spacing:-.025em;line-height:1.1}
.my-products-tabs button{min-height:44px;padding:9px 14px;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);font:inherit;font-weight:750;cursor:pointer}
.my-products-tabs button.active{border-color:var(--dark-green);color:var(--dark-green)}
.my-products-tabs span{font-size:.78rem;font-weight:650}
.marketplace-status-filter{display:flex;width:max-content;align-items:center;gap:3px;margin:0;padding:3px;border:1px solid var(--line);border-radius:9px;background:#f5f7f3}.marketplace-status-filter>span{padding:0 8px;color:var(--muted);font-size:.76rem;font-weight:750}.marketplace-status-filter button{min-height:34px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:var(--muted);font:inherit;font-size:.8rem;font-weight:750;cursor:pointer}.marketplace-status-filter button[aria-pressed="true"]{background:#fff;color:var(--dark-green);box-shadow:0 1px 4px rgba(22,54,43,.14)}
.my-products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.my-product-card{position:relative;display:flex;overflow:hidden;flex-direction:column;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 2px 12px rgba(22,54,43,.06)}.my-product-card:hover{border-color:#afc0b3;box-shadow:0 4px 16px rgba(22,54,43,.1)}.my-product-card:has(.my-product-card-edit-target:focus-visible){outline:3px solid rgba(57,127,56,.22);outline-offset:2px}.my-product-card-edit-target{position:absolute;z-index:2;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:14px;background:transparent;cursor:pointer}.my-product-card-edit-target:focus{outline:0}
.my-product-image{position:relative;aspect-ratio:1;min-height:0;border-radius:13px 13px 0 0;background:#f3f3ed}.my-product-image>img{display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover}
.my-product-draft-banner{position:absolute;z-index:1;top:0;right:0;left:0;padding:7px 44px 7px 12px;border-radius:13px 13px 0 0;background:rgba(223,227,225,.94);color:#4e5752;font-size:.86rem;font-weight:900;letter-spacing:.12em;text-align:left}
.my-product-variant-badge{z-index:3;right:10px;bottom:10px;max-width:calc(100% - 20px)}
.my-product-content{position:relative;z-index:1;display:grid;gap:4px;padding:10px 12px 11px}.my-product-content h3{display:-webkit-box;min-height:2.5em;margin:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:var(--ink);font-size:.94rem;line-height:1.25}.my-product-card-meta{display:flex;min-width:0;align-items:center;gap:6px}.my-product-price{flex:none;font-size:.9rem;line-height:1.25}.my-product-price.missing{color:var(--muted);font-weight:700}.my-product-card-status{display:flex;min-width:0;flex:1;justify-content:flex-end;gap:4px}.my-product-status-badge,.my-product-stock-badge{display:inline-block;max-width:100%;overflow:hidden;padding:3px 6px;border-radius:999px;background:#eef1ef;color:#56615b;font-size:.68rem;font-weight:750;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.my-product-status-badge{flex:none}.my-product-status-badge.listed{background:#e7f3e9;color:#24613a}.my-product-status-badge.draft,.my-product-status-badge.archived{background:#e5e8e6;color:#4e5752}.my-product-stock-badge{min-width:0;flex:0 1 auto;background:#f2f5f2;color:#326047}.my-product-stock-badge.attention{background:#f8eee9;color:#8a492d}.my-product-card-menu{position:absolute;z-index:3;top:8px;right:8px}.my-product-card-menu-trigger{display:grid;width:32px;height:32px;place-items:center;padding:0;border:1px solid rgba(207,217,209,.9);border-radius:50%;background:rgba(255,255,255,.94);color:var(--dark-green);box-shadow:0 2px 8px rgba(22,54,43,.14);font:inherit;font-size:.92rem;font-weight:800;cursor:pointer}.my-product-card-menu-trigger:hover,.my-product-card-menu-trigger:focus-visible,.my-product-card-menu-trigger[aria-expanded="true"]{background:#fff;outline:2px solid rgba(57,127,56,.22);outline-offset:1px}.my-product-card-menu-popover{position:fixed;inset:auto;display:none;width:max-content;min-width:154px;max-width:min(230px,calc(100vw - 16px));box-sizing:border-box;margin:0;padding:4px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);box-shadow:0 8px 24px rgba(22,54,43,.18);overflow-y:auto;visibility:hidden}.my-product-card-menu-popover:popover-open{display:grid}.my-product-card-menu-popover.is-positioned{visibility:visible}.my-product-card-menu-popover button{width:100%;min-height:34px;padding:7px 9px;border:0;border-radius:6px;background:#fff;color:inherit;font:inherit;font-size:.8rem;font-weight:650;text-align:left;cursor:pointer}.my-product-card-menu-popover button:hover,.my-product-card-menu-popover button:focus-visible{background:#eef4ef;outline:0}
.product-action-menu{position:relative}.product-action-menu summary{display:grid;width:44px;height:44px;place-items:center;list-style:none;border-radius:50%;cursor:pointer}.product-action-menu summary::-webkit-details-marker{display:none}.product-action-menu div{position:absolute;z-index:5;right:0;display:grid;min-width:175px;padding:6px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(22,54,43,.18)}.product-action-menu button{min-height:42px;padding:8px 10px;border:0;border-radius:7px;background:#fff;text-align:left;font:inherit;cursor:pointer}.product-action-menu button:hover,.product-action-menu button:focus{background:#f0f5f1}
.my-products-empty{display:grid;justify-items:start;gap:10px;padding:48px 20px;border:1px dashed var(--line);border-radius:14px;background:#fafbf8}.my-products-empty p{margin:0;color:var(--muted)}
@media(max-width:620px){.my-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.my-product-content{padding:9px 10px 10px}.my-product-content h3{font-size:.9rem}.my-product-card-meta{gap:4px}.my-product-price{font-size:.84rem}.my-product-card-status{gap:3px}.my-product-status-badge,.my-product-stock-badge{padding:2px 4px;font-size:.62rem}.my-products-tabbar{align-items:stretch;flex-wrap:wrap;gap:8px}.my-products-tabs{flex:1 1 100%;overflow-x:auto}.my-products-create-actions{flex:1 1 100%;padding:0 0 10px}}
@media(max-width:340px){.my-products-grid{grid-template-columns:1fr}}
.ai-photo-dialog{width:min(94vw,1000px);max-height:min(92vh,900px);padding:0}.ai-photo-dialog::backdrop{background:rgba(14,35,27,.58)}
.ai-photo-dialog-inner{display:grid;max-height:90vh;overflow:auto}.ai-photo-header{position:sticky;z-index:3;top:0;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 24px;border-bottom:1px solid var(--line);background:#fff}.ai-photo-header>div{min-width:0}.ai-photo-header .dialog-close{position:static;flex:0 0 38px}.ai-photo-header h2,.ai-photo-header p{margin:0}
.ai-photo-upload,.ai-photo-review,.ai-photo-processing,.ai-photo-result-state,.ai-photo-success{display:grid;gap:20px;padding:24px}.ai-photo-upload h3,.ai-photo-upload p,.ai-photo-review h3,.ai-photo-review p,.ai-photo-processing h3,.ai-photo-processing p,.ai-photo-result-state h3,.ai-photo-result-state p,.ai-photo-success h3,.ai-photo-success p{margin:0}
.ai-photo-dropzone{display:grid;min-height:190px;place-content:center;justify-items:center;gap:8px;padding:24px;border:2px dashed #9fb4a7;border-radius:14px;background:#f7faf7;color:var(--dark-green);text-align:center;cursor:pointer}.ai-photo-dropzone:hover,.ai-photo-dropzone:focus-within{border-color:var(--dark-green);background:#f0f6f1}.ai-photo-dropzone span{color:var(--muted);font-size:.88rem}
.ai-photo-dropzone .ai-photo-mobile-label{display:none}
@media(max-width:620px){.ai-photo-dropzone .ai-photo-desktop-label{display:none}.ai-photo-dropzone .ai-photo-mobile-label{display:block}}
.ai-photo-selected-preview{display:grid;gap:8px;margin:0}.ai-photo-selected-preview img{width:100%;max-height:340px;border-radius:12px;object-fit:contain;background:#f3f3ed}.ai-photo-selected-preview figcaption{display:flex;align-items:center;justify-content:flex-end;gap:12px;color:var(--muted);font-size:.86rem}
.ai-photo-selected-preview figcaption span{overflow-wrap:anywhere}
.ai-photo-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:4px}.ai-photo-notice,.ai-photo-error{padding:11px 13px;border-radius:9px}.ai-photo-notice{background:#eef6f1;color:#28614e}.ai-photo-error{background:#fff0ed;color:#8a352e}
.ai-photo-processing{min-height:440px;place-content:center;justify-items:center;text-align:center}.ai-photo-processing>img{width:min(100%,520px);max-height:260px;border-radius:12px;object-fit:contain;background:#f3f3ed}.ai-photo-processing>p{max-width:620px;color:var(--muted)}.ai-photo-processing label{display:grid;width:min(100%,420px);grid-template-columns:1fr auto;gap:6px;text-align:left;font-size:.82rem;font-weight:750}.ai-photo-processing progress{grid-column:1/-1;width:100%}.ai-photo-spinner{width:38px;height:38px;border:4px solid #dce8df;border-top-color:var(--dark-green);border-radius:50%;animation:ai-photo-spin .9s linear infinite}@keyframes ai-photo-spin{to{transform:rotate(360deg)}}
.ai-photo-result-state,.ai-photo-success{min-height:360px;place-content:center;justify-items:center;text-align:center}.ai-photo-result-state>div,.ai-photo-created-links{display:flex;flex-wrap:wrap;justify-content:center;gap:9px}.ai-photo-success>span{display:grid;width:54px;height:54px;place-items:center;border-radius:50%;background:#e7f3e9;color:#24613a;font-size:1.8rem;font-weight:850}
.ai-photo-comparison{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.ai-photo-comparison figure{display:grid;gap:7px;margin:0}.ai-photo-comparison img{width:100%;aspect-ratio:4/3;border-radius:12px;object-fit:contain;background:#f3f3ed}.ai-photo-comparison figcaption{color:var(--muted);font-size:.82rem;font-weight:700}
.ai-photo-selection-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.ai-photo-selection-toolbar span{display:flex;gap:12px}.ai-photo-candidate-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}.ai-photo-candidate{position:relative;display:grid;gap:8px;padding:10px;border:2px solid transparent;border-radius:12px;background:#f7f8f5;cursor:pointer}.ai-photo-candidate.selected{border-color:#4f8064;background:#f2f7f3}.ai-photo-candidate>input{position:absolute;z-index:2;top:16px;left:16px;width:20px;height:20px;accent-color:var(--dark-green)}.ai-photo-cutout{display:grid;aspect-ratio:1;place-items:center;overflow:hidden;border-radius:9px;background-color:#f5f5f2;background-image:linear-gradient(45deg,#e5e7e2 25%,transparent 25%),linear-gradient(-45deg,#e5e7e2 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e5e7e2 75%),linear-gradient(-45deg,transparent 75%,#e5e7e2 75%);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px}.ai-photo-cutout img{width:100%;height:100%;object-fit:contain}.ai-photo-cutout>span{padding:12px;color:var(--muted);font-size:.78rem}.ai-photo-candidate>strong{text-align:center;font-size:.9rem}
@media(max-width:620px){.my-products-create-actions{width:100%;justify-content:stretch}.my-products-create-actions button{flex:1 1 180px}.ai-photo-header,.ai-photo-upload,.ai-photo-review,.ai-photo-processing,.ai-photo-result-state,.ai-photo-success{padding:18px}.ai-photo-comparison{grid-template-columns:1fr}.ai-photo-candidate-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ai-photo-selection-toolbar{align-items:flex-start;flex-direction:column}.ai-photo-footer{align-items:stretch;flex-direction:column-reverse}.ai-photo-footer button{width:100%;min-height:48px}}
@media(max-width:390px){.ai-photo-candidate-grid{grid-template-columns:1fr}}
.my-products-filters{position:static;flex:none;margin:0}.my-products-filters>summary{display:flex;min-height:42px;align-items:center;gap:7px;padding:7px 11px;list-style:none;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--dark-green);font-size:.82rem;font-weight:780;cursor:pointer}.my-products-filters>summary::-webkit-details-marker{display:none}.my-products-filters>summary:hover{border-color:#aebfb2;background:#fafcf9}.my-products-filters>summary:focus-visible{outline:2px solid rgba(57,127,56,.45);outline-offset:2px}.product-filter-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}.product-filter-chevron{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s ease}.my-products-filters[open] .product-filter-chevron{transform:rotate(180deg)}#activeProductFilterCount{display:inline-grid;min-width:19px;height:19px;place-items:center;padding:0 5px;border-radius:999px;background:var(--dark-green);color:#fff;font-size:.69rem}#activeProductFilterCount[hidden]{display:none}
.my-products-filter-panel{position:absolute;z-index:40;top:calc(100% + 7px);right:0;left:0;display:grid;gap:14px;padding:15px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 30px rgba(22,54,43,.17)}.product-filter-primary-grid{display:grid;grid-template-columns:minmax(170px,.8fr) minmax(230px,1fr) minmax(250px,1.25fr);gap:14px;padding-bottom:14px;border-bottom:1px solid var(--line)}.product-filter-secondary-grid{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:12px}.my-products-filter-panel label{display:grid;align-content:start;gap:5px;font-size:.8rem;font-weight:750}.my-products-filter-panel select{width:100%;min-height:40px}.my-products-filter-panel fieldset{min-width:0;margin:0;border:0;padding:0}.my-products-filter-panel legend{margin-bottom:5px;color:var(--ink);font-size:.8rem;font-weight:750}.product-marketplace-filter-field .marketplace-status-filter{width:100%}.product-marketplace-filter-field .marketplace-status-filter button{flex:1}.shared-location-filter>[data-location-filter-options]{display:grid;grid-template-columns:auto minmax(150px,1fr);align-items:start;gap:8px}.shared-location-filter .table-menu-options{display:flex}.shared-location-filter .table-location-options{grid-template-columns:repeat(2,minmax(110px,1fr));max-height:112px;border:1px solid var(--line);border-radius:8px;padding:8px}.shared-location-filter .table-location-options legend{display:none}.product-needs-attention{display:flex!important;align-items:center;gap:16px}.product-needs-attention legend{float:left;margin:0 4px 0 0}.product-needs-attention label{display:flex;align-items:center;gap:7px;font-weight:650}.product-needs-attention input{width:17px;height:17px;accent-color:var(--dark-green)}
.product-filter-chips{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0 0 7px}.product-filter-chips>[data-product-filter-chips]{display:flex;flex-wrap:wrap;gap:6px}.product-filter-chips [data-filter-chip]{display:inline-flex;min-height:30px;align-items:center;gap:7px;padding:4px 8px;border:1px solid #c5d4c9;border-radius:999px;background:#f2f6f2;color:var(--dark-green);font:inherit;font-size:.74rem;font-weight:700;cursor:pointer}.product-filter-chips [data-filter-chip]:hover{border-color:#94ae9a;background:#eaf2eb}.product-filter-chips [data-filter-chip]:focus-visible{outline:2px solid rgba(57,127,56,.45);outline-offset:2px}
.listing-feedback:empty{display:none}
.my-products-toast-region{position:fixed;z-index:100;right:24px;bottom:max(24px,env(safe-area-inset-bottom));display:flex;width:min(390px,calc(100vw - 32px));flex-direction:column;align-items:stretch;gap:10px;pointer-events:none}
.my-products-toast{display:grid;grid-template-columns:22px minmax(0,1fr) 30px;align-items:start;gap:10px;box-sizing:border-box;padding:13px 10px 13px 14px;border:1px solid #c8d8cc;border-radius:12px;background:rgba(255,255,255,.98);color:var(--ink);box-shadow:0 10px 30px rgba(16,47,41,.18);font-size:.86rem;line-height:1.45;pointer-events:auto;animation:my-products-toast-in .2s ease-out}
.my-products-toast.error{border-color:#e2c2bc;background:#fffdfc}.my-products-toast-icon{display:grid;width:22px;height:22px;place-items:center;color:#317049}.my-products-toast.error .my-products-toast-icon{color:#a04439}.my-products-toast-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.my-products-toast-message{padding-top:1px;font-weight:650}.my-products-toast-dismiss{display:grid;width:30px;height:30px;place-items:center;margin:-4px -2px 0 0;padding:0;border:0;border-radius:7px;background:transparent;color:var(--muted);font:inherit;font-size:1.25rem;line-height:1;cursor:pointer}.my-products-toast-dismiss:hover{background:#eef3ef;color:var(--ink)}.my-products-toast-dismiss:focus-visible{outline:2px solid rgba(57,127,56,.45);outline-offset:1px}.my-products-toast.is-refreshed{transform:scale(1.01)}.my-products-toast.is-leaving{animation:my-products-toast-out .2s ease-in forwards}@keyframes my-products-toast-in{from{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes my-products-toast-out{to{transform:translateY(6px);opacity:0}}
@media(max-width:620px){.my-products-toast-region{right:12px;bottom:max(12px,env(safe-area-inset-bottom));left:12px;width:auto}.my-products-toast{width:100%}}
@media(prefers-reduced-motion:reduce){.my-products-toast,.my-products-toast.is-leaving{animation:none}.my-products-toast.is-refreshed{transform:none}}
.duplicate-product-notice-dialog{width:min(92vw,430px);padding:0}.duplicate-product-notice-dialog>div{display:grid;gap:12px;padding:24px}.duplicate-product-notice-dialog h2,.duplicate-product-notice-dialog p{margin:0}.duplicate-product-notice-dialog p{color:var(--muted)}
.my-product-channel{width:max-content;margin:3px 0 0;padding:4px 7px;border-radius:6px;background:#eef6f1;color:#28614e;font-size:.76rem;font-weight:750}
.marketplace-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.marketplace-products-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.marketplace-products-table th {
  padding: 10px 8px;
  color: var(--muted);
  background: #fbfdf8;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}
.table-header-label{display:inline-flex;align-items:center}.table-header-menu{position:relative}.table-header-label .table-header-menu summary{position:relative;display:inline-flex;height:24px;align-items:center;gap:5px;padding:0 2px;list-style:none;border:0;border-radius:4px;background:transparent;color:var(--muted);cursor:pointer}.table-header-menu summary::-webkit-details-marker{display:none}.table-header-label .table-header-menu summary:hover,.table-header-label .table-header-menu[open] summary{background:#eef3ef;color:var(--dark-green)}.table-header-label .table-header-menu summary:focus-visible{outline:2px solid rgba(57,127,56,.45);outline-offset:2px;color:var(--dark-green)}.table-header-control-label{line-height:1}.table-header-chevron{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s ease}.table-header-menu[open] .table-header-chevron{transform:rotate(180deg)}.table-header-label .table-header-menu.active summary{color:var(--dark-green)}.table-header-label .table-header-menu.active summary::after{position:absolute;top:1px;right:-2px;width:4px;height:4px;border-radius:50%;background:#39834d;content:""}.table-header-menu>div{position:absolute;z-index:30;top:calc(100% + 5px);left:0;display:grid;width:max-content;min-width:210px;max-width:min(310px,80vw);gap:8px;padding:9px;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:0 10px 28px rgba(22,54,43,.2);font-size:.78rem;font-weight:650;text-transform:none}.table-header-menu[data-table-header-menu="location"]>div{right:0;left:auto;min-width:260px}.table-menu-options{display:grid;gap:2px}.table-menu-options button{min-height:34px;padding:7px 9px;border:0;border-radius:6px;background:#fff;color:var(--dark-green);font:inherit;font-size:.78rem;text-align:left;cursor:pointer}.table-menu-options button:hover,.table-menu-options button:focus-visible,.table-menu-options button[aria-pressed="true"]{background:#eef4ef}.table-menu-options button[aria-pressed="true"]{font-weight:850}.table-location-options{display:grid;max-height:190px;gap:7px;overflow:auto;border:0;border-top:1px solid var(--line);padding:8px 4px 2px}.table-location-options legend{padding-top:7px;color:var(--muted);font-size:.72rem}.table-location-options label{display:flex;align-items:center;gap:7px}.table-location-options input{width:17px;height:17px;accent-color:var(--dark-green)}.card-location-filter>div{right:0;left:auto}.card-location-filter>summary{display:grid;width:auto;min-width:96px;height:42px;grid-template-columns:1fr auto;gap:8px;padding:0 11px;border:1px solid var(--line);background:#fff;color:var(--dark-green);font-weight:750}.additional-locations{display:block;margin-top:5px;color:var(--muted);font-size:.7rem}

.marketplace-products-table td {
  padding: 9px 8px 13px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.marketplace-products-table th:first-child,
.marketplace-products-table td:first-child { padding-left: 16px; }
.marketplace-products-table th:last-child,
.marketplace-products-table td:last-child { padding-right: 16px; }

.marketplace-product-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.marketplace-product-cell img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 7px;
  object-fit: cover;
  background: #f3f3ed;
}

.marketplace-product-cell div { display: grid; min-width: 0; gap: 2px; }
.marketplace-product-cell strong,
.marketplace-product-cell .managed-product-title-link,
.marketplace-product-cell span,
.marketplace-product-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marketplace-product-cell span,
.marketplace-product-cell small { color: var(--muted); font-size: 0.78rem; }
.marketplace-price { min-width: 82px; font-size: 0.92rem; font-weight: 800; }
.marketplace-stock-list { display: grid; gap: 6px; min-width: 145px; }
.marketplace-stock-list label { display: grid; grid-template-columns: minmax(70px, 1fr) 72px; align-items: center; gap: 7px; font-size: 0.76rem; }
.marketplace-stock-list input { width: 72px; height: 34px; border: 1px solid #cfd9d1; border-radius: 6px; padding: 5px 7px; }
.marketplace-stock-list small { grid-column: 2; color: var(--muted); font-size: 0.68rem; }
.marketplace-availability-list>div{display:grid;grid-template-columns:minmax(80px,1fr) auto;align-items:center;gap:10px;font-size:.76rem}.marketplace-availability-list strong{font-size:.76rem;white-space:nowrap}
.marketplace-product-parent td{background:#fff}.marketplace-variant-row td{background:#f8faf7;border-top-color:#dfe7e1}.marketplace-variant-row td:nth-child(2){padding-left:30px}.marketplace-variant-cell{display:flex;align-items:center;gap:9px;min-width:190px}.marketplace-variant-cell>div{display:grid;min-width:0;gap:2px}.marketplace-variant-cell strong,.marketplace-variant-cell small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.marketplace-variant-cell strong{color:var(--dark-green);font-size:.84rem}.marketplace-variant-cell small{color:var(--muted);font-size:.74rem}.variant-branch{width:18px;height:14px;flex:0 0 18px;border-bottom:1px solid #b9c8bd;border-left:1px solid #b9c8bd;border-bottom-left-radius:5px}.marketplace-variant-row.variant-filter-context{opacity:.78}

.marketplace-row-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 9px;
  color: var(--leaf-dark);
  background: white;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.marketplace-row-button.deactivate-listing-button,
.marketplace-row-button.delete-listing-button { color: #9b4038; }
.marketplace-row-button.activate-listing-button { color: #245b2a; border-color: #a9c8ae; }
.managed-product-title-link{max-width:100%;padding:0;border:0;background:transparent;color:var(--dark-green);font:inherit;font-weight:800;text-align:left;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;cursor:pointer}.managed-product-title-link:hover,.managed-product-title-link:focus-visible{text-decoration-color:currentColor}.managed-table-button-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:250px}.marketplace-actions-menu{width:max-content}.marketplace-actions-menu summary{width:38px;height:34px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--leaf-dark);font-size:1rem;font-weight:800}.marketplace-actions-menu>div{top:calc(100% + 4px);bottom:auto}.marketplace-actions-menu .delete-listing-button{color:#9b4038}

.product-list-controls{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 7px}.product-list-controls .listing-search{min-width:160px;flex:1 1 320px}.product-list-controls .listing-search input{width:100%;min-height:42px}.product-list-controls .listing-result-count{flex:none;white-space:nowrap}.product-filters-reset{display:inline-flex;min-height:30px;align-items:center;gap:5px;flex:none;padding:3px 5px;border:0;border-radius:5px;background:transparent;color:var(--muted);font:inherit;font-size:.76rem;font-weight:750;cursor:pointer}.product-filters-reset:hover{background:#eef3ef;color:var(--dark-green)}.product-filters-reset:focus-visible{outline:2px solid rgba(57,127,56,.45);outline-offset:2px;color:var(--dark-green)}.product-view-switcher{display:flex;flex:none;padding:3px;border:1px solid var(--line);border-radius:9px;background:#f5f7f3}.product-view-switcher button{display:grid;width:38px;height:34px;place-items:center;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}.product-view-switcher button[aria-pressed="true"]{background:#fff;color:var(--dark-green);box-shadow:0 1px 4px rgba(22,54,43,.16)}.product-view-switcher svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2}.product-view-switcher svg rect{fill:currentColor;stroke:none}
.product-bulk-toolbar{display:flex;align-items:center;gap:8px;min-height:42px;margin:0 0 7px;padding:7px 10px;border:1px solid #b8cbbd;border-radius:9px;background:#f2f7f3}.product-bulk-toolbar strong{margin-right:auto}.product-bulk-toolbar button{min-height:34px}.managed-products-table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:9px;background:#fff}.managed-products-table{width:100%;min-width:760px;border-collapse:collapse}.managed-products-table th{padding:10px 12px;background:#fbfdf8;color:var(--muted);font-size:.72rem;font-weight:800;text-align:left;white-space:nowrap}.managed-products-table td{padding:10px 12px;border-top:1px solid var(--line);vertical-align:middle}.managed-products-table .selection-cell{width:42px;padding-right:4px}.managed-products-table input[type="checkbox"],.marketplace-products-table .selection-cell input{width:18px;height:18px;accent-color:var(--dark-green)}.managed-products-table .marketplace-product-cell{min-width:280px}.managed-product-date{min-width:128px;white-space:nowrap}.managed-date-unavailable{color:var(--muted)}.archive-date-inconsistent .managed-date-unavailable{color:#8a4b18;font-weight:800}.managed-table-thumbnail{width:52px;height:52px;border-radius:7px;background:#f3f3ed;object-fit:cover}.managed-product-table-item{display:flex;align-items:center;gap:12px;min-width:250px}.managed-product-table-item>div{display:grid;min-width:0;gap:2px}.managed-product-table-item .managed-product-title-link,.managed-product-table-item span,.managed-product-table-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.managed-product-table-item span,.managed-product-table-item small{color:var(--muted);font-size:.78rem}.managed-listing-status{display:inline-block;width:max-content;padding:4px 8px;border-radius:999px;font-size:.75rem;font-weight:800}.managed-listing-status.listed{background:#e7f3e9;color:#24613a}.managed-listing-status.not-listed{background:#eef1ef;color:#56615b}.bulk-product-dialog{width:min(92vw,720px);max-height:90vh;padding:0}.bulk-product-dialog form{display:grid;max-height:88vh}.bulk-product-body{display:grid;gap:16px;overflow:auto;padding:20px 24px}.bulk-product-body>p{margin:0}.bulk-edit-field{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px 14px;padding:16px;border:1px solid var(--line);border-radius:10px}.bulk-edit-field legend{padding:0 5px;font-weight:800}.bulk-edit-field label{display:grid;gap:5px;font-size:.82rem;font-weight:700}.bulk-edit-field small{grid-column:1/-1;color:var(--muted)}.bulk-edit-field select{width:100%}.bulk-edit-summary{padding:14px;border-radius:9px;background:#f2f7f3}.bulk-edit-summary h3,.bulk-edit-summary p,.bulk-edit-summary ul{margin-top:0}.bulk-edit-summary p:last-child,.bulk-edit-summary ul:last-child{margin-bottom:0}
@media(max-width:900px){.product-filter-primary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shared-location-filter{grid-column:1/-1}.product-filter-secondary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.marketplace-status-filter{max-width:100%;overflow-x:auto}.product-list-controls{gap:8px}.product-list-controls .listing-search{flex-basis:100%}.product-list-controls .listing-result-count{margin-right:auto;font-size:.76rem}.my-products-filter-panel{max-height:min(70vh,560px);overflow:auto}.product-filter-primary-grid,.product-filter-secondary-grid{grid-template-columns:1fr}.shared-location-filter{grid-column:auto}.shared-location-filter>[data-location-filter-options]{grid-template-columns:1fr}.shared-location-filter .table-location-options{grid-template-columns:1fr}.product-needs-attention{align-items:flex-start;flex-direction:column;gap:8px}.product-filter-chips{align-items:flex-start}.product-bulk-toolbar{width:100%;flex-wrap:wrap}.product-bulk-toolbar strong{width:100%}.managed-products-table-wrap{overflow-x:auto}.bulk-edit-field{grid-template-columns:1fr}.bulk-edit-field small{grid-column:auto}.marketplace-products-table .selection-cell{display:block;grid-column:1/-1;padding:0 0 8px}.marketplace-products-table td:nth-child(2){display:block;padding-left:0}.marketplace-products-table td:nth-child(2)::before{display:none}}

@media(max-width:620px){
  .my-products-tabs button{white-space:nowrap}
  .marketplace-table-wrap{overflow:visible;border:0;background:transparent}
  .marketplace-products-table,.marketplace-products-table tbody{display:grid;min-width:0;gap:10px}
  .marketplace-products-table thead{display:block;margin-bottom:2px}
  .marketplace-products-table thead tr{display:flex;flex-wrap:wrap;gap:5px;padding:0;border:0;background:transparent}
  .marketplace-products-table thead th{display:none;padding:0;background:transparent}
  .marketplace-products-table thead th.configurable-heading{display:block}
  .marketplace-products-table thead .table-header-menu summary{min-width:0;height:32px;gap:5px;padding:0 6px}
  .marketplace-products-table thead .table-header-control-label{font-size:0}.marketplace-products-table thead .table-header-control-label::after{content:attr(data-short-label);font-size:.72rem}
  .marketplace-products-table thead .table-header-menu>div{right:auto;left:0}.marketplace-products-table thead th:nth-last-child(-n+4) .table-header-menu>div{right:0;left:auto}
  .marketplace-products-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:13px;border:1px solid var(--line);border-radius:8px;background:#fff}
  .marketplace-products-table td{display:grid;grid-template-columns:110px minmax(0,1fr);grid-column:1/-1;gap:8px;padding:7px 0;border:0}
  .marketplace-products-table td::before{content:attr(data-label);color:var(--muted);font-size:.74rem;font-weight:750}
  .marketplace-products-table td:first-child{display:block;padding-left:0}
  .marketplace-products-table td:first-child::before{display:none}
  .marketplace-products-table td:last-child{padding-right:0}
  .marketplace-stock-list{min-width:0}
  .marketplace-product-cell{min-width:0}
  .marketplace-product-cell img{width:52px;height:52px;flex-basis:52px}
  .marketplace-products-table td[data-label="Edit"],.marketplace-products-table td[data-label="Marketplace"],.marketplace-products-table td[data-label="Actions"]{display:block;grid-column:auto;padding:10px 5px 0 0}
  .marketplace-products-table td[data-label="Edit"]::before,.marketplace-products-table td[data-label="Marketplace"]::before,.marketplace-products-table td[data-label="Actions"]::before{display:none}
  .marketplace-products-table td[data-label="Actions"]{grid-column:2;justify-self:end;padding-right:0}
  .marketplace-actions-menu>div{right:0;top:auto;bottom:calc(100% + 4px)}
  .marketplace-products-table .marketplace-product-group{gap:6px}
  .marketplace-products-table .marketplace-variant-row{margin-left:20px;border-color:#dbe5de;background:#f8faf7}
  .marketplace-products-table .marketplace-variant-row .selection-cell{display:none}
  .marketplace-products-table .marketplace-variant-row td:nth-child(2){display:block;padding-left:0}
  .marketplace-products-table .marketplace-variant-row td:nth-child(2)::before{display:none}
  .marketplace-products-table .marketplace-variant-row td[data-label="Edit"],.marketplace-products-table .marketplace-variant-row td[data-label="Actions"]{display:none}
}

/* Shared Seller Admin header and readable editor content. */
.seller-readable-content { width: 100%; min-width: 0; }
.seller-workspace-toolbar.is-sticky { position: sticky; top: 76px; z-index: 12; margin-top: -12px; padding-top: 12px; background: var(--seller-workspace-background); }
.seller-page-heading > div:first-child { flex: 1; min-width: 0; }
.seller-page-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.seller-page-actions .admin-primary-action { width: auto; white-space: nowrap; }
#shopProfileDirty { padding: 4px 8px; border-radius: 6px; background: #fff0ce; color: #694500; font-size: .76rem; font-weight: 750; }
.shop-identity-summary { display: flex; align-items: center; gap: 14px; margin: 16px 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #edf4ef; }
#shopIdentityLogo { display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 56px; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); }
#shopIdentityLogo img { width: 100%; height: 100%; object-fit: cover; }
.shop-identity-copy { min-width: 0; flex: 1; }
.shop-identity-copy strong { font-size: 1rem; overflow-wrap: anywhere; }
.shop-identity-copy p { margin: 3px 0; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.shop-identity-copy > span { font-size: .75rem; color: var(--muted); }
#shopProfilePublicLink { font-size: .8rem; padding: 10px 0; white-space: nowrap; }
#adminViewProfile .shop-profile-form { border-top: 1px solid var(--line); }
#adminViewProfile .profile-form-section { display: block; padding: 22px 0; }
.profile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.profile-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: .83rem; line-height: 1.45; }
.profile-section-heading button { flex-shrink: 0; }
#adminViewProfile .profile-form-fields { gap: 16px; width: 100%; max-width: 880px; }
.profile-details-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.profile-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
#adminViewProfile .profile-field > label { font-size: .86rem; font-weight: 750; }
#adminViewProfile fieldset.profile-field { margin: 0; padding: 0; border: 0; }
#adminViewProfile fieldset.profile-field > legend { padding: 0; margin-bottom: 6px; font-size: .86rem; font-weight: 750; }
#adminViewProfile .profile-field .profile-toggle-list input { width: auto; min-height: 0; padding: 0; }
#adminViewProfile .profile-field input, #adminViewProfile .profile-field select, #adminViewProfile .profile-field textarea { box-sizing: border-box; width: 100%; min-height: 42px; padding: 9px 12px; font-size: .92rem; border-radius: 8px; }
#adminViewProfile .profile-field textarea { min-height: 64px; resize: vertical; }
#adminViewProfile .profile-character-count { margin: 0; font-size: .73rem; text-align: right; }
.profile-types-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 880px; }
#adminViewProfile .profile-form-fields > .form-note { margin: -6px 0 0; }
#adminViewProfile .profile-form-fields > .admin-text-action { justify-self: start; text-align: left; min-height: 36px; font-size: .86rem; font-weight: 650; }
.profile-branding-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; width: 100%; max-width: 1200px; }
.profile-branding-item { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.profile-branding-banner { width:100%;max-width:880px; }
.profile-branding-item h4 { margin: 0; font-size: .86rem; }
#adminViewProfile .shop-logo-preview { order: 1; box-sizing: border-box; aspect-ratio: 1; width: 180px; min-height: 0; padding: 0; border-radius: 50%; }
#adminViewProfile .shop-logo-preview .shop-logo-mark.large { width: 100%; height: 100%; border: 0; border-radius: 50%; }
#adminViewProfile .shop-banner-preview { order: 1; aspect-ratio: 6.4 / 1; min-height: 0; width: 100%; }
.onboarding-banner-preview { aspect-ratio: 6.4 / 1; min-height: 0; width: 100%; }
#adminViewProfile .shop-banner-preview img, .onboarding-banner-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.onboarding-banner-preview .shop-banner-drag-hint svg { max-height: calc(100% - 30px); }
.profile-branding-item .shop-logo-upload-row, .profile-branding-item .shop-banner-upload-row { order: 2; }
.profile-branding-item .shop-logo-editor, .profile-branding-item .shop-banner-editor { order: 3; }
#adminViewProfile .shop-image-actions { gap: 6px; flex-wrap: wrap; }
#adminViewProfile .shop-image-actions > * { min-height: 36px; padding: 7px 10px; font-size: .78rem; }
#adminViewProfile .shop-banner-position-controls, .onboarding-banner-upload .shop-banner-position-controls { grid-template-columns: 1fr 1fr; }
#adminViewProfile .shop-banner-position-controls label, .onboarding-banner-upload .shop-banner-position-controls label { font-size: .76rem; }
.onboarding-banner-upload .shop-banner-position-controls { width: 100%; }
.onboarding-banner-upload input[type="range"] { padding: 0; }
#adminViewProfile .shop-locations-editor > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
#adminViewProfile .location-card { display: block; padding: 14px; border-radius: 10px; background: #fbfdfb; }
#adminViewProfile .location-card header { align-items: flex-start; gap: 12px; }
.seller-location-icon, .location-card header .seller-location-icon { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; margin: 0; border-radius: 9px; background: #edf4ef; color: #496e57; }
.seller-location-icon svg { display: block; width: 20px; height: 20px; }
#adminViewProfile .location-card-copy { flex: 1; min-width: 0; }
#adminViewProfile .location-card h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .92rem; overflow-wrap: anywhere; }
#adminViewProfile .location-type-badge { display: inline-block; padding: 0; margin: 3px 0 0; background: none; font-size: .74rem; }
#adminViewProfile .location-address { margin: 6px 0 0; color: var(--muted); font-size: .81rem; overflow-wrap: anywhere; }
#adminViewProfile .location-capability-summary { gap: 5px; margin-top: 8px; }
#adminViewProfile .location-capability-summary span { margin: 0; font-size: .69rem; }
#adminViewProfile .location-opening-hours { margin-top: 8px; }
#adminViewProfile .location-opening-hours strong { display: none; }
#adminViewProfile .location-opening-hours span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#adminViewProfile .location-card header > button { min-height: 38px; padding: 8px 14px; }
#adminViewProfile .location-card-inactive { color: var(--seller-sidebar-muted); background: #f0f3f2; border-color: var(--line); }
#adminViewProfile .location-status-badge { display: inline-flex; align-items: center; margin: 0; padding: 3px 7px; color: var(--seller-sidebar-muted); background: #e4e8e5; font-size: .69rem; line-height: 1.4; white-space: nowrap; }
#adminViewProfile .location-card-inactive .seller-location-icon { color: var(--muted); background: #e4e8e5; }
#adminViewProfile .location-card-inactive h4,
#adminViewProfile .location-card-inactive .location-address,
#adminViewProfile .location-card-inactive .location-type-badge { color: var(--seller-sidebar-muted); }
#adminViewProfile .location-inactive-note { margin: 8px 0 0; color: var(--seller-sidebar-muted); font-size: .8rem; line-height: 1.45; }
.location-lifecycle-controls { padding-top: 16px; margin-top: 20px; border-top: 1px solid var(--line); }
.location-lifecycle-controls p { color: var(--muted); font-size: .82rem; }
.location-lifecycle-controls button { min-height: 40px; }
#newShopLocationPanel .location-management-row button { flex-shrink: 0; min-height: 40px; padding: 8px 12px; border: 1px solid #b8c7bf; border-radius: 8px; color: var(--ink); background: #fff; box-shadow: none; transform: none; }
#newShopLocationPanel .location-management-row button:hover:not(:disabled) { color: var(--ink); border-color: #789184; background: #f2f6f3; }
#newShopLocationPanel .location-management-row button:focus-visible { outline: 2px solid #4f8d78; outline-offset: 3px; }
#newShopLocationPanel .location-management-row .location-delete-action { color: #9b4038; border-color: #b75e52; background: #fff; }
#newShopLocationPanel .location-management-row .location-delete-action:hover:not(:disabled) { color: #7d2e25; border-color: #9b4038; background: #fff1ef; }
#newShopLocationPanel .location-management-row .location-delete-action:focus-visible { outline-color: #b34339; }
#newShopLocationPanel .location-management-row button:disabled { color: #66736b; border-color: #d6dcd8; background: #f3f5f2; opacity: 1; cursor: not-allowed; }
.location-lifecycle-controls h3 { margin: 0 0 12px; font-size: 1rem; }
.location-management-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.location-management-row + .location-management-row { border-top: 1px solid var(--line); }
.location-management-row h4 { margin: 0 0 4px; font-size: .87rem; }
.location-management-row p { margin: 0; line-height: 1.45; }
.location-management-row[hidden] { display: none; }
.location-delete-confirmation { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; font-size: .9rem; line-height: 1.5; }
.location-delete-confirmation input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; accent-color: #9b4038; }
@media (max-width: 620px) { .location-management-row { align-items: flex-start; flex-direction: column; gap: 10px; } }
#adminViewProfile .shop-closure-zone { border-top: 0; border-bottom: 0; }
.shop-management-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.shop-management-row h4 { font-size: .88rem; margin: 0 0 5px; }
.shop-management-row p { max-width: 530px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.shop-management-row button { white-space: nowrap; }
.inventory-location-heading:has(> .seller-location-icon) { justify-content: flex-start; gap: 10px; }
@media (max-width: 620px) {
  .profile-types-grid { grid-template-columns: minmax(0, 1fr); }
  .seller-workspace-toolbar.is-sticky { flex-direction: row; align-items: center; gap: 14px; }
  .seller-page-actions { flex-direction: column-reverse; align-items: flex-end; gap: 6px; }
  .seller-page-actions button { padding-inline: 12px; min-height: 42px; }
  .shop-identity-summary { flex-wrap: wrap; gap: 10px; }
  #shopProfilePublicLink { margin-left: 66px; padding: 0 0 5px; }
  .profile-branding-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-branding-grid { gap: 20px; }
  #adminViewProfile .shop-logo-preview { width: 140px; }
  #adminViewProfile .profile-section-heading { gap: 10px; }
  .profile-section-heading > div { min-width: 0; }
  .profile-section-heading button { padding: 9px 10px; font-size: .78rem; }
  .shop-management-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  #adminViewProfile .location-card { padding: 12px; }
  #adminViewProfile .location-card header { gap: 9px; }
  #adminViewProfile .location-card header > button { padding-inline: 10px; }
}
#adminViewProfile .shop-logo-upload-row, #adminViewProfile .shop-banner-upload-row { position: relative; }
#adminViewProfile input.sr-only { left: 0; top: 0; width: 1px; min-width: 0; max-width: 1px; height: 1px; min-height: 0; padding: 0; }
@media (max-width: 1100px) {
  #adminViewProfile .shop-locations-editor > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .seller-workspace-toolbar.is-sticky { top: 127px; }
}
@media (max-width: 620px) {
  #adminViewProfile .shop-identity-copy { flex-basis: calc(100% - 66px); }
  #shopProfilePublicLink { margin-left: 66px; }
}

/* Inline Add/Edit Location errors use the existing seller field-error treatment. */
.location-dialog [data-location-field][aria-invalid="true"] { border-color: #b34339; outline-color: rgba(179,67,57,.18); }
.seller-inline-field-error { display: block; margin: 4px 0 0; font-size: .8rem; font-weight: 650; line-height: 1.4; }
.location-dialog input[type="checkbox"][aria-invalid="true"] { outline: 2px solid #b34339; outline-offset: 2px; }

.product-editor-dialog #adminTitle[aria-invalid="true"],
.product-editor-dialog #adminImageUploadLabel[aria-invalid="true"] { border-color: #b34339; outline-color: rgba(179,67,57,.18); }
.seller-inline-field-error[hidden] { display: none; }
#confirmDeleteLocation:disabled { color: #66524e; border-color: #d0bab5; background: #e7d8d5; box-shadow: none; opacity: 1; cursor: not-allowed; }

.location-fulfilment-section{min-width:0;margin:20px 0 0;padding:16px 0 0;border:0;border-top:1px solid var(--line)}
.location-fulfilment-section legend{padding:0 10px 0 0;font-size:1rem;font-weight:700;color:var(--ink)}
.location-fulfilment-section .location-capability-list{margin-top:0;grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:540px){.location-fulfilment-section .location-capability-list{grid-template-columns:1fr}}

/* Compact, independent Shop Profile image editors. */
#adminViewProfile .shop-branding-editor { position:relative; gap:12px; }
.shop-branding-editor-heading { display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px;color:var(--muted);font-size:.8rem; }
.shop-branding-editor-heading .dialog-close { position:static;flex:0 0 32px;width:32px;height:32px;padding:0;font-size:1.35rem; }
.shop-image-dropzone { display:flex;flex-direction:column;gap:8px;box-sizing:border-box;width:100%;min-height:110px;padding:14px 12px;background:transparent;color:var(--muted);font-size:.8rem;font-weight:600;line-height:1.45;text-align:center; }
.shop-image-dropzone svg { width:23px;height:23px;flex-shrink:0; }
.shop-image-dropzone:is(:hover,:focus-visible,.dragging) { background:var(--soft);color:var(--leaf-dark); }
#adminViewProfile .shop-branding-editor .shop-image-actions { justify-content:space-between;gap:10px; }
#adminViewProfile .shop-branding-editor .shop-image-actions .admin-primary-action { margin-left:auto; }
#adminViewProfile .shop-image-delete-button { background:transparent;color:#b83d33;border-color:#b83d33; }
#adminViewProfile .shop-image-delete-button:hover,#adminViewProfile .shop-image-delete-button:focus-visible { background:#fff7f6;color:#922f28;border-color:#922f28; }
#adminViewProfile .shop-banner-position-controls, .onboarding-banner-upload .shop-banner-position-controls { gap:8px 12px; }
#adminViewProfile #centreShopLogo,
#adminViewProfile #centreShopBanner,
.onboarding-banner-upload [data-centre-brand-banner] { grid-column:1 / -1;justify-self:start;min-height:36px;padding:7px 12px;font-size:.8rem; }
#adminViewProfile .shop-branding-editor button:disabled { opacity:.6;cursor:not-allowed; }
@media(max-width:640px){.shop-image-dropzone { min-height:100px; } }
@media(min-width:641px){#adminViewProfile .shop-branding-editor .shop-image-actions { flex-direction:row;align-items:center; } }

.profile-links-editor { display:grid;gap:10px;width:100%;max-width:880px; }
.profile-links-heading h4 { margin:0;font-size:.86rem; }
.profile-add-link { justify-self:end;min-height:36px;font-size:.8rem; }
#shopLinksList { display:grid;gap:10px; }
.profile-link-row { display:grid;grid-template-columns:32px minmax(0,1fr) 38px;align-items:start;gap:8px; }
.profile-link-icon { display:grid;place-items:center;height:42px;color:var(--muted); }
.profile-link-icon svg { display:block;width:21px;height:21px; }
.profile-link-row .profile-field { position:relative;min-width:0;display:grid;gap:6px; }
#adminViewProfile .profile-link-remove { width:38px;min-height:42px;margin:0;padding:0;font-size:1.2rem;color:var(--muted);border-color:var(--line); }

/* Overview shares Seller Admin's page heading, controls and card palette. */
.overview-stats{gap:12px;border:0;background:transparent}
.overview-stat{min-width:0;padding:16px 18px;border:1px solid var(--line);border-radius:8px;background:#fff;text-align:left;color:var(--ink);cursor:pointer}
.overview-stat strong{font-size:1.65rem}
.overview-stat:hover{border-color:var(--leaf-dark);transform:none;box-shadow:none}
.overview-stat:focus-visible,.overview-attention-item:focus-visible{outline:2px solid var(--leaf-dark);outline-offset:3px}
.overview-main,.overview-side{display:grid;gap:20px;min-width:0}
.overview-attention h2,.overview-quick-actions h2,.overview-shop-content h2{font-size:1.1rem}
.overview-attention-group{margin-top:18px}
.overview-attention-group h3{margin:0 0 6px;color:var(--muted);font-size:.8rem;font-weight:700}
.overview-attention-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:58px;padding:12px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.overview-attention-item>span:first-child{display:grid;gap:4px;min-width:0}
.overview-attention-item strong{font-size:.9rem;overflow-wrap:anywhere}
.overview-attention-item small{color:var(--muted);font-size:.8rem}
.overview-attention-item:hover{color:var(--leaf-dark);transform:none;box-shadow:none}
.overview-attention-item .stock-pill,.overview-attention-item .seller-order-status{flex-shrink:0;font-size:.72rem}
.overview-message{margin:14px 0 0;color:var(--muted);font-size:.9rem;line-height:1.5}
.overview-quick-actions{display:grid;gap:12px}
.overview-quick-actions h2{margin-bottom:4px}
.overview-quick-actions button{width:100%;text-align:center}
.overview-shop-preview{padding:0;overflow:hidden}
.overview-shop-banner{height:100px;background:var(--sage,#edf3e8)}
.overview-shop-banner img{display:block;width:100%;height:100%;object-fit:cover}
.overview-shop-banner img[hidden]{display:none}
.overview-shop-content{padding:20px 22px}
.overview-shop-identity{display:flex;align-items:center;gap:12px;margin-top:16px;overflow-wrap:anywhere}
.overview-shop-identity .shop-logo-mark{flex-shrink:0;width:48px;height:48px}
.overview-shop-content p{margin:12px 0;color:var(--muted);font-size:.9rem;line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.overview-shop-links{display:flex;flex-wrap:wrap;gap:10px 20px;font-size:.85rem}
.overview-shop-links a{text-decoration:none}
.overview-main .getting-started-card{margin:0}
@media(max-width:760px){
  .overview-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .overview-stat{padding:12px 10px}
  .overview-stat span{font-size:.76rem;min-height:2.6em}
  .overview-stat small{display:none}
  .overview-stat strong{font-size:1.45rem}
  .overview-attention,.overview-quick-actions{padding:18px}
  .overview-attention-item{gap:8px}
  .overview-shop-content{padding:18px}
}

#adminViewProfile .shop-logo-position-controls { grid-template-columns:repeat(3,minmax(0,1fr)); }
#adminViewProfile .shop-logo-editor { width:100%;max-width:880px; }
@media(max-width:620px){#adminViewProfile .shop-logo-position-controls { grid-template-columns:minmax(0,1fr); }}
#adminViewProfile .shop-logo-preview.is-positionable { cursor:grab;touch-action:none; }
#adminViewProfile .shop-logo-preview.is-dragging { cursor:grabbing; }
#adminViewProfile .shop-logo-preview img { pointer-events:none;user-select:none; }

.profile-logo-visual { display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0; }
@media(min-width:1101px){
  .profile-branding-logo { display:grid;grid-template-columns:180px minmax(0,1fr);column-gap:24px;align-items:start; }
  .profile-branding-logo > h4 { grid-column:1 / -1; }
  .profile-branding-logo > .profile-logo-visual { grid-column:1;grid-row:2; }
  .profile-branding-logo > .shop-logo-editor { grid-column:2;grid-row:2; }
}

/* Product photos: square previews, a corner status pill and a compact action row. */
#adminImagePreviewList{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));align-items:start}
#adminImagePreviewList .admin-image-preview{position:relative;aspect-ratio:auto;display:flex;flex-direction:column;overflow:hidden;border-radius:9px;min-width:0}
#adminImagePreviewList .admin-image-preview>img{display:block;position:static;width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#fafbf9}
#adminImagePreviewList .admin-image-preview-actions{position:static;inset:auto;display:flex;flex-wrap:nowrap;align-items:center;gap:2px;min-height:48px;padding:2px 4px;border-top:1px solid var(--line);background:#fff}
#adminImagePreviewList .admin-photo-main{position:absolute;top:8px;right:8px;display:inline-flex;padding:4px 8px;border:1px solid #fff;border-radius:999px;background:#edf3e9;color:#315b3b;font-size:.65rem;font-weight:750;line-height:1.3;box-shadow:0 1px 4px #10251d14;pointer-events:none}
#adminImagePreviewList .admin-image-preview-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:44px;border:0;border-radius:6px;background:transparent;color:var(--dark-green);box-shadow:none;cursor:pointer}
#adminImagePreviewList .admin-image-preview-actions>.admin-edit-photo{flex:1;min-width:0;width:auto;padding:0 2px;font-size:.7rem;font-weight:650;white-space:nowrap}
#adminImagePreviewList .admin-edit-photo svg{flex:none}
#adminImagePreviewList .admin-image-preview-actions>.admin-photo-more{flex:none;width:44px;padding:0}
#adminImagePreviewList .admin-photo-action-space{flex:1;padding:0}
#adminImagePreviewList .admin-image-preview-actions>button:hover{background:#edf3e9}
#adminImagePreviewList .admin-image-preview-actions>button:focus-visible,.admin-photo-menu button:focus-visible{outline:2px solid var(--dark-green);outline-offset:-2px}
.admin-photo-menu{position:fixed;inset:auto;margin:0;width:168px;max-width:calc(100vw - 16px);padding:4px;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:0 8px 24px rgba(16,37,29,.16);color:var(--dark-green);box-sizing:border-box}
.admin-photo-menu::backdrop{background:transparent}
#adminImagePreviewList .admin-photo-menu button{display:block;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:6px;background:transparent;text-align:left;font:inherit;font-size:.82rem;color:inherit;cursor:pointer}
#adminImagePreviewList .admin-photo-menu button:hover{background:#edf3e9}#adminImagePreviewList .admin-photo-menu .admin-photo-remove{color:#a3332c}#adminImagePreviewList .admin-photo-menu .admin-photo-remove:hover{background:#fff0ee}

.admin-brand-field{position:relative;min-width:0}.admin-brand-field>input{width:100%}
.admin-brand-suggestions{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:5;max-height:220px;overflow-y:auto;padding:4px;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:0 8px 24px #10251d20}
.admin-brand-suggestions[hidden]{display:none}.admin-brand-suggestions button{display:block;width:100%;min-height:44px;padding:10px 12px;text-align:left;font:inherit;font-size:.9rem;border:0;border-radius:5px;background:#fff;color:var(--dark-green);cursor:pointer;overflow-wrap:anywhere}.admin-brand-suggestions button:hover,.admin-brand-suggestions button[aria-selected=true]{background:#edf3e9}
/* Compact My Products bulk editor. Its pickers also stay inside the modal's
   native top layer, so expanded cards never clip searchable options. */
#bulkProductDialog{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-width:none;max-height:min(900px,calc(100dvh - 48px));padding:0;overflow:hidden;border:0;border-radius:18px;background:#fff;box-shadow:0 24px 80px #10251d38;color:var(--ink)}
#bulkProductDialog .bulk-edit-shell{display:flex;flex-direction:column;max-height:min(900px,calc(100dvh - 48px));min-height:0;margin:0}
#bulkProductDialog .bulk-edit-header{flex:none;display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:25px 30px 20px;background:#fff}
#bulkProductDialog .bulk-edit-eyebrow{margin:0 0 9px;font-size:.75rem;line-height:1.4;font-weight:800;color:#6c7b73;letter-spacing:.015em}
#bulkProductDialog h2{font-family:inherit;font-size:1.85rem;line-height:1.2;letter-spacing:-.035em;margin:0 0 7px;font-weight:780;color:#111b16}
#bulkProductDialog #bulkProductIntro{margin:0;font-size:1rem;line-height:1.5;color:#202821}
#bulkProductDialog .bulk-edit-header .dialog-close{display:grid;place-items:center;flex:none;margin:0;width:44px;height:44px;border:0;border-radius:50%;background:#edf4e7;color:var(--leaf-dark);font-size:1.8rem;line-height:1;padding:0}
#bulkProductDialog .bulk-product-body{display:block;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:5px 30px 28px}
#bulkProductDialog .bulk-edit-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px}
#bulkProductDialog .bulk-edit-tabs button{display:flex;align-items:center;gap:13px;min-width:0;min-height:82px;padding:13px 17px;border:0;border-bottom:3px solid transparent;border-radius:11px 11px 4px 4px;background:#f4f5f4;color:#555b59;text-align:left;cursor:pointer}
#bulkProductDialog .bulk-edit-tabs svg{width:25px;height:25px;flex:none}
#bulkProductDialog .bulk-edit-tabs button>span{min-width:0}
#bulkProductDialog .bulk-edit-tabs strong{display:block;font-size:1rem;line-height:1.35;font-weight:650;color:#303833}
#bulkProductDialog .bulk-edit-tabs small{display:block;font-size:.72rem;line-height:1.5;margin-top:3px;color:#666c68}
#bulkProductDialog .bulk-edit-tabs [aria-selected=true]{border-bottom-color:var(--leaf-dark);background:#f0f5ed;color:var(--leaf-dark)}
#bulkProductDialog .bulk-edit-tabs [aria-selected=true] strong{color:#111b16;font-weight:780}
#bulkProductDialog #bulkEditGuidance{font-size:.91rem;line-height:1.55;color:#646b66;margin:0 0 23px}
#bulkProductDialog .bulk-edit-cards{display:grid;gap:16px;align-content:start;grid-auto-rows:max-content;align-items:start}
#bulkProductDialog .bulk-edit-card{min-width:0;border:1px solid #dce1dd;border-radius:12px;background:#fff}
#bulkProductDialog .bulk-edit-card-header{display:flex;align-items:center;gap:8px;padding:13px 14px 13px 20px;min-height:78px;box-sizing:border-box}
#bulkProductDialog .bulk-edit-card-header>label{display:flex;align-items:flex-start;gap:14px;min-width:0;min-height:44px;flex:1;cursor:pointer}
#bulkProductDialog .bulk-edit-card-header input{accent-color:var(--leaf-dark);width:21px;height:21px;margin:3px 0 0;flex:none}
#bulkProductDialog .bulk-edit-card-header label>span{min-width:0}
#bulkProductDialog .bulk-edit-card-header strong{display:block;font-size:1rem;line-height:1.5;font-weight:750;color:#172019}
#bulkProductDialog .bulk-edit-card-header small{display:block;margin-top:3px;font-size:.77rem;line-height:1.5;color:#6b716c}
#bulkProductDialog [data-bulk-toggle]{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:8px;background:transparent;color:#606861;padding:11px;cursor:pointer}
#bulkProductDialog [data-bulk-toggle] svg{width:19px;height:19px;transition:transform .15s}
#bulkProductDialog [data-bulk-toggle][aria-expanded=true] svg{transform:rotate(180deg)}
#bulkProductDialog [data-bulk-toggle]:hover{background:#f2f5ef}
#bulkProductDialog .bulk-edit-card-fields{display:grid;grid-template-columns:110px minmax(0,1fr);gap:9px 15px;border:0;margin:0;min-width:0;padding:2px 20px 18px}
#bulkProductDialog .bulk-edit-action select{box-sizing:border-box;min-height:46px;width:100%;max-width:100%;padding:10px 12px;border:1px solid #d9dce0;border-radius:9px;background:#f1f1f3;color:#172019;font-size:.93rem;font-weight:550}
#bulkProductDialog .bulk-picker-input{display:flex;align-items:center;gap:9px;box-sizing:border-box;min-width:0;min-height:46px;padding:0 11px;border:1px solid #cdd4cf;border-radius:9px;background:#fff}
#bulkProductDialog .bulk-picker-input:focus-within{border-color:#4f775d;box-shadow:0 0 0 2px #315b3b18}
#bulkProductDialog .bulk-picker-input svg{width:19px;height:19px;flex:none;color:#757d77}
#bulkProductDialog .bulk-picker-input input{min-width:0;width:100%;padding:10px 0;border:0;outline:0;background:transparent;box-shadow:none;min-height:44px;font-size:.9rem;color:var(--ink)}
#bulkProductDialog .bulk-picker-input input::placeholder{color:#7a807c;opacity:1}
#bulkProductDialog .bulk-edit-chips{display:flex;flex-wrap:wrap;gap:7px;min-width:0;grid-column:2}
#bulkProductDialog .bulk-edit-chip{display:inline-flex;align-items:center;max-width:100%;gap:3px;padding-left:11px;border-radius:999px;background:#e9f0e2;color:#22342a;font-size:.78rem;line-height:1.4}
#bulkProductDialog .bulk-edit-chip>span{min-width:0;overflow-wrap:anywhere;padding:4px 0}
#bulkProductDialog .bulk-edit-chip button{display:grid;place-items:center;flex:none;min-width:32px;min-height:34px;padding:3px 7px;border:0;border-radius:50%;background:transparent;color:#2b3e30;font-size:1.1rem;line-height:1;cursor:pointer}
#bulkProductDialog .bulk-edit-chip button:hover{background:#dce6d3}
#bulkProductDialog .bulk-edit-card-help{grid-column:1/-1;margin:7px 0 0;font-size:.79rem;line-height:1.6;color:#676f69}
#bulkProductDialog .bulk-edit-card-help.is-replacement{padding:8px 10px;border-left:2px solid #b89b66;border-radius:3px;background:#faf7ef;color:#736348}
#bulkProductDialog .bulk-edit-card-fields:disabled{opacity:.55}
#bulkProductDialog .bulk-edit-status{font-size:.82rem;line-height:1.5;margin:17px 0 0;color:#626c63;overflow-wrap:anywhere}
#bulkProductDialog .bulk-edit-status:empty{display:none}
#bulkProductDialog .bulk-edit-status.is-error{color:#a33b32}
#bulkProductDialog .bulk-edit-footer{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:17px 30px;border-top:1px solid #e0e5df;background:#f7f9f7}
#bulkProductDialog .bulk-edit-footer button{min-height:48px;padding:10px 24px;border:1px solid #ccd2cc;border-radius:10px;font-size:.95rem;font-weight:750;line-height:1.35;cursor:pointer}
#bulkProductDialog .bulk-edit-footer .admin-secondary-action{background:#fff;color:#18291e}
#bulkProductDialog .bulk-edit-footer .admin-primary-action{border-color:var(--leaf-dark);background:var(--leaf-dark);color:#fff;min-width:168px}
#bulkProductDialog button:disabled{cursor:default}
#bulkProductDialog .bulk-edit-footer button:disabled{opacity:.42}
#bulkProductDialog :focus-visible{outline:3px solid #397f38;outline-offset:3px}
#bulkProductDialog .bulk-picker-input input:focus-visible{outline:0}
#bulkProductDialog .bulk-edit-photo-placeholder{text-align:center;border:1px solid #dce1dd;border-radius:12px;padding:30px 25px;background:#fafcf8}
#bulkProductDialog .bulk-edit-photo-placeholder>svg{width:38px;height:38px;color:#54745c;margin:auto}
#bulkProductDialog .bulk-edit-photo-placeholder h3{font-size:1.05rem;margin:14px 0 9px}
#bulkProductDialog .bulk-edit-photo-placeholder p{font-size:.88rem;line-height:1.6;color:#626c63;margin:0 auto 12px;max-width:400px}
#bulkProductDialog .bulk-edit-photo-placeholder small{color:#748073;font-size:.77rem}
#bulkProductDialog .bulk-picker-popup{position:fixed;inset:auto;box-sizing:border-box;margin:0;padding:5px;border:1px solid #d4ddd3;border-radius:10px;background:#fff;box-shadow:0 9px 28px #10251d26;overflow-y:auto;overscroll-behavior:contain;color:var(--ink);z-index:5}
#bulkProductDialog .bulk-picker-popup::backdrop{background:transparent;pointer-events:none}
#bulkProductDialog .bulk-picker-popup button{display:flex;align-items:center;gap:9px;width:100%;min-width:0;min-height:44px;padding:9px;border:0;border-radius:6px;background:#fff;text-align:left;color:#263a2c;cursor:pointer;font:inherit}
#bulkProductDialog .bulk-picker-popup button>span:last-child{min-width:0;overflow-wrap:anywhere}
#bulkProductDialog .bulk-picker-popup button strong{font-size:.85rem;font-weight:600;display:block}
#bulkProductDialog .bulk-picker-popup button small{display:block;font-size:.72rem;line-height:1.5;font-weight:450;color:#778172;margin-top:2px}
#bulkProductDialog .bulk-picker-popup button:hover,#bulkProductDialog .bulk-picker-popup button.is-active{background:#eef4e8}
#bulkProductDialog .bulk-picker-popup [aria-selected=true]{background:#f4f7f0}
#bulkProductDialog .bulk-option-check{display:grid;place-items:center;flex:none;width:17px;height:17px;border:1px solid #c1cdbb;border-radius:4px;font-size:12px}
#bulkProductDialog .bulk-picker-popup [aria-selected=true] .bulk-option-check{color:white;background:var(--leaf-dark);border-color:var(--leaf-dark)}
#bulkProductDialog .bulk-picker-empty{font-size:.8rem;line-height:1.5;padding:8px;margin:0;color:#6f786b}
html:has(#bulkProductDialog[open]){overflow:hidden}
@media(max-width:480px){
 #bulkProductDialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:16px}
 #bulkProductDialog .bulk-edit-shell{max-height:calc(100dvh - 24px)}
 #bulkProductDialog .bulk-edit-header{padding:21px 20px 17px;gap:12px}
 #bulkProductDialog h2{font-size:1.6rem}
 #bulkProductDialog .bulk-product-body{padding:3px 20px 22px}
 #bulkProductDialog .bulk-edit-tabs{gap:8px;margin-bottom:18px}
 #bulkProductDialog .bulk-edit-tabs button{gap:8px;padding:11px 10px;min-height:64px}
 #bulkProductDialog .bulk-edit-tabs svg{width:21px;height:21px}
 #bulkProductDialog .bulk-edit-tabs strong{font-size:.86rem}
 #bulkProductDialog .bulk-edit-tabs small{display:none}
 #bulkProductDialog #bulkEditGuidance{font-size:.84rem;margin-bottom:18px}
 #bulkProductDialog .bulk-edit-card-header{padding:12px 8px 12px 14px}
 #bulkProductDialog .bulk-edit-card-header>label{gap:10px}
 #bulkProductDialog .bulk-edit-card-header strong{font-size:.94rem}
 #bulkProductDialog .bulk-edit-card-header small{font-size:.72rem}
 #bulkProductDialog .bulk-edit-card-fields{grid-template-columns:minmax(0,1fr);padding:2px 14px 16px;gap:9px}
 #bulkProductDialog .bulk-edit-action{max-width:130px}
 #bulkProductDialog .bulk-edit-action select,#bulkProductDialog .bulk-picker-input input{font-size:1rem}
 #bulkProductDialog .bulk-edit-chips{grid-column:1}
 #bulkProductDialog .bulk-edit-chip button{min-width:40px;min-height:40px}
 #bulkProductDialog .bulk-edit-footer{padding:15px 20px}
 #bulkProductDialog .bulk-edit-footer button{padding:11px 17px;font-size:.88rem}
 #bulkProductDialog .bulk-edit-footer .admin-primary-action{min-width:150px}
 #bulkProductDialog .bulk-edit-photo-placeholder{padding:24px 16px}
}
@media(prefers-reduced-motion:reduce){#bulkProductDialog [data-bulk-toggle] svg{transition:none}}

/* One stable Bulk Edit frame; each tab owns its content scrolling. */
#bulkProductDialog{--bulk-edit-height:min(900px,calc(100dvh - 48px));height:var(--bulk-edit-height);max-height:var(--bulk-edit-height)}
#bulkProductDialog .bulk-edit-shell{height:100%;max-height:none}
#bulkProductDialog .bulk-product-body{display:flex;flex-direction:column;overflow:hidden}
#bulkProductDialog .bulk-edit-tabs{flex:none;margin-bottom:14px}
#bulkProductDialog .bulk-edit-footer .admin-primary-action{flex:none;width:200px;min-width:200px;white-space:nowrap}
#bulkProductDialog #bulkDetailsPanel{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#bulkProductDialog #bulkEditGuidance{flex:none}
#bulkProductDialog .bulk-edit-status{flex:none;max-height:25%;overflow-y:auto}
#bulkPhotoPanel{min-width:0;min-height:0}
#bulkPhotoPanel:not([hidden]){display:flex;flex-direction:column;flex:1;overflow:hidden}
#bulkPhotoPanel .bulk-photo-mode{flex:none;display:flex;flex-wrap:wrap;gap:8px 18px;margin-bottom:10px}
#bulkPhotoPanel .bulk-photo-mode>label{display:flex;align-items:center;gap:8px;min-height:44px;min-width:0;cursor:pointer}
#bulkPhotoPanel input[type=radio],#bulkPhotoPanel input[type=checkbox]{accent-color:#164b38;width:18px;height:18px;flex:none;margin:0}
#bulkPhotoPanel .bulk-photo-mode strong{font-size:.83rem;font-weight:650}
#bulkPhotoPanel [data-default-summary]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
#bulkPhotoPanel .bulk-photo-note{font-size:.75rem;line-height:1.5;color:#66706d;margin:0}
#bulkPhotoPanel [data-no-default]{flex:none;margin:0 0 12px}
#bulkPhotoPanel .bulk-photo-workspace{display:grid;grid-template-columns:330px minmax(0,1fr);gap:22px;align-items:start;flex:1;min-width:0;min-height:0;overflow:hidden}
#bulkPhotoPanel .bulk-photo-overview{display:block;min-height:0;margin:0;align-self:stretch;overflow-y:auto;scrollbar-gutter:stable;background:#fff}
#bulkPhotoPanel figure{width:min(100%,clamp(180px,calc(100dvh - 520px),330px));margin:0 auto;min-width:0}
#bulkPhotoPanel .bulk-photo-preview-summary{margin-top:12px}
#bulkPhotoPanel .bulk-photo-preview{aspect-ratio:1;border:1px solid #dce5de;border-radius:10px;overflow:hidden;width:100%;box-sizing:border-box}
#bulkPhotoPanel figcaption{font-size:.7rem;color:#66706d;line-height:1.45;margin-top:7px}
#bulkPhotoPanel [data-preview-expand]{display:none}
#bulkPhotoPanel [data-style-summary]{font-weight:650;font-size:.8rem;overflow-wrap:anywhere;margin:0 0 6px}
#bulkPhotoPanel [data-photo-counts]{font-size:.75rem;line-height:1.5;margin:0 0 6px}
#bulkPhotoPanel .bulk-photo-settings{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden}
#bulkPhotoPanel .bulk-photo-controls{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #dce5de;border-radius:12px;min-width:0;background:#fff;isolation:isolate}
#bulkPhotoPanel .bulk-photo-controls[data-mode=default]{flex:0 1 auto}
#bulkPhotoPanel .bulk-photo-default-summary{padding:18px}
#bulkPhotoPanel .bulk-photo-default-summary h3{font-family:inherit;font-size:1rem;font-weight:700;line-height:1.4;margin:0 0 16px}
#bulkPhotoPanel .bulk-photo-default-summary dl{display:grid;gap:14px;margin:0 0 14px}
#bulkPhotoPanel .bulk-photo-default-summary dt{font-size:.72rem;color:#66706d;margin-bottom:4px}
#bulkPhotoPanel .bulk-photo-default-summary dd{font-size:.85rem;font-weight:650;margin:0;overflow-wrap:anywhere}
#bulkPhotoPanel [data-default-adjustments]{font-size:.74rem;line-height:1.6;color:#526753;margin:0 0 14px}
#bulkPhotoPanel [data-default-adjustments]:empty{display:none}
#bulkPhotoPanel .bulk-photo-save-default{flex:none;display:flex;align-items:center;gap:10px;font-size:.8rem;line-height:1.5;margin-top:14px;min-height:44px}
#bulkPhotoPanel .bulk-photo-preview-summary>.bulk-photo-note{display:none}
#bulkPhotoPanel .bulk-photo-feedback{flex:none;max-height:24%;overflow-y:auto;font-size:.8rem;line-height:1.5;color:#375b42}
#bulkPhotoPanel .bulk-photo-feedback p:empty{display:none}
#bulkPhotoPanel .bulk-photo-feedback.is-error{color:#8f4438}
#bulkPhotoPanel progress{display:block;width:100%;height:8px;margin:12px 0;accent-color:#315b3b}
#bulkPhotoPanel .bulk-photo-feedback button{margin:8px 8px 0 0;min-height:44px}
@media(min-width:900px){
 #bulkProductDialog{width:min(860px,calc(100vw - 48px))}
 #bulkProductDialog .bulk-edit-tabs button{min-height:64px;padding:10px 14px}
 #bulkProductDialog .bulk-edit-tabs small{display:none}
}
@media(max-width:899px){
 #bulkPhotoPanel .bulk-photo-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #bulkPhotoPanel .bulk-photo-mode>label>span{min-width:0}
 #bulkPhotoPanel .bulk-photo-mode strong{display:block;font-size:.76rem;line-height:1.4}
 #bulkPhotoPanel .bulk-photo-workspace{display:flex;flex-direction:column;gap:10px}
 #bulkPhotoPanel .bulk-photo-overview{flex:none;display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;padding:0 0 8px;border-bottom:1px solid #e5eae2;overflow:visible;scrollbar-gutter:auto}
 #bulkPhotoPanel:not(.is-preview-expanded) figure{display:contents}
 #bulkPhotoPanel:not(.is-preview-expanded) .bulk-photo-preview{grid-column:1;grid-row:1}
 #bulkPhotoPanel:not(.is-preview-expanded) .bulk-photo-preview-summary{grid-column:2;grid-row:1;margin-top:0}
 #bulkPhotoPanel:not(.is-preview-expanded) figcaption{grid-column:1/-1;grid-row:2;max-width:calc(100% - 110px);margin:0;align-self:center}
 #bulkPhotoPanel:not(.is-preview-expanded) [data-preview-expand]{grid-column:2;grid-row:2;justify-self:end;align-self:center}
 #bulkPhotoPanel [data-style-summary],#bulkPhotoPanel [data-photo-counts]{font-size:.7rem}
 #bulkPhotoPanel .bulk-photo-save-default{font-size:.72rem;line-height:1.4;margin-top:8px}
 #bulkPhotoPanel figcaption{font-size:.65rem}
 #bulkPhotoPanel [data-preview-expand]{display:block;border:0;background:transparent;min-height:36px;padding:4px 0;font-size:.67rem;text-decoration:underline}
 #bulkPhotoPanel .bulk-photo-settings{flex:1;width:100%}
 #bulkPhotoPanel .bulk-photo-control-tabs{top:0;z-index:2;border-radius:10px 10px 0 0}
 #bulkPhotoPanel.is-preview-expanded .bulk-photo-overview{grid-template-columns:1fr}
 #bulkPhotoPanel.is-preview-expanded figure{width:min(220px,24dvh);margin-inline:auto}
 #bulkPhotoPanel.is-preview-expanded .bulk-photo-preview-summary{max-width:330px;width:100%;margin:0 auto}
}
@media(max-width:480px){
 #bulkProductDialog{--bulk-edit-height:calc(100dvh - 24px)}
 #bulkProductDialog .bulk-edit-footer .admin-primary-action{width:min(200px,60%);min-width:0;padding-inline:12px}
}
@media(max-width:899px) and (max-height:700px){
 #bulkProductDialog .bulk-edit-tabs button{min-height:52px;padding:8px 10px}
 #bulkPhotoPanel .bulk-photo-mode>label{min-height:36px}
 #bulkPhotoPanel .bulk-photo-overview{grid-template-columns:64px minmax(0,1fr);gap:4px 10px;padding-bottom:6px}
 #bulkPhotoPanel [data-preview-expand]{min-height:28px}
 #bulkPhotoPanel .bulk-photo-save-default{min-height:36px;margin-top:6px}
}
.bulk-photo-confirm{max-width:460px;width:calc(100vw - 32px);box-sizing:border-box}
.bulk-photo-confirm h2{font-size:1.2rem;line-height:1.35}
.bulk-photo-confirm [data-style]{background:#f3f7ef;border-radius:8px;padding:10px}
@media(max-width:480px){
 #bulkPhotoPanel .photo-editor-presets,#bulkPhotoPanel .photo-editor-my-backgrounds{grid-template-columns:repeat(3,minmax(0,1fr))}
 #bulkPhotoPanel .photo-editor-shadows>div{grid-template-columns:repeat(2,minmax(0,1fr))}
 #bulkPhotoPanel .bulk-photo-overview p{font-size:.73rem}
 .bulk-photo-confirm>div{flex-wrap:wrap}
}

/* The batch override sits in the existing selection row, without another panel. */
.ai-photo-selection-toolbar{flex-wrap:wrap;justify-content:flex-start}
.ai-photo-selection-toolbar>span{margin-left:auto}
.ai-photo-shop-style{display:inline-flex;align-items:center;gap:8px;font-size:.82rem;cursor:pointer}
.ai-photo-shop-style input{width:18px;height:18px;margin:0;accent-color:var(--leaf-dark)}
@media(max-width:620px){.ai-photo-selection-toolbar{flex-direction:row;align-items:center;gap:8px 12px}.ai-photo-selection-toolbar>span{margin-left:0;flex-wrap:wrap}.ai-photo-shop-style{font-size:.78rem;min-height:40px}}

.ai-photo-cutout{position:relative}.ai-photo-cutout>.ai-photo-style-loading{position:absolute;inset:auto 6px 6px;padding:5px 8px;border-radius:6px;background:#fffffff0;font-size:.7rem;color:var(--muted);text-align:center}

.browse-only-notice { max-width: 1200px; margin: 1rem auto; padding: 0 1rem; color: var(--muted); }
.browse-only-saved { margin-top: 18px; }

/* Guest favourites use the existing account-dialog presentation. */
.guest-favourites-dialog h2 { margin-right: 30px; }
.guest-favourites-dialog .guest-favourites-options { display: flex; gap: 20px; margin: 16px 0; }
.guest-favourites-options a { color: var(--leaf-dark); font-weight: 700; text-underline-offset: 4px; }
.guest-favourites-dialog [data-guest-signup]:not([hidden]) { display: grid; gap: 8px; }
.guest-favourites-dialog [hidden] { display: none !important; }
.guest-favourites-dialog :is(input, a, button):focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

/* Recovery stays inside the established account dialog and form components. */
.account-recovery h2 { max-width: none; margin: 4px 28px 14px 0; color: var(--dark-green); line-height: 1.15; }
.account-recovery .recovery-copy { margin: 0 0 22px; color: var(--secondary-text); line-height: 1.65; }
.account-recovery .account-status:empty { display: none; }
.account-recovery .account-form { margin: 0 0 20px; }
.account-recovery .account-form input { min-width: 0; min-height: 46px; font: inherit; }
.account-recovery .account-form > button { background: var(--primary-green); border-color: var(--primary-green); }
.account-recovery [aria-busy="true"] button { opacity: .7; cursor: wait; }
.recovery-back { display: inline-block; padding: 8px 0; color: var(--primary-green); font-size: .9rem; font-weight: 650; text-underline-offset: 3px; }
.account-recovery :focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.account-recovery h2:focus { outline: none; }

/* The same eye control used by recovery, scoped to the sign-up forms. */
.account-form .password-input { position: relative; min-width: 0; }
.account-form .password-input input { min-height: 46px; padding-right: 54px; }
.account-form .password-visibility { position: absolute; top: 1px; right: 1px; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 10px; border: 0; border-radius: 7px; background: transparent; color: var(--primary-green); cursor: pointer; }
.account-form .password-visibility:hover { background: var(--sage-surface); }
.account-form .password-visibility svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.account-form .password-visibility:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
