/* Yesham Hayat - tienda: botones de producto, carrito, guardados */
.yh-card{display:flex;flex-direction:column}
.yh-card-link{flex:1 1 auto;display:block;color:inherit;text-decoration:none}
.yh-card-photo{position:relative}
.yh-badge{position:absolute;left:10px;top:10px;padding:4px 11px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.4;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.yh-badge.low{color:#7a4300;background:#fff1dc}
.yh-badge.out{color:#fff;background:#5f6560}
.yh-card.is-out .yh-card-photo img{filter:grayscale(.7);opacity:.8}
.yh-actions{display:flex;align-items:center;gap:8px;padding:0 16px 16px;flex-wrap:wrap}
.yh-actions[hidden]{display:none}
.yh-actions .yh-add{flex:1 1 150px;min-height:44px;padding:10px 16px;font-size:14px;gap:8px;margin:0}
.yh-actions.big{padding:0;margin:20px 0 12px;gap:10px}
.yh-actions.big .yh-add{flex:0 1 auto;min-height:51px;padding:15px 26px}
.yh-actions.big .yh-ico-btn{width:51px;height:51px}
.yh-add svg,.yh-tool svg,.yh-cart-fab svg,.yh-ico-btn svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.yh-add svg,.yh-tool svg{width:18px;height:18px}
.yh-ico-btn{width:44px;height:44px;flex:none;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid #cfe0d4;background:#fff;color:var(--yh-verde-osc,#00542a);cursor:pointer;padding:0;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease,background-color .25s ease,color .25s ease}
.yh-ico-btn[hidden]{display:none}
.yh-ico-btn svg{width:20px;height:20px}
.yh-ico-btn:hover,.yh-ico-btn:focus-visible{transform:translateY(-2px);box-shadow:0 8px 18px -8px rgba(0,84,42,.5);border-color:var(--yh-verde,#037b3f)}
.yh-ico-btn:active{transform:translateY(0)}
.yh-ico-btn.on{color:#c2414b;border-color:#f0c4c8;background:#fff5f6}
.yh-ico-btn.on svg{fill:currentColor}
.yh-wa-btn{background:#25d366;border-color:#25d366}
.yh-wa-btn:hover,.yh-wa-btn:focus-visible{background:#1ebe5b;border-color:#1ebe5b;box-shadow:0 8px 18px -8px rgba(18,140,126,.6)}
.yh-ico-wa{display:inline-block;flex:none;width:22px;height:22px;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M17.472%2014.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94%201.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198%200-.52.074-.792.372-.272.297-1.04%201.016-1.04%202.479%200%201.462%201.065%202.875%201.213%203.074.149.198%202.096%203.2%205.077%204.487.709.306%201.262.489%201.694.625.712.227%201.36.195%201.871.118.571-.085%201.758-.719%202.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421%207.403h-.004a9.87%209.87%200%2001-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86%209.86%200%2001-1.51-5.26c.001-5.45%204.436-9.884%209.888-9.884%202.64%200%205.122%201.03%206.988%202.898a9.825%209.825%200%20012.893%206.994c-.003%205.45-4.437%209.884-9.885%209.884m8.413-18.297A11.815%2011.815%200%200012.05%200C5.495%200%20.16%205.335.157%2011.892c0%202.096.547%204.142%201.588%205.945L.057%2024l6.305-1.654a11.882%2011.882%200%20005.683%201.448h.005c6.554%200%2011.89-5.335%2011.893-11.893a11.821%2011.821%200%2000-3.48-8.413Z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.yh-out{flex:1 1 150px;font-weight:600;color:#5f6560;padding:10px 0}
.yh-stock{font-weight:600}
.yh-stock.ok{color:var(--yh-verde,#037b3f)}
.yh-stock.low{color:#8a4b00}
.yh-stock.out{color:#8a2b2b}
.yh-stock b{font-weight:600;color:var(--foreground,#203b2e)}
.yh-qty{display:inline-flex;align-items:center;border:1px solid #cfe0d4;border-radius:999px;overflow:hidden;background:#fff;margin-top:14px}
.yh-qty[hidden]{display:none}
.yh-qty button{width:46px;height:46px;border:0;background:transparent;font:inherit;font-size:22px;line-height:1;color:var(--yh-verde-osc,#00542a);cursor:pointer;transition:background-color .2s}
.yh-qty button:hover{background:#e8f3ec}
.yh-qty input{width:54px;height:46px;text-align:center;border:0;font:inherit;font-size:17px;background:transparent;-moz-appearance:textfield;appearance:textfield}
.yh-qty input::-webkit-outer-spin-button,.yh-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.yh-qty.small{margin-top:6px}
.yh-qty.small button{width:34px;height:34px;font-size:18px}
.yh-qty.small span{min-width:26px;text-align:center;font-weight:600}
.yh-shop-tools{display:flex;justify-content:flex-end;gap:10px;margin:10px 0 -6px;flex-wrap:wrap}
.yh-shop-tools[hidden]{display:none}
.yh-tool{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 14px;border:1px solid #cfe0d4;border-radius:999px;background:#fff;color:var(--yh-verde-osc,#00542a);font:inherit;font-size:14px;cursor:pointer;text-decoration:none;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.yh-tool:hover,.yh-tool:focus-visible{transform:translateY(-2px);box-shadow:0 8px 18px -8px rgba(0,84,42,.5);border-color:var(--yh-verde,#037b3f)}
.yh-tool b{background:var(--yh-verde,#037b3f);color:#fff;border-radius:999px;min-width:22px;padding:0 6px;font-size:12px;line-height:22px;text-align:center}
.yh-cart-fab{position:fixed;right:22px;bottom:94px;z-index:30;width:58px;height:58px;border-radius:50%;border:0;background:var(--yh-verde,#037b3f);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,84,42,.35);cursor:pointer;transition:transform .25s ease,background-color .25s ease}
.yh-cart-fab[hidden]{display:none}
.yh-cart-fab:hover,.yh-cart-fab:focus-visible{background:var(--yh-verde-osc,#00542a);transform:scale(1.08)}
.yh-cart-fab svg{width:26px;height:26px}
.yh-cart-fab b{position:absolute;top:-4px;right:-4px;background:#fff;color:var(--yh-verde-osc,#00542a);border:2px solid var(--yh-verde,#037b3f);border-radius:999px;min-width:24px;height:24px;padding:0 4px;font-size:12px;display:flex;align-items:center;justify-content:center}
@keyframes yhPop{0%{transform:scale(1)}40%{transform:scale(1.22)}100%{transform:scale(1)}}
.yh-cart-fab.pop{animation:yhPop .45s ease}
dialog.yh-cart{margin:0 0 0 auto;height:100%;max-height:100%;width:min(460px,100%);max-width:100%;border:0;padding:0;background:#faf8f2;color:#203b2e;box-shadow:-10px 0 40px rgba(0,0,0,.18)}
dialog.yh-cart::backdrop{background:rgba(0,30,15,.45)}
.yh-cart-head{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #dbe0d6;position:sticky;top:0;background:#faf8f2;z-index:1}
.yh-cart-head h2{margin:0;font-size:1.7rem}
.yh-x{width:42px;height:42px;border-radius:50%;border:1px solid #cfe0d4;background:#fff;font-size:24px;line-height:1;cursor:pointer;color:#203b2e}
.yh-x:hover{border-color:var(--yh-verde,#037b3f)}
.yh-cart-body{padding:12px 20px 32px}
.yh-cart-list{list-style:none;margin:0;padding:0}
.yh-cart-list li{display:grid;grid-template-columns:64px 1fr auto;gap:12px;padding:14px 0;border-bottom:1px solid #e6e9e1;align-items:start}
.yh-ci-photo{width:64px;height:64px;border-radius:12px;background:#eef1e8;overflow:hidden}
.yh-ci-photo img{width:100%;height:100%;object-fit:cover;display:block}
.yh-ci-info a{font-weight:600;color:inherit;text-decoration:none}
.yh-ci-info a:hover{color:var(--yh-verde,#037b3f)}
.yh-ci-info small{display:block;color:#65716a;font-size:13px}
.yh-del{display:block;border:0;background:transparent;color:#8a2b2b;text-decoration:underline;font:inherit;font-size:13px;padding:6px 0 0;cursor:pointer}
.yh-ci-sub{font-weight:600;white-space:nowrap}
.yh-cart-total{display:flex;flex-wrap:wrap;gap:4px 10px;justify-content:space-between;align-items:baseline;font-size:18px;margin:16px 0 6px}
.yh-cart-total small{width:100%;color:#65716a;font-size:13px}
.yh-cart-form{border-top:1px solid #dbe0d6;margin-top:12px;padding-top:6px}
.yh-cart-form h3{font-size:1.35rem;margin:12px 0 4px}
.yh-cart-form label{display:block;margin:12px 0;font-weight:600;font-size:14px}
.yh-cart-form label[hidden]{display:none}
.yh-cart-form input:not([type=radio]),.yh-cart-form textarea{display:block;width:100%;margin-top:5px;padding:11px 12px;border:1px solid #c9d3c7;border-radius:10px;font:inherit;font-weight:400;font-size:16px;background:#fff;color:#203b2e}
.yh-cart-form input:focus,.yh-cart-form textarea:focus{outline:2px solid var(--yh-verde,#037b3f);outline-offset:1px}
.yh-cart-form fieldset{border:0;padding:0;margin:12px 0}
.yh-cart-form legend{font-weight:600;font-size:14px;margin-bottom:4px;padding:0}
.yh-cart-form .yh-radio{display:flex;gap:10px;align-items:center;font-weight:400;margin:6px 0;cursor:pointer}
.yh-radio input{width:18px;height:18px;accent-color:var(--yh-verde,#037b3f)}
.yh-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0}
.yh-cart-msg{background:#fff0ec;border:1px solid #bd765a;border-radius:10px;padding:10px 12px;font-size:14px;margin:10px 0}
.yh-cart-msg[hidden]{display:none}
.btn.yh-send{width:100%;background:#25d366;color:#073d26;border:1px solid #25d366;gap:10px;margin-top:8px;min-height:51px;font-size:15px;text-decoration:none}
.btn.yh-send:hover,.btn.yh-send:focus-visible{background:#1ebe5b;border-color:#1ebe5b;color:#073d26;transform:translateY(-2px);box-shadow:0 8px 18px -8px rgba(18,140,126,.6)}
.btn.yh-send:disabled{opacity:.6;transform:none;box-shadow:none;cursor:wait}
.yh-cart-help{font-size:13px;color:#65716a;margin-top:10px}
.yh-cart-empty{margin:20px 0}
.yh-cart-done{text-align:center;padding:30px 0}
.yh-cart-done h3{font-size:1.5rem}
.yh-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#203b2e;color:#fff;padding:12px 18px;border-radius:12px;z-index:60;font-size:14px;box-shadow:0 8px 24px rgba(0,0,0,.25);max-width:calc(100% - 32px);text-align:center}
.yh-toast[hidden]{display:none}
@media (width<=650px){
  .yh-cart-fab{right:15px;bottom:80px;width:52px;height:52px}
  .yh-actions{padding:0 12px 12px}
  .yh-actions.big .yh-add{flex:1 1 100%}
  .yh-shop-tools{justify-content:flex-start}
}
@media (prefers-reduced-motion:reduce){.yh-ico-btn,.yh-tool,.yh-cart-fab,.btn.yh-send{transition:none!important;transform:none!important;animation:none!important}}

/* Tarjeta: boton del carrito a todo el ancho y los iconos debajo */
.yh-actions:not(.big) .yh-add{flex:1 1 100%;white-space:nowrap}
/* Avisos de confirmación */
.yh-notice{position:fixed;left:50%;top:84px;z-index:70;width:min(400px,calc(100% - 32px));transform:translate(-50%,-12px);opacity:0;transition:opacity .25s ease,transform .25s ease}
.yh-notice.show{opacity:1;transform:translate(-50%,0)}
.yh-notice[hidden]{display:none}
.yh-notice-box{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid #cfe0d4;border-left:5px solid var(--yh-verde,#037b3f);border-radius:14px;padding:16px 18px;box-shadow:0 16px 36px -10px rgba(0,60,30,.38);color:#203b2e}
.yh-check{flex:none;width:34px;height:34px;border-radius:50%;background:var(--yh-verde,#037b3f);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;line-height:1}
.yh-check.big{width:68px;height:68px;font-size:34px;margin:0 auto 14px;display:flex}
.yh-notice b{display:block;font-size:16px}
.yh-notice p{margin:2px 0 0;font-size:14px;color:#65716a}
.yh-notice-btns{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.yh-notice-btns .btn{padding:9px 16px;font-size:13px;min-height:0;margin:0}
.yh-notice-close{border:1px solid #cfe0d4;background:#fff;border-radius:999px;padding:9px 14px;font:inherit;font-size:13px;color:var(--yh-verde-osc,#00542a);cursor:pointer}
.yh-notice-close:hover{border-color:var(--yh-verde,#037b3f)}
@keyframes yhSpin{to{transform:rotate(360deg)}}
.btn.yh-send.loading .yh-ico-wa{background:none;border:3px solid rgba(7,61,38,.25);border-top-color:#073d26;border-radius:50%;width:20px;height:20px;animation:yhSpin .8s linear infinite}
@media (width<=650px){.yh-notice{top:auto;bottom:16px;transform:translate(-50%,12px)}.yh-notice.show{transform:translate(-50%,0)}}
@media (prefers-reduced-motion:reduce){.yh-notice{transition:none}}

/* Celular: botones de guardados y carrito en una sola linea */
@media (width<=650px){.yh-shop-tools{flex-wrap:nowrap;gap:8px;margin-top:6px}.yh-tool{min-height:36px;padding:6px 12px;font-size:13px;gap:6px;white-space:nowrap}.yh-tool svg{width:16px;height:16px}}

/* Carrito siempre visible y botón marcado cuando el producto ya está en el carrito */
.yh-cart-fab[hidden]{display:flex}
.yh-cart-fab{z-index:65}
.yh-cart-fab.empty b{background:#fff;color:#8a9a90;border-color:#cfe0d4}
.yh-add.in-cart{background:var(--yh-verde-osc,#00542a)}
.yh-add.in-cart span{font-weight:700}
.yh-ico-btn.busy{opacity:.55;pointer-events:none}

/* Barra del carrito siempre visible al bajar */
.yh-shop-tools{position:sticky;top:calc(var(--yh-head,0px) + 8px);z-index:45;transition:padding .25s ease}
.yh-shop-tools.stuck .yh-tool{box-shadow:0 8px 20px -8px rgba(0,60,30,.45);border-color:var(--yh-verde,#037b3f)}
