/*
Theme Name: Codelivly — Cybersecurity Store
Theme URI: https://resources.codelivly.com
Description: GeneratePress child theme for the Codelivly cybersecurity resource store. Complete conversion-optimized homepage baked in (front-page.php) plus WooCommerce styling — white theme, teal accent. No page builder required.
Author: Codelivly
Author URI: https://codelivly.com
Template: generatepress
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: codelivly-gp-child
*/

/* GeneratePress auto-loads this stylesheet. Design tokens: */
:root {
	--cl-teal: #00C993;        /* fills only — white text on this is 2.15:1, fails AA */
	--cl-teal-dark: #009E75;   /* fills / hover */
	--cl-teal-text: #00795A;   /* teal TEXT on white: 5.41:1, passes AA */
	--cl-teal-ink: #05231B;    /* text ON teal fills: 7.74:1, passes AAA */
	--cl-ink: #14181C;
	--cl-ink-2: #3A424B;
	--cl-muted: #5C6873;
	--cl-surface: #F5F9F8;
	--cl-border: #E4EAE8;
	--cl-amber: #F59E0B;
	--cl-cover-a: #0c231c;
	--cl-cover-b: #12233b;
	--cl-cover-c: #1a1233;
	--cl-radius: 12px;
	--cl-radius-lg: 18px;
	--cl-wrap: 1180px;
}

/* ============ Homepage ============ */
/* width:100% is load-bearing: GeneratePress's .site-content is a FLEX
   container, and this div is its flex item. Without an explicit width the
   item sizes to content — whose negative breakout margins collapse it to 0,
   which makes `50%` in the breakout calc resolve to 0 and throws the whole
   page 50vw off-screen (blank white page). Verified against the live site. */
.codelivly-home { width: 100%; min-width: 0; overflow-x: clip; }
/* Close the gap GeneratePress leaves between the last section and the footer */
.home .site-content,
.home .content-area,
.home #primary,
.home .site-main { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.codelivly-home > .cl-section:last-child { margin-bottom: 0; }
.home .site-footer, .home .site-info { margin-top: 0 !important; }
/* The footer's first inner container carries margin-top:40px, which collapses
   OUT of the footer and leaves a white strip above it on EVERY page — zero
   it site-wide. */
.site-footer > *:first-child { margin-top: 0 !important; }
/* Full-bleed sections that break out of GeneratePress's boxed container.
   Margin-based (NOT transform) on purpose: the scroll-reveal animates
   `transform`, and a transform-based breakout would be overwritten by it,
   throwing every section half a container to the right. */
.cl-section {
	position: relative;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 72px 0;
}
/* jump-link targets clear a sticky header */
.cl-section[id] { scroll-margin-top: 90px; }
.cl-wrap { max-width: var(--cl-wrap); margin: 0 auto; padding: 0 24px; }
.codelivly-home h1, .codelivly-home h2, .codelivly-home h3 { line-height: 1.14; letter-spacing: -0.02em; margin: 0; }

.cl-eyebrow {
	font-family: var(--cl-mono, ui-monospace, Consolas, monospace);
	font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--cl-teal-text); display: inline-block; margin-bottom: 10px;
}
.cl-eyebrow::before { content: "> "; opacity: 0.7; }

.cl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 30px; font-weight: 700; font-size: 1.02rem;
	border-radius: var(--cl-radius); border: 2px solid var(--cl-teal);
	/* dark ink, not white: white on this teal is 2.15:1 and fails WCAG AA */
	background: var(--cl-teal); color: var(--cl-teal-ink); cursor: pointer; text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cl-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,201,147,0.34); background: var(--cl-teal-dark); border-color: var(--cl-teal-dark); color: var(--cl-teal-ink); }
/* Light sweep across primary CTAs on hover — a small premium cue */
.cl-btn { position: relative; overflow: hidden; }
.cl-btn::after {
	content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255,255,255,0.28), transparent);
	transform: skewX(-18deg); pointer-events: none; opacity: 0;
}
.cl-btn:hover::after { opacity: 1; animation: cl-sweep 0.75s ease; }
@keyframes cl-sweep { from { left: -60%; } to { left: 120%; } }
.cl-btn.ghost::after { display: none; }
@media (prefers-reduced-motion: reduce) { .cl-btn::after { display: none; } }
.cl-btn.ghost { background: transparent; color: var(--cl-ink); border-color: var(--cl-border); }
.cl-btn.ghost:hover { background: var(--cl-surface); color: var(--cl-teal-text); border-color: var(--cl-teal); box-shadow: none; }

/* Hero */
.cl-hero { background:
	radial-gradient(1100px 460px at 12% -10%, rgba(0,201,147,0.10), transparent 60%),
	radial-gradient(900px 420px at 100% 10%, rgba(5,83,239,0.06), transparent 55%);
	padding: 84px 0 76px; }
.cl-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 54px; align-items: center; }
.cl-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.cl-hero h1 .hl { color: var(--cl-teal-text); }
.cl-hero-sub { font-size: 1.18rem; color: var(--cl-muted); margin-top: 18px; max-width: 34ch; }
.cl-hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.cl-hero-trust { display: flex; gap: 20px; margin-top: 26px; flex-wrap: wrap; align-items: center; font-size: 0.92rem; color: var(--cl-muted); }
.cl-hero-trust .stars { color: var(--cl-amber); }
.cl-hero-trust .sep { width: 1px; height: 24px; background: var(--cl-border); }

/* Hero stack — real cover art, fanned with depth */
.cl-stack { position: relative; height: 400px; display: block; }
.cl-stack-glow {
	position: absolute; inset: 12% 6% 8%;
	background: radial-gradient(closest-side, rgba(0,201,147,0.22), transparent 70%);
	filter: blur(38px); z-index: 0; pointer-events: none;
}
.cl-hero-book {
	position: absolute;
	width: 208px;
	aspect-ratio: 4/5; /* uniform frame — any cover ratio, same stack shape */
	border-radius: 4px 12px 12px 4px;
	overflow: hidden;
	background: #0b0f14;
	box-shadow: 0 30px 60px rgba(20,24,28,0.32), 0 4px 12px rgba(20,24,28,0.18);
	transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s ease;
	display: block;
}
.cl-hero-book img {
	width: 100%;
	height: 100%;
	object-fit: contain; /* square covers letterbox on the dark base — never cropped */
	display: block;
}
/* spine highlight — sells the "physical book" read */
.cl-hero-book::after {
	content: ""; position: absolute; inset: 0 auto 0 0; width: 9px;
	background: linear-gradient(90deg, rgba(255,255,255,0.30), rgba(255,255,255,0) 75%);
	pointer-events: none;
}
.cl-hero-book.b1 { left: 0;   top: 58px; transform: rotate(-8deg) translateZ(0); z-index: 2; }
.cl-hero-book.b2 { left: 27%; top: 10px; transform: rotate(-1deg) translateZ(0); z-index: 3; }
.cl-hero-book.b3 { left: 54%; top: 66px; transform: rotate(8deg) translateZ(0);  z-index: 1; }
.cl-hero-book.b1:hover { transform: rotate(-8deg) translateY(-14px); z-index: 4; }
.cl-hero-book.b2:hover { transform: rotate(-1deg) translateY(-14px); z-index: 4; }
.cl-hero-book.b3:hover { transform: rotate(8deg)  translateY(-14px); z-index: 4; }
.cl-hero-book:hover { box-shadow: 0 42px 80px rgba(20,24,28,0.4), 0 6px 16px rgba(20,24,28,0.2); }
@media (max-width: 1100px) { .cl-hero-book { width: 176px; } .cl-stack { height: 340px; } }

/* Trust bar */
.cl-trust { background: var(--cl-surface); border-top: 1px solid var(--cl-border); border-bottom: 1px solid var(--cl-border); padding: 30px 0; }
.cl-trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.cl-stat { position: relative; }
/* hairline dividers between stats (not after the last) */
.cl-stat + .cl-stat::before {
	content: ""; position: absolute; left: calc(-10px - 1px); top: 12%; height: 76%;
	width: 1px; background: var(--cl-border);
}
.cl-stat b {
	display: block; font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em;
	color: var(--cl-ink); font-variant-numeric: tabular-nums; line-height: 1.15;
}
.cl-stat span { font-size: 0.88rem; color: var(--cl-muted); }
@media (max-width: 640px) { .cl-stat + .cl-stat::before { display: none; } }

/* Section heads */
.cl-head { margin-bottom: 34px; }
.cl-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cl-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.cl-head p { color: var(--cl-muted); margin-top: 10px; font-size: 1.06rem; max-width: 56ch; }
.cl-alt { background: var(--cl-surface); border-top: 1px solid var(--cl-border); border-bottom: 1px solid var(--cl-border); }

/* Row + scroll arrows */
.cl-row-wrap { position: relative; }
.cl-nav {
	position: absolute; top: 40%; transform: translateY(-50%);
	width: 46px; height: 46px; z-index: 4;
	display: grid; place-items: center;
	background: #fff; color: var(--cl-ink);
	border: 1px solid var(--cl-border); border-radius: 50%;
	box-shadow: 0 6px 20px rgba(20,24,28,0.16);
	cursor: pointer; padding: 0;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, opacity 0.2s ease;
}
.cl-nav:hover { background: var(--cl-teal); color: var(--cl-teal-ink); border-color: var(--cl-teal); transform: translateY(-50%) scale(1.08); }
.cl-nav[hidden] { display: none; }
.cl-nav.prev { left: -14px; }
.cl-nav.next { right: -14px; }
/* Edge fades — the "there's more this way" cue. Toggled by homepage.js so
   they only appear on the side that actually has more content. */
.cl-row-wrap::before,
.cl-row-wrap::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 14px; /* clear the row's scrollbar gutter */
	width: 56px;
	z-index: 3;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.25s ease;
}
.cl-row-wrap::before {
	left: 0;
	background: linear-gradient(90deg, #fff 15%, rgba(255,255,255,0));
}
.cl-row-wrap::after {
	right: 0;
	background: linear-gradient(270deg, #fff 15%, rgba(255,255,255,0));
}
.cl-row-wrap.can-prev::before,
.cl-row-wrap.can-next::after { opacity: 1; }
/* on tinted sections the fade must match that background */
.cl-alt .cl-row-wrap::before { background: linear-gradient(90deg, var(--cl-surface) 15%, rgba(245,249,248,0)); }
.cl-alt .cl-row-wrap::after  { background: linear-gradient(270deg, var(--cl-surface) 15%, rgba(245,249,248,0)); }

/* Mobile: keep the arrows — they're the clearest "scrollable" signal on
   touch, where hover cues don't exist. Smaller, tucked to the edges. */
@media (max-width: 900px) {
	.cl-nav { width: 38px; height: 38px; top: 34%; }
	.cl-nav.prev { left: -6px; }
	.cl-nav.next { right: -6px; }
	.cl-row-wrap::before, .cl-row-wrap::after { width: 38px; }
}

/* Product rows — horizontal scroll so a whole category browses in one row */
.cl-row {
	display: grid;
	grid-auto-flow: column;
	/* Capped width — 1fr would stretch a single-product row full-width. */
	grid-auto-columns: minmax(228px, 264px);
	justify-content: start;
	gap: 20px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	padding: 4px 4px 14px;
	margin: 0 -4px;
	scrollbar-width: thin;
	scrollbar-color: #c9d5d1 transparent;
}
.cl-row > * { scroll-snap-align: start; }
.cl-row::-webkit-scrollbar { height: 8px; }
.cl-row::-webkit-scrollbar-track { background: transparent; }
.cl-row::-webkit-scrollbar-thumb { background: #d5dedb; border-radius: 99px; }
.cl-row::-webkit-scrollbar-thumb:hover { background: var(--cl-teal); }
/* Mobile peek: 68% width leaves a clear slice of the next card visible —
   the strongest signal that the row scrolls. */
@media (max-width: 640px) { .cl-row { grid-auto-columns: minmax(180px, 68%); gap: 14px; } }

/* Product cards */
.cl-pgrid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.cl-pcard {
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius-lg);
	background: #fff;
	padding: 14px;
	display: flex;
	flex-direction: column;
	position: relative;
	box-shadow: 0 1px 2px rgba(20,24,28,0.04), 0 8px 24px rgba(20,24,28,0.05);
	transition: transform 0.22s cubic-bezier(.2,.7,.3,1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.cl-pcard:hover {
	transform: translateY(-6px);
	border-color: rgba(0,201,147,0.4);
	box-shadow: 0 2px 4px rgba(20,24,28,0.05), 0 22px 46px rgba(20,24,28,0.14);
}
/* Cover art auto-fits: full image always visible (no cropped titles), and the
   letterboxing blends into the white card instead of showing grey bars. */
.cl-pcard-img {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 4/5;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
}
.cl-pcard-img img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	border-radius: 6px;
	/* the shadow hugs the cover itself, not the frame — reads as a physical
	   book lying on the card, and keeps white covers visible on white */
	filter: drop-shadow(0 6px 14px rgba(20, 24, 28, 0.14));
	transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
}
.cl-pcard:hover .cl-pcard-img img { transform: scale(1.055); }

/* Scroll reveal — sections ease in as they enter the viewport */
.cl-reveal { opacity: 0; transform: translateY(22px); }
.cl-reveal.is-in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) {
	.cl-reveal, .cl-reveal.is-in { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.cl-pcard-body { padding: 14px 6px 6px; display: flex; flex-direction: column; gap: 7px; flex: 1; }

/* Title + blurb are clamped to a fixed number of lines so every card in a
   row has the same rhythm — that's what removes the dead gap above the
   button when one title is short and another wraps to three lines. */
.cl-pcard-title {
	font-weight: 600;
	font-size: 1.0rem;
	line-height: 1.35;
	color: var(--cl-ink);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
	overflow: hidden;
	min-height: 2.7em;
}
.cl-pcard-title:hover { color: var(--cl-teal-text); }

.cl-pcard-desc {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--cl-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
	overflow: hidden;
	min-height: 2.55em;
}
.cl-price { font-weight: 800; font-size: 1.12rem; color: var(--cl-teal-text); }
.cl-price del { color: var(--cl-muted); font-weight: 400; font-size: 0.92rem; margin-right: 6px; }
.cl-badge {
	position: absolute; top: 20px; left: 20px; z-index: 3;
	font-size: 0.62rem; font-weight: 800; text-transform: uppercase;
	letter-spacing: 0.07em; padding: 5px 11px; border-radius: 999px;
	backdrop-filter: blur(4px);
}
.cl-badge.best { background: var(--cl-teal); color: var(--cl-teal-ink); box-shadow: 0 3px 10px rgba(0,201,147,0.4); }
.cl-badge.free { background: #2563EB; color: #fff; box-shadow: 0 3px 10px rgba(37,99,235,0.35); }
.cl-badge.sale { background: #ff5a4d; color: #fff; box-shadow: 0 3px 10px rgba(255,90,77,0.4); }
.cl-pcard .cl-btn { margin-top: auto; min-height: 44px; font-size: 0.94rem; }

/* Value props */
.cl-vgrid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.cl-vcard { padding: 26px 22px; border-radius: var(--cl-radius-lg); background: #fff; border: 1px solid var(--cl-border); }
.cl-vcard .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(0,201,147,0.12); color: var(--cl-teal-text); display: grid; place-items: center; margin-bottom: 15px; font-size: 1.4rem; }
.cl-vcard h3 { font-size: 1.1rem; }
.cl-vcard p { color: var(--cl-muted); margin-top: 8px; font-size: 0.95rem; }

/* Cybersecurity banner + tracks */
.cl-cyber { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 30px; margin-bottom: 16px; border-radius: var(--cl-radius-lg); background: linear-gradient(135deg,#0c231c,#0a1a15); border: 1px solid rgba(0,201,147,0.3); color: #fff; text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.cl-cyber:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(10,26,21,0.4); }
.cl-cyber b { color: var(--cl-teal); font-size: 1.55rem; display: block; }
.cl-cyber span { color: #b8c4cd; font-size: 0.98rem; }
.cl-cyber .go { color: var(--cl-teal); font-weight: 700; white-space: nowrap; }
.cl-tgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.cl-track { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--cl-border); border-radius: var(--cl-radius); background: #fff; text-decoration: none; transition: border-color 0.18s ease, transform 0.18s ease; }
.cl-track:hover { border-color: var(--cl-teal); transform: translateY(-3px); }
.cl-track .m { width: 46px; height: 46px; border-radius: 10px; background: var(--cl-ink); color: var(--cl-teal); font-weight: 800; display: grid; place-items: center; flex: 0 0 46px; }
.cl-track b { font-size: 1.04rem; color: var(--cl-ink); display: block; }
.cl-track span { color: var(--cl-muted); font-size: 0.86rem; }

/* Testimonials */
.cl-qgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.cl-quote { padding: 26px; border-radius: var(--cl-radius-lg); background: #fff; border: 1px solid var(--cl-border); }
.cl-quote .stars { color: var(--cl-amber); margin-bottom: 12px; }
.cl-quote p { font-style: italic; color: var(--cl-ink-2); }
.cl-who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.cl-who .av { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: linear-gradient(135deg,var(--cl-teal),var(--cl-teal-dark)); color: #fff; font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,201,147,0.32); }
.cl-who b { font-size: 0.96rem; color: var(--cl-ink); display: block; }
.cl-who span { font-size: 0.84rem; color: var(--cl-muted); }

/* FAQ */
.cl-faq { max-width: 760px; margin: 0 auto; }
.cl-faq details { border: 1px solid var(--cl-border); border-radius: var(--cl-radius); background: #fff; margin-bottom: 10px; }
.cl-faq summary { padding: 18px 22px; font-weight: 600; cursor: pointer; list-style: none; position: relative; color: var(--cl-ink); }
.cl-faq summary::-webkit-details-marker { display: none; }
.cl-faq summary::after { content: "+"; position: absolute; right: 22px; color: var(--cl-teal-text); font-size: 1.3rem; line-height: 1; }
.cl-faq details[open] summary::after { content: "\2212"; }
.cl-faq p { padding: 0 22px 18px; margin: 0; color: var(--cl-muted); }

/* Final CTA */
.cl-cta { background: linear-gradient(135deg,var(--cl-teal),var(--cl-teal-dark)); color: var(--cl-teal-ink); }
.cl-cta-box { text-align: center; max-width: 720px; margin: 0 auto; }
.cl-cta h2 { color: var(--cl-teal-ink); font-size: clamp(1.8rem,3.2vw,2.5rem); }
.cl-cta p { color: rgba(5,35,27,0.82); margin-top: 12px; font-size: 1.1rem; }
.cl-cta .cl-btn { background: #fff; color: var(--cl-teal-text); border-color: #fff; margin-top: 24px; }
.cl-cta .cl-btn:hover { background: var(--cl-teal-ink); color: #fff; border-color: var(--cl-teal-ink); }
.cl-cta .guar { margin-top: 15px; font-size: 0.78rem; letter-spacing: 0.06em; color: rgba(5,35,27,0.78); }

/* Responsive */
@media (max-width: 900px) {
	.cl-hero-grid { grid-template-columns: 1fr; gap: 8px; }
	.cl-stack { display: none; }
	.cl-pgrid { grid-template-columns: repeat(2,1fr); }
	.cl-vgrid { grid-template-columns: repeat(2,1fr); }
	.cl-tgrid { grid-template-columns: repeat(2,1fr); }
	.cl-qgrid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.cl-section { padding: 48px 0; }
	.cl-hero { padding: 52px 0; }
	.cl-hero-cta { flex-direction: column; }
	.cl-hero-cta .cl-btn { width: 100%; }
	.cl-hero-trust .sep { display: none; }
	.cl-trust-grid { grid-template-columns: repeat(2,1fr); gap: 24px; }
	.cl-cyber { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 480px) {
	.cl-pgrid, .cl-vgrid, .cl-tgrid { grid-template-columns: 1fr; }
}

/* ============ SHOP / ARCHIVE REDESIGN ============ */

/* Shop header */
.woocommerce .woocommerce-products-header { margin-bottom: 8px; }
.woocommerce .woocommerce-products-header__title,
.woocommerce h1.page-title {
	font-size: clamp(1.9rem, 3.4vw, 2.6rem);
	letter-spacing: -0.02em;
	margin-bottom: 6px;
}
.woocommerce .term-description, .woocommerce .woocommerce-products-header p { color: var(--cl-muted); }

/* Category filter pills */
.cl-shop-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 26px;
	padding: 18px 0 22px;
	border-top: 1px solid var(--cl-border);
	border-bottom: 1px solid var(--cl-border);
	clear: both;
}
.cl-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	color: var(--cl-ink);
	background: #fff;
	border: 1px solid var(--cl-border);
	border-radius: 999px;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.cl-pill span {
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--cl-muted);
	background: var(--cl-surface);
	padding: 2px 7px;
	border-radius: 999px;
}
.cl-pill:hover {
	border-color: var(--cl-teal);
	color: var(--cl-teal-text);
	transform: translateY(-2px);
	text-decoration: none;
}
.cl-pill.is-active {
	background: var(--cl-teal);
	border-color: var(--cl-teal);
	color: var(--cl-teal-ink);
}
.cl-pill.is-active span { background: rgba(255,255,255,0.25); color: #fff; }
/* Mobile: pills scroll in one row instead of stacking many rows tall */
@media (max-width: 640px) {
	.cl-shop-filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 14px;
	}
	.cl-shop-filters::-webkit-scrollbar { display: none; }
	.cl-pill { flex: 0 0 auto; }
}

/* WooCommerce notices — themed, with the action button kept inside the box */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	background: #fff;
	color: var(--cl-ink);
	border: 1px solid var(--cl-border);
	border-top: 3px solid var(--cl-teal);
	border-radius: 10px;
	padding: 16px 22px;
	box-shadow: 0 4px 14px rgba(20, 24, 28, 0.06);
}
.woocommerce-info { border-top-color: #2563EB; }
.woocommerce-error { border-top-color: #DC2626; }
.woocommerce-message {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}
.woocommerce-message .button {
	order: 2;
	float: none;
	margin: 0;
}

/* Result count + sort row */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
	margin: 0 0 22px;
}
.woocommerce .woocommerce-result-count { color: var(--cl-muted); font-size: 0.92rem; padding-top: 10px; }
.woocommerce .woocommerce-ordering select {
	padding: 10px 14px;
	border: 1px solid var(--cl-border);
	border-radius: 10px;
	background: #fff;
	color: var(--cl-ink);
	font-size: 0.94rem;
}

/* Grid */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 22px !important;
	margin: 0 0 40px !important;
	padding: 0 !important;
	list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }

/* Card */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 14px !important;
	background: #fff;
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius-lg);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 40px rgba(20,24,28,0.12);
}

/* Cover auto-fits: whole artwork visible, cover-hugging shadow, no crop */
.woocommerce ul.products li.product a img {
	width: 100%;
	aspect-ratio: 4/5;
	object-fit: contain;
	padding: 8px;
	box-sizing: border-box;
	border-radius: 8px;
	margin: 0 0 12px !important;
	display: block;
	filter: drop-shadow(0 6px 14px rgba(20, 24, 28, 0.14));
	transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.045); }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.0rem !important;
	font-weight: 600 !important;
	line-height: 1.35;
	color: var(--cl-ink);
	padding: 0 !important;
	margin: 0 0 6px !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
	overflow: hidden;
	min-height: 2.7em;
}
/* Short blurb on shop cards (added via functions.php) */
.woocommerce ul.products li.product .cl-loop-desc {
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--cl-muted);
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
	overflow: hidden;
	min-height: 2.55em;
}
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title { color: var(--cl-teal-text); }

.woocommerce ul.products li.product .price {
	color: var(--cl-teal-text) !important;
	font-weight: 800 !important;
	font-size: 1.12rem !important;
	margin: 0 0 12px !important;
	display: block;
}
.woocommerce ul.products li.product .price del {
	color: var(--cl-muted) !important;
	font-weight: 400;
	font-size: 0.9rem;
	margin-right: 6px;
	opacity: 1;
}
.woocommerce ul.products li.product .price ins { text-decoration: none; }

/* Star rating */
.woocommerce ul.products li.product .star-rating {
	color: var(--cl-amber);
	font-size: 0.82rem;
	margin: 0 0 10px !important;
}

/* Button pinned to the bottom so cards align.
   box-sizing is explicit: width:100% + padding overflows without it. */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	margin-top: auto !important;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}
.woocommerce ul.products li.product,
.woocommerce ul.products li.product * { box-sizing: border-box; }

/* Sale badge */
.woocommerce span.onsale {
	position: absolute;
	top: 20px; left: 20px; right: auto;
	min-height: 0; min-width: 0;
	padding: 5px 12px;
	line-height: 1.4;
	background: #ff5a4d;
	color: #fff;
	border-radius: 999px;
	font-weight: 800;
	font-size: 0.72rem;
	letter-spacing: 0.03em;
	margin: 0;
	z-index: 2;
}

/* Pagination removed — the shop shows the full catalogue on one page
   (products-per-page is raised in functions.php). */
.woocommerce nav.woocommerce-pagination { display: none !important; }

/* Sticky mobile bottom bar (a GeneratePress Element) — mobile only.
   GP Digital Pro used to hide it on desktop; that rule lives here now. */
@media (min-width: 960px) {
	.sticky-footer-menu { display: none !important; }
}
.sticky-footer-menu {
	position: fixed !important;
	bottom: 0; left: 0;
	width: 100%;
	z-index: 99;
	box-shadow: 0 -4px 18px rgba(20,24,28,0.12);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Single product gallery: white frame, un-cropped cover, book shadow */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
	background: #fff;
	border: 1px solid var(--cl-border);
	border-radius: 14px;
	padding: 20px;
	box-sizing: border-box;
}
.woocommerce div.product div.images img {
	border-radius: 8px;
	object-fit: contain;
	max-height: 580px;
	width: 100%;
	filter: drop-shadow(0 10px 24px rgba(20, 24, 28, 0.16));
}
/* gallery thumbnail strip */
.woocommerce div.product div.images .flex-control-thumbs li img {
	border: 1px solid var(--cl-border);
	border-radius: 8px;
	padding: 4px;
	background: #fff;
	max-height: none;
	filter: none;
	opacity: 0.65;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
	opacity: 1;
	border-color: var(--cl-teal);
}

/* Cart / order tables: uniform mini book frames */
.woocommerce table.shop_table td.product-thumbnail img,
.woocommerce table.shop_table .product-name img {
	width: 64px;
	aspect-ratio: 4/5;
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--cl-border);
	border-radius: 8px;
	padding: 4px;
	box-sizing: border-box;
}

@media (max-width: 1024px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3,1fr) !important; } }
@media (max-width: 768px)  { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2,1fr) !important; gap: 14px !important; } }
@media (max-width: 420px)  { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr !important; } }

/* Buttons (shop, product, checkout) */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce .single_add_to_cart_button, .woocommerce #place_order, .woocommerce a.added_to_cart {
	background: var(--cl-teal) !important; color: var(--cl-teal-ink) !important;
	border: none !important; border-radius: 10px !important;
	font-weight: 700 !important; padding: 12px 20px !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce .single_add_to_cart_button:hover, .woocommerce #place_order:hover {
	background: var(--cl-teal-dark) !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0,201,147,0.34) !important;
}

a:focus-visible, button:focus-visible, .cl-btn:focus-visible { outline: 2px solid var(--cl-teal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
