/* ==========================================================================
IndoSealer — Homepage body sections
Source: indosealer-homepage-FINAL_18_2_3.html
NOTE: header/footer CSS is already live and final — not duplicated here.
Uses the same --ink/--orange/--navy/etc. custom properties defined once
in header-footer-style.css (loads on every page ahead of this file).

UPDATED 2026-08-08 — fix pass against live vs. demo comparison:
- ADDED: base anchor reset for this stylesheet's own content area. The
  header/footer stylesheet resets underlines for #ids-header/#ids-footer
  only — nothing in the codebase ever reset it for the homepage body
  content, so every card/link here was rendering with the browser's
  default underline. This was the single root cause behind the trust
  strip, category cards, and product cards all showing underlined text.
- Trust strip: was a static 2-column CSS Grid on mobile/tablet; demo uses
  a horizontally scrolling row instead. Changed to match.
- Category grid: now horizontally scrolls on mobile/tablet (was wrapping
  to a 3-column grid, which is why cards looked oversized at that width).
- Product grid (Popular machines) and Recently-viewed grid: same
  horizontal-scroll treatment on mobile/tablet.
- Added .wishlist-btn styling for the heart icon on product cards
  (visual toggle only for now — see note in front-page.php about wiring
  this to a real wishlist plugin later).
========================================================================== */

/* :root tokens, .badge-mfg/.badge-src colors, and the " + GST" price
   suffix now live once in assets/header-footer-style.css (loads on
   every page) — do not redeclare them here. */

/* ---------- BASE RESET FOR THIS FILE'S CONTENT AREA ---------- */
.hero-wrap a, .trust a, .section a, .navy-section a, .nl-section a,
.discount-banner a{ text-decoration:none; color:inherit; }

/* ---------- HERO ---------- */
.hero-wrap{ position:relative; overflow:hidden; }
.hero-wrap::before{ content:""; position:absolute; top:-120px; right:-140px; width:480px; height:480px; border-radius:50%;
background:radial-gradient(circle at 30% 30%, rgba(224,101,31,.16), rgba(38,68,122,.10) 60%, transparent 72%); z-index:0; }
.hero{ position:relative; z-index:1; padding:44px 60px 34px; display:grid; grid-template-columns:1.05fr .95fr; gap:52px; align-items:center; }
.eyebrow{ font-size:13.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--orange-dark); margin-bottom:16px; }
.hero h1{ font-family:Georgia,serif; font-weight:400; font-size:42px; line-height:1.18; color:#22190f; margin-bottom:18px; max-width:560px; }
.hero h1 b{ font-weight:700; color:var(--orange); }
.hero p.sub{ font-size:15.5px; line-height:1.7; color:var(--ink-soft); max-width:460px; margin-bottom:28px; }
.cta-row{ display:flex; gap:12px; align-items:center; flex-wrap:nowrap; }
.btn-p{ background:var(--orange); color:#fff; font-weight:700; padding:13px 22px; border:none; border-radius:6px; font-size:14.5px; cursor:pointer; white-space:nowrap; }
.btn-s{ background:#fff; color:var(--ink); padding:13px 18px; border:1px solid var(--line); border-radius:6px; font-size:14.5px; cursor:pointer; font-weight:600; white-space:nowrap; }
.btn-link{ font-size:14.5px; font-weight:700; color:var(--orange-dark); border-bottom:1px solid currentColor; padding-bottom:2px; }
.hero-photo{ width:100%; border-radius:14px; overflow:hidden; box-shadow:0 10px 30px rgba(44,36,24,.10), 0 2px 8px rgba(44,36,24,.06); position:relative; }
.hero-photo img{ width:100%; height:340px; object-fit:cover; }
.hero-chip{ position:absolute; bottom:14px; left:14px; background:rgba(255,255,255,.95); border-radius:8px; padding:8px 12px; font-size:13px; font-weight:700; color:var(--ink); box-shadow:0 4px 12px rgba(0,0,0,.12); }
.hero-chip span{ color:#3c6b2e; }

/* ---------- TRUST STRIP ---------- */
.trust{ display:grid; grid-template-columns:repeat(5,1fr); gap:1px; background:var(--panel); margin:0 60px; border-radius:10px; overflow:hidden; box-shadow:0 1px 3px rgba(44,36,24,.06); }
.trust-item{ background:#fff; padding:22px 26px; }
.trust-item .lbl-top{ font-size:14px; color:var(--ink); font-weight:700; }
.trust-item .lbl-sub{ font-size:13.5px; color:var(--muted); margin-top:4px; }

/* ---------- GENERIC SECTION SHELL ---------- */
.section{ padding:30px 60px; }
.section.panel{ background:var(--panel); }
.section h2{ font-family:Georgia,serif; font-size:23px; font-weight:400; color:#22190f; margin-bottom:6px; }
.section p.section-sub{ font-size:14px; color:var(--muted); margin-bottom:24px; }

/* ---------- RECENTLY VIEWED ---------- */
.rv-note{ font-size:13.5px; color:var(--muted); font-style:italic; margin-bottom:14px; }
.rv-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.rv-card{ background:#fff; border:1px solid var(--line); border-radius:10px; overflow:hidden; box-shadow:0 1px 3px rgba(44,36,24,.05); display:flex; flex-direction:column; height:100%; }
.rv-card > a{ display:block; }
.rv-card img{ width:100%; height:120px; object-fit:contain; background:#fff; }
.rv-body{ padding:12px 14px; display:flex; flex-direction:column; flex:1; }
.rv-name{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:13.5px; font-weight:600; color:var(--ink); margin-bottom:4px; line-height:1.3; min-height:35px; }
.rv-price{ font-size:14px; font-weight:700; color:var(--ink); margin-bottom:10px; }
.rv-price s{ color:var(--muted); font-weight:400; margin-right:6px; }
.rv-actions{ display:flex; gap:6px; margin-top:auto; align-items:stretch; height:32px; }
.rv-actions button, .rv-actions a.add, .rv-actions a.buy{ flex:1; height:32px; font-size:13px; font-weight:700; padding:0 6px; border-radius:5px; cursor:pointer; white-space:nowrap; display:flex; align-items:center; justify-content:center; }
.rv-actions .add{ background:#fff; border:1px solid var(--orange); color:var(--orange); }
.rv-actions .buy{ background:var(--orange); border:none; color:#fff; }

/* ---------- DISCOUNT BANNER ---------- */
.discount-banner{ margin:0 60px 8px; background:#fdf1e8; border-left:4px solid var(--orange); border-radius:8px; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.discount-banner .txt{ font-size:14px; color:var(--ink); font-weight:600; }
.discount-banner .code{ background:var(--orange); color:#fff; font-weight:700; font-size:13.5px; padding:4px 10px; border-radius:5px; margin:0 4px; }

/* ---------- CATEGORY GRID ---------- */
.cat-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,260px)); gap:16px; justify-content:start; }
.cat-card{ display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; text-align:center; box-shadow:0 1px 3px rgba(44,36,24,.05); transition:box-shadow .15s; }
.cat-card img{ width:100%; height:130px; object-fit:contain; padding:14px; box-sizing:border-box; background:#fff; flex:0 0 auto; }
.cat-card .lbl{ padding:10px 10px; font-size:14px; color:var(--ink-soft); font-weight:600; flex:1 1 auto; display:flex; align-items:center; justify-content:center; line-height:1.25; }

/* ---------- PRODUCT GRID (Popular machines) ---------- */
.prod-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.prod-card{ background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; box-shadow:0 2px 8px rgba(44,36,24,.06); display:flex; flex-direction:column; height:auto; align-self:stretch; position:relative; }
.prod-photo{ display:block; height:150px; flex:0 0 auto; padding:14px; box-sizing:border-box; }
.prod-photo img{ width:100% !important; height:100% !important; object-fit:contain !important; background:#fff; }
.prod-body{ padding:14px 16px; display:flex; flex-direction:column; flex:1 1 auto; }
.prod-badge{ display:inline-block; align-self:flex-start; font-size:13px; font-weight:700; letter-spacing:.02em; padding:3px 9px; border-radius:20px; margin-bottom:8px; }
.prod-name{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:14.5px; font-weight:600; color:var(--ink); margin-bottom:4px; line-height:1.3; min-height:38px; }
.mini-rating{ font-size:12.5px; color:var(--muted); margin-bottom:4px; }
.mini-rating .stars{ color:#e0a020; margin-right:4px; }
.prod-price{ font-size:14.5px; font-weight:700; color:var(--ink); }
.prod-price s{ color:var(--muted); font-weight:400; margin-right:6px; }
.prod-actions{ display:flex; gap:6px; margin-top:auto; padding-top:10px; align-items:stretch; height:34px; }
.prod-actions .add{ flex:1; height:34px; background:#fff; border:1px solid var(--orange); color:var(--orange); font-size:13px; font-weight:700; padding:0 8px; border-radius:5px; cursor:pointer; white-space:nowrap; display:flex; align-items:center; justify-content:center; }
.prod-actions .buy{ flex:1; height:34px; background:var(--orange); border:none; color:#fff; font-size:13px; font-weight:700; padding:0 8px; border-radius:5px; cursor:pointer; white-space:nowrap; display:flex; align-items:center; justify-content:center; }

/* Wishlist heart button on product/recently-viewed cards.
   Visual toggle only right now — increments/decrements the header &
   footer wishlist counters via the small script at the bottom of
   front-page.php. NOT yet wired to a real wishlist plugin/backend, so
   it won't persist across page loads until that's connected. */
.wishlist-btn{ flex:0 0 34px; width:34px; height:34px; border:1px solid var(--line); border-radius:5px; background:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink-soft); font-size:15px; padding:0; }
.wishlist-btn:hover{ border-color:var(--orange); color:var(--orange); }
.wishlist-btn.active{ color:var(--orange); border-color:var(--orange); }
.rv-actions .wishlist-btn{ flex-basis:32px; width:32px; height:32px; }

/* ---------- SPARES SEARCH (NAVY BLOCK) ---------- */
.navy-section{ background:var(--navy); color:#dbe4f2; padding:34px 60px; }
.navy-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; }
.navy-eyebrow{ font-size:13.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#ff9d5c; margin-bottom:14px; }
.navy-grid h2{ font-family:Georgia,serif; font-weight:400; font-size:26px; color:#fff; margin-bottom:0; }
.navy-grid p{ font-size:14.5px; color:#aebbd4; line-height:1.7; margin-top:12px; max-width:440px; }
.navy-card{ background:var(--navy-panel); border:1px solid var(--navy-line); border-radius:12px; padding:16px; }
.navy-card .title{ font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#ff9d5c; margin-bottom:16px; }
.navy-field{ margin-bottom:9px; position:relative; }
.navy-field label{ display:block; font-size:13px; color:#aebbd4; margin-bottom:4px; }
.navy-field .box{ width:100%; background:var(--navy-input); border:1px solid var(--navy-line); border-radius:6px; padding:8px 11px; font-size:13.5px; color:#e7ecf5; outline:none; font-family:inherit; }
.navy-field .box::placeholder{ color:#7686a3; }
.navy-submit{ display:block; width:100%; background:var(--orange); color:#fff; text-align:center; font-weight:700; font-size:14px; padding:13px; border:none; border-radius:6px; margin-top:6px; cursor:pointer; font-family:inherit; }

/* ---------- CLIENTS / REVIEWS ---------- */
.clients-row{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:14px; }
.client-chip{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:16px 26px; font-size:14.5px; font-weight:700; color:var(--ink-soft); min-width:140px; text-align:center; box-shadow:0 1px 3px rgba(44,36,24,.05); display:flex; align-items:center; justify-content:center; }
.client-chip img{ max-height:40px; max-width:120px; width:auto; height:auto; display:block; }
.client-note{ font-size:13px; color:var(--muted); text-align:center; margin-top:14px; font-style:italic; }
.review-widget{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px 24px; max-width:340px; margin-left:auto; box-shadow:0 1px 3px rgba(44,36,24,.05); }
.review-widget .score{ font-size:30px; font-weight:700; color:var(--ink); }
.review-widget .stars{ color:#e0a020; font-size:15px; margin:4px 0; }
.review-widget .count{ font-size:13.5px; color:var(--muted); }
.rw-item{ border-top:1px solid var(--line); padding-top:10px; margin-top:12px; font-size:13.5px; color:var(--ink-soft); }
.rw-item b{ color:var(--ink); }
.reviews-grid{ display:grid; grid-template-columns:1fr 340px; gap:32px; align-items:start; }

/* ---------- NEWSLETTER ---------- */
.nl-section{ padding:34px 60px; border-top:1px solid var(--line); background:#fff; }
.nl-outer{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.nl-text{ display:flex; align-items:flex-start; gap:14px; max-width:520px; }
.nl-form{ display:flex; gap:0; flex:0 1 380px; min-width:260px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px){
.hero, .section, .navy-section{ padding-left:24px; padding-right:24px; }
.wp-block-woocommerce-empty-cart-block > .wp-block-heading.has-text-align-center:not(.wc-block-cart__empty-cart__title),
.wp-block-woocommerce-empty-cart-block > .related-grid{ margin-left:24px; margin-right:24px; }
.discount-banner{ margin-left:24px; margin-right:24px; }
.trust{ margin:0 24px; }
.hero{ grid-template-columns:1fr; }
.cta-row{ flex-wrap:wrap; }
.hero-photo img{ height:260px; }
.navy-grid{ grid-template-columns:1fr; }
.reviews-grid{ grid-template-columns:1fr; }
.hero h1{ font-size:32px; }

/* Trust strip: horizontal scroll instead of wrapping to a 2-col grid */
.trust{ display:flex; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:thin; border-radius:10px; }
.trust-item{ flex:0 0 220px; }

/* Category grid: horizontal scroll instead of wrapping to a 3-col grid
   (this is also what was making the cards look oversized at this width) */
.cat-grid{ display:flex; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:thin; gap:14px; }
.cat-card{ flex:0 0 150px; }

/* Product grid (Popular machines) + Recently viewed: horizontal scroll.
   FIX 2026-08-18 (pt.2/3): .rv-grid was the OLD Recently-Viewed wrapper class from
   before the card-unification project. The shared indosealer_recently_viewed_section()
   now outputs .related-grid (the same class Similar Products/You May Also Need/Cart
   use), so this rule never matched on Home -- Recently Viewed fell through to the
   unconditional .related-grid{display:grid} rule further down this file, forcing
   every card into its own full-width row on mobile (reported as endless vertical
   scrolling). Added .related-grid here, with !important on the properties that
   actually change layout -- needed both to beat that later unconditional rule in
   this same file, and because this file loads in a different position relative to
   product-style.css/shop-style.css depending on the page. */
.prod-grid, .rv-grid, .related-grid{ display:flex !important; overflow-x:auto !important; -webkit-overflow-scrolling:touch; scrollbar-width:thin; }
.prod-card{ flex:0 0 210px !important; }
.rv-card{ flex:0 0 180px; }
}

/* FIX 2026-08-20: Popular Machines (#popular-machines) bumped from 4 to 8
   cards (see front-page.php) and now scrolls horizontally on desktop too,
   matching Recently Added / Cart Popular Machines. Scoped strictly to
   #popular-machines so Shop hub shelves (.shelf-row) and Category archive
   grids -- which also use the shared .prod-grid/.prod-card classes -- are
   completely unaffected. The existing max-width:980px rule above already
   forces every .prod-grid (including this one) into a 210px-card scroll
   below 980px; that behavior is unchanged. */
#popular-machines .prod-grid{ display:flex; grid-template-columns:none; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:thin; flex-wrap:nowrap; }
#popular-machines .prod-card{ flex:0 0 260px; }

/* PATCH 2026-08-09 homepage fix round - appended, later rules win ties */
.hero-wrap, .hero-wrap *, .trust, .trust *, .section, .section *, .navy-section, .navy-section *, .nl-section, .nl-section *, .discount-banner, .discount-banner *{ box-sizing:border-box; }
.btn-p{ color:#fff !important; }
.btn-s{ font-weight:700; }
/* FIX 2026-08-18 (pt.4): badge text (e.g. "Sourced & Quality-Checked") was being
   clipped mid-word on narrower cards -- white-space:nowrap forced one line, and
   .prod-card's overflow:hidden then clipped whatever didn't fit. Longer badge
   copy now wraps to a second line instead of being cut off. */
.prod-badge{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; min-height:22px; }

/* FIX 2026-08-18 (pt.2): on mobile/tablet, "Sourced & Quality-Checked" was just
   barely overflowing the standard ~210px card width and wrapping to 2 lines,
   throwing off row alignment with 1-line badges like "In-house manufactured"
   (see pt.3 above for why that matters). Tightened font-size/padding slightly
   (not enough to visibly change the pill's look) closes that gap so it fits on
   one line at the normal card width again. white-space stays "normal" (not
   nowrap) as a safety net -- Cart's narrower cart-scroll cards are allowed to
   wrap rather than clip if a future longer badge text ever overflows there. */
@media (max-width:980px){ .prod-badge{ font-size:12px; padding:3px 7px; letter-spacing:.01em; } } .prod-price{ min-height:20px; }
/* FIX 2026-10-20 (pricing layout): force strikethrough listed price onto its own line; the discounted price + the existing " + GST" ::after (see header-footer-style.css) then sit together on the next line. Requested for Shop + Category grid cards. */
.prod-price del{ color:var(--muted); font-weight:400; font-size:13px; margin-right:0; text-decoration:line-through; display:block; }

/* FIX 2026-10-20 (Cart GST): home-style.css is enqueued on is_cart() (see functions.php) so the Cart page's WooCommerce Blocks unit-price shows " + GST" the same as product cards. Scoped to the per-unit price only (.wc-block-cart-item__prices), not the line Total, which reuses the same component class. */
.wc-block-cart-item__prices .wc-block-components-product-price::after{ content:" + GST"; font-size:12px; font-weight:400; color:var(--muted); }

/* FIX 2026-10-20 (Cart mobile cutoff): on narrow screens the Total column's last digits were getting clipped against the viewport edge (table/wrapper had overflow-x:hidden with no right padding). Give it room and shift it left. */
@media (max-width:480px){
  table.wc-block-cart-items, .wc-block-cart-items{ overflow-x:visible; }
  .wc-block-cart-item__total{ padding-right:10px; font-size:13px; }
}
.prod-price ins{ text-decoration:none; color:var(--ink); font-weight:700; }
.rv-price del{ color:var(--muted); font-weight:400; font-size:13px; margin-right:6px; text-decoration:line-through; }
.rv-price ins{ text-decoration:none; }
.wishlist-btn{ -webkit-tap-highlight-color:transparent; }
.wishlist-btn.active{ color:#c8352a; border-color:#c8352a; }
.wishlist-btn:focus, .prod-actions a:focus, .prod-actions button:focus, .rv-actions a:focus, .rv-actions button:focus{ outline:none; }
.wishlist-btn:focus-visible{ box-shadow:0 0 0 2px rgba(224,101,31,.35); }
.prod-actions .add.just-added, .rv-actions .add.just-added{ background:#eaf3e6 !important; border-color:#3c6b2e !important; color:#3c6b2e !important; transition:background .15s ease, border-color .15s ease, color .15s ease; }
.client-chip{ padding:22px 30px; min-width:160px; min-height:96px; }
.client-chip img{ max-height:64px; max-width:170px; }
.nl-section{ overflow:hidden; }
.nl-outer{ min-width:0; width:100%; }
.nl-text{ min-width:0; }
.nl-form{ flex:1 1 320px; min-width:0; max-width:380px; }
.nl-form input{ min-width:0; flex:1 1 auto; }
@media (max-width:980px){
	.nl-section{ padding-left:24px; padding-right:24px; }
	.prod-card{ flex:0 0 240px; box-sizing:border-box; }
	.rv-card{ flex:0 0 180px; box-sizing:border-box; }
	.prod-grid, .rv-grid{ align-items:stretch; }
	.prod-actions{ gap:4px; }
	.prod-actions .add, .prod-actions .buy{ padding:0 4px; font-size:12px; }
	.prod-name{ min-height:36px; }
	.mini-rating{ min-height:17px; }
	/* FIX 2026-08-18 (pt.3): min-height raised from 16px to 20px to match the actual
   rendered height when sold-count text is present -- previously the empty state (16px)
   and populated state (~19.2px) reserved different heights, so every row below (price,
   stock pill, delivery note, buttons) landed a few px lower on cards that had sold-count
   text vs cards that didn't. Applies to every card everywhere (shared component). */
.mini-sold{ min-height:20px; }

/* FIX 2026-08-18 (pt.4): sold-count now styled as a small highlight pill (matching
   the visual weight of the in-stock pill) instead of plain muted text, so a fast-
   selling machine stands out at a glance. :empty guard keeps products with no
   sold-count from showing an empty pill outline. Shared component -- applies to
   every card everywhere (Home, Category, Product, Cart, Shop). */
/* FIX 2026-08-19 (pt.3): align-self:flex-start added to match .prod-badge --
   without it, the pill was a direct child of the flex-column .prod-body and
   stretched to the parent's full width (default flex align-items:stretch),
   so the text wrapped to 2 lines with a lot of empty space instead of
   shrink-wrapping to its own content like the mfg badge does. Shared
   component -- applies to every card everywhere (Home, Category, Product,
   Cart, Shop). */
.mini-sold:not(:empty){
  display:inline-block;
  align-self:flex-start;
  white-space:nowrap;
  background:#fdeee0;
  color:#b5651d !important;
  font-weight:700 !important;
  padding:2px 9px;
  border-radius:12px;
}

	.client-chip{ min-width:130px; min-height:84px; padding:18px 22px; }
	.client-chip img{ max-height:54px; max-width:140px; }
}
@media (max-width:600px){
	.nl-section{ padding-left:16px; padding-right:16px; }
	.cta-row{ flex-wrap:wrap; }
	.cta-row .btn-p{ flex:1 1 100%; text-align:center; }
	.cta-row .btn-s{ flex:1 1 calc(50% - 6px); text-align:center; padding-left:8px; padding-right:8px; }
}
@media (max-width:600px){ .cta-row .btn-s{ white-space:normal; min-width:0; } }

/* REMOVED 2026-08-15: dead .wishlist-btn/.active rules — the TI Wishlist plugin
   never applies an .active class (it uses .tinvwl-product-in-list), so these two
   conflicting blocks never matched anything live. Real wishlist heart styling now
   lives in header-footer-style.css, targeting the plugin's own class directly. */

/* ---------- FIX 2026-08-15: shop-by-category mobile scroller (pt.12) ---------- */
@media (max-width:600px){
  .cat-grid{
    display:flex; flex-wrap:nowrap; overflow-x:auto; gap:12px;
    grid-template-columns:none; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch;
    padding-bottom:6px;
  }
  .cat-grid .cat-card{ flex:0 0 150px; scroll-snap-align:start; }
}

/* FIX 2026-08-15 (pt.1 badge / pt.4 price row): badge was stretching
   full-width because it's a direct child of a flex-column parent
   (.prod-body) -- default flex align-items:stretch overrides
   display:inline-block. align-self:flex-start fixes it.
   .mini-sold's min-height was only set under a tablet/mobile media
   query, so on desktop an empty (hidden) sold-count collapsed to ~0
   height while a present one didn't, misaligning the price row below
   it across a grid row. Making it global fixes desktop too. */
/* FIX 2026-08-18 (pt.3): min-height raised from 16px to 20px to match the actual
   rendered height when sold-count text is present -- previously the empty state (16px)
   and populated state (~19.2px) reserved different heights, so every row below (price,
   stock pill, delivery note, buttons) landed a few px lower on cards that had sold-count
   text vs cards that didn't. Applies to every card everywhere (shared component). */
.mini-sold{ min-height:20px; }

/* FIX 2026-08-19 (pt.3, root cause): the orange sold-count PILL styling
   (.mini-sold:not(:empty) background/padding/border-radius/align-self) has
   only ever existed inside the @media(max-width:980px) block further up this
   file -- so on desktop the sold-count rendered as plain unstyled text with
   no pill at all ("you forgot to provide this badge in desktop version").
   Duplicated here as a genuinely global, unscoped rule so desktop matches
   mobile/tablet. Shared component -- applies everywhere. */
.mini-sold:not(:empty){
  display:inline-block;
  align-self:flex-start;
  white-space:nowrap;
  background:#fdeee0;
  color:#b5651d !important;
  font-weight:700 !important;
  padding:2px 9px;
  border-radius:12px;
}

/* FIX 2026-08-15 (pt.2): WooCommerce's AJAX add-to-cart automatically
   injects a "View cart" link (.added_to_cart) right after the Add to
   Cart button once an item is added -- native WC behaviour, not custom
   markup. Not needed since the header cart icon/counter already covers
   this, and it was visually splitting the Add to Cart / Buy Now pair. */
.prod-actions a.added_to_cart, .prod-actions .added_to_cart{ display:none !important; }

/* FIX 2026-08-15 (pt.5,10): Add to Cart/Buy Now/product name links were
   relying on an ancestor-scoped ".section a{text-decoration:none}" rule
   that only matches Home's own section wrapper. Shop's .shelf-row wrapper
   never matched it, so links there kept the default underline even
   though color/border/background were all correct. Setting it directly
   on the card's own classes makes it independent of whichever section
   wrapper happens to contain the card. */
.prod-card .prod-name,
.prod-card .prod-actions .add,
.prod-card .prod-actions .buy,
.rv-card .rv-actions .add,
.rv-card .rv-actions .buy,
.rel-card .card-actions a{ text-decoration:none !important; }

/* FIX 2026-08-15 (pt.7): the spare-search box sits on the dark navy
   section and needs light text (#e7ecf5) at rest, but a global Kadence
   input:focus rule (designed for light-background forms elsewhere on
   the site) was forcing dark text specifically while the field is
   focused/being typed into -- the light color only won back once the
   field lost focus. Pinning color explicitly on :focus fixes it. */
.navy-field .box:focus{ color:#e7ecf5 !important; border-color:var(--orange) !important; }

/* FIX 2026-08-15 (pt.1, redo with !important): shop-style.css has its own
   .prod-badge rule (width:fit-content, no align-self) that loads after
   this file, so it can win on width even when this file sets align-self.
   Forcing both with !important guarantees a content-hugging badge
   regardless of load order between the two files. */
.prod-badge{ align-self:flex-start !important; width:fit-content !important; }


/* FIX 2026-08-16 (pt.1/2): .stock-pill and .delivery-note previously only
existed (styled) in category-style.css, scoped to .cat-page -- so Shop and
Home, which don't load that file, rendered the markup completely unstyled
(plain black text, no pill background) or, on Home, didn't render the markup
at all (front-page.php has been updated separately to add it). Unscoped
copies added here in the shared stylesheet so both fields render identically
on Home, Category, and Shop. */
.stock-pill{ display:inline-block; font-size:11px; font-weight:700; color:#3c6b2e; background:#eaf3e6; border-radius:12px; padding:2px 9px; margin:4px 0 6px; width:fit-content; }
.stock-pill.out-of-stock{ color:#a33; background:#fbeaea; }
.delivery-note{ display:flex; align-items:center; gap:4px; font-size:10.5px; color:var(--muted); margin-bottom:10px; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; height:14px; }
.delivery-note svg{ flex:0 0 auto; stroke:#3c6b2e; width:12px; height:12px; }


/* FIX 2026-08-16 (pt.6): on the product page, product-style.css has a
.gallery-badge{position:absolute; top:14px; left:14px} rule meant only for
the main hero product image gallery. The shared badge component
(indosealer_mfg_badge_html()) outputs both "gallery-badge" and "prod-badge"
classes together, so once product-style.css and this file both load on the
same page (product pages, after the card-unification work), the hero-image
rule was bleeding into every mini-card badge inside .prod-card too, pulling
it out of flow and stacking it on top of the thumbnail image. Scoped reset
below, so only the legitimate hero-image badge keeps its absolute position. */
.prod-card .prod-badge{ position:static !important; top:auto !important; left:auto !important; }


/* FIX 2026-08-16 (pt.9): grid-container rule for the "New in store" section
on the Cart page (see indosealer_new_in_store_shortcode() in functions.php).
.related-grid already existed in product-style.css for Similar Products/
Spares, but that file only loads on product pages -- Cart needs its own
copy of just the container rule since this file is now shared there too. */
.related-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
@media (max-width:900px){ .related-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .related-grid{ grid-template-columns:1fr; } }


/* ADDED 2026-08-17 (pt.3): Cart page empty-state -- Popular Machines +
   Recently Viewed. .cart-scroll is a modifier on top of the existing
   .related-grid rules above: forces a horizontal scroll strip at every
   breakpoint (desktop included), unlike Home's own Popular Machines section
   (grid on desktop, scroll only under 900px) -- deliberately requested to
   scroll everywhere on the Cart page specifically. */
.related-grid.cart-scroll,
.related-grid.cart-scroll[style]{ display:flex !important; grid-template-columns:none !important; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:thin; flex-wrap:nowrap; }
.related-grid.cart-scroll .prod-card{ flex:0 0 210px; }
@media (max-width:560px){ .related-grid.cart-scroll .prod-card{ flex:0 0 180px; } }

/* FIX 2026-08-19 (pt.8): cart-scroll cards (210px/180px) are narrower than Home's
   grid cards, so the longer "Sourced & quality-checked" badge text wrapped to 2
   lines here specifically -- which was also what made those cards taller than
   their neighbors in the same row. Scoped to cart-scroll only so Home/Category/
   Shop badge sizing is untouched. */
.related-grid.cart-scroll .prod-badge{ font-size:11.5px; letter-spacing:0; padding:3px 7px; white-space:nowrap; }
.related-grid.cart-scroll{ align-items:stretch; }

.cart-suggest-heading{ font-family:Georgia,serif; font-size:20px; color:var(--ink); margin:0 0 16px; }

/* FIX 2026-08-17 (pt.5): align WooCommerce's native Empty-Cart block
   ("Popular Machines") with our own Recently Viewed section on the Cart
   page. The Empty Cart block ships its own generic wp-block-heading
   (system sans, 28px, bold, centered) and no side padding, while
   Recently Viewed uses .section (30px/60px padding, Georgia h2) --
   causing both the heading style AND the card row's left edge to be
   misaligned. Matching .section's padding + h2 style here fixes both
   at once (reported as two separate bugs, one root cause). */
/* NOTE: .section (Recently Viewed) is nested INSIDE
   .wp-block-woocommerce-empty-cart-block, not a sibling -- so padding
   on the block itself double-stacks with .section's own 60px padding.
   Target Popular Machines' own heading + grid directly instead, with
   margin (not padding) so their outer edge lines up with .section's
   content edge without affecting .section itself. */
.wp-block-woocommerce-empty-cart-block > .wp-block-heading.has-text-align-center:not(.wc-block-cart__empty-cart__title){
  font-family:Georgia,serif !important; font-size:23px !important; font-weight:400 !important;
  color:#22190f !important; text-align:left !important;
}
.wp-block-woocommerce-empty-cart-block{ padding-top:30px; }
/* Side margins only above the mobile breakpoint -- the @media(max-width:980px)
   override further down in this file (RESPONSIVE section) sets the 24px
   mobile equivalent; without this min-width guard, this unconditional rule
   sat later in the cascade than that media block and always won, even on
   mobile, undoing the mobile alignment fix. */
@media (min-width: 981px){
  .wp-block-woocommerce-empty-cart-block > .wp-block-heading.has-text-align-center:not(.wc-block-cart__empty-cart__title),
  .wp-block-woocommerce-empty-cart-block > .related-grid{ margin-left:60px; margin-right:60px; }
}
