/* Conversion Pro — homepage sections (module 10). Softened treatment
   (confirmed): white/cream backgrounds throughout, red reserved for
   accents only — no full saturated-red section blocks. */

.cvp-home-section {
	background: #fff;
	/* Reported live (again) that even after the earlier 8/32 tuning, the
	   gap between Shop by Collection → Offers strip → Best Sellers still
	   read as too much dead space (marked with arrows on a screenshot).
	   Cut further to 4/10 — combined with the -22px negative margin
	   below, this brings the visible gap between sections down to
	   roughly 20px, matching the tight spacing used elsewhere on the
	   page (e.g. the reviews→heading→gallery transitions), rather than
	   the ~48px the previous 8/32 padding produced. */
	padding: 4px 0 10px;
}

/* Confirmed live: each of these shortcode widgets sits inside its own
   Elementor container, and those containers stack with a fixed gap
   between them (measured live at 30px for these two transitions) —
   outside our own section padding, and not something plugin CSS can
   reach directly since it's Elementor's own container spacing.
   Pulling each section up with a negative margin is the reliable fix:
   it visually closes the gap down to a small intentional ~8px without
   touching Elementor's container structure (which could get reset if
   the page is ever re-saved in the editor). -22px (not -32px) here:
   confirmed live this specific pair of transitions measures 30px, not
   the 40px the shop→bestsellers transition measured before the offers
   strip was inserted between them — -32px overshot into a -2px
   overlap. Also confirmed live that Shop by Collection itself (the
   very first section, right under the hero) had the exact same 30px
   external gap — reducing its own top PADDING earlier only tightened
   the space between its box edge and its heading text, not the gap
   above the box itself, since padding never moves a box's outer edge;
   only a negative margin does. */
.cvp-shop-by-collection,
.cvp-offers-strip,
.cvp-bestsellers {
	margin-top: -22px;
}

/* Confirmed live: with no explicit font-size here, this <h2> inherited
   the theme's large default heading size (same oversized-heading issue
   already flagged and fixed for the single-product page's own copy of
   these sections — see .single-product .cvp-home-section h2 in
   product.css — just not yet applied to the homepage's actual
   instances of "Shop by Collection"/"Best Sellers"). */
.cvp-home-section h2 {
	color: #C4080E;
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
}

.cvp-home-section__subtitle {
	margin: 0;
	font-size: 14px;
	color: #555;
}

/* Heading+subtitle sit as a sidebar beside the row (reference-site
   layout), vertically centered against the tile row's height, rather
   than stacked as their own line above it. */
.cvp-home-section__layout {
	display: flex;
	align-items: center;
	gap: 24px;
}

.cvp-home-section__intro {
	flex: 0 0 200px;
}

.cvp-home-row-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
}

/* Small, light outline arrows (reference-site sizing) — not the bold
   filled 32px circles from the first pass, which read as too heavy. */
/* !important on sizing: same Motta base `button` rule that inflated
   the hero arrows to a 160x36 pill hits these too — confirmed live. */
.cvp-home-row-arrow {
	flex: 0 0 auto;
	width: 26px !important;
	height: 26px !important;
	min-width: 0 !important;
	padding: 0 !important;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #e3b3b4;
	color: #C4080E;
	font-size: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.cvp-home-row-arrow:hover {
	border-color: #C4080E;
	background: #fdf2f2;
}

.cvp-home-scroll-row {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

/* Best Sellers only: confirmed live that with just 8 products (~1190px of
   actual card content) sitting in the full section width (~1844px on
   desktop), the row's default left-alignment left a large dead gap on
   the right — this only matters when there are few enough products to
   fit without scrolling, so it's scoped to Best Sellers rather than
   Shop by Collection, which already has enough tiles to overflow and
   scroll (centering there would have no visible effect anyway, but
   scoping keeps intent clear). */
.cvp-bestsellers .cvp-home-scroll-row {
	justify-content: center;
}

/* Confirmed live this justify-content:center above was actually a no-op:
   .cvp-home-scroll-row never grows past its own content width (no
   flex-grow), so there was never extra space inside IT to center within
   — the row was simply sizing to exactly however many product cards fit,
   then sitting left-anchored right after the "Best Sellers" sidebar
   heading, with a large dead gap on the right on wide screens. Fixing
   this for real ("entire section centered horizontally to the page")
   needs two changes: (1) stack the heading above the row instead of
   beside it as a sidebar, since a left-side heading column makes true
   full-page centering of the row impossible without the row appearing
   skewed right of true center; (2) center the row-wrapper (which holds
   the prev arrow + row + next arrow together) within the FULL section
   width, not just the space to the right of a sidebar. Scoped to Best
   Sellers only — Shop by Collection keeps its sidebar layout since its
   13 tiles reliably overflow and scroll regardless. */
.cvp-bestsellers .cvp-home-section__layout {
	flex-direction: column;
	align-items: stretch;
}
.cvp-bestsellers .cvp-home-section__intro {
	flex: 0 0 auto;
	text-align: center;
	margin-bottom: 8px;
}
.cvp-bestsellers .cvp-home-row-wrapper {
	width: 100%;
}
/* Only centers the row-wrapper itself on wider screens. Deliberately NOT
   applied under the existing 782px mobile breakpoint below: centering a
   flex row that's wider than its container (which is the normal mobile
   case — 10 cards don't fit in a phone width) clips the start of the
   scrollable content in some browsers, a well-known flex+overflow
   interaction. Mobile keeps its default left-anchored scroll, which
   already worked correctly. */
@media ( min-width: 783px ) {
	.cvp-bestsellers .cvp-home-row-wrapper {
		justify-content: center;
	}
}

.cvp-home-scroll-row::-webkit-scrollbar {
	display: none;
}

.cvp-home-scroll-row > * {
	scroll-snap-align: start;
	flex: 0 0 auto;
	width: 140px;
}

.cvp-collection-tile {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.08 );
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Small lively-on-hover effect (reference-site behavior): the tile
   lifts slightly and its image zooms in a touch. */
.cvp-collection-tile:hover {
	box-shadow: 0 6px 16px rgba( 0, 0, 0, 0.15 );
	transform: translateY( -2px );
}

/* Image + label rendered as one visually attached unit — label is a
   solid banner flush under the image (reference-site style), not
   floating text, so the two read as a single tile. */
.cvp-collection-tile img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.cvp-collection-tile:hover img {
	transform: scale( 1.08 );
}

/* Fixed min-height, flex-centered: confirmed live that one/two-line
   category names (e.g. "Cartoon" vs "Sports, Fitness and Gym") were
   rendering the red banner at two different heights (27.6px vs
   43.2px) since it was sizing to its own text — made the whole row
   look uneven. min-height matches the two-line case so every label is
   the same height regardless of name length. */
.cvp-collection-tile__label {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	background: #C4080E;
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	text-align: center;
	line-height: 1.3;
	padding: 6px;
}

@media ( max-width: 782px ) {
	.cvp-home-section__layout {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.cvp-home-section__intro {
		flex: 0 0 auto;
	}

	/* Root cause of the missing right-hand arrow on mobile: under
	   flex-direction:column + align-items:flex-start, a flex item with
	   no explicit width sizes to its own content instead of the
	   column's width — so this wrapper was expanding to fit all ~13
	   unclipped tiles (~1600px), pushing the "next" arrow off past the
	   right edge of the screen instead of staying pinned in view.
	   Confirmed live. Forcing it to the column's width lets
	   .cvp-home-scroll-row's own overflow-x:auto do the scrolling
	   instead, keeping both arrows on-screen. */
	.cvp-home-row-wrapper {
		width: 100%;
	}

	.cvp-home-scroll-row > * {
		width: 110px;
	}
}

/* Coupons/Offers strip — reference-site card style: white background,
   thick rounded red border, centered copy, code called out in bold.
   Always single-line/horizontally-scrollable now, on every screen size,
   per explicit request ("let all coupons be in single line, scrollable
   if more coupons are present") — this used to only scroll below the
   782px mobile breakpoint and wrap onto multiple rows above it (see the
   removed @media block this replaced); applies to both the homepage's
   own Offers strip AND the Sale page's offers block, since both reuse
   this exact class. flex-start (not center): centering + overflow-x:auto
   together is a known flexbox quirk — with few enough cards that nothing
   actually overflows, flex-start still reads fine (a short, left-anchored
   row), but centering would clip the start of the row from view the
   moment there ARE enough cards to need scrolling. */
.cvp-offers-strip__row {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	/* Back to stretch (was briefly flex-start — see version control):
	   the Tiered Offer card's body is now a single one-line "Buy for
	   ₹X, Get Y off — +N more tiers" detail line, exactly like every
	   real coupon card's one-line detail (see tiered_offer_cards()'s
	   docblock), so every card in the row has the identical header +
	   one-line-detail + footer shape again. With that structural parity
	   restored, stretch is what makes every card's dashed footer
	   divider line up at the same height across the row (explicit
	   request), instead of each card floating at its own natural
	   height. */
	align-items: stretch;
	gap: 16px;
	/* flex-start first, "safe center" second: centers the row when it
	   fits the viewport (explicit request — "center the entire section
	   of coupon cards"), but the CSS Box Alignment spec's "safe" keyword
	   automatically falls back to start-alignment instead of centering
	   once there are enough cards to need the horizontal scroll — a
	   plain "center" would clip the first card or two off the left edge
	   in that case. Browsers that don't understand "safe center" simply
	   ignore that whole declaration (invalid value), leaving the
	   flex-start above in effect — safe progressive enhancement, not a
	   real fallback chain. */
	justify-content: flex-start;
	justify-content: safe center;
	scroll-snap-type: x mandatory;
	padding-bottom: 4px;
}

/* Ticket-style redesign (replacing the plain bordered box that had
   inconsistent per-card colors and, after the previous hover-to-reveal
   pass, a lot of dead space when the detail line was hidden). Owner
   picked this shape + a single unified cream/red coloring for every
   card (no more per-card color variance) — dashed border reads as a
   "coupon" shape rather than a generic outlined box. Fixed (not
   growing/shrinking) width now that the row is a permanent horizontal
   strip rather than a wrapping grid — flex:1 1 260px would otherwise
   stretch cards to fill the full row width when there are only 1-2
   offers, which looks wrong in a scroll-strip layout. */
/* v0.19.92 — small trigger badge (Welcome offer / Come back! / VIP offer /
   Referral reward / Just for you), pinned to the card's top-right corner.
   Omitted entirely for sitewide/influencer cards — see
   CVP_Homepage::trigger_badge_label(). */
.cvp-offer-card__badge {
	position: absolute;
	top: -8px;
	right: 10px;
	background: #b3261e;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 3px 8px;
	border-radius: 999px;
	line-height: 1.4;
	white-space: nowrap;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	z-index: 1;
}

.cvp-offer-card {
	position: relative;
	display: flex;
	flex-direction: column;
	/* flex-start, not center: with every card now sharing the exact same
	   header + one-line-detail + footer shape (see .cvp-offers-strip__row's
	   stretch comment), centering would only matter if two cards' natural
	   content heights ever differ by a pixel or two (e.g. one footer label
	   wrapping slightly differently) — center would then nudge that one
	   card's whole content block down, throwing its dashed footer divider
	   out of line with its neighbors again. flex-start pins every card's
	   content to the same top offset regardless, which is what actually
	   keeps the divider lines aligned across the row (explicit request). */
	justify-content: flex-start;
	/* Width/min-height are admin-adjustable per page (Conversion Pro →
	   Coupons → Page Display → "Row layout per page"), set as inline
	   custom properties on the .cvp-offers-strip__row wrapper — falling
	   back to these original fixed values when nothing's configured, so
	   sites that never touch the new setting render identically to
	   before. */
	flex: 0 0 var( --cvp-offer-card-width, 260px );
	max-width: var( --cvp-offer-card-width, 360px );
	min-height: var( --cvp-offer-card-min-height, auto );
	background: #FFF6F6;
	border: 1.5px dashed #C4080E !important;
	border-radius: 10px;
	padding: 14px 18px;
	box-sizing: border-box;
	scroll-snap-align: start;
}

.cvp-offer-card__top {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.cvp-offer-card__icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	display: inline-flex;
}
.cvp-offer-card__icon svg {
	width: 100%;
	height: 100%;
}

.cvp-offer-card__headline {
	font-weight: 700;
	/* 14px, not the original 15px — confirmed live that "Spend more, save
	   more" (the longest headline in use) was still getting ellipsis-cut
	   to "Spend more, save…" at 15px in the default 260px card width once
	   nowrap was added below. 14px is the smallest step that lets it sit
	   on one full line without shrinking the icon/padding or widening the
	   card, and is barely noticeable next to the shorter coupon headlines. */
	font-size: 14px;
	color: #C4080E;
	/* Always single-line (explicit request — "Spend more, save more" was
	   wrapping to two lines on the Tiered Offer card while every other
	   card's headline stayed on one line). Matches the same nowrap +
	   ellipsis treatment already used on .cvp-offer-card__detail below. */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


/* Single-line, ellipsis-truncated description (explicit request —
   "should always be single line, even when description is large - end
   the line with ...."). Always visible now (no hover-hide — that caused
   the dead-space complaint on the previous version): the ticket shape
   is compact enough on its own that hiding this line isn't needed. */
.cvp-offer-card__detail {
	font-size: 12px;
	color: var(--text-secondary, #666);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 10px;
}

/* Dashed divider + code row, the "ticket stub" — code color fixed to
   the brand red (was inheriting plain text color, which read as white
   against a dark viewer theme; hardcoding the hex keeps it readable
   and on-brand regardless of the visitor's OS/browser color scheme). */
.cvp-offer-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px dashed #C4080E;
	padding-top: 8px;
}

.cvp-offer-card__code {
	font-family: monospace;
	font-size: 13px;
	font-weight: 700;
	color: #C4080E;
	letter-spacing: 0.02em;
}

.cvp-offer-card__copy {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	padding: 0;
	border: none;
	background: transparent;
	color: #C4080E;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.cvp-offer-card__copy svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}
.cvp-offer-card__copy.is-copied {
	color: #0F6E56;
}

/* No-code cards (Tiered Offer, Buy X Get Y) — same dashed-divider
   "ticket stub" footer as a real coupon's code row, but reading "APPLY
   AT CHECKOUT" in place of a code + copy button, since there's no code
   to copy. min-height/align-items match the code+copy-button row's own
   26px-tall .cvp-offer-card__copy button (see above) exactly, so this
   text-only row takes up the identical vertical space instead of
   collapsing to just its own line-height — confirmed live that without
   this the label sat visibly higher inside its footer than the code sat
   inside a real coupon's footer, even though the border-top divider
   itself lined up fine. */
.cvp-offer-card__footer--no-code {
	justify-content: center;
	align-items: center;
	min-height: 26px;
}
.cvp-offer-card__no-code {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	/* !important: confirmed live this text rendered in the theme's
	   default black instead of red for logged-out visitors while
	   logged-in admins correctly saw red — same page, same CSS file, so
	   the far more likely explanation is a page-caching plugin serving
	   guests a stale cached copy of this page from before this color was
	   added (guests are typically the ones a cache serves; logged-in
	   sessions are usually excluded from the cache and always get a
	   fresh render). !important here is just a defensive guard against
	   any theme rule that might otherwise win on specificity; the real
	   fix if this recurs is purging the site's page cache after an
	   update, not this override. */
	color: #C4080E !important;
}

/* Hover tooltip — shows a coupon's Description field (Conversion Pro →
   Coupons → Create → "Description"), or the auto-built summary for
   Tiered Offer/BXGY cards, when the cursor is over that specific card.
   Content/positioning is handled by homepage.js's initOfferCardTooltips()
   via a single shared .cvp-offer-tooltip element appended to <body> and
   positioned with position:fixed. A pure-CSS ::after version was tried
   first but silently never appeared: .cvp-offers-strip__row needs
   overflow-x:auto for the horizontal scroll strip, and per the CSS
   Overflow spec, setting one axis to non-visible forces the OTHER axis to
   compute as auto too (even if left unset) — so a tooltip popping out
   above a card was being clipped by the row's own bounding box, even
   though the attribute/cursor were both correctly applied. Rendering it
   in <body> instead sidesteps that entirely. */
.cvp-offer-card[data-cvp-tooltip] {
	cursor: help;
}
.cvp-offer-tooltip {
	display: none;
	position: fixed;
	max-width: 260px;
	background: #2B2B2B;
	color: #fff;
	font-size: 12px;
	line-height: 1.5;
	padding: 8px 10px;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.18);
	pointer-events: none;
	z-index: 9999;
	/* The Tiered Offer card's description (see tiered_offer_cards()) is
	   built as one bulleted "• Buy for ₹X, Get Y off" line per tier,
	   joined with real \n characters — pre-line preserves those as
	   visible line breaks instead of collapsing them into one run-on
	   line like normal text-node whitespace handling would. */
	white-space: pre-line;
}
/* Touch devices: tap-to-show/tap-elsewhere-to-dismiss now (see
   homepage.js's initOfferCardTooltips()) rather than disabling the
   tooltip outright — a max-width narrower than the viewport keeps it
   from ever running edge-to-edge on a small phone screen. */
@media (hover: none) {
	.cvp-offer-tooltip {
		max-width: min(260px, calc(100vw - 32px));
	}
}

/* Sale page (/sale/) offers block — reuses .cvp-offers-strip__row/
   .cvp-offer-card verbatim (see CVP_Homepage::prepend_sale_offers_block()),
   just its own outer wrapper since it isn't a .cvp-home-section (this
   page is a plain Elementor page, not the homepage template) and needs
   room to breathe once JS repositions it between this page's own top
   banner and the product grid, rather than sitting flush against either. */
.cvp-sale-offers-block {
	margin: 24px auto 28px;
	max-width: 1600px;
	padding: 0 24px;
	box-sizing: border-box;
}

/* Category/shop/tag archive grid offers block — same reasoning as
   .cvp-sale-offers-block above (new, not a .cvp-home-section), rendered
   directly via woocommerce_before_shop_loop so it sits at the very top
   of the product grid with no JS repositioning needed. No max-width
   cap here (unlike the Sale block) since this page's own container is
   already governed by category.css's own width rules. */
.cvp-category-offers-block {
	margin: 0 0 20px;
}

/* Best Sellers — minor layout adjustments per owner request, scoped to
   this section only (the category grid keeps its own meta/price/rating
   treatment as-is). The Add to Cart overflow itself is fixed sitewide
   in product-card.css (min-width:0 on the button); everything here is
   just hiding/restyling text that's still there. */
.cvp-bestsellers li.product .meta-cat > span,
.cvp-bestsellers li.product .meta-cat > a:not( .motta-button--wishlist ) {
	display: none;
}

.cvp-bestsellers li.product .meta-sku {
	display: none;
}

/* Confirmed live: this row's only remaining content is the wishlist
   heart icon, but it renders right at the card's edge (x = card width)
   and is effectively invisible/unusable there — so the reserved ~20px
   band below the Add to Cart row was pure dead space with no working
   function, exactly the "empty space" reported between the button row
   and the star rating. Collapsing it to 0 height removes that gap;
   the wishlist icon itself is hidden here too since it wasn't usable
   in this position anyway. (If wishlist should come back on Best
   Sellers, it needs a deliberate spot — e.g. an icon overlay on the
   product image — not this leftover row.) */
.cvp-bestsellers li.product .meta-cat,
.cvp-bestsellers li.product .meta-wrapper {
	display: none;
}

/* Centered per explicit request (was left-aligned via transform-origin:
   left center — that only controlled the scale-down pivot point, not
   actual horizontal position, which margin:auto now handles since
   .star-rating is a block-level element with a fixed em-based width).
   .woocommerce-product-rating/.product-rating covers whichever wrapper
   class this theme actually renders it inside, so centering holds even
   if .star-rating itself turns out to be inline-block in some context. */
.cvp-bestsellers li.product .woocommerce-product-rating,
.cvp-bestsellers li.product .product-rating {
	text-align: center;
}
.cvp-bestsellers li.product .star-rating {
	transform: scale( 0.8 );
	transform-origin: center center;
	margin: 0 auto;
}

.cvp-bestsellers li.product .star-rating .user-rating,
.cvp-bestsellers li.product .star-rating .user-rating svg path {
	fill: #C4080E;
	color: #C4080E;
}

.cvp-bestsellers li.product .review-count {
	display: block;
	text-align: center;
	color: #C4080E;
	font-size: 11px;
}

/* Owner asked for price back (my original recommendation, reinstated):
   title stays hidden, but the selling price shows — MRP struck-through
   price hidden, only the current selling price shown, bold and larger,
   so it reads as a clean price callout rather than a full price/MRP
   pair. */
.cvp-bestsellers li.product .woocommerce-loop-product__title {
	display: none;
}

.cvp-bestsellers li.product .price del {
	display: none;
}

.cvp-bestsellers li.product .price ins {
	text-decoration: none;
	font-weight: 700;
	font-size: 17px;
	color: #222;
}

.cvp-bestsellers li.product .price {
	display: block;
	text-align: center;
	margin-top: 6px;
	font-weight: 700;
	font-size: 17px;
	color: #222;
}

/* Add to Cart: icon-only on both mobile and desktop (explicit request —
   unlike the Featured Products widget below, which keeps its icon+label
   pill on desktop). Confirmed live the button's own markup is
   `.motta-svg-icon` + a `.add-to-cart-text` span (not a CSS-generated
   label like Featured Products), so hiding the text is a visually-hidden
   clip rather than removing a ::after rule. Sized/shaped to match the
   Quick View circle beside it for a consistent icon pair, and the row is
   centered now that it's no longer stretched full-width by the old
   flex:1 1 auto text button. */
.cvp-bestsellers li.product .product-featured-icons {
	justify-content: center;
	align-items: center;
}
.cvp-bestsellers li.product .motta-button--atc {
	flex: 0 0 auto !important;
	width: 34px !important;
	height: 34px !important;
	padding: 0 !important;
	justify-content: center;
}
.cvp-bestsellers li.product .motta-button--atc .add-to-cart-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}
/* Confirmed live: the cart-trolley glyph inside this button was rendering
   at just ~12px (matching the button's own 12px font-size — this icon's
   size is em-based, not the SVG's own width/height attributes) inside a
   34px circle, reading as "too small/invisible" — by comparison, Quick
   View's eye icon next to it renders at 20px. Raising just the icon,
   not the button: the button's fixed 34px width/height above is
   untouched, only the glyph inside it gets bigger, matching Quick View's
   icon scale. */
.cvp-bestsellers li.product .motta-button--atc .motta-svg-icon,
.cvp-bestsellers li.product .motta-button--atc svg {
	width: 20px !important;
	height: 20px !important;
}

/* WooCommerce core (not this plugin, not the theme) inserts its own
   "View cart" link right next to the Add to Cart button after a
   successful AJAX add — plain text in a bordered box, which read as an
   odd stray tooltip-like popup next to the now icon-only ATC circle
   (explicit request to replace it with something less odd). Recolored
   into a matching green icon-only circle (green = success/already-in-
   cart, distinct from the red ATC/wishlist circles) with a checkmark,
   same 34px sizing as the ATC button beside it for a consistent pair.
   The link's own text stays in the DOM (font-size:0 hides it visually
   only) — WooCommerce doesn't wrap it in its own span, so this is the
   only way to hide it without removing the accessible name entirely;
   its title="View cart" attribute still gives touch/screen-reader users
   the same information on long-press/focus. Also applied to "Pairs well
   with" (.cvp-pairs-well-with, in product-card.css's own icon-only ATC
   redesign) per explicit request — same WooCommerce-core element, same
   fix, wherever it shows up. */
.cvp-bestsellers li.product .added_to_cart.wc-forward,
.cvp-pairs-well-with .product-featured-icons .added_to_cart.wc-forward {
	display: inline-flex !important;
	flex: 0 0 auto !important;
	align-items: center;
	justify-content: center;
	width: 34px !important;
	height: 34px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50%;
	background: #0F6E56 !important;
	border: none !important;
	font-size: 0;
	line-height: 0;
	position: relative;
}
.cvp-bestsellers li.product .added_to_cart.wc-forward::before,
.cvp-pairs-well-with .product-featured-icons .added_to_cart.wc-forward::before {
	content: '';
	display: block;
	width: 16px;
	height: 16px;
	background-color: #fff;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19l12-12-1.41-1.41z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19l12-12-1.41-1.41z'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

/* Legacy native "Featured Products" widget (WooCommerce Products
   Elementor widget, 43 products) below Best Sellers — kept per owner
   decision rather than removed, but brought in line with the rest of
   the page's tight section spacing. Targets the widget's own
   data-widget_type attribute rather than its Elementor element ID,
   which is fragile and can change if the page is re-saved in the
   editor. */
[data-widget_type^="woocommerce-products"] {
	margin-top: -22px;
}

/* Legacy Featured Products widget's own Add to Cart/Quick View row —
   confirmed live this widget's markup renders the Add to Cart button as
   icon-only (no text node in the DOM at all, unlike Best Sellers/category
   cards which do include "Add to cart" text — a difference in this
   native Elementor widget's own template output, not something our CSS
   was hiding). With flex:1 1 auto and no text, the button stretched to
   fill the row (measured ~393px on a ~423px-wide card) with a tiny icon
   lost in the middle of it — the "button looks too big" complaint.
   Fix: stop stretching the button (auto width instead), add the missing
   label via ::after (this widget's own content, not user input, so a
   static CSS string is safe here), and center the whole icon+button row
   in the card. Quick View stays icon-only, matching the request. */
[data-widget_type^="woocommerce-products"] .product-featured-icons {
	justify-content: center;
	/* Reported live: Add to Cart/Quick View only appeared on :hover,
	   requiring a mouse — Motta's base rule for this widget context
	   hides the row by default and reveals it on hover via these three
	   properties. Forcing all three to their "revealed" values makes the
	   row visible on page load on every device, not just desktop hover. */
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}
[data-widget_type^="woocommerce-products"] .product-featured-icons .add_to_cart_button {
	flex: 0 0 auto !important;
	width: auto !important;
	padding: 0 14px !important;
}
[data-widget_type^="woocommerce-products"] .product-featured-icons .add_to_cart_button::after {
	content: "Add to cart";
	margin-left: 6px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

/* Mobile: Add to Cart collapses to icon-only (matching Quick View's
   existing circle treatment) — desktop keeps the icon+label pill above
   unchanged, per explicit request ("only display icon in mobile mode,
   on desktop the icon is shown as it is currently"). */
@media ( max-width: 782px ) {
	[data-widget_type^="woocommerce-products"] .product-featured-icons .add_to_cart_button {
		width: 34px !important;
		padding: 0 !important;
	}
	[data-widget_type^="woocommerce-products"] .product-featured-icons .add_to_cart_button::after {
		content: none;
	}
}
/* Favourite/wishlist icon, moved into this row by homepage.js's
   relocateFeaturedProductsWishlist() — styled to match the Quick View
   icon button next to it (same 34px circle, same accent color) rather
   than the sitewide product-card.css treatment (which right-aligns it
   into the "in Category" meta line instead; that rule still applies
   everywhere else, just not here, since this widget's markup is
   different enough that a shared rule can't serve both placements). */
[data-widget_type^="woocommerce-products"] .product-featured-icons .motta-button--wishlist {
	position: static !important;
	inset: auto !important;
	display: inline-flex !important;
	flex: 0 0 auto;
	width: 34px;
	height: 34px !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	color: #D91C22 !important;
	border: 2px solid #D91C22 !important;
	/* !important required: this button also carries Motta's own
	   .motta-button--text class, whose theme rule sets
	   `border-radius: 0px` — confirmed live via matched-rule inspection
	   that it was winning and squaring off what should be a circle
	   matching Quick View beside it. */
	border-radius: 50% !important;
	align-items: center;
	justify-content: center;
	opacity: 1 !important;
	/* Confirmed live root cause of the heart sitting ~34px below Quick
	   View: this button is a real `<a class="button">`, so it also
	   matches the sitewide hover-reveal overlay rule near the top of
	   product-card.css (".woocommerce ul.products li.product a.button"),
	   whose non-hover state is `transform: translateY(100%)` — exactly
	   one button-height, which is what was measured live
	   (getComputedStyle showed matrix(...,0,33.98), i.e. translateY(34px)).
	   position/opacity were already overridden above but transform never
	   was, so the leftover translateY(100%) silently persisted. */
	transform: none !important;
}
[data-widget_type^="woocommerce-products"] .product-featured-icons .motta-button--wishlist svg,
[data-widget_type^="woocommerce-products"] .product-featured-icons .motta-button--wishlist path {
	fill: #D91C22;
}
[data-widget_type^="woocommerce-products"] .product-featured-icons .motta-button--wishlist.added {
	background: #D91C22 !important;
}
[data-widget_type^="woocommerce-products"] .product-featured-icons .motta-button--wishlist.added svg,
[data-widget_type^="woocommerce-products"] .product-featured-icons .motta-button--wishlist.added path {
	fill: #fff;
}

/* Confirmed live: this widget's cards reserve a 30px-tall
   ".product-variation-items" block (variation-swatch placeholder) even
   though every product here has none — genuinely empty, not just
   visually blank — sitting between the icon row and the "in Category"
   line and adding dead space on top of it. :empty scopes this to only
   the cases with nothing in them, so a product that DOES have variation
   swatches elsewhere on the site keeps them. */
li.product .product-variation-items:empty {
	display: none;
}

/* Native Elementor "Reviews" widget (below the legacy Featured Products
   grid) — alternating white / light-red card backgrounds, matching the
   same treatment already used for the product page's Customer Feedback
   cards (.cvp-feedback-card, see product.css: "looks too dull all red
   stars.. for each alternate feedback - background - light red"). Same
   two colors reused here for visual consistency across the site rather
   than inventing a second red tint. Targets the widget-TYPE attribute
   (data-widget_type="reviews.default"), not this instance's own
   Elementor element ID, since that ID is fragile and can change if the
   page is ever re-saved in the editor — same reasoning already applied
   to the legacy Featured Products widget's spacing fix. !important:
   Elementor's own generated per-widget CSS sets a background on every
   card already (confirmed live: a uniform pink tint, not alternating),
   at a specificity a plain override wouldn't reliably beat. */
[data-widget_type="reviews.default"] .swiper-slide {
	background: #fff !important;
	border-color: #eee !important;
}
[data-widget_type="reviews.default"] .swiper-slide:nth-child(even) {
	background: #FBEEEE !important;
	border-color: #F3D9D9 !important;
}

/* "Happy Customers" gallery — native Elementor Gallery widget (not a
   Conversion Pro shortcode). Confirmed live: its own masonry layout
   (5 columns, JS/CSS-variable positioned, position:absolute per item)
   settles at ~6800px tall once all 131 lazy-loaded photos are in, which
   is what "implement scrolling-row treatment" is fixing — flattened
   into the same single-row, horizontal-scroll pattern already used for
   Shop by Collection/Best Sellers, with matching arrow buttons injected
   by homepage.js (wrapGalleryAsScrollRow()) since this widget has no
   arrow markup of its own to reuse. position:static !important on the
   items neutralizes Elementor's own top/left masonry placement — safe
   regardless of what values its layout script keeps computing, since a
   statically-positioned element ignores top/left entirely. */
[data-widget_type="gallery.default"] .elementor-gallery__container {
	position: static !important;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	scroll-snap-type: x mandatory;
	height: auto !important;
	max-height: none !important;
	padding-bottom: 8px !important;
	gap: 10px;
	scrollbar-width: none;
	/* Root cause of the big empty band beneath this section: Elementor's
	   own e-gallery.min.css sets
	   `.e-gallery-masonry { margin-bottom: calc(var(--highest-column-gap-count) * var(--vgap)); }`
	   — reserved space for the ORIGINAL absolute-positioned masonry
	   layout (where items overflow the container's own box and this
	   margin compensates so following content isn't overlapped).
	   Confirmed live: with --highest-column-gap-count:24 and --vgap:10px,
	   that computed to margin-bottom:240px on this exact container — and
	   because this is now a flex row (align-items:center), a flex
	   item's MARGIN box (not just its content box) sets the row's cross-
	   size, so that stray 240px was stretching the entire row wrapper to
	   408px tall, most of it dead space below the visible images. Not
	   needed at all now that items are position:static, not absolute.
	   Overriding to 0 regardless of viewport width or column count —
	   this isn't gated by a media query on Elementor's side, so the fix
	   applies uniformly on mobile too. */
	margin-bottom: 0 !important;
}
[data-widget_type="gallery.default"] .elementor-gallery__container::-webkit-scrollbar {
	display: none;
}
[data-widget_type="gallery.default"] .e-gallery-item {
	position: static !important;
	flex: 0 0 160px !important;
	width: 160px !important;
	height: 160px !important;
	scroll-snap-align: start;
}
[data-widget_type="gallery.default"] .e-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

/* The row-wrapper/arrow markup is injected by homepage.js at runtime
   (this widget has no arrows of its own) — reuses the same
   .cvp-home-row-wrapper/.cvp-home-row-arrow classes and CSS as Shop by
   Collection/Best Sellers above, so no separate arrow styling is needed
   here; this rule just gives the wrapper some breathing room since it
   sits directly under the "Happy Customers !!" heading with no section
   padding of its own (native widget, not one of our .cvp-home-section
   shortcodes). */
.cvp-home-row-wrapper--gallery {
	margin-top: 12px;
	/* A little intentional breathing room to replace the ~240px of
	   accidental dead space just removed above — matches the gap the
	   other homepage sections naturally have, not a leftover artifact. */
	margin-bottom: 20px;
}

.cvp-signin-strip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: #fff;
	border: 1px solid #eee;
	padding: 14px;
	border-radius: 6px;
	margin: 24px 0;
}

.cvp-signin-strip__btn {
	background: #D91C22;
	color: #fff;
	border: none;
	padding: 8px 18px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
}
