:root{--verde:#566b3f;--verde-oscuro:#314226;--verde-claro:#eef4e8;--crema:#f6f0e3;--papel:#fffaf1;--texto:#282820;--muted:#746f61;--linea:#e7ddca;--rojo:#9b3328;--sombra:0 14px 34px rgba(49,66,38,.13)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:linear-gradient(180deg,#fffaf1,#f6f0e3 40%,#efe4cf);color:var(--texto);padding-bottom:84px;min-height:100vh}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.splash{position:fixed;inset:0;z-index:100;display:grid;place-content:center;text-align:center;gap:10px;background:linear-gradient(145deg,#fffaf1,#f6f0e3 55%,#e9ddc7);animation:splashOut .45s ease 1.05s forwards}.splash img{width:min(280px,76vw);height:auto}.splash span{font-family:cursive;color:#4c4640;font-size:18px}@keyframes splashOut{to{opacity:0;visibility:hidden}}
.app-header{max-width:1040px;margin:auto;padding:18px 16px 4px;display:flex;align-items:center;justify-content:space-between;gap:12px}.app-header p{margin:0;color:var(--verde);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.app-header h1{margin:2px 0 0;font-family:Georgia,serif;color:#4c4640;font-size:29px}.install{border:0;background:var(--verde-oscuro);color:white;border-radius:999px;padding:10px 14px;font-weight:900;box-shadow:var(--sombra)}
.app{max-width:1040px;margin:auto;padding:12px 16px}.notice{margin:8px 0 12px;padding:12px 14px;background:rgba(255,255,255,.82);border:1px solid var(--linea);border-radius:16px;color:var(--muted);font-size:14px}.notice button{border:0;background:var(--verde-oscuro);color:white;border-radius:999px;padding:7px 11px;font-weight:900}.notice.error{color:var(--rojo)}
.search-box{position:sticky;top:0;z-index:12;margin:8px 0 8px}.search-box input{width:100%;padding:15px 48px 15px 16px;border:1px solid var(--linea);border-radius:20px;background:rgba(255,255,255,.97);font-size:16px;outline:none;box-shadow:0 8px 24px rgba(49,66,38,.09)}.search-box input:focus{border-color:var(--verde);box-shadow:0 0 0 3px rgba(86,107,63,.15),0 8px 24px rgba(49,66,38,.09)}#clearSearch{position:absolute;right:8px;top:7px;width:38px;height:38px;border:0;border-radius:50%;background:var(--crema);font-size:23px;color:var(--verde-oscuro)}
.suggestions,.chips{display:flex;gap:8px;overflow:auto;scrollbar-width:none}.suggestions{padding:2px 1px 10px}.suggestions button,.chip{white-space:nowrap;border:1px solid var(--linea);background:rgba(255,255,255,.82);color:var(--verde-oscuro);border-radius:999px;padding:8px 12px;font-weight:850}.chips{padding:2px 1px 12px}.chip.active{background:var(--verde-oscuro);border-color:var(--verde-oscuro);color:white}
.section-title{display:flex;align-items:end;justify-content:space-between;margin:10px 2px 12px}.section-title h2{margin:0;font-size:21px;color:#4c4640}.section-title span{font-size:14px;color:var(--muted)}.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px}.card{background:rgba(255,255,255,.9);border:1px solid var(--linea);border-radius:24px;overflow:hidden;box-shadow:0 10px 24px rgba(49,66,38,.09);transition:.2s}.card:active{transform:scale(.985)}@media(hover:hover){.card:hover{transform:translateY(-3px);box-shadow:var(--sombra)}}.card-img-wrap{position:relative;overflow:hidden;background:#eee6d5}.card img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block;opacity:0;transition:opacity .3s}.card img.loaded{opacity:1}.product-link{border:0;background:transparent;padding:0;width:100%;text-align:left;color:inherit}.card-body{padding:13px}.card h3{font-size:16px;line-height:1.25;margin:0 0 7px;color:#4c4640}.cat{margin:0 0 8px;font-size:13px;color:var(--muted)}.price-row{display:flex;flex-direction:column;gap:7px}.price-row strong{font-size:17px}.stock{align-self:flex-start;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900}.stock.available{background:var(--verde-claro);color:var(--verde-oscuro)}.stock.soldout{background:#f5e2de;color:var(--rojo)}.favorite{position:absolute;right:9px;top:9px;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.94);font-size:22px;color:var(--rojo);box-shadow:0 6px 18px rgba(0,0,0,.12)}.badge{position:absolute;left:9px;top:9px;background:rgba(49,66,38,.92);color:white;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:900}.variant-preview{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0}.variant-pill{font-size:11px;border:1px solid var(--linea);background:white;border-radius:999px;padding:4px 7px;color:var(--verde-oscuro);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(4,1fr);background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-top:1px solid var(--linea);padding:8px max(8px,env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-right))}.bottom-nav button{border:0;background:transparent;padding:10px 5px;border-radius:15px;color:var(--muted);font-weight:900}.bottom-nav button.active{background:var(--crema);color:var(--verde-oscuro)}
.sheet,.detail,.lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:40;align-items:flex-end}.sheet.open,.detail.open,.lightbox.open{display:flex}.sheet-card{width:100%;max-width:760px;margin:auto;background:white;border-radius:28px 28px 0 0;padding:20px;max-height:90vh;overflow:auto}.sheet-card h3{margin:5px 0 2px;color:#4c4640}.sheet-card p{margin:0 0 8px;color:var(--muted)}.close{float:right;border:0;background:var(--crema);border-radius:50%;width:38px;height:38px;font-size:23px}.sheet-card a,.sheet-action{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--linea);background:white;padding:14px 0;color:var(--verde-oscuro);font-weight:900;text-decoration:none}.app-status{background:var(--crema);border:1px solid var(--linea);border-radius:16px;padding:12px;margin:10px 0;line-height:1.45;font-size:14px}
.detail{z-index:50}.detail-card{width:100%;max-width:760px;max-height:95vh;margin:auto;overflow:auto;background:linear-gradient(180deg,#fffaf1,#f6f0e3);border-radius:30px 30px 0 0;position:relative}.detail-close{position:absolute;right:14px;top:14px;z-index:2;border:0;background:white;border-radius:50%;width:42px;height:42px;font-size:25px;box-shadow:0 7px 22px rgba(0,0,0,.17)}.gallery-main{width:100%;max-height:430px;object-fit:cover;display:block;background:#eee6d5}.thumbs{display:flex;gap:8px;overflow:auto;padding:10px 14px}.thumbs button{min-width:68px;height:68px;padding:0;border:2px solid transparent;border-radius:14px;overflow:hidden;background:white}.thumbs button.active{border-color:var(--verde-oscuro)}.thumbs img{width:100%;height:100%;object-fit:cover}.detail-body{padding:18px}.detail-body h2{margin:0 0 8px;color:#4c4640;font-size:27px;line-height:1.12}.detail-price{font-size:25px;font-weight:950;margin:8px 0}.product-description{font-size:15px;line-height:1.65;color:#4d4437}.product-description p{margin:0 0 11px}.variant-title{margin:18px 0 10px;color:var(--verde-oscuro)}.variants{display:grid;gap:9px}.variant{display:grid;grid-template-columns:1fr auto;gap:8px;text-align:left;align-items:center;border:1px solid var(--linea);background:white;border-radius:16px;padding:12px;font-weight:900}.variant.active{border-color:var(--verde-oscuro);box-shadow:0 0 0 3px rgba(49,66,38,.13)}.variant:disabled{opacity:.48}.variant small{grid-column:1/-1;color:var(--rojo)}.quantity-row{display:flex;align-items:center;justify-content:space-between;margin-top:16px}.quantity{display:flex;align-items:center;border:1px solid var(--linea);background:white;border-radius:999px;overflow:hidden}.quantity button{border:0;background:white;width:42px;height:42px;font-size:21px}.quantity span{min-width:38px;text-align:center;font-weight:900}.detail-actions,.extra-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.detail-actions a,.detail-actions button,.extra-actions button{border-radius:16px;padding:14px 10px;text-align:center;font-weight:950;text-decoration:none}.primary{border:0;background:var(--verde-oscuro);color:white}.primary:disabled{background:#aaa}.secondary,.extra-actions button{border:1px solid var(--linea);background:white;color:var(--verde-oscuro)}.related{margin-top:22px}.related h3{color:#4c4640}.related-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.related button{border:1px solid var(--linea);background:white;border-radius:16px;padding:8px;text-align:left}.related img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:11px}.related strong{display:block;margin-top:6px;font-size:13px}
.lightbox{z-index:60;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.88)}.lightbox.open{display:flex}.lightbox img{max-width:100%;max-height:88vh;object-fit:contain;border-radius:18px}.lightbox button{position:absolute;right:16px;top:16px;border:0;background:white;border-radius:50%;width:44px;height:44px;font-size:26px}.empty{grid-column:1/-1;background:var(--papel);border:1px solid var(--linea);border-radius:20px;padding:22px;color:var(--muted)}.skeleton-img{aspect-ratio:1/1;background:linear-gradient(90deg,#eee6d5,#f7efe1,#eee6d5);background-size:220% 100%;animation:pulse 1.2s infinite}.skeleton-line{height:14px;border-radius:999px;background:#eee6d5;margin-top:10px;width:60%}.skeleton-line.wide{width:90%}@keyframes pulse{to{background-position:220% 0}}.app-footer{text-align:center;padding:18px 0}.app-footer button{border:0;background:transparent;color:var(--muted);font-size:12px;text-decoration:underline}
@media(max-width:520px){.app-header{padding:14px 12px 2px}.app-header h1{font-size:25px}.app{padding:10px 12px}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card-body{padding:11px}.detail-body h2{font-size:24px}.gallery-main{max-height:360px}}
