/* ============================================
   Plant Shopping Green - Mobile-First + CRO CSS
   ============================================ */

/* === BASE RESET & MOBILE-FIRST === */
*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* === STICKY HEADER === */
.psg-header-main {
	position: sticky !important;
	top: 0;
	z-index: 999;
	background: #fff !important;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* === ANNOUNCEMENT BAR (CRO urgency) === */
.psg-announcement-bar {
	background: linear-gradient(90deg, #1b4332, #2d6a4f);
	color: #fff;
	text-align: center;
	padding: 10px 16px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.psg-announcement-bar a { color: #52b788 !important; text-decoration: underline; }

/* === MOBILE NAV === */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 1rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
	padding: 0.85rem 0;
	font-size: 1.1rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

/* === HERO (mobile-first) === */
.psg-hero {
	min-height: 75vh !important;
}

.psg-hero .wp-block-cover__inner-container {
	padding: 2rem 1.25rem;
}

.psg-hero h1 {
	font-size: clamp(1.8rem, 6vw, 4rem) !important;
	line-height: 1.12 !important;
	text-shadow: 0 3px 16px rgba(0,0,0,0.5) !important;
}

.psg-hero p {
	text-shadow: 0 1px 8px rgba(0,0,0,0.4);
	font-size: clamp(0.9rem, 2.5vw, 1.25rem) !important;
}

.psg-hero .wp-block-buttons {
	flex-direction: column;
	gap: 0.75rem;
}

.psg-hero .wp-block-button__link {
	width: 100%;
	text-align: center;
	padding: 0.95rem 1.5rem !important;
	font-size: 1rem !important;
	border-radius: 50px !important;
	min-height: 52px;
}

/* === TRUST BADGES (mobile 2x2) === */
.psg-trust-grid {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	padding: 1.5rem 1rem !important;
}

.psg-trust-item {
	text-align: center;
	padding: 1rem 0.75rem;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.psg-trust-icon { font-size: 1.6rem; margin-bottom: 0.3rem; }
.psg-trust-title { font-size: 0.8rem; font-weight: 700; color: var(--wp--preset--color--primary-dark); margin: 0; }
.psg-trust-desc { font-size: 0.7rem; color: var(--wp--preset--color--text-light); margin: 0; }

/* === CATEGORY CARDS (mobile horizontal scroll) === */
.psg-categories-section { padding: 2rem 0 !important; }

.psg-category-scroll {
	display: flex !important;
	gap: 0.75rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding: 0.5rem 1rem 1.5rem !important;
	scrollbar-width: none;
}

.psg-category-scroll::-webkit-scrollbar { display: none; }

.psg-category-card {
	flex: 0 0 65vw;
	max-width: 300px;
	scroll-snap-align: start;
	border-radius: 20px;
	overflow: hidden;
	position: relative;
	aspect-ratio: 3/4;
	transition: transform 0.3s ease;
}

.psg-category-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
}

.psg-category-card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(27,67,50,0.9) 0%, rgba(27,67,50,0.3) 40%, transparent 100%);
	z-index: 1;
}

.psg-category-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1.25rem;
	z-index: 2;
	color: #fff;
}

.psg-category-overlay h3 {
	color: #fff !important;
	font-size: 1.2rem !important;
	margin: 0 0 2px !important;
}

.psg-category-overlay .count {
	font-size: 0.75rem;
	opacity: 0.75;
}

.psg-category-overlay .wp-block-button__link {
	margin-top: 0.6rem;
	font-size: 0.8rem !important;
	padding: 0.5rem 1.25rem !important;
	background: rgba(255,255,255,0.2) !important;
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,0.4) !important;
	border-radius: 50px !important;
	color: #fff !important;
}

/* === PRODUCT GRID (mobile 2-col) === */
.wc-block-grid__product,
.wp-block-woocommerce-product-template .wp-block-group,
.psg-product-card {
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wc-block-grid__product:hover,
.wp-block-woocommerce-product-template .wp-block-group:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 28px rgba(45,106,79,0.12);
}

.wc-block-grid__product-image,
.wp-block-woocommerce-product-image {
	overflow: hidden;
	border-radius: 14px 14px 0 0;
}

.wc-block-grid__product-image img,
.wp-block-woocommerce-product-image img {
	transition: transform 0.5s cubic-bezier(.25,.46,.45,.94);
	aspect-ratio: 1;
	object-fit: cover;
}

.wc-block-grid__product:hover img,
.wp-block-woocommerce-product-template .wp-block-group:hover img {
	transform: scale(1.08);
}

/* === BUTTONS (48px min touch target) === */
.wp-block-button__link,
.wp-element-button {
	transition: all 0.25s ease;
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	border-radius: 10px;
}

.wp-block-button__link:active,
.wp-element-button:active {
	transform: scale(0.97);
}

/* === SALE BADGE (CRO: eye catching) === */
.wc-block-grid__product-onsale,
.onsale,
span.onsale {
	background: linear-gradient(135deg, #e76f51, #e63946) !important;
	color: #fff !important;
	border-radius: 8px !important;
	font-weight: 700;
	font-size: 0.72rem;
	padding: 5px 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	box-shadow: 0 2px 8px rgba(231,111,81,0.3);
	z-index: 5;
}

/* === PRICE === */
del { color: var(--wp--preset--color--text-light); opacity: 0.5; font-size: 0.85em; }
ins { text-decoration: none; color: var(--wp--preset--color--sale); font-weight: 700; }

/* === STARS === */
.star-rating, .wc-block-components-product-rating__stars { color: #f59e0b; }

/* === ADD TO CART (CRO: prominent) === */
.single-product .single_add_to_cart_button {
	width: 100%;
	padding: 1rem 2rem !important;
	font-size: 1.1rem !important;
	font-weight: 700 !important;
	border-radius: 14px !important;
	background: var(--wp--preset--color--primary) !important;
	color: #fff !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	min-height: 56px;
}

/* === STICKY ADD-TO-CART (mobile CRO) === */
.psg-sticky-atc {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: #fff;
	padding: 10px 16px;
	box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
	display: flex;
	gap: 10px;
	align-items: center;
	border-top: 2px solid var(--wp--preset--color--primary);
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.psg-sticky-atc.visible { transform: translateY(0); }

.psg-sticky-atc .atc-price {
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--wp--preset--color--primary-dark);
	flex-shrink: 0;
}

.psg-sticky-atc .atc-btn {
	flex: 1;
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	text-transform: uppercase;
}

/* === CRO: FREE SHIPPING PROGRESS === */
.psg-shipping-progress {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 12px;
	padding: 10px 14px;
	margin: 12px 0;
	font-size: 0.85rem;
}

.psg-shipping-bar {
	height: 5px;
	background: #e5e7eb;
	border-radius: 3px;
	overflow: hidden;
	margin-top: 6px;
}

.psg-shipping-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #52b788, #2d6a4f);
	border-radius: 3px;
	transition: width 0.6s ease;
}

/* === CRO: URGENCY BADGE === */
.psg-urgency {
	background: #fef3c7;
	border: 1px solid #f59e0b;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 0.82rem;
	color: #92400e;
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

/* === GUARANTEE BOX (product page) === */
.psg-guarantee-box {
	border: 2px solid #bbf7d0;
	border-radius: 16px;
	padding: 1.1rem 1.25rem;
	margin: 1rem 0;
	background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.psg-guarantee-box ul { list-style: none; padding: 0; margin: 0; }
.psg-guarantee-box li {
	padding: 5px 0;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* === TESTIMONIALS (mobile swipe) === */
.psg-testimonials-scroll {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding: 0.5rem 1rem 1.5rem;
	scrollbar-width: none;
}

.psg-testimonials-scroll::-webkit-scrollbar { display: none; }

.psg-testimonial-card {
	flex: 0 0 82%;
	scroll-snap-align: start;
	background: #fff;
	border-radius: 16px;
	padding: 1.5rem;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* === FAQ ACCORDION === */
details {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px !important;
	overflow: hidden;
	transition: all 0.2s ease;
	margin-bottom: 8px;
}

details[open] {
	border-color: var(--wp--preset--color--primary-light);
	box-shadow: 0 2px 12px rgba(45,106,79,0.06);
}

details summary {
	cursor: pointer;
	padding: 1rem 1.25rem;
	list-style: none;
	font-size: 0.95rem;
	font-weight: 600;
	display: flex;
	align-items: center;
}

details summary::-webkit-details-marker { display: none; }
details summary::before { display: none !important; }

details summary::after {
	content: '+';
	margin-left: auto;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--surface);
	border-radius: 50%;
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--wp--preset--color--primary);
	transition: all 0.2s ease;
	flex-shrink: 0;
}

details[open] summary::after {
	content: '−';
	background: var(--wp--preset--color--primary);
	color: #fff;
}

details > :not(summary) { padding: 0 1.25rem 1rem; }

/* === FORMS (16px prevents iOS zoom) === */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
	border: 1.5px solid var(--wp--preset--color--border);
	border-radius: 10px;
	padding: 0.85rem 1rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
	min-height: 48px;
	-webkit-appearance: none;
}

input:focus, textarea:focus, select:focus {
	border-color: var(--wp--preset--color--primary);
	outline: none;
	box-shadow: 0 0 0 4px rgba(45,106,79,0.1);
}

.quantity .qty { width: 70px; text-align: center; min-height: 48px; }

/* === MINI CART === */
.wc-block-mini-cart__badge { background-color: var(--wp--preset--color--primary) !important; }

/* === FOOTER (mobile collapse) === */
.psg-footer a {
	color: rgba(255,255,255,0.8) !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}
.psg-footer a:hover { color: var(--wp--preset--color--primary-light) !important; }
.is-style-no-bullets { list-style: none; padding-left: 0; }

/* === SEARCH === */
.wp-block-search__inside-wrapper {
	border: 1.5px solid var(--wp--preset--color--border) !important;
	border-radius: 50px !important;
	overflow: hidden;
}
.wp-block-search__button {
	background: var(--wp--preset--color--primary) !important;
	border: none !important;
	min-width: 44px;
}

.wp-block-separator.is-style-wide {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

/* === BREADCRUMB === */
.woocommerce-breadcrumb { font-size: 0.8rem; color: var(--wp--preset--color--text-light); }
.woocommerce-breadcrumb a { color: var(--wp--preset--color--primary); text-decoration: none; }

/* === CHECKOUT === */
.wc-block-checkout__actions .wc-block-components-checkout-place-order-button {
	width: 100%;
	padding: 1rem !important;
	font-size: 1.1rem !important;
	font-weight: 700 !important;
	border-radius: 14px !important;
	min-height: 56px;
}

/* === FLOATING CHAT (CRO) === */
.psg-chat-float {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 998;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	box-shadow: 0 4px 16px rgba(45,106,79,0.35);
	cursor: pointer;
	transition: transform 0.3s ease;
	text-decoration: none !important;
}
.psg-chat-float:hover { transform: scale(1.1); }

/* === ANIMATIONS === */
@media (prefers-reduced-motion: no-preference) {
	.psg-fade-up {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity 0.5s ease, transform 0.5s ease;
	}
	.psg-fade-up.visible {
		opacity: 1;
		transform: translateY(0);
	}
}

/* =====================
   TABLET (600px+)
   ===================== */
@media (min-width: 600px) {
	.psg-hero h1 { font-size: 2.5rem !important; }

	.psg-hero .wp-block-buttons { flex-direction: row; }
	.psg-hero .wp-block-button__link { width: auto; }

	.psg-trust-grid { grid-template-columns: repeat(4, 1fr); }

	.psg-category-card { flex: 0 0 42vw; max-width: 280px; }

	.psg-testimonial-card { flex: 0 0 46%; }

	.psg-sticky-atc { display: none !important; }
}

/* =====================
   DESKTOP (960px+)
   ===================== */
@media (min-width: 960px) {
	.psg-header-topbar { display: block !important; }

	.psg-hero { min-height: 600px !important; }
	.psg-hero h1 { font-size: 3.5rem !important; }

	.psg-category-scroll {
		display: grid !important;
		grid-template-columns: repeat(4, 1fr);
		overflow: visible;
		padding: 0.5rem 0 1.5rem !important;
	}

	.psg-category-card {
		flex: unset;
		max-width: unset;
	}

	.psg-category-card:hover { transform: scale(1.03); }

	.psg-testimonials-scroll {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		overflow: visible;
		padding: 0.5rem 0 1.5rem;
	}

	.psg-testimonial-card { flex: unset; }

	.wp-block-button__link:hover,
	.wp-element-button:hover {
		transform: translateY(-2px);
		box-shadow: 0 6px 16px rgba(45,106,79,0.2);
	}

	.single-product .single_add_to_cart_button {
		width: auto;
		min-width: 320px;
	}
}

/* =====================
   LARGE (1200px+)
   ===================== */
@media (min-width: 1200px) {
	.psg-hero h1 { font-size: 4rem !important; }
}
