/*
Theme Name: TheGayShop
Theme URI: https://thegayshop.nl
Description: Lichtgewicht affiliate-shopthema voor TheGayShop.nl (bol.com / Amazon). Geen winkelmand, geen accounts.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: tgs
*/

@font-face {
	font-family: "Instrument Sans";
	src: url("assets/fonts/instrument-sans.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
}

:root {
	/* Pride stripes, same as the logo heart: top to bottom, hard edges. */
	--rainbow-v: linear-gradient(180deg, #E40303 0 16.67%, #FF8C00 16.67% 33.33%, #FFED00 33.33% 50%, #008026 50% 66.67%, #24408E 66.67% 83.33%, #732982 83.33% 100%);
	--ink: #17110f;
	--muted: #6b6461;
	--line: #e7e2de;
	--bg: #ffffff;
	--soft: #f5f2ef;
	--plum: #2b1b20;
	--plum-2: #3d2830;
	--accent: #b4452f;  /* brick red: prices, labels, search button */
	--bol: #1f7a3d;       /* bol buttons in our own green, not bol blue */
	--bol-hover: #18632f;
	--amazon: #ff9900;
	--star: #f2b01e;
	--radius: 6px;
	--wrap: 1320px;
	--gutter: clamp(16px, 3vw, 32px);
	--font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: #fff; padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--plum); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; min-height: 72px; }
.logo { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.logo-mark { display: inline-flex; align-items: baseline; }
.logo-heart { width: .7em; height: .64em; margin: 0 .01em 0 .03em; transform: translateY(.05em); flex: none; }

/* Search: wide, centred in the bar, live results underneath. */
.header-search { position: relative; justify-self: center; width: 100%; max-width: 640px; display: flex; }
.header-search input { flex: 1; min-width: 0; background: #fff; color: var(--ink); border: 0; padding: 12px 52px 12px 20px; border-radius: 999px; font: inherit; font-size: .98rem; }
.header-search input::placeholder { color: #8a8280; }
.header-search input:focus { outline: 3px solid rgba(255,255,255,.35); outline-offset: 0; }
.header-search input::-webkit-search-cancel-button { cursor: pointer; }
.header-search-btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.header-search-btn:hover { background: #963822; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 18px 40px rgba(23,14,17,.28); max-height: min(70vh, 620px); overflow-y: auto; padding: 8px 0; z-index: 60; }
.search-results[hidden] { display: none; }
.sr-group + .sr-group { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.sr-head { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); padding: 10px 18px 6px; }
.sr-item { display: flex; align-items: center; gap: 14px; padding: 8px 18px; text-decoration: none; line-height: 1.3; }
.sr-item:hover, .sr-item.is-active { background: var(--soft); }
.sr-img { width: 48px; height: 48px; flex: none; border-radius: 8px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.sr-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sr-img--post img { object-fit: cover; mix-blend-mode: normal; }
.sr-title { flex: 1; min-width: 0; font-size: .93rem; }
.sr-meta { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.sr-price { font-weight: 650; font-size: .92rem; white-space: nowrap; }
.sr-all { display: block; text-align: center; padding: 12px 18px 8px; font-weight: 600; font-size: .92rem; color: var(--plum); }
.sr-empty { padding: 14px 18px; color: var(--muted); font-size: .93rem; }

/* Navigation: right-aligned, Shop opens a dropdown with categories and their subcategories. */
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a { text-decoration: none; white-space: nowrap; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .98rem; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.current-menu-item > a, .main-nav > ul > li.current-menu-ancestor > a { background: var(--plum-2); }
.main-nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.main-nav .sub-menu { list-style: none; margin: 0; position: absolute; right: 0; top: 100%; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 18px 40px rgba(23,14,17,.28); padding: 22px 24px; display: grid; grid-template-columns: repeat(5, 172px); gap: 18px 26px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.main-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu > li > a { font-weight: 700; font-size: .95rem; }
.main-nav .sub-menu > li > a:hover { color: var(--accent); }
.sub-sub-menu { list-style: none; margin: 8px 0 0; padding: 0; }
.sub-sub-menu li { margin-bottom: 5px; }
.sub-sub-menu a { color: var(--muted); font-size: .88rem; }
.main-nav .sub-menu a { white-space: normal; display: inline-block; }
.sub-sub-menu a:hover { color: var(--ink); text-decoration: underline; }
.sub-toggle { display: none; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; width: 44px; height: 44px; padding: 0; margin-right: -10px; }
.search-toggle { display: none; place-items: center; background: none; border: 0; color: #fff; cursor: pointer; width: 44px; height: 44px; padding: 0; }
.search-toggle .i-close, .search-toggle[aria-expanded="true"] .i-search { display: none; }
.search-toggle[aria-expanded="true"] .i-close { display: block; }
/* Hamburger: three bars that turn into a cross when the menu is open. */
.burger { position: relative; display: block; width: 24px; height: 18px; margin: 0 auto; }
.burger span { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .15s ease, top .2s ease; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 7.75px; }
.burger span:nth-child(3) { top: 15.5px; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { top: 7.75px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { top: 7.75px; transform: rotate(-45deg); }

@media (max-width: 1180px) {
	.main-nav .sub-menu { grid-template-columns: repeat(3, 172px); }
}
@media (max-width: 900px) {
	.header-bar { grid-template-columns: 1fr auto auto; gap: 10px 4px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
	/* Search is folded away behind the magnifier next to the hamburger. */
	.header-search { grid-column: 1 / -1; grid-row: 2; max-width: none; display: none; }
	.header-search.open { display: flex; }
	.search-toggle { display: grid; }
	.nav-toggle { display: block; }
	/* Full-height panel below the header that scrolls on its own (dvh/bottom:0 keeps it above mobile browser bars). */
	.main-nav { position: fixed; left: 0; right: 0; top: var(--header-bottom, 125px); bottom: 0; background: var(--plum); display: none; padding: 8px var(--gutter) calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; z-index: 60; }
	.main-nav.open { display: block; }
	.main-nav > ul { flex-direction: column; gap: 4px; }
	.main-nav > ul > li > a { padding: 10px 0; border-radius: 0; }
	.main-nav > ul > li > a:hover { background: none; }
	.main-nav .menu-item-has-children > a::after { display: none; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; color: #fff; box-shadow: none; padding: 0 0 8px 14px; display: block; }
	.main-nav .sub-menu::before { display: none; }
	/* Main categories as accordion: arrow button opens the subcategories. */
	.main-nav .sub-menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); }
	.main-nav .sub-menu > li > a { font-weight: 500; flex: 1; padding: 11px 0; }
	.sub-toggle { background: none; border: 0; color: #fff; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; font-size: 1.1rem; transition: transform .2s; }
	.sub-toggle[aria-expanded="true"] { transform: rotate(180deg); }
	.sub-sub-menu { display: none; flex-basis: 100%; margin: 0 0 12px 12px; }
	.is-open > .sub-sub-menu { display: block; }
	/* Opened category: darker band across the full menu width. */
	.main-nav .sub-menu > li.is-open { background: rgba(0,0,0,.32); margin: 0 calc(-1 * var(--gutter)) 0 calc(-14px - var(--gutter)); padding: 0 var(--gutter) 0 calc(14px + var(--gutter)); border-bottom-color: transparent; }
	.sub-sub-menu li { margin-bottom: 0; }
	.sub-sub-menu a { color: #eadfe2; font-size: .95rem; display: block; padding: 7px 0; }
	.sub-sub-menu a:hover { color: #fff; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; transition: background .15s; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft); }
.btn-dark { background: var(--plum); color: #fff; }
.btn-dark:hover { background: var(--plum-2); }
.btn-bol { background: var(--bol); color: #fff; }
.btn-bol:hover { background: var(--bol-hover); }
.btn-amazon { background: var(--amazon); color: #111; }
.btn-amazon:hover { background: #e68a00; }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 30px; font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; min-height: min(calc(100vh - 64px), 860px); display: flex; align-items: center; overflow: hidden; background: var(--plum); }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: center 55%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,14,17,.82) 0%, rgba(23,14,17,.55) 45%, rgba(23,14,17,.05) 80%); }
.hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -0.04em; max-width: 12em; }
.hero p { font-size: 1.15rem; max-width: 32em; color: #f1e9eb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 800px) {
	.hero { min-height: 78vh; align-items: flex-end; }
	.hero::after { background: linear-gradient(0deg, rgba(23,14,17,.88) 0%, rgba(23,14,17,.5) 55%, rgba(23,14,17,.1) 100%); }
	.hero picture img { object-position: 40% center; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .95rem; white-space: nowrap; }

/* ---------- Product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
	.grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
	/* Popular products: horizontal swipe row, edge to edge, next card peeks in. */
	.grid--slider { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
	.grid--slider::-webkit-scrollbar { display: none; }
	.grid--slider > .card { flex: 0 0 40%; scroll-snap-align: start; }
	/* Smaller tiles (≈35% smaller than before): tighter photo padding and text. */
	.grid--slider .card-media { padding: 10px; }
	.grid--slider .card-title { font-size: .84rem; margin: 8px 0 3px; }
	.grid--slider .card-price { font-size: .86rem; }
	.grid--slider .card-price del { font-size: .78rem; }
	.grid--slider .stars { font-size: .75rem; gap: 4px; }
	.grid--slider .stars-bar { font-size: .8rem; letter-spacing: 1px; }
	.grid--slider .card-badge { top: 6px; left: 6px; font-size: .56rem; padding: 3px 5px; }
	.grid--slider::after { content: ""; flex: 0 0 1px; }
}
.card { position: relative; text-align: center; display: flex; flex-direction: column; }
.card-media { background: var(--soft); aspect-ratio: 1; display: grid; place-items: center; padding: 18px; border-radius: var(--radius); overflow: hidden; }
.card-media img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s; }
.card:hover .card-media img { transform: scale(1.04); }
/* On soft-coloured sections (related products, homepage blocks) tiles get a white background,
   so products with a transparent PNG still read as a tile. */
.section-soft .card-media { background: #fff; }
.card-badge { position: absolute; top: 10px; left: 10px; background: var(--plum); color: #fff; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; padding: 4px 8px; border-radius: 3px; z-index: 1; }
.card-title { font-size: .95rem; font-weight: 700; margin: 12px 0 4px; line-height: 1.35; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-price { font-size: .95rem; font-weight: 700; }
.card-price .from, .product-price .from { color: var(--muted); font-size: .85em; font-weight: 400; }
.card-price del { color: var(--muted); margin-right: 6px; font-size: .88rem; font-weight: 400; }
.card .stars { justify-content: center; margin-top: 4px; }
/* Shop/category/brand pages on mobile: list rows like bol – photo left, details right. */
@media (max-width: 700px) {
	.grid--list { display: block !important; }
	.grid--list .card { display: grid; grid-template-columns: 38% 1fr; grid-template-areas: "media title" "media stars" "media price" "media ."; grid-template-rows: auto auto auto 1fr; column-gap: 16px; align-items: start; text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); }
	.grid--list .card:first-child { padding-top: 4px; }
	.grid--list .card-media { grid-area: media; padding: 10px; border-radius: 10px; }
	.grid--list .card-badge { top: 22px; left: 6px; font-size: .6rem; padding: 3px 6px; }
	.grid--list .card:first-child .card-badge { top: 10px; }
	.grid--list .card-title { grid-area: title; margin: 2px 0 6px; font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
	.grid--list .stars { grid-area: stars; justify-content: flex-start; margin: 0 0 6px; }
	.grid--list .card-price { grid-area: price; font-size: 1.15rem; font-weight: 700; color: var(--accent); line-height: 1.3; }
	.grid--list .card-price del { font-size: .9rem; font-weight: 400; }
	.grid--list .card-price .from { font-size: .8rem; color: var(--muted); }
}

.stars { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.stars-bar { --pct: 0%; position: relative; display: inline-block; font-size: 1rem; letter-spacing: 2px; line-height: 1; color: #d9d3cf; }
.stars-bar::before { content: "★★★★★"; }
.stars-bar::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--pct); overflow: hidden; color: var(--star); }

/* ---------- Category cards ---------- */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.cat-card { display: flex; flex-direction: column; background: var(--soft); border-radius: 10px; overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(43,27,32,.12); }
.cat-card-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.cat-card-imgs span { position: relative; background: #fff; aspect-ratio: 1; overflow: hidden; min-width: 0; }
.cat-card-imgs img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; }
.cat-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-card-title { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; }
.cat-card-text { color: var(--muted); font-size: .92rem; line-height: 1.45; flex: 1; }
.cat-card-link { font-weight: 600; font-size: .92rem; margin-top: 4px; }
/* Mobile: compact rows – one photo left, name + description right, cards stacked. */
@media (max-width: 700px) {
	.cat-cards { grid-template-columns: 1fr; gap: 10px; }
	.cat-card { flex-direction: row; align-items: stretch; }
	.cat-card:hover { transform: none; box-shadow: none; }
	.cat-card-imgs { display: block; flex: 0 0 92px; align-self: center; margin: 8px 0 8px 8px; border-radius: 8px; overflow: hidden; background: #fff; }
	.cat-card-imgs span { display: none; aspect-ratio: 1; }
	.cat-card-imgs span:first-child { display: block; }
	.cat-card-body { padding: 12px 14px; gap: 3px; justify-content: center; }
	.cat-card-title { font-size: 1.05rem; }
	.cat-card-text { font-size: .85rem; line-height: 1.4; flex: 0 1 auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.cat-card-link { font-size: .85rem; margin-top: 2px; }
}
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chips a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; text-decoration: none; font-size: .9rem; background: #fff; }

/* ---------- Archive / filters ---------- */
.archive-head { padding: 34px 0 20px; }
.archive-head h1 { margin-bottom: 10px; }
.archive-intro { color: var(--muted); max-width: 52em; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; background: #f1f0ef; border-radius: 8px; padding: 9px 14px; line-height: 1.5; }
.breadcrumbs a { text-decoration: none; color: var(--ink); }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: 84px; font-size: .93rem; }
.filters h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 22px 0 10px; color: var(--muted); }
.filters h3:first-child { margin-top: 0; }
.filters ul { list-style: none; margin: 0; padding: 0; }
.filters li { margin: 0 0 6px; }
.filters li a { text-decoration: none; }
.filters li a.active { font-weight: 700; }
.filters li .count { color: var(--muted); font-size: .82rem; }
.filters label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; cursor: pointer; }
.filters select, .toolbar select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: #fff; }
.filters .price-row { display: flex; gap: 8px; }
.filters .price-row input { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.filters .btn { margin-top: 14px; padding: 10px 16px; }
.filters .reset { display: inline-block; margin-top: 10px; font-size: .85rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; font-size: .9rem; color: var(--muted); }
.toolbar select { width: auto; }
.filter-toggle { display: none; }
@media (max-width: 900px) {
	.shop-layout { grid-template-columns: 1fr; }
	.filters { position: static; display: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
	.filters.open { display: block; }
	.filter-toggle { display: inline-flex; padding: 9px 16px; }
}
.pagination { display: flex; gap: 6px; justify-content: center; margin: 40px 0 0; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; padding: 0 10px; }
.pagination .current { background: var(--plum); color: #fff; border-color: var(--plum); }

/* ---------- SEO text & FAQ ---------- */
.seo-text { font-size: 1.02rem; }
.seo-text h2 { margin-top: 1.4em; font-size: 1.6rem; }
.seo-text h3 { margin-top: 1.2em; }
.seo-text a { color: var(--plum); text-underline-offset: 3px; }
.seo-text ul { padding-left: 1.2em; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 0 18px; color: #3a3330; }

/* ---------- Single product ---------- */
.product-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); padding: 26px 0 50px; align-items: start; }
@media (max-width: 860px) {
	.product-top { grid-template-columns: 1fr; }
	/* Mobile: title, stars and price above the photo; everything else below it. */
	.product-top { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 14px; }
	.product-summary { display: contents; }
	.product-summary h1 { order: 1; margin-bottom: 6px; }
	.product-summary .product-meta { order: 2; margin-bottom: 4px; }
	.product-summary .product-price { order: 3; margin: 0 0 16px; }
	.product-top .gallery { order: 4; margin-bottom: 22px; }
	.product-summary > *:not(h1):not(.product-meta):not(.product-price) { order: 5; }
}
.gallery-main { background: var(--soft); border-radius: 10px; aspect-ratio: 1; display: grid; place-items: center; padding: 28px; }
.gallery-main img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 74px; height: 74px; background: var(--soft); border: 2px solid transparent; border-radius: var(--radius); padding: 6px; cursor: pointer; }
.gallery-thumbs button.active { border-color: var(--plum); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
/* Mobile: thumbnails in a column left of a smaller main photo. */
@media (max-width: 860px) {
	.gallery { display: grid; grid-template-columns: 58px minmax(0, 1fr); grid-template-areas: "thumbs main" "credit credit"; column-gap: 10px; }
	.gallery-main { grid-area: main; position: relative; overflow: hidden; padding: 0; aspect-ratio: auto; height: min(300px, calc(100vw - 32px - 68px)); }
	/* Absolutely sized so Safari can't let a tall photo grow past the frame. */
	.gallery-main img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); max-height: none; object-fit: contain; }
	.gallery-thumbs { grid-area: thumbs; flex-direction: column; flex-wrap: nowrap; gap: 8px; margin-top: 0; max-height: 300px; overflow-y: auto; scrollbar-width: none; }
	.gallery-thumbs::-webkit-scrollbar { display: none; }
	.gallery-thumbs button { width: 58px; height: 58px; padding: 4px; flex: none; }
	.gallery .img-credit { grid-area: credit; }
	.gallery:not(:has(.gallery-thumbs)) { grid-template-columns: 1fr; grid-template-areas: "main" "credit"; }
}
.img-credit { font-size: .78rem; color: var(--muted); margin-top: 10px; }
.product-summary h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); text-transform: none; }
.product-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; font-size: .9rem; color: var(--muted); }
.product-meta a { color: var(--muted); }
.product-price { font-size: 1.6rem; font-weight: 800; margin: 8px 0 4px; }
.product-price del { font-size: 1.05rem; color: var(--muted); font-weight: 400; margin-right: 8px; }
.price-note { font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.product-lead { font-size: 1.05rem; color: #3a3330; }
.usp-list { list-style: none; margin: 20px 0 0; padding: 16px 18px; font-size: 1rem; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.usp-list li { padding-left: 30px; position: relative; margin-bottom: 10px; line-height: 1.45; }
.usp-list li:last-child { margin-bottom: 0; }
.usp-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: #2a8a4a; color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.affiliate-note { font-size: .78rem; color: var(--muted); margin-top: 12px; }
.product-body { display: grid; grid-template-columns: 1fr 340px; gap: 48px; padding-bottom: 40px; }
@media (max-width: 960px) { .product-body { grid-template-columns: 1fr; } }
.sticky-cta { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.sticky-cta .t { font-weight: 600; margin-bottom: 6px; line-height: 1.35; }
.sticky-offers { margin-top: 12px; }
.offers-title--bottom, .price-note--bottom { display: none; }
/* Prices in warm red everywhere. */
.card-price, .product-price, .offer-price { color: var(--accent); }
.offer-price small { color: var(--accent); }
@media (max-width: 860px) {
	.price-note { margin-top: 12px; }
	/* Bottom price block = same as the one at the top: heading, full rows, note. */
	.sticky-cta { position: static; border: 0; padding: 0; }
	.sticky-cta .t, .sticky-cta > .stars { display: none; }
	.offers-title--bottom, .price-note--bottom { display: block; }
	.offers-title--bottom { margin-top: 8px; }
	.sticky-offers { margin-top: 0; }
	.sticky-offers .offers--compact .offer { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 12px; }
	.sticky-offers .offers--compact .offer-btn { grid-column: auto; }
}
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; }
@media (max-width: 600px) { .proscons { grid-template-columns: 1fr; } }
.proscons > div { border-radius: 10px; padding: 20px 22px; }
.proscons .pros { background: #eef7f0; }
.proscons .cons { background: #fbefef; }
.proscons h3 { margin: 0 0 10px; font-size: 1.05rem; }
.proscons ul { list-style: none; margin: 0; padding: 0; }
.proscons li { padding-left: 24px; position: relative; margin-bottom: 6px; }
.proscons .pros li::before { content: "+"; position: absolute; left: 4px; color: #2a8a4a; font-weight: 800; }
.proscons .cons li::before { content: "–"; position: absolute; left: 4px; color: #c0392b; font-weight: 800; }
.specs { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 10px 0 30px; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; font-weight: 500; color: var(--muted); }
@media (max-width: 860px) {
	/* Same space below the USP frame as above it (price note margin + 20px ≈ 38px). */
	.product-top { padding-bottom: 38px; }
	.product-body .seo-text > h2:first-child { margin-top: 0; }
}

/* ---------- Pages ---------- */
.page-content { padding: 40px 0 70px; }
.page-content h1 { }
.entry { font-size: 1.04rem; }
.entry h2 { margin-top: 1.5em; font-size: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: #eadfe2; margin-top: 0; padding: 56px 0 30px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--plum-2); margin-top: 40px; padding-top: 20px; font-size: .8rem; color: #b9a9ae; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.age-note { display: inline-block; border: 1px solid #b9a9ae; border-radius: 4px; padding: 1px 6px; margin-right: 6px; }

/* ---------- Price comparison ---------- */
.offers-title { font-size: 1.05rem; margin: 22px 0 10px; }
.offers { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.offer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.offer:last-child { border-bottom: 0; }
.offer.is-best { background: #f3faf5; }
.offer-shop { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.shop-ico { width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; display: inline-grid; place-items: center; font-weight: 800; font-size: .95rem; flex: none; }
.offer-price { font-weight: 700; text-align: right; white-space: nowrap; }
.offer-price del { color: var(--muted); font-weight: 400; font-size: .85em; margin-right: 4px; }
.offer-price small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); font-weight: 700; }
.offer-btn { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--plum); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.offer-btn:hover { background: var(--plum-2); }
.offer--bol .offer-btn { background: var(--bol); }
.offer--bol .offer-btn:hover { background: var(--bol-hover); }
.offer--easytoys .offer-btn { background: #e4007c; }
.offer--amazon .offer-btn { background: #ff9900; color: #111; }
.offers--compact .offer { grid-template-columns: 1fr auto; gap: 8px 10px; padding: 10px 12px; }
.offers--compact .offer-btn { grid-column: 1 / -1; text-align: center; }
.btn-shop { gap: 8px; }
.btn-bol { background: var(--bol); color: #fff; }
.btn-easytoys { background: #e4007c; color: #fff; }
.shop-ico--img { object-fit: cover; flex: none; }
/* Mobile: one subtle row per shop – logo + name, green price, green pill button on the right. */
@media (max-width: 860px) {
	.offer { grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; padding: 14px; }
	.offer.is-best { background: #fff; }
	.offer-shop { font-size: 1rem; gap: 12px; }
	.offer-price { text-align: left; color: var(--accent); font-weight: 700; font-size: 1rem; }
	.offer.is-best .offer-price { font-weight: 800; }
	.offer-price small { margin-top: 2px; font-size: .64rem; letter-spacing: .06em; }
	.offer-price del { display: none; }
	.offer-btn, .offer--bol .offer-btn, .offer--amazon .offer-btn, .offer--easytoys .offer-btn { background: #1f7a3d; color: #fff; padding: 9px 14px; font-size: .86rem; grid-column: auto; }
	.offer { gap: 10px; padding: 12px; }
	.offer-btn:hover, .offer--bol .offer-btn:hover { background: #18632f; }
	.offer-noprice { display: none; }
	.offer-shop { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Brand filter: show more ---------- */
.more-brands summary { cursor: pointer; font-size: .88rem; font-weight: 600; margin: 4px 0 8px; list-style: none; }
.more-brands summary::-webkit-details-marker { display: none; }
.more-brands summary::after { content: " +"; }
.more-brands[open] summary { display: none; }

/* ---------- 18+ check ---------- */
.age-locked, .age-locked body { overflow: hidden; }
.age-gate { position: fixed; inset: 0; z-index: 100; background: rgba(23,14,17,.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; }
.age-gate[hidden] { display: none; }
.age-gate-box { background: #fff; border-radius: 14px; max-width: 420px; width: 100%; padding: 32px 28px; text-align: center; }
.age-gate-box .logo { color: var(--ink); font-size: 1.5rem; display: inline-block; margin-bottom: 16px; }
.age-gate-box h2 { font-size: 1.5rem; }
.age-gate-box p { color: var(--muted); }
.age-gate-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.offer-noprice { font-weight: 400; color: var(--muted); font-size: .88rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { position: relative; display: flex; flex-direction: column; }
.post-card-media { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--plum); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; flex: 1; }
.post-cat { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); text-decoration: none; }
.post-card-title { font-size: 1.12rem; line-height: 1.3; margin: 0; }
.post-card-title a { text-decoration: none; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; }
.post-card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-card-text { color: var(--muted); font-size: .93rem; line-height: 1.5; margin: 0; flex: 1; }
.post-card-meta { font-size: .8rem; color: var(--muted); }
.blog-chips { margin-top: 18px; }
.blog-chips a[aria-current] { background: var(--plum); border-color: var(--plum); color: #fff; }
.post-feature { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; margin-bottom: 44px; }
.post-feature-media { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--plum); }
.post-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.post-feature-body { display: flex; flex-direction: column; gap: 10px; }
.post-feature .post-card-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.post-feature .post-card-text { font-size: 1.02rem; flex: none; }
@media (max-width: 800px) { .post-feature { grid-template-columns: 1fr; } }

.post-head { padding-top: 34px; }
.post-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 10px 0 12px; }
.post-meta { color: var(--muted); font-size: .9rem; display: flex; gap: 8px; flex-wrap: wrap; }
.post-hero { max-width: 1100px; margin: 10px auto 34px; }
.post-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.post-intro { font-size: 1.15rem; line-height: 1.6; }
.post-intro strong { font-weight: 650; }
.post-card-meta { margin-top: auto; }
.post-entry h2 { margin-top: 1.6em; }
.post-entry ol, .post-entry ul { padding-left: 1.3em; }
.post-entry li { margin-bottom: .4em; }
.post-entry table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .94rem; display: block; overflow-x: auto; }
.post-entry th, .post-entry td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-entry thead th { background: var(--soft); font-weight: 650; }
.post .faq { margin-bottom: 20px; }
.post .wrap.narrow > h2 { margin-top: 1.6em; }
.entry-products { margin: 1.6em 0 2em; }
.entry-products .grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.entry-products .card-title { font-size: .9rem; font-weight: 700; }
@media (max-width: 700px) { .entry-products .grid { grid-template-columns: repeat(2, 1fr); } }

.vs-box { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; margin: 1.6em 0 2em; }
.vs-side { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.vs-media { background: var(--soft); border-radius: 8px; aspect-ratio: 1; display: grid; place-items: center; padding: 16px; }
.vs-media img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.vs-title { font-size: 1rem; margin: 6px 0 0; line-height: 1.3; }
.vs-title a { text-decoration: none; }
.vs-side .stars { justify-content: center; }
.vs-price { font-weight: 650; font-size: 1.1rem; }
.vs-price del { color: var(--muted); font-weight: 400; font-size: .9rem; margin-right: 6px; }
.vs-side .offers { text-align: left; margin-top: auto; }
.vs-more { font-size: .88rem; }
.vs-bolt { align-self: center; color: var(--accent); }
.vs-bolt svg { width: 44px; height: auto; display: block; }
@media (max-width: 640px) {
	.vs-box { grid-template-columns: 1fr; }
	.vs-bolt { justify-self: center; transform: rotate(90deg); }
	.vs-bolt svg { width: 34px; }
}
/* Buttons inside article text keep their own colors (.seo-text a would otherwise make them plum). */
.entry .offer-btn, .entry .btn { color: #fff; text-decoration: none; }
.entry .offer--amazon .offer-btn, .entry .btn-amazon { color: #111; }

/* ---------- Rainbow mark before headings (category page title, homepage block titles) ---------- */
.home .section-head h2::before,
.archive-title.rainbow-bar h1::before { content: ""; display: inline-block; width: 4px; height: .78em; margin-right: .38em; border-radius: 2px; background: var(--rainbow-v); vertical-align: -.04em; }

/* ---------- Homepage blogs: compact 2 columns on mobile ---------- */
@media (max-width: 600px) {
	.post-grid--compact { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
	.post-grid--compact .post-card-media { aspect-ratio: 4 / 3; border-radius: 8px; }
	.post-grid--compact .post-card-body { padding-top: 8px; gap: 4px; }
	.post-grid--compact .post-card-title { font-size: .92rem; line-height: 1.3; }
	.post-grid--compact .post-cat { font-size: .68rem; }
	.post-grid--compact .post-card-meta { font-size: .72rem; }
}

/* Related blogs: 4 posts (2x2 on mobile); the 3-column desktop/tablet grid shows 3. */
@media (min-width: 601px) { .post-grid--3.post-grid--compact > :nth-child(4) { display: none; } }
