/* ==========================================================================
   PANEL DE ADMINISTRACIÓN - ESTILOS PROPIOS
   Solo se carga en admin.html (después de styles.css). No afecta a la tienda pública.
   ========================================================================== */
:root {
  --ad-bg: #f5f6fa;
  --ad-surface: #ffffff;
  --ad-border: #e6e8f0;
  --ad-text: #0f172a;
  --ad-muted: #64748b;
  --ad-primary: #4f46e5;
  --ad-primary-dark: #4338ca;
  --ad-primary-soft: #eef2ff;
  --ad-success: #059669;
  --ad-success-soft: #ecfdf5;
  --ad-warning: #d97706;
  --ad-warning-soft: #fffbeb;
  --ad-danger: #dc2626;
  --ad-danger-soft: #fef2f2;
  --ad-info: #0284c7;
  --ad-info-soft: #f0f9ff;
  --ad-radius: 18px;
  --ad-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.05);
}

body.admin-body {
  display: block;
  min-height: 100vh;
  padding-bottom: 0;
  background: var(--ad-bg);
  color: var(--ad-text);
}

/* ---------- Estructura general ---------- */
.ad-shell { display: flex; min-height: 100vh; }
.ad-main { flex: 1; min-width: 0; }
.ad-content { max-width: 1120px; margin: 0 auto; padding: 18px 16px 120px; }

.ad-view { animation: adFade 0.28s ease both; }
@keyframes adFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Menú lateral (computadora) ---------- */
.ad-sidebar { display: none; }

.ad-brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 18px; }
.ad-brand-logo {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 13px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #4338ca); color: #fff; font-size: 1.3rem;
}
.ad-brand-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.ad-brand-name { color: #fff; font-weight: 800; font-size: 1rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-brand-sub { color: #8f95b8; font-size: 0.74rem; }

.ad-nav { display: flex; flex-direction: column; gap: 4px; }
.ad-nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px;
  border: 0; border-radius: 12px; background: transparent; color: #b4b9d6;
  font-weight: 600; font-size: 0.93rem; text-align: left; transition: background 0.18s, color 0.18s;
}
.ad-nav-item i { font-size: 1.1rem; width: 22px; text-align: center; }
.ad-nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.ad-nav-item.active { background: var(--ad-primary); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35); }
.ad-nav-badge {
  margin-left: auto; min-width: 22px; padding: 2px 7px; border-radius: 999px; text-align: center;
  background: #f59e0b; color: #1f2937; font-size: 0.72rem; font-weight: 800;
}
.ad-sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* ---------- Barra superior ---------- */
.ad-topbar {
  position: sticky; top: 0; z-index: 200; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 16px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ad-border);
}
.ad-topbar-title { font-size: 1.1rem; font-weight: 800; margin: 0; }
.ad-topbar-store { font-size: 0.74rem; color: var(--ad-muted); }
.ad-topbar-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Navegación inferior (celular) ---------- */
.ad-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-top: 1px solid var(--ad-border); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.06);
}
.ad-bottom-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px;
  border: 0; border-radius: 12px; background: transparent; color: var(--ad-muted); font-size: 0.68rem; font-weight: 700;
}
.ad-bottom-item i { font-size: 1.3rem; }
.ad-bottom-item.active { color: var(--ad-primary); background: var(--ad-primary-soft); }
.ad-bottom-item .ad-nav-badge { position: absolute; top: 2px; right: calc(50% - 28px); margin: 0; min-width: 18px; font-size: 0.64rem; padding: 1px 5px; }

/* ---------- Botones ---------- */
.ad-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px;
  border: 1px solid transparent; border-radius: 12px; font-weight: 700; font-size: 0.9rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform 0.12s, box-shadow 0.18s, background 0.18s;
}
.ad-btn:active { transform: translateY(1px); }
.ad-btn-primary { background: var(--ad-primary); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28); }
.ad-btn-primary:hover { background: var(--ad-primary-dark); color: #fff; }
.ad-btn-soft { background: var(--ad-primary-soft); color: var(--ad-primary); }
.ad-btn-soft:hover { background: #e0e7ff; color: var(--ad-primary-dark); }
.ad-btn-ghost { background: #fff; border-color: var(--ad-border); color: var(--ad-text); }
.ad-btn-ghost:hover { background: #f8fafc; color: var(--ad-text); }
.ad-btn-sm { padding: 7px 12px; font-size: 0.82rem; border-radius: 10px; }
.ad-btn:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }

.ad-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0;
  border: 1px solid var(--ad-border); border-radius: 10px; background: #fff; color: var(--ad-muted); transition: all 0.15s;
}
.ad-icon-btn:hover { background: var(--ad-primary-soft); color: var(--ad-primary); border-color: #c7d2fe; }
.ad-icon-btn.ad-danger:hover { background: var(--ad-danger-soft); color: var(--ad-danger); border-color: #fecaca; }

/* ---------- Tarjetas y títulos ---------- */
.ad-page-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.ad-h2 { font-size: 1.4rem; font-weight: 800; margin: 0; }
.ad-muted { color: var(--ad-muted); font-size: 0.88rem; margin: 2px 0 0; }

.ad-card { background: var(--ad-surface); border: 1px solid var(--ad-border); border-radius: var(--ad-radius); box-shadow: var(--ad-shadow); margin-bottom: 16px; }
.ad-card-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 0; }
.ad-card-icon { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--ad-primary-soft); color: var(--ad-primary); font-size: 1.1rem; }
.ad-card-title { font-size: 1rem; font-weight: 800; margin: 0; }
.ad-card-desc { font-size: 0.8rem; color: var(--ad-muted); margin: 1px 0 0; }
.ad-card-body { padding: 16px 18px 18px; }
.ad-card-link { margin-left: auto; font-size: 0.82rem; font-weight: 700; color: var(--ad-primary); background: none; border: 0; }

/* ---------- Resumen ---------- */
.ad-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 14px; }
.ad-stat { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--ad-surface); border: 1px solid var(--ad-border); border-radius: var(--ad-radius); box-shadow: var(--ad-shadow); }
.ad-stat-icon { width: 46px; height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 14px; font-size: 1.3rem; }
.tone-success { background: var(--ad-success-soft); color: var(--ad-success); }
.tone-primary { background: var(--ad-primary-soft); color: var(--ad-primary); }
.tone-warning { background: var(--ad-warning-soft); color: var(--ad-warning); }
.tone-danger { background: var(--ad-danger-soft); color: var(--ad-danger); }
.tone-info { background: var(--ad-info-soft); color: var(--ad-info); }
.ad-stat-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; color: var(--ad-muted); text-transform: uppercase; }
.ad-stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-stat-value.is-text { font-size: 1.05rem; }
.ad-stat-hint { font-size: 0.74rem; color: var(--ad-muted); }
.ad-stat > div:last-child { min-width: 0; }

.ad-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.ad-mini { padding: 12px; text-align: center; background: var(--ad-surface); border: 1px solid var(--ad-border); border-radius: 14px; }
.ad-mini-value { font-size: 1.3rem; font-weight: 800; }
.ad-mini-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ad-muted); text-transform: uppercase; }

.ad-grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }

.ad-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ad-border); }
.ad-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ad-item:first-child { padding-top: 0; }
.ad-item-icon { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 11px; }
.ad-item-main { flex: 1; min-width: 0; }
.ad-item-title { font-weight: 700; font-size: 0.9rem; line-height: 1.3; }
.ad-item-text { font-size: 0.78rem; color: var(--ad-muted); }

.ad-progress { height: 8px; background: #eceff6; border-radius: 999px; overflow: hidden; margin: 10px 0 14px; }
.ad-progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6366f1, #22c55e); transition: width 0.5s ease; }
.ad-check { width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #cbd5e1; color: transparent; font-size: 0.8rem; }
.ad-check.done { background: var(--ad-success); border-color: var(--ad-success); color: #fff; }
.ad-item.is-done .ad-item-title { color: var(--ad-muted); text-decoration: line-through; }

/* ---------- Filtros, buscador y etiquetas ---------- */
.ad-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.ad-search { position: relative; flex: 1 1 240px; }
.ad-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ad-muted); }
.ad-search input {
  width: 100%; padding: 10px 14px 10px 38px; border: 1px solid var(--ad-border); border-radius: 12px; background: #fff; font-size: 0.92rem;
}
.ad-search input:focus, .admin-body .form-control:focus, .admin-body .form-select:focus {
  outline: 0; border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.ad-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.ad-chips::-webkit-scrollbar { display: none; }
.ad-chip-btn {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 7px 14px; border: 1px solid var(--ad-border);
  border-radius: 999px; background: #fff; color: var(--ad-text); font-size: 0.84rem; font-weight: 700; transition: all 0.15s;
}
.ad-chip-btn:hover { border-color: #c7d2fe; }
.ad-chip-btn.active { background: var(--ad-primary); border-color: var(--ad-primary); color: #fff; }
.ad-count { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #eef0f6; color: var(--ad-muted); font-size: 0.72rem; text-align: center; }
.ad-chip-btn.active .ad-count { background: rgba(255, 255, 255, 0.25); color: #fff; }

.ad-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; white-space: nowrap; }
.ad-tag { display: inline-block; padding: 2px 8px; border-radius: 8px; background: #f1f3f9; color: var(--ad-muted); font-size: 0.68rem; font-weight: 700; }

/* ---------- Productos ---------- */
.ad-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.ad-product { display: flex; gap: 14px; padding: 14px; background: var(--ad-surface); border: 1px solid var(--ad-border); border-radius: var(--ad-radius); box-shadow: var(--ad-shadow); transition: box-shadow 0.18s, transform 0.18s; }
.ad-product:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09); }
.ad-product.is-paused { opacity: 0.62; background: #fafbfd; }
.ad-product-img { width: 88px; height: 88px; flex-shrink: 0; object-fit: cover; border-radius: 14px; background: #eef0f6; border: 1px solid var(--ad-border); }
.ad-product-main { flex: 1; min-width: 0; }
.ad-product-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
.ad-product-title {
  font-size: 0.95rem; font-weight: 800; line-height: 1.3; margin: 0 0 9px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.ad-product-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ad-field label { display: block; margin-bottom: 2px; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.05em; color: var(--ad-muted); text-transform: uppercase; }
.ad-field input { width: 100%; padding: 6px 9px; border: 1px solid var(--ad-border); border-radius: 9px; font-weight: 700; font-size: 0.9rem; background: #fbfcfe; }
.ad-field input.is-out { border-color: #fca5a5; color: var(--ad-danger); background: var(--ad-danger-soft); }
.ad-field input[readonly] { background: #f1f3f9; color: var(--ad-muted); }
.ad-product-actions { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px; }
.ad-product .form-check-input:checked { background-color: var(--ad-success); border-color: var(--ad-success); }

/* ---------- Pedidos ---------- */
.ad-orders { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ad-order { padding: 16px; background: var(--ad-surface); border: 1px solid var(--ad-border); border-radius: var(--ad-radius); box-shadow: var(--ad-shadow); }
.ad-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ad-order-name { font-weight: 800; font-size: 0.98rem; word-break: break-word; }
.ad-order-date { font-size: 0.74rem; color: var(--ad-muted); }

.ad-stepper { display: flex; align-items: center; margin: 14px 2px 12px; }
.ad-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 0 auto; width: 62px; }
.ad-step-dot { width: 20px; height: 20px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.65rem; }
.ad-step-label { font-size: 0.62rem; font-weight: 700; color: var(--ad-muted); text-align: center; line-height: 1.15; }
.ad-step.done .ad-step-dot { background: var(--ad-success); }
.ad-step.current .ad-step-dot { background: var(--ad-primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18); }
.ad-step.current .ad-step-label { color: var(--ad-text); }
.ad-step-line { flex: 1; height: 3px; margin-bottom: 18px; background: #e2e8f0; border-radius: 3px; }
.ad-step-line.done { background: var(--ad-success); }

.ad-order-items { padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; background: #f8f9fc; font-size: 0.85rem; }
.ad-order-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.78rem; color: var(--ad-muted); margin-bottom: 12px; }
.ad-order-meta i { margin-right: 4px; }
.ad-order-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 12px; border-top: 1px solid var(--ad-border); }
.ad-order-total { font-size: 1.15rem; font-weight: 800; color: var(--ad-primary); }
.ad-order-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.ad-empty { text-align: center; padding: 44px 20px; background: var(--ad-surface); border: 1px dashed #cfd5e4; border-radius: var(--ad-radius); }
.ad-empty-icon { width: 64px; height: 64px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ad-primary-soft); color: var(--ad-primary); font-size: 1.7rem; }
.ad-empty h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.ad-empty p { color: var(--ad-muted); font-size: 0.88rem; margin-bottom: 14px; }

/* ---------- Mi tienda (ajustes por secciones) ---------- */
.ad-settings { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ad-subnav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; position: sticky; top: 64px; z-index: 50; background: var(--ad-bg); scrollbar-width: none; }
.ad-subnav::-webkit-scrollbar { display: none; }
.ad-subnav-item {
  display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; padding: 9px 14px; border: 1px solid var(--ad-border);
  border-radius: 12px; background: #fff; color: var(--ad-text); font-size: 0.86rem; font-weight: 700; text-align: left; transition: all 0.15s;
}
.ad-subnav-item i { color: var(--ad-muted); }
.ad-subnav-item.active { background: var(--ad-primary-soft); border-color: #c7d2fe; color: var(--ad-primary); }
.ad-subnav-item.active i { color: var(--ad-primary); }
.ad-pane { display: none; }
.ad-pane.active { display: block; animation: adFade 0.25s ease both; }

.ad-card-body .form-label { font-weight: 700; font-size: 0.82rem; color: #334155; margin-bottom: 4px; }
.ad-card-body .form-control, .ad-card-body .form-select, .ad-card-body textarea {
  border-radius: 10px; border-color: #dfe3ee; font-size: 0.9rem; padding: 0.5rem 0.75rem;
}
.ad-card-body .form-control-sm, .ad-card-body .form-select-sm { font-size: 0.9rem; padding: 0.5rem 0.75rem; min-height: 40px; }
.ad-card-body .form-check-input:checked { background-color: var(--ad-primary); border-color: var(--ad-primary); }
.ad-card-body .form-text { font-size: 0.75rem; }
.ad-card-body hr { border-color: var(--ad-border); opacity: 1; }

.ad-savebar {
  position: sticky; bottom: 76px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px 12px 18px; margin-top: 6px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px);
  border: 1px solid var(--ad-border); border-radius: 16px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
}
.ad-save-state { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; font-weight: 700; color: var(--ad-muted); }
.ad-save-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ad-success); }
.ad-savebar.is-dirty .ad-save-state { color: var(--ad-warning); }
.ad-savebar.is-dirty .ad-save-dot { background: var(--ad-warning); animation: adPulse 1.4s infinite; }
@keyframes adPulse { 0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.45); } 70% { box-shadow: 0 0 0 8px rgba(217, 119, 6, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); } }

/* ---------- Ingreso ---------- */
.ad-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(circle at 20% 10%, #e0e7ff, transparent 45%), radial-gradient(circle at 85% 90%, #fce7f3, transparent 45%), var(--ad-bg); }
.ad-login-card { width: 100%; max-width: 400px; padding: 30px 26px; text-align: center; background: #fff; border: 1px solid var(--ad-border); border-radius: 24px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12); }
.ad-login-logo { width: 64px; height: 64px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: linear-gradient(135deg, #6366f1, #4338ca); color: #fff; font-size: 1.8rem; box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35); }

/* ---------- Ventanas (modales) ---------- */
.admin-body .modal-content { border: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25); }
.admin-body .modal-header { border-bottom: 1px solid var(--ad-border); padding: 16px 20px; }
.admin-body .modal-title { font-weight: 800; font-size: 1.1rem; }
.admin-body #productForm .form-control, .admin-body #productForm .form-select { border-radius: 10px; border-color: #dfe3ee; }
.admin-body #productForm .form-label { font-weight: 700; font-size: 0.82rem; color: #334155; }
.admin-body #btnSaveProduct { background: var(--ad-primary); border-color: var(--ad-primary); border-radius: 12px; font-weight: 700; padding: 11px; box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28); }
.admin-body .preset-macro-card { border-radius: 16px; }
.admin-body .help-icon-btn:hover { background-color: var(--ad-primary); }
.admin-body .swal2-popup { border-radius: 22px; font-family: inherit; }
.admin-body .swal2-confirm { border-radius: 12px !important; background: var(--ad-primary) !important; }

/* ---------- Pantallas grandes ---------- */
@media (min-width: 576px) {
  .ad-content { padding: 22px 22px 120px; }
}

@media (min-width: 992px) {
  .ad-sidebar {
    display: flex; flex-direction: column; width: 264px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
    padding: 22px 14px 18px; background: linear-gradient(180deg, #0f1226, #181c3a);
  }
  .ad-bottom-nav { display: none; }
  .ad-topbar { padding: 14px 32px; }
  .ad-topbar .ad-mobile-only { display: none; }
  .ad-content { padding: 28px 32px 56px; }
  .ad-grid-2 { grid-template-columns: 1.15fr 1fr; }
  .ad-settings { grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 24px; }
  .ad-subnav { position: sticky; top: 86px; flex-direction: column; overflow: visible; padding: 0; background: transparent; }
  .ad-subnav-item { width: 100%; }
  .ad-settings .ad-panes { min-width: 0; }
  .ad-savebar { grid-column: 2; bottom: 18px; }
  .ad-orders { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) { .ad-products { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); } }
@media (max-width: 991.98px) { .ad-topbar .ad-desktop-only { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .ad-view, .ad-pane.active { animation: none; }
  .ad-progress > span, .ad-product, .ad-btn { transition: none; }
  .ad-savebar.is-dirty .ad-save-dot { animation: none; }
}

.tone-muted { background: #f1f3f9; color: #64748b; }

@media (max-width: 420px) {
  .ad-product { gap: 10px; padding: 12px; }
  .ad-product-img { width: 68px; height: 68px; }
  .ad-content { padding-left: 12px; padding-right: 12px; }
}
