/* ==========================================================================
   GEEKD Components — extras not in geekd.css
   ========================================================================== */

/* ── Hero Section — two-column centered ─────────────────────────────────── */
.hero {
	padding: 80px 0 60px;
	position: relative;
	overflow: hidden;
}
.hero-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
	min-height: 520px;
}
.hero-text {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}
.hero-text .eyebrow { margin-bottom: 0; }
.hero-text .h-display {
	font-size: clamp(46px, 6.5vw, 96px);
	white-space: nowrap;
	margin: 0;
}
.hero-text .lead { max-width: 420px; margin: 0; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-chips { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }
.hero-kb {
	display: flex;
	align-items: center;
	justify-content: center;
}
.hero-kb .kb-stage { width: 100%; max-width: 560px; }
@media (max-width: 900px) {
	.hero-inner { grid-template-columns: 1fr; text-align: center; min-height: auto; }
	.hero-text { align-items: center; }
	.hero-text .lead { max-width: 100%; }
	.hero-kb { margin-top: 1rem; }
}

/* ── Currency switcher — fix double box ─────────────────────────────────── */
/* geekd.css puts a box-shadow border on .gk-curr AND components.css puts
   a border on .gk-curr-btn — strip the outer so only the button shows */
.gk-curr {
	background: none;
	box-shadow: none !important;
	padding: 0 !important;
	gap: 0 !important;
}
.gk-curr:hover { box-shadow: none !important; }
.gk-curr-btn {
	background: none;
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 8px;
	color: var(--muted);
	padding: 6px 12px;
	cursor: pointer;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: border-color .2s, color .2s;
	font-family: 'Inter', sans-serif;
}
.gk-curr-btn:hover { border-color: var(--accent); color: var(--text); }
/* Fix nav icon buttons — they inherit color:inherit which can render dark */
.gk-icon {
	background: none !important;
	border: none !important;
	color: var(--muted) !important;
	cursor: pointer;
}
.gk-icon:hover { color: var(--text) !important; background: rgba(255,255,255,.06) !important; }
.gk-icon svg { pointer-events: none; }

/* ── Cart Drawer ─────────────────────────────────────────────────────────── */
.gk-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 380px;
	max-width: 100vw;
	height: 100dvh;
	background: var(--panel);
	border-left: 1px solid var(--line);
	z-index: 100;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.4,0,.2,1);
	box-shadow: -16px 0 60px rgba(0,0,0,.5);
}
.gk-cart-drawer.open { transform: translateX(0); }
.gk-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.62);
	backdrop-filter: blur(3px);
	z-index: 90;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s;
}
.gk-overlay.open { opacity: 1; pointer-events: auto; }
.gk-cart-drawer-inner { display: flex; flex-direction: column; height: 100%; }
.gk-cart-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--line);
	flex-shrink: 0;
}
.gk-cart-drawer-head h3 {
	margin: 0;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.gk-cart-close {
	background: none;
	border: none;
	color: var(--muted);
	font-size: 1.75rem;
	cursor: pointer;
	line-height: 1;
	padding: 0 4px;
	transition: color .2s;
}
.gk-cart-close:hover { color: var(--text); }
.gk-cart-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 1rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.gk-cart-item {
	display: flex;
	gap: .875rem;
	align-items: flex-start;
}
.gk-cart-item img {
	width: 68px;
	height: 68px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
	border: 1px solid var(--line);
}
.gk-cart-item-info {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	flex: 1;
	min-width: 0;
}
.gk-cart-item-name {
	font-family: 'Rajdhani', sans-serif;
	font-weight: 600;
	font-size: 1rem;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.gk-cart-item-qty { font-size: .85rem; color: var(--muted); }
.gk-cart-empty { color: var(--muted); text-align: center; margin: auto; font-size: .95rem; }
.gk-cart-drawer-foot {
	padding: 1.25rem 1.5rem;
	border-top: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: .75rem;
	flex-shrink: 0;
}
.gk-cart-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1rem;
}
.gk-cart-total strong {
	font-family: 'Rajdhani', sans-serif;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--accent);
}
.btn-block { display: block; text-align: center; width: 100%; }

/* ── Comparison Tray ──────────────────────────────────────────────────────── */
.gk-compare-tray {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--panel);
	border-top: 1px solid var(--accent);
	padding: 1rem 2rem;
	display: none;
	align-items: center;
	gap: 1.5rem;
	z-index: 9999;
	box-shadow: 0 -8px 32px rgba(0,0,0,.5);
}
.gk-compare-tray .compare-items {
	display: flex;
	gap: .75rem;
	align-items: center;
}
.compare-thumb {
	position: relative;
	width: 60px;
	height: 60px;
	flex-shrink: 0;
}
.compare-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--line);
}
.compare-thumb button {
	position: absolute;
	top: -6px;
	right: -6px;
	background: var(--danger);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	cursor: pointer;
	font-size: 12px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.compare-actions {
	display: flex;
	gap: .75rem;
	align-items: center;
	margin-left: auto;
}

/* ── Popup Overlay ────────────────────────────────────────────────────────── */
.geekd-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .75);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
}
.geekd-popup-overlay.active {
	display: flex;
}
.geekd-popup-modal {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 2rem;
	max-width: 520px;
	width: 90%;
	position: relative;
	box-shadow: 0 24px 80px rgba(0,0,0,.6);
	animation: popupIn .3s ease;
}
@keyframes popupIn {
	from { opacity: 0; transform: scale(.95) translateY(20px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}
.popup-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	color: var(--muted);
	cursor: pointer;
	font-size: 1.5rem;
	line-height: 1;
	padding: 4px;
	transition: color .2s;
}
.popup-close:hover { color: var(--text); }

/* ── PDP Specific ─────────────────────────────────────────────────────────── */
.pdp-hero {
	position: relative;
	min-height: 70vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.pdp-stage {
	position: absolute;
	inset: 0;
}
.pdp-stage img {
	width: 100%;
	height: 70vh;
	object-fit: cover;
	display: block;
}
.pdp-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 20%, var(--ink) 100%);
	pointer-events: none;
}
.pdp-info {
	position: relative;
	z-index: 2;
	padding: 2rem 0 4rem;
	margin-top: 50vh;
}
.pdp-rating {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: .5rem 0;
	color: var(--accent);
	font-size: .9rem;
}
.pdp-rating .rating-num { color: var(--text); font-weight: 600; }
.pdp-rating .rating-count { color: var(--muted); }
.price-row {
	display: flex;
	align-items: baseline;
	gap: .75rem;
	margin: 1rem 0;
}
.price-row .now {
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 2rem;
	color: var(--text);
}
.price-row .was {
	font-size: 1.1rem;
	color: var(--muted);
	text-decoration: line-through;
}
.price-row .off {
	background: var(--danger);
	color: #fff;
	font-family: 'Orbitron', monospace;
	font-size: .7rem;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
}
.pdp-short-desc {
	color: var(--muted);
	line-height: 1.7;
	margin-bottom: 1rem;
}
.swatch-block {
	margin: 1rem 0;
}
.swatch-label {
	font-size: .85rem;
	color: var(--muted);
	margin-bottom: .5rem;
}
.swatch-label span { color: var(--text); font-weight: 600; }
.swatch-row {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}
.swatch {
	padding: .4rem 1rem;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--card);
	color: var(--text);
	cursor: pointer;
	font-size: .85rem;
	transition: border-color .2s, background .2s;
}
.swatch:hover { border-color: var(--accent); }
.swatch.active {
	border-color: var(--accent);
	background: rgba(180,255,0,.08);
	color: var(--accent);
}
.pdp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 1.5rem 0;
	align-items: center;
}
.pdp-share {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-top: 1rem;
}
.pdp-share a {
	color: var(--muted);
	font-size: .85rem;
	text-decoration: none;
	padding: 4px 8px;
	border: 1px solid var(--line);
	border-radius: 4px;
	transition: border-color .2s, color .2s;
}
.pdp-share a:hover { border-color: var(--accent); color: var(--accent); }

/* ── WhatsApp button ─────────────────────────────────────────────────────── */
.btn-wa {
	background: #25D366;
	color: #fff !important;
	border-radius: 8px;
	padding: .75rem 1.5rem;
	text-decoration: none;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 1rem;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	border: none;
	cursor: pointer;
	transition: background .2s;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.btn-wa:hover { background: #1ebe5c; }

/* ── Key Features Strip ──────────────────────────────────────────────────── */
.key-features-strip {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	padding: 2rem;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.key-features-strip::-webkit-scrollbar { display: none; }
.kf-tile {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 1rem 1.5rem;
	white-space: nowrap;
	text-align: center;
	min-width: 140px;
	transition: border-color .2s;
	flex-shrink: 0;
}
.kf-tile:hover { border-color: var(--accent); }
.kf-tile .kf-icon {
	font-size: 1.5rem;
	margin-bottom: .25rem;
}
.kf-tile span {
	font-size: .85rem;
	color: var(--muted);
}

/* ── Specs + Downloads split ─────────────────────────────────────────────── */
.specs-downloads-split {
	display: flex;
	gap: 3rem;
	padding: 4rem 0;
	align-items: flex-start;
}
.specs-col { flex: 0 0 68%; }
.downloads-col { flex: 1; min-width: 0; }
.dl-row {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .6rem 0;
	color: var(--muted);
	text-decoration: none;
	font-size: .9rem;
	border-bottom: 1px solid var(--line);
	transition: color .2s;
}
.dl-row:hover { color: var(--accent); }

/* ── Spec accordion ──────────────────────────────────────────────────────── */
.spec-accordion { }
.acc-panel { border-bottom: 1px solid var(--line); }
.acc-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	cursor: pointer;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--text);
	user-select: none;
}
.acc-head::after {
	content: '+';
	color: var(--accent);
	font-size: 1.25rem;
	flex-shrink: 0;
}
.acc-head.open::after { content: '−'; }
.acc-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height .35s ease;
}
.spec-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: .6rem 0;
	border-bottom: 1px solid rgba(255,255,255,.04);
	font-size: .9rem;
}
.spec-key { color: var(--muted); flex: 0 0 45%; }
.spec-val { color: var(--text); font-weight: 500; text-align: right; }

/* ── Linked products section in blog ─────────────────────────────────────── */
.linked-products {
	margin: 3rem 0;
	padding: 2rem;
	background: var(--panel);
	border-radius: 14px;
	border: 1px solid var(--line);
}
.linked-products h3 {
	margin-top: 0;
	font-family: 'Rajdhani', sans-serif;
	font-size: 1.4rem;
}

/* ── ToC ─────────────────────────────────────────────────────────────────── */
.toc-nav {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	margin-top: .5rem;
}
.toc-nav a {
	color: var(--muted);
	text-decoration: none;
	font-size: .85rem;
	padding: .25rem 0;
	border-left: 2px solid transparent;
	padding-left: .5rem;
	transition: color .2s, border-color .2s;
}
.toc-nav a:hover { color: var(--accent); border-left-color: var(--accent); }
.toc-nav a.toc-h3 { padding-left: 1.25rem; font-size: .8rem; }

/* ── Search overlay ──────────────────────────────────────────────────────── */
.gk-search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(13,13,13,.95);
	z-index: 99990;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 15vh;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s;
	backdrop-filter: blur(6px);
}
.gk-search-overlay.open {
	opacity: 1;
	pointer-events: all;
}
.gk-search-inner {
	width: 90%;
	max-width: 640px;
	position: relative;
}
.gk-search-form {
	display: flex;
	border: 2px solid var(--accent);
	border-radius: 10px;
	overflow: hidden;
}
.gk-search-input {
	flex: 1;
	background: transparent;
	border: none;
	padding: 1rem 1.25rem;
	font-size: 1.1rem;
	color: var(--text);
	font-family: 'Inter', sans-serif;
}
.gk-search-input::placeholder { color: var(--muted); }
.gk-search-input:focus { outline: none; }
.gk-search-form button[type="submit"] {
	background: var(--accent);
	border: none;
	padding: 0 1.25rem;
	cursor: pointer;
	color: var(--ink);
}
.gk-search-close {
	position: absolute;
	top: -3rem;
	right: 0;
	background: none;
	border: none;
	color: var(--muted);
	font-size: 1.5rem;
	cursor: pointer;
	transition: color .2s;
}
.gk-search-close:hover { color: var(--text); }

/* ── Prod grid ───────────────────────────────────────────────────────────── */
.prod-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
}

/* ── Tags ────────────────────────────────────────────────────────────────── */
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}
.tag-chip {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: .25rem .75rem;
	font-size: .8rem;
	color: var(--muted);
	text-decoration: none;
	transition: border-color .2s, color .2s;
}
.tag-chip:hover { border-color: var(--accent); color: var(--accent); }

/* ── Currency dropdown ───────────────────────────────────────────────────── */
.gk-curr { position: relative; }
.gk-curr-btn {
	background: none;
	border: 1px solid var(--line);
	border-radius: 6px;
	color: var(--muted);
	padding: .4rem .75rem;
	cursor: pointer;
	font-size: .85rem;
	display: flex;
	align-items: center;
	gap: .35rem;
	transition: border-color .2s;
}
.gk-curr-btn:hover { border-color: var(--accent); color: var(--text); }
.gk-curr-menu {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 8px;
	list-style: none;
	margin: 0;
	padding: .25rem 0;
	min-width: 160px;
	z-index: 9999;
	display: none;
	box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.gk-curr-menu.open { display: block; }
.gk-curr-menu li a {
	display: block;
	padding: .5rem 1rem;
	color: var(--muted);
	text-decoration: none;
	font-size: .85rem;
	transition: color .2s, background .2s;
}
.gk-curr-menu li a:hover,
.gk-curr-menu li[aria-selected="true"] a {
	color: var(--accent);
	background: rgba(180,255,0,.06);
}

/* ── Category card SVG icon fallback ────────────────────────────────────── */
.cat-visual .cv {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	opacity: .85;
	filter: drop-shadow(0 0 18px rgba(180,255,0,.35));
}
.cat-visual .cv svg { max-width: 100%; max-height: 100%; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.specs-downloads-split { flex-direction: column; }
	.specs-col, .downloads-col { flex: 1 1 100%; }
	.pdp-info { margin-top: 40vh; }
	.pdp-stage img { height: 50vh; }
	.gk-compare-tray { flex-wrap: wrap; padding: .75rem 1rem; }
	.compare-actions { margin-left: 0; width: 100%; justify-content: center; }
}
