:root{--cream:#fff9f3;--paper:#fffdfb;--blush:#f8e6df;--rose:#bd6470;--rose-d:#a74e5d;--brown:#4a2d27;--gold:#c98b48;--line:#eddbd0;--muted:#876e68;--shadow:0 12px 36px rgba(114,65,54,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--brown);font:15px/1.5 Nunito,system-ui,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{opacity:.55;cursor:wait}[hidden]{display:none!important}
h1,h2,h3{font-family:'Playfair Display',serif;font-weight:600;line-height:1.18}p{margin:.3rem 0}.eyebrow{color:var(--gold);font-size:11px;font-weight:900;letter-spacing:.16em}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;padding:12px clamp(16px,3vw,45px);background:rgba(255,252,248,.98);box-shadow:0 2px 14px #6a44300e;position:relative;top:auto;z-index:1;border-bottom:1px solid var(--line);gap:15px}.admin-logo img{width:250px;max-width:38vw;height:59px;object-fit:contain;object-position:left center}.top-actions{display:flex;align-items:center;gap:16px}.admin-pill{border:1px solid var(--line);color:var(--muted);border-radius:99px;padding:7px 14px;font-size:12px}.top-catalog{font-weight:800;font-size:13px}.ghost{background:transparent;border:1px solid #d7bcb1;color:var(--brown);border-radius:11px;padding:11px 17px;font-weight:800}.ghost:hover{background:#fff1eb}.ghost.small{font-size:12px;padding:7px 11px}.primary{border:0;border-radius:12px;padding:12px 20px;background:linear-gradient(120deg,#b85466,#cf7c7c);color:white;font-weight:900;box-shadow:0 5px 13px #bd647020;transition:transform .12s ease}.primary:hover{transform:translateY(-1px)}.primary.wide{width:100%;margin-top:8px}.login-screen{min-height:calc(100vh - 82px);display:grid;grid-template-columns:1fr 1fr}.login-art{background:linear-gradient(30deg,#743c3e55,#9b6e3755),url('assets/hero-bouquet.webp') center /cover;min-height:550px;position:relative;display:flex;align-items:flex-end;padding:70px clamp(25px,5vw,80px);color:white}.login-art img{display:none}.login-art h1{font-size:clamp(34px,4vw,64px);margin:15px 0}.login-art em{color:#ffe4e1}.login-art span{letter-spacing:.15em;font-size:12px;font-weight:900}.login-art p{max-width:320px}.login-panel{display:grid;place-items:center;padding:40px 25px}.login-panel-inner{width:min(100%,410px)}.login-panel-inner h2{font-size:38px;margin:14px 0}.login-panel-inner p{color:var(--muted);margin-bottom:30px}.login-panel-inner form label{display:block;margin:16px 0;font-weight:800;font-size:13px}.login-panel-inner input{display:block;margin-top:7px;width:100%;border:1px solid var(--line);background:white;border-radius:12px;padding:14px}.login-panel-inner small{display:block;margin-top:20px;color:var(--muted)}.form-error{color:#a63f44!important;margin:10px 0!important;font-weight:800;font-size:13px}.setup-screen{min-height:65vh;display:grid;place-items:center;padding:35px}.setup-card{max-width:560px;text-align:center;background:white;border:1px solid var(--line);border-radius:24px;padding:45px;box-shadow:var(--shadow)}.setup-icon{font-size:50px;color:var(--rose)}.setup-card h1{font-size:35px}.setup-card p{color:var(--muted);margin:15px 0}.setup-card .ghost{display:inline-block;margin-top:12px}
.dashboard{min-height:calc(100vh - 82px);display:grid;grid-template-columns:224px minmax(0,1fr)}.sidebar{background:#fff9f5;border-right:1px solid var(--line);padding:28px 15px;display:flex;flex-direction:column;gap:30px}.side-heading{display:flex;gap:10px;align-items:center;padding:6px}.side-heading img{width:54px;height:54px;object-fit:contain}.side-heading strong{display:block}.side-heading small{color:var(--muted)}.sidebar nav{display:grid;gap:6px}.sidebar nav a{padding:13px 15px;border-radius:12px;color:#694944;font-weight:800;display:flex;gap:12px;align-items:center}.sidebar nav a.active{background:#f4dcd5;color:#a74758}.sidebar nav a:hover{background:#f9eae3}.side-footer{margin-top:auto;border-top:1px solid var(--line);padding:20px 14px;color:#af7b6c;font-size:13px}.workspace{max-width:1470px;width:100%;padding:35px clamp(16px,3vw,54px);margin:auto}.welcome{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.welcome h1{font-size:clamp(30px,3vw,42px);margin:8px 0;color:#442a24}.welcome h1 span{color:var(--rose)}.welcome p{color:var(--muted)}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:32px}.metric{background:var(--paper);border:1px solid var(--line);padding:19px;border-radius:18px;min-height:157px;box-shadow:var(--shadow)}.metric-icon{float:right;display:grid;place-items:center;width:44px;height:44px;border-radius:13px;font-size:24px}.metric-icon.rose{background:#fae4df;color:#b25e61}.metric-icon.peach{background:#f9e9e0;color:#c4814e}.metric-icon.gold{background:#f8e9d8;color:#ae803d}.metric-icon.red{background:#fae1df;color:#bc5663}.metric span{display:block;font-size:12px;color:var(--muted);font-weight:900;padding-top:5px}.metric strong{font:700 36px 'Playfair Display',serif;display:block;margin:10px 0 2px}.metric small{color:var(--muted)}.inventory{background:#fffdfb;border:1px solid var(--line);padding:26px;border-radius:22px;box-shadow:var(--shadow)}.inventory-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.inventory-header h2{font-size:29px;margin:4px 0}.inventory-header h2 span{color:var(--rose)}.inventory-header p{color:var(--muted);margin-bottom:20px}.controls{display:grid;grid-template-columns:minmax(190px,1fr) 185px 165px auto;gap:10px;margin:6px 0 19px}.controls input,.controls select{width:100%;height:44px;background:#fff;border:1px solid var(--line);color:var(--brown);border-radius:10px;padding:0 12px;outline-color:var(--rose)}.controls .search{position:relative}.controls .search span{position:absolute;left:12px;top:8px;font-size:26px;color:var(--muted)}.controls .search input{padding-left:38px}.notice{padding:11px 15px;background:#fce9e4;border:1px solid #efc6bd;color:#86433c;border-radius:12px;margin:14px 0}.product-list{border:1px solid #f0e1d7;border-radius:14px;overflow:hidden}.list-heading,.product-row{display:grid;grid-template-columns:minmax(230px,2fr) 115px 125px 135px 155px;gap:10px;align-items:center;padding:12px 16px}.list-heading{background:#fcf3ee;color:#a47e72;font-size:10px;font-weight:900;letter-spacing:.12em}.product-row{border-top:1px solid #f2e5dc;min-height:87px}.product-row:hover{background:#fffbf8}.product-cell{display:flex;align-items:center;gap:12px;min-width:0}.product-cell img{width:57px;height:57px;object-fit:cover;border-radius:10px;background:#f5e3da}.product-cell strong{display:block;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}.product-cell small{font-size:11px;color:var(--muted)}.money{font-weight:900}.stock-stepper{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:9px;overflow:hidden}.stock-stepper button{border:0;background:#fbf1ed;padding:7px 10px;color:var(--rose);font-weight:900;font-size:17px}.stock-stepper strong{min-width:30px;text-align:center;font-size:13px}.status{padding:5px 10px;font-size:11px;font-weight:900;border-radius:99px;white-space:nowrap;background:#f5e8de;color:#835b42}.status.available{background:#e9f2dd;color:#5f7640}.status.low{background:#fff1d3;color:#946122}.status.soldout{background:#f8dede;color:#a54d52}.status.made{background:#ede3f7;color:#76578e}.actions{display:flex;gap:5px;align-items:center}.actions button{padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:white;color:#865248;font-weight:800;font-size:12px}.actions button:hover{background:#fbefeb}.actions .danger{color:#a54d52}.empty{text-align:center;padding:55px 25px}.empty div{color:var(--rose);font-size:50px}.empty h3{font-size:25px}.empty p{color:var(--muted);margin-bottom:22px}.admin-foot{font-size:12px;color:var(--muted);text-align:center;margin-top:26px}.admin-foot span{color:var(--rose)}
.editor{border:0;border-radius:21px;box-shadow:0 20px 85px #422b2966;padding:0;width:min(95vw,1090px);max-height:94vh;background:var(--paper);color:var(--brown)}.editor::backdrop{background:#351d1d8f;backdrop-filter:blur(3px)}.editor-head{padding:24px 28px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.editor-head h2{font-size:29px;margin:5px 0}.icon-close{border:0;background:#f9e9e1;border-radius:99px;font-size:28px;width:39px;height:39px;color:var(--brown)}.editor-body{display:grid;grid-template-columns:minmax(315px,375px) minmax(0,1fr);gap:32px;padding:28px 32px;overflow:auto;max-height:min(73vh,710px)}.photo-drop{height:236px;border:2px dashed #dfb8a7;background:#fff4ee;border-radius:15px;display:grid;place-items:center;overflow:hidden;cursor:pointer}.photo-drop img{width:100%;height:100%;object-fit:cover}.photo-drop span{color:var(--rose);font-size:40px;display:grid;place-items:center;text-align:center;padding:15px}.photo-drop strong{font-size:13px;color:var(--brown)}.photo-drop small{font-size:11px;color:var(--muted)}.editor-image input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.text-button{border:0;color:var(--rose);background:transparent;font-weight:900;padding:10px 0}.form-fields label{display:block;font-weight:900;font-size:12px;margin:0 0 13px}.form-fields label b{color:var(--rose)}.form-fields label small{color:var(--muted);font-weight:500}.form-fields input:not([type=checkbox]),.form-fields select,.form-fields textarea{display:block;width:100%;background:white;border:1px solid #e5d5ca;border-radius:9px;padding:11px;margin-top:6px;color:var(--brown);outline-color:var(--rose)}.form-fields textarea{resize:vertical}.cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}.checks{border:1px solid var(--line);border-radius:11px;padding:9px 14px;margin-top:4px}.checks .check-row{display:flex;gap:12px;align-items:center;margin:8px 0;padding:5px 0;cursor:pointer}.check-row input{width:19px;height:19px;accent-color:var(--rose)}.check-row span strong,.check-row span small{display:block}.check-row span strong{font-size:12px}.check-row span small{font-size:11px;color:var(--muted)}.editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding:16px 28px}.editor-actions .form-error{margin-right:auto!important}.toast{position:fixed;bottom:26px;right:26px;max-width:380px;z-index:100;background:#50302d;color:white;border-radius:14px;padding:14px 19px;box-shadow:0 10px 40px #39211e40;font-weight:900}
@media(max-width:1100px){.dashboard{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding:20px 8px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.list-heading,.product-row{grid-template-columns:minmax(210px,2fr) 100px 114px 105px 105px;padding:12px 9px}.actions{flex-wrap:wrap}.controls{grid-template-columns:minmax(190px,1fr) 170px 160px}.controls .ghost{grid-column:3}}
@media(max-width:780px){.topbar{height:70px}.admin-logo img{max-width:none;width:175px;height:43px}.admin-pill{display:none}.top-catalog{font-size:12px}.login-screen{grid-template-columns:1fr}.login-art{min-height:230px;padding:25px}.login-art h1{font-size:30px}.login-panel{padding:40px 25px}.dashboard{display:block}.sidebar{padding:10px 14px;display:block;border-right:0;border-bottom:1px solid var(--line)}.side-heading,.side-footer{display:none}.sidebar nav{display:flex;justify-content:space-around}.sidebar nav a{font-size:12px;padding:10px;gap:5px}.workspace{padding:24px 15px}.welcome{align-items:flex-start}.welcome h1{font-size:30px}.welcome>.primary{font-size:12px;padding:11px}.inventory{padding:17px 12px}.inventory-header h2{font-size:25px}.inventory-header .primary{font-size:12px;padding:9px}.controls{grid-template-columns:1fr 1fr}.controls .search{grid-column:span 2}.controls .ghost{grid-column:auto}.list-heading{display:none}.product-row{grid-template-columns:1fr 1fr;gap:10px;padding:13px}.product-cell{grid-column:span 2}.product-cell strong{max-width:50vw}.money,.stock-stepper,.status,.actions{justify-self:start}.product-row .actions{justify-self:end}.editor-body{grid-template-columns:1fr;max-height:65vh}.editor-image{display:flex;align-items:center;gap:18px}.photo-drop{width:140px;height:140px;flex-shrink:0}.editor-head{padding:18px}.editor-body{padding:15px 18px}.editor-actions{padding:15px}.toast{bottom:10px;right:10px;left:10px}.setup-card{padding:30px 22px}}
@media(max-width:420px){.top-actions{gap:8px}.admin-logo img{width:144px}.top-catalog{font-size:11px}.welcome{display:block}.welcome>.primary{margin-top:14px}.metrics{gap:9px}.metric{padding:11px;min-height:130px}.metric strong{font-size:29px}.metric-icon{width:33px;height:33px;font-size:19px}.controls{grid-template-columns:1fr}.controls .search{grid-column:auto}.inventory-header{align-items:flex-start}.cols{grid-template-columns:1fr}.editor-actions{flex-wrap:wrap}.editor-actions button{flex:1}.editor-actions .form-error{width:100%}}


/* v4.1 · Galería boutique, sin botones superpuestos */
.editor-image{min-width:0;align-self:start}
.gallery-editor-heading{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;margin-bottom:19px}
.gallery-editor-kicker{color:var(--gold);font-size:10px;letter-spacing:.17em;font-weight:900;display:block;margin-bottom:6px}
.gallery-editor-title{font:600 clamp(20px,2vw,25px)/1.25 'Playfair Display',serif;margin:0 0 8px;color:var(--brown)}
.gallery-editor-help{font-size:12px;color:var(--muted);line-height:1.65;margin:0;max-width:325px}
.gallery-editor-count{font-size:10px;white-space:nowrap;font-weight:900;color:#ab6c65;background:#fff0ea;border-radius:99px;padding:7px 10px;margin-top:3px}
.gallery-editor-note{font-size:11px;line-height:1.65;color:var(--muted);margin:16px 0 0;padding:10px 12px;background:#fff7f2;border-radius:10px;border:1px solid #f3e3d7}
.photo-slots{display:grid;gap:20px;min-width:0}
.photo-slot{position:relative;min-width:0;border:1px solid #ecd9d0;background:#fffdfb;border-radius:17px;padding:12px;box-shadow:0 5px 20px #6743300b;transition:border-color .2s ease, box-shadow .2s ease}
.photo-slot:hover{border-color:#dba99e;box-shadow:0 8px 24px #8e5b4914}
.photo-slot--primary{padding:15px;background:linear-gradient(150deg,#fff9f5,#fff3ec);border:1.5px solid #dfb4a9}
.slot-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0 0 10px}
.slot-name{font-weight:900;line-height:1.3;color:#65413c;font-size:11px}
.photo-slot--primary .slot-name{font-size:13px}
.slot-badge{font-size:10px;white-space:nowrap;font-weight:900;color:#a84e5f;background:#fce2dc;border-radius:99px;padding:4px 8px}
.photo-area{position:relative;border-radius:12px;border:1.5px dashed #dcb3a5;background:#fbf0e9;display:grid;place-items:center;overflow:hidden;cursor:pointer;aspect-ratio:1;isolation:isolate;transition:background .15s ease,border-color .15s ease}
.photo-slot--primary .photo-area{aspect-ratio:1.6;background:linear-gradient(140deg,#fff3ed,#f7ddd5)}
.photo-slot--secondary .photo-area{aspect-ratio:1.05}
.photo-area:hover{border-color:var(--rose);background:#f9e6df}
.photo-area:focus-within{outline:3px solid #ca7882;outline-offset:3px}
.photo-area img{width:100%;height:100%;object-fit:cover;display:block;grid-area:1/1}
.photo-area input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer;pointer-events:auto!important;z-index:3}
.photo-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:9px;text-align:center;color:var(--rose);pointer-events:none;min-width:0}
.photo-empty strong{font-size:11px;line-height:1.25;font-weight:900;color:#a25c65}
.photo-empty small{font-size:10px;line-height:1.3;color:#a88b84;font-weight:600}
.photo-upload-symbol{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fffdfb;color:#c0757e;font-size:23px;box-shadow:0 3px 11px #5a373319}
.photo-slot--primary .photo-upload-symbol{width:48px;height:48px;font-size:30px}
.photo-slot--primary .photo-empty strong{font-size:13px}
.photo-slot--primary .photo-empty small{font-size:11px}
.photo-change{position:absolute;z-index:2;bottom:10px;left:50%;transform:translateX(-50%);display:inline-flex;background:#fffdfaeb;color:#905159;border-radius:50px;padding:5px 11px;font-size:10px;font-weight:900;white-space:nowrap;box-shadow:0 4px 16px #3e20202a;pointer-events:none}
.photo-slot--secondary .photo-change{padding:4px 7px;font-size:9px;bottom:5px}
.slot-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;min-width:0}
.photo-action{display:inline-flex;align-items:center;justify-content:center;min-width:29px;min-height:29px;padding:3px 8px;gap:5px;border:1px solid #e9d4ca;border-radius:9px;background:white;color:#965762;font-size:15px;font-weight:900;white-space:nowrap;line-height:1;box-shadow:0 1px 2px #5c2e2610;transition:background .14s ease}
.photo-action:hover:not(:disabled){background:#fbe7e3;border-color:#dba9a3}
.photo-action:disabled{opacity:.34;cursor:default;box-shadow:none}
.photo-action--remove{font-size:12px;color:#a65f64}
.photo-action--remove span{font-size:10px}
.photo-move-buttons{display:flex;align-items:center;gap:5px;flex-shrink:0}
.photo-extras{min-width:0}
.photo-extras-heading{display:flex;align-items:baseline;justify-content:space-between;gap:7px;margin:0 0 10px}
.photo-extras-heading strong{font-size:13px;color:#65413c;font-weight:900}
.photo-extras-heading span{font-size:10px;color:var(--muted);text-align:right}
.photo-extras-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.photo-slot--secondary{padding:8px;border-radius:12px}
.photo-slot--secondary .slot-head{min-height:24px;margin-bottom:6px}
.photo-slot--secondary .slot-name{font-size:10px}
.photo-slot--secondary .slot-controls{margin-top:7px;gap:4px}
.photo-slot--secondary .photo-action{min-width:26px;min-height:26px;padding:3px 5px;border-radius:7px;font-size:12px}
.photo-slot--secondary .photo-action--remove span{display:none}
.photo-slot--secondary .photo-empty small{display:none}
.photo-slot--secondary .photo-empty strong{font-size:9px}
.photo-slot--secondary .photo-upload-symbol{width:27px;height:27px;font-size:21px}
.photo-slot--secondary .photo-move-buttons{gap:3px}
@media(max-width:1100px){.editor-body{grid-template-columns:minmax(295px,340px) minmax(0,1fr);gap:23px;padding:23px}}
@media(max-width:850px){.editor{width:min(96vw,720px)}.editor-body{grid-template-columns:1fr;gap:28px;max-height:70vh;padding:22px}.editor-image{display:block}.gallery-editor-heading{margin-bottom:16px}.photo-slots{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:15px}.photo-slot--primary .photo-area{aspect-ratio:1.25}.photo-extras-grid{gap:7px}.photo-slot--secondary{padding:6px}.photo-extras-heading{display:block}.photo-extras-heading span{display:block;text-align:left}.photo-extras .photo-slot--secondary .photo-empty strong{font-size:9px}}
@media(max-width:600px){.editor{width:calc(100vw - 16px);max-height:96dvh;border-radius:18px}.editor-head{padding:17px 17px 13px}.editor-head h2{font-size:25px}.editor-body{display:block;max-height:calc(96dvh - 170px);padding:19px 17px}.editor-image{margin-bottom:28px}.photo-slots{display:grid;grid-template-columns:1fr;gap:17px}.photo-slot--primary .photo-area{aspect-ratio:1.9}.photo-extras-grid{gap:8px}.photo-extras-heading{display:flex;align-items:baseline}.photo-extras-heading span{text-align:right}.photo-slot--secondary .photo-empty strong{font-size:9px}.gallery-editor-count{font-size:9px;padding:6px 8px}.editor-actions{position:sticky;bottom:0;background:var(--paper);padding:12px 15px;gap:8px;z-index:5}}
@media(max-width:370px){.photo-extras-grid{gap:5px}.photo-slot--secondary{padding:5px}.photo-slot--secondary .photo-action{min-width:22px;min-height:24px;padding:2px 4px;font-size:10px}.photo-slot--secondary .photo-move-buttons{gap:2px}.photo-extras-heading span{font-size:9px}.photo-slot--secondary .slot-name{font-size:9px}}

/* v4.2 · Fotografías completas: formato 4:5 en la vista previa administrativa.
   El producto se muestra entero y centrado, nunca se recorta. */
.photo-slot--primary .photo-area {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 310px;
  margin-inline: auto;
  background: #fff8f0;
}
.photo-slot--secondary .photo-area {
  aspect-ratio: 4 / 5;
  background: #fff8f0;
}
.photo-area img {
  object-fit: contain;
  object-position: center center;
}
.product-cell img {
  object-fit: contain;
  object-position: center center;
  background: #fff8f0;
}

/* v4.5 · La alerta de bajo stock no reemplaza el estado Disponible */
.status-wrap{display:inline-flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}.stock-warning{color:#a97639;font-size:10px;font-weight:800;line-height:1.2}


/* v4.8 · Navegación real por secciones: resumen e inventario son pantallas separadas. */
.admin-view{min-width:0}
.admin-view--summary{max-width:1200px;margin:0 auto}
.summary-welcome{padding:clamp(24px,3vw,38px);border:1px solid #efdcd3;border-radius:23px;background:linear-gradient(110deg,#fffdfb 0%,#fff8f4 59%,#f9e8e4 100%);display:flex;align-items:center;justify-content:space-between;gap:25px;box-shadow:var(--shadow);margin-bottom:35px}
.summary-welcome h1{font-size:clamp(31px,3.1vw,43px);line-height:1.2;margin:10px 0;color:var(--brown)}
.summary-welcome h1 span{color:var(--rose)}
.summary-welcome p{max-width:520px;color:var(--muted);font-size:15px;margin:0}
.summary-welcome .primary{white-space:nowrap;flex-shrink:0}
.summary-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:17px}
.summary-section-head h2{font-size:clamp(24px,2.4vw,31px);margin:5px 0 4px}
.summary-section-head p{color:var(--muted);font-size:14px}
.summary-chip{font-size:11px;font-weight:800;color:#98756b;background:#fffdfb;border:1px solid var(--line);border-radius:50px;padding:7px 12px;white-space:nowrap}
.admin-view--summary .metrics{margin-bottom:23px}
.summary-hint{display:flex;align-items:center;gap:15px;background:#fffaf6;border:1px solid var(--line);border-radius:18px;padding:20px 22px}
.summary-hint-icon{display:grid;place-items:center;flex-shrink:0;width:47px;height:47px;border-radius:14px;font-size:25px;color:var(--rose);background:#fae8e2}
.summary-hint div{flex:1;min-width:0}
.summary-hint strong{display:block;font-weight:900;font-size:15px}
.summary-hint p{font-size:13px;color:var(--muted);max-width:630px;line-height:1.6}
.summary-hint .ghost{flex-shrink:0}
.sidebar nav a[data-admin-view]:focus-visible{outline:2px solid var(--rose);outline-offset:2px}
@media(max-width:1000px){.summary-welcome{align-items:flex-start;flex-direction:column}.summary-hint{flex-wrap:wrap}.summary-hint .ghost{margin-left:61px}}
@media(max-width:780px){.summary-welcome{padding:25px 22px;margin-bottom:27px}.summary-section-head{align-items:flex-start;flex-direction:column}.summary-chip{white-space:normal}.sidebar nav a.active{background:#f4dcd5}.summary-hint{padding:17px}.summary-hint .ghost{margin-left:0;width:100%}}
@media(max-width:440px){.summary-welcome h1{font-size:30px}.summary-welcome .primary{white-space:normal;width:100%}.summary-hint-icon{width:40px;height:40px}.summary-hint p{font-size:12px}.summary-section-head{gap:8px}}

/* v4.9 · Métricas navegables y enlaces a la ficha pública del producto */
.metric-link{display:block;width:100%;appearance:none;text-align:left;color:var(--brown);font-family:inherit;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.metric-link:hover{transform:translateY(-2px);border-color:#dcb6aa;box-shadow:0 15px 32px rgba(114,65,54,.13)}
.metric-link:focus-visible{outline:3px solid var(--rose);outline-offset:3px}
.metric-link small{display:block;font-weight:800}
.inventory-filter-context{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:10px 13px;margin-bottom:13px;border:1px solid #e9ccbf;background:#fff5ef;color:#7d554b;border-radius:11px;font-size:12px;font-weight:800}
.inventory-filter-context button{font-size:12px;font-weight:900;border:0;background:transparent;color:var(--rose-d);text-decoration:underline;text-underline-offset:3px;padding:5px}
.inventory-filter-context button:focus-visible{outline:2px solid var(--rose);outline-offset:2px}
.product-cell{display:block}
.product-public-link,.product-unpublished{display:flex;align-items:center;gap:12px;min-width:0;width:max-content;max-width:100%;border-radius:10px}
.product-public-link:hover strong,.product-public-link:hover .product-public-hint{color:var(--rose-d);text-decoration:underline;text-underline-offset:2px}
.product-public-link:focus-visible{outline:2px solid var(--rose);outline-offset:3px}
.product-public-link img,.product-unpublished img{flex:0 0 57px}
.product-public-label,.product-unpublished>span{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.product-public-label strong,.product-unpublished strong{display:block;max-width:100%;white-space:normal;line-height:1.25}
.product-public-hint,.product-hidden-hint{font-size:10px;font-weight:800;color:var(--rose);line-height:1.45;margin-top:3px}
.product-hidden-hint{color:var(--muted)}
.product-meta{display:block;margin-left:69px;margin-top:2px}
@media(max-width:600px){.metric-link{min-height:132px}.product-public-link,.product-unpublished{width:100%}.product-meta{margin-left:0;margin-top:6px}}

/* Mantener los iconos de las métricas perfectamente centrados dentro de botones */
.metric-link .metric-icon{display:grid;place-items:center;padding:0}

/* v5: categorías autónomas */
.categories-manager{background:#fffdfb;border:1px solid #efd8c9;border-radius:22px;padding:28px;max-width:1200px;margin:auto}
.category-admin-list{display:grid;gap:13px;margin-top:24px}
.category-admin-card{display:grid;grid-template-columns:104px minmax(0,1fr) auto;gap:18px;align-items:center;border:1px solid #eeded3;border-radius:16px;padding:13px;background:#fffaf6}
.category-admin-photo{width:104px;height:106px;border-radius:12px;background:#f6e9e0;overflow:hidden;display:grid;place-items:center;color:#bd8795;font-size:36px}
.category-admin-photo img{width:100%;height:100%;object-fit:cover}
.category-admin-info strong{font:600 23px/1.25 'Playfair Display',serif;color:#53332f}
.category-admin-info small{display:block;font-size:11px;color:#ad806d;margin:5px 0}
.category-admin-info p{font-size:13px;color:#7a5c51;margin:0 0 6px}
.category-state{font-size:11px;color:#9c626e;font-weight:800}
.category-admin-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.category-admin-actions button{border:1px solid #e8cfc3;background:white;border-radius:9px;padding:9px 12px;color:#83524e;font-weight:800;cursor:pointer}
.category-admin-actions .danger{color:#b55360}.category-admin-actions button:disabled{opacity:.4;cursor:not-allowed}
.category-editor{border:0;border-radius:22px;background:#fffaf7;color:#54372f;box-shadow:0 20px 90px #31211d66;padding:0;width:min(520px,calc(100% - 22px));max-height:92vh}
.category-editor::backdrop{background:#3a222280;backdrop-filter:blur(3px)}
.category-editor-header,.category-editor-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid #ecdace}
.category-editor-header h2{font-size:28px;margin:5px 0}
.category-editor-body{padding:22px;overflow-y:auto;max-height:60vh}
.category-editor-body label{display:block;font-weight:900;font-size:12px;margin-bottom:14px}
.category-editor-body label b{color:#c6657a}.category-editor-body label small{color:#8b7269;font-weight:500;display:block}
.category-editor-body input:not([type=checkbox]),.category-editor-body textarea{display:block;width:100%;border:1px solid #e6d0c4;border-radius:11px;background:white;color:#4e3932;padding:11px;margin-top:6px;font:inherit}
.category-editor-body textarea{resize:vertical}.category-cover-preview{width:100%;max-height:210px;object-fit:contain;background:#fff4ed;border-radius:12px;margin-bottom:14px}
.category-editor-body .category-check{display:flex;align-items:center;gap:10px;font-size:12px}.category-check input{accent-color:#c6657a;width:18px;height:18px}
.category-editor-actions{border-top:1px solid #ecdace;border-bottom:0;justify-content:flex-end}
@media(max-width:780px){.categories-manager{padding:18px 12px}.category-admin-card{grid-template-columns:80px 1fr}.category-admin-photo{width:80px;height:86px}.category-admin-actions{grid-column:span 2;justify-content:flex-start}.category-admin-info strong{font-size:19px}.category-editor-body{padding:15px}}

/* v5.1 — Ordenar las colecciones sin números */
.category-order-tip{margin:16px 0 0;padding:12px 16px;border:1px solid #f0dcd0;border-radius:12px;background:#fff6f0;color:#855d55;font-size:13px;line-height:1.6}
.category-admin-card{grid-template-columns:22px 104px minmax(0,1fr) auto;transition:background .15s,border-color .15s;cursor:grab}
.category-admin-card:active{cursor:grabbing}
.category-drag-handle{font-size:25px;line-height:1;color:#ba8992;user-select:none;text-align:center}
.category-admin-card.category-dragging{opacity:.5;border-style:dashed}
.category-admin-card.category-drop-target{border-color:#cc6980;background:#fff0f3;box-shadow:0 0 0 2px #e5b4c24a}
.category-move-buttons{display:flex;gap:4px;margin-right:5px}
.category-admin-actions .category-move-buttons button{font-size:19px;padding:6px 11px;min-width:38px;min-height:36px}
.category-admin-actions button:focus-visible{outline:2px solid #bf6b85;outline-offset:3px}
@media(max-width:780px){
  .category-admin-card{grid-template-columns:20px 80px minmax(0,1fr);gap:9px}
  .category-admin-actions{grid-column:2 / -1;justify-content:flex-start;padding-top:2px}
  .category-move-buttons{margin-right:auto}
}

/* v5.2 · Crear nuevas categorías mientras se edita un producto. */
.product-category-field{min-width:0}
.product-category-field>label{display:block;margin:0 0 6px;font-weight:900;font-size:12px}
.product-category-field>label b{color:var(--rose)}
.form-fields .product-category-field select{margin-top:0}
.category-inline-add{display:inline-flex;align-items:center;gap:5px;margin:8px 0 2px;padding:3px 0;background:transparent;border:0;color:#ac5367;font-size:12px;font-weight:900;line-height:1.4;text-align:left}
.category-inline-add:hover{text-decoration:underline;color:#88445a}
.category-inline-add:focus-visible{outline:2px solid var(--rose);outline-offset:3px;border-radius:4px}
.category-inline-hint{display:block;font-size:10px;line-height:1.4;color:var(--muted);font-weight:500}
