:root{--primary:#216345;--accent:#e76922;--surface:#f7f5ef;--on-primary:#fff;--on-accent:#fff;--ink:#14201a;--muted:#66716b;--card:#fff;--line:rgba(20,32,26,.11);--shadow:0 18px 55px rgba(23,45,34,.11);font-family:"Hanken Grotesk",Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--surface);font-synthesis:none;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--surface)}button,input{font:inherit;color:inherit}button{cursor:pointer}.hidden{display:none!important}.catalog-shell{min-height:100dvh}.catalog-header{position:sticky;z-index:20;top:0;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;min-height:72px;padding:10px clamp(16px,4vw,54px);border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:blur(18px)}.store-mini{display:flex;align-items:center;gap:10px;min-width:0;color:inherit;text-decoration:none}.mini-avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;overflow:hidden;border:1px solid var(--line);border-radius:50%;color:var(--on-primary);background:var(--primary);font-size:11px;font-weight:850}.mini-avatar img{width:100%;height:100%;object-fit:cover}.store-mini>span:last-child{display:grid;min-width:0}.store-mini small{color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.store-mini strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.icon-button,.cart-button{min-height:42px;border:0;border-radius:999px}.icon-button{display:grid;place-items:center;width:42px;background:var(--card);font-size:22px}.cart-button{display:flex;align-items:center;gap:8px;padding:8px 10px 8px 14px;color:var(--on-primary);background:var(--primary);font-size:12px;font-weight:800;box-shadow:0 7px 20px color-mix(in srgb,var(--primary) 24%,transparent)}.cart-button b{display:grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;color:var(--primary);background:var(--card)}.bag-icon{font-size:17px}.store-hero{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:24px;max-width:1240px;margin:0 auto;padding:clamp(30px,6vw,72px) clamp(16px,4vw,42px);overflow:hidden}.store-hero:after{position:absolute;z-index:-1;right:2%;width:260px;height:260px;border:55px solid color-mix(in srgb,var(--primary) 8%,transparent);border-radius:50%;content:""}.profile-wrap{position:relative}.profile-avatar{display:grid;place-items:center;width:clamp(100px,14vw,154px);height:clamp(100px,14vw,154px);overflow:hidden;border:7px solid color-mix(in srgb,var(--primary) 12%,white);border-radius:50%;color:var(--on-primary);background:var(--primary);box-shadow:0 14px 38px color-mix(in srgb,var(--primary) 20%,transparent);font-size:27px;font-weight:900}.profile-avatar img{width:100%;height:100%;object-fit:cover}.live-dot{position:absolute;right:9%;bottom:8%;width:18px;height:18px;border:4px solid var(--surface);border-radius:50%;background:#36a66c}.hero-copy{min-width:0;max-width:660px}.hero-copy>[data-store-description]{overflow-wrap:anywhere;white-space:pre-line}.eyebrow{margin:0 0 7px;color:var(--primary);font-size:10px;font-weight:850;letter-spacing:.13em;text-transform:uppercase}.hero-copy h1{margin:0;font-size:clamp(32px,5vw,60px);line-height:1;letter-spacing:-.055em}.hero-copy>p:last-child{max-width:620px;margin:14px 0 0;color:var(--muted);font-size:clamp(14px,1.6vw,18px);line-height:1.55}.whatsapp-link{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:11px 17px;border:1px solid color-mix(in srgb,var(--primary) 20%,transparent);border-radius:14px;color:var(--primary);background:var(--card);font-size:12px;font-weight:800;text-decoration:none;box-shadow:0 10px 28px rgba(22,42,32,.07)}.whatsapp-link span{font-size:18px}.catalog-controls{position:sticky;z-index:15;top:72px;max-width:1240px;margin:auto;padding:12px clamp(16px,4vw,42px) 14px;background:linear-gradient(var(--surface) 75%,transparent)}.search-field{display:none;grid-template-columns:26px minmax(0,1fr) 32px;align-items:center;max-width:620px;margin:0 auto 12px;padding:5px 8px 5px 13px;border:1px solid var(--line);border-radius:14px;background:var(--card);box-shadow:0 8px 30px rgba(22,42,32,.07)}.search-field.visible{display:grid}.search-field span{color:var(--primary);font-size:20px}.search-field input{width:100%;min-height:38px;border:0;outline:0;background:transparent}.search-field button{width:30px;height:30px;border:0;border-radius:50%;color:var(--muted);background:var(--surface);font-size:18px}.category-strip{display:flex;gap:8px;overflow:auto;scrollbar-width:none}.category-strip::-webkit-scrollbar{display:none}.category-strip button{flex:0 0 auto;min-height:38px;padding:8px 16px;border:1px solid transparent;border-radius:999px;color:var(--muted);background:color-mix(in srgb,var(--card) 58%,transparent);font-size:11px;font-weight:750}.category-strip button.active{color:var(--on-primary);background:var(--primary);box-shadow:0 6px 18px color-mix(in srgb,var(--primary) 20%,transparent)}.products-section{max-width:1240px;margin:auto;padding:12px clamp(16px,4vw,42px) 70px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin:0 0 16px}.section-heading h2{margin:0;font-size:clamp(23px,3vw,34px);letter-spacing:-.04em}.section-heading>span{color:var(--muted);font-size:11px}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,2vw,20px)}.product-card{position:relative;display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:var(--card);box-shadow:0 3px 14px rgba(22,42,32,.035);transition:transform .18s,box-shadow .18s}.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.product-media{position:relative;display:block;width:100%;aspect-ratio:1/1.04;padding:0;overflow:hidden;border:0;background:color-mix(in srgb,var(--primary) 8%,var(--surface))}.product-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.product-card:hover .product-media img{transform:scale(1.025)}.product-placeholder{display:grid;place-items:center;width:100%;height:100%;color:color-mix(in srgb,var(--primary) 80%,black);background:radial-gradient(circle at 70% 20%,color-mix(in srgb,var(--accent) 14%,transparent),transparent 38%),linear-gradient(145deg,color-mix(in srgb,var(--primary) 8%,white),color-mix(in srgb,var(--primary) 18%,white));font-size:clamp(30px,5vw,58px);font-weight:900}.product-media .stock-state{position:absolute;top:10px;left:10px;padding:6px 8px;border-radius:999px;color:#365647;background:rgba(255,255,255,.88);font-size:8px;font-weight:850;backdrop-filter:blur(8px)}.product-media .stock-state.out{color:#954135}.product-info{display:flex;flex:1;flex-direction:column;padding:13px}.product-category{overflow:hidden;margin:0 0 5px;color:var(--primary);font-size:8px;font-weight:850;letter-spacing:.09em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.product-info h3{display:-webkit-box;overflow:hidden;min-height:2.5em;margin:0;font-size:14px;line-height:1.25;-webkit-box-orient:vertical;-webkit-line-clamp:2}.product-variant{overflow:hidden;min-height:17px;margin:4px 0 0;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.product-bottom{display:flex;align-items:end;justify-content:space-between;gap:8px;margin-top:auto;padding-top:10px}.price-wrap{display:grid;min-width:0}.price-wrap small{color:var(--muted);font-size:8px}.price-wrap strong{overflow:hidden;color:var(--primary);font-size:16px;text-overflow:ellipsis;white-space:nowrap}.add-button{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:0;border-radius:50%;color:var(--on-primary);background:var(--primary);font-size:22px;line-height:1;box-shadow:0 7px 18px color-mix(in srgb,var(--primary) 24%,transparent)}.add-button:disabled{cursor:not-allowed;filter:grayscale(.6);opacity:.42}.skeleton-card{display:grid;gap:12px;padding-bottom:14px;overflow:hidden;border-radius:18px;background:var(--card)}.skeleton-card>*{display:block;margin:0 13px;border-radius:8px;background:linear-gradient(90deg,#e8e8e4,#f6f6f1,#e8e8e4);background-size:200% 100%;animation:shimmer 1.3s infinite}.skeleton-card i{aspect-ratio:1;margin:0;border-radius:18px}.skeleton-card b{width:70%;height:15px}.skeleton-card span{width:45%;height:12px}@keyframes shimmer{to{background-position:-200% 0}}.catalog-empty{display:grid;place-items:center;min-height:340px;text-align:center}.catalog-empty>span{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;color:var(--primary);background:color-mix(in srgb,var(--primary) 10%,white);font-size:28px}.catalog-empty h3{margin:15px 0 5px}.catalog-empty p{max-width:360px;margin:0;color:var(--muted);font-size:13px}.catalog-empty button{margin-top:16px;padding:9px 14px;border:0;border-radius:999px;color:var(--on-primary);background:var(--primary);font-weight:750}footer{display:flex;align-items:center;justify-content:center;gap:9px;padding:28px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}footer a{display:flex;align-items:center;gap:5px;color:var(--ink);font-size:12px;font-weight:850;text-decoration:none}footer img{width:20px;height:20px;object-fit:contain}.sheet-dialog{width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(13,22,17,.36);backdrop-filter:blur(5px)}.sheet-dialog::backdrop{background:transparent}.sheet-card{position:absolute;right:0;top:0;bottom:0;width:min(450px,100%);overflow:auto;padding:26px;border:0;background:var(--card);box-shadow:-20px 0 70px rgba(14,28,20,.18)}.sheet-close{display:grid;place-items:center;width:40px;height:40px;margin-left:auto;border:0;border-radius:50%;background:var(--surface);font-size:24px}.product-sheet{width:min(540px,100%);padding:0}.product-detail-media{aspect-ratio:1.25;overflow:hidden;background:var(--surface)}.product-detail-media img{width:100%;height:100%;object-fit:cover}.product-detail-copy{padding:22px 25px 30px}.product-detail-copy h2{margin:4px 45px 7px 0;font-size:28px;line-height:1.06;letter-spacing:-.04em}.product-detail-copy>p{color:var(--muted);font-size:13px;line-height:1.55}.product-sheet>.sheet-close{position:absolute;z-index:2;right:14px;top:14px;background:rgba(255,255,255,.9)}.variant-picker{display:grid;gap:8px;margin:18px 0}.variant-option{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;cursor:pointer}.variant-option:has(input:checked){border-color:var(--primary);background:color-mix(in srgb,var(--primary) 7%,white)}.variant-option input{accent-color:var(--primary)}.variant-option span{display:grid}.variant-option small{color:var(--muted);font-size:9px}.variant-option strong{font-size:12px}.variant-option>em{font-size:12px;font-style:normal;font-weight:850}.detail-add{width:100%;min-height:50px;border:0;border-radius:14px;color:var(--on-primary);background:var(--primary);font-weight:850}.cart-sheet{display:flex;flex-direction:column}.cart-sheet>header{display:flex;align-items:start;justify-content:space-between}.cart-sheet h2{margin:0;font-size:31px;letter-spacing:-.045em}.cart-items{display:grid;gap:9px;padding:20px 0}.cart-empty{display:grid;place-items:center;min-height:330px;text-align:center}.cart-empty span{font-size:40px}.cart-empty h3{margin:12px 0 5px}.cart-empty p{max-width:280px;margin:0;color:var(--muted);font-size:12px}.cart-item{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px;border:1px solid var(--line);border-radius:13px}.cart-thumb{display:grid;place-items:center;width:54px;height:54px;overflow:hidden;border-radius:10px;color:var(--primary);background:var(--surface);font-weight:900}.cart-thumb img{width:100%;height:100%;object-fit:cover}.cart-item-copy{display:grid;gap:2px;min-width:0}.cart-item-copy strong,.cart-item-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cart-item-copy strong{font-size:12px}.cart-item-copy small{color:var(--muted);font-size:9px}.cart-item-copy b{color:var(--primary);font-size:12px}.qty-control{display:grid;grid-template-columns:30px 28px 30px;align-items:center;border:1px solid var(--line);border-radius:999px}.qty-control button{height:30px;border:0;background:transparent}.qty-control span{text-align:center;font-size:11px;font-weight:800}.cart-summary{display:grid;gap:12px;margin-top:auto;padding-top:18px;border-top:1px solid var(--line)}.cart-summary>div{display:flex;align-items:end;justify-content:space-between}.cart-summary span{color:var(--muted);font-size:11px}.cart-summary strong{font-size:24px}.cart-summary>small{color:var(--muted);font-size:9px}.checkout-button{display:flex;align-items:center;justify-content:space-between;min-height:54px;padding:10px 15px 10px 18px;border:0;border-radius:14px;color:var(--on-primary);background:var(--primary);font-size:12px;font-weight:850}.checkout-button b{display:grid;place-items:center;width:33px;height:33px;border-radius:50%;color:var(--primary);background:var(--card);font-size:18px}.checkout-button:disabled{opacity:.45}.clear-cart{padding:6px;border:0;color:var(--muted);background:transparent;font-size:10px}.toast{position:fixed;z-index:60;left:50%;bottom:22px;max-width:calc(100% - 30px);padding:11px 15px;border-radius:999px;color:var(--on-primary);background:var(--primary);box-shadow:var(--shadow);font-size:11px;font-weight:750;opacity:0;transform:translate(-50%,15px);pointer-events:none;transition:.2s}.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:900px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.store-hero{grid-template-columns:auto minmax(0,1fr)}.whatsapp-link{grid-column:2;justify-self:start}}
@media(max-width:700px){.catalog-header{min-height:64px;padding:9px 14px}.catalog-controls{top:64px;padding:10px 14px}.cart-label,.bag-icon{display:none}.cart-button{padding:7px;background:transparent;box-shadow:none}.cart-button b{color:var(--on-primary);background:var(--primary)}.store-hero{grid-template-columns:1fr;gap:15px;padding:27px 18px 18px;text-align:center}.store-hero:after{right:-120px}.profile-wrap{justify-self:center}.profile-avatar{width:104px;height:104px;border-width:5px}.hero-copy{display:grid;justify-items:center}.hero-copy h1{font-size:34px}.hero-copy>p:last-child{margin-top:11px;font-size:14px}.whatsapp-link{grid-column:auto;justify-self:center;min-height:42px;padding:8px 14px}.products-section{padding:7px 14px 90px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-card{border-radius:14px}.product-info{padding:10px}.product-info h3{font-size:12px}.price-wrap strong{font-size:14px}.add-button{width:34px;height:34px;flex-basis:34px}.section-heading h2{font-size:24px}.sheet-dialog{padding-top:9dvh}.sheet-card{top:auto;width:100%;max-height:91dvh;border-radius:24px 24px 0 0;padding:20px}.product-sheet{padding:0}.product-detail-copy{padding:18px 18px 24px}.cart-item{grid-template-columns:46px minmax(0,1fr);}.cart-thumb{width:46px;height:46px}.qty-control{grid-column:2;justify-self:start}.cart-empty{min-height:250px}footer{flex-direction:column}.skeleton-card:nth-child(n+3){display:none}}
@media(max-width:320px){.product-grid{grid-template-columns:1fr}.search-toggle{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* A compact glass action keeps the profile image as the visual focus. */
.profile-share{position:absolute;right:3%;bottom:4%;display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid color-mix(in srgb,var(--card) 72%,transparent);border-radius:50%;color:var(--primary);background:color-mix(in srgb,var(--surface) 42%,transparent);box-shadow:0 5px 14px color-mix(in srgb,var(--ink) 16%,transparent),inset 0 1px 0 color-mix(in srgb,var(--card) 70%,transparent);backdrop-filter:blur(12px) saturate(140%);-webkit-backdrop-filter:blur(12px) saturate(140%);transition:transform .18s,background .18s,box-shadow .18s}
.profile-share svg{width:15px;height:15px}
.profile-share:hover{transform:translateY(-1px);background:color-mix(in srgb,var(--card) 58%,transparent);box-shadow:0 7px 16px color-mix(in srgb,var(--ink) 20%,transparent),inset 0 1px 0 color-mix(in srgb,var(--card) 78%,transparent)}
.profile-share:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 70%,white);outline-offset:3px}
@media(max-width:700px){.profile-share{right:2%;bottom:2%;width:30px;height:30px}.profile-share svg{width:14px;height:14px}}

/* Visual polish: branded palettes stay readable on both light and dark surfaces. */
.catalog-header{box-shadow:0 1px 0 rgba(0,0,0,.02)}
.icon-button{color:var(--primary);border:1px solid var(--line)}
.store-hero{isolation:isolate}
.store-hero:before{position:absolute;z-index:-1;left:46%;top:18%;width:190px;height:190px;border-radius:50%;background:color-mix(in srgb,var(--accent) 8%,transparent);filter:blur(2px);content:""}
.whatsapp-link{color:var(--ink);border-color:var(--line)}
.whatsapp-link span{color:var(--primary)}
.product-card{color:var(--ink)}
.product-media .stock-state{color:#284c3a;background:rgba(255,255,255,.92)}
.product-media .stock-state.out{color:#8a382f}
.sheet-card{color:var(--ink)}
.sheet-close{color:var(--ink)}
html[data-surface="dark"] .catalog-header{background:color-mix(in srgb,var(--surface) 90%,transparent)}
html[data-surface="dark"] .product-media .stock-state{color:#d9f2e4;background:rgba(13,28,20,.88)}
html[data-surface="dark"] .product-media .stock-state.out{color:#ffc5bb}
html[data-surface="dark"] .product-placeholder{color:var(--ink);background:radial-gradient(circle at 70% 20%,color-mix(in srgb,var(--accent) 18%,transparent),transparent 38%),linear-gradient(145deg,color-mix(in srgb,var(--primary) 12%,var(--surface)),color-mix(in srgb,var(--primary) 26%,var(--surface)))}
html[data-surface="dark"] .product-sheet>.sheet-close{background:color-mix(in srgb,var(--card) 92%,transparent)}
html[data-surface="dark"] .variant-option:has(input:checked){background:color-mix(in srgb,var(--primary) 15%,var(--card))}

/* Variantes: selección compacta por atributo, sin filas repetidas. */
.variant-picker{display:grid;gap:12px;margin:18px 0}.variant-choice-group{min-width:0;padding:0;border:0}.variant-choice-group legend{margin:0 0 7px;color:var(--ink);font-size:12px;font-weight:850}.variant-chips{display:flex;flex-wrap:wrap;gap:7px}.variant-chip{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:7px 11px;border:1px solid var(--line);border-radius:999px;color:var(--ink);background:var(--card);font-size:11px;font-weight:800;line-height:1.1;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;appearance:none;-webkit-appearance:none}.variant-chip:hover:not(:disabled){border-color:var(--primary);background:var(--primary-soft)}.variant-chip[aria-pressed="true"]{border-color:var(--primary);color:var(--on-primary);background:var(--primary);box-shadow:none}.variant-chip:active:not(:disabled){box-shadow:none;transform:none}.variant-chip:focus{outline:0;box-shadow:none}.variant-chip b{font-size:10px}.variant-chip:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 45%,transparent);outline-offset:2px}.variant-chip:disabled{cursor:not-allowed;opacity:.42;text-decoration:line-through}.variant-native-inputs{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.detail-variant-status{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin:0;color:var(--muted);font-size:11px}.detail-variant-status strong{color:var(--primary);font-size:17px}.detail-variant-status span:before{margin-right:8px;color:var(--muted);content:"·"}
@media(max-width:700px){.variant-picker{gap:10px;margin:15px 0}.variant-chip{min-height:40px;padding:8px 12px;font-size:12px}.detail-variant-status strong{font-size:16px}}

/* Estados de stock compactos y accesibles: el color se comunica con un punto, no con una etiqueta. */
.product-media .stock-state{display:none}
.stock-dot{position:absolute;top:12px;left:12px;width:12px;height:12px;border:2px solid rgba(255,255,255,.94);border-radius:50%;background:#2fb46f;box-shadow:0 2px 8px rgba(12,67,39,.35)}
.stock-dot.out{background:#e24c45;box-shadow:0 2px 8px rgba(115,27,23,.36)}

@media(max-width:700px){
  .catalog-header{box-shadow:0 8px 26px color-mix(in srgb,var(--ink) 7%,transparent)}
  .store-mini small{font-size:8px}
  .store-mini strong{font-size:13px}
  .store-hero{gap:12px;padding:22px 18px 17px}
  .profile-avatar{width:88px;height:88px}
  .live-dot{width:16px;height:16px;border-width:3px}
  .hero-copy h1{font-size:31px;line-height:1.04}
  .hero-copy>p:last-child{display:block;max-width:440px;margin-top:10px;font-size:14px;line-height:1.5}
  .whatsapp-link{width:min(100%,360px)}
  .catalog-controls{padding-top:9px;padding-bottom:10px}
  .category-strip button{min-height:36px;padding:7px 14px}
  .products-section{padding-top:4px}
  .section-heading{align-items:center;margin-bottom:12px}
  .section-heading .eyebrow{display:none}
  .section-heading h2{font-size:21px}
  .product-info{padding:9px}
  .product-info h3{min-height:0;font-size:12px}
  .product-category{margin-bottom:4px}
  .product-bottom{padding-top:8px}
}

/* En la vista general, el contador acompaña a “Productos” sin un título redundante. */
.section-heading.is-compact{
  align-items:center;
  margin-bottom:12px;
}
.section-heading.is-compact .eyebrow{margin-bottom:0}
@media(max-width:700px){.section-heading.is-compact .eyebrow{display:block}}

.product-info{padding:11px 12px 12px}
.product-info h3{min-height:0}
.product-variant{min-height:0;margin-top:3px}
.product-bottom{padding-top:8px}
@media(max-width:700px){.product-info{padding:9px}}

/* Use more of the phone canvas without crowding the edges. */
@media(max-width:700px){
  .catalog-header{padding-inline:10px}
  .catalog-controls,.products-section{padding-left:10px;padding-right:10px}
  .store-hero{padding-left:14px;padding-right:14px}
  .product-grid{gap:8px}
  .product-card,.product-info,.price-wrap{min-width:0}
}

/* Ofertas temporales: el ahorro y su vencimiento son el foco de cada tarjeta. */
.product-card.has-offer{border-color:color-mix(in srgb,var(--accent) 54%,var(--line));box-shadow:0 10px 30px color-mix(in srgb,var(--accent) 14%,transparent)}
.offer-label{position:absolute;right:9px;top:9px;display:grid;justify-items:center;gap:3px;min-width:76px;padding:8px 9px 7px;border:1px solid rgba(255,255,255,.64);border-radius:13px;color:#fff;background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 84%,#ff715d),var(--accent));box-shadow:0 9px 22px color-mix(in srgb,var(--accent) 48%,transparent),inset 0 1px 0 rgba(255,255,255,.28);line-height:1;transform:rotate(2deg)}
.offer-label b{font-size:8px;letter-spacing:.12em}
.offer-label strong{font-size:16px;letter-spacing:-.05em}
.offer-timer{position:absolute;right:9px;bottom:9px;display:grid;justify-items:end;gap:3px;padding:5px 6px 6px;border:1px solid color-mix(in srgb,var(--on-accent) 30%,var(--accent));border-radius:10px;color:var(--on-accent);background:var(--accent);box-shadow:0 8px 20px color-mix(in srgb,var(--accent) 38%,transparent),inset 0 1px 0 color-mix(in srgb,var(--on-accent) 24%,transparent)}
.offer-timer>small{color:color-mix(in srgb,var(--on-accent) 88%,transparent);font-size:7px;font-weight:900;letter-spacing:.11em;line-height:1}
.offer-clock{display:flex;align-items:center;gap:2px}
.offer-clock b{display:grid;place-items:center;min-width:24px;height:23px;padding:0 3px;border-radius:5px;color:var(--accent);background:var(--on-accent);font-size:14px;font-variant-numeric:tabular-nums;font-weight:900;letter-spacing:-.035em;line-height:1}
.offer-clock i{color:var(--on-accent);font-size:12px;font-style:normal;font-weight:950;line-height:1}
.price-wrap.price-range strong{display:flex;flex-wrap:wrap;gap:0 4px;overflow:visible;text-overflow:clip;white-space:normal}.price-wrap.price-range strong>span{white-space:nowrap}.price-wrap.price-range strong i{font-style:normal}
.price-wrap.offer-price{grid-template-columns:auto auto;align-items:baseline;column-gap:7px}
.price-wrap.offer-price>small:first-child{grid-column:1/-1}
.price-wrap.offer-price del{color:var(--muted);font-size:10px}
.price-wrap.offer-price strong{color:var(--primary);font-size:18px}
.detail-offer-banner{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 12px;margin:14px 0;padding:12px 13px;border:1px solid color-mix(in srgb,var(--accent) 46%,var(--line));border-radius:13px;color:color-mix(in srgb,var(--accent) 92%,var(--ink));background:linear-gradient(120deg,color-mix(in srgb,var(--accent) 18%,var(--card)),color-mix(in srgb,var(--accent) 5%,var(--card)));box-shadow:0 8px 20px color-mix(in srgb,var(--accent) 10%,transparent)}
.detail-offer-kicker{font-size:8px;font-weight:900;letter-spacing:.13em}
.detail-offer-banner strong{font-size:21px;letter-spacing:-.045em}
.detail-offer-banner b{grid-column:2;grid-row:1/3;align-self:center;padding:6px 8px;border-radius:8px;color:#fff;background:var(--accent);font-size:9px;white-space:nowrap}
.variant-option>em.variant-offer-price{display:grid;justify-items:end;gap:2px}
.variant-offer-price del{color:var(--muted);font-size:9px}
.variant-offer-price b{color:var(--accent);font-size:12px}
html[data-surface="dark"] .offer-label{border-color:rgba(255,255,255,.2)}
@media(max-width:700px){
  .offer-label{right:7px;top:7px;min-width:68px;padding:6px 7px}
  .offer-label strong{font-size:14px}
  .offer-timer{right:7px;bottom:7px;padding:4px 5px 5px;border-radius:8px}
  .offer-timer>small{font-size:6.5px}
  .offer-clock b{min-width:21px;height:21px;padding:0 2px;font-size:12.5px}
  .offer-clock i{font-size:10px}
  .price-wrap.offer-price{grid-template-columns:minmax(0,1fr);align-items:start;gap:1px}
  .price-wrap.offer-price :is(del,strong){grid-column:1}
  .price-wrap.price-range{align-self:end}.price-wrap.price-range strong{font-size:12px;line-height:1.15}.price-wrap.offer-price strong{max-width:100%;font-size:14px}
  .price-wrap.offer-price del{font-size:8px;line-height:1.1}
  .detail-offer-banner{gap:3px 8px;padding:10px}
  .detail-offer-banner strong{font-size:18px}
  .detail-offer-banner b{font-size:8px}
}

/* Cabecera compacta: redes configuradas, búsqueda y carrito. Permanece al inicio y no acompaña el scroll. */
.catalog-header{
  position:relative;
  top:auto;
  background:color-mix(in srgb,var(--surface) 94%,var(--card));
  backdrop-filter:none;
}
.catalog-socials{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.catalog-socials.hidden{
  display:flex!important;
  visibility:hidden;
}
.catalog-socials a{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:50%;
  color:var(--ink);
  background:color-mix(in srgb,var(--card) 72%,transparent);
  opacity:.66;
  transition:opacity .18s ease,transform .18s ease,background .18s ease;
}
.catalog-socials a:hover,
.catalog-socials a:focus-visible{
  background:var(--card);
  opacity:1;
  transform:translateY(-1px);
}
.catalog-socials a:focus-visible{
  outline:2px solid color-mix(in srgb,var(--primary) 35%,transparent);
  outline-offset:2px;
}
.catalog-socials img{
  width:15px;
  height:15px;
}
html[data-surface="dark"] .catalog-socials img{
  filter:invert(1);
}
.catalog-controls{
  top:0;
}
@media(max-width:700px){
  .catalog-socials{gap:5px}
  .catalog-socials a{width:34px;height:34px}
  .catalog-socials img{width:14px;height:14px}
}

/* Carrito reconocible y acciones compactas dentro del detalle de producto. */
.catalog-icon-definitions{
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
  pointer-events:none;
}
.cart-icon{
  display:grid;
  place-items:center;
  flex:0 0 20px;
  width:20px;
  height:20px;
}
.cart-icon svg{
  display:block;
  width:100%;
  height:100%;
}
.cart-empty-icon{
  display:grid;
  place-items:center;
  width:66px;
  height:66px;
  border:1px solid color-mix(in srgb,var(--primary) 22%,var(--line));
  border-radius:50%;
  color:var(--primary);
  background:color-mix(in srgb,var(--primary) 9%,var(--card));
}
.cart-empty .cart-empty-icon svg{
  width:32px;
  height:32px;
}
.product-detail-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}
.detail-whatsapp{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex:1 1 auto;
  min-width:0;
  min-height:50px;
  padding:10px 14px;
  border:0;
  border-radius:14px;
  color:#fff;
  background:#25a95b;
  box-shadow:0 8px 20px rgba(15,113,56,.2);
  font-size:12px;
  font-weight:850;
}
.detail-whatsapp svg{
  flex:0 0 19px;
  width:19px;
  height:19px;
}
.product-detail-actions .detail-add{
  display:grid;
  place-items:center;
  flex:0 0 50px;
  width:50px;
  height:50px;
  min-height:50px;
  padding:0;
  border-radius:50%;
  font-size:27px;
  line-height:1;
}
.detail-whatsapp:focus-visible,
.product-detail-actions .detail-add:focus-visible{
  outline:3px solid color-mix(in srgb,var(--accent) 68%,white);
  outline-offset:3px;
}
@media(max-width:700px){
  .cart-button{
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    min-height:34px;
    padding:0;
    border:1px solid var(--line);
    color:var(--ink);
    background:color-mix(in srgb,var(--card) 72%,transparent);
    box-shadow:none;
    opacity:.78;
  }
  .cart-button .cart-icon{
    width:20px;
    height:20px;
  }
  .cart-button b{
    display:none;
    width:100%;
    min-width:0;
    height:100%;
    padding:0;
    border-radius:50%;
    color:var(--on-primary);
    background:var(--primary);
    font-size:12px;
  }
  .cart-button.has-items .cart-icon{display:none}
  .cart-button.has-items b{display:grid}
  .detail-whatsapp{padding-inline:11px}
}

/* Ajustes de navegación, WhatsApp y ofertas para una lectura más clara. */
.catalog-header{
  grid-template-columns:minmax(0,1fr) auto;
}
.detail-whatsapp{
  border:1px solid color-mix(in srgb,var(--primary) 20%,var(--line));
  color:var(--ink);
  background:var(--card);
  box-shadow:0 10px 28px color-mix(in srgb,var(--ink) 8%,transparent),inset 0 1px 0 color-mix(in srgb,#fff 48%,transparent);
  transition:border-color .18s,box-shadow .18s,transform .18s;
}
.detail-whatsapp svg{
  color:var(--primary);
}
.detail-whatsapp:hover{
  border-color:color-mix(in srgb,var(--primary) 43%,var(--line));
  box-shadow:0 13px 30px color-mix(in srgb,var(--ink) 11%,transparent),0 0 0 1px color-mix(in srgb,var(--primary) 8%,transparent);
  transform:translateY(-1px);
}
html[data-catalog-theme="light"] .offer-label{
  color:#0b120e;
  text-shadow:0 1px 0 rgba(255,255,255,.34);
}
.offer-timer{
  border-color:color-mix(in srgb,var(--accent) 48%,#fff);
  box-shadow:
    0 0 0 1px color-mix(in srgb,var(--accent) 42%,transparent),
    0 0 17px color-mix(in srgb,var(--accent) 50%,transparent),
    0 10px 24px color-mix(in srgb,var(--accent) 42%,transparent),
    inset 0 1px 0 rgba(255,255,255,.34);
}
.offer-clock b{
  border:1px solid color-mix(in srgb,var(--accent) 17%,rgba(255,255,255,.82));
  color:#0b120e;
  background:linear-gradient(180deg,color-mix(in srgb,#fff 96%,var(--accent)),color-mix(in srgb,#fff 83%,var(--accent)));
  box-shadow:0 3px 7px rgba(5,18,10,.22),inset 0 1px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(5,18,10,.1);
  text-shadow:0 1px 0 rgba(255,255,255,.9);
}
html[data-catalog-theme="light"] .offer-timer>small,
html[data-catalog-theme="light"] .offer-clock i{
  color:#0b120e;
  text-shadow:0 1px 0 rgba(255,255,255,.3);
}
html[data-catalog-theme="light"] .detail-offer-banner b{
  color:#0b120e;
  text-shadow:0 1px 0 rgba(255,255,255,.3);
}

/* Pulido general: superficies, foco y jerarquía coherentes con la paleta de marca. */
.catalog-controls{
  position:relative;
  top:auto;
  width:calc(100% - 20px);
  margin-bottom:8px;
  border:0;
  border-radius:18px;
  background:color-mix(in srgb,var(--card) 66%,transparent);
  box-shadow:0 12px 34px color-mix(in srgb,var(--ink) 6%,transparent),inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter:blur(16px) saturate(132%);
  -webkit-backdrop-filter:blur(16px) saturate(132%);
}
.section-heading>span{
  padding:6px 9px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  background:color-mix(in srgb,var(--card) 82%,transparent);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22);
  font-weight:750;
}
.product-card{
  border-color:color-mix(in srgb,var(--line) 88%,transparent);
  box-shadow:0 7px 22px color-mix(in srgb,var(--ink) 6%,transparent),inset 0 1px 0 rgba(255,255,255,.18);
}
.product-info{
  border-top:1px solid color-mix(in srgb,var(--line) 72%,transparent);
}
:is(.product-media,.add-button,.cart-button,.icon-button,.whatsapp-link,.profile-share):focus-visible{
  outline:3px solid color-mix(in srgb,var(--focus-ring,var(--primary)) 62%,transparent);
  outline-offset:3px;
}
html[data-catalog-theme="dark"] .catalog-controls{
  background:color-mix(in srgb,var(--card) 68%,transparent);
  box-shadow:0 14px 38px rgba(0,8,4,.2),inset 0 1px 0 rgba(255,255,255,.025);
}
@media(max-width:700px){
  .catalog-controls{
    width:calc(100% - 12px);
    padding-left:4px;
    padding-right:4px;
    border-radius:15px;
  }
  .section-heading>span{
    padding:5px 8px;
    font-size:9px;
  }
}

/* Paso opcional previo al envío del carrito por WhatsApp. */
.order-details-dialog{
  width:min(520px,calc(100% - 32px));
  max-width:none;
  max-height:calc(100dvh - 32px);
  padding:0;
  overflow:hidden;
  border:0;
  border-radius:24px;
  color:var(--ink);
  background:var(--card);
  box-shadow:0 28px 90px color-mix(in srgb,var(--ink) 24%,transparent);
}
.order-details-dialog::backdrop{
  background:color-mix(in srgb,#07110c 58%,transparent);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}
.order-details-card{
  display:grid;
  gap:20px;
  max-height:calc(100dvh - 32px);
  padding:28px;
  overflow:auto;
  background:var(--card);
  overscroll-behavior:contain;
}
.order-details-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.order-details-header .eyebrow{margin-bottom:8px}
.order-details-header h2{
  margin:0;
  font-size:clamp(25px,4vw,31px);
  line-height:1.08;
  letter-spacing:-.045em;
}
.order-details-header h2:focus,.order-details-header h2:focus-visible{outline:0!important}
.order-details-close{
  display:grid;
  place-items:center;
  flex:0 0 40px;
  width:40px;
  height:40px;
  padding:0;
  border:1px solid var(--line);
  border-radius:50%;
  color:var(--ink);
  background:var(--surface);
  font-size:24px;
  line-height:1;
}
.order-details-description{
  max-width:440px;
  margin:-7px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}
.order-details-fields{display:grid;gap:15px}
.order-details-fields label{display:grid;gap:7px}
.order-details-fields label>span{
  color:var(--ink);
  font-size:12px;
  font-weight:800;
}
.order-details-fields label small{
  margin-left:5px;
  color:var(--muted);
  font-size:9px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.order-details-fields :is(input,textarea){
  width:100%;
  min-height:49px;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:13px;
  outline:0;
  color:var(--ink);
  background:color-mix(in srgb,var(--surface) 46%,var(--card));
  font:inherit;
  font-size:16px;
  line-height:1.4;
  transition:border-color .18s,box-shadow .18s,background .18s;
}
.order-details-fields textarea{
  min-height:112px;
  resize:vertical;
}
.order-details-fields :is(input,textarea)::placeholder{color:color-mix(in srgb,var(--muted) 72%,transparent)}
.order-details-fields :is(input,textarea):focus{
  border-color:color-mix(in srgb,var(--primary) 62%,var(--line));
  background:var(--card);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--focus-ring,var(--primary)) 24%,transparent);
}
.order-details-submit{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:54px;
  padding:10px 11px 10px 18px;
  border:0;
  border-radius:14px;
  color:var(--on-primary);
  background:var(--primary);
  box-shadow:0 10px 26px color-mix(in srgb,var(--primary) 25%,transparent);
  font-size:13px;
  font-weight:850;
}
.order-details-submit b{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:50%;
  color:var(--primary);
  background:var(--card);
  font-size:18px;
}
.order-details-close:focus-visible,.order-details-submit:focus-visible{
  outline:3px solid color-mix(in srgb,var(--focus-ring,var(--primary)) 62%,transparent);
  outline-offset:3px;
}
@media(max-width:700px){
  .order-details-dialog{
    width:100%;
    max-height:calc(100dvh - max(10px,env(safe-area-inset-top)));
    margin:auto 0 0;
    border-radius:24px 24px 0 0;
  }
  .order-details-card{
    gap:17px;
    max-height:calc(100dvh - max(10px,env(safe-area-inset-top)));
    padding:21px 18px calc(18px + env(safe-area-inset-bottom));
  }
  .order-details-header h2{font-size:25px}
  .order-details-description{margin-top:-5px;font-size:12px}
  .order-details-fields{gap:13px}
  .order-details-fields textarea{min-height:104px}
}

.order-details-error{margin:0;color:#a34134;font-size:12px;font-weight:750;line-height:1.4}.order-details-submit:disabled{cursor:wait;opacity:.72}
