/*
Theme Name: Sufbt Demo
Author: WPezo
Description: A clean, modern demo theme built to showcase the Smart Upsell & Frequently Bought Together plugin for WooCommerce. For demo use only.
Version: 1.1.0
Requires at least: 6.9
Requires PHP: 8.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpezo-demo
WC requires at least: 10.8
*/

/* ============================================================ Tokens */
:root {
	--w-ink: #0f172a;
	--w-ink-soft: #334155;
	--w-muted: #64748b;
	--w-line: #e6eaf0;
	--w-bg: #ffffff;
	--w-bg-soft: #f7f9fc;
	--w-bg-tint: #eef4ff;
	--w-primary: #2563eb;
	--w-primary-dark: #1d4ed8;
	--w-primary-ink: #1e40af;
	--w-accent: #10b981;
	--w-accent-dark: #059669;
	--w-amber: #f59e0b;
	--w-radius: 18px;
	--w-radius-sm: 12px;
	--w-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .05);
	--w-shadow: 0 2px 6px rgba(15, 23, 42, .05), 0 18px 40px rgba(15, 23, 42, .08);
	--w-shadow-primary: 0 10px 30px rgba(37, 99, 235, .28);
	--w-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--w-max: 1140px;
}

/* ============================================================ Base */
*, *::before, *::after { box-sizing: border-box; }

body.wd {
	margin: 0;
	font-family: var(--w-font);
	color: var(--w-ink);
	background: var(--w-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.wd a { color: var(--w-primary); text-decoration: none; }
.wd a:hover { color: var(--w-primary-dark); }
.wd img { max-width: 100%; height: auto; }

.wd h1, .wd h2, .wd h3, .wd h4 {
	color: var(--w-ink);
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 .4em;
	font-weight: 800;
}

.wd-wrap { max-width: var(--w-max); margin: 0 auto; padding: 0 24px; }

/* ============================================================ Buttons */
.wd-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
	white-space: nowrap;
}
.wd-btn--primary {
	background: var(--w-primary);
	color: #fff;
	box-shadow: var(--w-shadow-primary);
}
.wd-btn--primary:hover { background: var(--w-primary-dark); color: #fff; transform: translateY(-2px); }
.wd-btn--ghost {
	background: rgba(255, 255, 255, .1);
	color: #fff;
	border-color: rgba(255, 255, 255, .8);
	font-weight: 700;
}
.wd-btn--ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; border-color: #fff; transform: translateY(-2px); }
.wd-btn--light {
	background: #fff;
	color: var(--w-primary-ink);
	border-color: var(--w-line);
	box-shadow: var(--w-shadow-sm);
}
.wd-btn--light:hover { transform: translateY(-2px); color: var(--w-primary-dark); }
.wd-btn--lg { padding: 16px 30px; font-size: 16px; }

/* Button labels must win over the base `.wd a` link colour (without raising it
   globally, which would recolour the nav and footer links). */
.wd a.wd-btn--primary, .wd a.wd-btn--ghost { color: #fff; }
.wd a.wd-btn--primary:hover, .wd a.wd-btn--ghost:hover { color: #fff; }
.wd a.wd-btn--light { color: var(--w-primary-ink); }
.wd a.wd-btn--light:hover { color: var(--w-primary-dark); }

/* ============================================================ Header */
.wd-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: rgba(255, 255, 255, .82);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--w-line);
}
.wd-header__inner {
	max-width: var(--w-max);
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.wd-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 19px;
	letter-spacing: -0.03em;
	color: var(--w-ink);
}
.wd-logo:hover { color: var(--w-ink); }
.wd-logo__mark {
	width: 30px; height: 30px;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--w-primary), #4f46e5);
	display: grid; place-items: center;
	color: #fff; font-size: 16px; font-weight: 800;
	box-shadow: var(--w-shadow-primary);
}
.wd-logo__text { display: flex; flex-direction: column; line-height: 1.04; }
.wd-logo__name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--w-ink); }
.wd-logo__by { font-size: 11px; font-weight: 600; color: var(--w-muted); letter-spacing: .01em; }
.wd-nav { display: flex; align-items: center; gap: 6px; }
.wd-nav a {
	color: var(--w-ink-soft);
	font-weight: 600;
	font-size: 15px;
	padding: 8px 14px;
	border-radius: 9px;
	transition: background .15s ease, color .15s ease;
}
.wd-nav a:hover { background: var(--w-bg-soft); color: var(--w-primary); }
.wd-nav a.wd-nav__cart { color: var(--w-primary); }
.wd-cart-count {
	display: inline-block;
	min-width: 18px;
	padding: 0 5px;
	margin-left: 5px;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	color: #fff;
	background: var(--w-accent);
	border-radius: 999px;
	vertical-align: text-top;
}

/* ============================================================ Hero */
.wd-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	background: radial-gradient(1200px 500px at 80% -10%, #4f46e5 0%, transparent 60%),
		linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
}
.wd-hero::after {
	content: "";
	position: absolute; inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
	background-size: 22px 22px;
	opacity: .5;
	mask-image: linear-gradient(180deg, #000, transparent 75%);
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.wd-hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--w-max);
	margin: 0 auto;
	padding: 92px 24px 104px;
	text-align: center;
}
.wd-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: #cbd9ff;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .2);
	padding: 7px 14px;
	border-radius: 999px;
	margin-bottom: 22px;
}
.wd-hero h1 {
	color: #fff;
	font-size: clamp(34px, 5.5vw, 56px);
	max-width: 18ch;
	margin: 0 auto .5em;
	line-height: 1.08;
}
.wd-hero h1 .wd-hl {
	background: linear-gradient(120deg, #a7f3d0, #6ee7b7);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.wd-hero__sub {
	font-size: clamp(16px, 2.2vw, 20px);
	color: #dce6ff;
	max-width: 56ch;
	margin: 0 auto 34px;
}
.wd-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.wd-badges {
	display: flex;
	gap: 10px 22px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 40px;
	color: #c7d6ff;
	font-size: 14px;
	font-weight: 600;
}
.wd-badges span { display: inline-flex; align-items: center; gap: 7px; }
.wd-badges svg { width: 16px; height: 16px; color: #6ee7b7; }

/* ============================================================ Sections */
.wd-section { padding: 84px 0; }
.wd-section--soft { background: var(--w-bg-soft); border-top: 1px solid var(--w-line); border-bottom: 1px solid var(--w-line); }
.wd-section__head { text-align: center; max-width: 60ch; margin: 0 auto 52px; }
.wd-section__head h2 { font-size: clamp(26px, 3.6vw, 38px); }
.wd-section__head p { font-size: 18px; color: var(--w-muted); margin: 0; }
.wd-kicker {
	display: inline-block;
	font-size: 13px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .1em;
	color: var(--w-primary);
	margin-bottom: 12px;
}

/* Steps */
.wd-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(218px, 1fr)); gap: 22px; }
.wd-step {
	position: relative;
	background: var(--w-bg);
	border: 1px solid var(--w-line);
	border-radius: var(--w-radius);
	padding: 30px 26px 26px;
	box-shadow: var(--w-shadow-sm);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
	display: flex;
	flex-direction: column;
}
.wd-step:hover { transform: translateY(-4px); box-shadow: var(--w-shadow); border-color: #cfe0ff; }
.wd-step__num {
	position: absolute;
	top: -16px; left: 26px;
	width: 38px; height: 38px;
	border-radius: 11px;
	display: grid; place-items: center;
	background: linear-gradient(135deg, var(--w-primary), #4f46e5);
	color: #fff; font-weight: 800; font-size: 16px;
	box-shadow: var(--w-shadow-primary);
}
.wd-step__icon {
	width: 46px; height: 46px;
	border-radius: 12px;
	background: var(--w-bg-tint);
	color: var(--w-primary);
	display: grid; place-items: center;
	margin: 8px 0 16px;
}
.wd-step__icon svg { width: 24px; height: 24px; }
.wd-step h3 { font-size: 20px; margin-bottom: 8px; }
.wd-step p { color: var(--w-muted); margin: 0 0 18px; font-size: 15.5px; }
.wd-step__link {
	margin-top: auto;
	font-weight: 700;
	font-size: 14.5px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.wd-step__link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.wd-step:hover .wd-step__link svg { transform: translateX(3px); }

/* Features */
.wd-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wd-feature {
	background: var(--w-bg);
	border: 1px solid var(--w-line);
	border-radius: var(--w-radius);
	padding: 26px;
	transition: transform .18s ease, box-shadow .18s ease;
}
.wd-feature:hover { transform: translateY(-3px); box-shadow: var(--w-shadow); }
.wd-feature__icon {
	width: 44px; height: 44px;
	border-radius: 12px;
	display: grid; place-items: center;
	margin-bottom: 16px;
	background: var(--w-bg-tint);
	color: var(--w-primary);
}
.wd-feature__icon svg { width: 22px; height: 22px; }
.wd-feature--save .wd-feature__icon { background: #e7f8f0; color: var(--w-accent-dark); }
.wd-feature h3 { font-size: 18px; margin-bottom: 6px; }
.wd-feature p { color: var(--w-muted); margin: 0; font-size: 15px; }
.wd-feature__tag { display: inline-block; margin-top: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--w-primary-ink); background: var(--w-bg-tint); border-radius: 999px; padding: 3px 10px; }
.wd-feature--moat { border-color: #c7d7fe; background: linear-gradient(180deg, #f5f8ff, #ffffff); }
.wd-feature--moat .wd-feature__icon { background: var(--w-primary); color: #fff; }
.wd-feature--moat .wd-feature__tag { background: var(--w-primary); color: #fff; }
.wd-feature__list { margin: 12px 0 0; padding: 0; list-style: none; }
.wd-feature__list li { position: relative; padding-left: 20px; font-size: 14px; color: var(--w-ink-soft); margin: 5px 0; }
.wd-feature__list li::before { content: "✓"; position: absolute; left: 0; color: var(--w-accent-dark); font-weight: 700; }
.wd-step__feats { margin: 0 0 18px; padding: 0; list-style: none; }
.wd-step__feats li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--w-ink-soft); margin: 6px 0; }
.wd-step__feats li::before { content: "✓"; position: absolute; left: 0; color: var(--w-accent-dark); font-weight: 700; }

/* CTA band */
.wd-cta-band {
	position: relative;
	overflow: hidden;
	border-radius: 26px;
	padding: 56px 40px;
	text-align: center;
	color: #fff;
	background: radial-gradient(700px 300px at 15% 0%, #4f46e5 0, transparent 60%),
		linear-gradient(135deg, #1e3a8a, #2563eb);
	box-shadow: var(--w-shadow);
}
.wd-cta-band h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); }
.wd-cta-band p { color: #dce6ff; font-size: 18px; max-width: 52ch; margin: 0 auto 28px; }

/* ============================================================ Home video */
.wd-section--video { padding-top: 24px; }
.wd-video__box {
	position: relative;
	margin-top: 8px;
	padding: 10px;
	border-radius: 26px;
	background: linear-gradient(135deg, rgba(37, 99, 235, .55), rgba(16, 185, 129, .5));
	box-shadow: 0 30px 80px -34px rgba(37, 99, 235, .55);
}
.wd-video__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	overflow: hidden;
	background: #0b1220;
}
.wd-video__facade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: pointer;
	display: block;
	background: #0b1220;
}
.wd-video__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.wd-video__shade {
	position: absolute;
	inset: 0;
	background: radial-gradient(60% 70% at 50% 45%, rgba(15, 23, 42, .12), rgba(15, 23, 42, .58));
	transition: background .2s ease;
}
.wd-video__facade:hover .wd-video__shade { background: radial-gradient(60% 70% at 50% 45%, rgba(15, 23, 42, .04), rgba(15, 23, 42, .5)); }
.wd-video__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 92px;
	height: 92px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .96);
	color: var(--w-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
	transition: transform .18s ease;
}
.wd-video__play svg { margin-left: 4px; }
.wd-video__play::before {
	content: "";
	position: absolute;
	inset: -12px;
	border-radius: 999px;
	border: 3px solid rgba(255, 255, 255, .85);
	animation: wd-video-pulse 2.1s ease-out infinite;
}
.wd-video__facade:hover .wd-video__play { transform: translate(-50%, -50%) scale(1.08); }
@keyframes wd-video-pulse {
	0% { transform: scale(1); opacity: .65; }
	100% { transform: scale(1.55); opacity: 0; }
}
.wd-video__badge {
	position: absolute;
	left: 18px;
	bottom: 18px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 15px;
	border-radius: 999px;
	background: rgba(15, 23, 42, .58);
	color: #fff;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
}
.wd-video__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) {
	.wd-video__box { padding: 7px; border-radius: 20px; }
	.wd-video__play { width: 68px; height: 68px; }
	.wd-video__play svg { width: 26px; height: 26px; }
	.wd-video__badge { left: 12px; bottom: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	.wd-video__play::before { animation: none; }
}

/* ============================================================ Demo note (product/cart/checkout) */
.wd-note {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	max-width: var(--w-max);
	margin: 26px auto;
	padding: 18px 22px;
	background: linear-gradient(120deg, var(--w-bg-tint), #fff 70%);
	border: 1px solid #d6e4ff;
	border-left: 4px solid var(--w-primary);
	border-radius: var(--w-radius-sm);
	box-shadow: var(--w-shadow-sm);
}
.wd-note__icon {
	flex-shrink: 0;
	width: 40px; height: 40px;
	border-radius: 11px;
	background: var(--w-primary);
	color: #fff;
	display: grid; place-items: center;
}
.wd-note__icon svg { width: 22px; height: 22px; }
.wd-note__body { min-width: 0; }
.wd-note__body strong { display: block; font-size: 15.5px; color: var(--w-ink); margin-bottom: 2px; }
.wd-note__body span { color: var(--w-ink-soft); font-size: 14.5px; }
.wd-note__steps { color: var(--w-muted); font-size: 13.5px; margin-top: 6px; }
.wd-note__steps b { color: var(--w-primary); }

/* ============================================================ WooCommerce wrapper polish */
.wd-wc { padding: 40px 0 80px; }
.wd-wc .wd-page-head { text-align: center; margin-bottom: 8px; }
.wd-wc .wd-page-head h1 { font-size: clamp(26px, 4vw, 38px); }
.wd-wc .wd-page-head p { color: var(--w-muted); font-size: 17px; margin: 0; }

.wd .woocommerce-message,
.wd .woocommerce-info,
.wd .woocommerce-error {
	border-radius: var(--w-radius-sm);
	border-top: none;
	border-left: 4px solid var(--w-primary);
	background: var(--w-bg-tint);
	box-shadow: var(--w-shadow-sm);
}
.wd .woocommerce-message::before,
.wd .woocommerce-info::before { color: var(--w-primary); }

/* Shop toolbar */
.wd .woocommerce-result-count { color: var(--w-muted); font-size: 14px; margin: 0 0 18px; }
.wd .woocommerce-ordering { margin-bottom: 22px; }
.wd .woocommerce-ordering select,
.wd .select2-container,
.wd select.orderby {
	border: 1px solid var(--w-line);
	border-radius: 10px;
	padding: 9px 12px;
	background: #fff;
	font-size: 14px;
	color: var(--w-ink);
}

/* Shop / product grid — a clean CSS grid layered over WooCommerce's float layout. */
.wd.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 0 0 36px;
	padding: 0;
	list-style: none;
}
.wd.woocommerce ul.products::before,
.wd.woocommerce ul.products::after { content: none !important; display: none !important; }

.wd.woocommerce ul.products li.product {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	clear: none !important;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--w-line);
	border-radius: var(--w-radius);
	padding: 16px 16px 20px;
	background: #fff;
	box-shadow: var(--w-shadow-sm);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.wd.woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: var(--w-shadow); border-color: #cfe0ff; }
.wd.woocommerce ul.products li.product a img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 0 0 14px;
	background: var(--w-bg-soft);
}
.wd.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-weight: 700;
	font-size: 16px;
	color: var(--w-ink);
	padding: 0;
	margin: 0 0 6px;
}
.wd.woocommerce ul.products li.product .price {
	color: var(--w-primary-ink);
	font-weight: 800;
	font-size: 16px;
	margin: 0 0 14px;
}
.wd.woocommerce ul.products li.product .price del { color: var(--w-muted); font-weight: 500; }
.wd.woocommerce ul.products li.product .button,
.wd.woocommerce ul.products li.product .added_to_cart {
	margin-top: auto;
	align-self: flex-start;
}

/* Single product polish */
.wd.single-product div.product .woocommerce-product-gallery img,
.wd.single-product div.product img {
	border-radius: var(--w-radius);
}
.wd.single-product div.product .summary { padding: 4px 0; }
.wd.single-product div.product .woocommerce-tabs { clear: both; padding-top: 30px; }
.wd.single-product div.product .product_title { font-size: clamp(24px, 3.4vw, 34px); }
.wd.single-product div.product p.price,
.wd.single-product div.product span.price { color: var(--w-primary-ink); font-weight: 800; }

/* Related / up-sells headings */
.wd.woocommerce .related > h2,
.wd.woocommerce .upsells > h2,
.wd.woocommerce-cart .cart-collaterals h2 { font-size: 22px; }

/* Buttons inside WooCommerce */
.wd.woocommerce a.button,
.wd.woocommerce button.button,
.wd.woocommerce input.button,
.wd.woocommerce #respond input#submit,
.wd.woocommerce a.button.alt,
.wd.woocommerce button.button.alt,
.wd.woocommerce .single_add_to_cart_button {
	background: var(--w-primary);
	color: #fff;
	border-radius: 999px;
	font-weight: 600;
	padding: 12px 22px;
	box-shadow: var(--w-shadow-primary);
	transition: transform .15s ease, background .15s ease;
}
.wd.woocommerce a.button:hover,
.wd.woocommerce button.button:hover,
.wd.woocommerce button.button.alt:hover,
.wd.woocommerce .single_add_to_cart_button:hover { background: var(--w-primary-dark); color: #fff; transform: translateY(-2px); }

.wd.woocommerce span.onsale {
	background: var(--w-accent);
	border-radius: 999px;
	font-weight: 700;
}

/* ============================================================ Footer */
.wd-footer {
	background: #0b1220;
	color: #94a3b8;
	padding: 50px 0 40px;
}
.wd-footer__inner {
	max-width: var(--w-max);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.wd-footer__brand { display: inline-flex; align-items: center; gap: 10px; color: #e2e8f0; font-weight: 800; font-size: 17px; }
.wd-footer__brand .wd-logo__mark { width: 28px; height: 28px; font-size: 15px; }
.wd-footer__by { font-size: 12px; font-weight: 600; color: #7c8aa0; }
.wd-footer a { color: #cbd5e1; font-weight: 600; }
.wd-footer a:hover { color: #fff; }
.wd-footer__note { font-size: 13.5px; max-width: 52ch; }
.wd-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ============================================================ Responsive */
@media (max-width: 880px) {
	.wd-steps, .wd-feature-grid { grid-template-columns: 1fr; }
	.wd-nav a { padding: 8px 10px; font-size: 14px; }
	.wd-logo__tag { display: none; }
	.wd-section { padding: 60px 0; }
}
@media (max-width: 560px) {
	.wd-hero__inner { padding: 64px 20px 76px; }
	.wd-header__inner { padding: 12px 16px; }
	.wd-wrap { padding: 0 16px; }
}
