/* Panico Weed — catalogo e gestione prodotti, su fondo nero. */
.bottom-nav{width:min(460px,calc(100% - 24px));gap:4px}
.bottom-nav a{flex:1;min-width:0;padding:5px 15px}
.catalog-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-top:18px}
.catalog-count{color:var(--muted);font-size:13px;white-space:nowrap;padding-bottom:3px}
.catalog-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;background:#0d0d0d;border:1px solid var(--line);border-radius:18px;padding:22px;margin:24px 0 30px}
.catalog-tools .field{margin:0}
.catalog-tools .catalog-search{grid-column:1/-1}
.catalog-tools select,.catalog-form select,.catalog-form textarea{width:100%;min-width:0;border:1px solid #34402d;background:#060906;border-radius:12px;padding:12px 14px;color:var(--text);font:inherit;font-size:16px}
.catalog-tools select,.catalog-form select{height:50px}
.catalog-form textarea{resize:vertical;min-height:150px;line-height:1.65}
.catalog-tools select:focus,.catalog-form select:focus,.catalog-form textarea:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px #b0fc3919}
.filter-actions{display:flex;align-items:center;gap:20px}
.filter-actions .button{max-width:130px;min-height:44px;padding:10px 16px}
.filter-reset{font-size:13px;color:var(--muted)}
.stock-check{align-self:center;font-size:13px;min-height:44px}
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.product-card{display:block;min-width:0;background:#0e0e0e;border:1px solid #293326;border-radius:21px;overflow:hidden;color:var(--text);transition:border-color .15s,transform .15s}
.product-card:hover{text-decoration:none;border-color:#7aa73e;transform:translateY(-3px)}
.product-image{position:relative;background:#080808;aspect-ratio:1/1;display:grid;place-items:center;overflow:hidden}
.product-image>img{width:100%;height:100%;object-fit:contain;padding:14px}
.product-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:32px}
.product-placeholder img{width:115px;max-width:65%;opacity:.7}
.product-placeholder span{font-size:11px;letter-spacing:.08em;color:#8d9b83}
.availability{position:absolute;left:16px;top:16px;padding:5px 10px;font-size:10px;font-weight:750;border-radius:50px;color:#bffb69;background:#17200eef;border:1px solid #47652b}
.availability.sold-out{background:#292011ef;color:#eed1a1;border-color:#655135}
.product-copy{padding:22px}
.product-category{display:block;color:var(--muted);font-size:10px;letter-spacing:.06em;overflow-wrap:anywhere}
.product-copy h2{font-size:21px;line-height:1.2;margin:10px 0 22px;overflow-wrap:anywhere}
.product-price-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.product-price{font-size:24px;line-height:1.2;font-weight:750;color:var(--accent);letter-spacing:-.04em;overflow-wrap:anywhere}
.product-price small{font-size:12px;letter-spacing:0;font-weight:400;color:var(--muted)}
.product-arrow{border:1px solid #3c4f2d;width:34px;height:34px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;font-size:20px;color:var(--accent)}
.catalog-empty{grid-column:1/-1;padding:42px}
.catalog-empty h2{font-size:26px}
.product-detail{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:48px;margin-top:26px}
.detail-image{aspect-ratio:1/1;display:grid;place-items:center;border:1px solid var(--line);border-radius:24px;background:#090909;overflow:hidden;align-self:start}
.detail-image>img{width:100%;height:100%;object-fit:contain;padding:22px}
.detail-image .product-placeholder img{width:230px}
.detail-copy{padding:14px 0}
.detail-copy h1{font-size:clamp(28px,4vw,44px);margin:16px 0 22px;overflow-wrap:anywhere}
.detail-price{margin:24px 0 10px;font-size:38px;color:var(--accent);font-weight:750;line-height:1.2;letter-spacing:-.04em}
.detail-price small{font-size:14px;font-weight:400;color:var(--muted);letter-spacing:0}
.product-code{font-size:12px;color:var(--muted);margin-bottom:22px}
.product-description{white-space:pre-wrap;overflow-wrap:anywhere;color:#c4cebe;line-height:1.8;margin:24px 0 32px}
.management-links{display:flex;flex-wrap:wrap;gap:12px 28px;font-size:13px}
.management-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.management-grid .action-panel{align-items:flex-start}
.management-grid .action-panel h2{font-size:24px;overflow-wrap:anywhere}
.management-grid .round-arrow{width:38px;height:38px;font-size:20px;margin-top:5px}
.admin-products{display:grid;gap:14px}
.admin-product{display:grid;grid-template-columns:84px minmax(0,1fr) minmax(130px,180px) auto;gap:22px;align-items:center;padding:20px}
.admin-product-image{background:#070707;border-radius:12px;width:84px;height:84px;display:grid;place-items:center;overflow:hidden}
.admin-product-image img{max-width:100%;max-height:100%;object-fit:contain}
.admin-product-name h2{font-size:19px;margin:7px 0;overflow-wrap:anywhere}
.admin-product-numbers strong{display:block;color:var(--accent);font-size:19px;overflow-wrap:anywhere}
.admin-product-numbers span{display:block;font-size:12px;color:var(--muted);margin-top:7px;overflow-wrap:anywhere}
.product-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.product-badges .status-chip{text-transform:uppercase;font-size:8px;letter-spacing:.04em}
.row-actions{display:flex;flex-direction:column;align-items:center;gap:10px}
.row-actions .button{font-size:12px;min-height:40px;padding:9px 14px}
.text-button.danger{color:#f2aa99}
.product-form{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}
.catalog-form fieldset{margin-bottom:18px}
.catalog-form .form-note{margin:0 0 16px;font-size:12px}
.form-save{display:flex;gap:12px;flex-wrap:wrap;padding-top:12px}
.form-save .button{min-width:130px}
.photo-panel{position:sticky;top:22px;min-width:0}
.photo-preview{aspect-ratio:1/1;background:#080808;border:1px solid var(--line);border-radius:16px;display:grid;place-items:center;overflow:hidden;margin:22px 0}
.photo-preview img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}
.photo-preview .placeholder-logo{width:140px;height:auto;opacity:.7}
.catalog-form input[type=file]{height:auto;min-height:52px;padding:12px;font-size:12px;border-style:dashed;overflow:hidden}
.catalog-form input::file-selector-button{background:#25311b;color:var(--accent);border:1px solid #465b31;border-radius:6px;padding:6px 8px;margin-right:8px;font:inherit;cursor:pointer}
.photo-panel .check{font-size:12px}
.upload-note{display:block;margin-top:20px;line-height:1.6}
.category-list{display:grid;gap:20px;margin-bottom:22px}
.category-top{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}
.category-top h2{font-size:27px;margin:15px 0 8px;overflow-wrap:anywhere}
.category-top .row-actions{flex-shrink:0}
.subcategory-list{display:grid;gap:0;margin:22px 0 4px}
.subcategory-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;border-top:1px solid var(--line)}
.subcategory-row strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.subcategory-row small{display:block;margin-top:3px}
.subcategory-actions{display:flex;align-items:center;gap:18px;font-size:12px;flex-shrink:0}
.subcategory-actions .text-button{margin:0;padding:6px 0;font-size:12px}
.add-subcategory{display:inline-block;font-size:13px;margin-top:16px}
.category-form{max-width:650px}
.category-form .form-save{margin-top:20px}
@media(min-width:1200px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.product-copy{padding:18px}.product-copy h2{font-size:18px}.product-price{font-size:23px}}
@media(max-width:900px){.management-grid{grid-template-columns:1fr}.admin-product{grid-template-columns:76px minmax(0,1fr) auto}.admin-product-numbers{grid-column:2;grid-row:2}.admin-product-image{width:76px;height:76px}.admin-product .row-actions{grid-column:3;grid-row:1/span 2}.product-form{grid-template-columns:minmax(0,1fr) 250px}.product-detail{gap:28px}}
@media(max-width:700px){.product-form{grid-template-columns:1fr}.photo-panel{position:static;grid-row:1}.photo-preview{max-width:240px;margin:20px auto}.catalog-tools{grid-template-columns:1fr 1fr;padding:18px;gap:14px}.catalog-tools .catalog-search{grid-column:1/-1}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.product-copy{padding:17px}.product-copy h2{font-size:18px}.product-price{font-size:21px}.product-image>img{padding:8px}.product-detail{grid-template-columns:1fr;gap:18px}.detail-copy h1{font-size:32px}.detail-image{max-width:500px;width:100%}.detail-copy{padding:0}.catalog-heading{align-items:flex-start;flex-direction:column;gap:16px}.catalog-heading .button{max-width:220px}.catalog-count{font-size:12px}.catalog-tools .field label{font-size:12px}.category-top h2{font-size:24px}.subcategory-row{align-items:flex-start}.subcategory-actions{gap:12px;flex-direction:column;align-items:flex-end}}
@media(max-width:480px){.catalog-tools{grid-template-columns:1fr}.product-grid{gap:12px}.product-copy{padding:15px 13px}.product-copy h2{font-size:16px;margin-bottom:16px}.product-category{font-size:9px}.product-price{font-size:19px}.product-price small{font-size:10px}.product-arrow{width:26px;height:26px;font-size:17px}.availability{top:10px;left:10px;font-size:9px;padding:4px 8px}.product-placeholder{padding:24px 12px;gap:10px}.product-placeholder img{width:85px}.product-placeholder span{font-size:9px}.catalog-empty{padding:28px}.catalog-empty h2{font-size:24px}.admin-product{grid-template-columns:64px minmax(0,1fr);gap:14px;padding:16px}.admin-product-image{width:64px;height:64px}.admin-product .row-actions{grid-column:1/-1;grid-row:auto;flex-direction:row;justify-content:flex-end;border-top:1px solid var(--line);padding-top:14px}.admin-product-numbers{grid-column:2;grid-row:2}.admin-product-name h2{font-size:17px}.form-main{padding:22px 18px}.catalog-form .field-grid{grid-template-columns:1fr;gap:0}.category-top{gap:14px}.category-top .row-actions .button{min-width:auto;padding:8px 10px}.subcategory-row{gap:12px}.bottom-nav a{padding:5px 8px}.management-grid .action-panel h2{font-size:24px}}
