/* ============================== Single Product ============================== */
.jt-product { position: relative; padding: 30px var(--gutter) 80px; }
.jt-product__blob {
  position: absolute; top: 60px; right: -60px; width: 340px; height: 340px;
  border-radius: 48% 52% 60% 40%/55% 45% 55% 45%; background: var(--accent-soft); opacity: .6;
  animation: jt-bob 10s ease-in-out infinite; pointer-events: none;
}
.jt-product__grid {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: start;
}
.jt-product__grid > * { min-width: 0; } /* let scrollable children scroll, not expand */

/* gallery */
.jt-gallery { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.jt-gallery__main { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 26px 54px rgba(31,36,33,.18); aspect-ratio: 1/1; background: #fff; touch-action: pan-y; padding: 18px; }
.jt-gallery__main img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.jt-gallery__badge {
  position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 7px;
  background: #fff; padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: var(--accent-deep); box-shadow: 0 6px 16px rgba(31,36,33,.12); z-index: 2;
}
.jt-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.92); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(31,36,33,.18); z-index: 2;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.jt-gallery__nav:hover { background: var(--accent); color: #fff; }
.jt-gallery__nav--prev { left: 14px; }
.jt-gallery__nav--next { right: 14px; }
/* arrows fade in on hover for desktop; always visible on touch */
@media (hover: hover) { .jt-gallery__main .jt-gallery__nav { opacity: 0; } .jt-gallery__main:hover .jt-gallery__nav { opacity: 1; } }

.jt-gallery__thumbs { display: flex; gap: 12px; overflow-x: auto; min-width: 0; max-width: 100%; padding-bottom: 4px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.jt-gallery__thumbs::-webkit-scrollbar { height: 6px; }
.jt-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.jt-thumb { flex: 0 0 72px; width: 72px; padding: 0; border: 2px solid transparent; background: #fff; border-radius: 14px; overflow: hidden; cursor: pointer; aspect-ratio: 1/1; transition: border-color .2s ease; scroll-snap-align: start; }
.jt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jt-thumb.is-active { border-color: var(--accent); }

/* info */
.jt-pinfo .jt-eyebrow { color: var(--accent); }
.jt-ptitle { font-size: clamp(34px, 4vw, 50px); line-height: 1.02; letter-spacing: -.025em; margin: 12px 0 0; }
.jt-prating { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.jt-pricerow { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.jt-price { font-family: var(--font-display); font-weight: 700; font-size: 36px; color: var(--ink); }
.jt-compare { font-size: 15px; color: var(--muted); text-decoration: line-through; }
.jt-save { font-size: 12.5px; font-weight: 700; color: var(--accent-deep); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.jt-pdesc { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 18px 0 0; max-width: 460px; }

/* variations */
.jt-variations { margin-top: 26px; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.jt-variations { display: flex; flex-direction: column; }
.jt-var__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.jt-vargroup + .jt-var__head { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.jt-var__label { font-size: 14px; font-weight: 700; }
.jt-var__value { font-size: 13px; font-weight: 600; color: var(--muted); }
.jt-var__value.is-picked { color: var(--accent-deep); }
.jt-swatches { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.jt-swatch {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 3px solid transparent; box-shadow: 0 3px 10px rgba(31,36,33,.16);
  outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s ease, border-color .2s ease;
}
.jt-swatch.is-active { border-color: #fff; outline-color: var(--accent); }
.jt-vargroup { margin-top: 14px; transition: opacity .25s ease; }
.jt-vargroup.is-locked { opacity: .45; pointer-events: none; }
.jt-vargroup__label.is-locked { opacity: .5; }
.jt-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.jt-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
  cursor: pointer; background: #fff; border: 2px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink);
  transition: background .2s ease, border-color .2s ease;
}
.jt-chip__dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.jt-chip.is-active { background: var(--accent-soft); border-color: var(--accent); }

/* qty + add to cart */
.jt-buyrow { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.jt-qty { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.jt-qty__btn { width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--accent-soft); color: var(--accent-deep); font-size: 20px; cursor: pointer; line-height: 1; }
.jt-qty__val { min-width: 34px; text-align: center; font-weight: 700; font-size: 17px; }
.jt-addcart {
  flex: 1; min-width: 220px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; padding: 17px 28px; border: none;
  border-radius: 999px; cursor: pointer; box-shadow: 0 14px 30px var(--accent-shadow); transition: all .2s ease;
  font-family: var(--font-body);
}
.jt-addcart.is-locked { background: #B7BCAE; opacity: .85; cursor: not-allowed; box-shadow: none; }
.jt-addcart.is-added { background: var(--accent-deep); }
.jt-hint { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent-deep); }
.jt-hint[hidden] { display: none; }

.jt-trust { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.jt-trust > div { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.jt-trust .mk { color: var(--accent); }
.jt-specs { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.jt-spec { font-size: 12.5px; font-weight: 700; color: var(--accent-deep); background: var(--accent-soft); padding: 8px 14px; border-radius: 10px; }

/* why special (3 cards) */
.jt-why { padding: 84px var(--gutter); }
.jt-why__inner { max-width: 1100px; margin: 0 auto; }
.jt-why__title { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.025em; margin: 0 0 44px; max-width: 560px; }
.jt-why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.jt-wcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.jt-wcard .jt-fnum b { font-size: 42px; }
.jt-wcard .jt-fnum span { font-size: 15px; }
.jt-wcard h3 { font-size: 21px; margin: 14px 0 0; }
.jt-wcard p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 10px 0 0; }

/* full description */
.jt-fulldesc-sec { padding: 10px var(--gutter) 90px; }
.jt-fulldesc { max-width: 1100px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 26px;
  padding: 56px clamp(28px, 5vw, 72px); display: grid; grid-template-columns: .42fr 1fr; gap: 48px; }
.jt-fulldesc__h { font-size: clamp(28px, 3vw, 38px); line-height: 1.05; letter-spacing: -.02em; margin: 14px 0 0; }
.jt-fulldesc__chips { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.jt-fulldesc__body { font-size: 16.5px; line-height: 1.75; color: var(--muted); max-width: 620px; }
.jt-fulldesc__body p { margin: 18px 0 0; }
.jt-fulldesc__body p:first-child { margin: 0; }
.jt-fulldesc__body strong { color: var(--ink); }

/* recommended */
.jt-reco { padding: 0 var(--gutter) 96px; }
.jt-reco__inner { max-width: var(--maxw); margin: 0 auto; }
.jt-reco__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.jt-reco__title { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.025em; margin: 12px 0 0; }
.jt-reco__all { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--accent-deep); }
.jt-reco__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* product card (shared: recommended + category) */
.jt-pcard { text-decoration: none; color: inherit; display: block; }
.jt-pcard__well { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; background: #fff; box-shadow: 0 14px 30px rgba(31,36,33,.12); }
.jt-pcard__well img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.jt-pcard:hover .jt-pcard__well img { transform: scale(1.05); }
.jt-pcard__tag { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 5px 11px; border-radius: 999px; }
.jt-pcard__tag.is-deep { background: var(--accent-deep); }
.jt-pcard__rev { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.jt-pcard__rev .s { color: var(--accent-deep); font-size: 13px; letter-spacing: 1px; }
.jt-pcard__rev .n { font-size: 12px; font-weight: 600; color: var(--muted); }
.jt-pcard__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; margin: 6px 0 0; }
.jt-pcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.jt-pcard__price { font-weight: 700; font-size: 17px; }
.jt-pcard__plus { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); font-size: 18px; font-weight: 700; }

/* ============================== Category / Archive ============================== */
.jt-cathead { position: relative; padding: 54px var(--gutter) 30px; overflow: hidden; }
.jt-cathead .jt-dotfield { opacity: .45; animation-duration: 8s; }
.jt-cathead__blob { position: absolute; top: -70px; right: -60px; width: 320px; height: 320px; border-radius: 48% 52% 60% 40%/55% 45% 55% 45%; background: var(--accent-soft); opacity: .6; animation: jt-bob 10s ease-in-out infinite; pointer-events: none; }
.jt-cathead__inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.jt-cathead__title { font-size: clamp(40px, 5.4vw, 78px); line-height: 1; letter-spacing: -.03em; margin: 18px 0 0; }
.jt-cathead__intro { font-size: 17px; line-height: 1.6; max-width: 540px; margin: 18px 0 0; color: var(--muted); }

.jt-toolbar-sec { padding: 14px var(--gutter) 0; }
.jt-toolbar { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.jt-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.jt-filter { border: 1px solid var(--line); cursor: pointer; font-family: var(--font-body); font-size: 13.5px; font-weight: 700; padding: 9px 18px; border-radius: 999px; background: #fff; color: var(--ink); transition: all .2s ease; }
.jt-filter.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.jt-sortwrap { display: flex; align-items: center; gap: 12px; }
.jt-count { font-size: 13px; font-weight: 600; color: var(--muted); }
.jt-sortwrap .jt-nav__div { width: 1px; height: 16px; background: var(--line); }
.jt-seg { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.jt-segbtn { border: none; cursor: pointer; font-family: var(--font-body); font-size: 12.5px; font-weight: 700; padding: 7px 13px; border-radius: 999px; background: transparent; color: var(--muted); transition: all .2s ease; }
.jt-segbtn.is-active { background: var(--accent-soft); color: var(--accent-deep); }

.jt-catgrid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 36px var(--gutter) 0; }
.jt-catgrid .jt-pcard__well { aspect-ratio: 1/1; border-radius: 20px; box-shadow: 0 16px 34px rgba(31,36,33,.12); }
.jt-card__plus { position: absolute; bottom: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--accent-deep); display: grid; place-items: center; font-size: 22px; font-weight: 700; box-shadow: 0 6px 16px rgba(31,36,33,.18); opacity: 0; transition: opacity .25s ease; }
.jt-pcard:hover .jt-card__plus { opacity: 1; }
.jt-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.jt-card__sw { display: flex; gap: 5px; }
.jt-card__sw span { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.jt-card__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; margin: 8px 0 0; }
.jt-card__foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.jt-card__price { font-weight: 700; font-size: 18px; }
.jt-card__cat { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.jt-catgrid-sec { padding-bottom: 16px; }
.jt-card[hidden] { display: none; }

/* newsletter strip */
.jt-news-sec { padding: 60px var(--gutter) 96px; }
.jt-news { max-width: var(--maxw); margin: 0 auto; background: var(--accent-deep); color: #fff; border-radius: 26px; padding: clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.jt-news__dots { position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(#fff 1.4px, transparent 1.4px); background-size: 28px 28px; animation: jt-drift 9s linear infinite; }
.jt-news__inner { position: relative; max-width: 560px; }
.jt-news__h { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.025em; margin: 0; }
.jt-news__p { font-size: 16.5px; line-height: 1.6; opacity: .85; margin: 14px 0 24px; }

/* ============================== WooCommerce resets ============================== */
.woocommerce-breadcrumb,
.woocommerce-products-header,
.woocommerce-result-count,
.woocommerce-ordering,
.single-product .product_meta,
.woocommerce-tabs.wc-tabs-wrapper,
.related.products,
.up-sells.upsells.products { display: none !important; }

/* our custom add-to-cart form replaces WooCommerce's default visuals */
.jt-product .quantity,
.jt-buyrow .quantity { display: none !important; }  /* hidden native qty input (stepper drives it) */
.jt-product .woocommerce-variation.single_variation { display: none !important; } /* hide WC variation price (we show our own) */
.jt-product .woocommerce-variation-availability { display: none; }
.woocommerce-notices-wrapper { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: #fff; border-top: 3px solid var(--accent); border-radius: 12px; color: var(--ink);
}
.woocommerce-message a.button, .woocommerce a.added_to_cart {
  background: var(--accent); color: #fff; border-radius: 999px;
}

/* ============================== Pages (cart / checkout / account / generic) ============================== */
.jt-page { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 90px; }
.jt-page--wc { max-width: 1180px; }
.jt-page__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.02em; line-height: 1.04; margin: 0 0 26px; }
.jt-page__content { line-height: 1.7; }
.jt-page__content a { color: var(--accent-deep); }

/* Brand WooCommerce cart/checkout primary buttons */
.woocommerce .button.alt,
.woocommerce a.checkout-button,
.wc-block-components-button.contained,
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}
.woocommerce .button.alt:hover,
.wc-block-components-button.contained:hover { filter: brightness(.95); }

/* ============================== Cart drawer ============================== */
.jt-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; overflow: hidden; }
.jt-drawer.is-open { visibility: visible; }
.jt-drawer__overlay { position: absolute; inset: 0; background: rgba(34,39,31,.45); opacity: 0; transition: opacity .3s ease; }
.jt-drawer.is-open .jt-drawer__overlay { opacity: 1; }
.jt-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: var(--bg); box-shadow: -20px 0 50px rgba(31,36,33,.22);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .38s cubic-bezier(.22,.61,.36,1);
}
.jt-drawer.is-open .jt-drawer__panel { transform: translateX(0); }
.jt-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.jt-drawer__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.jt-drawer__close { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); width: 40px; height: 40px; border-radius: 50%; transition: background .2s ease; }
.jt-drawer__close:hover { background: var(--accent-soft); }
.jt-drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.jt-drawer__empty { color: var(--muted); padding: 50px 0; text-align: center; }
.jt-addcart.is-loading { opacity: .7; pointer-events: none; }

/* mini-cart inside the drawer */
.jt-drawer__body .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
/* ID-scoped to beat WooCommerce widget styles */
#jt-drawer-body .jt-mci { position: relative; display: flex !important; gap: 14px; align-items: flex-start; padding: 16px 34px 16px 0; margin: 0; border-bottom: 1px solid var(--line); list-style: none; }
#jt-drawer-body .jt-mci__media { flex: 0 0 56px; width: 56px; }
#jt-drawer-body .jt-mci__media a { display: block; }
#jt-drawer-body .jt-mci__media img { width: 56px !important; height: 56px !important; max-width: none !important; object-fit: cover; border-radius: 10px; display: block; float: none !important; margin: 0 !important; }
#jt-drawer-body .jt-mci__body { flex: 1 1 auto; min-width: 0; }
#jt-drawer-body .jt-mci__name { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1.3; display: block; }
#jt-drawer-body .jt-mci__body .variation { font-size: 12px; color: var(--muted); margin: 5px 0 0; line-height: 1.5; border: 0; padding: 0; }
#jt-drawer-body .jt-mci__body .variation dt, #jt-drawer-body .jt-mci__body .variation dd { display: inline; margin: 0 4px 0 0; padding: 0; }
#jt-drawer-body .jt-mci__body .variation dt { font-weight: 700; }
#jt-drawer-body .jt-mci__body .variation p { margin: 0; }
#jt-drawer-body .jt-mci__qty { display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 6px; }
#jt-drawer-body .jt-mci .remove_from_cart_button { position: absolute; right: 0; top: 18px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep) !important; text-align: center; line-height: 23px; font-size: 15px; text-decoration: none; transition: background .2s ease, color .2s ease; }
#jt-drawer-body .jt-mci .remove_from_cart_button:hover { background: var(--accent); color: #fff !important; }
.jt-drawer__body .woocommerce-mini-cart__total { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 18px; padding: 18px 0; margin-top: 6px; }
.jt-drawer__body .woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-bottom: 8px; }
.jt-drawer__body .woocommerce-mini-cart__buttons .button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 14px 20px; font-weight: 700; text-decoration: none; font-size: 15px; }
.jt-drawer__body .woocommerce-mini-cart__buttons .button:not(.checkout) { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.jt-drawer__body .woocommerce-mini-cart__buttons .button.checkout { background: var(--accent); color: #fff; box-shadow: 0 14px 30px var(--accent-shadow); }
.jt-drawer__body .woocommerce-mini-cart__empty-message { color: var(--muted); text-align: center; padding: 50px 0; }

/* ============================== Real ratings ============================== */
.jt-rating { display: inline-flex; align-items: center; gap: 8px; }
.jt-rating .star-rating { color: var(--accent-deep); margin: 0; }
.jt-rating__count { font-size: 12px; font-weight: 600; color: var(--muted); }
.jt-prating .jt-rating .star-rating { font-size: 1.1em; }
.jt-prating .jt-rating__count { font-size: 13.5px; }
.jt-pcard__rev .star-rating { font-size: .8em; }
.jt-card__sw { margin-left: auto; }
