/* JC Deals Engine — front end. Black/white jc2 look with one hot accent. */
.jcde-strip,.jcde-pbox,.jcde-card,.jcde-coupon-prompt,.jcde-card-line,.jcde-var-note{--jcde-ink:#111;--jcde-paper:#fff;--jcde-mist:#f5f4f1;--jcde-line:#e3e1dc;--jcde-hot:#e4002b;--jcde-hot-soft:#fdecef;--jcde-mute:#777;}

.jcde-tag,.jcde-ribbon{display:inline-block;background:var(--jcde-hot,#e4002b);color:#fff;font-weight:700;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;line-height:1;padding:5px 8px 5px;transform:skewX(-10deg);}
.jcde-tag{margin-right:6px;}

/* ---------- product cards ---------- */
li.product{position:relative;}
li.product .jcde-ribbon{position:absolute;top:10px;right:10px;z-index:3;pointer-events:none;box-shadow:0 2px 6px rgba(0,0,0,.18);}
.jcde-card-line{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin:6px 0 2px;font-size:12px;line-height:1.35;color:var(--jcde-hot);font-weight:600;}
.jcde-card-line .woocommerce-Price-amount{color:var(--jcde-hot);}
.jcde-card-line.jcde-sold{display:none;}

/* ---------- product page box ---------- */
.jcde-pbox{border:2px solid var(--jcde-ink);border-radius:12px;padding:12px 14px;margin:14px 0 16px;background:var(--jcde-paper);}
.jcde-pbox-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:wrap;}
.jcde-pbox-sub{font-size:12px;color:var(--jcde-mute);}
.jcde-pbox-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px dashed var(--jcde-line);}
.jcde-pbox-row:first-of-type{border-top:0;}
.jcde-pbox-main{flex:1;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;min-width:0;}
.jcde-size{font-weight:700;font-size:14px;color:var(--jcde-ink);}
.jcde-price ins,.jcde-var-price ins{background:none !important;padding:0;}
.jcde-price ins{text-decoration:none;font-weight:800;font-size:18px;color:var(--jcde-hot);}
.jcde-price del{color:var(--jcde-mute);font-size:13px;}
.jcde-left-wrap,.jcde-stock-txt{font-size:12.5px;color:var(--jcde-ink);}
.jcde-left-wrap b,.jcde-stock-txt b{color:var(--jcde-hot);}
.jcde-extra{font-size:12px;color:#186b41;}
.jcde-timer{font-size:12px;color:var(--jcde-ink);}
.jcde-timer b{font-variant-numeric:tabular-nums;color:var(--jcde-hot);}
.jcde-pick{flex:0 0 auto;background:var(--jcde-ink);color:#fff;border:0;border-radius:8px;padding:9px 14px;font-weight:700;font-size:12.5px;cursor:pointer;letter-spacing:.03em;}
.jcde-pick:hover{background:#000;}
.jcde-soldout-msg{display:none;font-weight:700;font-size:12px;color:var(--jcde-mute);text-transform:uppercase;letter-spacing:.06em;}
.jcde-sold .jcde-soldout-msg{display:inline-block;}
.jcde-sold .jcde-pick,.jcde-sold .jcde-grab,.jcde-sold .jcde-timer,.jcde-sold .jcde-extra{display:none;}
.jcde-pbox-row.jcde-sold{opacity:.55;}

/* variation price when the deal size is selected */
.jcde-var-price ins{text-decoration:none;color:var(--jcde-hot);font-weight:800;}
.jcde-var-note{display:block;margin-top:4px;font-size:12.5px;color:var(--jcde-ink);}
.jcde-var-note b{color:var(--jcde-hot);}

/* ---------- [jc_steal_deals] strip ---------- */
.jcde-strip{margin:28px 0;}
.jcde-strip-head{margin-bottom:14px;}
.jcde-strip-title{margin:0;font-size:22px;font-weight:800;text-transform:uppercase;letter-spacing:.02em;color:var(--jcde-ink);}
.jcde-strip-title:after{content:"";display:inline-block;width:28px;height:8px;margin-left:10px;background:var(--jcde-hot);transform:skewX(-20deg);vertical-align:middle;}
.jcde-strip-sub{margin:4px 0 0;font-size:13px;color:var(--jcde-mute);}
.jcde-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;}
@media (max-width:600px){
  .jcde-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;padding-bottom:6px;-webkit-overflow-scrolling:touch;}
  .jcde-grid .jcde-card{flex:0 0 66%;scroll-snap-align:start;}
  .jcde-strip-title{font-size:18px;}
}
.jcde-card{position:relative;display:flex;flex-direction:column;border:1px solid var(--jcde-line);border-radius:12px;overflow:hidden;background:var(--jcde-paper);}
.jcde-card.is-featured{border:2px solid var(--jcde-hot);}
.jcde-card-img{position:relative;display:block;background:#fff;aspect-ratio:1/1;}
.jcde-card-img img{width:100%;height:100%;object-fit:contain;display:block;}
.jcde-card-img .jcde-ribbon{position:absolute;top:10px;left:10px;}
.jcde-off{position:absolute;top:10px;right:10px;background:var(--jcde-ink);color:#fff;font-weight:700;font-size:11px;padding:4px 7px;border-radius:4px;}
.jcde-card-body{display:flex;flex-direction:column;gap:5px;padding:10px 12px 12px;flex:1;}
.jcde-card-title{font-size:13px;font-weight:600;line-height:1.3;color:var(--jcde-ink);text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.jcde-card .jcde-size{font-size:12px;text-transform:uppercase;letter-spacing:.05em;}
.jcde-card .jcde-price ins{font-size:19px;}
.jcde-bar{height:6px;border-radius:3px;background:var(--jcde-mist);overflow:hidden;margin:2px 0 3px;}
.jcde-bar span{display:block;height:100%;background:var(--jcde-hot);border-radius:3px;transition:width .5s ease;}
.jcde-grab{margin-top:auto;display:block;text-align:center;background:var(--jcde-ink);color:#fff !important;text-decoration:none;border-radius:8px;padding:10px 12px;font-weight:700;font-size:13px;letter-spacing:.03em;text-transform:uppercase;}
.jcde-grab:hover{background:var(--jcde-hot);}
.jcde-card.jcde-sold{opacity:.6;}
.jcde-card.jcde-sold .jcde-soldout-msg{margin-top:auto;text-align:center;padding:10px;border:1px dashed var(--jcde-line);border-radius:8px;}
.jcde-dotd .jcde-card{flex-direction:row;max-width:640px;}
.jcde-dotd .jcde-card-img{flex:0 0 44%;}
@media (max-width:600px){.jcde-dotd .jcde-card{flex-direction:column;}}
.jcde-empty{padding:18px;border:1px dashed #ccc;border-radius:10px;text-align:center;color:#777;}

/* ---------- cart / checkout coupon prompt ---------- */
.jcde-coupon-prompt{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin:0 0 16px;padding:12px 14px;border:1px solid var(--jcde-hot);background:var(--jcde-hot-soft);border-radius:10px;font-size:13.5px;color:var(--jcde-ink);}
.jcde-coupon-prompt.is-checkout{margin:12px 0;}
.jcde-cp-text{flex:1;min-width:180px;}
.jcde-cp-btn{background:var(--jcde-hot);color:#fff;border:0;border-radius:8px;padding:9px 14px;font-weight:700;font-size:12.5px;cursor:pointer;letter-spacing:.03em;text-transform:uppercase;}
.jcde-cp-btn[disabled]{opacity:.6;cursor:wait;}

/* homepage strip: match the theme's content width */
.entry-content > .jcde-strip,.entry-content > .jcde-dotd{max-width:1200px;margin-left:auto !important;margin-right:auto !important;padding:0 15px;box-sizing:border-box;}
.jcde-card a,.jcde-card a:hover{text-decoration:none !important;}
.jcde-card-title:hover{color:var(--jcde-hot);}

/* JC Deals Engine — Instagram reviews */
.jcig{--jcig-ink:#111;--jcig-line:#e3e1dc;--jcig-mute:#777;--jcig-hot:#e4002b;margin:28px 0;}
.entry-content > .jcig{max-width:1200px;margin-left:auto !important;margin-right:auto !important;padding:0 15px;box-sizing:border-box;}
.jcig-head{margin-bottom:12px;}
.jcig-title{margin:0;font-size:22px;font-weight:800;text-transform:uppercase;letter-spacing:.02em;color:var(--jcig-ink);}
.jcig-title:after{content:"";display:inline-block;width:28px;height:8px;margin-left:10px;background:var(--jcig-hot);transform:skewX(-20deg);vertical-align:middle;}
.jcig-sub{margin:4px 0 0;font-size:13px;color:var(--jcig-mute);}
.jcig-sub a{color:inherit;text-decoration:underline;}
.jcig-row{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px;-webkit-overflow-scrolling:touch;}
.jcig-card{flex:0 0 240px;margin:0;scroll-snap-align:start;border:1px solid var(--jcig-line);border-radius:12px;overflow:hidden;background:#fff;display:flex;flex-direction:column;}
.jcig-img{display:block;aspect-ratio:1/1;background:#f5f4f1;}
.jcig-img img{width:100%;height:100%;object-fit:cover;display:block;}
.jcig-card figcaption{padding:10px 12px 12px;display:flex;flex-direction:column;gap:8px;flex:1;}
.jcig-text{margin:0;padding:0;border:0;font-size:13px;line-height:1.45;color:var(--jcig-ink);font-style:normal;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;quotes:"\201C" "\201D";}
.jcig-text:before{content:open-quote;}
.jcig-text:after{content:close-quote;}
.jcig-meta{margin-top:auto;display:flex;flex-direction:column;gap:2px;font-size:11.5px;color:var(--jcig-mute);}
.jcig-who{font-weight:700;color:var(--jcig-ink);}
.jcig-src{color:var(--jcig-mute) !important;text-decoration:underline !important;}
@media (max-width:600px){.jcig-card{flex-basis:70%;}.jcig-title{font-size:18px;}}

/* FOMO: red blinking Order Now buttons */
@keyframes jcdeBlink{0%,100%{background:#e10600;box-shadow:0 0 0 0 rgba(225,6,0,.75);}50%{background:#ff2a1f;box-shadow:0 0 0 10px rgba(225,6,0,0);}}
@keyframes jcdeFlash{50%{opacity:.3;}}
.jcde-grab,.jcde-order{background:#e10600 !important;color:#fff !important;animation:jcdeBlink 1s ease-in-out infinite;}
.jcde-grab:hover,.jcde-order:hover{background:#b00000 !important;animation-play-state:paused;}
.jcde-order{flex:0 0 auto;display:inline-block;border-radius:8px;padding:10px 16px;font-weight:800;font-size:13px;letter-spacing:.04em;text-transform:uppercase;text-decoration:none;white-space:nowrap;}
.jcde-sold .jcde-order{display:none;}
.jcde-sold [data-jcde-left]{animation:none;}
[data-jcde-left]{color:#e10600;animation:jcdeFlash 1s steps(1) infinite;}
@media (prefers-reduced-motion:reduce){.jcde-grab,.jcde-order,[data-jcde-left]{animation:none;}}
