/* ==========================================================================
   BidHive Bargains – theme.css
   ========================================================================== */

/* Fonts: Outfit + DM Sans (same stack as the Lovable project) — loaded in header.php */

/* --------------------------------------------------------------------------
   CSS Custom Properties (colors overridden via wp_add_inline_style)
   -------------------------------------------------------------------------- */
:root {
	/* Palette = Lovable `src/index.css` light theme (HSL → same hues as Tailwind tokens) */
	--color-primary:            hsl(186 36% 36%);
	--color-accent:             hsl(38 70% 55%);
	--color-background:         hsl(40 30% 97%);
	--color-foreground:         hsl(186 30% 12%);
	--color-secondary:          hsl(40 25% 92%);
	--color-secondary-foreground: hsl(186 25% 18%);
	--color-muted:              hsl(40 15% 85%);
	--color-muted-foreground:   hsl(186 10% 42%);
	--color-border:             hsl(40 15% 82%);
	--color-card:               hsl(40 20% 94%);
	--color-button-text:      hsl(0 0% 100%);

	--font-display: 'Outfit', sans-serif;
	--font-body:    'DM Sans', sans-serif;

	--radius:       0.5rem;
	--radius-lg:    1rem;
	--radius-full:  9999px;
	--logo-height:  36px;

	--shadow-soft:     0 4px 20px -4px hsl(186 30% 12% / 0.08);
	--shadow-elevated: 0 8px 40px -8px hsl(186 30% 12% / 0.15);
	--transition:      cubic-bezier(0.4, 0, 0.2, 1);

	--header-height: 80px;
	--container-max: 1280px;
}

/* --------------------------------------------------------------------------
   RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	font-family: var(--font-body);
	background-color: var(--color-background);
	color: var(--color-foreground);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { cursor: pointer; background: none; border: none; font: inherit; }
input, textarea, select { font: inherit; }

/* --------------------------------------------------------------------------
   LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container-wide {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: 1.5rem;
}

@media (min-width: 1024px) {
	.container-wide { padding-inline: 2rem; }
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }

.section-eyebrow {
	display: block;
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	margin-bottom: 0.5rem;
}

.section-headline {
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 1rem;
}

.section-subtext {
	color: var(--color-muted-foreground);
	font-size: 1rem;
	line-height: 1.7;
	max-width: 38rem;
	margin-inline: auto;
}

.section-header {
	margin-bottom: 3rem;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1;
	padding: 0.75rem 1.75rem;
	border-radius: var(--radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: opacity 0.2s var(--transition), background-color 0.2s var(--transition), transform 0.15s var(--transition);
	white-space: nowrap;
	text-decoration: none;
}

.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.97); }

.btn-primary {
	background-color: var(--color-primary);
	color: var(--color-button-text);
}

.btn-primary:hover {
	opacity: 0.88;
	color: var(--color-button-text);
}

.btn-secondary {
	background-color: var(--color-secondary);
	color: var(--color-secondary-foreground);
}

.btn-secondary:hover {
	background-color: var(--color-muted);
	opacity: 1;
}

.btn-outline {
	background-color: transparent;
	border-color: var(--color-border);
	color: var(--color-foreground);
}

.btn-outline:hover {
	background-color: var(--color-secondary);
	color: var(--color-secondary-foreground);
}

.btn-ghost {
	background-color: rgba(255,255,255,0.1);
	color: #fff;
	border-color: rgba(255,255,255,0.2);
}

.btn-ghost:hover {
	background-color: rgba(255,255,255,0.2);
}

.btn-accent {
	background-color: var(--color-accent);
	/* Lovable `accent-foreground` = foreground */
	color: var(--color-foreground);
}

.btn-accent:hover {
	opacity: 0.9;
}

.btn-round { border-radius: var(--radius-full); }
.btn-full  { width: 100%; }

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	transition: background-color 0.3s var(--transition), border-color 0.3s var(--transition);
}

/* Logged-in preview: fixed header must sit below the WP admin bar (admin bar is not offset by html margin). */
body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

.site-header:not(.is-solid) {
	background-color: transparent;
	border-bottom: 1px solid transparent;
}

.site-header.is-solid {
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--color-border);
}

.header-inner {
	position: relative;
}

.header-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 64px;
	position: relative;
}

@media (min-width: 1024px) {
	.header-nav { height: var(--header-height); }
}

.site-logo-link {
	position: absolute;
	left: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.site-logo-img  { height: var(--logo-height) !important; width: auto !important; display: block; }
.site-logo-text {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	transition: color 0.3s;
}

.site-header:not(.is-solid) .site-logo-text { color: #fff; }

@media (min-width: 1024px) {
	.site-logo-text { font-size: 1.5rem; }
}

.header-nav-links { display: flex; align-items: center; gap: 2rem; }

.nav-link {
	font-size: 0.875rem;
	font-family: var(--font-body);
	letter-spacing: 0.02em;
	cursor: pointer;
	position: relative;
	transition: color 0.2s;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: -2px; left: 0;
	width: 100%; height: 1px;
	background-color: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--transition);
}

.nav-link:hover::after { transform: scaleX(1); }

.site-header:not(.is-solid) .nav-link { color: rgba(255,255,255,0.9); }
.site-header:not(.is-solid) .nav-link:hover { color: #fff; }

.header-actions {
	position: absolute;
	right: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.cart-btn {
	position: relative;
	padding: 0.5rem;
	transition: opacity 0.2s;
	color: inherit;
}

.cart-btn:hover { opacity: 0.6; }

.site-header:not(.is-solid) .cart-btn { color: #fff; }

.theme-cart-count {
	position: absolute;
	top: 0; right: 0;
	min-width: 1.25rem; height: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.625rem;
	font-weight: 600;
	background-color: var(--color-primary);
	color: var(--color-button-text);
	border-radius: var(--radius-full);
	transform: translate(25%,-25%);
}

.theme-cart-count:empty { display: none; }

@media (min-width: 1024px) {
	.cart-btn.desktop-only { display: flex; }
}
@media (max-width: 1023px) {
	.cart-btn.desktop-only { display: none !important; }
	.desktop-nav { display: none !important; }
}

.mobile-menu-btn {
	padding: 0.5rem;
	transition: opacity 0.2s;
	color: inherit;
	display: flex;
	align-items: center;
}

.mobile-menu-btn:hover { opacity: 0.6; }

.site-header:not(.is-solid) .mobile-menu-btn { color: #fff; }

@media (min-width: 1024px) {
	.mobile-menu-btn { display: none; }
}

.mobile-menu {
	display: none;
	flex-direction: column;
	gap: 0;
	padding: 1rem 0;
	border-top: 1px solid var(--color-border);
}

.mobile-menu.is-open { display: flex; }

.mobile-nav-link {
	display: block;
	padding: 0.75rem 0;
	font-size: 0.875rem;
	font-family: var(--font-body);
	letter-spacing: 0.02em;
	border-bottom: 1px solid transparent;
	transition: color 0.2s;
}

.mobile-nav-link:hover { color: var(--color-primary); }

.mobile-cart-btn {
	padding: 0.75rem 0 !important;
	font-size: 0.875rem !important;
	font-family: var(--font-body) !important;
	background: none !important;
	border: none !important;
	justify-content: flex-start !important;
	position: relative !important;
	transform: none !important;
	min-height: unset !important;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	background-color: var(--color-foreground);
}

.hero-bg-wrap {
	position: absolute;
	inset: 0;
}

.hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background-color: color-mix(in srgb, var(--color-foreground) 50%, transparent);
}

.hero-radial-glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, color-mix(in srgb, var(--color-primary) 15%, transparent) 0%, transparent 70%);
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	width: 100%;
	margin-inline: auto;
	padding: 5rem 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.hero-trust-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.625rem 1.25rem;
	border-radius: var(--radius-full);
	border: 1px solid rgba(255,255,255,0.25);
	background: rgba(255,255,255,0.15);
	backdrop-filter: blur(12px);
	margin-bottom: 2.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.hero-trust-text {
	font-size: 0.8125rem;
	color: #fff;
	font-family: var(--font-body);
	font-weight: 500;
}

.hero-trust-sep { color: var(--color-accent); font-size: 0.75rem; }
.hero-trust-sep--hidden-mobile { display: none; }

@media (min-width: 640px) {
	.hero-trust-text { font-size: 0.875rem; }
	.hero-trust-sep--hidden-mobile { display: inline; }
	.hero-trust-3 { display: inline; }
}

.hero-headline-wrap { margin-bottom: 1.5rem; }

.hero-h1 {
	font-family: var(--font-display);
	font-size: clamp(2.25rem, 8vw, 5rem);
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
	letter-spacing: -0.02em;
	text-shadow:
		0 0 60px color-mix(in srgb, var(--color-primary) 20%, transparent),
		0 0 120px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

@media (min-width: 1280px) { .hero-h1 { font-size: 5.5rem; } }

.hero-subtext {
	color: rgba(255,255,255,0.6);
	max-width: 42rem;
	margin-inline: auto;
	margin-bottom: 3rem;
	font-size: 1rem;
	line-height: 1.7;
}

@media (min-width: 768px) { .hero-subtext { font-size: 1.125rem; } }

.hero-ctas {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: center;
}

@media (min-width: 640px) {
	.hero-ctas { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* --------------------------------------------------------------------------
   MARQUEE
   -------------------------------------------------------------------------- */
.marquee-bar {
	background-color: var(--color-primary);
	color: #fff;
	overflow: hidden;
	padding: 0.75rem 0;
}

.marquee-inner {
	display: flex;
	white-space: nowrap;
	animation: marquee 25s linear infinite;
}

.marquee-group {
	display: flex;
	align-items: center;
	gap: 2rem;
	min-width: max-content;
}

.marquee-item {
	font-size: 0.875rem;
	font-family: var(--font-body);
	font-weight: 500;
}

.marquee-sep {
	color: rgba(255,255,255,0.4);
	font-size: 0.75rem;
}

@keyframes marquee {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-section {
	background-color: var(--color-secondary);
	padding: 5rem 0;
}

@media (min-width: 768px) { .about-section { padding: 6rem 0; } }

.about-header {
	text-align: center;
	max-width: 48rem;
	margin-inline: auto;
	margin-bottom: 3.5rem;
}

.about-logo-wrap { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.about-logo { width: 7rem; height: 7rem; object-fit: contain; }
@media (min-width: 768px) { .about-logo { width: 9rem; height: 9rem; } }

.about-body {
	color: var(--color-muted-foreground);
	font-size: 1rem;
	line-height: 1.75;
}

.about-pillars {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.about-pillars { grid-template-columns: repeat(3, 1fr); }
}

.pillar-card { text-align: center; padding: 1.5rem; }

.pillar-icon-wrap {
	width: 3rem; height: 3rem;
	background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-inline: auto;
	margin-bottom: 1rem;
	color: var(--color-primary);
}

.pillar-title {
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.pillar-text {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   SHOP SECTION
   -------------------------------------------------------------------------- */
.shop-section {
	padding: 4rem 0 5rem;
}

.shop-header {
	text-align: center;
	margin-bottom: 3rem;
}

.shop-search-wrap {
	max-width: 28rem;
	margin-inline: auto;
	margin-bottom: 2rem;
}

.shop-search-inner {
	position: relative;
}

.shop-search-icon {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--color-muted-foreground);
}

.shop-search-input {
	width: 100%;
	padding: 0.625rem 2.5rem 0.625rem 2.25rem;
	font-size: 0.875rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background-color: var(--color-background);
	color: var(--color-foreground);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.shop-search-input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

.shop-search-input::placeholder { color: var(--color-muted-foreground); }

.shop-search-clear {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--color-muted-foreground);
	transition: color 0.2s;
}

.shop-search-clear:hover { color: var(--color-foreground); }

.shop-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.625rem 1.25rem;
	font-size: 0.875rem;
	font-family: var(--font-body);
	border-radius: var(--radius);
	background-color: var(--color-secondary);
	color: var(--color-secondary-foreground);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, transform 0.1s;
	border: none;
}

/* Lovable inactive filter: `hover:bg-muted` */
.filter-btn:not(.filter-btn--active):hover { background-color: var(--color-muted); }
.filter-btn:active { transform: scale(0.97); }
.filter-btn--active { background-color: var(--color-primary); color: var(--color-button-text); }

/* --------------------------------------------------------------------------
   PRODUCT GRID & CARDS
   -------------------------------------------------------------------------- */
.theme-product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	align-items: stretch;
}

@media (min-width: 768px) {
	.theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}

@media (min-width: 1024px) {
	.theme-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
}

.theme-product-card-wrap { display: flex; }

.theme-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}

/* Lovable ProductCard: lift + shadow only on the image block; scale only on <img> */
.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: var(--color-secondary);
	border-radius: var(--radius);
	margin-bottom: 1rem;
	transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition);
	isolation: isolate;
}

.theme-product-card__image-wrapper::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background-color: transparent;
	transition: background-color 0.5s var(--transition);
	pointer-events: none;
	z-index: 2;
}

.theme-product-card__image-wrapper:hover {
	transform: translateY(-0.5rem);
	box-shadow: var(--shadow-elevated);
}

.theme-product-card__image-wrapper:hover::after {
	background-color: color-mix(in srgb, var(--color-foreground) 5%, transparent);
}

.theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
}

.theme-product-card__image {
	position: relative;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-product-card__image-wrapper:hover .theme-product-card__image { transform: scale(1.08); }

.theme-product-card__info { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }

.theme-product-card__info-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.theme-product-card__title {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	transition: color 0.3s var(--transition);
}

.theme-product-card__info-link:hover .theme-product-card__title { color: var(--color-primary); }

.theme-product-card__price {
	font-size: 0.875rem;
	font-family: var(--font-body);
	font-weight: 600;
	color: var(--color-muted-foreground);
	margin: 0;
}

.theme-product-card__info-link .theme-product-card__price {
	color: var(--color-muted-foreground);
}

.card-badge {
	position: absolute;
	z-index: 4;
	pointer-events: none;
	border-radius: calc(var(--radius) - 2px);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.25rem 0.5rem;
}

.card-badge--sold-out {
	top: 0.5rem; left: 0.5rem;
	background-color: var(--color-foreground);
	color: var(--color-background);
}

.card-badge--condition {
	top: 0.5rem; right: 0.5rem;
	background-color: color-mix(in srgb, var(--color-primary) 90%, transparent);
	color: var(--color-button-text);
}

@media (min-width: 768px) {
	.card-badge--sold-out { top: 0.75rem; left: 0.75rem; }
	.card-badge--condition { top: 0.75rem; right: 0.75rem; }
}

.shop-no-products {
	text-align: center;
	padding: 5rem 0;
	color: var(--color-muted-foreground);
}

.shop-load-more-wrap {
	text-align: center;
	margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   TESTIMONIALS SECTION
   -------------------------------------------------------------------------- */
.testimonials-section {
	padding: 4rem 0 6rem;
	background-color: var(--color-background);
	position: relative;
	overflow: hidden;
}

.dot {
	position: absolute;
	border-radius: 50%;
	display: none;
}

@media (min-width: 1024px) { .dot { display: block; } }

.dot-1 { width: 0.75rem; height: 0.75rem; top: 4rem; left: 3rem; background-color: color-mix(in srgb, var(--color-accent) 40%, transparent); }
.dot-2 { width: 0.625rem; height: 0.625rem; bottom: 5rem; left: 7rem; background-color: color-mix(in srgb, hsl(0 84% 60%) 30%, transparent); }
.dot-3 { width: 0.5rem; height: 0.5rem; top: 8rem; right: 5rem; background-color: color-mix(in srgb, var(--color-primary) 30%, transparent); }
.dot-4 { width: 0.75rem; height: 0.75rem; bottom: 4rem; right: 8rem; background-color: color-mix(in srgb, var(--color-accent) 50%, transparent); }

.testimonials-inner { text-align: center; }

.testimonials-carousel {
	position: relative;
	max-width: 42rem;
	margin-inline: auto;
	margin-top: 3rem;
}

.quote-mark {
	position: absolute;
	font-size: 5rem;
	font-family: Georgia, serif;
	color: color-mix(in srgb, var(--color-foreground) 8%, transparent);
	line-height: 1;
	user-select: none;
}

.quote-mark--open { top: -0.5rem; left: 1rem; }
.quote-mark--close { bottom: -1.5rem; right: 1rem; }

@media (min-width: 768px) {
	.quote-mark { font-size: 6rem; }
	.quote-mark--open { left: 0; }
	.quote-mark--close { right: 0; }
}

.testimonial-prev,
.testimonial-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: var(--color-accent);
	transition: opacity 0.2s;
	display: none;
	padding: 0.5rem;
}

.testimonial-prev:hover,
.testimonial-next:hover { opacity: 0.7; }

.testimonial-prev { left: 0; transform: translateY(-50%) translateX(-3rem); }
.testimonial-next { right: 0; transform: translateY(-50%) translateX(3rem); }

@media (min-width: 768px) {
	.testimonial-prev,
	.testimonial-next { display: block; }
	.testimonial-prev { transform: translateY(-50%) translateX(-4rem); }
	.testimonial-next { transform: translateY(-50%) translateX(4rem); }
}

.testimonials-slides {
	padding-inline: 2rem;
	overflow: hidden;
	display: grid;
}

@media (min-width: 768px) { .testimonials-slides { padding-inline: 3rem; } }

/* Stacked slides (same as Lovable AnimatePresence): exit left, enter from right, 0.35s */
.testimonial-slide {
	grid-area: 1 / 1;
	align-self: start;
	justify-self: stretch;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transform: translate3d(30px, 0, 0);
	transition:
		opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0s linear 0.35s;
	pointer-events: none;
	z-index: 0;
}

.testimonial-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: translate3d(0, 0, 0);
	transition:
		opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0s linear 0s;
	pointer-events: auto;
	z-index: 1;
}

.testimonial-slide.is-active.is-leaving {
	opacity: 0;
	transform: translate3d(-30px, 0, 0);
	visibility: visible;
	transition:
		opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0s linear 0s;
	z-index: 2;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.testimonial-slide,
	.testimonial-slide.is-active,
	.testimonial-slide.is-active.is-leaving {
		transition: none !important;
		transform: none !important;
	}

	.testimonial-slide:not(.is-active) {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	.testimonial-slide.is-active {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}

.testimonial-name {
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.testimonial-location {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	margin-bottom: 1rem;
}

.testimonial-stars {
	display: flex;
	justify-content: center;
	gap: 0.25rem;
	margin-bottom: 1.5rem;
}

.star-icon { width: 1rem; height: 1rem; }
.star-filled { color: var(--color-accent); }
.star-empty  { color: var(--color-muted-foreground); }

.testimonial-text {
	font-size: 1rem;
	line-height: 1.7;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
}

@media (min-width: 768px) { .testimonial-text { font-size: 1.125rem; } }

.testimonials-mobile-arrows {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin-top: 2rem;
	color: var(--color-accent);
}

@media (min-width: 768px) { .testimonials-mobile-arrows { display: none; } }

.testimonials-dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
}

.testimonial-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: var(--radius-full);
	background-color: color-mix(in srgb, var(--color-foreground) 25%, transparent);
	transition: width 0.3s, background-color 0.3s;
}

.testimonial-dot.is-active {
	background-color: var(--color-accent);
	width: 1.5rem;
}

/* --------------------------------------------------------------------------
   FAQ SECTION (tokens aligned with Lovable Index FAQ: bg-secondary, cards bg-background + border-border, text-muted-foreground on answers)
   -------------------------------------------------------------------------- */
.faq-section {
	/* Lovable `bg-secondary` → hsl(40 25% 92%) — matches theme secondary; keeps customizer secondary in sync */
	background-color: var(--color-secondary);
	padding: 4rem 0 6rem;
	scroll-margin-top: 6rem;
}

.faq-section .section-eyebrow {
	color: var(--color-muted-foreground);
}

.faq-section .section-headline {
	color: var(--color-foreground);
}

.faq-grid {
	max-width: 72rem;
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 768px) {
	.faq-grid { grid-template-columns: repeat(2, 1fr); }
}

.faq-item {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	background-color: var(--color-background);
}

.faq-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.2s var(--transition);
}

/* Lovable `hover:bg-secondary/50` */
.faq-trigger:hover {
	background-color: color-mix(in srgb, var(--color-secondary) 50%, transparent);
}

.faq-question {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 500;
	padding-right: 1rem;
	color: var(--color-foreground);
}

.faq-chevron {
	flex-shrink: 0;
	color: var(--color-muted-foreground);
	transition: transform 0.3s var(--transition);
}

.faq-item[data-open] .faq-chevron { transform: rotate(180deg); }

.faq-body { padding: 0 1.25rem 1.25rem; }

.faq-answer {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	line-height: 1.65;
	font-family: var(--font-body);
}

/* --------------------------------------------------------------------------
   CTA SECTION
   -------------------------------------------------------------------------- */
.cta-section {
	position: relative;
	padding: 8rem 0 11rem;
	overflow: hidden;
	text-align: center;
}

.cta-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cta-overlay {
	position: absolute;
	inset: 0;
	background-color: color-mix(in srgb, var(--color-foreground) 50%, transparent);
}

.cta-content {
	position: relative;
	z-index: 2;
	color: #fff;
	padding-inline: 1.5rem;
}

.cta-headline {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 700;
	margin-bottom: 1rem;
}

.cta-subtext {
	opacity: 0.9;
	max-width: 30rem;
	margin-inline: auto;
	margin-bottom: 2rem;
	font-size: 1.125rem;
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-section { padding-bottom: 0; }

.contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem 4rem;
	padding: 5rem 0;
}

@media (min-width: 1024px) {
	.contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-headline {
	font-family: var(--font-display);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 2.5rem;
}

.contact-form { border-top: 1px solid var(--color-border); }

.contact-field {
	border-bottom: 1px solid var(--color-border);
	padding-block: 1rem;
}

.contact-input {
	width: 100%;
	background: transparent;
	border: none;
	outline: none;
	font-size: 0.875rem;
	font-family: var(--font-body);
	color: var(--color-foreground);
	resize: none;
}

.contact-input::placeholder { color: var(--color-muted-foreground); }

.contact-textarea { min-height: 4rem; }

.contact-submit-wrap { padding-top: 2rem; }

.contact-success {
	text-align: center;
	padding-block: 2.5rem;
}

.contact-success-icon {
	width: 4rem; height: 4rem;
	background-color: var(--color-primary);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-inline: auto;
	margin-bottom: 1.5rem;
	color: #fff;
}

.contact-success-title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.contact-success-text { color: var(--color-muted-foreground); }

.contact-info-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--color-border);
}

.contact-info-title {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.contact-info-desc {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	margin-bottom: 0.5rem;
}

.contact-info-link {
	font-size: 0.875rem;
	color: var(--color-foreground);
	transition: color 0.2s;
}

.contact-info-link:hover { color: var(--color-primary); }

.contact-socials { display: flex; gap: 0.75rem; margin-top: 0.5rem; }

.social-btn {
	width: 2.25rem; height: 2.25rem;
	border-radius: var(--radius-full);
	border: 1px solid var(--color-border);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--color-foreground);
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.social-btn:hover {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
}

.contact-image-col { display: none; }

@media (min-width: 1024px) { .contact-image-col { display: block; } }

.contact-image-wrap {
	aspect-ratio: 4 / 5;
	border-radius: 1rem;
	overflow: hidden;
	background-color: var(--color-card);
}

.contact-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.contact-map-wrap { width: 100%; height: 25rem; }

.contact-map-wrap iframe { border: 0; display: block; }

/* Contact page */
.contact-page-inner {
	padding-block: 2.5rem 5rem;
	max-width: 56rem;
	margin-inline: auto;
}

.contact-page-header { margin-bottom: 3rem; }

.contact-info-card {
	background-color: var(--color-secondary);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
}

.contact-info-card-title {
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.contact-page-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}

@media (min-width: 1024px) {
	.contact-page-grid { grid-template-columns: 1fr 2fr; }
}

.contact-page-info-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }

.contact-page-info-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.875rem;
}

.contact-page-info-icon { color: var(--color-primary); flex-shrink: 0; margin-top: 0.1rem; }

.contact-page-form { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-page-form-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.contact-page-form-row { grid-template-columns: 1fr 1fr; }
}

.form-field { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label {
	font-size: 0.875rem;
	font-weight: 500;
	font-family: var(--font-body);
}

.form-input {
	width: 100%;
	padding: 0.75rem 1rem;
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-size: 0.875rem;
	color: var(--color-foreground);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

.form-input::placeholder { color: var(--color-muted-foreground); }

.form-select {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b8b0a3' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	padding-right: 2.5rem;
}

.form-textarea { resize: none; min-height: 9rem; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
	border-top: 1px solid var(--color-border);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem 3rem;
	padding-block: 3rem 2rem;
}

@media (min-width: 768px) {
	.footer-grid { grid-template-columns: repeat(3, 1fr); padding-block: 4rem 2rem; }
}

.footer-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.footer-tagline {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	max-width: 22rem;
	line-height: 1.6;
}

.footer-col-title {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.footer-nav-list,
.footer-contact-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer-nav-list a,
.footer-nav-list button {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	cursor: pointer;
	transition: color 0.2s;
	background: none;
	border: none;
}

.footer-nav-list a:hover,
.footer-nav-list button:hover { color: var(--color-foreground); }

.footer-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
}

.footer-contact-item svg { flex-shrink: 0; margin-top: 0.1rem; }

.footer-contact-item a {
	color: var(--color-muted-foreground);
	transition: color 0.2s;
}

.footer-contact-item a:hover { color: var(--color-foreground); }

.footer-contact-addr span { line-height: 1.5; }

.footer-bottom {
	padding-block: 1.5rem;
	border-top: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
}

@media (min-width: 640px) {
	.footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-copyright,
.footer-attribution {
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
}

.footer-attribution:hover { color: var(--color-foreground); }

/* --------------------------------------------------------------------------
   CART DRAWER
   -------------------------------------------------------------------------- */
#theme-cart-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: color-mix(in srgb, var(--color-foreground) 20%, transparent);
	z-index: 199;
}

body.cart-open #theme-cart-overlay { display: block; }

#theme-cart-drawer {
	position: fixed;
	top: 0; right: 0;
	height: 100%;
	width: min(100%, 28rem);
	background-color: var(--color-background);
	z-index: 200;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s var(--transition);
	box-shadow: var(--shadow-elevated);
}

body.cart-open #theme-cart-drawer { transform: translateX(0); }

#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.cart-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem;
	border-bottom: 1px solid var(--color-border);
	flex-shrink: 0;
}

.cart-drawer-title {
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 700;
}

.cart-drawer-close {
	padding: 0.25rem;
	transition: opacity 0.2s;
}

.cart-drawer-close:hover { opacity: 0.6; }

.cart-drawer-empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	text-align: center;
	gap: 1rem;
}

.cart-empty-icon { color: var(--color-muted-foreground); margin-inline: auto; }
.cart-empty-text { color: var(--color-muted-foreground); font-family: var(--font-body); }

.cart-drawer-items {
	flex: 1;
	overflow-y: auto;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.cart-item {
	display: flex;
	gap: 1rem;
}

.cart-item-img-link {
	width: 5rem;
	height: 6rem;
	background-color: var(--color-secondary);
	overflow: hidden;
	flex-shrink: 0;
	display: block;
}

.cart-item-img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-details {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.cart-item-name {
	font-size: 0.875rem;
	font-weight: 500;
	font-family: var(--font-body);
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: opacity 0.2s;
}

.cart-item-name:hover { opacity: 0.7; }

.cart-item-variation {
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
	display: block;
}

.cart-item-price {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	margin-top: 0.125rem;
}

.cart-item-controls {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.75rem;
}

.cart-qty-btn {
	padding: 0.25rem;
	border-radius: var(--radius);
	transition: background-color 0.2s;
}

.cart-qty-btn:hover { background-color: var(--color-secondary); }

.cart-item-qty {
	font-size: 0.875rem;
	font-family: var(--font-body);
	min-width: 1.5rem;
	text-align: center;
}

.cart-item-remove {
	margin-left: auto;
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	transition: color 0.2s;
}

.cart-item-remove:hover { color: var(--color-foreground); }

.cart-drawer-footer {
	padding: 1.5rem;
	border-top: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	flex-shrink: 0;
}

.cart-subtotal-row {
	display: flex;
	justify-content: space-between;
	font-size: 0.875rem;
	font-family: var(--font-body);
}

.cart-subtotal-label { color: var(--color-muted-foreground); }
.cart-subtotal-value { font-weight: 600; }

.cart-shipping-text {
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
}

.cart-checkout-btn { text-align: center; display: block; }

/* --------------------------------------------------------------------------
   SINGLE PRODUCT PAGE
   -------------------------------------------------------------------------- */
.single-product-main { padding-top: var(--header-height); }

.single-product-container { padding-block: 0 5rem; }

.product-back-link-wrap { padding-block: 1.5rem; }

.theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-bottom: 5rem;
	min-width: 0;
}

@media (min-width: 1024px) {
	.theme-product-layout {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }

.product-main-img-wrap {
	aspect-ratio: 3 / 4;
	background-color: var(--color-secondary);
	overflow: hidden;
	border-radius: var(--radius-lg);
	margin-bottom: 1rem;
}

.product-main-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.theme-product-thumbnails {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	max-width: 100%;
}

.product-thumb-btn {
	width: calc(20% - 0.4rem);
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--radius);
	border: 2px solid transparent;
	transition: border-color 0.2s, opacity 0.2s;
	opacity: 0.6;
}

.product-thumb-btn:hover { opacity: 1; }
.product-thumb-btn.is-active { border-color: var(--color-primary); opacity: 1; }

.product-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.product-meta-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 0.5rem;
}

.product-category {
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
}

.product-category a { color: inherit; }

.product-condition-badge {
	font-size: 0.7rem;
	padding: 0.2rem 0.5rem;
	background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
	color: var(--color-primary);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-weight: 500;
}

.product-title {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	margin-bottom: 1rem;
}

.product-price-wrap {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--color-primary);
	margin-bottom: 1.5rem;
}

.product-sold-out-badge {
	display: inline-block;
	padding: 0.4rem 1rem;
	background-color: var(--color-foreground);
	color: var(--color-background);
	border-radius: var(--radius);
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.product-description {
	color: var(--color-muted-foreground);
	line-height: 1.75;
	margin-bottom: 2rem;
	overflow-wrap: break-word;
	word-break: break-word;
}

/* Quantity + Add to Cart area */
.theme-add-to-cart-area {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 2rem;
}

.theme-quantity-wrapper {
	display: flex;
	align-items: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.theme-qty-minus,
.theme-qty-plus {
	padding: 0.75rem 1rem;
	font-size: 1rem;
	font-weight: 500;
	transition: background-color 0.2s;
	cursor: pointer;
	color: var(--color-foreground);
}

.theme-qty-minus:hover,
.theme-qty-plus:hover { background-color: var(--color-secondary); }

.theme-qty-input {
	min-width: 3rem;
	text-align: center;
	border: none;
	outline: none;
	padding: 0.75rem;
	font-size: 1rem;
	background: transparent;
	-moz-appearance: textfield;
}

.theme-qty-input::-webkit-inner-spin-button,
.theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* WooCommerce variations table */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}

.single-product .variations tbody td.label { padding-bottom: 0.25rem; }
.single-product .variations tbody td.value { padding-top: 0; margin-bottom: 1.25rem; }

.theme-attr-select-hidden { display: none !important; }

/* WooCommerce single variation wrap */
.single_variation_wrap { margin-top: 1rem; }

.product-details-section { padding-top: 2rem; }

.product-details-title {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.border-top { border-top: 1px solid var(--color-border); }

/* Related Products */
.related-products-section {
	padding-block: 5rem;
	border-top: 1px solid var(--color-border);
}

.related-products-title {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 2.5rem;
}

.related-products-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1024px) {
	.related-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   WooCommerce Add-to-Cart button overrides (§11.4.1)
   -------------------------------------------------------------------------- */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--radius) !important;
	min-height: 2.75rem !important;
	padding: 0.75rem 1.75rem !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: 0.95rem !important;
	font-weight: 500 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
	text-decoration: none !important;
}

.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
}

/* Disabled state (§11.4.1) */
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}

.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}

/* Loading state (§31.8) */
.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

/* Hide "View Cart" link injected by WooCommerce (§11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
	display: none !important;
}

/* --------------------------------------------------------------------------
   WooCommerce NOTICES (§14.1)
   -------------------------------------------------------------------------- */
.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message { display: none; }

body.woocommerce-checkout .woocommerce-error { display: block; }

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
	padding: 0.75rem 1rem;
	border-radius: var(--radius);
	margin-bottom: 1rem;
	font-size: 0.875rem;
	font-family: var(--font-body);
}

.woocommerce-notices-wrapper .woocommerce-message { background-color: color-mix(in srgb, var(--color-primary) 10%, transparent); border-left: 3px solid var(--color-primary); }
.woocommerce-notices-wrapper .woocommerce-error   { background-color: color-mix(in srgb, hsl(0 84% 60%) 8%, transparent); border-left: 3px solid hsl(0 84% 60%); }
.woocommerce-notices-wrapper .woocommerce-info    { background-color: color-mix(in srgb, var(--color-accent) 10%, transparent); border-left: 3px solid var(--color-accent); }

/* --------------------------------------------------------------------------
   CHECKOUT PAGE (§13)
   -------------------------------------------------------------------------- */
body.woocommerce-checkout .site-main {
	padding-top: var(--header-height);
	padding-bottom: 4rem;
}

body.woocommerce-checkout .container-wide { max-width: var(--container-max); }

body.woocommerce-checkout .wc-block-checkout {
	display: block;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
		display: grid;
		grid-template-columns: 1fr 380px;
		gap: 2rem;
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-secondary);
	border-radius: var(--radius-lg);
	padding: 2rem;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background-color: var(--color-background);
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--radius) !important;
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	font-weight: 500 !important;
	padding: 0.875rem 2rem !important;
	width: 100% !important;
	cursor: pointer !important;
	transition: opacity 0.2s !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	opacity: 0.88 !important;
}

body.woocommerce-checkout .page-title {
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   THANK YOU PAGE (§22.8)
   -------------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }

body.theme-thankyou-page .site-main { padding-top: var(--header-height); }

body.theme-thankyou-page .woocommerce-order { margin: 2rem 0; }

body.theme-thankyou-page .woocommerce-order-overview {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	background: var(--color-secondary);
	padding: 1.5rem;
	border-radius: var(--radius-lg);
	margin-bottom: 2rem;
}

body.theme-thankyou-page .woocommerce-order-overview li {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
}

body.theme-thankyou-page .woocommerce-order-overview strong { color: var(--color-foreground); }

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	margin-bottom: 2rem;
}

body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	border-bottom: 1px solid var(--color-border);
}

body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 700;
	padding-bottom: 1rem;
}

body.theme-thankyou-page .woocommerce-customer-details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	font-style: normal;
	font-size: 0.875rem;
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   INNER PAGE HELPERS
   -------------------------------------------------------------------------- */
.site-main.theme-no-hero { padding-top: var(--header-height); }

.inner-page-back { padding-block: 2rem 1rem; }

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	transition: color 0.2s;
}

.back-link:hover { color: var(--color-foreground); }

.page-title {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3.5vw, 2.5rem);
	font-weight: 700;
	margin-bottom: 1rem;
}

.entry-content { line-height: 1.7; }

/* --------------------------------------------------------------------------
   ANIMATIONS (scroll-in)
   -------------------------------------------------------------------------- */
.animate-section {
	opacity: 0;
	transform: translateY(1.5rem);
	transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.animate-section.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@keyframes fadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes slideUp {
	from { opacity: 0; transform: translateY(1.25rem); }
	to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.shop-section { padding: 5rem 0 6rem; }
	.cta-section  { padding: 11rem 0 14rem; }
}
