.admin{max-width:1200px;margin:auto;padding:24px}.admin-head{display:flex;justify-content:space-between;align-items:center}.admin-head small{font-size:14px;color:#947783}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.tabs a{padding:10px 14px;border-radius:9px;background:#eee5e8;text-decoration:none;color:#3b202a}.tabs .selected{background:#512837;color:white}.panel{background:white;border:1px solid #e7dce0;padding:16px;border-radius:12px;margin:10px 0}.panel summary{cursor:pointer;font-weight:600}.formgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-top:16px}.formgrid label{display:flex;flex-direction:column;gap:5px}.formgrid input,.formgrid select,.formgrid textarea{width:100%;padding:10px;box-sizing:border-box}.formgrid .wide{grid-column:1/-1}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.stats strong{display:block;font-size:26px}.stats span{color:#6b6065}.orderrow{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.orderrow p{font-size:13px}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse}td,th{padding:10px;text-align:left;border-bottom:1px solid #eee}.notice{padding:12px;background:#e3f4e8}.notice.error{background:#ffe4e4}
/* Eliminación de productos */
.delete-product-form{margin-top:12px;padding-top:12px;border-top:1px solid #eadbdb}.delete-product-btn{background:#9b2835;border-color:#9b2835;color:white}.delete-product-btn:hover{background:#781b28}

/* Administración de categorías e imágenes */
.product-image-preview{display:block;width:160px;max-height:160px;object-fit:contain;margin-top:10px;border:1px solid #eadde0;border-radius:10px;background:#fff}
.category-admin-row{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.category-admin-form{display:flex;align-items:end;gap:12px;flex:1;flex-wrap:wrap}.category-admin-form label{flex:1;min-width:220px}.category-admin-form input{display:block;width:100%;padding:10px;box-sizing:border-box}


/* Categorías BodegAR · presentación elegante */
.category-page{max-width:1120px;margin:22px auto 48px;color:#33242a}
.category-page-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:25px}
.category-eyebrow{font-size:11px!important;letter-spacing:.18em;font-weight:800;color:#986d6c;margin:0 0 8px}
.category-page-heading h2{font-family:Georgia,serif;font-size:clamp(34px,4vw,49px);font-weight:600;line-height:1.08;margin:0 0 12px}
.category-page-heading p:not(.category-eyebrow){font-size:14px;line-height:1.65;color:#776b6c;max-width:690px;margin:0}
.category-count{white-space:nowrap;font-size:12px;font-weight:700;color:#6c4c56;background:#f1e6e6;border:1px solid #e7d8da;border-radius:99px;padding:9px 15px}
.category-create-panel{display:grid;grid-template-columns:260px minmax(0,1fr);gap:30px;align-items:center;padding:26px 30px;border:1px solid #e9dfe0;border-radius:16px;background:#fff;box-shadow:0 7px 26px rgba(52,25,37,.035);margin:0 0 30px}
.category-create-copy{display:flex;align-items:center;gap:14px}
.category-create-icon{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;border-radius:13px;background:#f3e9e9;color:#692b40;font-size:26px;font-weight:300}
.category-create-copy h3{font-family:inherit;font-size:17px;margin:0 0 5px;font-weight:750}
.category-create-copy p{font-size:12px;color:#87797b;margin:0;line-height:1.4}
.category-create-controls label,.category-edit-form label{display:block;font-size:12px;font-weight:650;color:#78696d;margin:0 0 7px}
.category-create-fields,.category-edit-fields{display:flex;gap:10px;align-items:stretch}
.category-create-fields input,.category-edit-fields input{min-width:0;flex:1;width:100%;height:46px;border:1px solid #e0d3d5;border-radius:9px;background:#fff;padding:0 14px;font:inherit;color:#35252c;box-sizing:border-box}
.category-create-fields input:focus,.category-edit-fields input:focus{outline:2px solid #b48b9a;outline-offset:1px}
.category-create-fields button,.category-edit-fields button,.category-toggle-form button{font:inherit;font-size:13px;font-weight:700;border-radius:9px;white-space:nowrap;min-height:44px;cursor:pointer}
.category-create-fields button{padding:0 21px;background:#55253a;color:#fff;border:1px solid #55253a}
.category-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.category-list-heading h3{font-size:18px;font-weight:750;margin:0}
.category-list-heading span{font-size:12px;color:#928385}
.category-list{display:grid;gap:10px}
.category-item{display:grid;grid-template-columns:minmax(170px,1fr) minmax(280px,1.6fr) auto;align-items:center;gap:22px;background:#fff;border:1px solid #e9dfe0;border-radius:13px;padding:16px 20px;box-shadow:0 2px 8px rgba(52,25,37,.025)}
.category-item-info{display:flex;align-items:center;gap:12px;min-width:0}
.category-item-symbol{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:11px;background:#f5eded;color:#7c394b;font-size:15px}
.category-item-meta{display:flex;flex-direction:column;align-items:start;gap:5px;min-width:0}
.category-item-meta strong{font-size:15px;overflow-wrap:anywhere}
.category-status{font-size:11px;font-weight:700;border-radius:99px;padding:3px 9px}
.category-status.is-active{background:#eaf4ec;color:#37764d}
.category-status.is-inactive{background:#f3eeee;color:#8d7779}
.category-edit-form{min-width:0}
.category-edit-fields button{padding:0 17px;background:#55253a;color:white;border:1px solid #55253a}
.category-toggle-form{margin:0}
.category-toggle-form button{padding:0 15px;background:#fff;border:1px solid #dac8ce;color:#673c4c}
.category-toggle-form button:hover{background:#f6eeee}
@media(max-width:900px){.category-create-panel{grid-template-columns:1fr;gap:19px}.category-item{grid-template-columns:minmax(0,1fr) auto;gap:14px}.category-edit-form{grid-column:1/-1;grid-row:2}.category-toggle-form{grid-column:2;grid-row:1}}
@media(max-width:560px){.category-page-heading{align-items:start;flex-direction:column;gap:12px}.category-create-panel{padding:18px}.category-create-fields{flex-direction:column}.category-create-fields button{height:46px}.category-item{padding:14px;grid-template-columns:minmax(0,1fr) auto}.category-edit-fields button{padding:0 12px}.category-toggle-form button{padding:0 10px;font-size:12px}.category-list-heading span{display:none}}

/* BodegAR V8 — editor de productos */
.product-admin-page{max-width:1120px;margin:24px auto 50px;color:#34252b}
.product-page-heading{margin-bottom:22px}
.product-eyebrow{font-size:11px!important;letter-spacing:.18em;font-weight:800;color:#986d6c;margin:0 0 7px}
.product-page-heading h2{font-family:Georgia,serif;font-size:clamp(35px,4vw,49px);font-weight:600;margin:0 0 10px}
.product-page-heading>p:last-child{font-size:14px;color:#7a6d70;margin:0;line-height:1.6}
.product-admin-page .product-editor{border:1px solid #e9dfe0;border-radius:16px;padding:0 25px 24px;background:#fff;box-shadow:0 6px 26px rgba(52,25,37,.035);margin:0 0 14px}
.product-admin-page .product-editor>summary{padding:22px 0;font-size:17px;font-weight:750;color:#422b34}
.product-admin-page .product-form{grid-template-columns:repeat(12,minmax(0,1fr));gap:18px 16px;margin-top:0}
.product-admin-page .product-form>label{grid-column:span 3;font-size:12px;font-weight:650;color:#6b565e;gap:8px}
.product-admin-page .product-form>label:nth-of-type(2),.product-admin-page .product-form>label:nth-of-type(3){grid-column:span 4}
.product-admin-page .product-form>label:nth-of-type(1),.product-admin-page .product-form>label:nth-of-type(4){grid-column:span 2}
.product-admin-page .product-form>label.wide{grid-column:1/-1}
.product-admin-page .product-form input:not([type=checkbox]),.product-admin-page .product-form select,.product-admin-page .product-form textarea{border:1px solid #e2d6d9;border-radius:9px;background:#fff;padding:12px 13px;min-height:45px;font:inherit;color:#38262e}
.product-admin-page .product-form input:focus,.product-admin-page .product-form textarea:focus,.product-admin-page .product-form select:focus{outline:2px solid #b38b99;outline-offset:1px}
.product-admin-page .product-form .product-upload-field{padding:21px;border:1px dashed #d8c5cb;border-radius:12px;background:#fcf9f8;gap:10px}
.product-admin-page .product-upload-title{font-size:15px;color:#442c35;font-weight:750}
.product-admin-page .product-form input[type=file]{background:#fff}
.product-admin-page .product-form small{color:#86777b;font-size:12px;font-weight:400}
.product-admin-page .product-form .product-category-field{grid-column:span 4}
.product-admin-page .product-form .product-description-field textarea{min-height:100px;resize:vertical}
.product-admin-page .product-form>label:has(input[type=checkbox]){grid-column:span 2;flex-direction:row;align-items:center;gap:10px;font-size:13px}
.product-admin-page .product-form>button[name=save_product]{grid-column:9/-1;min-height:46px;background:#55253a;color:white;border-radius:9px;font-weight:750}
.product-admin-page .product-image-preview{max-width:180px;max-height:180px}
@media(max-width:900px){.product-admin-page .product-form>label,.product-admin-page .product-form>label:nth-of-type(n),.product-admin-page .product-form .product-category-field{grid-column:span 6}.product-admin-page .product-form>label.wide{grid-column:1/-1}}
@media(max-width:600px){.product-admin-page .product-editor{padding:0 16px 20px}.product-admin-page .product-form>label,.product-admin-page .product-form>label:nth-of-type(n),.product-admin-page .product-form .product-category-field,.product-admin-page .product-form>label.wide{grid-column:1/-1}.product-admin-page .product-form>label:has(input[type=checkbox]){grid-column:span 6}.product-admin-page .product-form>button[name=save_product]{grid-column:1/-1}}
