.grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.detail-page{max-width:1100px;margin:24px auto}.detail-page .card{display:grid;grid-template-columns:minmax(500px,1.15fr) minmax(320px,.85fr)}.detail-page .product-gallery{min-height:620px;align-content:stretch;background:#fff}.detail-page .product-gallery img{height:305px;object-fit:contain;background:#fff}.product-image-link{display:block;text-decoration:none}.product-image-link:hover{opacity:.94}
.product-gallery{position:relative}.gallery-slide{display:none}.gallery-slide.active{display:block}.gallery-control{position:absolute;top:50%;transform:translateY(-50%);z-index:2;border:0;background:#ffffffdd;color:var(--ink);width:42px;height:42px;border-radius:50%;font-size:2rem;line-height:1;cursor:pointer}.gallery-control.prev{left:12px}.gallery-control.next{right:12px}.gallery-dots{position:absolute;bottom:12px;left:0;right:0;display:flex;justify-content:center;gap:7px}.gallery-dot{width:9px;height:9px;border:0;border-radius:50%;background:#c9bfd9;padding:0}.gallery-dot.active{background:var(--accent)}.product-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.product-meta span,.description-box,.options-box{background:var(--soft);border-radius:14px;padding:12px}.product-meta b{display:block;font-size:.72rem;text-transform:uppercase;color:var(--muted);margin-bottom:3px}.description-box h3,.options-box h3{margin:0 0 8px;font-size:1rem}.description-box p,.options-box p{margin:0}.zoom-modal{position:fixed;inset:0;z-index:20;background:#120d1ddd;display:grid;place-items:center;padding:30px}.zoom-modal[hidden]{display:none}.zoom-modal img{max-width:94vw;max-height:90vh;object-fit:contain}.zoom-modal button{position:absolute;top:18px;right:22px;background:#fff;color:var(--ink);font-size:2rem;width:44px;height:44px;padding:0}
.category-nav{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px}.category-chip{border:1px solid var(--line);border-radius:999px;padding:8px 14px;text-decoration:none;background:#fff;font-size:.9rem}.category-chip.active,.category-chip:hover{background:var(--accent);color:#fff;border-color:var(--accent)}
@media(max-width:1000px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.grid{grid-template-columns:1fr}.detail-page .card{display:block}.detail-page .product-gallery{min-height:0}.detail-page .product-gallery img{height:220px}.product-meta{grid-template-columns:1fr}.zoom-modal{padding:15px}}
.detail-page .product-gallery .gallery-slide.active{grid-column:1/-1;width:100%;height:590px;object-fit:contain}
.detail-page .product-meta span:nth-child(2){display:none}
.admin-product-link{margin:16px 0}.admin-product-link .button{font-size:.9rem}
.grid .card{display:flex;flex-direction:column}.grid .card-body{display:flex;flex:1;flex-direction:column}.grid .card h2{min-height:3.2em}.grid .card .price{min-height:2.7rem}.grid .card .price small{display:none}.grid .card .price::after{content:' ARS';font-size:.8rem;font-weight:500}.grid .card-body>.muted{display:none}.detail-page .card-body:before{content:'Producto por encargo desde Chile · Precio y disponibilidad sujetos a confirmación antes del pago.';display:block;background:var(--soft);border-radius:12px;padding:10px 12px;margin-bottom:14px;color:var(--muted);font-size:.88rem}
.grid .card .button,.grid .card .disabled{margin-top:auto;min-height:72px;display:flex;align-items:center;justify-content:center}
@media(max-width:650px){.detail-page .product-gallery .gallery-slide.active{height:360px}}

/* Tablas administrativas: mantener columnas y acciones legibles. */
.table{overflow-x:auto;overflow-y:visible}
.table table{table-layout:auto;min-width:980px}
.table th,.table td{overflow-wrap:normal}
.table td:last-child,.table th:last-child{white-space:nowrap;width:92px}
.table td .button{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;min-width:76px}
.table th:nth-child(1),.table td:nth-child(1){width:12%}
.table th:nth-child(2),.table td:nth-child(2){width:22%}
.table th:nth-child(3),.table td:nth-child(3){width:14%}
.table th:nth-child(4),.table td:nth-child(4){width:13%}
.table th:nth-child(5),.table td:nth-child(5){width:11%}
.table th:nth-child(6),.table td:nth-child(6){width:13%}
.table th:nth-child(7),.table td:nth-child(7){width:11%}
.verify-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.verify-controls label{display:grid;gap:5px;font-weight:700}.verify-controls input{width:150px;padding:10px;border:1px solid var(--line);border-radius:10px;font:inherit}.verify-progress{font-weight:700;color:var(--accent)}

.table{overflow:visible}
.table table{table-layout:fixed;width:100%}
.table th,.table td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.table th:nth-child(1),.table td:nth-child(1){width:12%}
.table th:nth-child(2),.table td:nth-child(2){width:20%}
.table th:nth-child(3),.table td:nth-child(3){width:16%}
.table th:nth-child(4),.table td:nth-child(4){width:24%}
.table th:nth-child(5),.table td:nth-child(5){width:16%}
.table th:nth-child(6),.table td:nth-child(6){width:12%}
.table input,.table select{width:100%;min-width:0;max-width:100%;padding:7px;font-size:.88rem}
.table button{width:100%;padding:8px 7px;font-size:.78rem;margin-bottom:5px}
.table form{margin:0 0 5px}
@media(max-width:760px){.table table,.table thead,.table tbody,.table tr,.table th,.table td{display:block}.table thead{display:none}.table tr{border-bottom:1px solid var(--line);padding:14px}.table td{width:100%!important;padding:5px 0;border:0}.table td:before{display:block;font-size:.75rem;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.table td:nth-child(1):before{content:'Código'}.table td:nth-child(2):before{content:'Producto'}.table td:nth-child(3):before{content:'Categoría'}.table td:nth-child(4):before{content:'Precio CLP'}.table td:nth-child(5):before{content:'Estado'}.table td:nth-child(6):before{content:'Acciones'}}
