/*
Theme Name: ShopBase
Theme URI: https://example.com/shopbase
Author: Elan Gear
Description: Ultra-fast custom block theme for a high-converting multi-product WooCommerce store. Product pages are long-form landing pages. No page builders.
Version: 0.2.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shopbase
*/

/* ==========================================================================
   Motion primitives — used by scroll reveal (assets/js/motion.js)
   ========================================================================== */

@keyframes sb-fade-up {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: none; }
}

@keyframes sb-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.025); }
}

@keyframes sb-shine {
	from { transform: translateX(-120%) skewX(-18deg); }
	to { transform: translateX(320%) skewX(-18deg); }
}

@keyframes sb-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.sb-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}

.sb-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.sb-reveal,
	.sb-reveal.is-visible {
		opacity: 1;
		transform: none;
		transition: none;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

html {
	scroll-behavior: smooth;
}

/* ==========================================================================
   Announcement bar
   ========================================================================== */

.sb-announce {
	background: linear-gradient(90deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
	color: #fff;
	text-align: center;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 0.55rem 1rem;
	position: relative;
	overflow: hidden;
}

.sb-announce::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 90px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
	animation: sb-shine 5.5s ease-in-out infinite;
}

/* ==========================================================================
   Header (sticky)
   ========================================================================== */

/* The sticky element must be the template-part wrapper, not the inner group:
   a sticky child can never travel outside its parent's box, and the wrapper is
   exactly as tall as the header. */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

.sb-header {
	background: var(--surface-color);
	border-bottom: 1px solid rgba(2, 48, 71, 0.08);
	transition: box-shadow 0.25s ease, padding 0.25s ease;
}

body.sb-scrolled .sb-header {
	box-shadow: 0 6px 24px rgba(2, 48, 71, 0.1);
}

.sb-header-inner {
	padding: 0.75rem 1.25rem;
	transition: padding 0.25s ease;
}

body.sb-scrolled .sb-header-inner {
	padding-top: 0.4rem;
	padding-bottom: 0.4rem;
}

.sb-header .wp-block-site-logo img {
	max-height: 44px;
	width: auto;
	transition: max-height 0.25s ease;
}

body.sb-scrolled .sb-header .wp-block-site-logo img {
	max-height: 34px;
}

.sb-header .wp-block-navigation a {
	font-size: 0.9375rem;
	font-weight: 600;
	position: relative;
	padding-bottom: 2px;
}

.sb-header .wp-block-navigation a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--accent-color);
	transition: right 0.25s ease;
}

.sb-header .wp-block-navigation a:hover::after {
	right: 0;
}

.sb-header-tools {
	gap: 0.9rem;
}

.sb-header-slim .sb-header-inner {
	padding: 0.6rem 1.25rem;
}

.sb-header-slim .wp-block-site-logo img {
	max-height: 40px;
}

/* Product search with suggestions */

.sb-search {
	position: relative;
	display: flex;
	align-items: center;
	background: var(--bg-color);
	border: 1px solid rgba(2, 48, 71, 0.1);
	border-radius: 999px;
	padding: 0.2rem 0.3rem 0.2rem 0.9rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sb-search:focus-within {
	border-color: var(--secondary-color);
	box-shadow: 0 0 0 3px rgba(33, 158, 188, 0.18);
}

.sb-search input[type="search"] {
	border: 0;
	background: transparent;
	font-size: 0.875rem;
	width: 170px;
	outline: none;
	color: var(--text-color);
}

.sb-search button {
	border: 0;
	background: var(--primary-color);
	color: #fff;
	border-radius: 999px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.sb-search button:hover {
	background: var(--accent-color);
	transform: scale(1.06);
}

.sb-search-suggest {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: var(--surface-color);
	border-radius: 12px;
	box-shadow: 0 14px 40px rgba(2, 48, 71, 0.18);
	overflow: hidden;
	z-index: 50;
	animation: sb-fade-up 0.2s ease;
}

.sb-search-suggest a {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.5rem 0.75rem;
	font-size: 0.85rem;
}

.sb-search-suggest a:hover {
	background: var(--bg-color);
}

.sb-search-suggest img {
	width: 34px;
	height: 34px;
	border-radius: 6px;
	object-fit: cover;
}

.sb-search-suggest .sb-suggest-price {
	margin-left: auto;
	font-weight: 700;
	white-space: nowrap;
	color: var(--accent-color);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.wp-block-button__link,
.sb-buy-now,
.woocommerce ul.products li.product .button {
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-button__link:hover,
.woocommerce ul.products li.product .button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(2, 48, 71, 0.18);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.sb-hero {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	margin-top: 1rem;
	background: var(--primary-color);
}

.sb-hero .wp-block-columns {
	gap: 0;
	align-items: stretch;
	margin: 0;
}

.sb-hero-copy {
	padding: clamp(2rem, 5vw, 4.5rem);
	position: relative;
	z-index: 2;
}

.sb-hero-eyebrow {
	display: inline-block;
	background: var(--highlight-color);
	color: var(--primary-color);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 0.3rem 0.9rem;
	margin-bottom: 1rem;
}

/* No entrance animation above the fold: the hero is the LCP element and must
   paint immediately. Motion elsewhere comes from scroll reveal and hovers. */
.sb-hero-copy h1 {
	color: #fff;
	font-size: clamp(2.1rem, 4.6vw, 3.75rem);
	margin: 0 0 1rem;
}

.sb-hero-copy h1 em {
	font-style: normal;
	color: var(--highlight-color);
}

.sb-hero-sub {
	color: var(--sky-color);
	font-size: 1.02rem;
	max-width: 46ch;
	margin: 0 0 1.6rem;
}

.sb-hero-stats {
	display: flex;
	gap: 2rem;
	margin-top: 2rem;
}

.sb-hero-stats div {
	color: #fff;
}

.sb-hero-stats b {
	display: block;
	font-size: 1.5rem;
	line-height: 1.1;
	color: var(--highlight-color);
}

.sb-hero-stats span {
	font-size: 0.78rem;
	color: var(--sky-color);
	letter-spacing: 0.04em;
}

.sb-hero-media {
	position: relative;
	min-height: 420px;
}

.sb-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sb-hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--primary-color) 0%, rgba(2, 48, 71, 0.35) 45%, transparent 100%);
}

/* ==========================================================================
   Section headings
   ========================================================================== */

.sb-section-head h2 {
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	margin-bottom: 0.4rem;
	position: relative;
}

.sb-section-head h2::after {
	content: "";
	display: block;
	width: 54px;
	height: 4px;
	border-radius: 999px;
	background: var(--accent-color);
	margin: 0.65rem auto 0;
}

.sb-section-sub {
	color: var(--muted-color);
	max-width: 52ch;
	margin: 0 auto 1.25rem;
	font-size: 0.9375rem;
}

/* ==========================================================================
   Category cards
   ========================================================================== */

.sb-cat-card {
	border-radius: 16px;
	overflow: hidden;
	min-height: 340px;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

/* Photos behind these covers are busy — anchor the copy on a gradient so the
   white text keeps its contrast whatever the crop shows. */
.sb-cat-card .wp-block-cover__inner-container,
.sb-banner .wp-block-cover__inner-container,
.sb-cta .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

.sb-cat-card::before,
.sb-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(2, 48, 71, 0.82) 0%, rgba(2, 48, 71, 0.45) 42%, rgba(2, 48, 71, 0.12) 100%);
	pointer-events: none;
}

.sb-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(2, 48, 71, 0.55) 0%, rgba(2, 48, 71, 0.75) 100%);
	pointer-events: none;
}

.sb-cat-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(2, 48, 71, 0.22);
}

.sb-cat-card img.wp-block-cover__image-background {
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sb-cat-card:hover img.wp-block-cover__image-background {
	transform: scale(1.06);
}

.sb-cat-card h3 {
	color: #fff;
	font-size: 1.3rem;
	margin-bottom: 0.35rem;
}

.sb-cat-card p {
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.85rem;
	margin: 0 0 0.9rem;
}

.sb-banner {
	border-radius: 18px;
	overflow: hidden;
	min-height: 320px;
	position: relative;
}

.sb-banner h2 {
	color: #fff;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	margin-bottom: 0.35rem;
}

.sb-banner p {
	color: var(--sky-color);
	margin: 0 0 1rem;
}

/* ==========================================================================
   Product grid (WooCommerce loop)
   Woo floats items and injects a display:table clearfix; neutralise both.
   ========================================================================== */

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
	content: none;
	display: none;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product,
.woocommerce ul.products li.product {
	width: auto;
	max-width: none;
	float: none;
	clear: none;
	margin: 0;
	background: var(--surface-color);
	border: 1px solid rgba(2, 48, 71, 0.07);
	border-radius: 16px;
	padding: 0.85rem;
	display: flex;
	flex-direction: column;
	text-align: left;
	position: relative;
	overflow: hidden;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Cards in a row are equal height; the copy block absorbs the slack so the
   button row always lands on the same line across the whole grid. */
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.woocommerce ul.products li.product .sb-card-excerpt {
	flex: 1 1 auto;
}

.woocommerce ul.products li.product .sb-card-actions {
	margin-top: auto;
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-6px);
	border-color: rgba(33, 158, 188, 0.35);
	box-shadow: 0 18px 36px rgba(2, 48, 71, 0.14);
}

.woocommerce ul.products li.product > * {
	width: 100%;
}

/* Shortcode autop injects <br>/<p> around the sale badge inside the product
   link, which would push the image down and break card alignment. */
.woocommerce ul.products li.product br,
.woocommerce ul.products li.product p:empty {
	display: none;
}

.woocommerce ul.products li.product .sb-card-media {
	position: relative;
	display: block;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 0.85rem;
	background: #eef4f7;
}

.woocommerce ul.products li.product a img {
	border-radius: 12px;
	background: #eef4f7;
	margin: 0 0 0.85rem;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.woocommerce ul.products li.product:hover a img {
	transform: scale(1.05);
}

.sb-card-price {
	font-weight: 800;
	font-size: 1.05rem;
	color: var(--text-color);
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.sb-card-price del {
	color: var(--muted-color);
	font-weight: 400;
	font-size: 0.9rem;
	opacity: 0.85;
}

.sb-card-price ins {
	text-decoration: none;
	color: var(--text-color);
}

.sb-card-title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.98rem;
	font-weight: 700;
	margin: 0.3rem 0 0.2rem;
	line-height: 1.35;
}

.sb-card-excerpt {
	color: var(--muted-color);
	font-size: 0.8125rem;
	line-height: 1.5;
	margin: 0 0 0.9rem;
	flex-grow: 1;
}

.sb-card-rating {
	color: var(--highlight-color);
	font-size: 0.8rem;
	letter-spacing: 1px;
	margin-bottom: 0.15rem;
}

.sb-card-rating span {
	color: var(--muted-color);
	letter-spacing: normal;
	margin-left: 0.25rem;
}

/* Two-button row pinned to the card bottom */
.sb-card-actions {
	display: flex;
	gap: 0.55rem;
	width: 100%;
	margin-top: 0.5rem;
}

.woocommerce ul.products li.product .button,
.sb-buy-now {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 0.85rem;
	font-weight: 700;
	padding: 0.68rem 0.5rem;
	border-radius: 10px;
	line-height: 1.2;
	margin: 0;
}

.woocommerce ul.products li.product .button {
	background: transparent;
	color: var(--primary-color);
	border: 1.5px solid rgba(2, 48, 71, 0.25);
}

.woocommerce ul.products li.product .button:hover {
	background: var(--primary-color);
	color: #fff;
	border-color: var(--primary-color);
}

.sb-buy-now {
	background: var(--accent-color);
	color: #fff;
	border: 1.5px solid var(--accent-color);
}

.sb-buy-now:hover {
	background: var(--highlight-color);
	border-color: var(--highlight-color);
	color: var(--primary-color);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(251, 133, 0, 0.35);
}

.sb-card-actions > .button,
.woocommerce ul.products[class*="columns-"] li.product .sb-card-actions > .button,
.sb-card-actions > .sb-buy-now {
	flex: 1 1 0;
	width: auto;
	margin: 0;
}

.woocommerce ul.products li.product .added_to_cart {
	display: none;
}

/* Sale badge — sits over the image, never shifts the layout */
.woocommerce ul.products li.product .onsale,
.woocommerce ul.products[class*="columns-"] li.product .onsale {
	background: var(--accent-color);
	color: #fff;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	padding: 0.18rem 0.7rem;
	min-height: 0;
	line-height: 1.7;
	top: 1.4rem;
	right: 1.4rem;
	left: auto;
	margin: 0;
	position: absolute;
	z-index: 2;
	width: auto;
	box-shadow: 0 4px 12px rgba(251, 133, 0, 0.4);
}

/* ==========================================================================
   Value proposition / trust badges
   ========================================================================== */

.sb-vp {
	background: var(--surface-color);
	border: 1px solid rgba(2, 48, 71, 0.07);
	border-radius: 18px;
	padding: 1.75rem 1rem;
	margin-bottom: 0;
}

.sb-vp .wp-block-column {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.4rem;
}

.sb-vp svg {
	width: 30px;
	height: 30px;
	color: var(--secondary-color);
	padding: 0.55rem;
	box-sizing: content-box;
	background: rgba(142, 202, 230, 0.22);
	border-radius: 50%;
	transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.sb-vp .wp-block-column:hover svg {
	transform: translateY(-4px) scale(1.06);
	background: var(--highlight-color);
	color: var(--primary-color);
}

.sb-vp strong {
	font-size: 0.95rem;
}

.sb-vp p {
	margin: 0;
	color: var(--muted-color);
	font-size: 0.82rem;
}

/* ==========================================================================
   Testimonial carousel
   ========================================================================== */

.sb-tm {
	position: relative;
}

.sb-tm-viewport {
	overflow: hidden;
}

.sb-tm-track {
	display: flex;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.sb-tm-card {
	flex: 0 0 calc(100% / 3);
	box-sizing: border-box;
	margin: 0;
	padding: 0 0.5rem;
	display: flex;
	flex-direction: column;
}

.sb-tm-card > * {
	margin: 0;
}

/* Inner surface so equal-height cards align regardless of quote length. */
.sb-tm-card blockquote,
.sb-tm-card .sb-tm-stars,
.sb-tm-card figcaption {
	background: var(--surface-color);
	border-left: 1px solid rgba(2, 48, 71, 0.07);
	border-right: 1px solid rgba(2, 48, 71, 0.07);
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.sb-tm-card .sb-tm-stars {
	border-top: 1px solid rgba(2, 48, 71, 0.07);
	border-radius: 14px 14px 0 0;
	padding-top: 1.1rem;
	padding-bottom: 0.45rem;
	color: var(--highlight-color);
	letter-spacing: 2px;
}

.sb-tm-card blockquote {
	flex: 1 1 auto;
	quotes: none;
	font-size: 0.94rem;
	line-height: 1.6;
	color: var(--text-color);
	padding-bottom: 1rem;
}

.sb-tm-card figcaption {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	border-bottom: 1px solid rgba(2, 48, 71, 0.07);
	border-radius: 0 0 14px 14px;
	padding-bottom: 1.1rem;
}

.sb-tm-avatar {
	width: 38px;
	height: 38px;
	flex: none;
	border-radius: 50%;
	background: var(--secondary-color);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 1rem;
}

.sb-tm-card figcaption strong {
	display: block;
	font-size: 0.9rem;
	line-height: 1.25;
}

.sb-tm-card figcaption small {
	color: var(--muted-color);
	font-size: 0.8rem;
}

.sb-tm-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.sb-tm-nav {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1.5px solid rgba(2, 48, 71, 0.2);
	background: var(--surface-color);
	color: var(--primary-color);
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sb-tm-nav:hover {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: #fff;
}

.sb-tm-dots {
	display: flex;
	gap: 0.4rem;
}

.sb-tm-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(2, 48, 71, 0.22);
	cursor: pointer;
	transition: background 0.2s ease, width 0.2s ease;
}

.sb-tm-dot.is-active {
	background: var(--accent-color);
	width: 22px;
	border-radius: 999px;
}

@media (max-width: 999px) {
	.sb-tm-card {
		flex-basis: 50%;
	}
}

@media (max-width: 639px) {
	.sb-tm-card {
		flex-basis: 100%;
	}
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.sb-cta {
	border-radius: 18px;
	overflow: hidden;
	position: relative;
}

.sb-cta h2 {
	color: #fff;
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

.sb-cta p {
	color: var(--sky-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.sb-footer {
	background: var(--primary-color);
	color: #D8E7EF;
	margin-top: 4rem;
}

.sb-footer a {
	color: #D8E7EF;
	font-size: 0.9rem;
	transition: color 0.2s ease;
}

.sb-footer a:hover {
	color: var(--highlight-color);
}

.sb-footer h4 {
	color: #fff;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9375rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.75rem;
}

.sb-footer-note {
	color: #9FBACA;
	font-size: 0.85rem;
}

.sb-credit {
	color: #7E9AAB;
	font-size: 0.8rem;
	margin: 0.35rem 0 0;
}

.sb-credit a {
	color: var(--sky-color);
	font-size: inherit;
	font-weight: 600;
}

.sb-credit a:hover {
	color: var(--highlight-color);
}

.sb-footer-contact {
	font-size: 0.9rem;
}

.sb-footer-contact a {
	color: var(--highlight-color);
}

.sb-footer-logo {
	margin-bottom: 0.75rem;
}

.sb-footer-slim {
	margin-top: 3rem;
}

.sb-footer-slim .sb-footer-note {
	margin: 0.75rem 0 0;
}

.sb-pay-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.sb-pay-chips-center {
	justify-content: center;
}

.sb-pay-chips span {
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.05);
	color: #D8E7EF;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 6px;
	padding: 0.25rem 0.6rem;
	white-space: nowrap;
}

.sb-newsletter input[type="email"] {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 10px;
	color: #fff;
	padding: 0.65rem 0.9rem;
	width: 100%;
	max-width: 320px;
}

.sb-newsletter input::placeholder {
	color: #8FA9B8;
}

.sb-newsletter button {
	background: var(--highlight-color);
	color: var(--primary-color);
	border: 0;
	border-radius: 10px;
	font-weight: 800;
	padding: 0.7rem 1.25rem;
	cursor: pointer;
	margin-top: 0.5rem;
	transition: background 0.2s ease, transform 0.2s ease;
}

.sb-newsletter button:hover {
	background: var(--accent-color);
	color: #fff;
	transform: translateY(-2px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(2, 1fr);
	}

	.sb-hero-media {
		min-height: 300px;
	}
}

@media (max-width: 781px) {
	/* Core stacks columns below 782px; keep the trust badges 2x2. */
	.sb-vp.wp-block-columns {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1.35rem 0.5rem;
	}

	.sb-vp.wp-block-columns .wp-block-column {
		flex-basis: auto !important;
		margin: 0;
	}
}

@media (max-width: 767px) {
	.sb-announce {
		font-size: 0.75rem;
		padding: 0.4rem 0.75rem;
		line-height: 1.4;
	}

	.sb-header-tools {
		flex: 1 1 100%;
		gap: 0.6rem;
	}

	.sb-search {
		flex: 1;
	}

	.sb-search input[type="search"] {
		width: 100%;
	}

	.sb-hero .wp-block-column {
		flex-basis: 100% !important;
	}

	.sb-hero-media::after {
		background: linear-gradient(180deg, var(--primary-color) 0%, rgba(2, 48, 71, 0.25) 60%, transparent 100%);
	}

	.sb-hero-stats {
		gap: 1.25rem;
	}

	.sb-hero-stats b {
		font-size: 1.2rem;
	}
}

@media (max-width: 600px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}

	.woocommerce ul.products li.product {
		padding: 0.6rem;
	}

	.sb-card-title {
		font-size: 0.88rem;
	}

	.sb-card-excerpt {
		display: none;
	}

	.sb-card-actions {
		flex-direction: column;
		gap: 0.4rem;
	}

	.sb-cat-card {
		min-height: 240px;
	}
}
