*{box-sizing:border-box}body{margin:0;background:#fafafa;color:#171717;font:16px system-ui,sans-serif}header{background:white;border-bottom:1px solid #ddd;padding:14px 16px}header a{display:flex;align-items:center;gap:12px;max-width:1200px;margin:auto;font-size:21px;font-weight:750}header img{width:48px;height:48px;object-fit:contain}a{color:inherit;text-decoration:none}a:focus-visible{outline:3px solid #555;outline-offset:3px}main{max-width:1200px;margin:auto;padding:16px}nav{display:flex;gap:8px;overflow:auto;padding:4px 0 10px}nav a,.pages a{white-space:nowrap;padding:12px 16px;border:1px solid #ddd;border-radius:24px;background:white}nav .active{background:#111;color:white;border-color:#111}h1{font-size:24px}h2{font-size:20px;margin:22px 0 12px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card,.option{background:white;border:1px solid #e2e2e2;border-radius:12px;overflow:hidden}.photo{aspect-ratio:1;display:grid;place-items:center;background:#eee;color:#666;font-size:13px}.photo img{width:100%;height:100%;object-fit:contain}.info{padding:10px;display:grid;gap:6px}.info h3{font-size:14px;margin:0;overflow-wrap:anywhere}.info strong,.price{font-size:19px;font-weight:750}small{color:#17623b;font-size:12px}.pages{display:flex;justify-content:center;gap:12px;margin:24px 0}.option{padding:16px;margin:14px 0}.option h2{margin:0 0 6px}.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}figure{margin:0}figure img{width:100%;aspect-ratio:1;object-fit:contain;background:#eee;border-radius:8px}figcaption{font-size:14px;overflow-wrap:anywhere}del{font-size:14px;color:#666}footer{text-align:center;padding:24px;color:#666;font-size:13px}@media(min-width:650px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(min-width:1000px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.back-link{display:inline-block;padding:10px 0;font-size:14px}.product-title{margin:8px 0;overflow-wrap:anywhere}.detail-intro,.gallery-hint{color:#666;font-size:13px;margin:8px 0}.detail-option{max-width:760px;margin:16px auto}.option-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.option-heading h2{margin:0}.detail-option .price{margin:8px 0 14px;font-size:24px}.photo-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;scrollbar-width:thin}.photo-track figure{flex:0 0 100%;min-width:0;scroll-snap-align:start}.photo-track img{display:block;aspect-ratio:4/3;max-height:440px;object-fit:contain}.photo-track figcaption{padding:8px 0}.gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}.gallery-controls button,#photo-viewer button{font:inherit;font-size:26px;min-width:44px;min-height:44px;border:1px solid #ccc;border-radius:8px;background:white;color:#111;cursor:pointer}.gallery-controls button:disabled,#photo-viewer button:disabled{opacity:.35;cursor:default}.gallery-hint{text-align:center}#photo-viewer{position:fixed;inset:0;margin:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;border:0;background:#111;color:white;padding:12px;overflow:auto}#photo-viewer[open]{display:flex;flex-direction:column;gap:10px}#photo-viewer::backdrop{background:#111}.viewer-top{display:flex;justify-content:space-between;align-items:center}.viewer-stage{flex:1;min-height:0;display:flex;align-items:center;gap:6px}.viewer-stage img{width:0;flex:1;min-width:0;height:100%;object-fit:contain;touch-action:pan-y pinch-zoom}#viewer-caption{text-align:center;overflow-wrap:anywhere;margin:0;padding:8px;max-height:25vh;overflow:auto}body.viewer-open{overflow:hidden}button:focus-visible{outline:3px solid #888;outline-offset:2px}
.search-row{display:flex;gap:8px}.search-row input{min-width:0;flex:1}.search-row input,.filter-row select{font:inherit;border:1px solid #ccc;border-radius:9px;background:white;padding:10px;min-height:44px;color:#111}.search-row button{background:#111;color:white;border:0;border-radius:9px;padding:0 15px;font:inherit;cursor:pointer}.filters{margin:10px 0}.filters summary{cursor:pointer;padding:10px 0;font-weight:600}.filter-row{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.filter-row label{display:grid;gap:4px;flex:1;min-width:130px;font-size:13px}.filter-row a{padding:12px;text-decoration:underline}#search-status{font-size:13px;color:#555;margin:6px 0}#search-status:empty{display:none}.wa-contact{display:block;background:#176b3b;color:white;text-align:center;border-radius:9px;padding:13px;margin-top:14px;font-weight:650}.detail-option:target{outline:2px solid #555;scroll-margin-top:12px}

.general-description{max-width:760px;margin:14px auto;padding:14px 16px;border:1px solid #ddd;border-radius:10px;background:#fff}.general-description h2{font-size:16px;margin:0 0 8px}.general-description p{margin:0;font-size:15px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
body{background:#fff;padding-bottom:calc(76px + env(safe-area-inset-bottom));}header{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:#fff}header a{margin:0;font-size:20px}header button,.detail-actions button{border:0;background:#fff;font-size:22px;min-height:44px}main{padding:12px;max-width:1200px}.search-row input{border:0;background:#f1f1f1;border-radius:24px;padding-left:16px}.search-row button{border-radius:24px;font-size:13px}.grid{gap:16px 8px}.card{position:relative;border:0;border-radius:0}.photo{aspect-ratio:3/4;background:#f5f5f5}.photo img{object-fit:contain}.info{padding:8px 2px;gap:4px}.info h3{font-weight:400;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.info strong{font-size:18px}.favorite{position:absolute;right:7px;top:7px;width:40px;height:40px;border:0;border-radius:50%;background:#fff;color:#111;font-size:25px}.favorite[aria-pressed=true]{color:#b82035}#categories button,.pages button{border:0;background:#f4f4f4;color:#111;border-radius:22px;padding:12px 16px;white-space:nowrap;font:inherit}#categories .active{background:#111;color:#fff}.featured{display:grid;grid-auto-flow:column;grid-auto-columns:42%;gap:10px;overflow:auto;scroll-snap-type:x mandatory}.featured .card{scroll-snap-align:start}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:10;background:#fff;border-top:1px solid #ddd;display:flex;justify-content:space-around;padding:5px 0 calc(5px + env(safe-area-inset-bottom));gap:0}.bottom-nav a,.bottom-nav button{display:grid;justify-items:center;gap:2px;background:none;border:0;border-radius:0;padding:4px 12px;font-size:26px;color:#111;min-height:48px}.bottom-nav span{font-size:11px}.detail-actions{display:flex;justify-content:flex-end;gap:12px}.detail-actions button{font-size:14px}.detail-option{border:0;border-bottom:1px solid #ddd;border-radius:0;padding:12px 0}.wa-contact{background:#111;border-radius:0}.general-description{border:0;padding:12px 0}.saved-link{display:block;padding:18px;border-bottom:1px solid #ddd}#filters{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;border:0;border-radius:18px 18px 0 0;padding:24px 18px calc(24px + env(safe-area-inset-bottom));}#filters::backdrop{background:#0007}#filters button{padding:12px 20px;margin:16px 6px 0;border:0;background:#111;color:white;border-radius:6px}#results[aria-busy=true]{opacity:.55}@media(min-width:650px){.featured{grid-auto-columns:23%}.grid{gap:20px}.bottom-nav{justify-content:center;gap:40px}}
/* 9.1: mobile-first, edge-to-edge editorial catalogue */
:root{--header-height:64px}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#fff;color:#151515;padding-bottom:calc(62px + env(safe-area-inset-bottom));-webkit-tap-highlight-color:transparent}header{height:var(--header-height);padding:0 10px;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:4px;border-bottom:1px solid #e5e5e5}header a,header button{display:grid;place-items:center;width:44px;height:44px;padding:0;background:none;border:0;color:inherit}.header-title{text-align:center;min-width:0;display:grid;gap:3px}.header-title strong{font-size:14px;letter-spacing:2px;text-transform:uppercase;overflow-wrap:anywhere}.header-title span{font-size:12px;font-weight:400}.listing-page main{padding:0}.category-bar{display:flex;align-items:center;gap:8px;padding:12px 0 12px 10px;background:white;position:sticky;top:var(--header-height);z-index:4}.category-bar>button{flex:0 0 44px;height:44px;background:white;border:0;display:grid;place-items:center;color:#111}#categories{padding:0 12px 0 0;gap:10px;scrollbar-width:none;min-width:0}#categories::-webkit-scrollbar{display:none}#categories button{border:1px solid #999;border-radius:0;background:#fff;padding:10px 13px;min-height:40px;font-size:14px}#categories .active{background:#111;color:white;border-color:#111}.grid{gap:12px 4px}.card{border:0;border-radius:0;box-shadow:none}.photo{aspect-ratio:1;background:#f1f2f2;overflow:hidden}.photo img{display:block;width:100%;height:100%;object-fit:contain}.info{padding:12px 8px 10px;gap:5px;display:grid}.info strong{font-size:15px;font-weight:500;margin-bottom:7px}.info h3{font-size:15px;font-weight:400;line-height:1.4;display:block;overflow-wrap:anywhere}.category-name{color:#777;font-size:14px}.info small{font-size:13px;color:#222;margin-top:3px}.favorite{top:5px;right:5px;width:44px;height:44px;background:transparent;border:0;border-radius:0;display:grid;place-items:center;color:#111;filter:drop-shadow(0 0 2px white)}.favorite svg{width:29px;height:29px}.favorite[aria-pressed=true]{color:#111}.favorite[aria-pressed=true] svg{fill:currentColor}.bottom-nav{padding:0 0 env(safe-area-inset-bottom);height:calc(58px + env(safe-area-inset-bottom));align-items:center;justify-content:space-around;overflow:visible}.bottom-nav a,.bottom-nav button{display:grid;place-items:center;min-width:48px;height:48px;padding:0;border:0;background:none}.bottom-nav svg{width:27px;height:27px}.featured{gap:4px;grid-auto-columns:46%;padding:0}.listing-page h2{font-size:16px;font-weight:600;margin:14px 10px 10px}.search-row[hidden]{display:none}.search-open #search-panel{position:fixed;inset:0 0 auto;z-index:20;background:white;padding:12px;display:flex;min-height:100dvh;align-items:flex-start}.search-row input{font-size:16px;border-radius:0;background:#f3f3f3}.search-row button{border-radius:0;min-height:44px}.search-open .bottom-nav{visibility:hidden}#filters{border-radius:0;padding-bottom:calc(24px + env(safe-area-inset-bottom))}#filters button,.filter-row select,.pages button{border-radius:0}#search-status{padding:0 10px}#search-status:empty{display:none}.detail-page main{padding:12px 16px}.detail-page .back-link{display:none}.detail-actions button{min-height:44px}.detail-option{border-bottom:1px solid #ddd}.photo-track img{border-radius:0;aspect-ratio:1}.gallery-controls button{border-radius:0}.general-description{border-radius:0}.wa-contact{min-height:48px}.detail-page .product-title{font-weight:500;font-size:23px}.detail-option:target{scroll-margin-top:76px}@media(min-width:650px){.grid{gap:18px 8px}.featured{grid-auto-columns:24%}.info{padding:14px}.header-title strong{font-size:16px}}
.search-open #search-panel{position:sticky;top:0;min-height:0;align-items:center;inset:auto;top:0}.search-open header{display:none}.search-open .category-bar{top:68px}.search-open .bottom-nav{visibility:visible}

#filters #close-filters{position:absolute;top:8px;right:10px;width:44px;height:44px;display:grid;place-items:center;margin:0;padding:0;border:0;background:transparent;color:#dc2626;font-size:30px;line-height:1;cursor:pointer}

/* 9.1.3: pantalla de categorías, sin alterar filtros ni tarjetas */
#category-screen[hidden]{display:none}.categories-open #results,.categories-open #search-status{display:none}.category-heading{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;border-bottom:1px solid #e5e5e5}.listing-page .category-heading h2{margin:0;font-size:15px;letter-spacing:1.5px}.category-heading button{width:44px;height:44px;border:0;background:white;color:#111;font-size:28px;cursor:pointer}.category-list{padding:0 16px}.category-list button{display:grid;grid-template-columns:minmax(0,1fr) auto 20px;align-items:center;gap:12px;width:100%;min-height:60px;padding:12px 0;border:0;border-bottom:1px solid #e5e5e5;background:white;color:#151515;text-align:left;font:inherit;cursor:pointer}.category-list button span{overflow-wrap:anywhere}.category-list small{color:#777;font-size:14px}.bottom-nav [aria-current=page]{border-bottom:2px solid #111}.categories-open .bottom-nav{visibility:visible}

/* 9.1.4: búsqueda inferior independiente */
#bottom-search{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:100dvh;overflow:auto;border:0;border-radius:0;background:#fff;color:#151515;padding:24px 18px calc(24px + env(safe-area-inset-bottom));box-sizing:border-box}#bottom-search::backdrop{background:#0007}#bottom-search h2{margin:0 44px 20px 0;font-size:18px;font-weight:600}#close-bottom-search{position:absolute;top:8px;right:10px;width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:#dc2626;font-size:30px;line-height:1;cursor:pointer}.bottom-search-field{display:flex;align-items:center;gap:10px;border:1px solid #999;padding:0 12px;min-height:48px}.bottom-search-field svg{flex-shrink:0}.bottom-search-field input{width:100%;min-width:0;border:0;background:#fff;color:#151515;font:inherit;font-size:16px;min-height:48px}
.bottom-search-field:focus-within{border-color:#111;box-shadow:none;outline:1px solid #111;outline-offset:0}
.bottom-search-field input:focus,.bottom-search-field input:focus-visible{outline:none;box-shadow:none;border:0}
.bottom-search-field input{-webkit-appearance:none;appearance:none}.bottom-search-submit{display:block;width:100%;min-height:48px;margin-top:16px;border:0;border-radius:0;background:#111;color:#fff;font:inherit;font-weight:600;cursor:pointer}

/* 9.1.7: isolated product detail controls */
.product-detail-page .product-header{display:grid;grid-template-columns:44px minmax(0,1fr) 88px;align-items:center;gap:4px;height:64px;padding:0 10px;background:#fff}
.product-detail-page .product-header .header-title strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-detail-page .product-header .detail-header-actions{display:grid;grid-template-columns:44px 44px;align-items:center;gap:0}
.product-detail-page .product-header .detail-header-actions button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#111;cursor:pointer}
.product-detail-page .product-header .detail-header-actions svg{width:24px;height:24px;display:block}
.product-detail-page .product-header [data-favorite][aria-pressed=true] svg{fill:currentColor}
.product-detail-page a.product-whatsapp{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;margin:14px 0 0;padding:12px 10px;background:#128c4a;color:#fff;border:0;border-radius:0;box-shadow:none;font-size:15px;font-weight:600;line-height:1.35;text-align:center;text-decoration:none}
.product-detail-page a.product-whatsapp svg{flex:0 0 24px;width:24px;height:24px}
.product-detail-page a.product-whatsapp:active{background:#0e703b}

/* 9.2.4: loading and feedback */
.cv-skeleton>div{padding-bottom:12px}.cv-skeleton>div>div{aspect-ratio:1;background:#eee}.cv-skeleton span{display:block;height:12px;background:#eee;margin:10px 8px;width:65%}.cv-skeleton span:last-child{width:40%}#results[aria-busy=true]{opacity:1}#cv-toast{position:fixed;bottom:calc(74px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:90%;width:max-content;background:#151515;color:white;padding:12px 18px;z-index:100;font-size:14px;pointer-events:none}#cv-toast[hidden],.gallery-controls[hidden]{display:none}.gallery-dots{display:flex;gap:6px;justify-content:center;padding:6px}.gallery-dots span{width:7px;height:7px;border-radius:50%;background:#ccc}.gallery-dots span.active{background:#111}#viewer-image{touch-action:none;transform-origin:center;will-change:transform}

/* 9.2.6: the wrapper owns the entire focus border. */
#bottom-search .bottom-search-field{border:2px solid #999;box-shadow:none;outline:none;min-height:50px}
#bottom-search .bottom-search-field:focus-within{border-color:#111;box-shadow:none;outline:none}
#bottom-search #bottom-search-input{flex:1 1 0;min-width:0;width:0;max-width:100%;background:transparent!important;border:0!important;outline:none!important;box-shadow:none!important;-webkit-appearance:none;appearance:none;margin:0;padding:0;min-height:46px}

/* 9.2.8: product detail only */
.product-detail-page .product-title{margin:8px auto 12px;max-width:760px}
.product-detail-page .product-main-price{max-width:760px;margin:0 auto 12px;font-size:28px;font-weight:750;line-height:1.25}
.product-detail-page .product-main-price del{font-size:18px;color:#666;font-weight:400}
.product-detail-page .general-description{margin:0 auto 8px;padding:8px 0}
.product-detail-page .detail-option{margin:8px auto 16px;padding:4px 0 16px}
.product-detail-page .product-condition{margin:0 0 12px}
.product-detail-page .product-condition h2{font-size:17px;color:#92400e;margin:0 0 6px}
.product-detail-page .product-condition ul{margin:0;padding-left:20px;font-size:15px;line-height:1.5}
.product-detail-page .product-condition li{white-space:pre-wrap;overflow-wrap:anywhere}

/* Destacados: carrusel horizontal compacto, independiente del catálogo. */
.cv-featured{margin:0 0 16px;min-width:0}
.cv-featured h2{margin:16px 10px 12px}
.cv-featured-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.cv-featured-track::-webkit-scrollbar{display:none}
.cv-featured-banner{position:relative;flex:0 0 100%;min-width:0;scroll-snap-align:start;background:#fff;color:#111;padding:0 10px}
.cv-featured-link{display:grid;grid-template-columns:44% minmax(0,1fr);align-items:center;gap:12px;color:inherit;text-decoration:none;min-height:148px}
.cv-featured-photo{aspect-ratio:1;background:#f1f2f2;display:grid;place-items:center;color:#666;overflow:hidden}
.cv-featured-photo img{display:block;width:100%;height:100%;object-fit:contain;min-height:0}
.cv-featured-info{min-width:0;padding:46px 0 10px;display:grid;gap:6px;color:#111}
.cv-featured-info strong{font-size:21px;line-height:1.2;overflow-wrap:anywhere}
.cv-featured-info h3{margin:0;font-size:14px;font-weight:400;line-height:1.4;overflow-wrap:anywhere}
.cv-featured-category{font-size:13px;color:#777;overflow-wrap:anywhere}
.cv-featured .cv-featured-heart{top:0;bottom:auto;right:10px;color:#111;filter:none}
.cv-featured .cv-featured-heart[aria-pressed=true]{color:#111}
.cv-featured-dots{display:flex;justify-content:center;gap:0;padding:4px}
.cv-featured-dots button{border:0;background:transparent;width:28px;height:32px;padding:0;display:grid;place-items:center}
.cv-featured-dots button::after{content:'';width:6px;height:4px;border-radius:4px;background:#ccc}
.cv-featured-dots button[aria-current=true]::after{width:18px;background:#111}
@media(min-width:768px){.cv-featured-link{grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:20px}.cv-featured-info h3{font-size:16px}}
