@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --brand:#ff7a59;
  --brand-2:#ff9677;
  --brand-dark:#f3562f;
  --brand-soft:#ffe7df;
  --ink:#1f2937;
  --ink-soft:#4b5563;
  --bg:#f5f7fb;
  --surface:#ffffff;
  --surface-alt:#fdf9f7;
  --line:#e2e8f0;
  --line-strong:#cbd5e1;
  --ok:#16a34a;
  --warn:#dc2626;
  --info:#2563eb;
  --shadow-sm:0 6px 18px rgba(17,24,39,0.06);
  --shadow-lg:0 18px 45px rgba(15,23,42,0.08);
  --radius-lg:20px;
  --radius-md:14px;
  --radius-sm:10px;
  --transition:all .2s ease;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html,
body{
  height:100%;
}

body{
  margin:0;
  min-height:100vh;
  background:radial-gradient(circle at 20% 20%,rgba(255,122,89,.12),transparent 55%),radial-gradient(circle at 80% 0%,rgba(37,99,235,.08),transparent 50%),var(--bg);
  color:var(--ink);
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Noto Sans', Helvetica, Arial, sans-serif;
  line-height:1.5;
}

.wrap{
  max-width:1200px;
  margin:auto;
  padding:clamp(1.5rem,4vw,3rem);
}

.main-tabs{
  display:flex;
  gap:0.6rem;
  flex-wrap:wrap;
  justify-content:flex-start;
  background:rgba(255,255,255,0.75);
  padding:0.6rem;
  border-radius:999px;
  margin-bottom:clamp(1.2rem,3vw,1.8rem);
  box-shadow:var(--shadow-sm);
  border:1px solid rgba(226,232,240,0.7);
  backdrop-filter:blur(6px);
}

.main-tab{
  appearance:none;
  border:0;
  background:transparent;
  padding:0.55rem 1.4rem;
  border-radius:999px;
  font-weight:600;
  font-size:0.95rem;
  color:var(--ink-soft);
  cursor:pointer;
  transition:var(--transition);
}

.main-tab:hover,
.main-tab:focus-visible{
  color:var(--brand-dark);
  background:rgba(255,122,89,0.12);
}

.main-tab.is-active{
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;
  box-shadow:0 12px 30px rgba(255,122,89,0.35);
}

.main-tab:focus-visible{
  outline:3px solid rgba(255,122,89,0.28);
  outline-offset:2px;
}

.card{
  background:var(--surface);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  border:1px solid rgba(255,255,255,0.6);
  overflow:hidden;
}

.view-panel{
  margin-bottom:clamp(1.5rem,4vw,2rem);
}

.card-secondary{
  background:linear-gradient(160deg,rgba(255,255,255,0.92),rgba(247,250,255,0.94));
  border:1px solid rgba(226,232,240,0.7);
}

.alt-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:1.2rem;
  padding:1.6rem clamp(1.3rem,3vw,2rem);
  background:linear-gradient(90deg,rgba(255,122,89,0.22),rgba(255,150,119,0.18));
  border-bottom:1px solid rgba(255,255,255,0.4);
}

.alt-head h2{
  margin:0;
  font-size:1.45rem;
  font-weight:700;
  letter-spacing:-0.01em;
  color:var(--ink);
}

.alt-head-sub{
  margin:0.4rem 0 0;
  color:var(--ink-soft);
  font-size:0.95rem;
}

.chip-muted{
  background:rgba(15,23,42,0.08);
  color:#1f2937;
}

.head{
  padding:32px clamp(1.5rem,3vw,2.5rem);
  background:linear-gradient(120deg,var(--brand),var(--brand-2));
  color:#fff;
  position:relative;
}

.head::after{
  content:'';
  position:absolute;
  inset:auto clamp(1.5rem,3vw,2.5rem) -24px;
  height:64px;
  background:rgba(255,255,255,0.15);
  border-radius:999px;
  filter:blur(24px);
  pointer-events:none;
}

.head h1{
  margin:0;
  font-size:clamp(1.5rem,2.2vw,2.1rem);
  font-weight:700;
  letter-spacing:-0.01em;
}

.head small{
  opacity:0.88;
  font-size:0.95rem;
  display:block;
  margin-top:0.4rem;
}

.stepper{
  display:flex;
  align-items:center;
  gap:0;
  background:rgba(255,255,255,0.15);
  border-radius:999px;
  padding:8px;
  position:relative;
  backdrop-filter:blur(4px);
}

.step{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:rgba(255,255,255,0.8);
  font-weight:600;
  font-size:0.9rem;
  position:relative;
  padding:6px 4px;
  transition:var(--transition);
}

.step:not(:last-child)::after{
  content:'';
  position:absolute;
  right:-2px;
  top:50%;
  width:1px;
  height:50%;
  background:rgba(255,255,255,0.23);
  transform:translateY(-50%);
}

.step .dot{
  width:32px;
  height:32px;
  border-radius:50%;
  background:#fff;
  color:var(--brand);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  box-shadow:var(--shadow-sm);
  transition:var(--transition);
}

.step.done{
  color:#fff;
}

.step.done .dot{
  background:rgba(22,163,74,0.18);
  color:#fff;
  border:2px solid rgba(255,255,255,0.45);
}

.step.current{
  color:#fff;
}

.step.current .dot{
  background:#fff;
  color:var(--brand);
  transform:scale(1.05);
}

.body{
  padding:clamp(1.5rem,3vw,2.5rem);
  background:var(--surface);
}

.grid{
  display:grid;
  gap:clamp(0.9rem,2vw,1.2rem);
}

.g2{grid-template-columns:repeat(2,minmax(0,1fr));}
.g3{grid-template-columns:repeat(3,minmax(0,1fr));}
.g4{grid-template-columns:repeat(4,minmax(0,1fr));}

.row{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

label{
  font-weight:600;
  font-size:0.8rem;
  text-transform:uppercase;
  letter-spacing:0.06em;
  color:var(--ink-soft);
  display:block;
  margin-bottom:6px;
}

input[type="text"],
input[type="number"],
select,
textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:#fff;
  font-size:0.95rem;
  color:var(--ink);
  transition:var(--transition);
  box-shadow:0 1px 2px rgba(15,23,42,0.08);
}

input[type="number"]{
  -moz-appearance:textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

textarea{
  resize:vertical;
  min-height:110px;
}

input:focus,
select:focus,
textarea:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 4px rgba(255,122,89,0.15);
  outline:none;
}

::placeholder{
  color:#94a3b8;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  font-size:0.9rem;
  font-weight:500;
  color:var(--ink-soft);
  cursor:pointer;
  transition:var(--transition);
  box-shadow:var(--shadow-sm);
}

.pill label{
  margin:0;
  padding:0;
  text-transform:none;
  letter-spacing:0;
  font-size:0.85rem;
  font-weight:600;
  color:inherit;
  cursor:pointer;
}

.pill:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(15,23,42,0.1);
}

.pill[aria-pressed="true"]{
  border-color:var(--brand);
  background:var(--brand-soft);
  color:var(--brand-dark);
}

.pill input[type="checkbox"]{
  appearance:none;
  width:18px;
  height:18px;
  border-radius:6px;
  border:1.5px solid var(--line-strong);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  position:relative;
}

.pill input[type="checkbox"]::after{
  content:'';
  width:10px;
  height:10px;
  border-radius:3px;
  background:var(--brand);
  transform:scale(0);
  transition:var(--transition);
}

.pill input[type="checkbox"]:checked{
  border-color:var(--brand);
}

.pill input[type="checkbox"]:checked::after{
  transform:scale(1);
}

.btn{
  appearance:none;
  border:0;
  border-radius:var(--radius-sm);
  padding:12px 20px;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;
  font-weight:600;
  font-size:0.95rem;
  box-shadow:0 8px 22px rgba(255,122,89,0.25);
  cursor:pointer;
  transition:var(--transition);
}

.btn:hover:not(:disabled){
  transform:translateY(-1px);
  box-shadow:0 12px 30px rgba(255,122,89,0.35);
}

.btn:active:not(:disabled){
  transform:translateY(1px);
  box-shadow:0 6px 16px rgba(255,122,89,0.2);
}

.btn:focus-visible{
  outline:3px solid rgba(255,122,89,0.28);
  outline-offset:3px;
}

.btn.secondary{
  background:#fff;
  color:var(--ink);
  border:1px solid var(--line);
  box-shadow:0 6px 18px rgba(15,23,42,0.08);
}

.btn.secondary:hover:not(:disabled){
  border-color:var(--brand);
  color:var(--brand-dark);
}

.btn.ghost{
  background:transparent;
  color:var(--brand);
  border:1px dashed var(--brand);
  box-shadow:none;
}

.btn.small{
  padding:8px 12px;
  font-size:0.82rem;
  border-radius:8px;
}

.btn:disabled{
  opacity:.6;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}

.btn.is-loading{
  position:relative;
  pointer-events:none;
  opacity:0.7;
}

.btn.is-loading::after{
  content:'';
  position:absolute;
  inset:auto 12px auto auto;
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,0.55);
  border-top-color:#fff;
  animation:spin 0.8s linear infinite;
}

.section{
  border-radius:var(--radius-md);
  padding:clamp(1rem,2.5vw,1.4rem);
  background:var(--surface-alt);
  border:1px solid rgba(255,255,255,0.8);
  box-shadow:var(--shadow-sm);
}

.panel{
  border:1px solid rgba(255,255,255,0.8);
  border-radius:var(--radius-md);
  padding:clamp(0.9rem,2vw,1.3rem);
  background:linear-gradient(145deg,rgba(255,255,255,0.95),rgba(248,249,255,0.9));
  box-shadow:var(--shadow-sm);
  display:grid;
  gap:clamp(0.9rem,2vw,1.1rem);
}

.panel-hint{
  margin:0;
  font-size:0.85rem;
  color:var(--ink-soft);
}

.panel h3{
  margin:0;
  font-size:1rem;
  color:var(--ink);
  font-weight:600;
}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:0.9rem;
  background:#fff;
  border-radius:var(--radius-sm);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
}

.table th,
.table td{
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  text-align:left;
}

.table thead th{
  background:#eef2ff;
  font-weight:600;
  color:#334155;
  text-transform:uppercase;
  font-size:0.75rem;
  letter-spacing:0.06em;
}

.table tbody tr:nth-child(odd){
  background:#f8fafc;
}

.table tbody tr:hover td{
  background:rgba(255,122,89,0.06);
}

.table tbody tr:last-child td{
  border-bottom:none;
}

.table td{
  vertical-align:top;
}

.history-section{
  display:grid;
  gap:1.2rem;
  background:rgba(255,255,255,0.92);
}

.history-controls{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}

.history-controls input[type="search"]{
  flex:1;
  min-width:220px;
}

.history-meta{
  display:flex;
  align-items:center;
  gap:0.8rem;
}

.history-empty{
  margin:0;
  color:var(--ink-soft);
  font-size:0.9rem;
  text-align:center;
}

.history-detail{
  border:1px dashed var(--line);
  border-radius:var(--radius-md);
  padding:1rem 1.2rem;
  background:#f8fafc;
  display:grid;
  gap:0.8rem;
}

.history-detail-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.8rem;
}

.history-detail-head h3{
  margin:0;
  font-size:1.05rem;
  color:var(--ink);
}

.history-detail-list{
  margin:0;
  padding-left:1.1rem;
  display:grid;
  gap:0.4rem;
  color:var(--ink-soft);
  font-size:0.9rem;
  list-style:disc;
}

.history-detail-actions{
  display:flex;
  justify-content:flex-end;
}

.product-layout{
  background:var(--surface-alt);
  border:1px solid rgba(255,255,255,0.8);
  border-radius:var(--radius-md);
  padding:clamp(1.2rem,3vw,1.8rem);
  box-shadow:var(--shadow-sm);
  display:grid;
  gap:1.4rem;
}

.product-form-card,
.product-table-card{
  background:#fff;
  border:1px solid rgba(226,232,240,0.7);
  border-radius:var(--radius-md);
  padding:clamp(1rem,2.5vw,1.4rem);
  box-shadow:0 6px 18px rgba(15,23,42,0.06);
  display:grid;
  gap:1rem;
}

.product-hint{
  margin:0;
  font-size:0.9rem;
  color:var(--ink-soft);
}

.product-form-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:0.8rem;
}

.product-form-head h3{
  margin:0;
  font-size:1.2rem;
  color:var(--ink);
}

.product-head-sub{
  margin:0.35rem 0 0;
  font-size:0.85rem;
  color:var(--ink-soft);
}

.product-form{
  display:grid;
  gap:1rem;
}

.product-fields{
  display:grid;
  gap:1rem;
}

.product-fieldset{
  background:#fff;
  border:1px solid rgba(226,232,240,0.7);
  border-radius:var(--radius-sm);
  padding:1rem;
  display:grid;
  gap:0.8rem;
  box-shadow:0 6px 18px rgba(15,23,42,0.05);
}

.product-fieldset .grid{
  gap:0.8rem;
}

.product-fieldset input{
  background:#f8fafc;
}

.fieldset-label{
  display:inline-flex;
  align-items:center;
  gap:0.4rem;
  font-size:0.75rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:#475569;
}

.fieldset-hint{
  font-size:0.8rem;
  color:#64748b;
  background:rgba(100,116,139,0.08);
  padding:0.6rem 0.8rem;
  border-radius:8px;
}

.product-pricing .grid{
  gap:1rem;
}

.product-form-actions{
  display:flex;
  justify-content:flex-end;
  gap:0.8rem;
}

.product-table-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}

.product-table-actions{
  display:flex;
  gap:0.6rem;
}

.product-table-actions .btn{
  box-shadow:none;
}

.product-pagination{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:0.8rem 1rem;
}

.product-page-row{
  width:100%;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}

.product-page-size{
  font-size:0.88rem;
  color:var(--ink-soft);
  display:flex;
  align-items:center;
  gap:0.4rem;
}

.product-page-size select{
  min-width:70px;
}

.product-page-controls{
  display:flex;
  align-items:center;
  gap:0.6rem;
}

.product-page-info{
  font-size:0.88rem;
  color:var(--ink-soft);
}

.product-summary{
  display:flex;
  flex-wrap:wrap;
  gap:0.6rem;
  margin-bottom:0.8rem;
}

.product-summary .chip{
  background:#fff;
  color:var(--ink);
  box-shadow:0 4px 12px rgba(15,23,42,0.08);
}

.product-units-wrap{
  margin-top:1rem;
  display:grid;
  gap:0.4rem;
}

.product-units-title{
  margin:0;
  font-size:0.85rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:#475569;
}

.product-units{
  margin-top:0.8rem;
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
}

.product-units .chip{
  background:rgba(37,99,235,0.08);
  color:#1d4ed8;
}

.product-row-actions{
  gap:6px;
}

.product-empty{
  margin:0;
  color:var(--ink-soft);
  font-size:0.9rem;
  text-align:center;
}

.muted{
  color:var(--ink-soft);
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  background:#eef2ff;
  color:#3730a3;
  font-size:0.78rem;
  font-weight:600;
}

.title{
  font-size:1.15rem;
  font-weight:700;
  margin:0 0 0.6rem;
  color:var(--ink);
}

.subtitle{
  font-size:0.95rem;
  color:var(--ink-soft);
  margin:0 0 0.8rem;
}

.kbd{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  background:#111827;
  color:#fff;
  padding:2px 6px;
  border-radius:6px;
  font-size:0.75rem;
}

.divider{
  height:1px;
  background:linear-gradient(90deg,transparent,var(--line),transparent);
  margin:1rem 0;
}

.tag{
  display:inline-flex;
  gap:8px;
  align-items:center;
  background:#fff;
  padding:7px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:0.85rem;
  color:var(--ink-soft);
  box-shadow:var(--shadow-sm);
}

.tag.alert{
  background:rgba(220,38,38,0.12);
  color:#b91c1c;
  border-color:rgba(220,38,38,0.3);
}

.sum{
  font-size:1.4rem;
  font-weight:800;
  color:var(--brand-dark);
}

.warning{
  color:var(--warn);
  font-size:0.82rem;
}

.ok{
  color:var(--ok);
  font-size:0.82rem;
}

details{
  border:1px solid rgba(255,255,255,0.8);
  border-radius:var(--radius-md);
  padding:0.75rem 1rem;
  background:#fff;
  box-shadow:var(--shadow-sm);
}

details.unidad-card{
  padding:0;
  border:none;
  border-radius:var(--radius-md);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  background:var(--surface);
}

details[open]{
  border-color:var(--brand);
  box-shadow:0 12px 28px rgba(255,122,89,0.15);
}

details.unidad-card[open]{
  border-color:transparent;
  box-shadow:0 16px 32px rgba(15,23,42,0.12);
}

summary{
  cursor:pointer;
  font-weight:600;
  color:var(--ink);
  position:relative;
  padding-right:1.5rem;
  list-style:none;
}

summary::-webkit-details-marker{
  display:none;
}

summary::after{
  content:'';
  position:absolute;
  right:0.4rem;
  top:50%;
  width:10px;
  height:10px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-75%) rotate(45deg);
  transition:var(--transition);
}

details[open] summary::after{
  transform:translateY(-25%) rotate(-135deg);
}

.unidad-grid{
  display:grid;
  gap:1.2rem;
}

.unidad-card summary{
  padding:1rem 1.25rem;
  background:linear-gradient(120deg,rgba(255,122,89,0.12),rgba(255,150,119,0.22));
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--brand-dark);
}

.unidad-card summary::after{
  border-color:rgba(243,86,47,0.7);
}

.unidad-card[open] summary{
  border-bottom:1px solid rgba(255,255,255,0.6);
}

.unidad-summary{
  display:flex;
  align-items:center;
  gap:0.8rem;
}

.unidad-content{
  padding:1.1rem 1.25rem 1.6rem;
  display:grid;
  gap:1rem;
}

.unidad-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}

.unidad-hint{
  margin:0;
  font-size:0.9rem;
  color:var(--ink-soft);
}

.unidad-empty{
  margin:0;
  padding:0.85rem 1rem;
  border:1px dashed var(--line);
  border-radius:var(--radius-sm);
  background:#f8fafc;
  color:var(--ink-soft);
  font-size:0.9rem;
}

.table-scroll{
  overflow-x:auto;
}

.unidad-table{
  min-width:720px;
}

.unidad-table td:first-child{
  min-width:220px;
}

.unidad-table select[multiple]{
  min-height:130px;
  width:100%;
  white-space:normal;
}

.unidad-table select[multiple] option{
  white-space:normal;
}

.unidad-table input[type="number"]{
  width:100%;
  min-width:70px;
}

.sticky-footer{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:18px clamp(1.5rem,3vw,2.5rem);
  border-top:1px solid rgba(226,232,240,0.7);
  background:rgba(249,250,251,0.95);
  border-radius:0 0 var(--radius-lg) var(--radius-lg);
  backdrop-filter:blur(6px);
  align-items:center;
}

@media (max-width: 920px){
  .g2,
  .g3,
  .g4{grid-template-columns:1fr;}
  .sticky-footer{
    flex-direction:column;
    align-items:stretch;
  }
  .sticky-footer .row{
    justify-content:space-between;
  }
  .product-form-actions{
    justify-content:flex-start;
  }
  .product-pagination{
    flex-direction:column;
    align-items:flex-start;
    gap:0.8rem;
  }
  .product-page-controls{
    width:100%;
    justify-content:space-between;
  }
}

.resource-wrapper{
  display:grid;
  gap:1.2rem;
}

.resource-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:0.6rem;
  background:rgba(255,255,255,0.65);
  border:1px solid rgba(226,232,240,0.7);
  border-radius:999px;
  padding:0.6rem;
  box-shadow:var(--shadow-sm);
}

.resource-tab{
  appearance:none;
  border:0;
  background:transparent;
  padding:0.55rem 1.1rem;
  border-radius:999px;
  font-weight:600;
  font-size:0.9rem;
  color:var(--ink-soft);
  cursor:pointer;
  transition:var(--transition);
}

.resource-tab:hover{
  background:rgba(255,122,89,0.12);
  color:var(--brand-dark);
}

.resource-tab.is-active{
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;
  box-shadow:0 10px 26px rgba(255,122,89,0.32);
}

.resource-panels{
  display:grid;
}

.resource-panel.hidden{
  display:none;
}

.resource-panel .row{
  align-items:flex-end;
}

.resource-panel select{
  min-width:160px;
}

.resource-panel input[type="number"]{
  max-width:130px;
}

@media (max-width: 680px){
  .unidad-table{
    min-width:600px;
  }
  .resource-tabs{
    border-radius:16px;
  }
  .resource-tab{
    flex:1 1 calc(50% - 0.6rem);
    text-align:center;
  }
  .resource-panel .row{
    flex-direction:column;
    align-items:stretch;
  }
  .resource-panel select,
  .resource-panel input,
  .resource-panel button{
    width:100%;
  }
  .history-controls{
    flex-direction:column;
    align-items:stretch;
    gap:0.8rem;
  }
  .history-meta{
    justify-content:space-between;
  }
  .product-table-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .product-table-actions{
    width:100%;
    justify-content:flex-start;
  }
  .product-form-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .product-page-row{
    flex-direction:column;
    align-items:flex-start;
    gap:0.6rem;
  }
  .product-page-controls{
    width:100%;
    justify-content:flex-start;
  }
}

.right{
  margin-left:auto;
}

.hidden{
  display:none;
}

.toast{
  position:fixed;
  right:24px;
  bottom:24px;
  max-width:320px;
  padding:14px 18px;
  border-radius:12px;
  background:#111827;
  color:#fff;
  box-shadow:0 18px 40px rgba(15,23,42,0.25);
  font-size:0.9rem;
  font-weight:500;
  line-height:1.4;
  opacity:0;
  transform:translateY(16px);
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  z-index:999;
}

.toast.show{
  opacity:1;
  transform:translateY(0);
}

.toast.error{
  background:#b91c1c;
}

.toast.success{
  background:#15803d;
}

@keyframes spin{
  to{ transform:rotate(360deg); }
}
