/* ==========================================================
   VT SHOP REDESIGN  —  drop-in replacement for the shop CSS
   Scoped to WooCommerce loop so it won't leak elsewhere.
   Uses your existing CSS variables (--bg-secondary, --primary...)
   with safe fallbacks.
   ========================================================== */

:root {
  --vt-radius: 22px;
  --vt-card-bg: var(--bg-secondary, #fff);
  --vt-stage-bg: var(--bg-tertiary, #f3f4f9);
  --vt-border: var(--border-color, #e6e8f0);
  --vt-text: var(--text-primary, #14151f);
  --vt-muted: var(--text-tertiary, #6b7080);
  --vt-accent: var(--primary, #5b5ce6);
  --vt-accent-2: var(--primary-dark, #4338ca);
}

/* ---------- Grid ---------- */
body ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 32px;
  margin: 40px 0 !important;
  padding: 0;
  list-style: none;
}
body ul.products::before,
body ul.products::after { display: none !important; }

/* ---------- Card ---------- */
body ul.products li.product {
  display: flex;
  flex-direction: column;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: var(--vt-card-bg);
  border: 1px solid var(--vt-border);
  border-radius: var(--vt-radius);
  overflow: hidden;
  position: relative;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
body ul.products li.product:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--vt-accent) 45%, var(--vt-border));
  box-shadow: 0 24px 48px -16px rgba(20, 21, 60, .22);
}

/* Cover stage: portrait box, full cover visible */
body ul.products li.product a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link) {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none;
}
body ul.products li.product a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link) > img,
body ul.products li.product a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link) .attachment-woocommerce_thumbnail {
  /* the image itself becomes the "book" */
  width: auto !important;
  height: auto !important;
  max-width: 72% !important;
  max-height: 300px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  margin: 28px auto 8px !important;
  border-radius: 4px 8px 8px 4px;
  box-shadow:
    -3px 0 0 rgba(0,0,0,.18) inset,
    0 18px 30px -10px rgba(0,0,0,.45),
    0 6px 10px rgba(0,0,0,.18);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
body ul.products li.product:hover a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link) > img {
  transform: translateY(-4px) rotate(-1.5deg) scale(1.03);
}
/* soft tinted stage behind the cover */
body ul.products li.product a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link)::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 340px;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--vt-accent) 14%, transparent), transparent 70%),
    var(--vt-stage-bg);
  z-index: 0;
}
body ul.products li.product a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link) > * { position: relative; z-index: 1; }
body ul.products li.product a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link) > img { margin-bottom: 36px !important; }

/* ---------- Sale badge ---------- */
body ul.products li.product .onsale {
  position: absolute !important;
  top: 16px !important; left: 16px !important; right: auto !important; bottom: auto !important;
  z-index: 5;
  min-width: 0; min-height: 0;
  width: fit-content !important;
  height: auto !important;
  margin: 0 !important;
  padding: 5px 12px !important;
  line-height: 1.4;
  border-radius: 100px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(244, 63, 94, .35);
}

/* ---------- Text ---------- */
body ul.products li.product .woocommerce-loop-product__title {
  margin: 0;
  padding: 18px 22px 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--vt-text);
  /* 2-line clamp instead of hard 30-char cut */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2 + 18px);
}

body ul.products li.product .product-page-count {
  align-self: flex-start;
  margin: 10px 22px 0;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--vt-muted);
  background: var(--vt-stage-bg);
  border-radius: 100px;
}
body ul.products li.product .product-page-count::before { content: "📖 "; }

/* ---------- Price ---------- */
body ul.products li.product .price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 22px 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--vt-text);
}
body ul.products li.product .price del {
  order: 2;
  font-size: 14px;
  font-weight: 500;
  color: var(--vt-muted);
  opacity: .8;
}
body ul.products li.product .price ins {
  order: 1;
  background: none;
  text-decoration: none;
  color: var(--vt-accent);
}

/* ---------- Buttons ---------- */
body ul.products li.product .button {
  display: flex !important;
  float: none !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  margin: 8px 22px 0 !important;
  padding: 13px 18px !important;
  border-radius: 14px !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
/* secondary: Read more */
body ul.products li.product .vt-read-more-btn {
  background: transparent !important;
  color: var(--vt-text) !important;
  border: 1.5px solid var(--vt-border) !important;
  box-shadow: none !important;
}
body ul.products li.product .vt-read-more-btn::after { content: "→"; transition: transform .2s; }
body ul.products li.product .vt-read-more-btn:hover {
  border-color: var(--vt-accent) !important;
  color: var(--vt-accent) !important;
  background: color-mix(in srgb, var(--vt-accent) 8%, transparent) !important;
}
body ul.products li.product .vt-read-more-btn:hover::after { transform: translateX(4px); }
/* primary: Add to cart */
body ul.products li.product .add_to_cart_button,
body ul.products li.product .product_type_simple {
  margin-bottom: 22px !important;
  background: linear-gradient(135deg, var(--vt-accent), var(--vt-accent-2)) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--vt-accent) 70%, transparent);
}
body ul.products li.product .add_to_cart_button:hover,
body ul.products li.product .product_type_simple:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -8px color-mix(in srgb, var(--vt-accent) 80%, transparent);
  color: #fff;
}
body ul.products li.product .added_to_cart {
  margin: 8px 22px 22px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--vt-accent);
}

/* ---------- Toolbar (count + sorting) ---------- */
body .woocommerce-result-count { color: var(--vt-muted); font-size: 14px; margin: 0 0 16px; }
body .woocommerce-ordering { margin: 0 0 24px; }
body .woocommerce-ordering select {
  padding: 11px 44px 11px 18px;
  border: 1px solid var(--vt-border);
  border-radius: 100px;
  background-color: var(--vt-card-bg);
  color: var(--vt-text);
  font-size: 14px;
  cursor: pointer;
}

/* ---------- Purchase-all box: refined ---------- */
.purchase-all-simple {
  max-width: 640px;
  margin: 56px auto;
  padding: 36px;
  border-radius: 28px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(16,185,129,.12), transparent 60%),
    var(--vt-card-bg);
  border: 1px solid var(--vt-border);
  box-shadow: 0 30px 60px -30px rgba(16,185,129,.35);
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  body ul.products { grid-template-columns: 1fr !important; gap: 22px; }
  body ul.products li.product a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link) > img { max-height: 260px; }
  body ul.products li.product .woocommerce-loop-product__title { font-size: 18px; }
}
@media (hover: none) {
  body ul.products li.product:hover,
  body ul.products li.product:hover a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link) > img { transform: none; }
}

/* ==========================================================
   HERO (moved here from the inline <style> in functions.php)
   ========================================================== */
* { -webkit-tap-highlight-color: transparent; }

.vtshop-page-wrapper { width: 100%; display: flex; justify-content: center; }
.vtshop-container { max-width: 1400px; width: 100%; margin: 0 auto; padding: 0 24px; }

.vtshop-hero-section {
  position: relative;
  margin-bottom: 48px;
  padding: 56px 0 40px;
  background: var(--vt-card-bg);
  border-radius: 32px;
  border: 1px solid var(--vt-border);
  overflow: hidden;
}
.vtshop-hero-section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #d946ef, #f43f5e);
}
.vtshop-hero-section::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .25;
  background-image: radial-gradient(circle, var(--vt-border) 1px, transparent 1px);
  background-size: 28px 28px;
}
.vtshop-hero-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.vtshop-hero-content { text-align: center; max-width: 800px; margin: 0 auto; }

.vtshop-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--vt-stage-bg); border: 1px solid var(--vt-border);
  padding: 7px 18px; border-radius: 100px; margin-bottom: 24px;
  font-size: 12px; font-weight: 600; letter-spacing: .6px; color: var(--vt-muted);
}
.hero-badge-dot { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; animation: vt-pulse 2s infinite; }
@keyframes vt-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }

.vtshop-hero-title {
  margin: 0 0 20px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(36px, 5vw, 58px); font-weight: 700; line-height: 1.15;
  color: var(--vt-text);
}
.gradient-text {
  background: linear-gradient(120deg, #818cf8 0%, #c084fc 45%, #f472b6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vtshop-hero-description {
  max-width: 600px; margin: 0 auto 32px;
  font-size: 16px; line-height: 1.7; color: var(--text-secondary, var(--vt-muted));
}
.vtshop-hero-stats {
  display: inline-flex; justify-content: center; gap: 56px; flex-wrap: wrap;
  padding: 22px 44px; background: var(--vt-stage-bg); border-radius: 100px;
}
.hero-stat { text-align: center; }
.hero-stat .stat-number { display: block; font-size: 28px; font-weight: 800; line-height: 1.2; color: var(--vt-accent); }
.hero-stat .stat-label { font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--vt-muted); }

/* Woo wrappers */
.woocommerce { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.woocommerce-products-header { display: none; }

/* Pagination */
.woocommerce-pagination { margin: 40px 0; overflow-x: auto; }
.woocommerce-pagination .page-numbers { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 4px; border: 0; }
.woocommerce-pagination .page-numbers li { border: 0; }
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  display: flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  background: var(--vt-stage-bg); border: 1px solid var(--vt-border); border-radius: 12px;
  color: var(--vt-muted); text-decoration: none; font-size: 14px; transition: all .2s ease;
}
.woocommerce-pagination .page-numbers a:hover,
.woocommerce-pagination .page-numbers span.current {
  background: linear-gradient(135deg, var(--vt-accent), var(--vt-accent-2));
  border-color: var(--vt-accent); color: #fff;
}

/* Button loading state */
.button.loading { opacity: .7; cursor: wait; }

@media (max-width: 1200px) { .vtshop-container, .woocommerce { padding: 0 20px; } }
@media (max-width: 1023px) {
  .vtshop-hero-section { margin-bottom: 40px; padding: 44px 0 30px; }
  .vtshop-hero-stats { gap: 36px; padding: 20px 32px; }
  body ul.products { gap: 22px; }
}
@media (max-width: 767px) {
  .vtshop-container, .woocommerce { padding: 0 16px; }
  .vtshop-hero-section { margin-bottom: 32px; padding: 32px 0 24px; border-radius: 22px; }
  .vtshop-hero-badge { font-size: 10px; padding: 5px 12px; margin-bottom: 16px; }
  .vtshop-hero-title { font-size: 32px; margin-bottom: 12px; }
  .vtshop-hero-description { font-size: 14px; line-height: 1.55; padding: 0 8px; margin-bottom: 22px; }
  .vtshop-hero-stats { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 22px; }
  .hero-stat { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 12px; }
  .hero-stat .stat-number { font-size: 20px; }
  body .woocommerce-ordering select { max-width: 100%; width: 100%; }
  body .woocommerce-result-count { text-align: center; font-size: 12px; }
  .woocommerce-pagination .page-numbers a,
  .woocommerce-pagination .page-numbers span { min-width: 44px; height: 44px; }
}
@media (max-width: 479px) {
  .vtshop-container, .woocommerce { padding: 0 12px; }
  .vtshop-hero-title { font-size: 26px; }
  .vtshop-hero-description { font-size: 12.5px; }
}

/* ==========================================================================
   V2 POLISH
   ========================================================================== */

/* Card: richer depth + accent top-line on hover */
body ul.products li.product {
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(20,21,60,.04), 0 12px 32px -18px rgba(20,21,60,.18);
}
body ul.products li.product::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--vt-accent), var(--vt-accent-2));
  opacity: 0; transition: opacity .3s ease; z-index: 6;
}
body ul.products li.product:hover::after { opacity: 1; }

/* Stage: taller, with soft dot texture and floor glow under the book */
body ul.products li.product a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link)::before {
  height: 350px;
  background:
    radial-gradient(60% 40% at 50% 88%, color-mix(in srgb, var(--vt-accent) 22%, transparent), transparent 70%),
    radial-gradient(color-mix(in srgb, var(--vt-accent) 14%, transparent) 1px, transparent 1.2px) 0 0 / 18px 18px,
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--vt-accent) 14%, transparent), transparent 70%),
    var(--vt-stage-bg);
}
body ul.products li.product a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link) > img {
  margin: 36px auto 40px !important;
  max-width: 68% !important;
  border-radius: 3px 10px 10px 3px;
  box-shadow:
    inset 4px 0 6px -2px rgba(255,255,255,.18),
    inset -3px 0 0 rgba(0,0,0,.2),
    0 28px 40px -14px rgba(10,12,40,.55),
    0 8px 14px rgba(10,12,40,.22);
}
body ul.products li.product:hover a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link) > img {
  transform: translateY(-8px) rotate(-1.2deg) scale(1.04);
}

/* Sale badge: percentage pill (text supplied by PHP filter) */
body ul.products li.product .onsale {
  top: 18px !important; left: 18px !important;
  padding: 6px 12px !important;
  background: rgba(255,255,255,.92) !important;
  color: #e11d48 !important;
  border: 1px solid rgba(225,29,72,.25);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 18px -8px rgba(225,29,72,.45) !important;
}

/* Title */
body ul.products li.product .woocommerce-loop-product__title {
  font-size: 21px;
  padding: 22px 24px 0;
  letter-spacing: -.1px;
  min-height: calc(1.3em * 2 + 22px);
}

/* Pages chip */
body ul.products li.product .product-page-count {
  margin: 10px 24px 0;
  background: color-mix(in srgb, var(--vt-accent) 9%, transparent);
  color: var(--vt-accent);
  font-weight: 700;
  letter-spacing: .2px;
}

/* Price row */
body ul.products li.product .price {
  margin: 16px 24px 6px;
  font-size: 26px;
}
body ul.products li.product .price ins { text-decoration: none; }
body ul.products li.product .price del { text-decoration: line-through; }

/* Buttons: Add to cart first (primary), Read more becomes a quiet text link */
body ul.products li.product .add_to_cart_button,
body ul.products li.product .product_type_simple {
  order: 1;
  margin: 10px 24px 0 !important;
  padding: 15px 18px !important;
  border-radius: 16px !important;
  font-size: 14px !important;
}
body ul.products li.product .add_to_cart_button::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center/contain no-repeat;
}
body ul.products li.product .vt-read-more-btn {
  order: 2;
  margin: 4px 24px 18px !important;
  padding: 10px 12px !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--vt-muted) !important;
}
body ul.products li.product .vt-read-more-btn:hover {
  background: transparent !important;
  color: var(--vt-accent) !important;
}
body ul.products li.product .add_to_cart_button { margin-bottom: 0 !important; }

/* Toolbar: result count + sort in one tidy row */
body .woocommerce-result-count { float: left; margin: 14px 0 0 !important; }
body .woocommerce-ordering { float: right; margin: 0 !important; }
body ul.products { clear: both; }

/* Scroll-in animation */
@media (prefers-reduced-motion: no-preference) {
  body ul.products li.product { animation: vtRise .6s cubic-bezier(.2,.8,.2,1) both; }
  body ul.products li.product:nth-child(2) { animation-delay: .08s; }
  body ul.products li.product:nth-child(3) { animation-delay: .16s; }
  body ul.products li.product:nth-child(n+4) { animation-delay: .24s; }
  @keyframes vtRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}


/* ==========================================================================
   VT BUNDLE BOX  (Purchase Entire Collection + 20% off)
   Paste at the VERY END of vt-shop.css.
   Selectors are intentionally more specific than the inline <style> blocks
   in functions.php, so they win without touching any PHP/JS.
   ========================================================================== */

/* ---------- Card ---------- */
body .purchase-all-simple {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas:
    "badge   price"
    "title   price"
    "summary price"
    "note    cta";
  column-gap: 40px;
  row-gap: 14px;
  max-width: 980px;
  margin: 64px auto;
  padding: 40px 44px;
  text-align: left;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 32px;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(52, 211, 153, .22), transparent 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(168, 85, 247, .28), transparent 60%),
    linear-gradient(135deg, #14123a 0%, #26206b 55%, #3b1d7a 100%) !important;
  box-shadow: 0 40px 70px -35px rgba(38, 32, 107, .7);
  transition: transform .3s ease, box-shadow .3s ease;
}
body .purchase-all-simple:hover {
  transform: translateY(-3px);
  box-shadow: 0 50px 80px -35px rgba(38, 32, 107, .85);
}

/* Headline (pure CSS, replaces the old thin top bar). Change the text here. */
body .purchase-all-simple::before {
  content: "The Complete Collection";
  grid-area: title;
  position: static;
  height: auto;
  background: none;
  align-self: start;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.12;
  color: #fff;
}

/* ---------- Badge ---------- */
body .purchase-all-simple .discount-badge {
  grid-area: badge;
  justify-self: start;
  align-self: start;
  margin: 0;
  padding: 7px 16px;
  border-radius: 100px;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  color: #3b2300;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 8px 20px -8px rgba(251, 191, 36, .7);
  animation: none;
  transform: none;
}

/* ---------- "3 Total Products" chip ---------- */
body .purchase-all-simple .purchase-summary {
  grid-area: summary;
  align-self: start;
  display: flex;
  justify-content: flex-start;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
body .purchase-all-simple .summary-item {
  flex: none;
  text-align: left;
}
/* "Total Amount" repeats the "Original Price" shown in the price panel -> hidden.
   Delete this one rule if you want it back. */
body .purchase-all-simple .summary-item:last-child { display: none; }
body .purchase-all-simple .summary-item:first-child {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 100px;
}
body .purchase-all-simple .summary-item .label {
  display: inline;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
body .purchase-all-simple .summary-item .value {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

/* ---------- Price panel ---------- */
body .purchase-all-simple .discount-summary {
  grid-area: price;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 26px;
  text-align: left;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
body .purchase-all-simple .original-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
}
body .purchase-all-simple .original-price .label { margin: 0; font-size: 13px; }
body .purchase-all-simple .original-price del {
  color: #fda4af;
  text-decoration-thickness: 2px;
}
body .purchase-all-simple .discount-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
body .purchase-all-simple .discount-price .label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}
body .purchase-all-simple .discount-price .price-savings {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 400;
  line-height: 1;
  color: #fff;
}
body .purchase-all-simple .savings-highlight {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  padding: 10px 14px;
  text-align: left;
  background: rgba(52, 211, 153, .16);
  border: 1px solid rgba(52, 211, 153, .35);
  border-radius: 14px;
}
body .purchase-all-simple .savings-highlight .savings-amount {
  font-size: 14px;
  font-weight: 800;
  color: #6ee7b7;
}
body .purchase-all-simple .savings-highlight .savings-percent {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}

/* ---------- CTA button ---------- */
body .purchase-all-simple #purchase-all-btn {
  grid-area: cta;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 18px 24px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #6ee7b7, #10b981);
  color: #04261c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: 0 16px 30px -12px rgba(16, 185, 129, .7);
}
body .purchase-all-simple #purchase-all-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #a7f3d0, #34d399);
  color: #04261c;
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -12px rgba(16, 185, 129, .85);
}
body .purchase-all-simple #purchase-all-btn i { margin: 0; }

/* ---------- Note under headline (limited offer text) ---------- */
body .purchase-all-simple .text-muted { display: none; } /* empty paragraph; JS still needs it in the DOM */
body .purchase-all-simple .offer-timer-text {
  grid-area: note;
  align-self: end;
  margin: 0 !important;
  padding: 0;
  text-align: left !important;
  background: none;
  border: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .78) !important; /* beats inline style="color:#e74c3c" */
}
body .purchase-all-simple .offer-timer-text strong { color: #fbbf24; }
body .purchase-all-simple .offer-timer-text .d-block {
  display: block;
  margin-top: 6px !important;
  font-size: 12.5px !important;
  color: #6ee7b7 !important;                  /* beats inline style on the span */
}

/* ---------- Mobile / tablet ---------- */
@media (max-width: 860px) {
  body .purchase-all-simple {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas:
      "badge"
      "title"
      "summary"
      "price"
      "cta"
      "note";
    row-gap: 16px;
    max-width: none;
    margin: 40px 16px;
    padding: 28px 20px;
    border-radius: 26px;
  }
  body .purchase-all-simple .purchase-summary { flex-direction: row; align-items: flex-start; }
  body .purchase-all-simple .discount-summary { padding: 20px; }
  body .purchase-all-simple .offer-timer-text { align-self: start; }
  body .purchase-all-simple #purchase-all-btn { padding: 16px 18px; font-size: 13px; }
}
@media (hover: none) {
  body .purchase-all-simple:hover { transform: none; }
}


/* ==========================================================================
   VT HERO  (Life Changing VT Products) - compact, two-column
   Paste at the VERY END of vt-shop.css (after the bundle box CSS).
   Markup is unchanged, so no PHP edits are needed.
   ========================================================================== */

/* ---------- Section shell ---------- */
body .vtshop-hero-section {
  margin-bottom: 32px;
  padding: 40px 0;
  border-radius: 28px;
  background:
    radial-gradient(55% 140% at 100% 0%, color-mix(in srgb, var(--vt-accent) 10%, transparent), transparent 70%),
    radial-gradient(40% 120% at 0% 100%, color-mix(in srgb, #d946ef 7%, transparent), transparent 70%),
    var(--vt-card-bg);
  box-shadow: 0 1px 2px rgba(20, 21, 60, .04), 0 18px 40px -26px rgba(20, 21, 60, .25);
}
body .vtshop-hero-section::before { height: 3px; }          /* thinner accent line */
body .vtshop-hero-section::after  { opacity: .18; }         /* quieter dot texture */
body .vtshop-hero-container { padding: 0 44px; }

/* ---------- Two-column layout: text left, stats right ---------- */
body .vtshop-hero-content {
  max-width: none;
  margin: 0;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "badge stats"
    "title stats"
    "desc  stats";
  column-gap: 56px;
  align-items: center;
}

/* ---------- Badge ---------- */
body .vtshop-hero-badge {
  grid-area: badge;
  justify-self: start;
  margin: 0 0 14px;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
}

/* ---------- Title + description ---------- */
body .vtshop-hero-title {
  grid-area: title;
  margin: 0 0 12px;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.5px;
}
body .vtshop-hero-description {
  grid-area: desc;
  max-width: 520px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Stats: one tidy panel with dividers ---------- */
body .vtshop-hero-stats {
  grid-area: stats;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  padding: 6px;
  background: var(--vt-stage-bg);
  border: 1px solid var(--vt-border);
  border-radius: 22px;
}
body .vtshop-hero-stats .hero-stat {
  display: block;
  padding: 16px 26px;
  text-align: center;
  border-left: 1px solid var(--vt-border);
}
body .vtshop-hero-stats .hero-stat:first-child { border-left: 0; }
body .hero-stat .stat-number {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.3px;
}
body .hero-stat .stat-label {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .7px;
  white-space: nowrap;
}

/* ---------- Tablet: stack, stats go full width under the text ---------- */
@media (max-width: 960px) {
  body .vtshop-hero-section { padding: 32px 0; }
  body .vtshop-hero-container { padding: 0 28px; }
  body .vtshop-hero-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "badge"
      "title"
      "desc"
      "stats";
    row-gap: 0;
  }
  body .vtshop-hero-stats {
    margin-top: 24px;
    grid-template-columns: repeat(3, 1fr);
  }
  body .vtshop-hero-stats .hero-stat { padding: 14px 10px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  body .vtshop-hero-section { margin-bottom: 24px; padding: 26px 0 22px; border-radius: 22px; }
  body .vtshop-hero-container { padding: 0 18px; }
  body .vtshop-hero-title { font-size: 28px; margin-bottom: 10px; }
  body .vtshop-hero-description { font-size: 13.5px; line-height: 1.55; padding: 0; }
  body .vtshop-hero-badge { font-size: 10px; padding: 5px 12px; margin-bottom: 12px; }

  /* undo the old "stack as column" mobile rules */
  body .vtshop-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 4px;
    margin-top: 20px;
    border-radius: 18px;
  }
  body .vtshop-hero-stats .hero-stat {
    display: block;
    padding: 12px 4px;
    text-align: center;
  }
  body .hero-stat .stat-number { font-size: 19px; }
  body .hero-stat .stat-label { font-size: 9px; letter-spacing: .3px; white-space: normal; }
}
@media (max-width: 479px) {
  body .vtshop-hero-title { font-size: 25px; }
  body .vtshop-hero-description { font-size: 13px; }
}

/* ==========================================================================
   VT SHOP CARD UPGRADE  (paste at the VERY END of vt-shop.css)
   Works together with vt-card-upgrade-snippet.php
   ========================================================================== */

/* ---------- FIX: sale badge was hidden behind the book cover ----------
   WooCommerce prints the badge INSIDE the product link, so the old rule
   "a > * { z-index:1 }" put it on the same layer as the cover image. */
body ul.products li.product a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link) > .onsale {
  z-index: 10 !important;
}

/* ---------- Title: no forced 2-line gap for short titles ---------- */
body ul.products li.product .woocommerce-loop-product__title {
  min-height: 0;
  padding-bottom: 10px;
}

/* ---------- Short description ---------- */
body ul.products li.product .vt-card-desc {
  margin: 0 0 14px;
  padding: 0 24px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--vt-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Pages chip + price stay pinned to the bottom of the info area,
   so prices and buttons line up across all cards ---------- */
body ul.products li.product .product-page-count {
  margin: auto 24px 0;
}

/* ---------- "You save" pill ---------- */
body ul.products li.product .vt-save-line {
  align-self: flex-start;
  margin: 0 24px 6px;
  padding: 4px 11px;
  border-radius: 100px;
  background: rgba(16, 185, 129, .12);
  color: #059669;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
}
body ul.products li.product .vt-save-line .woocommerce-Price-amount,
body ul.products li.product .vt-save-line bdi {
  font: inherit;
  color: inherit;
}

/* ---------- Trust row (under Add to cart) ---------- */
body ul.products li.product .vt-trust {
  order: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 12px 24px 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--vt-muted);
}
/* "Read more" link goes last */
body ul.products li.product .vt-read-more-btn { order: 3; }

/* ---------- Slightly stronger CTA ---------- */
body ul.products li.product .add_to_cart_button,
body ul.products li.product .product_type_simple {
  font-weight: 800;
  letter-spacing: .2px;
}