:root {
  --bg: #fbf9f7;
  --bg-warm: #f5efea;
  --surface: #ffffff;
  --surface-soft: #f8f4f1;
  --surface-rose: #f4e8e5;
  --ink: #171413;
  --ink-2: #423b37;
  --muted: #7f756f;
  --line: #e8dfd9;
  --line-strong: #d9ccc4;
  --accent: #b8887e;
  --accent-deep: #875f57;
  --success: #2f6f50;
  --success-soft: #eaf4ee;
  --danger: #a34542;
  --danger-soft: #f8e9e7;
  --shadow-soft: 0 18px 48px rgba(55, 40, 31, .07);
  --shadow-card: 0 13px 34px rgba(55, 40, 31, .09);
  --shell: 1180px;
  --admin-shell: 1050px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.shell { width: min(calc(100% - 34px), var(--shell)); margin-inline: auto; }
.admin-shell { width: min(calc(100% - 34px), var(--admin-shell)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.eyebrow {
  display: inline-block;
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Catálogo ---------- */
.announcement-bar {
  background: #1d1a18;
  color: #faf6f2;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.announcement-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
}
.announcement-spark { color: #dabcb5; font-size: 11px; }

.catalog-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 17% 12%, rgba(224,198,190,.42), transparent 28%),
    radial-gradient(circle at 90% 88%, rgba(218,202,188,.28), transparent 34%),
    linear-gradient(180deg, #fffdfb 0%, #f8f3ef 100%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(157, 116, 105, .11);
}
.hero-orb-one {
  width: 280px;
  height: 280px;
  right: -120px;
  top: -125px;
  box-shadow: 0 0 0 40px rgba(157,116,105,.025), 0 0 0 80px rgba(157,116,105,.014);
}
.hero-orb-two {
  width: 170px;
  height: 170px;
  left: -110px;
  bottom: -115px;
  box-shadow: 0 0 0 30px rgba(157,116,105,.018);
}
.hero-layout {
  position: relative;
  z-index: 1;
  min-height: 270px;
  padding-block: 50px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  align-items: end;
  gap: 54px;
}
.brand-name {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.05em;
}
.brand-line {
  display: block;
  width: 46px;
  height: 1px;
  margin: 20px 0 14px;
  background: var(--accent);
}
.brand-tagline {
  margin: 0;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: clamp(15px, 2vw, 18px);
  font-style: italic;
  line-height: 1.5;
}
.capture-tip {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 91px;
  padding: 18px 20px;
  border: 1px solid rgba(205,187,178,.72);
  border-radius: 19px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 14px 42px rgba(60,43,34,.055);
  backdrop-filter: blur(9px);
}
.capture-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-deep);
  background: var(--surface-rose);
}
.capture-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.capture-tip strong, .capture-tip small { display: block; }
.capture-tip strong { margin-bottom: 4px; font-size: 13px; }
.capture-tip small { color: var(--muted); font-size: 12px; line-height: 1.48; }
.capture-tip b { color: var(--ink-2); }

.catalog-main { padding-block: 34px 74px; }
.catalog-heading {
  min-height: 57px;
  margin-bottom: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.catalog-heading h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  letter-spacing: -.035em;
}
.catalog-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.catalog-stats strong { color: var(--ink); font-size: 16px; font-weight: 760; }
.stats-divider { width: 1px; height: 18px; background: var(--line-strong); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
}
.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(48,34,27,.035);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .42s cubic-bezier(.2,.7,.2,1), opacity .42s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card.is-visible { transform: translateY(0); opacity: 1; }
@media (hover:hover) {
  .product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: #ddcfc7; }
  .product-card:hover .product-image { transform: scale(1.018); }
}
.product-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #eee8e3, #e6dfd9);
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .36s cubic-bezier(.2,.7,.2,1), filter .2s ease;
}
.product-number, .availability-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  box-shadow: 0 4px 15px rgba(28,21,18,.08);
  backdrop-filter: blur(9px);
}
.product-number {
  left: 10px;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.availability-badge {
  right: 10px;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
}
.availability-badge.available { color: var(--success); background: rgba(238,248,242,.93); }
.availability-badge.unavailable { color: var(--danger); background: rgba(255,244,243,.94); }
.sold-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(31,26,23,.25);
}
.sold-overlay span {
  padding: 9px 12px;
  color: white;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(27,23,21,.63);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.product-card.is-unavailable .product-image { filter: saturate(.68) contrast(.95); }
.product-info { padding: 13px 13px 14px; }
.product-price {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.product-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.size-pill {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--ink-2);
  background: var(--surface-soft);
  border: 1px solid #eee6e1;
  font-size: 9px;
  font-weight: 780;
}
.product-state-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--success);
  font-size: 9px;
  font-weight: 750;
}
.product-card.is-unavailable .product-state-inline { color: var(--danger); }

.catalog-loading { color: var(--muted); text-align: center; font-size: 12px; }
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
}
.skeleton-card {
  aspect-ratio: .76;
  border-radius: 18px;
  background: linear-gradient(90deg, #f0ebe7 25%, #f8f4f1 50%, #f0ebe7 75%);
  background-size: 220% 100%;
  animation: shimmer 1.3s infinite linear;
}
@keyframes shimmer { to { background-position: -220% 0; } }
.catalog-loading p { margin: 15px 0 0; }
.state-card {
  max-width: 560px;
  margin: 50px auto;
  padding: 44px 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-soft);
}
.state-symbol {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--danger);
  background: var(--danger-soft);
  font-family: var(--serif);
  font-weight: 700;
}
.state-symbol.flower { color: var(--accent-deep); background: var(--surface-rose); }
.state-card h3 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.state-card p { margin: 9px auto 20px; max-width: 400px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.catalog-footer { border-top: 1px solid var(--line); background: #f7f2ee; }
.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
}
.footer-inner span:first-child { color: var(--ink); font-family: var(--serif); font-size: 16px; }

/* ---------- Botones / formularios ---------- */
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, opacity .14s ease;
}
.button:active { transform: scale(.985); }
.button:disabled { opacity: .58; cursor: wait; }
.button-dark { color: white; background: #1d1a18; border-color: #1d1a18; }
.button-dark:hover { background: #312b27; }
.button-light { color: var(--ink); background: white; border-color: var(--line-strong); }
.button-light:hover { background: #faf7f5; }
.button-danger { color: white; background: var(--danger); border-color: var(--danger); }
.button-wide { width: 100%; }
.button.compact { min-height: 38px; padding: 8px 12px; font-size: 11px; }
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  cursor: pointer;
}
.icon-button svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.field { display: grid; gap: 7px; }
.field > span:first-child { color: var(--ink-2); font-size: 11px; font-weight: 760; }
.field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: white;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { border-color: #bda59d; box-shadow: 0 0 0 3px rgba(183,136,126,.12); }
.form-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #efcecb;
  border-radius: 10px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 11px;
  line-height: 1.4;
}

/* ---------- Admin login ---------- */
.admin-page { background: #f7f3ef; }
.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 17px;
  background:
    radial-gradient(circle at 15% 15%, rgba(228,206,199,.58), transparent 26%),
    radial-gradient(circle at 87% 86%, rgba(221,204,190,.40), transparent 30%),
    #f8f4f0;
}
.login-card {
  width: min(100%, 420px);
  padding: 31px;
  border: 1px solid rgba(207,190,181,.78);
  border-radius: 24px;
  background: rgba(255,255,255,.91);
  box-shadow: 0 24px 70px rgba(54,39,31,.09);
}
.back-link { display: inline-flex; margin-bottom: 26px; color: var(--muted); font-size: 11px; font-weight: 700; }
.login-monogram {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-deep);
  background: var(--surface-rose);
  font-family: var(--serif);
  font-size: 14px;
}
.login-card h1 { margin: 6px 0 8px; font-family: var(--serif); font-size: 34px; font-weight: 400; letter-spacing: -.035em; }
.login-card > p { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.stack-form { display: grid; gap: 15px; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 62px; }
.password-toggle { position: absolute; right: 4px; top: 3px; width: 52px; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; }

/* ---------- Admin dashboard ---------- */
.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(250,247,244,.91);
  backdrop-filter: blur(13px);
}
.admin-topbar {
  min-height: 91px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.admin-topbar h1 { margin: 4px 0 0; font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -.035em; }
.admin-top-actions { display: flex; align-items: center; gap: 8px; }
.logout-button { color: var(--muted); }
.admin-content { padding-block: 30px 70px; }
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 13px;
}
.summary-card {
  min-height: 137px;
  padding: 20px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 28px rgba(49,35,28,.035);
}
.summary-card span { color: var(--muted); font-size: 10px; font-weight: 750; }
.summary-card strong { margin: 4px 0 2px; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.summary-card small { color: var(--muted); font-size: 9px; }
.summary-card.success-card { background: linear-gradient(145deg, #fff, #f5faf7); }
.summary-card.success-card strong { color: var(--success); }
.summary-card.muted-card { background: linear-gradient(145deg, #fff, #fcf6f5); }
.summary-card.muted-card strong { color: var(--danger); }
.admin-list-section { margin-top: 36px; }
.admin-section-heading {
  margin-bottom: 15px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.admin-section-heading h2 { margin: 4px 0 0; font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.035em; }
.add-button { min-width: 152px; }
.admin-loading, .admin-empty {
  padding: 48px 20px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: rgba(255,255,255,.52);
  font-size: 11px;
}
.admin-empty h3 { margin: 9px 0 5px; color: var(--ink); font-family: var(--serif); font-size: 24px; font-weight: 400; }
.admin-empty p { max-width: 460px; margin: 0 auto 18px; line-height: 1.55; }
.empty-illustration { color: var(--accent); font-size: 24px; }
.admin-product-list { display: grid; gap: 10px; }
.admin-product-card {
  min-height: 126px;
  display: grid;
  grid-template-columns: 96px minmax(0,1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 5px 19px rgba(46,33,27,.03);
}
.admin-product-image { width: 96px; height: 100%; min-height: 126px; object-fit: cover; background: #eee8e4; }
.admin-product-body { min-width: 0; padding: 14px 15px 12px; display: grid; align-content: center; }
.admin-product-title-row { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.admin-product-title-row > div { min-width: 0; }
.admin-product-number { display: block; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.admin-product-price { display: block; margin-top: 2px; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.admin-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; color: var(--success); background: var(--success-soft); }
.admin-status.unavailable { color: var(--danger); background: var(--danger-soft); }
.admin-size { margin-top: 3px; color: var(--ink-2); font-size: 10px; }
.admin-card-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.mini-action {
  min-height: 29px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf9f7;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 760;
}
.mini-action.toggle-action { color: var(--success); border-color: #cfe2d6; background: #f5faf7; }
.admin-product-card.is-unavailable .mini-action.toggle-action { color: var(--danger); border-color: #efd1ce; background: #fdf7f6; }
.mini-action.delete-action { color: var(--danger); }

/* ---------- Dialogs ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(29,25,23,.48); backdrop-filter: blur(3px); }
.product-dialog {
  width: min(calc(100% - 30px), 560px);
  max-height: min(92vh, 780px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(221,208,200,.94);
  border-radius: 23px;
  background: #fffdfc;
  box-shadow: 0 30px 90px rgba(27,20,17,.20);
}
.product-dialog[open] { animation: dialogIn .18s ease-out; }
@keyframes dialogIn { from { transform: translateY(8px) scale(.99); opacity: .6; } }
.product-form { padding: 23px; }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.dialog-header h2 { margin: 4px 0 0; font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -.035em; }
.dialog-close { font-size: 24px; line-height: 1; color: var(--muted); }
.photo-field { margin-top: 19px; }
.photo-picker {
  position: relative;
  min-height: 248px;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  border: 1px dashed #cdbbb2;
  border-radius: 17px;
  background: linear-gradient(145deg, #faf7f4, #f3ece7);
}
.photo-picker img { width: 100%; height: 300px; object-fit: cover; }
.photo-placeholder { padding: 28px; text-align: center; }
.photo-placeholder strong, .photo-placeholder small { display: block; }
.photo-placeholder strong { margin-top: 10px; font-size: 12px; }
.photo-placeholder small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.photo-icon {
  width: 42px;
  height: 42px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  font-size: 20px;
}
.photo-change {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  border-radius: 9px;
  color: white;
  background: rgba(22,19,18,.72);
  font-size: 9px;
  font-weight: 800;
  backdrop-filter: blur(5px);
}
.form-grid { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.money-input { position: relative; display: block; }
.money-input b { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.money-input input { padding-left: 28px; }
.availability-switch {
  margin-top: 15px;
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  background: #fbf9f7;
}
.availability-switch > span:first-child strong, .availability-switch > span:first-child small { display: block; }
.availability-switch strong { font-size: 11px; }
.availability-switch small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.availability-switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { position: relative; width: 44px; height: 25px; border-radius: 999px; background: #c9c0ba; transition: background .15s ease; }
.switch-ui::after { content: ""; position: absolute; width: 19px; height: 19px; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(0,0,0,.16); transition: transform .15s ease; }
.availability-switch input:checked + .switch-ui { background: var(--success); }
.availability-switch input:checked + .switch-ui::after { transform: translateX(19px); }
.dialog-actions { margin-top: 17px; display: flex; justify-content: flex-end; gap: 8px; }
.confirm-dialog {
  width: min(calc(100% - 30px), 430px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: white;
  box-shadow: 0 30px 90px rgba(27,20,17,.20);
}
.confirm-content { padding: 28px; text-align: center; }
.confirm-icon { width: 45px; height: 45px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: var(--danger); background: var(--danger-soft); font-family: var(--serif); font-size: 18px; }
.confirm-content h2 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.confirm-content p { margin: 8px auto 0; max-width: 340px; color: var(--muted); font-size: 11px; line-height: 1.52; }
.confirm-content .dialog-actions { justify-content: center; margin-top: 20px; }

/* ---------- Toast ---------- */
.toast-region { position: fixed; z-index: 100; top: 16px; right: 16px; width: min(calc(100% - 32px), 360px); display: grid; gap: 8px; pointer-events: none; }
.toast {
  padding: 12px 14px;
  display: flex;
  align-items: start;
  gap: 9px;
  border: 1px solid #d9e8df;
  border-radius: 12px;
  color: #285d43;
  background: rgba(244,251,247,.97);
  box-shadow: 0 12px 34px rgba(33,47,39,.12);
  font-size: 10px;
  line-height: 1.45;
  pointer-events: auto;
  animation: toastIn .2s ease-out;
}
.toast.error { color: var(--danger); background: rgba(255,247,246,.98); border-color: #edcfcc; }
@keyframes toastIn { from { transform: translateY(-7px); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; min-height: auto; gap: 28px; padding-block: 45px 34px; }
  .capture-tip { max-width: 510px; }
  .product-grid, .skeleton-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 650px) {
  .shell, .admin-shell { width: min(calc(100% - 24px), var(--shell)); }
  .announcement-inner { min-height: 33px; font-size: 8px; letter-spacing: .13em; }
  .hero-layout { padding-block: 34px 28px; gap: 23px; }
  .brand-name { font-size: clamp(44px, 14vw, 63px); }
  .brand-line { margin-block: 16px 12px; }
  .capture-tip { grid-template-columns: 39px minmax(0,1fr); min-height: 78px; padding: 14px 15px; border-radius: 15px; }
  .capture-icon { width: 39px; height: 39px; }
  .capture-icon svg { width: 19px; height: 19px; }
  .capture-tip strong { font-size: 11px; }
  .capture-tip small { font-size: 10px; }
  .catalog-main { padding-block: 25px 55px; }
  .catalog-heading { margin-bottom: 14px; }
  .catalog-heading h2 { font-size: 27px; }
  .catalog-stats { gap: 7px; font-size: 8px; }
  .catalog-stats strong { font-size: 13px; }
  .stats-divider { height: 15px; }
  .product-grid, .skeleton-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px 10px; }
  .product-card { border-radius: 13px; }
  .product-number, .availability-badge { top: 7px; min-height: 23px; padding: 4px 7px; font-size: 7.5px; }
  .product-number { left: 7px; }
  .availability-badge { right: 7px; }
  .availability-badge .availability-text { display: none; }
  .availability-badge { width: 23px; justify-content: center; padding: 0; }
  .availability-badge .status-dot { width: 7px; height: 7px; }
  .sold-overlay span { font-size: 7px; padding: 7px 8px; letter-spacing: .11em; }
  .product-info { padding: 10px 10px 11px; }
  .product-price { font-size: 19px; }
  .product-meta { margin-top: 7px; }
  .size-pill, .product-state-inline { font-size: 7.5px; }
  .product-state-inline { gap: 4px; }
  .product-state-inline .status-dot { width: 5px; height: 5px; }
  .footer-inner { min-height: 78px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 4px; }

  .admin-topbar { min-height: 78px; }
  .admin-topbar h1 { font-size: 23px; }
  .admin-topbar .eyebrow { font-size: 8px; }
  .button.compact { display: none; }
  .summary-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
  .summary-card { min-height: 105px; padding: 13px 10px; border-radius: 14px; }
  .summary-card span { font-size: 8px; }
  .summary-card strong { font-size: 27px; }
  .summary-card small { display: none; }
  .admin-content { padding-block: 20px 60px; }
  .admin-list-section { margin-top: 26px; }
  .admin-section-heading { align-items: center; }
  .admin-section-heading h2 { font-size: 25px; }
  .add-button { min-width: auto; min-height: 40px; padding-inline: 12px; font-size: 10px; }
  .admin-product-card { grid-template-columns: 82px minmax(0,1fr); min-height: 117px; }
  .admin-product-image { width: 82px; min-height: 117px; }
  .admin-product-body { padding: 11px 10px; }
  .admin-status { font-size: 7.5px; }
  .admin-card-actions { gap: 4px; }
  .mini-action { padding: 5px 7px; font-size: 8px; }
  .login-card { padding: 25px 21px; }
  .login-card h1 { font-size: 30px; }

  .product-dialog { width: calc(100% - 18px); max-height: 94vh; border-radius: 19px; }
  .product-form { padding: 18px; }
  .photo-picker { min-height: 220px; }
  .photo-picker img { height: 260px; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .dialog-actions .button { flex: 1; }
}

@media (max-width: 380px) {
  .catalog-stats span:last-child, .stats-divider { display: none; }
  .product-grid, .skeleton-grid { gap: 11px 8px; }
  .size-pill { padding-inline: 6px; }
  .product-state-inline { font-size: 7px; }
  .admin-product-card { grid-template-columns: 76px minmax(0,1fr); }
  .admin-product-image { width: 76px; }
  .mini-action { padding-inline: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
