/* Homepage product rows — carousels of the new .hmc card.
   Card styles adapted from filter-live-v2's V2CSS (#hmf-grid .hmc*) re-scoped to
   .hmr-track, kept as vertical cards (horizontal carousel). Slice 2026-06-22. */

/* ── row / carousel ──────────────────────────────────────────────── */
.hmr-wrap{direction:rtl;font-family:Heebo,Assistant,Arial,sans-serif;max-width:1280px;margin:36px auto 0;padding:14px 12px 0;clear:both;position:relative;z-index:2}
.hmr{margin:34px 0}
.hmr-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 6px 8px;padding-bottom:10px;border-bottom:2px solid #f0e8e0}
.hmr-title{font-size:clamp(18px,2.3vw,25px);font-weight:900;color:#1c1310;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:9px}
.hmr-title::before{content:"";flex:0 0 auto;width:5px;height:22px;border-radius:3px;background:#a31d2b}
.hmr-all{color:#fff;background:#a31d2b;font-weight:800;font-size:13px;text-decoration:none;white-space:nowrap;padding:7px 15px;border-radius:22px;flex:0 0 auto}
.hmr-all:hover{background:#7a1620}
.hmr-rel{position:relative}
.hmr-track{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:14px 48px 16px;scroll-padding-right:48px;scroll-padding-left:48px;scrollbar-width:none;scroll-behavior:smooth}
@media(max-width:680px){.hmr-track{padding-left:12px;padding-right:12px;scroll-padding-right:12px;scroll-padding-left:12px}}
.hmr-track::-webkit-scrollbar{display:none}
/* exact-fit cards: a whole number per view (no partial/cut card ever). gap=14px. */
.hmr-track .hmc{flex:0 0 calc((100% - 56px)/5);scroll-snap-align:start}
/* arrows (desktop) — RTL: "next/more" on the left, "prev/back" on the right */
.hmr-arrow{position:absolute;top:calc(50% + 8px);transform:translateY(-50%);z-index:10;touch-action:manipulation;-webkit-tap-highlight-color:transparent;width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;flex:0 0 44px;padding:0!important;margin:0!important;box-sizing:border-box!important;border-radius:50%!important;border:1px solid #efe6db;background:#fff;color:#a31d2b;font-size:26px;font-weight:400;line-height:1;cursor:pointer;box-shadow:0 5px 18px rgba(40,40,50,.16);display:flex;align-items:center;justify-content:center;overflow:hidden;transition:background .2s,color .2s,opacity .2s}
.hmr-arrow:hover{background:#a31d2b;color:#fff}
.hmr-next{left:0}
.hmr-prev{right:0}
.hmr-arrow.hmr-hide{opacity:0;pointer-events:none}
@media(max-width:680px){.hmr-arrow{width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;font-size:20px;background:rgba(255,255,255,.86);backdrop-filter:blur(2px)}.hmr-next{left:2px}.hmr-prev{right:2px}}
@media(max-width:1024px){.hmr-track .hmc{flex-basis:calc((100% - 28px)/3)}}
@media(max-width:680px){.hmr-track .hmc{flex-basis:calc((100% - 14px)/2)}}

/* ── card (adapted from filter-live-v2 V2CSS, scoped to .hmr-track) ── */
.hmr-track .hmc{position:relative;background:#fff;border:1px solid #efe9e3;border-radius:18px;padding:0 15px 15px;text-align:center;display:flex;flex-direction:column;box-shadow:0 6px 20px rgba(40,40,50,.07);overflow:visible;transition:box-shadow .3s}
.hmr-track .hmc:hover{box-shadow:0 16px 38px rgba(40,40,50,.16)}
.hmr-track .hmc-im{position:relative;display:flex;align-items:flex-end;justify-content:center;height:196px;margin:0;padding:18px 0 6px}
/* fixed image HEIGHT → bottles render at a consistent size across cards (wider boxes/cans
   are capped by width and naturally sit a bit smaller). Avoids the "different sizes" look. */
.hmr-track .hmc-im img{height:166px;width:auto;max-width:104%;object-fit:contain;display:block;transition:transform .3s}
.hmr-track .hmc:hover .hmc-im img{transform:translateY(-4px) scale(1.03)}
.hmr-track .hmc-body{display:flex;flex-direction:column;flex:1}
.hmr-track .hmc-ti{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-decoration:none;color:#222;font-size:15.5px;font-weight:800;line-height:1.3;margin:12px 0 0}
.hmr-track .hmc-ti:hover{color:#a31d2b}
.hmr-track .hmc-sep{width:32px;height:2px;border-radius:2px;background:#a31d2b;margin:9px auto}
.hmr-track .hmc-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin:0 0 9px;line-height:1}
.hmr-track .hmc-tags span{font-size:10.5px;font-weight:600;color:#7a6f68;background:#f6f3ef;border:1px solid #ece5dd;border-radius:20px;padding:2px 8px;white-space:nowrap}
.hmr-track .hmc-price{direction:ltr;font-size:22px;font-weight:900;color:#a31d2b;line-height:1;margin:auto 0 3px}
.hmr-track .hmc-price small{font-size:13px;font-weight:800}
.hmr-track .hmc-price.hmc-onsale{display:flex;align-items:baseline;justify-content:center;gap:8px}
.hmr-track .hmc-old{color:#b9aaa1;font-size:15px;font-weight:700;text-decoration:line-through;direction:ltr}
.hmr-track .hmc-old small{font-size:10px}
.hmr-track .hmc-new{color:#a31d2b;font-size:22px;font-weight:900;direction:ltr}
.hmr-track .hmc-new small{font-size:13px;font-weight:800}
.hmr-track .hmc-sale{position:absolute;top:10px;left:10px;z-index:7;background:#a31d2b;color:#fff;font-weight:900;font-size:12px;border-radius:20px;padding:3px 9px;box-shadow:0 4px 12px rgba(163,29,43,.4)}
.hmr-track .hmc-cash{display:inline-flex;align-items:center;gap:5px;align-self:center;white-space:nowrap;background:#fff5ee;border:1px solid #f3d9c4;color:#b3561a;border-radius:18px;padding:4px 11px;font-size:12px;font-weight:700;margin:8px 0 10px;max-width:100%}
.hmr-track .hmc-actions{display:flex;flex-direction:column;align-items:center;gap:9px}
.hmr-track .hmf-qty{display:inline-flex;align-items:center;width:auto;border:1.5px solid #e6e0d9;border-radius:12px;overflow:hidden;background:#fff}
.hmr-track .hmf-qty button{width:30px;height:30px;flex:0 0 30px;padding:0;border:none;background:#faf6f2;color:#a31d2b;font-size:16px;font-weight:700;line-height:1;cursor:pointer;display:grid;place-items:center}
.hmr-track .hmf-qty button:hover{background:#f0e6de}
.hmr-track .hmf-qty .hmf-q{min-width:30px;text-align:center;font-size:14px;font-weight:800;color:#333}
.hmr-track .hmc-add{width:100%;border:1.5px solid #a31d2b;color:#a31d2b;background:#fff;border-radius:12px;padding:11px 0;font-family:inherit;font-size:14px;font-weight:800;cursor:pointer;transition:background .2s,color .2s}
.hmr-track .hmc-add:hover{background:#a31d2b;color:#fff}
.hmr-track .hmf-madd{display:none}

/* Mix & Match deal badge + info tooltip */
.hmr-track .hmc .dl{position:absolute;top:0;left:0;z-index:6;text-align:center;line-height:1.05;background:linear-gradient(135deg,#a31d2b,#c23040);color:#fff;border-radius:18px 12px 12px 12px;padding:6px 11px;box-shadow:0 5px 14px rgba(163,29,43,.4);overflow:hidden}
.hmr-track .hmc .dl .dl-k{display:block;font-size:8px;font-weight:800;letter-spacing:1.2px;opacity:.9}
.hmr-track .hmc .dl .dl-d{display:block;font-size:13px;font-weight:900;margin-top:1px;white-space:nowrap}
.hmr-track .hmc .dl::after{content:'';position:absolute;top:0;left:-70%;width:45%;height:100%;background:linear-gradient(120deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-20deg);animation:hmsh 3.6s ease-in-out infinite}
@keyframes hmsh{0%{left:-70%}55%,100%{left:140%}}
.hmr-track .hmc .dl-info{position:absolute;top:10px;right:10px;z-index:8}
.hmr-track .hmc .dl-info .dl-i{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:2px solid #fff;background:linear-gradient(135deg,#a31d2b,#c23040);color:#fff;font:italic 900 15px Georgia,serif;cursor:pointer;box-shadow:0 4px 12px rgba(163,29,43,.45)}
.hmr-track .hmc .dl-info .dl-tip{display:none;position:absolute;top:34px;right:0;width:210px;background:#fff;border:1px solid #eee;border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.18);padding:11px 13px;text-align:right;z-index:40}
.hmr-track .hmc .dl-info .dl-tip.show{display:block}
.hmr-track .hmc .dl-info .dl-tip h4{margin:0 0 5px;color:#a31d2b;font-size:13px;font-weight:800}
.hmr-track .hmc .dl-info .dl-tip p{margin:0 0 7px;color:#555;font-size:12px;line-height:1.5;font-weight:400}
.hmr-track .hmc .dl-info .dl-tip a{color:#a31d2b;font-weight:700;text-decoration:none;font-size:12.5px}

@media(max-width:680px){
  .hmr{margin:22px 0}
  .hmr-track .hmc{padding:0 11px 12px}
  .hmr-track .hmc-im{height:128px;padding:12px 0 2px}
  .hmr-track .hmc-im img{height:104px}
  .hmr-track .hmc-ti{font-size:13px;margin:8px 0 0}
  .hmr-track .hmc-sep{margin:7px auto}
  .hmr-track .hmc-tags{margin:0 0 7px}
  .hmr-track .hmc-price,.hmr-track .hmc-new{font-size:19px}
  .hmr-track .hmc-cash{margin:5px 0 8px;font-size:11px;padding:3px 9px}
  .hmr-track .hmc-actions{gap:7px}
}
