/* =========================================================================
   Sylents WooCommerce storefront
   Matches Astro design tokens (src/styles/tokens.css):
   cyan #00bcd4 accent · Geist typeface · pill buttons · card hover-lift.
   Enqueued after woocommerce-general. Scope: shop / product archives.
   ========================================================================= */

:root {
	--sy-primary: #00bcd4;
	--sy-primary-hover: #019aae;
	--sy-primary-dark: #00728f;
	--sy-ink: #333333;
	--sy-text-muted: #999999;
	--sy-bg: #ffffff;
	--sy-bg-alt: #f8f9fa;
	--sy-border: #e5e5e5;
	--sy-light: #eef4f6; /* Foam */
	--sy-radius-lg: 24px;
	--sy-radius-pill: 999px;
	--sy-shadow-md: 0 4px 12px -2px rgba(13, 31, 36, 0.08), 0 10px 30px -10px rgba(13, 31, 36, 0.12);
	--sy-shadow-lg: 0 12px 32px -8px rgba(13, 31, 36, 0.14), 0 28px 64px -20px rgba(13, 31, 36, 0.16);
	--sy-glow: 0 8px 28px -6px rgba(0, 188, 212, 0.35);
	--sy-ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

body {
	font-family: 'Geist', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--sy-ink);
	background: var(--sy-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* ---------- Shop hero ---------- */
.sylents-shop-hero {
	text-align: center;
	max-width: 760px;
	margin: 0 auto clamp(28px, 5vw, 56px);
	padding: clamp(32px, 6vw, 72px) 16px clamp(8px, 2vw, 16px);
}
.sylents-eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sy-primary);
	margin-bottom: 1rem;
}
.sylents-shop-title {
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--sy-ink);
	margin: 0 0 1rem;
}
.sylents-shop-sub {
	font-size: clamp(1rem, 2vw, 1.15rem);
	color: #666;
	max-width: 560px;
	margin: 0 auto;
	line-height: 1.6;
}

/* ---------- Toolbar (result count / ordering) ---------- */
.woocommerce-result-count,
.woocommerce-ordering {
	color: var(--sy-text-muted);
	font-size: 0.9rem;
}
.woocommerce-ordering select {
	border: 1px solid var(--sy-border);
	border-radius: var(--sy-radius-pill);
	padding: 0.5em 1em;
	font-family: inherit;
	color: var(--sy-ink);
	background: var(--sy-bg);
}

/* ---------- Product grid ---------- */
.woocommerce ul.products,
.woocommerce-page ul.products {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(8px, 1vw, 14px);
	list-style: none;
	padding: 0 clamp(16px, 4vw, 40px);
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; display: none; }
@media (max-width: 620px) { .woocommerce ul.products { grid-template-columns: 1fr; } }

/* category tiles */
.woocommerce ul.products li.product-category {
	margin: 0;
	width: 100% !important;
}
.woocommerce ul.products li.product-category a {
	display: block;
	background: #fff;
	border: 1px solid var(--sy-border);
	border-radius: var(--sy-radius-lg);
	padding: 0 0 18px;
	text-align: center;
	overflow: hidden;
	transition: transform 0.3s var(--sy-ease-out-quart), box-shadow 0.3s ease, border-color 0.2s ease;
}
.woocommerce ul.products li.product-category a:hover {
	transform: translateY(-6px);
	box-shadow: var(--sy-shadow-lg);
	border-color: var(--sy-primary);
}
.woocommerce ul.products li.product-category img {
	width: 100%;
	height: clamp(300px, 28vw, 420px);
	object-fit: contain;
	background: var(--sy-bg-alt);
	padding: 14px;
	box-sizing: border-box;
}
.woocommerce-loop-category__title {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--sy-ink);
	margin: 0;
	padding: 14px 18px 4px;
	letter-spacing: -0.01em;
}
.woocommerce-loop-category__title .count {
	background: none;
	color: var(--sy-primary-dark);
	font-weight: 600;
	font-size: 0.85rem;
	margin-left: 0.25em;
}

/* product cards */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	margin: 0;
	width: 100% !important;
	background: #fff;
	border: 1px solid var(--sy-border);
	border-radius: var(--sy-radius-lg);
	padding: 0 0 18px;
	text-align: center;
	transition: transform 0.3s var(--sy-ease-out-quart), box-shadow 0.3s ease, border-color 0.2s ease;
	overflow: hidden;
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-6px);
	box-shadow: var(--sy-shadow-lg);
	border-color: var(--sy-primary);
}
.woocommerce ul.products li.product a { text-decoration: none; color: inherit; }

/* image area */
.woocommerce ul.products li.product a img {
	margin: 0;
	border-radius: 0;
	background: var(--sy-bg-alt);
	width: 100%;
	height: clamp(300px, 28vw, 420px);
	object-fit: contain;
	padding: 14px;
	box-sizing: border-box;
	transition: transform 0.4s var(--sy-ease-out-quart);
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.04); }
/* imageless products — clean branded tile instead of WP's grey placeholder box.
   The grey img is hidden (kept to establish box height); a deep-teal gradient
   with a subtle cyan glow fills the image region via ::before. */
.woocommerce ul.products li.product .woocommerce-loop-product__link { position: relative; }
.woocommerce ul.products li.product:has(img.woocommerce-placeholder) .woocommerce-loop-product__link::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: clamp(300px, 28vw, 420px);
	background:
		radial-gradient(120% 80% at 50% 0%, rgba(0,188,212,0.20), transparent 60%),
		linear-gradient(135deg, #0d1f24 0%, #012a36 100%);
	pointer-events: none;
}
.woocommerce ul.products li.product img.woocommerce-placeholder { opacity: 0; }

/* title + price */
.woocommerce-loop-product__title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--sy-ink);
	padding: 14px 18px 4px;
	margin: 0;
	letter-spacing: -0.01em;
}
.woocommerce ul.products li.product .price {
	color: var(--sy-primary-dark);
	font-weight: 700;
	font-size: 1.15rem;
	display: block;
	padding: 0 18px 12px;
}
.woocommerce ul.products li.product .price del { color: var(--sy-text-muted); font-weight: 400; }
.woocommerce ul.products li.product .price ins { background: none; }

/* add-to-cart buttons — cyan pill */
.woocommerce a.button,
.woocommerce a.added_to_cart,
.woocommerce button.button,
.woocommerce button.button.alt,
.woocommerce a.button.alt {
	background-image: linear-gradient(135deg, #00bcd4, #009fb6);
	color: #fff !important;
	border: none;
	border-radius: var(--sy-radius-pill);
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.65em 1.6em;
	margin-top: 0.25rem;
	box-shadow: var(--sy-glow);
	text-transform: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background-image: linear-gradient(135deg, #00bcd4, #009fb6);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 14px 38px -8px rgba(0, 188, 212, 0.45);
}
.woocommerce a.button.loading { opacity: 0.7; }

/* pagination */
.woocommerce nav.woocommerce-pagination ul {
	border: none;
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 56px;
	padding: 0;
}
.woocommerce nav.woocommerce-pagination ul li { border: none; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	border: 1px solid var(--sy-border);
	border-radius: var(--sy-radius-pill);
	padding: 0.5em 1em;
	color: var(--sy-ink);
	background: #fff;
	min-width: 42px;
	text-align: center;
	font-weight: 500;
}
.woocommerce nav.woocommerce-pagination ul li a:hover { border-color: var(--sy-primary); color: var(--sy-primary); }
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--sy-primary);
	color: #fff;
	border-color: var(--sy-primary);
}

/* star ratings */
.woocommerce .star-rating { color: #fdb813; }

/* single-product link color */
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--sy-primary-dark); }

/* reduced motion — mandatory a11y fallback */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* =========================================================================
   Aligned site header (matches sylents.de Astro header)
   ========================================================================= */
/* hide the theme's default header (text logo + old WP nav) */
header#site-header.site-header { display: none !important; }

.sy-nav {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #ffffff;
	box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}
.sy-nav-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 64px;
}
.sy-logo { display: inline-flex; align-items: center; }
.sy-logo img { height: 32px; width: auto; display: block; }
.sy-nav-links { display: flex; align-items: center; gap: 2rem; }
.sy-nav-links a {
	color: #333333;
	font-size: 0.95rem;
	font-weight: 500;
	transition: color 0.2s ease;
}
.sy-nav-links a:hover { color: var(--sy-primary); }
.sy-lang { font-weight: 700; }

/* Shop pill (cyan) — matches .btn */
.sy-btn {
	background-image: linear-gradient(135deg, #00bcd4, #009fb6);
	color: #fff !important;
	border-radius: var(--sy-radius-pill);
	font-weight: 600;
	padding: 0.55em 1.2em;
	font-size: 0.9rem;
	box-shadow: var(--sy-glow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sy-btn:hover {
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 14px 38px -8px rgba(0, 188, 212, 0.45);
}
.sy-btn-sm { padding: 0.5em 1.05em; font-size: 0.88rem; }

@media (max-width: 600px) {
	.sy-nav-links { gap: 1rem; }
	/* keep logo + Shop pill + EN on mobile, hide the section links */
	.sy-nav-links a:not(.sy-btn):not(.sy-lang) { display: none; }
}
