/*
 * Base Site Stylesheet (shared child-theme styles)
 * Child theme: rehub-blankchild
 * Enqueued via: functions.php
 *
 * IMPORTANT:
 * This file contains ONLY styles the REHub theme options cannot handle.
 * Colours, fonts and global layout are set in: Theme Options > Appearance/Color
 * (stored in wp_options.rehub_option - NOT theme mods / the Customizer)
 * Any change to rehub_option must be done via the Theme Options panel or
 * via update_option('rehub_option') - NOT set_theme_mod().
 *
 * Change log:
 * 2026-05-31 v1.1 Removed brand-logo hide (user wants native display)
 *                  Removed items now handled by theme options
 *                  Fixed score badge, CTA card, categories hide
 */


/* ============================================================
   1. CSS TOKENS
   ============================================================ */
:root {
  --mv-blue:        #111111; /* dashcams ink (was MV blue) */
  --mv-blue-dark:   #000000;
  --mv-blue-light:  #F9FAFB;
  --mv-orange:      #FFCC00; /* dashcams yellow */
  --mv-orange-dark: #0C0C0C;
  --mv-black:       #111827;
  --mv-muted:       #6B7280;
  --mv-faint:       #9CA3AF;
  --mv-surface:     #F9FAFB;
  --mv-border:      #E5E7EB;
  --mv-white:       #ffffff;
  --mv-green:       #16A34A;
  --mv-radius:      8px;
  --mv-radius-lg:   12px;
  --mv-font:        'Roboto', 'Helvetica Neue', Arial, sans-serif; /* dashcams.ae brand font (2026-11-08) */
}


/* ============================================================
   2. SCORE / REVIEW BADGE — blue override
   REHub defaults the score badge to green.
   Theme options don’t expose this colour — CSS required.
   ============================================================ */
.wpsm-score-total,
.wpsm_score_box,
.rehub_review_woo_score,
.wpsm_score,
.overall-score,
.review-top .overall-score,
.rehub_review_score_box {
  background-color: var(--mv-blue) !important;
  border-color:     var(--mv-blue) !important;
  color: #fff !important;
  border-radius: var(--mv-radius) !important;
}

/* Compact score box in PDP centre column */
.woo_full_width_extended .wpsm_review_compact_box .wpsm_score,
.woo_full_width_extended .wpsm_review_compact_box .wpsm-score-total {
  background-color: var(--mv-blue) !important;
  color: #fff !important;
}

/* Score bar fill */
.rehub_review_bar .rehub_review_bar_inner,
.rate-bar-bar {
  background-color: var(--mv-blue) !important;
}


/* ============================================================
   3. PDP — CATEGORIES IN RIGHT COLUMN
   Breadcrumb already shows the category hierarchy.
   ============================================================ */
.single-product .rh-300-sidebar .posted_in,
.single-product .rh-300-sidebar .product_meta .posted_in {
  display: none !important;
}


/* ============================================================
   4. PDP — RIGHT COLUMN (Col 3) CARD
   White card with soft shadow and rounded corners.
   ============================================================ */
.woo_full_width_extended .re_wooinner_cta_wrapper {
  background:    var(--mv-white) !important;
  border:        0.5px solid var(--mv-border) !important;
  border-radius: var(--mv-radius-lg) !important;
  box-shadow:    0 2px 12px rgba(26,86,219,0.07) !important;
  padding:       18px !important;
}

.woo_full_width_extended .rh-white-divider {
  background: var(--mv-border);
  margin: 12px 0;
}


/* ============================================================
   5. PDP — BUY ON AMAZON BUTTON
   The theme CTA button colour (rehub_btnoffer_color = #F97316)
   should apply automatically once rehub_option is correct.
   This rule is a safety net for any WooZone-specific overrides.
   ============================================================ */
.woo_full_width_extended .woo-button-area .single_add_to_cart_button,
.woo_full_width_extended .woo-button-area a.button,
.woo_full_width_extended .woo-button-area button.button,
.single-product .woo-button-area .btn_offer_block {
  background-color: var(--mv-orange) !important;
  border-color:     var(--mv-orange) !important;
  color: #fff !important;
  width: 100% !important;
  text-align: center !important;
  border-radius: var(--mv-radius) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 12px 20px !important;
  display: block !important;
}
.woo_full_width_extended .woo-button-area .single_add_to_cart_button:hover,
.woo_full_width_extended .woo-button-area a.button:hover {
  background-color: var(--mv-orange-dark) !important;
  border-color:     var(--mv-orange-dark) !important;
}


/* ============================================================
   6. PDP — ADD TO COMPARE BUTTON
   ============================================================ */
.woo_full_width_extended .rhwoosinglecompare {
  width: 100%;
  text-align: center;
  display: block;
  border:     0.5px solid var(--mv-border) !important;
  border-radius: var(--mv-radius) !important;
  background:    transparent !important;
  color:         var(--mv-muted) !important;
  padding:       9px !important;
  font-size:     12.5px !important;
  margin-top:    8px;
}
.woo_full_width_extended .rhwoosinglecompare:hover {
  border-color: var(--mv-muted) !important;
  color:        var(--mv-black) !important;
}


/* ============================================================
   7. PDP — CENTRE COLUMN SPACING
   ============================================================ */
.mv-pdp-col-center .re_wooinner_info {
  padding-left: 20px;
}
.mv-pdp-col-center .mv-short-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mv-muted);
  margin-bottom: 16px;
}


/* ============================================================
   8. PDP — IMAGE COLUMN
   ============================================================ */
.mv-pdp-col-image .woocommerce-product-gallery__image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--mv-radius-lg);
}


/* ============================================================
   9. PRODUCT CARDS (category / related products)
   ============================================================ */
.product_block_grid,
.rh_woogrid_block,
.woocommerce .products.grid_woo .product,
.woocommerce ul.products li.product {
  border-radius: var(--mv-radius-lg) !important;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.18s ease;
}
.product_block_grid:hover,
.rh_woogrid_block:hover {
  box-shadow: 0 6px 20px rgba(26,86,219,0.10);
  transform:  translateY(-2px);
}


/* ============================================================
   10. HEADER
   The logo image is handled natively by the theme.
   Just ensure text logo style if no image is set.
   ============================================================ */
#main_header .rh-text-logo {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 20px;
}


/* ============================================================
   11. GLOBAL UTILITIES
   ============================================================ */
.rh-container img { max-width: 100%; height: auto; }
a, button, .btn_offer_block {
  transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}



/* ============================================================
   12. COLUMN 1 — BADGE ROW (above image, no overlap)
   Flex row: rank left, EC right. No absolute positioning.
   Only renders if at least one badge is active.
   ============================================================ */
.mv-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  min-height: 26px;
  width: 100%;
}

.mv-badge-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 5px;
  line-height: 1.5;
  white-space: nowrap;
  display: inline-block;
}

/* #1 in category — brand blue */
.mv-badge-rank { background: var(--mv-blue); color: #fff; }

/* Editor's Choice — amber */
.mv-badge-ec { background: #FAEEDA; color: #633806; border: 0.5px solid #EF9F27; }


/* ============================================================
   13. COLUMN 1 — GALLERY
   DO NOT flex/reorder .woocommerce-product-gallery__wrapper
   flexslider JS owns that element entirely.
   ============================================================ */
.mv-pdp-col-image .woocommerce-product-gallery { width: 100% !important; }
.mv-pdp-col-image .woo-image-part { width: 100%; }

/* Main image — round first child only */
.mv-pdp-col-image .woocommerce-product-gallery__image:first-child a img {
  border-radius: var(--mv-radius-lg);
}

/* Thumbnails */
.mv-pdp-col-image .woocommerce-product-gallery__image:not(:first-child) a img {
  border-radius: var(--mv-radius);
  border: 1.5px solid var(--mv-border);
  cursor: pointer;
  transition: border-color 0.15s;
}
.mv-pdp-col-image .woocommerce-product-gallery__image:not(:first-child) a img:hover,
.mv-pdp-col-image .woocommerce-product-gallery__image.flex-active-slide a img {
  border-color: var(--mv-blue);
}

/* Hide native scrollbar on thumbnail strip */
.mv-pdp-col-image .woocommerce-product-gallery__wrapper,
.mv-pdp-col-image .flex-control-thumbs {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.mv-pdp-col-image .woocommerce-product-gallery__wrapper::-webkit-scrollbar,
.mv-pdp-col-image .flex-control-thumbs::-webkit-scrollbar { display: none !important; }


/* ============================================================
   14. COLUMN 1 — ZOOM ICON
   Dark rounded square top-right. Contains WP emoji 🔍 in span.
   ============================================================ */
.mv-pdp-col-image .woocommerce-product-gallery__trigger {
  position: absolute !important; top: 12px !important; right: 12px !important;
  width: 30px !important; height: 30px !important;
  background: rgba(17,24,39,0.6) !important;
  border-radius: var(--mv-radius) !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  z-index: 10; transition: background 0.15s;
  border: none !important; box-shadow: none !important; outline: none !important;
}
.mv-pdp-col-image .woocommerce-product-gallery__trigger:hover {
  background: rgba(17,24,39,0.85) !important;
}
.mv-pdp-col-image .woocommerce-product-gallery__trigger span {
  display: flex !important; align-items: center; justify-content: center;
  width: 16px !important; height: 16px !important;
  filter: brightness(0) invert(1);
}
.mv-pdp-col-image .woocommerce-product-gallery__trigger span img {
  width: 16px !important; height: 16px !important; display: block !important;
}
.mv-pdp-col-image .woocommerce-product-gallery__trigger::before,
.mv-pdp-col-image .woocommerce-product-gallery__trigger::after { display: none !important; }


/* ============================================================
   15. COLUMN 1 — SALE BADGE
   Hide from image area, show in Col 3 price row.
   ============================================================ */
.mv-pdp-col-image .onsale,
.mv-pdp-col-image .woo-image-part .onsale { display: none !important; }

.rh-300-sidebar .woo-price-area .onsale {
  display: inline-block !important; position: static !important;
  font-size: 11px !important; font-weight: 700 !important;
  padding: 2px 7px !important; border-radius: 4px !important;
  margin-left: 6px !important; vertical-align: middle;
  background: #FEE2E2 !important; color: #DC2626 !important;
  border: 0.5px solid #FECACA !important;
}


/* ============================================================
   16. COLUMN 1 — OUTLINE / FOCUS NORMALISATION
   WooCommerce gallery applies our --mv-blue as outline-color
   on focus/hover. Remove all outlines from gallery elements.
   ============================================================ */
.mv-pdp-col-image .woo-image-part *,
.mv-pdp-col-image .woocommerce-product-gallery,
.mv-pdp-col-image .woocommerce-product-gallery *,
.mv-pdp-col-image .woocommerce-product-gallery__image,
.mv-pdp-col-image .woocommerce-product-gallery__image a,
.mv-pdp-col-image .woocommerce-product-gallery__image img,
.mv-pdp-col-image .woocommerce-product-gallery__image a:focus,
.mv-pdp-col-image .woocommerce-product-gallery__image a:hover,
.mv-pdp-col-image .woocommerce-product-gallery__image img:focus {
  outline: none !important;
  outline-color: transparent !important;
  box-shadow: none !important;
}

/* Main (first) image — no border at all */
.mv-pdp-col-image .woocommerce-product-gallery__image:first-child a img {
  border: none !important;
}


/* ============================================================
   17. COLUMN 2 — PRODUCT TITLE
   H1 lives in Col 2 (desktop). A <p> lives in Col 1 (mobile only).
   Only one is visible at a time — no duplicate H1 for SEO.
   ============================================================ */

/* Desktop: show H1 in Col 2, hide the mobile <p> in Col 1 */
@media (min-width: 901px) {
  .mv-mobile-title { display: none !important; }
}

/* Mobile: hide H1 in Col 2, show the <p> in Col 1 above image */
@media (max-width: 900px) {
  .mv-desktop-title { display: none !important; }
  .mv-mobile-title {
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--mv-black);
    margin: 0 0 6px;
    padding: 0;
    display: block !important;
  }
}

/* H1 in Col 2 — desktop styling */
.mv-desktop-title {
  font-family: inherit;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--mv-black);
  margin: 0 0 12px;
  padding: 0;
}


/* ============================================================
   18. COLUMN 2 — BRAND ROW
   Brand name linked to store archive. Small, uppercase, blue.
   ============================================================ */
.mv-brand-row {
  margin-bottom: 4px;
}

.mv-brand-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--mv-blue);
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
}
.mv-brand-link:hover {
  text-decoration: underline;
}


/* ============================================================
   19. COLUMN 2 — SCORE COMPACT BLOCK
   REHub renders this as .compact-reviewbox
   Style to match the mockup: score badge + label + read link.
   ============================================================ */
.woo_full_width_extended .compact-reviewbox {
  background: var(--mv-surface) !important;
  border: 0.5px solid var(--mv-border) !important;
  border-radius: var(--mv-radius-lg) !important;
  padding: 12px 14px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px;
}

/* Score badge box */
.woo_full_width_extended .compact-reviewbox .score-compact {
  min-width: 52px;
  height: 52px;
  border-radius: var(--mv-radius-lg) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--mv-blue) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #fff !important;
  flex-shrink: 0;
}

/* Score label + read review link */
.woo_full_width_extended .compact-reviewbox .rev-comp-text {
  margin: 0 !important;
  padding: 0 !important;
}

.woo_full_width_extended .compact-reviewbox .rev-comp-text .rehub-main-color,
.woo_full_width_extended .compact-reviewbox strong {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--mv-black) !important;
  letter-spacing: 0.02em;
}

.woo_full_width_extended .compact-reviewbox a {
  font-size: 12px !important;
  color: var(--mv-blue) !important;
  display: block;
  margin-top: 2px;
}


/* ============================================================
   20. COLUMN 2 — RANK POSITION STRIP
   REHub's .rh-pr-rated-block: trophy icon + #1 in category

   FIX 2026-06-04: Was display:flex which treated text nodes as
   anonymous flex items with no wrap — overflowed on tablet/stacked
   viewport. Switched to display:block — inline content wraps
   naturally at any width. REHub's 'vertmiddle' on the <i> keeps
   the trophy icon baseline-aligned. Also overrides font150 (150%)
   down to 115% so the icon stays proportional to the 90% font-size
   surrounding text.
   ============================================================ */
.woo_full_width_extended .rh-pr-rated-block {
  display: block;
  font-size: 13px !important;
  color: var(--mv-muted);
  line-height: 1.75;
  padding: 7px 0;
  border-top: 0.5px solid var(--mv-border);
  border-bottom: 0.5px solid var(--mv-border);
  margin-bottom: 14px !important;
}

/* Trophy icon: inline so it sits in the text flow and wraps with it */
.woo_full_width_extended .rh-pr-rated-block .rhicon {
  display: inline !important;
  vertical-align: middle;
  font-size: 115% !important;  /* REHub font150 class = 150% — scale down to match text */
  color: var(--mv-orange);
  margin-right: 4px;
  line-height: 1;
}

.woo_full_width_extended .rh-pr-rated-block strong {
  color: var(--mv-black);
  font-weight: 700;
}

.woo_full_width_extended .rh-pr-rated-block a {
  color: var(--mv-blue);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;  /* keep category name as one unit — wraps as a whole phrase */
}
.woo_full_width_extended .rh-pr-rated-block a:hover {
  text-decoration: underline;
}



/* ============================================================
   21. COL 3 — PRICE BLOCK LAYOUT (custom PHP output)
   .mv-price-row-top = del (struck) + pill on same row
   .mv-price-current = large current price below
   ============================================================ */
.mv-price-block {
  margin-bottom: 12px;
}
.mv-price-row-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}
.mv-was-price {
  font-size: 13px;
  color: #9CA3AF;
  text-decoration: line-through;
}
.mv-was-price bdi,
.mv-was-price .woocommerce-Price-amount {
  font-size: 13px;
  color: #9CA3AF;
}
.mv-sale-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #FEE2E2;
  color: #DC2626;
  border: 0.5px solid #FECACA;
}
.mv-price-current {
  font-size: 30px;
  font-weight: 700;
  color: #DC2626;
  line-height: 1;
}
.mv-price-current .woocommerce-Price-amount {
  font-size: 30px;
  font-weight: 700;
  color: #DC2626;
}
/* Hide old onsale from WooCommerce — using custom output now */
.woo_full_width_extended .rh-300-sidebar .onsale {
  display: none !important;
}

/* ============================================================
   22. COL 3 — SCORE COMPACT BOX (Read review ↓ chevron)

/* ============================================================
   22. COL 3 — SCORE COMPACT BOX (Read review ↓ chevron)
   ============================================================ */
.woo_full_width_extended .rh-300-sidebar .compact-reviewbox {
  background: var(--mv-surface) !important;
  border: 0.5px solid var(--mv-border) !important;
  border-radius: var(--mv-radius-lg) !important;
  padding: 12px 14px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px;
}
.woo_full_width_extended .rh-300-sidebar .compact-reviewbox .score-compact {
  min-width: 50px;
  height: 50px;
  border-radius: var(--mv-radius-lg) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--mv-blue) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #fff !important;
  flex-shrink: 0;
}
.woo_full_width_extended .rh-300-sidebar .rev-comp-text > strong,
.woo_full_width_extended .rh-300-sidebar .rev-comp-text > span {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--mv-black) !important;
  letter-spacing: 0.02em;
}
/* Add ↓ after the Read review link */
.woo_full_width_extended .rh-300-sidebar .rev-comp-text a {
  color: var(--mv-blue) !important;
  font-size: 12px !important;
  display: inline-block;
  margin-top: 2px;
}
.woo_full_width_extended .rh-300-sidebar .rev-comp-text a::after {
  content: " \2193"; /* ↓ downward arrow, renders as chevron */
  font-size: 11px;
}



/* ============================================================
   23. COL 3 — BUY ON AMAZON BUTTON (mockup-exact)
   Spec: 46px tall, border-radius 12px, orange, Outfit font,
   cart icon via ::before, full-width.
   Root cause of 185px width: WooCommerce form contains .quantity
   div that shares width. Hide it; button then fills 100%.
   ============================================================ */

/* Hide quantity div in sidebar (keeps hidden input for form submission) */
.woo_full_width_extended .rh-300-sidebar .quantity,
.woo_full_width_extended .rh-300-sidebar .cart .quantity,
.single-product .rh-300-sidebar .quantity,
.single-product form.cart div.quantity {
  display: none !important;
}

/* Make WooCommerce form + button fill full width */
.woo_full_width_extended .rh-300-sidebar .woo-button-area,
.woo_full_width_extended .rh-300-sidebar #woo-button-area {
  width: 100% !important;
  display: block !important;
  margin-bottom: 0 !important;
}
.woo_full_width_extended .rh-300-sidebar form.cart {
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* The actual button — all WooCommerce/WooZone selector variants */
.woo_full_width_extended .rh-300-sidebar .single_add_to_cart_button,
.woo_full_width_extended .rh-300-sidebar .btn_offer_block,
.woo_full_width_extended .rh-300-sidebar form.cart button,
.woo_full_width_extended .rh-300-sidebar form.cart a.button,
.woo_full_width_extended .rh-300-sidebar #woo-button-area a,
.woo_full_width_extended .rh-300-sidebar #woo-button-area button {
  width: 100% !important;
  max-width: none !important; /* override WooZone 185px max-width */
  flex: 1 1 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 46px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  margin: 0 0 8px !important;
  padding: 0 20px !important;
  background: var(--mv-orange) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--mv-radius-lg) !important;  /* 12px — matches mockup */
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.14s !important;
  box-shadow: none !important;
}
.woo_full_width_extended .rh-300-sidebar .single_add_to_cart_button:hover,
.woo_full_width_extended .rh-300-sidebar .btn_offer_block:hover,
.woo_full_width_extended .rh-300-sidebar form.cart button:hover {
  background: var(--mv-orange-dark) !important;
}

/* Cart icon before button text */
.woo_full_width_extended .rh-300-sidebar .single_add_to_cart_button::before,
.woo_full_width_extended .rh-300-sidebar .btn_offer_block::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23ffffff%22 stroke-width=%222.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4zM3 6h18M16 10a4 4 0 01-8 0%22/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}


/* ============================================================
   24. COL 3 — ADD TO COMPARE BUTTON (mockup-exact)
   Spec: 38px tall, same border-radius (12px), outlined grey,
   list icon, full-width, below Buy button.
   ============================================================ */
.woo_full_width_extended .rh-300-sidebar .rhwoosinglecompare,
.woo_full_width_extended .rh-300-sidebar .wpsm-comparison-button {
  width: 100% !important;
  max-width: none !important; /* override WooZone 185px max-width */
  flex: 1 1 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 38px !important;
  box-sizing: border-box !important;
  padding: 0 16px !important;
  margin: 0 0 12px !important;
  background: transparent !important;
  color: var(--mv-muted) !important;
  border: 0.5px solid var(--mv-border) !important;
  border-radius: var(--mv-radius-lg) !important;  /* 12px — matches mockup */
  font-size: 12.5px !important;
  font-weight: 400 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: border-color 0.12s, color 0.12s !important;
  box-shadow: none !important;
}
.woo_full_width_extended .rh-300-sidebar .rhwoosinglecompare:hover {
  border-color: var(--mv-muted) !important;
  color: var(--mv-black) !important;
}


/* ============================================================
   25. COL 3 — PRICE BLOCK (mockup-exact)
   Structure: [del + -5% pill] on row 1, [big price] on row 2.
   Font: Outfit 700 30px for the price number.
   ============================================================ */
.mv-price-block {
  margin-bottom: 14px;
}
.mv-price-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.mv-was-price {
  font-size: 13px;
  color: var(--mv-faint);
  text-decoration: line-through;
}
.mv-was-price bdi,
.mv-was-price .woocommerce-Price-amount {
  font-size: 13px;
  color: var(--mv-faint);
}
/* Pill — matches .mv-loop-discount-pill on category page */
.mv-sale-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 500;
  padding: 1px 5px;
  border-radius: 4px;
  background: #FEE2E2;
  color: #DC2626;
  border: 0.5px solid #FECACA;
  line-height: 1.5;
  vertical-align: middle;
}
/* Price — weight 500 matches category page sale price */
.mv-price-current {
  font-family: var(--mv-font);
  font-size: 30px;
  font-weight: 500;
  color: var(--mv-red, #DC2626);
  line-height: 1;
}
.mv-price-current .woocommerce-Price-amount,
.mv-price-current .woocommerce-Price-currencySymbol {
  font-family: var(--mv-font);
  font-size: 30px;
  font-weight: 500;
  color: #DC2626;
  line-height: 1;
}

/* Hide old WooCommerce onsale badge — using custom PHP price block */
.woo_full_width_extended .rh-300-sidebar .onsale {
  display: none !important;
}


/* ============================================================
   26. COL 3 — LIMITED DEAL PILL
   Tight height matching Col 1 badge scale.
   ============================================================ */
.mv-sale-event-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #111827;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: 0.03em;
  line-height: 1.4;
  margin-bottom: 8px;
  display: inline-flex;
}


/* ============================================================
   27. COL 3 — SCORE COMPACT BOX
   Read review with ↓ chevron.
   ============================================================ */
.woo_full_width_extended .rh-300-sidebar .compact-reviewbox {
  background: var(--mv-surface) !important;
  border: 0.5px solid var(--mv-border) !important;
  border-radius: var(--mv-radius-lg) !important;
  padding: 12px 14px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px;
}
.woo_full_width_extended .rh-300-sidebar .compact-reviewbox .score-compact {
  min-width: 50px;
  height: 50px;
  border-radius: var(--mv-radius-lg) !important;
  background: var(--mv-blue) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
}
.woo_full_width_extended .rh-300-sidebar .rev-comp-text a {
  color: var(--mv-blue) !important;
  font-size: 12px !important;
  display: inline-block;
  margin-top: 2px;
}
.woo_full_width_extended .rh-300-sidebar .rev-comp-text a::after {
  content: " ↓";
  font-size: 11px;
}


/* ============================================================
   28. STICKY FLOAT PANEL — Consistent with Col 3
   Selectors: .rh-float-panel, .float-panel-woo-price,
              .float-panel-woo-button .btn_offer_block
   ============================================================ */

/* Sticky panel price: match Col 3 layout */
.rh-float-panel .float-panel-woo-price del,
.rh-float-panel .float-panel-woo-price del .woocommerce-Price-amount {
  font-size: 12px;
  color: var(--mv-faint);
  text-decoration: line-through;
}
.rh-float-panel .float-panel-woo-price ins,
.rh-float-panel .float-panel-woo-price ins .woocommerce-Price-amount {
  font-size: 18px;
  font-weight: 700;
  color: #DC2626;
  text-decoration: none;
  display: block;
  line-height: 1.1;
}
.rh-float-panel .float-panel-woo-price .screen-reader-text {
  display: none !important;
}

/* Sticky panel button: match Col 3 Buy on Amazon */
.rh-float-panel .float-panel-woo-button .btn_offer_block,
.rh-float-panel .float-panel-woo-button .single_add_to_cart_button,
.rh-float-panel .float-panel-woo-button a {
  background: var(--mv-orange) !important;
  border: none !important;
  border-radius: var(--mv-radius-lg) !important; /* 12px */
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  padding: 0 18px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: background 0.14s !important;
  box-shadow: none !important;
  max-width: none !important;
}
.rh-float-panel .float-panel-woo-button .btn_offer_block:hover,
.rh-float-panel .float-panel-woo-button .single_add_to_cart_button:hover {
  background: var(--mv-orange-dark) !important;
}
/* Cart icon on sticky button */
.rh-float-panel .float-panel-woo-button .btn_offer_block::before,
.rh-float-panel .float-panel-woo-button .single_add_to_cart_button::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23ffffff%22 stroke-width=%222.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4zM3 6h18M16 10a4 4 0 01-8 0%22/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}


/* ============================================================
   29. COL 3 — TRUST ZONE SECTION DIVIDERS
   Thin grey lines above and below the Ships/delivery section.
   The rh_code_incart output already has border-top on delivery rows.
   Add a top border on the code zone wrapper = divider above trust badges.
   The inline template divider handles the bottom separator.
   ============================================================ */
.woo_full_width_extended .rh-300-sidebar .rh_woo_code_zone_btn {
  border-top: 0.5px solid var(--mv-border);
  padding-top: 12px;
  margin-top: 4px;
}

/* Remove any rh-white-divider that might still appear from hooks */
.woo_full_width_extended .re_wooinner_cta_wrapper .rh-white-divider {
  display: none !important;
}


/* ============================================================
   30. COL 2 — KEY HIGHLIGHTS LIST (.mv-highlights)
   Clean bullet list, no flex on li (avoids space collapse).
   Bold lead text + em dash + grey detail text, inline.
   ============================================================ */
.mv-short-desc ul.mv-highlights,
.woocommerce-product-details__short-description ul.mv-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mv-short-desc ul.mv-highlights li,
.woocommerce-product-details__short-description ul.mv-highlights li {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.mv-short-desc ul.mv-highlights li::before,
.woocommerce-product-details__short-description ul.mv-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--mv-blue);
  border-radius: 50%;
}

.mv-short-desc ul.mv-highlights li strong,
.woocommerce-product-details__short-description ul.mv-highlights li strong {
  color: #111827;
  font-weight: 600;
}


/* ============================================================
   31. STICKY COLUMNS — Desktop only (min-width: 1025px)
   
   Col 1 (gallery) and Col 3 (CTA) become position:sticky.
   Col 2 (specs/features/highlights) scrolls naturally.
   All 3 column bottoms align when content ends because the
   sticky boundary is .top-woo-area (the first-fold wrapper).
   
   Implementation: convert float-based layout to flexbox.
   overflow:hidden on .rh-container.flowhidden blocks sticky
   — we override it to visible. Float clearfix not needed with flex.
   
   Tablet (<901px): tabletblockdisplay already stacks columns.
   Mobile: not affected (existing responsive CSS handles it).
   ============================================================ */

@media (min-width: 1025px) {

  /* --- Container: flex row, remove float clearfix overflow --- */
  .woo_full_width_extended .rh-container.flowhidden {
    overflow: visible !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    column-gap: 30px !important;
  }

  /* Breadcrumb + notices span full row */
  .woo_full_width_extended .rh-container.flowhidden > nav.woocommerce-breadcrumb,
  .woo_full_width_extended .rh-container.flowhidden > .woocommerce-notices-wrapper {
    flex: 0 0 100% !important;
    width: 100% !important;
    column-gap: 0 !important;
  }

  /* --- Content area (Col 1 + Col 2): replace float with flex --- */
  .woo_full_width_extended .rh-300-content-area {
    float: none !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    column-gap: 30px !important;
  }

  /* --- Col 1: sticky gallery --- */
  .woo_full_width_extended .mv-pdp-col-image {
    float: none !important;
    flex: 0 0 360px !important;
    width: 360px !important;
    max-width: 360px !important;
    position: sticky !important;
    top: 83px !important; /* float panel height 73px + 10px breathing room */
    align-self: flex-start !important;
  }

  /* --- Col 2: scrolls naturally --- */
  .woo_full_width_extended .mv-pdp-col-center {
    float: none !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }

  /* --- Col 3: sticky CTA sidebar --- */
  .woo_full_width_extended .rh-300-sidebar {
    float: none !important;
    flex: 0 0 300px !important;
    width: 300px !important;
    max-width: 300px !important;
    position: sticky !important;
    top: 83px !important;
    align-self: flex-start !important;
  }

  /* Preserve woo-image padding-bottom that was part of floatleft context */
  .woo_full_width_extended .woo-image-part {
    position: static; /* gallery handles its own sticky parent correctly */
  }

}



/* ============================================================
   32. COMPARE PAGE — /compare-products/?compareids=
   [wpsm_woocharts] shortcode output. All rules scoped to
   .table_view_charts so they don't bleed onto other pages.

   Row class map (hardcoded in parent woocharts shortcode):
     row_chart_0           — image / header / price / CTA
     row_chart_1           — "Overview" section heading
     row_chart_2           — Summary  (excerpt filter → summary text only)
     .mv-row-pros          — Pros     (JS-inserted row)
     .mv-row-cons          — Cons     (JS-inserted row)
     row_chart_5           — Brand (renamed via gettext, kept in natural order)
     row_chart_7           — Availability   → HIDDEN
     row_chart_3           — User Rating    → HIDDEN
     row_chart_criterias   — Review score bars
     row_chart_8           — "Specification" heading
     row_chart_9+          — individual spec attributes

   NOTE: CSS flex/order was removed — it conflicted with REHub's
   height-equalisation JS which equalises <li> by DOM-index and
   must run in standard block layout to function correctly.
   ============================================================ */

/* ------ 32a. Hidden rows & utility ------ */
.table_view_charts ul .row_chart_3,
.table_view_charts ul .row_chart_7 { display: none !important; }

/* Hide “Show only differences” checkbox + label */
.table_view_charts .diff-label { display: none !important; }
.table_view_charts input.re-compare-show-diff { display: none !important; }


/* ------ 32b. Header cell (image + score + price + button) ------ */
.table_view_charts .top_chart_item .product_image_col {
  padding: 16px 12px 12px;
  /* Note: no height:100%/flex here - button alignment is handled by JS h2 equalisation */
}

/* Product title */
.table_view_charts h2 { font-size: 14px !important; font-weight: 700; line-height: 1.4; margin: 10px 0 0; }
.table_view_charts h2 a { color: var(--mv-black); text-decoration: none; }
.table_view_charts h2 a:hover { color: var(--mv-blue); }

/* Score radial badge — preserve REHub animation; only tweak font */
.table_view_charts .radial-progress .inset .percentage {
  font-weight: 800 !important;
  font-size: 13px !important;
}


/* ------ 32c. Price — consistent with PDP ------ */
.table_view_charts .price-woo-compare-chart {
  display:     block;
  font-size:   20px !important;
  font-weight: 500 !important;
  color:       #DC2626 !important;
  font-family: var(--mv-font, 'Outfit', sans-serif);
  margin-bottom: 4px;
  line-height: 1.3;
  min-height:  2.6em;  /* 2 × line-height(1.3) × font-size = del-row + ins-row.
                          Ensures non-sale products occupy same height as sale
                          products so the ADD TO CART button aligns across
                          all compare columns. Scales automatically at every
                          responsive breakpoint because it uses em units. */
}
.table_view_charts .price-woo-compare-chart del {
  display:         inline !important;  /* was block — inline lets pill sit beside it */
  font-size:       13px !important;
  font-weight:     400 !important;
  color:           #7E8C9A !important; /* 2 shades darker than --mv-faint, matches cat page */
  text-decoration: line-through;
  margin-right:    3px;               /* gap before pill */
  opacity:         1 !important;      /* defeat style.css L1139 opacity:0.2 */
}
.table_view_charts .price-woo-compare-chart del .woocommerce-Price-amount,
.table_view_charts .price-woo-compare-chart del bdi { color: #7E8C9A !important; }
.table_view_charts .price-woo-compare-chart ins {
  display:         block !important;  /* own row 2 below del+pill */
  text-decoration: none !important;
  font-size:       20px !important;
  font-weight:     500 !important;    /* lighter, matches cat page */
  color:           #DC2626 !important;
}
.table_view_charts .price-woo-compare-chart .woocommerce-Price-amount { color: inherit; }


/* ------ 32d. Add to Cart / Buy button — matches PDP orange CTA ------ */
.table_view_charts .btn-woo-compare-chart,
.table_view_charts .btn_offer_block.woo_loop_btn {
  display: block !important;
  background-color: var(--mv-orange) !important;
  border-color:     var(--mv-orange) !important;
  color: #fff !important;
  border-radius: var(--mv-radius) !important;
  font-family: var(--mv-font, 'Outfit', sans-serif) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  padding: 10px 16px !important;
  text-align: center !important;
  text-decoration: none !important;
  width: 100% !important;
  box-sizing: border-box;
  margin-top: 10px;
  transition: background-color 0.2s, border-color 0.2s;
  line-height: 1.3;
}
.table_view_charts .btn-woo-compare-chart:hover,
.table_view_charts .btn_offer_block.woo_loop_btn:hover {
  background-color: var(--mv-orange-dark) !important;
  border-color:     var(--mv-orange-dark) !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* Button column: flex so price + button stay vertically consistent */
.table_view_charts .price-in-compare-flip {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  padding: 8px 0 4px;
}


/* ------ 32e. Summary row (row_chart_2) ------ */
/* PHP excerpt filter outputs only the summary paragraph here.
   Pros and Cons are separate rows injected by JS (section 32e2). */
.table_view_charts .row_chart_2 .mv-cmp-summary {
  font-size: 12.5px;
  color: var(--mv-muted);
  line-height: 1.6;
  margin: 0;
  text-align: left;
}


/* ------ 32e2. JS-created Pros / Cons rows (.mv-row-pros / .mv-row-cons) ------ */
/* These <li> elements are inserted by wp_footer JS after REHub's
   height-equalisation has run. They use the same base li styles
   as other meta_value_row_chart rows but with coloured bullet lists. */
.table_view_charts .mv-extra-row {
  /* inherits REHub's border-bottom, padding, font-size from li rule */
  text-align: left !important;
  vertical-align: top;
}

/* Label column Pros / Cons labels — right-aligned like other labels */
.table_view_charts .top_chart_first .mv-extra-row {
  text-align: right !important;
  background-color: var(--mv-surface) !important;
  border-left-color:   var(--mv-border) !important;
  border-bottom-color: var(--mv-border) !important;
  border-right-color:  var(--mv-border) !important;
  font-size: 12px;
  color: var(--mv-muted);
  font-weight: 500;
  padding: 10px 10px 10px 8px;
}

/* Pros label colour accent */
.table_view_charts .top_chart_first .mv-row-pros { color: var(--mv-green) !important; font-weight: 700 !important; }
.table_view_charts .top_chart_first .mv-row-cons { color: #DC2626 !important;     font-weight: 700 !important; }

/* Bullet lists inside Pros / Cons data cells */
.table_view_charts .mv-spec-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.table_view_charts .mv-spec-list li {
  font-size: 12px !important;
  line-height: 1.5;
  padding: 2px 0 2px 14px !important;
  border-bottom: none !important;
  color: var(--mv-black);
  position: relative;
  text-align: left !important;
}
.table_view_charts .mv-spec-pros li::before {
  content: '✓';  /* ✓ tick */
  position: absolute; left: 0;
  color: var(--mv-green);
  font-weight: 900;
  font-size: 11px;
}
.table_view_charts .mv-spec-cons li::before {
  content: '✗';  /* ✗ cross */
  position: absolute; left: 0;
  color: #DC2626;
  font-weight: 900;
  font-size: 11px;
}


/* ------ 32f. Brand row (row_chart_5) ------ */
.table_view_charts .row_chart_5 { font-style: normal !important; }
.table_view_charts .row_chart_5 .store_tax,
.table_view_charts .row_chart_5 a {
  font-weight: 600;
  color: var(--mv-black);
  text-decoration: none;
}


/* ------ 32g. Review criteria bars (row_chart_6 / row_chart_criterias) ------ */
.table_view_charts .row_chart_criterias { text-align: left; }
.table_view_charts .rate-bar-wrap .rate-bar { margin-bottom: 6px; }


/* ------ 32h. Specification headings + attribute rows ------ */
.table_view_charts li.heading_row_chart {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--mv-black) !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background-color: var(--mv-surface) !important;
  padding: 12px 8px !important;
  border-top: 2px solid var(--mv-blue) !important;
}
.table_view_charts .top_chart_item li.meta_value_row_chart {
  font-size: 13px;
  color: var(--mv-black);
  text-align: left !important; /* override REHub chart text-align:center */
  padding-left: 10px !important;
}
.table_view_charts .top_chart_first li.meta_value_row_chart {
  font-size: 12px;
  color: var(--mv-muted);
  font-weight: 500;
}


/* ------ 32i. Label column base styles ------ */
.table_view_charts .top_chart_first ul li {
  background-color: var(--mv-surface) !important;
  border-left-color:   var(--mv-border) !important;
  border-bottom-color: var(--mv-border) !important;
  border-right-color:  var(--mv-border) !important;
  text-align: right;
  font-size: 12px;
  color: var(--mv-muted);
  font-weight: 500;
  padding: 10px 10px 10px 8px;
}


/* ------ 32j. Price spacer for non-sale products ------ */
/* Non-sale products output a plain <span> with no <del>.
   JS inserts .mv-price-spacer to create structural parity with sale products.
   visibility:hidden keeps it invisible while still occupying the correct height. */
.table_view_charts .price-woo-compare-chart .mv-price-spacer {
  visibility: hidden;
  display: block;
  font-size: 13px !important;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 2px;
  pointer-events: none;
  text-decoration: line-through; /* same as real del — same computed height */
}


/* ------ 32k. Read Full Review button ------ */
/* Blue outlined secondary CTA — distinct from the orange primary ADD TO CART.
   Lives in its own mv-row-review row at the bottom of the compare table.
   Label column row is empty; product column rows contain the <a> button. */
.table_view_charts .mv-row-review {
  padding: 10px 8px !important;
  text-align: left !important;
}
.table_view_charts .top_chart_first .mv-row-review {
  background-color: var(--mv-surface) !important;
  border-left-color:   var(--mv-border) !important;
  border-bottom-color: var(--mv-border) !important;
  border-right-color:  var(--mv-border) !important;
}
.table_view_charts .mv-read-review-btn {
  display: block;
  border: 2px solid var(--mv-blue);
  color: var(--mv-blue) !important;
  background: transparent;
  border-radius: var(--mv-radius);
  font-family: var(--mv-font, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 9px 14px;
  text-align: center !important;
  text-decoration: none !important;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.2s, color 0.2s;
  line-height: 1.3;
}
.table_view_charts .mv-read-review-btn:hover {
  background-color: var(--mv-blue);
  color: #fff !important;
  text-decoration: none !important;
}


/* ------ 32l. Responsive ------ */
@media (max-width: 600px) {
  .table_view_charts .top_chart_first { width: 110px; }
  .table_view_charts .top_chart_item { width: 160px; max-width: 180px; }
  .table_view_charts h2 { font-size: 12px !important; }
  .table_view_charts .price-woo-compare-chart { font-size: 16px !important; }
  .table_view_charts .btn-woo-compare-chart { font-size: 11px !important; padding: 8px 10px !important; }
}

/* ============================================================
   XX. CATEGORY LOOP — Custom badge: ribbon → pill
   Converts REHub's corner ribbon into a pill badge sitting
   top-right of the card image. Styled to match the pill badges
   used on the PDP (.mv-badge-pill / .mv-badge-ec).

   Background colour is set by REHub's CSS generator from
   badge_color_N in Theme Options → Custom Badges.
   Text colour + border are overridden per-badge below.
   ============================================================ */

/* --- Outer wrapper: reset the 100×100 clipping square. Right-aligned.
   Onsale % pill is now in the price row, so no overlap risk. --- */
.woo_grid_compact .re-ribbon-badge {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  background: transparent !important;
  z-index: 5;
}

/* --- Inner span: convert rotated bar → pill — matches .mv-badge-pill --- */
.woo_grid_compact .re-ribbon-badge > span {
  position:      static !important;
  display:       inline-block !important;
  transform:     none !important;
  font-size:     11px !important;      /* matches .mv-badge-pill */
  font-weight:   700 !important;
  font-family:   inherit !important;
  letter-spacing: 0 !important;        /* remove ribbon's 0.04em */
  padding:       3px 10px !important;  /* matches .mv-badge-pill */
  border-radius: 5px !important;
  line-height:   1.5 !important;
  white-space:   nowrap !important;
  text-align:    left !important;
  width:         auto !important;
  text-shadow:   none !important;
  box-shadow:    none !important;
  text-transform: none !important;     /* override REHub's uppercase — labels already proper case */
  color: #fff !important;              /* default: white text for dark-bg badges */
}

/* --- Remove the fold-corner ribbon tails (::before / ::after border triangles) --- */
.woo_grid_compact .re-ribbon-badge > span::before,
.woo_grid_compact .re-ribbon-badge > span::after {
  display:  none !important;
  content:  none !important;
}

/* --- Badge 1: Editor’s Choice — amber, matches .mv-badge-ec on PDP --- */
.woo_grid_compact .re-ribbon-badge.badge_1 > span {
  color:  #633806 !important;
  border: 0.5px solid #EF9F27 !important;
}

/* --- Badge 4: Top Rated — normalise to mv-blue (Theme Options has #0011ff) --- */
.woo_grid_compact .re-ribbon-badge.badge_4 > span {
  background: var(--mv-blue) !important;
}


/* ============================================================
   34. CATEGORY LOOP — PRODUCT TITLE HEIGHT EQUALISATION
   The loop template uses <h3> (not <h2>, so REHub's own h2 height
   fix in woocommerce.css doesn’t apply here). Base h3 styles are
   font-size: 20px / line-height: 28px → 2 lines = 56px.
   Setting min-height: 56px means a 1-line title occupies the same
   vertical space as a 2-line title, so the star ratings below
   always line up across adjacent cards regardless of title length.
   overflow:hidden from the existing .flowhidden class clips anything
   beyond 2 lines automatically.
   ============================================================ */

.woo_grid_compact h3 {
  margin-top:    0 !important;     /* kill style.css L34 h3{margin:10px 0} top */
  margin-bottom: 8px !important;   /* slimmer than mb10 class (10px) */
  min-height:    28px !important;
  overflow:      hidden !important;
}


/* ============================================================
   35. CATEGORY LOOP — PRICE ROW WITH DISCOUNT PILL
   The .mv-loop-discount-pill is injected by the PHP filter in
   novamira-sandbox/mv-loop-discount-pill.php.
   Layout: del + pill on row 1, ins (sale price) on row 2.
   Uses flex-wrap so del and pill share row 1 naturally;
   ins gets flex: 0 0 100% which pushes it to its own row.
   ============================================================ */

/* Flex container with wrapping — row 1: del + pill, row 2: ins.
   font-weight: normal cascades to non-sale prices for consistency.
   min-height: 46px ensures non-sale cards (1 price row ~23px) have the
   same container height as sale cards (del ~20px + gap 2px + ins ~23px
   = ~45px), so the border-top divider aligns across all cards in a row.
   align-content: flex-start packs rows to the top; spare space is at
   the bottom, not between rows. */
.woo_grid_compact .price_for_grid .price {
  display:        flex !important;
  flex-wrap:      wrap !important;
  align-items:    center !important;
  align-content:  flex-start !important;
  column-gap:     5px !important;
  row-gap:        2px !important;
  font-weight:    normal !important;
  min-height:     46px;
}

/* del — flex item, auto width, row 1.
   REHub style.css L1139 sets opacity:0.2 on .price del which renders
   any colour invisible regardless of !important on children.
   opacity:1 here overrides that at the del level. */
.woo_grid_compact .price_for_grid .price del {
  flex:            0 0 auto !important;
  opacity:         1 !important;       /* defeat .price del { opacity:0.2 } */
  font-size:       13px !important;
  color:           #7E8C9A !important; /* 2 shades darker than #9CA3AF */
  text-decoration: line-through !important;
}
.woo_grid_compact .price_for_grid .price del .woocommerce-Price-amount,
.woo_grid_compact .price_for_grid .price del bdi {
  font-size: 13px !important;
  color:     #7E8C9A !important;
}

/* Discount pill — flex item beside del, row 1 */
.woo_grid_compact .price_for_grid .mv-loop-discount-pill {
  flex:          0 0 auto !important;
  font-size:     10.5px;
  font-weight:   500;     /* matches product title weight — light metadata feel */
  padding:       1px 5px;
  border-radius: 4px;
  background:    #FEE2E2;
  color:         #DC2626;
  border:        0.5px solid #FECACA;
  line-height:   1.5;
  letter-spacing: 0;
}

/* ins (sale price) — full-width forces its own row 2.
   font-weight: normal matches product title (.fontnormal) — avoids heavy bold. */
.woo_grid_compact .price_for_grid .price ins {
  flex:            0 0 100% !important;
  text-decoration: none !important;
  font-weight:     normal !important;
}


/* ============================================================
   33. CATEGORY LOOP — Onsale badge: hidden from image area.
   The % discount is now injected into the price row as
   .mv-loop-discount-pill via woocommerce_format_sale_price
   filter in functions.php (section 9). Hiding here prevents
   a duplicate badge appearing on the card image.
   ============================================================ */

.woocommerce ul.products li.product .onsale,
.woo_grid_compact .onsale {
  display: none !important;
}

/* ============================================================
   36. CATEGORY LOOP — Hide subcategory label on subcategory pages
   On top-level archives (e.g. /product-category/dashcams/) the .cat_for_grid
   label shows which subcategory each card belongs to — useful.
   On subcategory archives (e.g. /product-category/dashcams/2-channel-dashcams/) every
   card shows the SAME label, adding no value.
   The body class mv-subcategory-archive is added by the PHP filter
   in inc/mv-subcategory.php when the current term->parent > 0.
   ============================================================ */

.mv-subcategory-archive .cat_for_grid {
  display: none !important;
}

/* Category label: 2px bottom gap before brand */
.woo_grid_compact .cat_for_grid {
  margin-bottom: 2px;
}


/* ============================================================
   37. CATEGORY LOOP — Brand label above product title
   .mv-loop-brand is output via PHP (woocommerce_shop_loop_item_title
   in inc/mv-loop-brand.php) and repositioned before <h3> by JS in
   wp_footer. Styled to match the PDP brand treatment in Col 2.
   Brand link goes to /brandstore/{slug}/.
   ============================================================ */

.woo_grid_compact .mv-loop-brand {
  margin-bottom: 3px;  /* was 1px; h3 margin-top:0 means brand carries the gap */
}

.woo_grid_compact .mv-brand-link {
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--mv-blue) !important;
  text-decoration: none;
  display:        inline-block;
  line-height:    1.4;
}

.woo_grid_compact .mv-brand-link:hover {
  text-decoration: underline;
}


/* ============================================================
   38. CATEGORY LOOP — Score pill + Rank badge
   Replaces the WC star rating removed from woogridpart.php.

   Score pill: two-part horizontal pill — dark left segment
   (label) + blue right segment (number). Uses the same 5px
   border-radius and blue colour token as the rest of the system.

   Rank badge: compact blue pill for #1/#2/#3 in category,
   styled consistently with .mv-badge-rank on the PDP.
   ============================================================ */

/* --- Two-part Score pill --- */
.woo_grid_compact .mv-loop-score {
  display:       inline-flex;
  border-radius: 5px;
  overflow:      hidden;
  font-size:     11px;
  font-weight:   700;
  line-height:   1;
  margin-bottom: 4px;
  letter-spacing: 0;
}

.woo_grid_compact .mv-loop-score-label {
  background:     #111;
  color:          #fff;
  padding:        4px 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size:      10px;
  white-space:    nowrap;
}

.woo_grid_compact .mv-loop-score-value {
  background: var(--mv-blue);
  color:      #fff;
  padding:    4px 8px;
  font-size:  12px;
}

a.mv-loop-score:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* --- Rank text — subtle, matches PDP Col 2 “rated as #1” tone.
   No pill/background. Trophy glyph only for rank 1.
   Emphasis is on score and product; rank is supporting info. --- */
.woo_grid_compact .mv-loop-rank {
  display:       flex;
  align-items:   center;
  gap:           4px;
  font-size:     11px;
  font-weight:   400;
  color:         #9CA3AF;    /* --mv-faint: recedes behind score and title */
  margin-bottom: 4px;
  line-height:   1.4;
  letter-spacing: 0;
}

.woo_grid_compact .mv-loop-rank-trophy {
  font-size:    12px;
  line-height:  1;
  flex-shrink:  0;
}

.woo_grid_compact .mv-loop-rank-num {
  font-weight:  500;
  color:        #6B7280;     /* slightly darker than surrounding text */
  font-style:   normal;
}


/* ============================================================
   39. CATEGORY LOOP — Collapsible + scrolling product title

   CHEVRON: absolutely positioned inside the h3 padding-right
   zone (18px). Text ellipsis clips at the content edge, then
   the chevron sits flush right in the padding area.
   Full title text always in DOM — SEO unaffected.

   MARQUEE: on :hover a CSS animation slides the <a> element
   left via margin-left, revealing the hidden portion of the
   title without any extra JS event listeners.
   ============================================================ */

/* --- Collapsed state (1 line + ellipsis + inline chevron) --- */
.woo_grid_compact h3.mv-title-collapsible {
  white-space:    nowrap !important;
  overflow:       hidden !important;
  text-overflow:  ellipsis !important;
  min-height:     28px !important;   /* explicit floor = section-34; avoids sub-pixel diff from auto */
  padding-right:  18px !important;   /* reserves space for chevron */
  position:       relative !important;
}

/* Marquee on hover — remove ellipsis, slide <a> to reveal end */
.woo_grid_compact h3.mv-title-collapsible:hover {
  text-overflow: clip !important;
}
.woo_grid_compact h3.mv-title-collapsible:hover > a {
  animation: mv-title-marquee var(--mv-scroll-dur, 3s) linear 0.4s 1 forwards;
}

@keyframes mv-title-marquee {
  0%   { margin-left: 0; }
  85%  { margin-left: var(--mv-scroll-amt, -80px); }
  100% { margin-left: var(--mv-scroll-amt, -80px); }
}

/* --- Expanded state (full title, chevron still visible) --- */
.woo_grid_compact h3.mv-title-expanded {
  white-space:   normal !important;
  overflow:      hidden !important;
  text-overflow: clip !important;
  min-height:    auto !important;
  padding-right: 18px !important;
  position:      relative !important;
}

/* --- Chevron button (absolute inside h3 padding-right zone) --- */
.mv-title-chevron {
  position:       absolute;
  right:          0;
  top:            50%;
  transform:      translateY(-50%);
  width:          18px;
  height:         100%;
  display:        flex;
  align-items:    center;
  justify-content: center;
  background:     none;
  border:         none;
  padding:        0;
  cursor:         pointer;
  color:          #C4CAD2;
  flex-shrink:    0;
  transition:     color 0.15s;
}
.mv-title-chevron:hover { color: #9CA3AF; }
.mv-title-chevron.mv-chevron-up svg { transform: rotate(180deg); }

/* When expanded, pin chevron to top of multi-line h3 */
.woo_grid_compact h3.mv-title-expanded .mv-title-chevron {
  top:       0.2em;
  transform: none;
}


/* ============================================================
   40. COMPARE PAGE — discount pill
   del/ins display and colour are handled in section 32a
   (.table_view_charts .price-woo-compare-chart del/ins rules).
   This section ONLY adds the pill between del and ins.
   Note: no span.price wrapper in compare context — del, pill,
   and ins are direct children of .price-woo-compare-chart.
   ============================================================ */

.table_view_charts .price-woo-compare-chart .mv-loop-discount-pill {
  display:       inline-block !important;
  vertical-align: middle;
  font-size:     10.5px;
  font-weight:   500;
  padding:       1px 5px;
  border-radius: 4px;
  background:    #FEE2E2;
  color:         #DC2626;
  border:        0.5px solid #FECACA;
  line-height:   1.5;
  letter-spacing: 0;
  margin-right:  0;
}


/* ============================================================
   41. PDP — DESCRIPTION SECTION: SEAMLESS BLUE-LINE DIVIDER

   REHub full_width_extended layout does NOT use standard WC tabs.
   Actual rendered structure:

   #contents-section-woo-area              (tab nav wrapper)
     div.rh-container
       ul.rh-big-tabs-ul                   (the tab buttons)
         li.description_tab
         li.additional_information_tab

   div.lightgreybg.woo-content-area-full   (grey bg wrapper)
     div.content-woo-area
       #section-description                (description content)
       #section-additional_information     (Specification table)

   rh-float-panel > .float-panel-woo-links (sticky panel tab links)

   Changes (all scoped to .single-product, child-theme-only):
   A) Tab nav hidden - UL hidden; wrapper becomes the blue line.
   B) Grey background removed - lightgreybg.woo-content-area-full
      and .content-woo-section set to white.
   C) Additional info section hidden - display:none on
      #section-additional_information (data intact in DB).
   D) Sticky float panel Additional information tab link hidden.
   ============================================================ */

/* A) Hide the REHub tab button UL */
.single-product .contents-woo-area.rh-big-tabs-ul,
.single-product ul.rh-big-tabs-ul {
  display: none !important;
}

/* Transform the tab nav wrapper into a clean blue line divider */
.single-product #contents-section-woo-area {
  border-top: 2px solid var(--mv-blue) !important;
  background: #ffffff !important;
  padding: 0 !important;
  margin: 0 !important;
}
.single-product #contents-section-woo-area > .rh-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

/* B) Grey wrapper (#F9FAFB = body background, set in REHub Theme Options)
      + white inner rh-container. Changed from original lightgreybg (#f4f2f3)
      to match the above-fold section and body background for consistency.
      Source: REHub Theme Options → Appearance → Background Color.
      To maintain consistency on future pages: always use body bg colour for
      section backgrounds. The .lightgreybg class in style.css (#f4f2f3) is
      overridden globally below (Section G) to stay in sync.
      The outer woo-content-area-full and content-woo-section are grey,
      the rh-container (width:1330px, centered) provides the white box.
      Grey framing shows in: left/right centering margins, top (pt30=30px)
      and bottom (pb20=20px) of the section. */
.woo_full_width_extended .woo-content-area-full,
.woo_full_width_extended .woo-content-area-full.lightgreybg {
  background:       #F9FAFB !important;
  background-color: #F9FAFB !important;
}
.single-product .content-woo-section {
  background:       transparent !important;
  background-color: transparent !important;
}

/* F) Spacing: white box touches the blue line (no grey gap above or below),
      with equal left/right centering margins from the rh-container's centering.
      Also equalizes gl-rev-inner internal top/bottom padding (Greenshift sets
      40px top and 80px bottom; we bring bottom to match top). */

/* Remove the pt30 / pb20 utility-class padding on the description section wrapper
   so the white rh-container box starts and ends flush with the grey section */
.single-product .content-woo-section--description {
  padding-top:    0 !important;
  padding-bottom: 0 !important;
}

/* Equalize internal vertical padding inside the white box */
.single-product .gl-rev-inner {
  padding-bottom: 40px !important; /* match the 40px top (Greenshift default) */
}

/* C) Hide the Additional Information section (Specification table).
      display:none removes visual output only.
      Product attributes remain in the DB for compare pages. */
.single-product #section-additional_information,
.single-product .content-woo-section--additional_information {
  display: none !important;
}

/* D) Hide the Additional information link in the sticky float panel nav */
.single-product .float-panel-woo-links .additional_information_tab {
  display: none !important;
}

/* E) Spacing and width alignment for the review content.

   TOP SPACING: woosingle.css sets .rh-container{padding: 3.5% 5.5%} globally,
   adding ~49px top padding on top of the pt30 utility class (30px) for ~79px
   total. The above-fold section ends with pb30 = 30px. Override padding-top
   only, keeping the 5.5% left/right so the rh-container matches the above-fold.

   WIDTH ALIGNMENT: .gl-rev-inner (Greenshift review block) has its own
   max-width:1260px and padding:40px 24px 80px baked in, creating a narrower
   content zone than the above-fold rh-container. Since both rh-containers now
   share the same 5.5% horizontal padding, we remove gl-rev-inner's own
   max-width and horizontal padding so it fills the rh-container width exactly
   — giving the same left/right edges as the above-fold section. */

/* Tighten top gap only — keep 5.5% left/right to match above-fold edges */
.single-product #section-description .rh-container {
  padding-top: 0       !important; /* remove 3.5% top from woosingle.css */
  background:  #ffffff !important; /* white inner box on the grey wrapper */
}

/* Remove gl-rev-inner's own width constraint so it fills the rh-container */
.single-product .gl-rev-inner {
  max-width:     none    !important;
  padding-left:  0       !important;
  padding-right: 0       !important;
  margin-left:   0       !important;
  margin-right:  0       !important;
}


/* ============================================================
   42. GLOBAL GREY CONSISTENCY

   Source of truth: REHub Theme Options → Appearance → Background
   Color (#F9FAFB). This generates body{background-color:#F9FAFB}
   as inline CSS on every page.

   Problem: .lightgreybg in rehub-theme/style.css is hardcoded to
   #f4f2f3 (slightly warmer, darker), causing inconsistency wherever
   the layout uses that class (e.g. woo-content-area-full on PDPs).

   If you update the body background in REHub Theme Options, also
   update the colour value in the Section B override above.
   ============================================================ */

/* G) Sync .lightgreybg with the body background colour globally */
.lightgreybg {
  background-color: #F9FAFB !important;
}

/* ============================================================
   43. CATEGORY PAGE — WHITE BACKGROUND

   Category archive pages (tax-product_cat, tag archives) inherit
   the body background (#F9FAFB grey) which is correct for most
   pages but makes category pages feel heavy. Override to white
   so product cards read cleanly against a neutral base.
   Breadcrumbs, header, and footer are unaffected (they have their
   own background rules).
   ============================================================ */

body.tax-product_cat,
body.tax-product_tag {
  background-color: #ffffff !important;
}


/* ============================================================
   44. GREENSHIFT CSS COMBINER FIXES
   Greenshift's CSS combiner incorrectly merges certain entries.
   These targeted overrides compensate and apply to ALL PDPs.
   ============================================================ */

/* Verdict subline: grey text on light-blue header */
.gl-verd-head-txt p {
  color: #6B7280 !important;
  font-size: 11px !important;
  letter-spacing: 0.01em !important;
}

/* Comparison table: dark header row */
.gl-vs-tbl th {
  background: #111827 !important;
  color: #fff !important;
}