:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #132238;
  background: #f4f7fa;
  --navy: #102a43;
  --navy-2: #183b56;
  --teal: #0f766e;
  --teal-dark: #0b5c56;
  --teal-soft: #e8f5f3;
  --amber: #e87916;
  --amber-dark: #c75f0a;
  --amber-soft: #fff3e8;
  --card: #ffffff;
  --ink: #132238;
  --muted: #64748b;
  --line: #dce5ee;
  --surface: #f4f7fa;
  --success: #16794f;
  --danger: #a93636;
  --warning: #805600;
  --shadow: 0 12px 35px rgba(16, 42, 67, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); line-height: 1.5; }
body.drawer-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, .button {
  appearance: none; border: 0; border-radius: 12px; padding: 11px 16px;
  font-weight: 750; cursor: pointer; background: var(--teal); color: #fff;
  text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 7px;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
button:hover, .button:hover { background: var(--teal-dark); }
button:active, .button:active { transform: translateY(1px); }
button:disabled { opacity: .52; cursor: not-allowed; transform: none; }
button.secondary, .button.secondary { background: var(--teal-soft); color: var(--teal-dark); }
button.ghost, .button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button.ghost:hover, .button.ghost:hover { background: #f6f9fb; }
.cta-button { background: var(--amber); box-shadow: 0 8px 18px rgba(232, 121, 22, .2); }
.cta-button:hover { background: var(--amber-dark); }
.hidden { display: none !important; }
.muted, small { color: var(--muted); }
.code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 800; overflow-wrap: anywhere; }
.eyebrow { color: var(--teal); font-size: .76rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }

header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(220,229,238,.95);
  backdrop-filter: blur(12px);
}
.nav { max-width: 1200px; margin: auto; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.brand { font-size: 1.08rem; font-weight: 850; color: var(--navy); }
.brand-lockup { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--navy); }
.brand-lockup > span:last-child { display: grid; line-height: 1.15; }
.brand-lockup small { font-size: .72rem; margin-top: 3px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: white; font-weight: 900; box-shadow: 0 7px 18px rgba(16,42,67,.17); }
.cart-button { background: var(--navy); }
.cart-button:hover { background: var(--navy-2); }
.cart-count { min-width: 24px; height: 24px; border-radius: 999px; padding: 0 6px; display: inline-grid; place-items: center; background: var(--amber); color: white; font-size: .78rem; }

main { max-width: 1200px; margin: auto; padding: 24px 20px 64px; }
.store-hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 28px; align-items: center;
  padding: clamp(34px, 6vw, 72px); border-radius: 28px; color: white; overflow: hidden;
  background: linear-gradient(135deg, #102a43 0%, #164e63 62%, #0f766e 100%);
  box-shadow: 0 24px 55px rgba(16,42,67,.18);
}
.hero-copy h1 { margin: 12px 0 14px; max-width: 760px; font-size: clamp(2.15rem, 5vw, 4.5rem); line-height: 1.03; letter-spacing: -.04em; }
.hero-copy p { margin: 0 0 24px; max-width: 680px; color: rgba(255,255,255,.8); font-size: 1.05rem; }
.store-hero .eyebrow { color: #8ee5d9; }
.hero-process { display: grid; gap: 10px; }
.hero-process > div { display: grid; grid-template-columns: 38px 1fr; column-gap: 11px; align-items: center; padding: 14px; border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.09); border-radius: 16px; }
.hero-process span { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--amber); font-weight: 900; }
.hero-process strong { font-size: .98rem; }
.hero-process small { color: rgba(255,255,255,.7); }

.trust-strip { margin: 18px 0 42px; display: grid; grid-template-columns: repeat(3, 1fr); background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.trust-strip > div { display: grid; grid-template-columns: 34px 1fr; gap: 1px 10px; padding: 18px; border-right: 1px solid var(--line); }
.trust-strip > div:last-child { border-right: 0; }
.trust-strip span { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-weight: 900; }
.trust-strip small { grid-column: 2; }

.catalogue-section { scroll-margin-top: 85px; }
.catalogue-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 14px; }
.catalogue-heading h2 { margin: 5px 0 0; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.35rem); }
.search-box { display: grid; gap: 5px; min-width: min(360px, 100%); font-size: .82rem; font-weight: 750; color: var(--muted); }
input, textarea, select {
  width: 100%; padding: 11px 12px; border-radius: 11px; border: 1px solid #cbd8e4;
  background: #fff; color: var(--ink); outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,.12); }
textarea { min-height: 96px; resize: vertical; }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 750; }
.category-filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 18px; scrollbar-width: thin; }
.category-chip { flex: 0 0 auto; padding: 8px 13px; background: white; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.category-chip:hover, .category-chip.active { background: var(--navy); color: white; border-color: var(--navy); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.product-card { background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 9px 30px rgba(16,42,67,.065); transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(16,42,67,.12); }
.product-media { position: relative; background: #eaf0f4; }
.product-main-image, .placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.placeholder { display: grid; place-items: center; color: var(--muted); background: linear-gradient(135deg, #edf2f6, #e4ebf0); }
.image-count { position: absolute; top: 11px; right: 11px; padding: 5px 9px; border-radius: 999px; color: white; background: rgba(16,42,67,.78); font-size: .72rem; font-weight: 800; }
.product-thumbnails { display: flex; gap: 6px; position: absolute; left: 10px; right: 10px; bottom: 10px; overflow-x: auto; }
.thumbnail { flex: 0 0 42px; width: 42px; height: 42px; padding: 0; overflow: hidden; border-radius: 9px; border: 2px solid rgba(255,255,255,.7); background: white; box-shadow: 0 3px 10px rgba(0,0,0,.14); }
.thumbnail.active { border-color: var(--amber); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 17px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.product-code { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .75rem; font-weight: 750; }
.category-label { color: var(--teal-dark); background: var(--teal-soft); padding: 4px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.product-card h3 { margin: 10px 0 6px; color: var(--navy); font-size: 1.16rem; }
.product-description { margin: 0 0 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.5em; }
.product-options { display: grid; gap: 9px; }
.product-option { font-size: .82rem; color: var(--navy); }
.product-option select { padding: 9px 10px; }
.purchase-row { display: flex; align-items: end; justify-content: space-between; gap: 13px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.purchase-row small { display: block; font-size: .72rem; }
.price { color: var(--navy); font-size: 1.25rem; font-weight: 900; letter-spacing: -.02em; }
.add-button { min-width: 120px; }
.selection-code { margin-top: 9px; color: var(--muted); font-size: .72rem; }
.empty-catalogue { grid-column: 1 / -1; text-align: center; padding: 36px; }

.delivery-banner { margin-top: 48px; padding: 28px; border-radius: 22px; background: var(--navy); color: white; display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.delivery-banner h2 { margin: 6px 0; }
.delivery-banner p { margin: 0; color: rgba(255,255,255,.72); }
.delivery-banner .eyebrow { color: #8ee5d9; }
.support-contact { min-width: 220px; padding: 16px; border-radius: 15px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); display: grid; }
.support-contact small { color: rgba(255,255,255,.7); }

footer { background: white; border-top: 1px solid var(--line); }
.footer-inner { max-width: 1200px; margin: auto; padding: 28px 20px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.footer-inner p { margin: 5px 0 0; color: var(--muted); }
.seller-link { color: var(--muted); font-size: .82rem; }

.panel { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 18px; box-shadow: 0 7px 24px rgba(16,42,67,.04); }
.panel h2, .panel h3 { margin-top: 0; }
.notice { padding: 13px 14px; border-radius: 12px; background: #ebf7f4; border: 1px solid #cfe8e2; color: #164b46; }
.notice.warning { background: #fff6e9; border-color: #efd4a9; color: #6f4700; }
.notice.error { background: #fff0f0; border-color: #ebc2c2; color: #7c1e1e; }

.cart-drawer {
  position: fixed; right: 0; top: 0; width: min(480px, 100%); height: 100%; background: white;
  box-shadow: -16px 0 42px rgba(16,42,67,.22); z-index: 40; padding: 22px; overflow-y: auto;
  transform: translateX(105%); transition: transform .22s ease;
}
.cart-drawer.open { transform: translateX(0); }
.scrim { position: fixed; inset: 0; background: rgba(10,25,40,.52); z-index: 35; display: none; backdrop-filter: blur(2px); }
.scrim.open { display: block; }
.drawer-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.drawer-heading h2 { margin: 3px 0 0; color: var(--navy); }
.cart-row { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row > img { width: 62px; height: 62px; border-radius: 11px; object-fit: cover; background: #edf2f6; }
.cart-item-copy { min-width: 0; }
.cart-item-copy .code { font-size: .72rem; color: var(--muted); }
.quantity-controls { display: grid; grid-template-columns: 34px 28px 34px; align-items: center; text-align: center; }
.quantity-controls button { padding: 6px; min-height: 34px; }
.total { display: flex; justify-content: space-between; color: var(--navy); font-size: 1.25rem; font-weight: 900; margin: 18px 0; }
.cart-drawer form { display: grid; gap: 12px; }
.checkout-assurance { padding: 11px; border-radius: 11px; background: #f4f7fa; color: var(--muted); font-size: .83rem; }
.empty-cart { text-align: center; padding: 36px 10px; }
.payment-success-heading { display: flex; gap: 12px; align-items: center; margin: 8px 0 16px; }
.payment-success-heading h2 { margin: 2px 0 0; color: var(--navy); }
.success-check { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; background: var(--teal); color: white; font-size: 1.25rem; font-weight: 900; }
.payment-box { background: #f7fafc; border: 1px solid #cfdce6; border-radius: 15px; padding: 15px; margin: 14px 0; }
.payment-line { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.payment-line:last-child { border-bottom: 0; }
.payment-line.highlight { margin: 8px -6px -5px; padding: 12px 6px; border-radius: 10px; border: 0; background: var(--amber-soft); color: #7a3c08; }

/* Admin */
.admin-page main { max-width: 1240px; }
.login-panel { max-width: 460px; margin: 52px auto; }
.login-panel form, .spaced-form, #shopForm, #settingsForm { display: grid; gap: 13px; }
.compact { padding: 8px 11px; }
.admin-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 18px; }
.admin-content { min-width: 0; }
.sidebar { position: sticky; top: 80px; align-self: start; display: grid; gap: 8px; }
.sidebar button { justify-content: flex-start; }
.section { display: none; }
.section.active { display: block; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-heading h2, .section-heading h3 { margin-bottom: 4px; }
.section-heading p { margin: 0; }
.compact-heading { margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.form-actions, .button-row, .row-actions, .preset-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.subheading { margin-top: 28px !important; }
.catalogue-picker { display: grid; gap: 10px; }
.selected-shop { border: 1px dashed #bac9d5; border-radius: 13px; padding: 13px; background: #f8fafc; }
.selected-shop.selected { border-style: solid; border-color: #acd8d3; background: #eef9f7; color: var(--ink); }
.selected-shop > div + div { margin-top: 10px; }
.shop-autofill-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.shop-autofill-grid div { display: grid; gap: 3px; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); font-size: .75rem; font-weight: 850; }
.catalogue-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 28px; }
.catalogue-toolbar h2 { margin: 0 !important; }
.catalogue-toolbar input { width: min(360px,100%); }
.mobile-access { margin-bottom: 18px; }
.network-links { margin: 8px 0; display: grid; gap: 5px; }
.network-links a { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 800; overflow-wrap: anywhere; color: var(--teal-dark); }
.kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 16px; box-shadow: 0 7px 22px rgba(16,42,67,.04); }
.kpi strong { display: block; color: var(--navy); font-size: 1.7rem; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 13px; }
table { width: 100%; border-collapse: collapse; min-width: 780px; background: white; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f2f6f9; color: var(--navy); font-size: .8rem; }
.thumb { width: 68px; height: 56px; object-fit: cover; border-radius: 9px; background: #e8eef3; }
.order-item + .order-item { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.status-pill { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: #f5e8e8; color: #8b2929; font-size: .82rem; font-weight: 750; }
.status-pill.ready { background: #e4f4ea; color: var(--success); }
.email-success, .email-error { margin-top: 8px; padding: 7px 9px; border-radius: 8px; font-size: .82rem; line-height: 1.35; }
.email-success { background: #e4f4ea; color: var(--success); }
.email-error { background: #fbeaea; color: #9a2525; }
.resend-email { margin-top: 8px; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 23px 0; }

.builder-section { border: 1px solid var(--line); border-radius: 15px; padding: 15px; background: #f8fafc; }
.builder-section h3 { margin: 0; color: var(--navy); }
.option-groups { display: grid; gap: 12px; margin-top: 12px; }
.option-group-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 13px; display: grid; gap: 12px; }
.option-group-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.option-group-title { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 8px; align-items: center; flex: 1; }
.step-number { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--navy); color: white; font-size: .78rem; font-weight: 850; }
.option-group-title input { font-weight: 800; color: var(--navy); }
.option-values { display: grid; gap: 9px; }
.option-value-row { display: grid; grid-template-columns: 1.1fr .75fr 1fr 1fr auto auto; gap: 8px; align-items: end; padding: 10px; border-radius: 12px; background: #f6f9fb; border: 1px solid #e5edf3; }
.option-value-row label { font-size: .76rem; }
.option-value-row input { padding: 9px; }
.availability-check { display: flex; align-items: center; gap: 7px; min-height: 42px; white-space: nowrap; }
.availability-check input { width: auto; }
.empty-builder { padding: 14px; border: 1px dashed #bfcdd8; border-radius: 12px; color: var(--muted); text-align: center; background: white; }
.upload-box { padding: 14px; border: 1px dashed #aebfcd; border-radius: 13px; background: white; }
.photo-preview { display: grid; grid-template-columns: repeat(auto-fill,minmax(145px,1fr)); gap: 10px; margin-top: 11px; }
.photo-tile { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: white; }
.photo-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photo-tile figcaption { display: grid; grid-template-columns: 38px 38px 1fr; gap: 5px; padding: 7px; }
.photo-tile button { padding: 7px; font-size: .76rem; }
.main-photo-badge { position: absolute; top: 8px; left: 8px; padding: 4px 8px; border-radius: 999px; background: var(--amber); color: white; font-size: .7rem; font-weight: 850; }

@media (max-width: 980px) {
  .store-hero { grid-template-columns: 1fr; }
  .hero-process { grid-template-columns: repeat(3,1fr); }
  .hero-process > div { grid-template-columns: 34px 1fr; }
  .option-value-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  main { padding: 15px 12px 52px; }
  .nav { padding: 11px 12px; }
  .brand-lockup small { display: none; }
  .store-hero { padding: 28px 20px; border-radius: 20px; }
  .hero-copy h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .hero-process { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip > div:last-child { border-bottom: 0; }
  .catalogue-heading { display: grid; align-items: stretch; }
  .search-box { min-width: 0; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .product-card { border-radius: 16px; }
  .card-body { padding: 13px; }
  .product-description { min-height: 0; -webkit-line-clamp: 2; }
  .purchase-row { display: grid; }
  .add-button { width: 100%; }
  .delivery-banner { display: grid; }
  .footer-inner { display: grid; }
  .cart-drawer { padding: 16px; }
  input, textarea, select { font-size: 16px; }

  .admin-page main { padding: 14px 12px 108px; }
  .admin-page .nav small { display: none; }
  .admin-layout { display: block; }
  .sidebar {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; top: auto;
    grid-template-columns: repeat(4,1fr); gap: 0;
    padding: 8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
    background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px rgba(16,42,67,.12);
  }
  .sidebar button, .sidebar button.secondary { min-width: 0; min-height: 48px; padding: 7px 4px; border-radius: 9px; font-size: .72rem; justify-content: center; text-align: center; }
  .section.panel { padding: 14px; }
  .kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .kpi { padding: 12px; }
  .kpi strong { font-size: 1.35rem; }
  .form-grid, .shop-autofill-grid { grid-template-columns: 1fr; }
  .form-actions > button, .button-row > button { flex: 1 1 150px; }
  .catalogue-toolbar { display: grid; align-items: stretch; }
  .catalogue-toolbar input { width: 100%; }
  .option-value-row { grid-template-columns: 1fr; }
  .option-group-head { align-items: flex-start; }

  .responsive-table { overflow: visible; border: 0; background: transparent; }
  .responsive-table table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; min-width: 0; }
  .responsive-table thead { display: none; }
  .responsive-table table { background: transparent; }
  .responsive-table tr { background: white; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 12px; padding: 8px 12px; box-shadow: 0 5px 16px rgba(16,42,67,.05); }
  .responsive-table td { display: grid; grid-template-columns: minmax(105px,38%) 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  .responsive-table td:last-child { border-bottom: 0; }
  .responsive-table td::before { content: attr(data-label); font-size: .72rem; font-weight: 850; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .trust-strip { margin-bottom: 30px; }
  .cart-row { grid-template-columns: 52px 1fr; }
  .cart-row > img { width: 52px; height: 52px; }
  .quantity-controls { grid-column: 2; justify-self: start; }
  .photo-preview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .responsive-table td { grid-template-columns: 92px 1fr; }
}

/* v0.5.0 catalogue search, categories and enlarged gallery */
.catalogue-controls {
  display: grid;
  grid-template-columns: minmax(230px, 1.6fr) minmax(170px, 1fr) minmax(130px, .72fr) minmax(130px, .72fr) minmax(170px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 15px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  box-shadow: 0 8px 24px rgba(16,42,67,.055);
}
.catalogue-controls label { min-width: 0; color: var(--muted); font-size: .78rem; }
.catalogue-controls .search-box { min-width: 0; }
.catalogue-controls .filter-clear { min-height: 43px; }
.results-summary { color: var(--muted); font-weight: 750; white-space: nowrap; }
.product-category-link.category-label {
  appearance: none;
  width: auto;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  box-shadow: none;
  font-size: .72rem;
  line-height: 1.25;
  font-weight: 800;
}
.product-category-link.category-label:hover { background: #d7eeea; color: var(--teal-dark); }
.product-main-image[role="button"] { cursor: zoom-in; }
.product-main-image[role="button"]:focus-visible { outline: 4px solid rgba(232,121,22,.6); outline-offset: -4px; }
body.lightbox-open { overflow: hidden; }
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5,15,28,.92);
  backdrop-filter: blur(7px);
}
.lightbox-shell {
  width: min(1120px, 100%);
  max-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  color: white;
}
.lightbox-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.lightbox-head > div { display: grid; gap: 2px; }
.lightbox-head strong { font-size: 1.05rem; }
.lightbox-head span { color: rgba(255,255,255,.7); font-size: .86rem; }
.lightbox-close { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24); }
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-stage {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.12);
  touch-action: pan-y;
}
.lightbox-stage img {
  display: block;
  width: 100%;
  height: min(72vh, 780px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 58px;
  padding: 0;
  border-radius: 14px;
  background: rgba(16,42,67,.78);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 2.15rem;
  line-height: 1;
}
.lightbox-arrow:hover { background: rgba(15,118,110,.9); }
.lightbox-arrow.previous { left: 12px; }
.lightbox-arrow.next { right: 12px; }
.lightbox-thumbnails { display: flex; justify-content: center; gap: 8px; overflow-x: auto; padding: 3px 1px 7px; }
.lightbox-thumb {
  flex: 0 0 66px;
  width: 66px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  border: 2px solid transparent;
  opacity: .72;
  box-shadow: none;
}
.lightbox-thumb.active { border-color: var(--amber); opacity: 1; }
.lightbox-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }

@media (max-width: 1080px) {
  .catalogue-controls { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .catalogue-controls .search-box { grid-column: span 2; }
}
@media (max-width: 760px) {
  .catalogue-controls { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 12px; }
  .catalogue-controls .search-box { grid-column: 1 / -1; }
  .catalogue-controls .filter-clear { width: 100%; }
  .results-summary { white-space: normal; }
  .image-lightbox { padding: 10px; }
  .lightbox-shell { max-height: calc(100vh - 20px); }
  .lightbox-stage img { height: min(70vh, 680px); }
  .lightbox-arrow { width: 42px; height: 52px; }
  .lightbox-arrow.previous { left: 7px; }
  .lightbox-arrow.next { right: 7px; }
}
@media (max-width: 480px) {
  .catalogue-controls { grid-template-columns: 1fr; }
  .catalogue-controls .search-box { grid-column: auto; }
  .lightbox-stage { min-height: 220px; border-radius: 12px; }
  .lightbox-stage img { height: 64vh; }
  .lightbox-thumb { flex-basis: 56px; width: 56px; height: 46px; }
  .lightbox-arrow { width: 38px; height: 48px; border-radius: 12px; }
}
