/* =========================================================================
   XBOOM Single Product — Upgraded Layout
   All selectors under .xbp- to avoid Salient / WooCommerce collisions.
   ========================================================================= */

/* ---- Design tokens ---- */
.xbp-root, .xbp-shell {
	--xbp-ink:       #0a0a0b;
	--xbp-bone:      #f4f4ef;
	--xbp-muted:     #5b6470;
	--xbp-hairline:  #e6e7eb;
	--xbp-signal:    #ff5b1f;
	--xbp-signal-ink:#ffffff;
	--xbp-card:      #ffffff;
	--xbp-shadow:    0 1px 2px rgba(10,10,11,.04), 0 8px 24px rgba(10,10,11,.06);
	--xbp-radius:    14px;
	--xbp-font-display: 'Inter Tight', system-ui, -apple-system, sans-serif;
	--xbp-font-body:    'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset Salient container bleed-through */
.xbp-shell {
	background: var(--xbp-bone);
	font-family: var(--xbp-font-body);
	color: var(--xbp-ink);
	line-height: 1.55;
}
.xbp-shell * { box-sizing: border-box; }
.xbp-shell img { max-width: 100%; height: auto; display: block; }

.xbp-root { display: block; }

/* ---- Breadcrumbs ---- */
.xbp-crumbs {
	max-width: 1280px; margin: 0 auto; padding: 24px 24px 0;
	font-size: 13px; color: var(--xbp-muted);
}
.xbp-crumbs a { color: inherit; text-decoration: none; border-bottom: 1px dotted transparent; }
.xbp-crumbs a:hover { color: var(--xbp-signal); border-bottom-color: currentColor; }

/* =========================================================================
   1. HERO
   ========================================================================= */
.xbp-hero { padding: 24px 24px 64px; }
.xbp-hero-grid {
	max-width: 1280px; margin: 0 auto;
	display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
	align-items: start;
}
@media (max-width: 960px) {
	.xbp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Gallery ---- */
.xbp-gallery { position: sticky; top: 100px; }
@media (max-width: 960px) { .xbp-gallery { position: static; } }

.xbp-gallery-main {
	position: relative;
	background: var(--xbp-card);
	border-radius: var(--xbp-radius);
	box-shadow: var(--xbp-shadow);
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.xbp-gallery-slide {
	position: absolute; inset: 0; margin: 0;
	display: flex; align-items: center; justify-content: center;
	padding: 24px;
	opacity: 0; transform: scale(1.02);
	transition: opacity .35s ease, transform .45s ease;
	pointer-events: none;
}
.xbp-gallery-slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.xbp-gallery-slide img { max-height: 100%; width: auto; object-fit: contain; }

.xbp-gallery-thumbs {
	display: flex; gap: 8px; margin-top: 16px; overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: thin;
}
.xbp-gallery-thumb {
	flex: 0 0 72px; width: 72px; height: 72px;
	border-radius: 8px; border: 2px solid transparent;
	background: var(--xbp-card); padding: 4px; cursor: pointer;
	transition: border-color .15s ease, transform .15s ease;
	overflow: hidden;
}
.xbp-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.xbp-gallery-thumb:hover { transform: translateY(-1px); }
.xbp-gallery-thumb.is-active { border-color: var(--xbp-signal); }

.xbp-gallery-empty {
	display: grid; place-items: center;
	aspect-ratio: 4 / 3;
	background: var(--xbp-card); border-radius: var(--xbp-radius);
	color: var(--xbp-muted); font-size: 14px;
}

/* ---- Info ---- */
.xbp-info { display: flex; flex-direction: column; gap: 20px; }

.xbp-badge {
	display: inline-block; padding: 4px 10px;
	font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	border-radius: 999px; align-self: flex-start;
}
.xbp-badge-sale { background: var(--xbp-signal); color: var(--xbp-signal-ink); }
.xbp-badge-out  { background: #f1f2f5; color: var(--xbp-muted); }

.xbp-title {
	font-family: var(--xbp-font-display);
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.08; letter-spacing: -0.02em; font-weight: 700;
	margin: 0;
}

.xbp-tagline { color: var(--xbp-muted); font-size: 16px; line-height: 1.55; }
.xbp-tagline p { margin: 0; }
.xbp-tagline p + p { margin-top: 8px; }

.xbp-price-row {
	display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
	padding: 16px 0; border-top: 1px solid var(--xbp-hairline); border-bottom: 1px solid var(--xbp-hairline);
}
.xbp-price, .xbp-price * {
	font-family: var(--xbp-font-display);
	font-size: 28px; font-weight: 700; color: var(--xbp-ink);
}
.xbp-price del, .xbp-price del * { color: var(--xbp-muted); font-weight: 500; opacity: .7; font-size: 18px; }
.xbp-price ins, .xbp-price ins * { text-decoration: none; }
.xbp-sku { font-size: 13px; color: var(--xbp-muted); letter-spacing: .02em; }
.xbp-sku span { color: var(--xbp-ink); font-weight: 600; }

/* ---- Spec pills ---- */
.xbp-pills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.xbp-pill {
	background: var(--xbp-card); border: 1px solid var(--xbp-hairline);
	border-radius: 10px; padding: 12px 14px;
	display: flex; flex-direction: column; gap: 2px;
}
.xbp-pill-label { font-size: 11px; color: var(--xbp-muted); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.xbp-pill-value { font-size: 14px; color: var(--xbp-ink); font-weight: 600; }

/* ---- Add to cart ---- */
.xbp-cart { margin-top: 4px; }
.xbp-cart .cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.xbp-cart .quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--xbp-hairline); border-radius: 10px; overflow: hidden; background: var(--xbp-card); }
.xbp-cart .quantity .qty {
	width: 56px; padding: 10px 0; text-align: center;
	border: 0; background: transparent; font-family: var(--xbp-font-display); font-size: 15px; font-weight: 600;
}
.xbp-cart button.single_add_to_cart_button,
.xbp-cart .single_add_to_cart_button {
	flex: 1; min-width: 200px;
	background: var(--xbp-ink); color: #fff;
	border: 0; border-radius: 10px;
	padding: 14px 28px;
	font-family: var(--xbp-font-display); font-size: 15px; font-weight: 700; letter-spacing: .02em;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.xbp-cart button.single_add_to_cart_button:hover,
.xbp-cart .single_add_to_cart_button:hover {
	background: var(--xbp-signal);
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(255,91,31,.25);
}
.xbp-cart button.single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }

/* Variations */
.xbp-cart .variations { width: 100%; border-spacing: 0; margin-bottom: 12px; }
.xbp-cart .variations th, .xbp-cart .variations td { padding: 6px 0; vertical-align: middle; }
.xbp-cart .variations th { font-size: 12px; font-weight: 600; color: var(--xbp-muted); text-transform: uppercase; letter-spacing: .04em; text-align: left; width: 100px; }
.xbp-cart .variations select { width: 100%; padding: 10px 12px; border: 1px solid var(--xbp-hairline); border-radius: 8px; background: var(--xbp-card); font: inherit; }
.xbp-cart .reset_variations { font-size: 12px; color: var(--xbp-muted); text-decoration: underline; }
.xbp-cart .woocommerce-variation-price { margin-bottom: 10px; font-family: var(--xbp-font-display); font-size: 18px; font-weight: 700; }
.xbp-cart .woocommerce-variation-availability { font-size: 13px; color: var(--xbp-muted); }

/* ---- Trust signals ---- */
.xbp-trust { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .xbp-trust { grid-template-columns: 1fr; } }
.xbp-trust li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--xbp-card); border: 1px solid var(--xbp-hairline); border-radius: 10px; }
.xbp-trust strong { font-size: 13px; color: var(--xbp-ink); font-weight: 700; }
.xbp-trust span { font-size: 12px; color: var(--xbp-muted); }

/* ---- Meta ---- */
.xbp-meta { margin-top: 8px; font-size: 13px; color: var(--xbp-muted); display: flex; flex-direction: column; gap: 4px; }
.xbp-meta-row strong { color: var(--xbp-ink); font-weight: 600; }
.xbp-meta a { color: var(--xbp-muted); text-decoration: none; border-bottom: 1px dotted currentColor; }
.xbp-meta a:hover { color: var(--xbp-signal); }

/* =========================================================================
   SECTION HEADS (shared)
   ========================================================================= */
.xbp-section-head { margin-bottom: 28px; }
.xbp-eyebrow {
	display: inline-block; font-size: 11px; font-weight: 600;
	letter-spacing: .16em; text-transform: uppercase; color: var(--xbp-signal);
	margin-bottom: 8px;
}
.xbp-section-head h2 {
	font-family: var(--xbp-font-display);
	font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.02em;
	font-weight: 700; margin: 0; color: var(--xbp-ink);
}

/* =========================================================================
   2. FEATURES
   ========================================================================= */
.xbp-features { background: #fff; padding: 72px 24px; border-top: 1px solid var(--xbp-hairline); }
.xbp-features-inner { max-width: 1080px; margin: 0 auto; }
.xbp-prose { font-size: 16px; color: #2b303a; line-height: 1.7; }
.xbp-prose p { margin: 0 0 16px; }
.xbp-prose h2, .xbp-prose h3, .xbp-prose h4 {
	font-family: var(--xbp-font-display); font-weight: 700; letter-spacing: -0.01em;
	color: var(--xbp-ink); margin: 32px 0 12px;
}
.xbp-prose h2 { font-size: 22px; }
.xbp-prose h3 { font-size: 18px; }
.xbp-prose ul, .xbp-prose ol { padding-left: 20px; margin: 0 0 16px; }
.xbp-prose li { margin-bottom: 6px; }
.xbp-prose img { border-radius: var(--xbp-radius); margin: 16px 0; }
.xbp-prose blockquote {
	margin: 20px 0; padding: 16px 20px; border-left: 3px solid var(--xbp-signal);
	background: var(--xbp-bone); color: var(--xbp-ink); font-style: italic;
}

/* =========================================================================
   3. SPECS TABLE
   ========================================================================= */
.xbp-specs { padding: 72px 24px; border-top: 1px solid var(--xbp-hairline); background: var(--xbp-bone); }
.xbp-specs-inner { max-width: 960px; margin: 0 auto; }
.xbp-specs-table table,
.xbp-specs-table .shop_attributes {
	width: 100%; border-collapse: collapse; background: var(--xbp-card);
	border-radius: var(--xbp-radius); overflow: hidden; box-shadow: var(--xbp-shadow);
}
.xbp-specs-table tr { border-bottom: 1px solid var(--xbp-hairline); }
.xbp-specs-table tr:last-child { border-bottom: 0; }
.xbp-specs-table th, .xbp-specs-table td { padding: 14px 20px; text-align: left; vertical-align: top; }
.xbp-specs-table th {
	font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
	color: var(--xbp-muted); width: 40%; background: var(--xbp-bone);
}
.xbp-specs-table td { font-size: 14px; color: var(--xbp-ink); font-weight: 500; }
.xbp-specs-table td p { margin: 0; }

/* =========================================================================
   4. RELATED
   ========================================================================= */
.xbp-related { padding: 72px 24px; border-top: 1px solid var(--xbp-hairline); background: #fff; }
.xbp-related-inner { max-width: 1280px; margin: 0 auto; }
.xbp-related .related.products > h2,
.xbp-related .products > h2 {
	font-family: var(--xbp-font-display);
	font-size: clamp(22px, 2.4vw, 28px); font-weight: 700;
	letter-spacing: -.02em; margin: 0 0 28px;
}
.xbp-related ul.products,
.xbp-related .products ul {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 1024px) { .xbp-related ul.products, .xbp-related .products ul { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .xbp-related ul.products, .xbp-related .products ul { grid-template-columns: repeat(2, 1fr); } }
.xbp-related ul.products li.product {
	background: var(--xbp-card); border: 1px solid var(--xbp-hairline); border-radius: var(--xbp-radius);
	padding: 16px; transition: transform .2s ease, box-shadow .2s ease;
	list-style: none; margin: 0; width: auto;
}
.xbp-related ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--xbp-shadow); }
.xbp-related ul.products li.product a { text-decoration: none; color: inherit; display: block; }
.xbp-related ul.products li.product img { border-radius: 10px; background: var(--xbp-bone); margin-bottom: 12px; aspect-ratio: 1 / 1; object-fit: contain; padding: 12px; }
.xbp-related ul.products li.product h2,
.xbp-related ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--xbp-font-display); font-size: 15px; font-weight: 600;
	line-height: 1.3; color: var(--xbp-ink); margin: 0 0 6px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.xbp-related ul.products li.product .price { font-family: var(--xbp-font-display); font-size: 15px; font-weight: 700; color: var(--xbp-ink); }
.xbp-related ul.products li.product .price del { color: var(--xbp-muted); font-weight: 400; font-size: 13px; }
.xbp-related ul.products li.product .button {
	display: inline-block; margin-top: 10px; padding: 8px 14px;
	font-family: var(--xbp-font-display); font-size: 12px; font-weight: 600;
	background: var(--xbp-ink); color: #fff; border-radius: 8px; text-decoration: none;
	transition: background .15s ease;
}
.xbp-related ul.products li.product .button:hover { background: var(--xbp-signal); }

/* =========================================================================
   5. REVIEWS
   ========================================================================= */
.xbp-reviews { padding: 72px 24px 96px; border-top: 1px solid var(--xbp-hairline); background: var(--xbp-bone); }
.xbp-reviews-inner { max-width: 960px; margin: 0 auto; }
.xbp-reviews #reviews { background: var(--xbp-card); border-radius: var(--xbp-radius); padding: 32px; box-shadow: var(--xbp-shadow); }
.xbp-reviews #reviews .commentlist { list-style: none; margin: 0 0 24px; padding: 0; }
.xbp-reviews #reviews .commentlist li { padding: 16px 0; border-bottom: 1px solid var(--xbp-hairline); }
.xbp-reviews #reviews .commentlist li:last-child { border-bottom: 0; }
.xbp-reviews #review_form_wrapper input[type="text"],
.xbp-reviews #review_form_wrapper input[type="email"],
.xbp-reviews #review_form_wrapper textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--xbp-hairline); border-radius: 8px;
	font: inherit; background: #fff;
}
.xbp-reviews #review_form_wrapper .submit {
	background: var(--xbp-ink); color: #fff; padding: 12px 22px;
	border: 0; border-radius: 10px; font-family: var(--xbp-font-display); font-weight: 700;
	cursor: pointer; transition: background .15s ease;
}
.xbp-reviews #review_form_wrapper .submit:hover { background: var(--xbp-signal); }

/* =========================================================================
   FONTS
   ========================================================================= */
.xbp-root {
	font-family: var(--xbp-font-body);
}
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/* =========================================================================
   ARCHIVE (shop + category + tag + search) — upgraded layout
   ========================================================================= */
.xbp-archive { padding-bottom: 80px; }

/* ---- Hero banner ---- */
.xbp-archive-hero {
	position: relative;
	margin: 12px 24px 40px;
	border-radius: 20px;
	overflow: hidden;
	padding: clamp(48px, 8vw, 96px) clamp(28px, 5vw, 64px);
	background: linear-gradient(135deg, #0a0a0b 0%, #1a1a20 100%);
	color: #fff;
	isolation: isolate;
}
.xbp-archive-hero-bg {
	position: absolute; inset: 0; z-index: -2;
	background-size: cover; background-position: center;
	opacity: .45; filter: saturate(1.1);
}
.xbp-archive-hero-scrim {
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(10,10,11,.65) 0%, rgba(10,10,11,.9) 100%);
}
.xbp-archive-hero::after {
	content: ''; position: absolute; top: -180px; right: -180px;
	width: 480px; height: 480px; z-index: -1;
	background: radial-gradient(circle, rgba(255,91,31,.28) 0%, rgba(255,91,31,0) 60%);
	pointer-events: none;
}
.xbp-archive-hero-inner { position: relative; max-width: 820px; }
.xbp-archive-hero .xbp-eyebrow {
	color: var(--xbp-signal); display: inline-block; margin-bottom: 14px;
}
.xbp-archive-title {
	font-family: var(--xbp-font-display);
	font-size: clamp(32px, 5vw, 56px);
	line-height: 1.05; letter-spacing: -0.03em; font-weight: 700;
	margin: 0; color: #fff;
}
.xbp-archive-desc {
	margin-top: 16px; font-size: clamp(15px, 1.4vw, 17px);
	line-height: 1.55; color: rgba(255,255,255,.82); max-width: 680px;
}
.xbp-archive-desc p { margin: 0 0 10px; }
.xbp-archive-desc p:last-child { margin-bottom: 0; }

/* Subcategory pills in hero */
.xbp-subcats {
	list-style: none; margin: 24px 0 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 8px;
}
.xbp-subcats a {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px; border-radius: 999px;
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
	color: #fff; font-size: 13px; font-weight: 500; text-decoration: none;
	transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.xbp-subcats a:hover {
	background: var(--xbp-signal); border-color: var(--xbp-signal);
	transform: translateY(-1px);
}
.xbp-subcats a span {
	font-size: 11px; color: rgba(255,255,255,.62); font-weight: 600;
	background: rgba(255,255,255,.1); padding: 2px 7px; border-radius: 99px;
}
.xbp-subcats a:hover span { background: rgba(0,0,0,.2); color: #fff; }

/* ---- Archive body ---- */
.xbp-archive-body { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ---- Toolbar: result count + sort ---- */
.xbp-toolbar {
	display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
	padding: 14px 0 24px;
	border-bottom: 1px solid var(--xbp-hairline);
	margin-bottom: 28px;
}
.xbp-toolbar-count {
	font-size: 13px; color: var(--xbp-muted); font-weight: 500;
}
.xbp-toolbar-count .woocommerce-result-count { margin: 0; }
.xbp-toolbar-sort form { margin: 0; }
.xbp-toolbar-sort select {
	appearance: none; -webkit-appearance: none;
	padding: 10px 38px 10px 14px;
	border: 1px solid var(--xbp-hairline); border-radius: 10px;
	background: var(--xbp-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235b6470' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
	font: 500 13px var(--xbp-font-body);
	color: var(--xbp-ink); cursor: pointer; min-width: 200px;
}

/* ---- Product grid ---- */
.xbp-products {
	list-style: none; margin: 0 0 40px; padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
@media (max-width: 1180px) { .xbp-products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .xbp-products { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px)  { .xbp-products { grid-template-columns: 1fr; } }

/* ---- Compat: when our card renders inside Salient / page-builder wrappers ----
   (e.g. the "WooCommerce Products" shortcode on the homepage, Nectar carousels,
   Elementor product grids, the native [products] shortcode, Related Products,
   etc.) the parent wrapper isn't .xbp-products and won't have our grid gap.
   These rules make sure the card still has breathing room and sane width. */
ul.products:not(.xbp-products) > .xbp-card,
.nectar-woo-flickity .xbp-card,
.nectar_woo-element .xbp-card,
.wpb_row .xbp-card,
.vc_row .xbp-card,
.elementor-widget-wrap .xbp-card {
	margin: 0 0 24px !important;
	list-style: none !important;
}
/* Strip any Salient/Nectar styles that leak onto our card */
.xbp-card,
.xbp-card.product,
li.xbp-card.product {
	box-shadow: none;
}
.xbp-card > .woocommerce-loop-product__title,
.xbp-card > .price,
.xbp-card > .star-rating,
.xbp-card > .button,
.xbp-card > .added_to_cart {
	display: none !important; /* hide any leftover WC default markup Salient/plugins might inject after our card body */
}

/* ---- Card ---- */
.xbp-card {
	list-style: none; margin: 0; padding: 0; width: auto !important;
	background: var(--xbp-card);
	border: 1px solid var(--xbp-hairline); border-radius: var(--xbp-radius);
	overflow: hidden; position: relative;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	display: flex; flex-direction: column;
}
.xbp-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(10,10,11,.08);
	border-color: rgba(10,10,11,.14);
}
.xbp-card-link {
	display: flex; flex-direction: column; gap: 0;
	text-decoration: none; color: inherit;
	flex: 1;
}

/* Badges */
.xbp-card-badges {
	position: absolute; top: 12px; left: 12px; z-index: 2;
	display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
	pointer-events: none;
}
.xbp-card-badge {
	padding: 4px 10px; border-radius: 999px;
	font-family: var(--xbp-font-display);
	font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	backdrop-filter: blur(8px);
}
.xbp-card-badge-sale { background: var(--xbp-signal); color: #fff; }
.xbp-card-badge-new  { background: #111; color: #fff; }
.xbp-card-badge-feat { background: #fff; color: var(--xbp-ink); border: 1px solid var(--xbp-hairline); }
.xbp-card-badge-out  { background: rgba(255,255,255,.85); color: var(--xbp-muted); }

/* Media */
.xbp-card-media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--xbp-bone);
	overflow: hidden;
}
.xbp-card-img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: contain; padding: 20px;
	transition: transform .45s ease, opacity .25s ease;
}
.xbp-card-img-hover { opacity: 0; }
.xbp-card:hover .xbp-card-img-primary { transform: scale(1.04); }
.xbp-card:hover .xbp-card-img-hover   { opacity: 1; }
.xbp-card-cta {
	position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 10px);
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 16px;
	background: var(--xbp-ink); color: #fff;
	border-radius: 999px;
	font-family: var(--xbp-font-display); font-size: 12px; font-weight: 600; letter-spacing: .02em;
	opacity: 0; pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
	white-space: nowrap;
}
.xbp-card:hover .xbp-card-cta {
	opacity: 1; transform: translate(-50%, 0);
}

/* Body */
.xbp-card-body {
	padding: 16px 18px 18px;
	display: flex; flex-direction: column; gap: 6px;
	flex: 1;
}
.xbp-card-cat {
	font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: var(--xbp-muted);
}
.xbp-card-title {
	font-family: var(--xbp-font-display);
	font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em;
	color: var(--xbp-ink); margin: 0;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 2.6em;
}
.xbp-card-rating { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0; font-size: 12px; }
.xbp-stars {
	position: relative; display: inline-block;
	color: #e6e7eb; letter-spacing: 1px;
	line-height: 1;
}
.xbp-stars span {
	position: absolute; left: 0; top: 0; width: var(--xbp-fill, 0%); overflow: hidden;
	color: #f5b400; white-space: nowrap;
}
.xbp-rating-count { color: var(--xbp-muted); font-weight: 500; }
.xbp-card-price {
	margin-top: auto; padding-top: 8px;
	font-family: var(--xbp-font-display);
	font-size: 17px; font-weight: 700; color: var(--xbp-ink);
	line-height: 1.2;
}
.xbp-card-price del, .xbp-card-price del * {
	color: var(--xbp-muted); font-weight: 500; font-size: 13px; opacity: .7;
	margin-right: 6px;
}
.xbp-card-price ins, .xbp-card-price ins * { text-decoration: none; color: var(--xbp-signal); }
.xbp-card-poa { font-size: 13px; color: var(--xbp-muted); font-weight: 500; }

/* Card actions (quick add-to-cart for simple products) */
.xbp-card-actions {
	padding: 0 18px 18px;
}
.xbp-card-actions .button,
.xbp-card-actions .add_to_cart_button {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	width: 100%;
	padding: 10px 16px;
	background: transparent; color: var(--xbp-ink);
	border: 1px solid var(--xbp-hairline); border-radius: 10px;
	font-family: var(--xbp-font-display); font-size: 13px; font-weight: 600; letter-spacing: .02em;
	text-decoration: none; cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.xbp-card-actions .button:hover,
.xbp-card-actions .add_to_cart_button:hover {
	background: var(--xbp-ink); color: #fff; border-color: var(--xbp-ink);
	transform: translateY(-1px);
}
.xbp-card-actions .added_to_cart { display: none; } /* hide the "View cart" post-add inline link; the WC cart badge covers this */

/* ---- Pagination ---- */
.xbp-pagination { display: flex; justify-content: center; margin: 20px 0 0; }
.xbp-pagination .page-numbers {
	list-style: none; margin: 0; padding: 0;
	display: flex; gap: 6px; flex-wrap: wrap;
}
.xbp-pagination .page-numbers li { list-style: none; }
.xbp-pagination .page-numbers a,
.xbp-pagination .page-numbers span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--xbp-hairline); border-radius: 10px;
	font-family: var(--xbp-font-display); font-size: 14px; font-weight: 600;
	color: var(--xbp-ink); text-decoration: none; background: var(--xbp-card);
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.xbp-pagination .page-numbers a:hover {
	background: var(--xbp-ink); color: #fff; border-color: var(--xbp-ink);
	transform: translateY(-1px);
}
.xbp-pagination .page-numbers .current {
	background: var(--xbp-signal); color: #fff; border-color: var(--xbp-signal);
}

/* ---- Empty state ---- */
.xbp-empty {
	max-width: 500px; margin: 40px auto; padding: 40px;
	text-align: center;
	background: var(--xbp-card); border: 1px solid var(--xbp-hairline); border-radius: var(--xbp-radius);
}
.xbp-empty-art {
	display: inline-flex; align-items: center; justify-content: center;
	width: 80px; height: 80px; margin: 0 auto 16px;
	background: var(--xbp-bone); border-radius: 50%;
	color: var(--xbp-muted);
}
.xbp-empty h2 {
	font-family: var(--xbp-font-display); font-size: 22px; font-weight: 700;
	letter-spacing: -0.02em; margin: 0 0 6px; color: var(--xbp-ink);
}
.xbp-empty p { margin: 0 0 20px; color: var(--xbp-muted); font-size: 14px; }
.xbp-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 12px 22px; border-radius: 10px;
	font-family: var(--xbp-font-display); font-weight: 700; font-size: 14px;
	text-decoration: none; cursor: pointer; border: 0;
	transition: background .15s ease, transform .15s ease;
}
.xbp-btn-primary { background: var(--xbp-ink); color: #fff; }
.xbp-btn-primary:hover { background: var(--xbp-signal); transform: translateY(-1px); }

/* =========================================================================
   XBOOM PREMIUM PRODUCT CARD SYSTEM  (v2 — JS-tagged, body-prefixed)
   -------------------------------------------------------------------------
   Applied to every WooCommerce product on the frontend, in every context:
   Salient grid, Nectar Flickity carousel, Gutenberg product block, native
   [products] shortcode, Related / Upsells / Cross-sells. The JS runner in
   assets/xboom-product.js stamps every .product on the page with the
   `.xbp-wc-card` class (and watches for carousel-injected cards via
   MutationObserver), so we only need to target ONE class from CSS.

   We body-prefix every selector to beat Salient's ID/class specificity and
   use `!important` where WooCommerce / Nectar ship inline/computed values
   we must override. Design language: Apple × Tesla × DJI — restrained
   chrome, tight typography hierarchy, tabular numerics, disciplined motion.
   ========================================================================= */

:root {
	--xbpc-ink:        #0a0a0b;
	--xbpc-ink-2:      #1a1a1d;
	--xbpc-bone:       #f4f4ef;
	--xbpc-bone-2:     #f8f8f5;
	--xbpc-paper:      #ffffff;
	--xbpc-muted:      #5b6470;
	--xbpc-muted-2:    #8b919b;
	--xbpc-hairline:   rgba(10,10,11,0.08);
	--xbpc-hairline-2: rgba(10,10,11,0.14);
	--xbpc-signal:     #ff5b1f;
	--xbpc-signal-2:   #ff7a45;
	--xbpc-star:       #f5b400;
	--xbpc-radius:     16px;
	--xbpc-radius-sm:  10px;
	--xbpc-disp:       'Inter Tight', system-ui, -apple-system, sans-serif;
	--xbpc-body:       'Inter', system-ui, -apple-system, sans-serif;
	--xbpc-mono:       ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
	--xbpc-ease:       cubic-bezier(.2, .7, .2, 1);
	--xbpc-shadow-rest:  0 1px 2px rgba(10,10,11,.03), 0 1px 1px rgba(10,10,11,.02);
	--xbpc-shadow-hover: 0 4px 12px rgba(10,10,11,.06), 0 24px 48px rgba(10,10,11,.08), 0 16px 32px rgba(255,91,31,.10);
}

/* -------------------------------------------------------------------------
   CARD CHROME
   NOTE: `:not(.xbp-root)` is a safety net. `.xbp-root` is our single-product
   article (which inherits WooCommerce's `.product` class via wc_product_class).
   We never want the card chrome there. The JS tagger already excludes it,
   but if JS fails to load we must still render the single product correctly.
   ------------------------------------------------------------------------- */
body .xbp-wc-card:not(.xbp-root) {
	list-style: none !important;
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	background: var(--xbpc-paper) !important;
	border: 1px solid var(--xbpc-hairline) !important;
	border-radius: var(--xbpc-radius) !important;
	overflow: hidden !important;
	margin: 0 0 20px !important;
	padding: 0 !important;
	box-shadow: var(--xbpc-shadow-rest) !important;
	isolation: isolate;
	text-align: left !important;
	transition:
		transform .5s var(--xbpc-ease),
		box-shadow .5s var(--xbpc-ease),
		border-color .3s var(--xbpc-ease) !important;
	float: none !important;
	clear: none !important;
	width: auto !important;
	min-height: 0 !important;
	box-sizing: border-box !important;
}

/* Animated gradient border on hover */
body .xbp-wc-card::before {
	content: '' !important;
	position: absolute !important;
	inset: -1px !important;
	border-radius: inherit !important;
	padding: 1px !important;
	background: linear-gradient(135deg, transparent 20%, rgba(255,91,31,.45) 50%, transparent 80%) !important;
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
	        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
	-webkit-mask-composite: xor !important;
	        mask-composite: exclude !important;
	opacity: 0;
	transition: opacity .4s var(--xbpc-ease);
	pointer-events: none;
	z-index: 1;
	display: block !important;
}

/* Ambient orange glow on hover, behind everything */
body .xbp-wc-card::after {
	content: '' !important;
	position: absolute !important;
	top: -40%; right: -40%;
	width: 120%; height: 120%;
	background: radial-gradient(circle, rgba(255,91,31,.06) 0%, transparent 55%) !important;
	opacity: 0;
	transition: opacity .6s var(--xbpc-ease);
	pointer-events: none;
	z-index: 0;
	display: block !important;
}

body .xbp-wc-card:hover {
	transform: translateY(-6px) !important;
	box-shadow: var(--xbpc-shadow-hover) !important;
	border-color: transparent !important;
}
body .xbp-wc-card:hover::before { opacity: 1; }
body .xbp-wc-card:hover::after  { opacity: 1; }

/* -------------------------------------------------------------------------
   IMAGE PANEL — 4:3, layered bone gradient, subtle zoom on hover
   ------------------------------------------------------------------------- */
body .xbp-wc-card > a:first-of-type,
body .xbp-wc-card .product-image-wrap,
body .xbp-wc-card .image-wrap {
	display: block !important;
	text-decoration: none !important;
	color: inherit !important;
	position: relative !important;
	aspect-ratio: 4 / 3 !important;
	background:
		radial-gradient(ellipse at 50% 60%, rgba(255,91,31,.03) 0%, transparent 55%),
		linear-gradient(180deg, var(--xbpc-bone-2) 0%, var(--xbpc-bone) 100%) !important;
	overflow: hidden !important;
	border-bottom: 1px solid var(--xbpc-hairline) !important;
	flex-shrink: 0 !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

body .xbp-wc-card img:not(.xbm-logo),
body .xbp-wc-card .product-image-wrap img,
body .xbp-wc-card .attachment-woocommerce_thumbnail,
body .xbp-wc-card .attachment-shop_catalog,
body .xbp-wc-card .wp-post-image {
	display: block !important;
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	padding: 28px !important;
	margin: 0 !important;
	background: transparent !important;
	box-sizing: border-box !important;
	border-radius: 0 !important;
	max-width: none !important;
	transition:
		transform .7s var(--xbpc-ease),
		filter .4s var(--xbpc-ease) !important;
}
body .xbp-wc-card:hover img:not(.xbm-logo) {
	transform: scale(1.05) !important;
	filter: drop-shadow(0 18px 32px rgba(10,10,11,.12)) !important;
}

/* -------------------------------------------------------------------------
   TYPOGRAPHY — eyebrow category, tight title, tabular price
   ------------------------------------------------------------------------- */

/* Eyebrow — mono, signal orange, status-dot prefix */
body .xbp-wc-card .product-category,
body .xbp-wc-card .nectar-woo-brand,
body .xbp-wc-card .nectar_woo-brand,
body .xbp-wc-card .product-categories,
body .xbp-wc-card .category,
body .xbp-wc-card .nectar-woo-extras {
	font-family: var(--xbpc-mono) !important;
	font-size: 10px !important;
	font-weight: 500 !important;
	letter-spacing: .14em !important;
	text-transform: uppercase !important;
	color: var(--xbpc-signal) !important;
	padding: 18px 22px 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	background: transparent !important;
	border: 0 !important;
	text-decoration: none !important;
}
body .xbp-wc-card .product-category::before,
body .xbp-wc-card .nectar-woo-brand::before,
body .xbp-wc-card .product-categories::before {
	content: '●' !important;
	font-size: 6px !important;
	line-height: 1 !important;
	transform: translateY(-1px) !important;
	color: var(--xbpc-signal) !important;
}

/* Title — display font, 2-line clamp */
body .xbp-wc-card .woocommerce-loop-product__title,
body .xbp-wc-card .product-title,
body .xbp-wc-card .product_title,
body .xbp-wc-card h2,
body .xbp-wc-card h3,
body .xbp-wc-card h4.product-title,
body .xbp-wc-card .wc-block-grid__product-title {
	font-family: var(--xbpc-disp) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.28 !important;
	letter-spacing: -0.015em !important;
	color: var(--xbpc-ink) !important;
	padding: 10px 22px 0 !important;
	margin: 0 !important;
	text-transform: none !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	text-align: left !important;
	min-height: 2.6em !important;
	background: transparent !important;
	border: 0 !important;
}
body .xbp-wc-card a:hover .woocommerce-loop-product__title,
body .xbp-wc-card a:hover .product-title,
body .xbp-wc-card a:hover h2,
body .xbp-wc-card a:hover h3 {
	color: var(--xbpc-signal) !important;
}

/* Star rating — compact amber */
body .xbp-wc-card .star-rating {
	margin: 8px 22px 0 !important;
	font-size: 11px !important;
	color: var(--xbpc-star) !important;
	letter-spacing: 1px !important;
	width: auto !important;
	height: auto !important;
	line-height: 1 !important;
}
body .xbp-wc-card .star-rating + .rating-count,
body .xbp-wc-card .count {
	font-family: var(--xbpc-mono) !important;
	font-size: 11px !important;
	color: var(--xbpc-muted) !important;
	margin-left: 4px !important;
}

/* Price — tabular nums, pushed to bottom of card */
body .xbp-wc-card .price,
body .xbp-wc-card > .price,
body .xbp-wc-card .product-wrap > .price,
body .xbp-wc-card .inner-wrap > .price,
body .xbp-wc-card .wc-block-grid__product-price {
	font-family: var(--xbpc-disp) !important;
	font-size: 19px !important;
	font-weight: 700 !important;
	font-variant-numeric: tabular-nums !important;
	letter-spacing: -0.02em !important;
	color: var(--xbpc-ink) !important;
	padding: 14px 22px 0 !important;
	margin: 0 !important;
	margin-top: auto !important;
	line-height: 1.1 !important;
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: baseline !important;
	gap: 10px !important;
	background: transparent !important;
	border: 0 !important;
	text-align: left !important;
}
body .xbp-wc-card .price del,
body .xbp-wc-card .price del *,
body .xbp-wc-card .price del .amount {
	color: var(--xbpc-muted-2) !important;
	font-weight: 500 !important;
	font-size: 13px !important;
	opacity: 1 !important;
	margin: 0 !important;
	text-decoration: line-through !important;
	order: 2 !important;
}
body .xbp-wc-card .price ins,
body .xbp-wc-card .price ins *,
body .xbp-wc-card .price ins .amount {
	text-decoration: none !important;
	color: var(--xbpc-ink) !important;
	font-weight: 700 !important;
	order: 1 !important;
	background: transparent !important;
}
body .xbp-wc-card .price .amount {
	background: transparent !important;
}

/* -------------------------------------------------------------------------
   SALE BADGE — system-label style (mono + signal dot)
   ------------------------------------------------------------------------- */
body .xbp-wc-card .onsale {
	position: absolute !important;
	top: 14px !important;
	left: 14px !important;
	right: auto !important;
	margin: 0 !important;
	padding: 5px 10px 5px 8px !important;
	background: var(--xbpc-ink) !important;
	color: #fff !important;
	font-family: var(--xbpc-mono) !important;
	font-size: 10px !important;
	font-weight: 600 !important;
	letter-spacing: .12em !important;
	text-transform: uppercase !important;
	border: 0 !important;
	border-radius: 4px !important;
	min-height: 0 !important;
	min-width: 0 !important;
	line-height: 1.4 !important;
	width: auto !important;
	height: auto !important;
	transform: none !important;
	z-index: 3;
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	box-shadow: 0 2px 8px rgba(10,10,11,.15) !important;
}
body .xbp-wc-card .onsale::before {
	content: '●' !important;
	font-size: 6px !important;
	color: var(--xbpc-signal) !important;
	line-height: 1 !important;
}

/* -------------------------------------------------------------------------
   ADD TO CART — full-width button with sliding gradient fill
   ------------------------------------------------------------------------- */
body .xbp-wc-card .button,
body .xbp-wc-card .add_to_cart_button,
body .xbp-wc-card .product_type_simple,
body .xbp-wc-card .product_type_variable,
body .xbp-wc-card .product_type_grouped,
body .xbp-wc-card .product_type_external,
body .xbp-wc-card .wc-block-grid__product-add-to-cart .wp-block-button__link {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: calc(100% - 44px) !important;
	margin: 18px 22px 22px !important;
	padding: 13px 18px !important;
	background: var(--xbpc-ink) !important;
	color: #fff !important;
	border: 1px solid var(--xbpc-ink) !important;
	border-radius: var(--xbpc-radius-sm) !important;
	font-family: var(--xbpc-disp) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: .02em !important;
	text-transform: none !important;
	text-decoration: none !important;
	cursor: pointer !important;
	box-shadow: none !important;
	text-shadow: none !important;
	overflow: hidden !important;
	min-height: 0 !important;
	line-height: 1.2 !important;
	transition: transform .25s var(--xbpc-ease), box-shadow .25s var(--xbpc-ease), color .25s var(--xbpc-ease) !important;
	z-index: 1;
}

/* Sliding gradient underlay */
body .xbp-wc-card .button::before,
body .xbp-wc-card .add_to_cart_button::before {
	content: '' !important;
	position: absolute !important;
	inset: 0 !important;
	background: linear-gradient(90deg, var(--xbpc-signal) 0%, var(--xbpc-signal-2) 100%) !important;
	transform: translateX(-101%) !important;
	transition: transform .4s var(--xbpc-ease) !important;
	z-index: -1 !important;
	display: block !important;
}

body .xbp-wc-card .button:hover,
body .xbp-wc-card .add_to_cart_button:hover {
	transform: translateY(-2px) !important;
	border-color: var(--xbpc-signal) !important;
	box-shadow: 0 10px 24px rgba(255,91,31,.28) !important;
	color: #fff !important;
}
body .xbp-wc-card .button:hover::before,
body .xbp-wc-card .add_to_cart_button:hover::before {
	transform: translateX(0) !important;
}

/* Hide WC's post-add "View cart" pill (header cart badge covers this) */
body .xbp-wc-card .added_to_cart {
	display: none !important;
}

/* -------------------------------------------------------------------------
   SALIENT / NECTAR WRAPPER FLATTENING
   Nectar wraps products in .inner-wrap / .product-wrap / .product-add-to-cart
   with their own padding and shadows. We flatten them to `display:contents`
   so their children collapse up and our card chrome rules apply directly.
   ------------------------------------------------------------------------- */
body .xbp-wc-card .inner-wrap,
body .xbp-wc-card .product-wrap,
body .xbp-wc-card .product-add-to-cart,
body .xbp-wc-card .nectar-woo-card-shadow {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: contents !important;
}

/* Flickity carousel sizing — give each slide consistent breathing room */
body .nectar-woo-flickity,
body .nectar_woo-flickity { padding: 4px 0 !important; }
body .nectar-woo-flickity .flickity-slider > .xbp-wc-card,
body .nectar_woo-flickity .flickity-slider > .xbp-wc-card,
body .nectar-carousel-flickity .xbp-wc-card {
	margin: 0 10px !important;
}

/* Kill legacy WC clearfix + float layout — we're flex/grid all the way */
body .woocommerce ul.products:not(.xbp-products) {
	list-style: none !important;
	padding: 0 !important;
}
body .woocommerce ul.products:not(.xbp-products) > li.product {
	float: none !important;
	clear: none !important;
}
body .woocommerce ul.products:not(.xbp-products)::before,
body .woocommerce ul.products:not(.xbp-products)::after {
	content: none !important;
	display: none !important;
}

/* -------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 640px) {
	body .xbp-wc-card { border-radius: 14px !important; }
	body .xbp-wc-card img:not(.xbm-logo) { padding: 20px !important; }
	body .xbp-wc-card .woocommerce-loop-product__title,
	body .xbp-wc-card .product-title,
	body .xbp-wc-card h2,
	body .xbp-wc-card h3 {
		font-size: 14px !important;
		padding: 10px 16px 0 !important;
	}
	body .xbp-wc-card .product-category,
	body .xbp-wc-card .nectar-woo-brand { padding: 14px 16px 0 !important; }
	body .xbp-wc-card .price { font-size: 17px !important; padding: 12px 16px 0 !important; }
	body .xbp-wc-card .button,
	body .xbp-wc-card .add_to_cart_button {
		width: calc(100% - 32px) !important;
		margin: 14px 16px 16px !important;
		font-size: 12px !important;
		padding: 11px 14px !important;
	}
}

/* -------------------------------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	body .xbp-wc-card,
	body .xbp-wc-card img:not(.xbm-logo),
	body .xbp-wc-card .button,
	body .xbp-wc-card .add_to_cart_button,
	body .xbp-wc-card .button::before,
	body .xbp-wc-card .add_to_cart_button::before {
		transition: none !important;
		animation: none !important;
	}
	body .xbp-wc-card:hover { transform: none !important; }
}

