/* JR Advanced Product Cards & Quick View */

/* ---------- card shell ---------- */
.jr-apc-card{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;min-width:0;height:100%;padding:14px!important;
  background:var(--jr-bg,#fff)!important;border:1px solid var(--jr-border,#e5e7eb)!important;border-radius:var(--jr-radius,12px)!important;overflow:hidden;
  transition:box-shadow .2s ease,transform .2s ease;position:relative}
.jr-apc-card:hover{box-shadow:0 10px 28px rgba(16,24,40,.09)}
.jr-apc-hide{display:none!important}
.jr-apc-path{display:flex!important;align-items:center;justify-content:center;position:static!important;width:100%!important;height:100%!important;
  margin:0!important;padding:0!important;transform:none!important;float:none!important;border:0!important;background:none!important;box-shadow:none!important;overflow:hidden}
.jr-apc-path::before,.jr-apc-path::after{display:none!important}
.jr-apc-media{height:var(--jr-img-h,170px)!important;min-height:var(--jr-img-h,170px)!important;flex:0 0 auto;width:100%!important}
img.jr-apc-path{width:auto!important;max-width:100%!important;height:auto!important;max-height:100%!important;object-fit:contain;display:block!important}

.jr-apc-details{display:flex;flex-direction:column;gap:8px;flex:1;min-width:0;padding-top:12px;font-size:13px;line-height:1.4;animation:jr-fade .35s ease both}
@keyframes jr-fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.jr-apc-cat{display:flex;align-items:center;gap:8px;font-size:11.5px;color:#6b7280}
.jr-apc-cat i{display:inline-block;width:16px;height:1px;background:#9ca3af}
.jr-apc-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(var(--jr-title,14px)*2.7);
  font-size:var(--jr-title,14px)!important;font-weight:600;line-height:1.35;color:#111827!important;text-decoration:none!important}
.jr-apc-title:hover{text-decoration:underline!important}
.jr-apc-stock{font-size:12.5px;font-weight:500;min-height:17px}
.jr-apc-in{color:var(--jr-stock,#16803d)}.jr-apc-out{color:var(--jr-out,#b42318)}.jr-apc-low{color:#b45309}

/* ---------- qty ---------- */
.jr-apc-qty{display:flex;align-items:stretch;width:100%;height:36px;border:1px solid #d1d5db;border-radius:8px;overflow:hidden;background:#fff}
.jr-apc-qty button{flex:0 0 38px;width:38px;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#f3f4f6!important;
  color:#111827!important;font-size:18px;line-height:1;cursor:pointer;box-shadow:none!important;transition:background .15s}
.jr-apc-qty button:hover:not(:disabled){background:#e5e7eb!important}
.jr-apc-qty button:disabled{opacity:.4;cursor:not-allowed}
.jr-apc-qty input{flex:1;min-width:0;width:auto!important;height:auto!important;margin:0!important;padding:0 4px!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;background:#fff!important;text-align:center;font-size:14px;font-weight:600;color:#111827;-moz-appearance:textfield;appearance:textfield}
.jr-apc-qty input::-webkit-outer-spin-button,.jr-apc-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* ---------- size / pack ---------- */
.jr-apc-lbl{display:block;margin-bottom:3px;font-size:11.5px;color:#4b5563}
.jr-apc-packwrap{display:block;margin:0}
.jr-apc-pack{display:block;width:100%!important;max-width:100%;height:38px!important;margin:0!important;padding:0 30px 0 10px!important;border:1px solid #d1d5db!important;border-radius:8px!important;
  background-color:#fff!important;color:#111827!important;font-size:13.5px!important;box-shadow:none!important;cursor:pointer}
.jr-apc-pack:focus,.jr-apc-amt input:focus,.jr-apc-qty input:focus{outline:2px solid var(--jr-btn-bg,#0b3d24);outline-offset:1px}
.jr-apc-custom[hidden]{display:none!important}
.jr-apc-amt{display:flex;align-items:center;border:1px solid #d1d5db;border-radius:8px;background:#fff;overflow:hidden}
.jr-apc-amt input{flex:1;min-width:0;width:auto!important;height:36px!important;margin:0!important;padding:0 10px!important;border:0!important;box-shadow:none!important;font-size:14px;background:transparent!important}
.jr-apc-amt em{padding:0 12px;font-style:normal;font-size:12.5px;color:#4b5563;background:#f3f4f6;align-self:stretch;display:flex;align-items:center}

/* ---------- price ---------- */
.jr-apc-price{margin-top:auto;padding-top:2px;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;font-size:var(--jr-price,17px);font-weight:700;color:#111827;line-height:1.3}
.jr-apc-price .jr-apc-per{font-size:12px;font-weight:500;color:#6b7280}
.jr-apc-mrp{font-size:.72em;font-weight:400;color:#6b7280}
.jr-apc-off{font-size:.68em;font-weight:700;color:#15803d;background:#ecfdf3;border-radius:4px;padding:1px 6px}

/* ---------- buttons ---------- */
.jr-apc-actions{display:flex;gap:8px}
.jr-apc-buy,.jr-apc-add{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:1;min-height:40px;margin:0!important;padding:8px 14px!important;
  border:0!important;border-radius:var(--jr-btn-radius,8px)!important;background:var(--jr-btn-bg,#0b3d24)!important;color:var(--jr-btn-color,#fff)!important;
  font-size:13.5px!important;font-weight:700!important;line-height:1.2;text-decoration:none!important;cursor:pointer;box-shadow:none!important;transition:filter .15s,transform .1s}
.jr-apc-buy:hover:not(:disabled){filter:brightness(1.18)}.jr-apc-buy:active:not(:disabled){transform:scale(.98)}
.jr-apc-buy svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.jr-apc-buy:disabled,.jr-apc-add:disabled{opacity:.45;cursor:not-allowed}
.jr-apc-buy.is-busy,.jr-apc-add.is-busy{opacity:.7;cursor:progress}
.jr-apc-add{background:#fff!important;color:var(--jr-btn-bg,#0b3d24)!important;border:1.5px solid var(--jr-btn-bg,#0b3d24)!important}
.jr-apc-eye{flex:0 0 42px;display:flex;align-items:center;justify-content:center;width:42px;min-height:40px;margin:0!important;padding:0!important;border:1px solid #d1d5db!important;
  border-radius:var(--jr-btn-radius,8px)!important;background:#fff!important;color:#111827!important;cursor:pointer;box-shadow:none!important;transition:background .15s,border-color .15s}
.jr-apc-eye:hover{background:#f3f4f6!important;border-color:#9ca3af!important}
.jr-apc-eye svg{width:var(--jr-eye,18px);height:var(--jr-eye,18px);fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.jr-apc-msg{font-size:12px;line-height:1.4;min-height:0}.jr-apc-msg:empty{display:none}
.jr-apc-msg.err{color:#b42318}.jr-apc-msg.ok{color:#15803d}.jr-apc-msg a{color:inherit;font-weight:700;text-decoration:underline}

/* ---------- popup ---------- */
html.jr-apc-lock{overflow:hidden!important}
.jr-apc-overlay{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:18px;
  background:rgba(15,23,42,.55);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);opacity:0;transition:opacity var(--jr-anim,260ms) ease}
.jr-apc-overlay.is-visible{display:flex}.jr-apc-overlay.is-open{opacity:1}
.jr-apc-dialog{position:relative;box-sizing:border-box;width:min(var(--jr-pop-w,980px),100%);max-height:var(--jr-pop-h,90vh);overflow:auto;overscroll-behavior:contain;
  background:#fff;color:#111827;border-radius:16px;box-shadow:0 30px 80px rgba(0,0,0,.35);padding:26px;outline:0;
  transform:translateY(22px) scale(.97);opacity:0;transition:transform var(--jr-anim,260ms) cubic-bezier(.2,.8,.2,1),opacity var(--jr-anim,260ms) ease}
.jr-apc-overlay.is-open .jr-apc-dialog{transform:none;opacity:1}
.jr-apc-close{position:sticky;top:0;float:right;z-index:5;display:flex;align-items:center;justify-content:center;width:38px;height:38px;margin:-8px -8px 0 0;padding:0!important;
  border:0!important;border-radius:50%;background:#f3f4f6!important;color:#111827!important;cursor:pointer;transition:background .15s,transform .2s}
.jr-apc-close:hover{background:#e5e7eb!important;transform:rotate(90deg)}
.jr-apc-close svg,.jr-apc-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.jr-apc-dbody{animation:none}.jr-apc-dbody.is-ready .jr-apc-q{animation:jr-fade .3s ease both}

.jr-apc-q{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:30px;clear:both}
.jr-apc-q-gal{min-width:0}
.jr-apc-q-main{position:relative;display:flex;align-items:center;justify-content:center;height:min(48vh,440px);background:#f9fafb;border-radius:12px;overflow:hidden}
.jr-apc-q-main img{max-width:100%;max-height:100%;object-fit:contain;transition:opacity .22s ease}
.jr-apc-q-main img.is-swap{opacity:0}
.jr-apc-nav{position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0!important;
  border:0!important;border-radius:50%;background:rgba(255,255,255,.92)!important;color:#111827!important;box-shadow:0 2px 8px rgba(0,0,0,.18);cursor:pointer;opacity:0;transition:opacity .2s}
.jr-apc-q-main:hover .jr-apc-nav,.jr-apc-nav:focus-visible{opacity:1}.jr-apc-nav.prev{left:10px}.jr-apc-nav.next{right:10px}
.jr-apc-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.jr-apc-thumb{width:62px;height:62px;padding:3px!important;border:2px solid #e5e7eb!important;border-radius:8px;background:#fff!important;cursor:pointer;transition:border-color .15s}
.jr-apc-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.jr-apc-thumb.is-active,.jr-apc-thumb:hover{border-color:var(--jr-btn-bg,#0b3d24)!important}

.jr-apc-q-info{display:flex;flex-direction:column;gap:10px;min-width:0}
.jr-apc-q-title{margin:0!important;font-size:24px!important;line-height:1.25!important;color:#111827}
.jr-apc-sku{font-size:12px;color:#6b7280}
.jr-apc-q-price{font-size:26px;margin-top:2px}
.jr-apc-q-save{font-size:13px;color:#4b5563}.jr-apc-q-save:empty{display:none}.jr-apc-q-save strong{color:#15803d}
.jr-apc-tax{display:flex;flex-direction:column;gap:5px;padding:12px 14px;background:#f8faf9;border:1px solid #e3ebe6;border-radius:10px;font-size:13px}
.jr-apc-tax div{display:flex;justify-content:space-between;gap:10px}
.jr-apc-tax .tot{padding-top:6px;margin-top:2px;border-top:1px dashed #cbd5d0;font-size:14px}
.jr-apc-tax .qt{color:#374151}
.jr-apc-tax small{margin-top:3px;font-size:11px;color:#6b7280;line-height:1.4}
.jr-apc-short{font-size:13.5px;color:#374151}.jr-apc-short p{margin:0 0 6px}
.jr-apc-chiprow{display:flex;flex-wrap:wrap;gap:8px}
.jr-apc-chip{padding:7px 14px!important;border:1.5px solid #d1d5db!important;border-radius:999px!important;background:#fff!important;color:#111827!important;font-size:13px!important;cursor:pointer;
  box-shadow:none!important;transition:border-color .15s,background .15s,color .15s}
.jr-apc-chip:hover:not(:disabled){border-color:var(--jr-btn-bg,#0b3d24)!important}
.jr-apc-chip.is-active{background:var(--jr-btn-bg,#0b3d24)!important;border-color:var(--jr-btn-bg,#0b3d24)!important;color:var(--jr-btn-color,#fff)!important}
.jr-apc-chip:disabled{opacity:.4;text-decoration:line-through;cursor:not-allowed}
.jr-apc-q-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch;margin-top:4px}
.jr-apc-q-actions .jr-apc-qty{width:132px;height:42px}
.jr-apc-q-actions .jr-apc-buy,.jr-apc-q-actions .jr-apc-add{min-height:42px;flex:1 1 130px}
.jr-apc-sec{border-top:1px solid #e5e7eb;padding-top:10px;margin-top:4px}
.jr-apc-sec summary{cursor:pointer;font-weight:700;font-size:14px;list-style:none;display:flex;justify-content:space-between}
.jr-apc-sec summary::-webkit-details-marker{display:none}
.jr-apc-sec summary::after{content:"+";font-size:18px;line-height:1;transition:transform .2s}
.jr-apc-sec[open] summary::after{content:"–"}
.jr-apc-desc{max-height:230px;overflow:auto;margin-top:8px;font-size:13.5px;line-height:1.6;color:#374151}
.jr-apc-desc p{margin:0 0 8px}.jr-apc-desc img{max-width:100%;height:auto}
.jr-apc-attrs{width:100%;margin-top:8px;border-collapse:collapse;font-size:13px}
.jr-apc-attrs th,.jr-apc-attrs td{padding:6px 4px;border-bottom:1px solid #f0f1f3;text-align:left;background:none!important}
.jr-apc-attrs th{width:38%;font-weight:600;color:#4b5563}
.jr-apc-full{font-size:13px;font-weight:600;color:var(--jr-btn-bg,#0b3d24);text-decoration:none}.jr-apc-full:hover{text-decoration:underline}
.jr-apc-q-err{padding:60px 20px;text-align:center;color:#b42318}

/* skeleton */
.jr-apc-skel .sk{border-radius:8px;background:linear-gradient(90deg,#eef0f2 25%,#f8f9fa 37%,#eef0f2 63%);background-size:400% 100%;animation:jr-shimmer 1.3s ease infinite}
.sk-img{height:min(48vh,440px)}.sk-l1{height:28px;width:80%}.sk-l2{height:16px;width:55%}.sk-l3{height:34px;width:40%}.sk-box{height:110px}
@keyframes jr-shimmer{0%{background-position:100% 50%}100%{background-position:0 50%}}

/* ---------- mobile: bottom sheet ---------- */
@media (max-width:700px){
  .jr-apc-overlay{align-items:flex-end;padding:0}
  .jr-apc-dialog{width:100%;max-height:92vh;border-radius:18px 18px 0 0;padding:18px 16px 22px;transform:translateY(60px)}
  .jr-apc-q{grid-template-columns:1fr;gap:16px}
  .jr-apc-q-main{height:min(40vh,300px)}
  .jr-apc-q-title{font-size:20px!important}.jr-apc-q-price{font-size:22px}
  .jr-apc-nav{opacity:1}
  .jr-apc-card{padding:10px!important}
}
@media (prefers-reduced-motion:reduce){
  .jr-apc-overlay,.jr-apc-dialog,.jr-apc-details,.jr-apc-q,.jr-apc-q-main img{transition:none!important;animation:none!important}
}

/* ---------- grid: cards per row ---------- */
.jr-apc-grid{display:grid!important;grid-template-columns:repeat(var(--jr-cols,4),minmax(0,1fr))!important;gap:18px!important;float:none!important;width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}
.jr-apc-grid::before,.jr-apc-grid::after{display:none!important}
.jr-apc-grid>.jr-apc-gitem{float:none!important;width:auto!important;max-width:none!important;min-width:0;margin:0!important;clear:none!important}
.jr-apc-grid>.jr-apc-gitem.jr-apc-hide{display:none!important}
@media (max-width:1024px){.jr-apc-grid{grid-template-columns:repeat(var(--jr-cols-t,3),minmax(0,1fr))!important}}
@media (max-width:640px){.jr-apc-grid{grid-template-columns:repeat(var(--jr-cols-m,2),minmax(0,1fr))!important;gap:10px!important}}

/* ---------- home page / slider / Elementor safety ---------- */
.jr-apc-card{height:auto;min-height:100%;max-width:100%;visibility:visible!important;opacity:1!important}
.jr-apc-card .jr-apc-details{display:flex!important;visibility:visible!important;opacity:1!important}
.jr-apc-card .jr-apc-qty,.jr-apc-card .jr-apc-actions,.jr-apc-card .jr-apc-packwrap{display:flex!important;visibility:visible!important}
.jr-apc-card .jr-apc-packwrap{display:block!important}
.jr-apc-card .jr-apc-qty[style*="display: none"]{display:none!important}
.swiper-slide:has(>.jr-apc-card),.swiper-slide:has(.jr-apc-card){height:auto!important}
.swiper-wrapper:has(.jr-apc-card){align-items:stretch}
.jr-apc-card a.jr-apc-title{position:static!important;inset:auto!important}

/* ---------- HOME PAGE (desktop/tablet): fluid grid, 6 cards per line, always fits the screen ---------- */
:root{--jr-home-cols:6}
@media (max-width:1280px){:root{--jr-home-cols:5}}
@media (max-width:1024px){:root{--jr-home-cols:4}}
@media (max-width:820px){:root{--jr-home-cols:3}}
@media (min-width:641px){
  /* sliders become a fluid grid: nothing is cut off at any window size */
  body.home .slick-list,.elementor-55091 .slick-list{overflow:visible!important;height:auto!important;padding:0!important;margin:0!important}
  body.home .slick-track,.elementor-55091 .slick-track{display:grid!important;grid-template-columns:repeat(var(--jr-home-cols,6),minmax(0,1fr))!important;gap:12px!important;
    width:100%!important;max-width:100%!important;transform:none!important;left:0!important;margin:0!important;float:none!important}
  body.home .slick-track::before,body.home .slick-track::after,.elementor-55091 .slick-track::before,.elementor-55091 .slick-track::after{display:none!important}
  body.home .slick-track .slick-slide,.elementor-55091 .slick-track .slick-slide{width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;float:none!important;height:auto!important}
  body.home .slick-cloned,.elementor-55091 .slick-cloned{display:none!important}
  body.home .slick-arrow,body.home .slick-dots,.elementor-55091 .slick-arrow,.elementor-55091 .slick-dots{display:none!important}
  /* every card fills its grid cell (no fixed pixel width) */
  body.home .ht-product.jr-apc-card,
  body.home .woocommerce div.product.mb-30.jr-apc-card,
  .elementor-55091 .elementor-element.elementor-element-db45879 .woocommerce div.product.mb-30.jr-apc-card,
  .elementor-55091 .woocommerce div.product.mb-30.jr-apc-card{
    width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;box-sizing:border-box!important;flex:none!important}
  body.home .slick-slide.jr-apc-card,.elementor-55091 .slick-slide.jr-apc-card{float:none!important;height:auto!important;display:flex!important;flex-direction:column!important}
  /* non-slider lists on home */
  body.home .jr-apc-grid:not(.slick-track){display:grid!important;grid-template-columns:repeat(var(--jr-home-cols,6),minmax(0,1fr))!important;gap:12px!important}
  body.home .jr-apc-grid:not(.slick-track)>.jr-apc-gitem{float:none!important;flex:none!important;width:auto!important;max-width:none!important;min-width:0!important;margin:0!important}
  /* Woolentor 6-column widget: same fluid grid instead of percentage widths that overflow */
  html body .woolentorducts-columns-6 ul.products{display:grid!important;grid-template-columns:repeat(var(--jr-home-cols,6),minmax(0,1fr))!important;gap:12px!important;width:100%!important;margin:0!important;padding:0!important}
  html body .woolentorducts-columns-6 ul.products::before,html body .woolentorducts-columns-6 ul.products::after{display:none!important}
  html body .woolentorducts-columns-6 ul.products li.product,
  html body .woolentorducts-columns-6 ul.products li.product.jr-apc-card{width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;float:none!important;clear:none!important;box-sizing:border-box!important}
  /* compact card content so 6 per line stays tidy */
  body.home .jr-apc-card{padding:10px!important}
  body.home .jr-apc-card .jr-apc-price{gap:2px 6px;font-size:15px}
  body.home .jr-apc-card .jr-apc-actions{gap:6px}
}
@media (min-width:641px) and (max-width:1280px){
  body.home .jr-apc-media{height:150px!important;min-height:150px!important}
}


/* ---------- hover image: show gallery image if it exists, never a blank ---------- */
.jr-apc-card .jr-apc-media{position:relative!important}
/* neutralise theme hover effects that fade/hide the main image */
.jr-apc-card .jr-apc-path,.jr-apc-card:hover .jr-apc-path,.jr-apc-card .jr-apc-media:hover .jr-apc-path{opacity:1!important;visibility:visible!important;transform:none!important;filter:none!important}
.jr-apc-card img.jr-apc-path{opacity:1!important;visibility:visible!important;transition:none!important}
.jr-apc-hoverimg{position:absolute!important;top:0;left:0;right:0;bottom:0;margin:auto!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain;background:var(--jr-bg,#fff);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s ease,visibility .3s ease;z-index:2}
@media (hover:hover){
  .jr-apc-card .jr-apc-media.jr-apc-has-hover:hover .jr-apc-hoverimg{opacity:1;visibility:visible}
}


/* ---------- card: MRP / savings line + wholesale button ---------- */
.jr-apc-card .jr-apc-savings{flex:0 0 100%;font-size:12px;font-weight:600;color:#15803d;line-height:1.3}
.jr-apc-card .jr-apc-savings b{font-weight:800}
.jr-apc-card .jr-apc-mrp,.jr-apc-card del.jr-apc-mrp{text-decoration:line-through!important;text-decoration-color:#dc2626!important;color:#dc2626!important;font-weight:500!important}
.jr-apc-save del{color:#dc2626;text-decoration:line-through}
.jr-apc-wholesale{display:flex;align-items:center;justify-content:center;width:100%;box-sizing:border-box;min-height:36px;margin:0!important;padding:7px 12px!important;
  border:1.5px solid var(--jr-btn-bg,#0b3d24)!important;border-radius:var(--jr-btn-radius,8px)!important;background:#fff!important;color:var(--jr-btn-bg,#0b3d24)!important;
  font-size:13px!important;font-weight:700!important;line-height:1.2;text-decoration:none!important;cursor:pointer;transition:background .15s,color .15s}
.jr-apc-wholesale:hover{background:var(--jr-btn-bg,#0b3d24)!important;color:var(--jr-btn-color,#fff)!important}

/* ---------- HOME PAGE, MOBILE: 2 cards per row ---------- */
@media (max-width:640px){
  body.home .ht-product.jr-apc-card,
  body.home .woocommerce div.product.mb-30.jr-apc-card,
  .elementor-55091 .woocommerce div.product.mb-30.jr-apc-card{min-width:0!important;max-width:none!important;margin:0 8px 0 0!important}
  /* sliders: two cards visible at once */
  body.home .slick-slide.jr-apc-card,.elementor-55091 .slick-slide.jr-apc-card{width:calc((100vw - 40px) / 2 - 8px)!important;flex:0 0 calc((100vw - 40px) / 2 - 8px)!important}
  /* plain lists: 2-column wrap */
  body.home .jr-apc-grid:not(.slick-track){gap:8px!important}
  body.home .jr-apc-grid:not(.slick-track)>.jr-apc-gitem,
  body.home .jr-apc-grid:not(.slick-track)>.jr-apc-gitem.jr-apc-card{flex:0 0 calc(50% - 4px)!important;width:calc(50% - 4px)!important;max-width:none!important;margin:0!important}
  body.home .jr-apc-card{padding:10px!important}
  body.home .jr-apc-media{height:130px!important;min-height:130px!important}
  body.home .jr-apc-card .jr-apc-actions{gap:6px}
  body.home .jr-apc-wholesale{min-height:34px;font-size:12.5px!important}
}


/* ---------- HOME PAGE, MOBILE: always 2 cards per row, then the next line (sliders become a grid) ---------- */
@media (max-width:640px){
  body.home .slick-list,.elementor-55091 .slick-list{overflow:visible!important;height:auto!important;padding:0!important}
  body.home .slick-track,.elementor-55091 .slick-track{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
    width:100%!important;max-width:100%!important;transform:none!important;left:0!important;margin:0!important}
  body.home .slick-track .slick-slide,.elementor-55091 .slick-track .slick-slide{width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;float:none!important;height:auto!important}
  body.home .slick-track .slick-slide.jr-apc-card,.elementor-55091 .slick-track .slick-slide.jr-apc-card{width:auto!important;flex:none!important;margin:0!important}
  body.home .slick-cloned,.elementor-55091 .slick-cloned{display:none!important}
  body.home .slick-arrow,body.home .slick-dots,.elementor-55091 .slick-arrow,.elementor-55091 .slick-dots{display:none!important}
  body.home .ht-product.jr-apc-card,body.home .woocommerce div.product.mb-30.jr-apc-card,.elementor-55091 .woocommerce div.product.mb-30.jr-apc-card{width:auto!important;margin:0!important}
}


/* ---------- MRP label (red) ---------- */
.jr-apc-card .jr-apc-mrpw{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap;font-size:.72em;color:#dc2626}
.jr-apc-card .jr-apc-mrpl{color:#dc2626;font-weight:600;text-decoration:none!important}
.jr-apc-card .jr-apc-mrpw .jr-apc-mrp{font-size:1em!important}

/* ---------- MOBILE HOME PAGE: STRICTLY 2 CARDS PER LINE, then next line ---------- */
@media (max-width:640px){
  body.home .jr-apc-m2{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
    width:100%!important;max-width:100%!important;transform:none!important;left:0!important;right:auto!important;margin:0!important;padding:0!important;float:none!important;height:auto!important}
  body.home .jr-apc-m2>*{width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;float:none!important;flex:none!important;height:auto!important;clear:none!important}
  body.home .jr-apc-m2>.slick-cloned,body.home .jr-apc-m2>.cloned,body.home .jr-apc-m2>.swiper-slide-duplicate{display:none!important}
  body.home .jr-apc-m2::before,body.home .jr-apc-m2::after{display:none!important}
  body.home .jr-apc-m2p{overflow:visible!important;height:auto!important;max-height:none!important;padding-left:0!important;padding-right:0!important}
  body.home .jr-apc-m2 .jr-apc-card,body.home .jr-apc-m2>.jr-apc-card{width:auto!important;max-width:none!important;margin:0!important;box-sizing:border-box}
  body.home .jr-apc-m2p .slick-arrow,body.home .jr-apc-m2p .slick-dots,body.home .jr-apc-m2p .swiper-button-next,body.home .jr-apc-m2p .swiper-button-prev,
  body.home .jr-apc-m2p .swiper-pagination,body.home .jr-apc-m2p .owl-nav,body.home .jr-apc-m2p .owl-dots{display:none!important}
  body.home .jr-apc-card .jr-apc-price{gap:2px 6px;font-size:15px}
  body.home .jr-apc-card .jr-apc-off{font-size:.66em}
}


/* ---------- "You Save ₹X (N%)" box under Select Size/Pack ---------- */
.jr-apc-card .jr-apc-savebox{margin:2px 0 0;font-size:12.5px;font-weight:600;color:#15803d;line-height:1.3}
.jr-apc-card .jr-apc-savebox:empty{display:none}
.jr-apc-card .jr-apc-savebox strong{font-weight:800;color:#15803d}

/* ---------- You Save line: same look/colour as the product page (.wc-gqp-savings) ---------- */
.jr-apc-card .jr-apc-savebox{margin:2px 0 0;line-height:1.3}
.jr-apc-card .jr-apc-savebox .wc-gqp-savings{margin:0!important;font-size:13px!important;font-weight:500!important;color:#318616!important}
.jr-apc-card .jr-apc-savebox .wc-gqp-savings strong{font-weight:700!important;color:#318616!important}
