/* ============================================================
   JigjigaSale — single product (v2), modern Jumia-style layout
   ============================================================ */
body.jjs-product{margin:0;background:var(--jjs-canvas);color:var(--jjs-ink);font-family:var(--jjs-font);-webkit-font-smoothing:antialiased}
.jjs-shop__main{max-width:1280px;margin:0 auto;padding:16px 14px 96px}

/* ---------- layout: gallery | info | buybox ---------- */
.jjs-pdp{display:grid;grid-template-columns:1fr;gap:16px}
@media (min-width:760px){
  .jjs-pdp{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}
  .jjs-pdp__buybox{grid-column:1 / -1}
}
@media (min-width:1040px){
  .jjs-pdp{grid-template-columns:minmax(0,5fr) minmax(0,4fr) minmax(0,3.3fr);gap:20px;align-items:start}
  .jjs-pdp__buybox{grid-column:auto}
}

/* ---------- gallery ---------- */
@media (min-width:1040px){ .jjs-pdp__gallery{position:sticky;top:104px} }
.jjs-pdp__main{position:relative;background:#fff;border:1px solid var(--jjs-slate-200);border-radius:var(--jjs-r-lg);overflow:hidden;aspect-ratio:1/1}
.jjs-pdp__main img{width:100%;height:100%;object-fit:cover;display:block}
.jjs-pdp__badge{position:absolute;top:12px;left:12px;z-index:3;background:var(--jjs-gold);color:#2a1a02;font-weight:800;font-size:12px;padding:4px 10px;border-radius:8px}
.jjs-pdp__thumbs{display:flex;gap:8px;margin-top:10px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.jjs-pdp__thumbs::-webkit-scrollbar{display:none}
.jjs-pdp__thumb{flex:0 0 62px;height:62px;border:2px solid var(--jjs-slate-200);border-radius:10px;overflow:hidden;background:#fff;cursor:pointer;padding:0}
.jjs-pdp__thumb.is-active{border-color:var(--jjs-blue-500)}
.jjs-pdp__thumb img{width:100%;height:100%;object-fit:cover;display:block}

/* ---------- info ---------- */
.jjs-pdp__info{min-width:0}
.jjs-pdp__title{font-size:22px;font-weight:800;letter-spacing:-.02em;color:var(--jjs-ink)!important;margin:0 0 10px;line-height:1.28}
.jjs-pdp__meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px}
.jjs-pdp__stars{position:relative;display:inline-block;width:84px;height:16px;line-height:16px;font-size:15px}
.jjs-pdp__stars::before{content:"★★★★★";letter-spacing:2px;color:var(--jjs-slate-300)}
.jjs-pdp__stars span{position:absolute;left:0;top:0;height:100%;overflow:hidden;white-space:nowrap}
.jjs-pdp__stars span::before{content:"★★★★★";letter-spacing:2px;color:var(--jjs-gold)}
.jjs-pdp__rcount{font-size:12.5px;color:var(--jjs-slate-500)!important}
.jjs-pdp__instock{font-size:12px;font-weight:700;color:var(--jjs-green)!important}
.jjs-pdp__price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:0 0 14px}
.jjs-pdp__now,.jjs-pdp__now .amount{font-size:28px;font-weight:800;color:var(--jjs-ink)!important;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.jjs-pdp__was,.jjs-pdp__was .amount{font-size:16px;color:var(--jjs-slate-400)!important;text-decoration:line-through;font-weight:600}
.jjs-pdp__off{font-size:12px;font-weight:800;color:var(--jjs-gold-600)!important;background:rgba(245,165,36,.16);padding:2px 8px;border-radius:6px}
.jjs-pdp__short,.jjs-pdp__short *{color:var(--jjs-slate-600)!important;font-size:14px;line-height:1.6}
.jjs-pdp__short{margin:0 0 14px}
.jjs-pdp__catline{font-size:12.5px;color:var(--jjs-slate-600)!important;margin:0 0 14px}
.jjs-pdp__catline span{color:var(--jjs-slate-500)!important}
.jjs-pdp__catline a{color:var(--jjs-blue-500)!important}

/* ---------- buy box ---------- */
.jjs-pdp__buybox{background:#fff;border:1px solid var(--jjs-slate-200);border-radius:var(--jjs-r-lg);padding:18px}
@media (min-width:1040px){ .jjs-pdp__buybox{position:sticky;top:104px} }
.jjs-pdp__totalcard{background:var(--jjs-slate-100);border-radius:var(--jjs-r);padding:14px;margin:0 0 16px}
.jjs-pdp__trow{display:flex;justify-content:space-between;align-items:center;font-size:13.5px;color:var(--jjs-slate-600)!important;padding:5px 0}
.jjs-pdp__trow b,.jjs-pdp__trow b .amount{color:var(--jjs-ink)!important;font-weight:700;font-variant-numeric:tabular-nums}
.jjs-pdp__trow--total{border-top:1px dashed var(--jjs-slate-300);margin-top:6px;padding-top:11px;font-size:15px}
.jjs-pdp__trow--total b,.jjs-pdp__trow--total b .amount{font-size:21px;font-weight:800!important}

/* cart form: modern quantity stepper (navy round − +) + gold add-to-cart */
.jjs-pdp__cart form.cart{display:flex;flex-direction:column;gap:14px;margin:0;align-items:stretch}
.jjs-pdp__cart .quantity{display:inline-flex;align-items:center;gap:14px;align-self:center;border:0;background:transparent;width:auto;max-width:none;margin:0}
.jjs-pdp__cart .quantity .jjs-step{width:42px;height:42px;flex:0 0 auto;max-width:none;border:0;border-radius:50%;
  background:var(--jjs-navy-900);color:#fff;font-size:22px;font-weight:700;line-height:1;cursor:pointer;display:grid;place-items:center;
  transition:background .12s,transform .1s;padding:0}
.jjs-pdp__cart .quantity .jjs-step:hover{background:var(--jjs-navy-700)}
.jjs-pdp__cart .quantity .jjs-step:active{transform:scale(.92)}
.jjs-pdp__cart .quantity input.qty{width:52px;flex:0 0 auto;border:0!important;text-align:center;font-size:19px;font-weight:800;
  background:transparent!important;color:var(--jjs-ink)!important;-moz-appearance:textfield;padding:0}
.jjs-pdp__cart .quantity input.qty::-webkit-outer-spin-button,.jjs-pdp__cart .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.jjs-pdp__cart .single_add_to_cart_button{background:linear-gradient(180deg,var(--jjs-gold),var(--jjs-gold-600))!important;color:#2a1a02!important;
  border:0!important;border-radius:var(--jjs-r)!important;padding:16px!important;font-size:16px!important;font-weight:800!important;width:100%!important;
  box-shadow:0 12px 26px -8px rgba(245,165,36,.6)!important;cursor:pointer;text-transform:none!important;letter-spacing:0!important;float:none!important;
  display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:8px}
.jjs-pdp__cart .single_add_to_cart_button:hover{box-shadow:0 16px 32px -8px rgba(245,165,36,.78)!important}
/* the real form button stays below the vendor card for submission but is hidden;
   the visible "Add to cart" is relocated to the buy box as .jjs-pdp__buyadd */
.jjs-pdp__cart .single_add_to_cart_button{display:none!important}
.jjs-pdp__buyadd{display:flex;align-items:center;justify-content:center;width:100%;margin:14px 0 0;padding:16px;border:0;border-radius:var(--jjs-r);
  background:linear-gradient(180deg,var(--jjs-gold),var(--jjs-gold-600));color:#2a1a02;font-size:16px;font-weight:800;line-height:1;cursor:pointer;text-align:center;
  box-shadow:0 12px 26px -8px rgba(245,165,36,.6);transition:box-shadow .15s,opacity .15s}
.jjs-pdp__buyadd:hover{box-shadow:0 16px 32px -8px rgba(245,165,36,.78)}
.jjs-pdp__buyadd[disabled]{opacity:.5;cursor:not-allowed;box-shadow:none}
/* quantity stepper relocated into the buy box, beside the add-to-cart button */
.jjs-pdp__cart .quantity{display:none!important}
.jjs-pdp__buyqty{display:flex;align-items:center;justify-content:center;gap:16px;margin:16px 0 0}
.jjs-pdp__buyqty .jjs-step{width:44px;height:44px;flex:0 0 auto;border:0;border-radius:50%;background:var(--jjs-navy-900);color:#fff;
  font-size:22px;font-weight:700;line-height:1;cursor:pointer;display:grid;place-items:center;transition:background .12s,transform .1s;padding:0}
.jjs-pdp__buyqty .jjs-step:hover{background:var(--jjs-navy-700)}
.jjs-pdp__buyqty .jjs-step:active{transform:scale(.92)}
.jjs-pdp__buyqty .jjs-pdp__bqval{width:56px;border:0;background:transparent;text-align:center;font-size:20px;font-weight:800;color:var(--jjs-ink);-moz-appearance:textfield;padding:0}
.jjs-pdp__buyqty .jjs-pdp__bqval::-webkit-outer-spin-button,.jjs-pdp__buyqty .jjs-pdp__bqval::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* clean vendor card */
.jjs-pdp__vendor{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--jjs-slate-100);border:1px solid var(--jjs-slate-200);border-radius:var(--jjs-r);padding:12px 14px;margin:14px 0 0}
.jjs-pdp__vlogo{width:46px;height:46px;border-radius:50%;background:#fff;background-size:cover;background-position:center;border:2px solid var(--jjs-blue-500);flex:0 0 auto;display:grid;place-items:center;font-size:18px}
.jjs-pdp__vinfo{display:flex;flex-direction:column;gap:3px;min-width:0}
.jjs-pdp__vname{font-size:13.5px;color:var(--jjs-slate-600)}
.jjs-pdp__vname b{color:var(--jjs-ink);font-weight:800}
.jjs-verified{font-size:11px;background:var(--jjs-green);color:#fff;padding:2px 8px;border-radius:999px;font-weight:700}
.jjs-pdp__vstore{margin-left:auto;background:var(--jjs-blue-500);color:#fff!important;padding:9px 14px;border-radius:9px;font-weight:700;text-decoration:none;font-size:12.5px;white-space:nowrap}
.jjs-pdp__vstore:hover{background:#1d4ed8}
.jjs-pdp__cart .variations{width:100%;border-collapse:collapse;margin:0}
.jjs-pdp__cart .variations tr{display:block;margin-bottom:10px}
.jjs-pdp__cart .variations td,.jjs-pdp__cart .variations th{display:block;padding:0;text-align:left}
.jjs-pdp__cart .variations .label label{font-size:12px;font-weight:700;color:var(--jjs-slate-600)!important;margin:0 0 6px;display:block}
.jjs-pdp__cart .variations select{width:100%;padding:12px;border:1px solid var(--jjs-slate-200);border-radius:var(--jjs-r);background:#fff;color:var(--jjs-ink)}
.jjs-pdp__cart .woocommerce-variation-price .price,.jjs-pdp__cart .woocommerce-variation-price .amount{color:var(--jjs-ink)!important;font-weight:800}

/* trust */
.jjs-pdp__trust{display:flex;flex-direction:column;gap:9px;margin-top:16px;border-top:1px solid var(--jjs-slate-100);padding-top:14px}
.jjs-pdp__trust div{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--jjs-slate-700)!important;font-weight:600}
.jjs-pdp__ti{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;font-size:13px;color:#fff!important;flex:0 0 auto}

/* vendor card (from inc/single-product.php) sits in the info column */
.jjs-pdp__info [class*="vendor"],.jjs-pdp__info [class*="seller"]{margin-top:14px}
.jjs-pdp__info [class*="vendor"] *,.jjs-pdp__info [class*="seller"] *{color:var(--jjs-slate-700)}

/* mobile sticky buy bar (replaces the site bottom nav on product pages) */
.jjs-pdp__stickybar{position:fixed;left:0;right:0;bottom:0;z-index:120;display:none;align-items:center;gap:12px;
  background:#fff;border-top:1px solid var(--jjs-slate-200);box-shadow:0 -8px 24px rgba(10,27,61,.14);padding:10px 14px calc(10px + env(safe-area-inset-bottom))}
.jjs-pdp__stickyprice{display:flex;flex-direction:column;line-height:1.1}
.jjs-pdp__stickyprice small{font-size:10px;color:var(--jjs-slate-500);font-weight:700}
.jjs-pdp__stickyprice b,.jjs-pdp__stickyprice b .amount{font-size:18px;font-weight:800;color:var(--jjs-ink)!important;font-variant-numeric:tabular-nums}
.jjs-pdp__stickyadd{margin-left:auto;padding:13px 24px;font-size:15px}
@media (max-width:759px){
  .jjs-pdp__stickybar{display:flex}
  body.jjs-product{padding-bottom:78px}
  body.jjs-product .jigji-mobile-footer{display:none!important}
}

.jjs-pdp__below{margin-top:32px}

/* ============================================================
   Below: Related (single line) + Recent (4-col) + description tabs
   ============================================================ */
body.jjs-product .jjs-related{margin:6px 0 8px;overflow:hidden}
body.jjs-product .jigji-recent-products-section{overflow:hidden;border-top-color:var(--jjs-slate-200)!important;margin-top:30px!important;padding-top:26px!important}
body.jjs-product .jigji-recent-products-section h2,
body.jjs-product .jjs-related__h{color:var(--jjs-ink)!important;font-size:20px!important;font-weight:800!important;letter-spacing:-.02em;margin:0 0 14px!important}
body.jjs-product .jigji-recent-grid .owl-item.cloned,
body.jjs-product .jjs-related-grid .owl-item.cloned{display:none!important}

/* recent: 2 cols mobile / 4 cols desktop */
body.jjs-product ul.jigji-recent-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;list-style:none;margin:0;padding:0}
@media (min-width:760px){ body.jjs-product ul.jigji-recent-grid{grid-template-columns:repeat(4,1fr)!important;gap:18px!important} }
/* related: single horizontal line (2 visible mobile / 4 desktop, scrolls) */
body.jjs-product ul.jjs-related-grid{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:14px!important;padding-bottom:6px;scrollbar-width:none;scroll-snap-type:x proximity;list-style:none;margin:0}
body.jjs-product ul.jjs-related-grid::-webkit-scrollbar{display:none}
body.jjs-product .jjs-related-grid li.product{flex:0 0 44%!important;scroll-snap-align:start}
@media (min-width:760px){ body.jjs-product .jjs-related-grid li.product{flex:0 0 calc(25% - 14px)!important} }

body.jjs-product .jigji-recent-grid li.product,
body.jjs-product .jjs-related-grid li.product{width:auto!important;margin:0!important;float:none!important;
  background:#fff;border:1px solid var(--jjs-slate-200);border-radius:var(--jjs-r-lg);overflow:hidden;padding:0 0 10px}
body.jjs-product .jigji-recent-grid li.product img,
body.jjs-product .jjs-related-grid li.product img{width:100%!important;aspect-ratio:1/1!important;object-fit:cover!important;height:auto!important;display:block;border-radius:0!important;margin:0 0 8px!important}
body.jjs-product .jigji-recent-grid li.product h3,
body.jjs-product .jjs-related-grid li.product h3,
body.jjs-product .jigji-recent-grid li.product .woocommerce-loop-product__title,
body.jjs-product .jjs-related-grid li.product .woocommerce-loop-product__title{font-size:12.5px!important;color:var(--jjs-ink)!important;font-weight:700!important;padding:0 10px!important;margin:0!important;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.jjs-product .jigji-recent-grid li.product .price,
body.jjs-product .jjs-related-grid li.product .price,
body.jjs-product .jigji-recent-grid li.product .price .amount,
body.jjs-product .jjs-related-grid li.product .price .amount{color:var(--jjs-ink)!important;font-weight:800!important;font-size:14px!important;padding:0 10px!important;margin:5px 0 0!important;display:block}
body.jjs-product .jigji-recent-grid li.product .button,
body.jjs-product .jjs-related-grid li.product .button,
body.jjs-product .jigji-recent-grid li.product .add_to_cart_button,
body.jjs-product .jjs-related-grid li.product .add_to_cart_button{margin:8px 10px 0!important;background:var(--jjs-navy-900)!important;color:#fff!important;border:0!important;border-radius:9px!important;font-weight:700!important;font-size:12px!important;padding:8px 12px!important;display:inline-block;width:auto}

/* description / tabs (Porto resp-tabs) — light + professional */
body.jjs-product .resp-tabs-list{display:flex!important;gap:4px!important;list-style:none;padding:0!important;margin:0!important;border:0!important}
body.jjs-product .resp-tabs-list li{margin:0!important;padding:11px 16px!important;font-weight:700!important;font-size:13px!important;color:var(--jjs-slate-500)!important;background:transparent!important;border:0!important;border-radius:0!important;cursor:pointer}
body.jjs-product .resp-tabs-list li.resp-tab-active{color:var(--jjs-navy-900)!important;background:transparent!important;border-bottom:2px solid var(--jjs-gold)!important}
body.jjs-product .resp-tab-content,body.jjs-product .tab-content{background:#fff!important;color:var(--jjs-slate-700)!important;border:1px solid var(--jjs-slate-200)!important;border-radius:var(--jjs-r)!important;padding:18px!important;margin:0!important}
body.jjs-product .resp-tab-content *{color:var(--jjs-slate-700)!important}
body.jjs-product .resp-tab-content h1,body.jjs-product .resp-tab-content h2,body.jjs-product .resp-tab-content h3{color:var(--jjs-ink)!important}
body.jjs-product h2.resp-accordion{background:var(--jjs-slate-100)!important;color:var(--jjs-ink)!important;border:1px solid var(--jjs-slate-200)!important;padding:12px 14px!important;font-size:14px!important;margin:0!important}
body.jjs-product h2.resp-accordion.resp-tab-active{background:var(--jjs-navy-900)!important;color:#fff!important}
body.jjs-product .comment-form input,body.jjs-product .comment-form textarea,body.jjs-product .comment-form select{background:#fff!important;color:var(--jjs-ink)!important;border:1px solid var(--jjs-slate-200)!important;border-radius:var(--jjs-r)!important}
