/**
 * Simple Product card — shop card design (single-SKU "Simple Shelf").
 *
 * SHOP-ONLY, scoped under .sbr-spc. ONE markup, two views by column class:
 * .sbr-spc--grid (vertical card — 2-in-a-row medium-6, 3-in-a-row medium-4/3)
 * and .sbr-spc--wide (full-width horizontal — stage left / details + Add to Cart
 * right, the design's SimpleCardWide). Per-family tint via
 * .sbr-spc--{lasso|highlighter|whitening|sensitive|probiotic|floss}; ribbon tone
 * via .sbr-spc-ribbon--{navy|berry|purple|green}. No JS — the single Add to Cart
 * is the real WooCommerce ajax button.
 */

.sbr-spc, .sbr-spc * { box-sizing: border-box; }

.sbr-spc {
	--spc-ui: 'Open Sans', sans-serif;
	--spc-disp: 'Montserrat', sans-serif;
	--spc-ink: #1f2524;
	--spc-ink2: #3f4d4c;
	--spc-slate: #6b7877;
	--spc-faint: #9aa7a6;
	--spc-line: #e9eceb;
	--spc-pink: var(--shop-action, #fa319e);
	/* tint defaults (lasso) */
	--spc-from: #e6f4f6;
	--spc-to: #cfe7ec;
	--spc-accent: var(--shop-card-accent, #0e9aa6);

	display: block;
	font-family: var(--spc-ui);
	color: var(--spc-ink);
	text-align: left;
}
.sbr-spc--lasso       { --spc-from:#e6f4f6; --spc-to:#cfe7ec; --spc-accent:var(--shop-card-accent,#0e9aa6); }
.sbr-spc--highlighter { --spc-from:#f1ecf7; --spc-to:#e4d7ef; --spc-accent:var(--shop-card-accent,#7a4f9c); }
.sbr-spc--whitening   { --spc-from:#f7e8f1; --spc-to:#eed4e6; --spc-accent:var(--shop-card-accent,#9e1e82); }
.sbr-spc--probiotic   { --spc-from:#f7e8f1; --spc-to:#eed4e6; --spc-accent:var(--shop-card-accent,#9e1e82); }
.sbr-spc--sensitive   { --spc-from:#e8f6f3; --spc-to:#d3e9e6; --spc-accent:var(--shop-card-accent,#0e8f86); }
.sbr-spc--floss       { --spc-from:#e8f6f3; --spc-to:#d3e9e6; --spc-accent:var(--shop-card-accent,#0e8f86); }

.sbr-spc-col .vc_column-inner,
.sbr-spc-col .wpb_wrapper { padding: 0; margin: 0; }
.sbr-spc a { text-decoration: none; }
.sbr-spc img { display: block; max-width: 100%; }
.sbr-spc-stars { display: inline-flex; gap: 1.5px; color: #ffc53d; line-height: 0; }

/* ---- card shell ---- */
.sbr-spc-card {
	display: flex; flex-direction: column; background: #fff; overflow: hidden;
	border: 1px solid var(--spc-line); border-radius: 22px;
	box-shadow: 0 14px 40px -18px rgba(20, 40, 40, .28), 0 4px 12px -6px rgba(20, 40, 40, .12); height: 100%;
	width: 100%; max-width: 100%;
	transition: box-shadow .3s cubic-bezier(.16, 1, .3, 1), transform .3s cubic-bezier(.16, 1, .3, 1);
}
.sbr-spc--grid .sbr-spc-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -22px rgba(20, 40, 40, .34); }
.sbr-spc--wide .sbr-spc-card:hover { box-shadow: 0 30px 60px -28px rgba(20, 40, 40, .36); }

/* ---- product stage ---- */
.sbr-spc-stage { position: relative; background: var(--shop-card-fill, linear-gradient(150deg, var(--spc-from), var(--spc-to))); overflow: hidden; }
.sbr-spc--grid .sbr-spc-stage { padding: 18px; min-height: 248px; }
.sbr-spc-stage::before { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: none; top: 12%; left: 50%; transform: translateX(-50%); }
.sbr-spc-stage__img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 52px 26px 22px; }
.sbr-spc-stage__img img { width: auto; max-width: 86%; max-height: 100%; object-fit: contain; mix-blend-mode: normal; }

.sbr-spc-ribbon {
	position: absolute; top: 16px; left: 16px; z-index: 4; font-weight: 800; font-size: 10.5px;
	letter-spacing: .6px; text-transform: uppercase; border-radius: 7px; padding: 6px 11px;
	box-shadow: 0 4px 12px rgba(20, 40, 40, .16);
	max-width: calc(100% - 96px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sbr-spc-ribbon--navy   { background: #002244; color: #fff; }
.sbr-spc-ribbon--berry  { background: #9e1e82; color: #fff; }
.sbr-spc-ribbon--purple { background: #875aa3; color: #fff; }
.sbr-spc-ribbon--green  { background: #e7f6ee; color: #1f8a5b; }

/* discount burst */
.sbr-spc-off {
	position: absolute; top: 14px; right: 16px; z-index: 4; width: 52px; height: 52px; border-radius: 50%;
	background: #fff; box-shadow: 0 6px 16px rgba(20, 40, 40, .2); display: flex; flex-direction: column;
	align-items: center; justify-content: center; line-height: 1;
}
.sbr-spc-off b { font-family: var(--spc-disp); font-weight: 800; font-size: 15px; color: var(--spc-pink); }
.sbr-spc-off small { font-weight: 700; font-size: 7.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--spc-slate); }

/* ---- body ---- */
.sbr-spc-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.sbr-spc-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.sbr-spc-rating { font-weight: 700; font-size: 12.5px; color: var(--spc-ink2); }
.sbr-spc-bull { width: 4px; height: 4px; border-radius: 999px; background: var(--spc-faint); }
.sbr-spc-social { font-weight: 600; font-size: 11.5px; color: var(--spc-slate); }

.sbr-spc-eyebrow { font-weight: 800; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--spc-accent); margin-bottom: 7px; }
.sbr-spc-name { font-family: var(--spc-disp); font-weight: 700; font-size: 21px; line-height: 1.12; letter-spacing: -.4px; margin: 0 0 9px; }
.sbr-spc-name a { color: var(--spc-ink); }
.sbr-spc-tagline { font-weight: 500; font-size: 12.8px; line-height: 1.5; color: var(--spc-slate); margin: 0 0 16px; }

.sbr-spc-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 4px; }
.sbr-spc-chip { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 11px; color: var(--spc-ink2); background: color-mix(in srgb, var(--spc-accent) 10%, #fff); border-radius: 999px; padding: 5px 10px; }
.sbr-spc-chip svg { color: var(--spc-accent); }

/* ---- price + add to cart ---- */
.sbr-spc-buy { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 0; }
.sbr-spc-price { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.sbr-spc-price__now { font-family: var(--spc-disp); font-weight: 800; font-size: 30px; color: var(--spc-ink); letter-spacing: -1px; }
.sbr-spc-price__now sup { font-size: 16px; vertical-align: super; }
.sbr-spc-price__was { font-weight: 600; font-size: 14px; color: var(--spc-faint); text-decoration: line-through; }
.sbr-spc-price__off { font-weight: 800; font-size: 11.5px; color: var(--spc-pink); }

.sbr-spc-add {
	width: 100%; border: 0; cursor: pointer; border-radius: 12px; padding: 15px;
	background: var(--shop-action, #1cb9bd); transition: filter .22s ease; margin-top: 16px;
	display: flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none;
}
.sbr-spc-add:hover { filter: brightness(.9); }
.sbr-spc-add svg { flex: 0 0 auto; }
.sbr-spc-add__lbl { font-weight: 800; font-size: 15.5px; color: #fff; letter-spacing: .2px; }

.sbr-spc-trust { display: flex; justify-content: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.sbr-spc-trust__i { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 10.5px; color: var(--spc-slate); }
.sbr-spc-trust__i svg { color: var(--spc-accent); }

/* in the vertical grid card the design shows stars + social only (no number) */
.sbr-spc--grid .sbr-spc-rating, .sbr-spc--grid .sbr-spc-bull { display: none; }

/* ============================ WIDE (full-width) ============================ */
.sbr-spc--wide { display: block; max-width: 1180px; margin-left: auto; margin-right: auto; }
.sbr-spc--wide .sbr-spc-card { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); border-radius: 26px; }
.sbr-spc--wide .sbr-spc-stage, .sbr-spc--wide .sbr-spc-body { min-width: 0; }
.sbr-spc--wide .sbr-spc-stage { min-height: 380px; }
.sbr-spc--wide .sbr-spc-stage::before { width: 320px; height: 320px; top: 40%; left: 46%; transform: translate(-50%, -50%); }
.sbr-spc--wide .sbr-spc-stage__img { padding: 60px 44px 44px; }
.sbr-spc--wide .sbr-spc-stage__img img { max-width: 380px; }
.sbr-spc--wide .sbr-spc-ribbon { top: 20px; left: 20px; font-size: 11px; padding: 7px 13px; max-width: calc(100% - 110px); }
.sbr-spc--wide .sbr-spc-off { top: 18px; right: 20px; width: 60px; height: 60px; }
.sbr-spc--wide .sbr-spc-off b { font-size: 19px; }
.sbr-spc--wide .sbr-spc-off small { font-size: 8px; }
.sbr-spc--wide .sbr-spc-body { padding: 40px 44px; justify-content: center; }
.sbr-spc--wide .sbr-spc-name { font-family: var(--spc-disp); font-weight: 800; font-size: clamp(28px, 3vw, 42px); line-height: 1; letter-spacing: -1.2px; margin-bottom: 12px; }
.sbr-spc--wide .sbr-spc-tagline { font-size: 15.5px; line-height: 1.55; margin-bottom: 20px; max-width: 520px; }
.sbr-spc--wide .sbr-spc-chips { gap: 8px; margin-bottom: 22px; }
.sbr-spc--wide .sbr-spc-chip { font-size: 12px; padding: 7px 13px; }
.sbr-spc--wide .sbr-spc-buy { margin-top: 0; padding-top: 0; flex-direction: row; align-items: center; gap: 22px; flex-wrap: wrap; }
.sbr-spc--wide .sbr-spc-price__now { font-size: 40px; letter-spacing: -1.4px; }
.sbr-spc--wide .sbr-spc-price__now sup { font-size: 21px; }
.sbr-spc--wide .sbr-spc-price__was { font-size: 16px; }
.sbr-spc--wide .sbr-spc-price__off { color: #fff; background: var(--spc-pink); border-radius: 8px; padding: 5px 9px; font-size: 12px; }
.sbr-spc--wide .sbr-spc-add { flex: 1 1 240px; min-width: 220px; width: auto; border-radius: 14px; padding: 18px 24px; margin-top: 0; }
.sbr-spc--wide .sbr-spc-add__lbl { font-size: 16px; }
.sbr-spc--wide .sbr-spc-trust { justify-content: flex-start; gap: 20px; margin-top: 18px; }
.sbr-spc--wide .sbr-spc-trust__i { font-size: 11.5px; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 880px) {
	.sbr-spc--wide .sbr-spc-card { grid-template-columns: 1fr; border-radius: 18px; }
	.sbr-spc--wide .sbr-spc-stage { min-height: 240px; }
	.sbr-spc--wide .sbr-spc-body { padding: 24px 20px 26px; }
	.sbr-spc--wide .sbr-spc-name { font-size: 27px; }
	.sbr-spc--wide .sbr-spc-buy { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; }
	.sbr-spc--wide .sbr-spc-add { flex: 0 0 auto; width: 100%; min-width: 0; }
	.sbr-spc--wide .sbr-spc-trust { justify-content: center; }
}
@media (max-width: 480px) {
	.sbr-spc-name { font-size: 20px; }
	.sbr-spc--wide .sbr-spc-price__now { font-size: 32px; }
}

/* Add to Cart keeps the storefront cart classes (.btn .add_to_cart_button
   product_type_composite) so the WooCommerce ajax contract is byte-identical —
   but that pulls the storefront's amber #f0c23a button look + 325px cap
   (sale-products-styles-top.css, id/3-class rule, no !important). Re-assert the
   design look; class + !important beats it. */
.sbr-spc .sbr-spc-add {
	background: var(--shop-action, #1cb9bd) !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #fff !important;
	max-width: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	text-transform: none !important;
	letter-spacing: .2px !important;
}
.sbr-spc--grid .sbr-spc-add { width: 100% !important; }
.sbr-spc .sbr-spc-add:hover { background: var(--shop-action, #1cb9bd) !important; color: #fff !important; filter: brightness(.9); }
.sbr-spc .sbr-spc-add__lbl { color: #fff !important; }
