:root { --header-h: 60px; }

body { font-family:'Nunito',sans-serif; background:#fefcf3; }
img { max-width:100%; height:auto; display:block; }

/* Fix: colores custom que Tailwind CDN no siempre carga */
.bg-naranja  { background-color: #e07835 !important; }
.bg-verde    { background-color: #7db832 !important; }
.bg-verdeOsc { background-color: #5a8a1e !important; }

/* Botón agregar al carrito — mejor tap target para móvil */
.btn-agregar { width:100%; background:#2D6A1F; color:white; border:none; border-radius:8px; padding:8px 6px; font-family:'Nunito',sans-serif; font-size:.75rem; font-weight:700; cursor:pointer; transition:background .2s; }
.btn-agregar:hover, .btn-agregar:active { background:#245517; }


.hero-dots { position:absolute; inset:0; pointer-events:none; background-image:radial-gradient(circle,rgba(255,255,255,0.12) 1px,transparent 1px); background-size:28px 28px; }

.producto-card { background:white; border-radius:14px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,0.08); transition:transform .22s,box-shadow .22s; position:relative; }
.producto-card:hover { transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,0,0,0.15); }
.producto-img-wrap { width:100%; aspect-ratio:1; background:#f3f8e8; display:flex; align-items:center; justify-content:center; font-size:2.5rem; overflow:hidden; border-radius:14px 14px 0 0; }

/* Controles de cantidad al estilo Swiggy/Zomato — reemplazan el botón Agregar */
.btn-qty-wrap { display:flex; align-items:center; border:2px solid #2D6A1F; border-radius:8px; overflow:hidden; width:100%; height:32px; }
.btn-qty-minus,.btn-qty-plus { width:30px; height:100%; background:#2D6A1F; color:white; border:none; cursor:pointer; font-size:1rem; font-weight:700; display:flex; align-items:center; justify-content:center; transition:background .15s; flex-shrink:0; }
.btn-qty-minus:hover,.btn-qty-plus:hover { background:#245517; }
.btn-qty-num { flex:1; text-align:center; font-family:'Nunito',sans-serif; font-weight:800; font-size:.9rem; color:#2d1f0a; }

/* Banner promocional */
.promo-banner-wrap { overflow:hidden; max-height:220px; line-height:0; }
.promo-banner-wrap img { width:100%; max-height:220px; object-fit:cover; display:block; }

.producto-img-wrap img { width:100%; height:100%; object-fit:cover; }
#listaProductos { display:grid; gap:1rem; grid-template-columns:repeat(2,1fr); }
@media(min-width:600px){ #listaProductos { grid-template-columns:repeat(3,1fr); } }
@media(min-width:900px){ #listaProductos { grid-template-columns:repeat(4,1fr); } }
@media(min-width:1200px){ #listaProductos { grid-template-columns:repeat(5,1fr); } }

#carritoPanel { position:fixed; right:0; top:0; width:min(420px,100vw); height:100%; background:white; box-shadow:-6px 0 30px rgba(0,0,0,0.15); transform:translateX(100%); transition:transform .3s cubic-bezier(.4,0,.2,1); z-index:500; display:flex; flex-direction:column; }
#carritoPanel.open { transform:translateX(0); }
#carritoOverlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.4); z-index:499; }
#carritoOverlay.open { display:block; }
.cart-item { display:flex; align-items:center; gap:.75rem; padding:.65rem 0; border-bottom:1px solid #f0f0e8; }
.cart-item-thumb { width:44px; height:44px; border-radius:8px; background:#f3f8e8; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:1.2rem; overflow:hidden; }
.cart-item-thumb img { width:100%; height:100%; object-fit:cover; }
.qty-btn { width:24px; height:24px; border-radius:6px; border:none; cursor:pointer; font-size:.85rem; font-weight:700; background:#f3f8e8; color:#5a8a1e; display:flex; align-items:center; justify-content:center; transition:background .15s; }
.qty-btn:hover { background:#d4edaa; }

.modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:600; align-items:center; justify-content:center; padding:clamp(.8rem,2vw,2rem); }
.modal-overlay.open { display:flex; }
.modal-box { background:white; border-radius:20px; padding:1.75rem; width:min(95vw,500px); box-shadow:0 20px 60px rgba(0,0,0,0.25); animation:popIn .25s ease; max-height:90vh; overflow-y:auto; }
@keyframes popIn { from{transform:scale(.92);opacity:0} to{transform:scale(1);opacity:1} }
.modal-input { width:100%; border:1.5px solid #e8f0d8; border-radius:10px; padding:10px 14px; font-family:'Nunito',sans-serif; font-size:.9rem; color:#2d1f0a; background:#fefcf3; outline:none; margin-bottom:.65rem; transition:border-color .2s; }
.modal-input:focus { border-color:#7db832; }
.tab-btn { flex:1; text-align:center; padding:.6rem; font-size:.9rem; font-weight:700; cursor:pointer; background:none; border:none; border-bottom:2px solid transparent; color:#aaa; transition:all .2s; }
.tab-btn.active { color:#5a8a1e; border-bottom-color:#7db832; }

/* ── Sidebar de categorías ───────────────────────────────────────────────── */
.cat-layout { display:flex; flex-direction:column; }
.cat-content { flex:1; min-width:0; }

/* Mobile: pills horizontales (default) */
.cat-scroll-wrap { position:relative; overflow-x:auto; padding:.5rem 1rem; border-bottom:1.5px solid #edf5d8; background:#fefcf3; flex-shrink:0; }
.cat-scroll-wrap::after { content:''; position:absolute; right:0; top:0; bottom:0; width:32px; background:linear-gradient(to right,transparent,#fefcf3); pointer-events:none; }
.cat-sidebar-title { display:none; }
#listaCategorias { display:flex; flex-direction:row; gap:.5rem; min-width:max-content; }
.cat-btn { border-radius:50px; padding:7px 16px; font-family:'Nunito',sans-serif; font-size:.8rem; font-weight:700; cursor:pointer; border:2px solid #c8e496; background:white; color:#5a8a1e; transition:all .2s; white-space:nowrap; }
.cat-btn:hover,.cat-btn.active { background:#7db832; border-color:#7db832; color:white; }

/* Desktop ≥768px: sidebar vertical */
@media(min-width:768px) {
  .cat-layout { flex-direction:row; align-items:flex-start; }
  .cat-scroll-wrap { overflow-x:hidden; overflow-y:auto; padding:1.25rem 0; width:200px; min-width:200px; height:calc(100vh - var(--header-h)); position:sticky; top:var(--header-h); border-right:1px solid #E8E0D0; border-bottom:none; background:#FDFAF4; z-index:10; }
  .cat-scroll-wrap::after { display:none; }
  .cat-sidebar-title { display:block; font-family:'DM Sans','Nunito',sans-serif; font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:#B0A898; padding:0 1rem .75rem; }
  #listaCategorias { flex-direction:column; gap:.1rem; min-width:unset; width:100%; }
  .cat-btn { display:block; width:100%; text-align:left; border-radius:6px; padding:8px 1rem 8px 1.1rem; border:none; border-left:3px solid transparent; background:transparent; color:#4A3F35; font-size:.85rem; font-weight:600; white-space:normal; }
  .cat-btn:hover { background:#F3F8EE; color:#2D6A1F; border-left-color:#c8e496; }
  .cat-btn.active { background:#EEF7E8; color:#2D6A1F; border-left-color:#2D6A1F; font-weight:700; }
}
@media(min-width:992px){
  .cat-scroll-wrap { width:240px; min-width:240px; }
}

#barraBusqueda { position:sticky; top:var(--header-h); z-index:39; background:white; border-bottom:2px solid #edf5d8; padding:.65rem 1rem; box-shadow:0 3px 10px rgba(93,140,30,0.10); }
.search-wrap { max-width:700px; margin:0 auto; display:flex; align-items:center; gap:.5rem; background:#f3f8e8; border:2px solid #c8e496; border-radius:50px; padding:.4rem .4rem .4rem 1rem; transition:border-color .2s,box-shadow .2s; }
.search-wrap:focus-within { border-color:#7db832; box-shadow:0 0 0 3px rgba(125,184,50,0.18); }
#inputBusqueda { flex:1; border:none; background:transparent; font-family:'Nunito',sans-serif; font-size:.9rem; color:#2d1f0a; outline:none; min-width:0; }
#inputBusqueda::placeholder { color:#a0b878; }
.btn-buscar { background:#7db832; border:none; border-radius:50px; padding:6px 14px; color:white; font-family:'Nunito',sans-serif; font-size:.8rem; font-weight:700; cursor:pointer; white-space:nowrap; transition:background .2s; }
.btn-buscar:hover { background:#5a8a1e; }
.btn-limpiar { background:none; border:none; cursor:pointer; color:#a0b878; font-size:1rem; padding:0 4px; display:none; line-height:1; }
.btn-limpiar.visible { display:block; }

.estado-pendiente { background:#fff8e1; color:#f59e0b; border:1px solid #fcd34d; }
.estado-camino    { background:#e8f5e9; color:#16a34a; border:1px solid #86efac; }
.estado-anulado   { background:#fef2f2; color:#dc2626; border:1px solid #fca5a5; }

#btnWhatsapp { position:fixed; bottom:1.75rem; right:1.5rem; z-index:150; background:#25d366; color:white; border:none; border-radius:50px; padding:11px 18px 11px 14px; display:flex; align-items:center; gap:7px; font-family:'Nunito',sans-serif; font-weight:700; font-size:.85rem; cursor:pointer; box-shadow:0 6px 24px rgba(37,211,102,0.45); transition:transform .2s,box-shadow .2s; animation:waPulse 2.5s infinite; text-decoration:none; }
#btnWhatsapp:hover { transform:translateY(-3px) scale(1.04); box-shadow:0 10px 30px rgba(37,211,102,0.55); animation:none; }
@keyframes waPulse { 0%,100%{box-shadow:0 6px 24px rgba(37,211,102,0.45)} 50%{box-shadow:0 6px 32px rgba(37,211,102,0.75)} }

/* Toast sobre el botón WhatsApp — aparece arriba para no superponerse */
#toast { position:fixed; bottom:5.5rem; left:50%; transform:translateX(-50%) translateY(40px); opacity:0; background:#2d1f0a; color:#fefcf3; padding:10px 22px; border-radius:50px; font-size:.875rem; z-index:900; transition:transform .3s,opacity .3s; pointer-events:none; white-space:nowrap; max-width:90vw; text-align:center; }
#toast.show { transform:translateX(-50%) translateY(0); opacity:1; }

.scrollbar-hide::-webkit-scrollbar { display:none; }
.scrollbar-hide { -ms-overflow-style:none; scrollbar-width:none; }


/* ── Cards rediseño Paso 2 ───────────────────────────────────────────────── */
.producto-card .p-2 { padding:12px !important; }
.producto-card p:first-of-type { color:#4C9A2A !important; font-size:9px !important; letter-spacing:0.5px !important; }
.producto-card h3 { text-transform:lowercase; }
.producto-card h3::first-letter { text-transform:uppercase; }
.producto-card h3 + p { color:#2D6A1F !important; font-size:1.1rem !important; font-weight:800 !important; }

.checkout-item { display:flex; justify-content:space-between; font-size:.82rem; padding:.35rem 0; border-bottom:1px solid #f0f0e8; color:#555; }
.checkout-item:last-child { border:none; }

/* ── Auth modal mejorado ─────────────────────────────────────── */
.auth-tabs { display:flex; background:#f3f8e8; border-radius:10px; padding:3px; }
.auth-tab  { flex:1; text-align:center; padding:.5rem; font-size:.88rem; font-weight:700; border-radius:8px; border:none; background:transparent; color:#999; cursor:pointer; transition:all .2s; font-family:'Nunito',sans-serif; }
.auth-tab.active { background:white; color:#5a8a1e; box-shadow:0 2px 8px rgba(0,0,0,0.1); }

/* Wrapper para input con ojo */
.pass-wrap { position:relative; }
.pass-wrap .modal-input { padding-right:38px; margin-bottom:.65rem; }
.pass-eye { position:absolute; right:10px; top:calc(50% - .325rem); transform:translateY(-50%); background:none; border:none; cursor:pointer; font-size:.9rem; color:#bbb; padding:2px 4px; line-height:1; }
.pass-eye:hover { color:#7db832; }

/* Mensaje de error inline */
.auth-err { display:none; background:#fef2f2; color:#dc2626; border:1px solid #fca5a5; border-radius:8px; padding:8px 12px; font-size:.8rem; margin-bottom:.65rem; font-weight:600; }
.auth-err.visible { display:block; }

/* Input del código de recuperación */
.rec-code { text-align:center; font-size:1.6rem; font-weight:900; letter-spacing:.4em; font-family:'Courier New',monospace; }

/* Estado loading en botón */
.btn-auth { position:relative; }
.btn-auth:disabled { opacity:.7; cursor:not-allowed; }
.btn-auth .spinner { display:inline-block; width:13px; height:13px; border:2px solid rgba(255,255,255,.4); border-top-color:white; border-radius:50%; animation:spin .6s linear infinite; margin-right:6px; vertical-align:middle; }
@keyframes spin { to{ transform:rotate(360deg) } }

/* ── Hero Slider (Paso 4) ─────────────────────────────────────────────────── */
.hero-slider { position:relative; overflow:hidden; }
.hero-slide { display:none; position:relative; padding:3rem 1.5rem 2rem; text-align:center; min-height:clamp(220px,45vw,420px); overflow:hidden; aspect-ratio:8/3; background-size:cover; background-position:center; }
.hero-slide.active { display:block; }
@media(max-width:640px){
  .hero-slide { aspect-ratio:auto; min-height:240px; background-size:cover !important; background-position:center center !important; }
  .hero-slide-content { position:relative; bottom:auto; left:auto; transform:none; padding-top:1rem; }
}
.hero-slide-content { position:absolute; bottom:1.5rem; left:50%; transform:translateX(-50%); z-index:1; max-width:560px; margin:0 auto; width:auto; }
.hero-eyebrow { font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,0.75); margin-bottom:.5rem; }
.hero-title { font-family:'Fraunces',serif; font-style:italic; font-size:2rem; color:#fff; line-height:1.15; margin-bottom:.5rem; text-shadow:0 2px 8px rgba(0,0,0,0.25); }
@media(min-width:640px){ .hero-title { font-size:2.6rem; } }
.hero-sub { font-size:.88rem; color:rgba(255,255,255,0.8); margin-bottom:1.25rem; }
.hero-btn { background:rgba(255,255,255,0.15); border:1.5px solid rgba(255,255,255,0.5); color:#fff; font-family:'DM Sans','Nunito',sans-serif; font-size:.85rem; font-weight:700; padding:.55rem 1.4rem; border-radius:50px; cursor:pointer; transition:background .2s,border-color .2s; }
.hero-btn:hover { background:rgba(255,255,255,0.28); border-color:white; }
.hero-price-wrap { display:flex; align-items:center; justify-content:center; gap:.75rem; margin-bottom:1.25rem; }
.hero-price-new { font-family:'Fraunces',serif; font-size:2rem; font-weight:700; color:#FFD700; }
.hero-price-old { font-size:1.1rem; color:rgba(255,255,255,0.5); text-decoration:line-through; }
.hero-dots-nav { display:flex; justify-content:center; gap:.5rem; padding:.75rem 0 1rem; }
.hero-dot { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,0.35); border:none; cursor:pointer; padding:0; transition:background .2s,transform .2s; }
.hero-dot.active { background:rgba(255,255,255,0.9); transform:scale(1.3); }
.hero-slide-content h1 { font-size:clamp(1.5rem,5vw,3rem); }
.hero-slide-content p  { font-size:clamp(.8rem,2vw,1rem); }

/* ── Ticker de ofertas (Paso 4) ───────────────────────────────────────────── */
.ticker-ofertas { background:#F2A71B; color:white; font-family:'DM Sans','Nunito',sans-serif; font-size:.78rem; font-weight:700; overflow:hidden; white-space:nowrap; height:32px; display:flex; align-items:center; }
.ticker-track { display:inline-flex; align-items:center; gap:1.5rem; animation:tickerScroll 22s linear infinite; }
.ticker-ofertas:hover .ticker-track { animation-play-state:paused; }
.ticker-item { white-space:nowrap; flex-shrink:0; }
.ticker-sep { color:rgba(255,255,255,0.5); flex-shrink:0; }
@keyframes tickerScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── Modal tipo entrega (Paso 5) ─────────────────────────────────────────── */
.entrega-opcion { flex:1; display:flex; flex-direction:column; align-items:center; gap:.4rem; padding:1.25rem .75rem; border:2px solid #E8E0D0; border-radius:14px; background:#FDFAF4; cursor:pointer; transition:border-color .2s,background .2s; }
.entrega-opcion:hover { border-color:#2D6A1F; background:#EEF7E8; }
.entrega-icon { font-size:1.75rem; line-height:1; }
.entrega-label { font-family:'DM Sans','Nunito',sans-serif; font-size:.9rem; font-weight:700; color:#2d1f0a; }
.entrega-sub { font-size:.72rem; color:#aaa; }

/* ── Modal entrega paso 2 (Paso 9) ──────────────────────────────────────── */
.modal-entrega-box { max-width:340px; text-align:center; padding:1.75rem 1.5rem; }
.entrega-ico-grande { font-size:2.2rem; margin-bottom:.5rem; }
.entrega-titulo { margin-bottom:.25rem; }
.entrega-subtitulo { font-size:.8rem; color:#bbb; margin-bottom:1.5rem; }
.entrega-opciones { display:flex; gap:.75rem; }
.entrega-volver { display:block; background:none; border:none; cursor:pointer; font-family:'DM Sans','Nunito',sans-serif; font-size:.8rem; color:#aaa; padding:0; margin-bottom:.85rem; transition:color .15s; }
.entrega-volver:hover { color:#2D6A1F; }
.entrega-campo { text-align:left; margin-bottom:.9rem; }
.entrega-campo-label { display:block; font-family:'DM Sans','Nunito',sans-serif; font-size:.75rem; font-weight:700; color:#666; margin-bottom:.35rem; text-transform:uppercase; letter-spacing:.04em; }
.entrega-campo-inp { width:100%; border:1.5px solid #ddd; border-radius:10px; padding:.55rem .75rem; font-size:.9rem; color:#333; background:#fff; box-sizing:border-box; font-family:'DM Sans','Nunito',sans-serif; transition:border-color .2s; }
.entrega-campo-inp:focus { outline:none; border-color:#2D6A1F; }
.entrega-btn-confirmar { width:100%; background:#2D6A1F; color:white; border:none; border-radius:12px; padding:.75rem; font-size:.95rem; font-weight:700; cursor:pointer; margin-top:.25rem; font-family:'DM Sans','Nunito',sans-serif; transition:background .2s; }
.entrega-btn-confirmar:hover { background:#245718; }

/* ── Barra entrega elegida (Paso 5) ──────────────────────────────────────── */
#barraEntrega { display:flex; align-items:center; justify-content:center; gap:.75rem; background:#EEF7E8; border-bottom:1px solid #C5DFB2; padding:.45rem 1rem; font-family:'DM Sans','Nunito',sans-serif; font-size:.82rem; font-weight:600; color:#2D6A1F; }
#barraEntrega button { background:none; border:1px solid #2D6A1F; color:#2D6A1F; border-radius:50px; padding:.2rem .75rem; font-size:.75rem; font-weight:700; cursor:pointer; font-family:'DM Sans','Nunito',sans-serif; transition:background .15s,color .15s; }
#barraEntrega button:hover { background:#2D6A1F; color:white; }

/* ── Footer (Paso 8) ─────────────────────────────────────────────────────── */
.footer { background:#141A0E; color:rgba(255,255,255,0.55); font-family:'DM Sans','Nunito',sans-serif; padding:3rem 1.5rem 1.75rem; margin-top:2rem; }
.footer-inner { max-width:1100px; margin:0 auto; }

.footer-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:2rem; margin-bottom:2.5rem; }

.footer-brand { display:flex; align-items:center; gap:.75rem; margin-bottom:.85rem; justify-content:center; }
@media(min-width:768px){ .footer-brand { justify-content:flex-start; } }
.footer-logo { width:40px; height:40px; border-radius:50%; object-fit:cover; border:2px solid rgba(45,106,31,0.45); flex-shrink:0; }
.footer-name { font-family:'Fraunces',serif; font-style:italic; font-size:1.25rem; color:#2D6A1F; line-height:1.2; }
.footer-desc { font-size:.82rem; line-height:1.75; color:rgba(255,255,255,0.4); margin-bottom:1rem; }
.footer-socials { display:flex; gap:.5rem; justify-content:center; }
@media(min-width:768px){ .footer-socials { justify-content:flex-start; } }
.footer-social-btn { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; transition:transform .2s,opacity .2s; flex-shrink:0; }
.footer-social-btn:hover { transform:translateY(-2px); opacity:.82; }
.footer-social-wa { background:#25D366; }
.footer-social-em { background:#E07835; }

.footer-title { font-family:'Fraunces',serif; font-style:italic; font-size:1.1rem; color:white; margin-bottom:1rem; font-weight:700; }

.footer-contact { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:.8rem; }
.footer-contact-item { display:flex; align-items:flex-start; gap:.6rem; font-size:.82rem; justify-content:center; }
@media(min-width:768px){ .footer-contact-item { justify-content:flex-start; } }
.footer-contact-icon { flex-shrink:0; margin-top:2px; opacity:.55; }
.footer-link { color:#7db832; text-decoration:none; font-weight:600; transition:color .15s; word-break:break-word; overflow-wrap:break-word; }
.footer-link:hover { color:#c8e496; }

.footer-hours { display:flex; flex-direction:column; gap:.35rem; margin-bottom:1rem; max-width:320px; margin-left:auto; margin-right:auto; }
.footer-hours-row { display:flex; justify-content:space-between; font-size:.82rem; padding-bottom:.35rem; border-bottom:1px solid rgba(255,255,255,0.06); }
.footer-hours-row:last-child { border-bottom:none; padding-bottom:0; }
.footer-hours-day { color:rgba(255,255,255,0.5); }
.footer-hours-time { color:#c8e496; font-weight:600; }
.footer-badge { background:rgba(45,106,31,0.15); border:1px solid rgba(45,106,31,0.28); border-radius:8px; padding:.5rem .85rem; font-size:.77rem; color:#7db832; font-weight:600; display:inline-block; }

.footer-bottom { border-top:1px solid rgba(255,255,255,0.07); padding-top:1.25rem; text-align:center; }
.footer-copy { font-size:.75rem; color:rgba(255,255,255,0.3); margin:0; }

/* ════ HEADER ════ */
#mainHeader {
  background: #FDFAF4;
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.hdr {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 16px);
  padding: 0 clamp(10px, 3vw, 24px);
  height: 58px;
  max-width: 1280px;
  margin: 0 auto;
}
.hdr-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.hdr-logo img {
  width: clamp(32px,5vw,42px);
  height: clamp(32px,5vw,42px);
  object-fit: contain;
}
.hdr-nombre {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(.85rem, 2.5vw, 1.15rem);
  color: #2D6A1F;
  white-space: nowrap;
}
@media(max-width:480px){ .hdr-nombre { display:none; } }

.hdr-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid #e0d8c8;
  border-radius: 50px;
  padding: 0 14px;
  height: 38px;
  transition: border-color .2s;
}
.hdr-search:focus-within { border-color: #2D6A1F; }
.hdr-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: clamp(.78rem, 2vw, .9rem);
  font-family: inherit;
  color: #333;
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.5vw, 10px);
  flex-shrink: 0;
}

.hdr-cart {
  position: relative;
  background: #2D6A1F;
  border: none;
  border-radius: 12px;
  width: clamp(38px, 6vw, 44px);
  height: clamp(38px, 6vw, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: opacity .15s;
}
.hdr-cart:hover { opacity: .85; }
.hdr-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #F2A71B;
  color: white;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: .65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid #FDFAF4;
}

.hdr-avatar {
  width: clamp(34px, 5.5vw, 40px);
  height: clamp(34px, 5.5vw, 40px);
  border-radius: 50%;
  border: 2px solid #e0d8c8;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: all .15s;
  flex-shrink: 0;
}
.hdr-avatar:hover { border-color: #2D6A1F; color: #2D6A1F; }
.hdr-avatar-on {
  background: #2D6A1F;
  border-color: #2D6A1F;
  color: white;
  font-weight: 700;
  font-size: clamp(.8rem, 2vw, 1rem);
}

.hdr-user { position: relative; }
.hdr-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 14px;
  padding: 8px;
  min-width: 190px;
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
  z-index: 300;
}
.hdr-user-menu-nombre {
  font-weight: 700;
  font-size: .88rem;
  color: #222;
  padding: 6px 10px 10px;
  border-bottom: 1px solid #f0ece4;
  margin-bottom: 6px;
}
.hdr-user-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .85rem;
  color: #444;
  font-family: inherit;
  transition: background .15s;
}
.hdr-user-menu button:hover { background: #f5f0e8; }
.hdr-menu-danger { color: #c0392b !important; }
.hdr-menu-danger:hover { background: #fff0ee !important; }

