/*
Theme Name: Gamers Heaven
Description: WhatsApp-order console store. Light and airy: soft grey page, white rounded cards, centred hero, black buttons, one blue accent.
Version: 6.0
Text Domain: console-deals
*/
:root {
	--page: #f5f5f7;
	--card: #ffffff;
	--ink: #111827;
	--text: #1f2937;
	--muted: #6b7280;
	--line: #e5e7eb;
	--blue: #1e4fd8;
	--blue-soft: #e8eefc;
	--green: #15803d;
	--red: #b91c1c;
	--wa: #1faa59;
	--r: 20px;
	--r-s: 12px;
	--shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
	--shadow-h: 0 2px 4px rgba(17, 24, 39, .05), 0 18px 40px rgba(17, 24, 39, .10);
	--font: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.i { width: 18px; height: 18px; flex: none; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* utility + header */
.utility { background: var(--ink); color: #d1d5db; font-size: 13px; }
.utility-in { display: flex; justify-content: center; gap: 28px; padding: 8px 0; }
.utility-in > * + * { position: relative; }
.utility a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.site-header .hdr { display: flex; align-items: center; gap: 28px; height: 70px; width: min(1280px, 100% - 48px); margin-inline: auto; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 800 19px/1 var(--font); letter-spacing: -.02em; text-decoration: none !important; white-space: nowrap; }
.logo img { width: 32px; height: 32px; }
.hdr-search { flex: 1; display: flex; align-items: center; max-width: 560px; margin-left: auto; background: var(--page); border-radius: 999px; transition: box-shadow .15s, background .15s; }
.hdr-search:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--blue); }
.hdr-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 11px 20px; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.hdr-search input::placeholder { color: #9ca3af; }
.hdr-search button { border: 0; background: none; color: var(--muted); padding: 0 18px; cursor: pointer; }
.hdr-links { display: flex; align-items: center; gap: 20px; }
.hdr-links a { color: var(--text); font-weight: 500; font-size: 15px; }
.order-btn { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: var(--ink); font: 600 14px var(--font); color: #fff; cursor: pointer; padding: 10px 18px; }
.order-btn:hover { background: #374151; }
.list-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fff; color: var(--ink); font: 700 12px/20px var(--font); text-align: center; }
.list-count[data-zero] { display: none; }
.catbar-in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 0 12px; }
.catbar a { color: var(--text); font: 500 14px/1 var(--font); padding: 9px 16px; border-radius: 999px; white-space: nowrap; text-decoration: none; transition: background .15s; }
.catbar a:hover { background: var(--page); text-decoration: none; }
.catbar-end { margin-left: auto; color: var(--muted) !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border: 1px solid transparent; border-radius: 999px; font: 600 15px var(--font); cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, transform .15s; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #374151; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #188f4a; }
.btn-outline { background: #fff; color: var(--ink); border-color: #d1d5db; }
.btn-outline:hover { border-color: var(--ink); }
.btn-link { padding: 0; border: 0; border-radius: 0; color: var(--blue); font-size: 15px; }
.btn-link::after { content: " \203A"; }
.btn-link:hover { text-decoration: underline !important; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* hero: centred headline over a big product photo */
.hero-band { padding: 24px 0 0; }
.promo { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; color: var(--text); text-decoration: none !important; }
.promo img { width: 100%; aspect-ratio: 7 / 5; object-fit: contain; }
.promo-main { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 64px 32px 24px; overflow: hidden; }
.promo-kicker { display: inline-block; font: 600 13px/1 var(--font); color: var(--blue); background: var(--blue-soft); padding: 7px 12px; border-radius: 999px; margin-bottom: 18px; }
.promo-title { font-size: 19px; margin-bottom: 8px; }
.promo-main .promo-title { font-size: clamp(38px, 5.6vw, 72px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 14px; max-width: 900px; }
.promo-sub { margin: 0 auto 20px; font-size: 18px; color: var(--muted); max-width: 560px; }
.promo-price { margin: 0 0 22px; display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 12px; }
.promo-price strong { font-size: 18px; font-weight: 700; color: var(--ink); }
.promo-main .promo-price strong { font-size: 26px; }
.promo-price span { font-size: 14px; font-weight: 600; color: var(--green); }
.promo-main .promo-img { width: min(680px, 100%); margin-top: 4px; }
.promo-main .promo-img img { max-height: 400px; }
.hero-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.hero-tiles .promo { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px; transition: box-shadow .2s, transform .2s; }
.hero-tiles .promo:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
.hero-tiles .promo-kicker { font-size: 12px; padding: 5px 10px; margin-bottom: 12px; }
.hero-tiles .promo-title { font-size: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* trust strip */
.trust { margin-top: 20px; }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-in > div { display: flex; gap: 14px; align-items: center; padding: 22px; background: var(--card); border-radius: var(--r); }
.trust svg { width: 44px; height: 44px; flex: none; padding: 10px; border-radius: 50%; background: var(--blue-soft); fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust p { margin: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.trust strong { color: var(--ink); font-size: 15px; font-weight: 600; }

/* sections */
.section { margin-top: 88px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; margin: 0; }
.section-head a { font-weight: 600; }
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 18px 24px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-decoration: none !important; transition: box-shadow .2s, transform .2s; }
.cat:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); }
.cat img { aspect-ratio: 1; object-fit: contain; width: 100%; padding: 8%; margin-bottom: 10px; }
.cat-name { font-weight: 700; font-size: 17px; }
.cat-count { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* product grid + cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shop .grid { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); }
.card[hidden] { display: none; }
.card-img { position: relative; display: block; }
.card-img img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 12%; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.flag { position: absolute; top: 16px; left: 16px; background: var(--blue-soft); color: var(--blue); font: 600 12px/1 var(--font); padding: 6px 10px; border-radius: 999px; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 0 22px 22px; }
.card-brand { font-size: 13px; color: var(--muted); font-weight: 500; }
.card-title { font: 600 16px/1.4 var(--font); letter-spacing: -.01em; margin: 4px 0 12px; }
.card-title a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a:hover { color: var(--blue); }
.card-price { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.compare { font-size: 13px; color: var(--muted); }
.save { font-size: 13px; font-weight: 600; color: var(--green); }
.card-price .compare { flex-basis: 100%; order: 3; }
.card-meta { font-size: 13px; color: var(--muted); margin: 6px 0 16px; }
.ins { color: var(--green); font-weight: 600; }
.oos { color: var(--red); font-weight: 600; }
.card .btn-outline { width: 100%; padding: 11px; font-size: 14px; }
.card .btn-outline .i { width: 15px; height: 15px; }

/* shop layout */
.shop { scroll-margin-top: 140px; }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.filters { position: sticky; top: 150px; align-self: start; background: var(--card); border-radius: var(--r); padding: 8px 22px; box-shadow: var(--shadow); }
.f-group { padding: 18px 0; }
.f-group + .f-group { border-top: 1px solid var(--line); }
.f-group h3 { font-size: 15px; margin-bottom: 10px; }
.f-group label { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 15px; cursor: pointer; }
.f-group label span { margin-left: auto; color: var(--muted); font-size: 13px; }
.f-group input { accent-color: var(--ink); width: 17px; height: 17px; margin: 0; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.results-bar p { margin: 0; color: var(--muted); }
.results-bar strong { color: var(--ink); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
select { border: 0; border-radius: 999px; background: var(--card); color: var(--ink); padding: 10px 16px; font: 500 14px var(--font); box-shadow: var(--shadow); }
.empty { padding: 56px 0; text-align: center; }

/* help band */
.help-band { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; margin-block: 96px; padding: 48px; background: var(--ink); color: #fff; border-radius: 28px; }
.help-band h2 { color: #fff; font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 8px; }
.help-band p { margin: 0; color: #d1d5db; max-width: 540px; }

/* product page */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.gallery { display: flex; flex-direction: column-reverse; gap: 14px; min-width: 0; }
.g-thumbs { display: flex; gap: 10px; overflow-x: auto; }
.g-thumbs button { width: 76px; height: 76px; padding: 8px; border: 2px solid transparent; border-radius: var(--r-s); background: var(--card); cursor: pointer; flex: none; }
.g-thumbs button[aria-current="true"] { border-color: var(--ink); }
.g-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.g-main { position: relative; aspect-ratio: 1 / .85; background: var(--card); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.g-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; opacity: 0; transition: opacity .25s; }
.g-main img.on { opacity: 1; }
.buy { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 36px; position: sticky; top: 150px; }
.buy-brand { margin: 0 0 6px; font-weight: 600; color: var(--blue); font-size: 14px; }
.buy h1 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.buy-sku { font-size: 13px; color: var(--muted); margin: 0 0 24px; }
.buy-box { display: grid; gap: 16px; }
.buy-price .price { font-size: 34px; font-weight: 800; }
.buy-price .compare { margin: 6px 0 0; font-size: 14px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.buy-price .save { font-size: 14px; }
.stock { margin: 0; font-weight: 600; }
.stock.ins { color: var(--green); }
.buy-facts { list-style: none; margin: 0; padding: 16px 18px; background: var(--page); border-radius: var(--r-s); display: grid; gap: 6px; font-size: 14px; }
.buy-box .btn-outline { width: 100%; padding: 15px; }
.pay { font-size: 13px; margin: 0; color: var(--muted); }
.detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; margin-top: 32px; }
.detail-main { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 40px; }
.detail h2 { font-size: 24px; font-weight: 800; }
.detail-main .prose { margin-bottom: 36px; font-size: 16px; }
.detail-side { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 32px; align-self: start; font-size: 15px; color: var(--muted); }
.detail-side h3 { font-size: 18px; }
.detail-side a { font-weight: 600; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { color: var(--muted); width: 40%; }
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin-top: 1.6em; }
.page { padding: 48px 0 96px; }
.page > * { max-width: 820px; }
.page h1 { font-size: clamp(34px, 4vw, 52px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 24px; }
.page .prose { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 40px 44px; font-size: 17px; }
.page .prose h2:first-child { margin-top: 0; }
.buybar { display: none; }

/* order list panel */
.list-panel { position: fixed; inset: 0; z-index: 80; }
.list-panel[hidden] { display: none; }
.list-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .35); backdrop-filter: blur(2px); }
.list-sheet { position: absolute; right: 12px; top: 12px; bottom: 12px; width: min(420px, 100% - 24px); background: #fff; border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .18); display: flex; flex-direction: column; overflow: hidden; }
.list-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.list-head h2 { margin: 0; font-size: 20px; }
.x { background: var(--page); border: 0; border-radius: 50%; width: 36px; height: 36px; color: var(--ink); font-size: 22px; cursor: pointer; line-height: 1; }
.list-items { flex: 1; overflow-y: auto; padding: 4px 24px; }
.li { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.li-name { color: var(--ink); font-weight: 600; font-size: 15px; }
.li-price { font-weight: 700; text-align: right; }
.qty { display: flex; align-items: center; gap: 12px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--page); cursor: pointer; font-weight: 700; }
.li-rm { background: none; border: 0; color: var(--muted); cursor: pointer; text-align: right; font-size: 13px; }
.list-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.list-foot input { border: 0; background: var(--page); border-radius: var(--r-s); padding: 13px 14px; font: inherit; }
.list-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 500; font-size: 14px; z-index: 90; transition: transform .3s; }
.toast.on { transform: translate(-50%, 0); }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(31, 170, 89, .35); }
.wa-float .i { width: 26px; height: 26px; }

/* footer */
.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: 64px 0 28px; margin-top: 24px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.foot h4 { font-size: 15px; margin-bottom: 14px; }
.foot a:not(.logo) { display: block; color: var(--muted); padding: 4px 0; font-size: 15px; }
.foot a:hover { color: var(--ink); text-decoration: none; }
.foot p, .foot > div > span { font-size: 15px; }
.foot .logo { margin-bottom: 16px; }
.legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 1100px) {
	.grid, .shop .grid { grid-template-columns: repeat(3, 1fr); }
	.cats { grid-template-columns: repeat(3, 1fr); }
	.trust-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.hide-s { display: none !important; }
	.site-header .hdr { flex-wrap: wrap; height: auto; padding-block: 12px; gap: 12px 16px; }
	.hdr-links { margin-left: auto; }
	.hdr-search { order: 3; flex-basis: 100%; max-width: none; }
	.promo-main { padding: 40px 20px 16px; border-radius: 24px; }
	.hero-tiles { grid-template-columns: 1fr; gap: 14px; }
	.shop-layout { grid-template-columns: 1fr; gap: 16px; }
	.filters { position: static; display: flex; gap: 22px; overflow-x: auto; padding: 4px 20px; }
	.f-group { flex: none; }
	.f-group + .f-group { border-top: 0; border-left: 1px solid var(--line); padding-left: 22px; }
	.f-group label { white-space: nowrap; }
	.product, .detail { grid-template-columns: 1fr; gap: 20px; }
	.buy { position: static; padding: 28px; }
	.detail-main { padding: 28px; }
	.foot { grid-template-columns: 1fr 1fr; }
	.section { margin-top: 64px; }
}
@media (max-width: 600px) {
	.wrap, .site-header .hdr { width: calc(100% - 32px); }
	.utility-in { gap: 0; }
	.logo { font-size: 17px; }
	.order-btn { padding: 9px 14px; }
	.trust-in { grid-template-columns: 1fr; gap: 10px; }
	.trust-in > div { padding: 16px; }
	.cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.grid, .shop .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.card { border-radius: 16px; }
	.card-body { padding: 0 14px 14px; }
	.card-title { font-size: 14px; }
	.price { font-size: 17px; }
	.card .btn-outline span { display: none; }
	.help-band { padding: 32px 24px; border-radius: 24px; margin-block: 64px; }
	.page .prose { padding: 24px; }
	.foot { grid-template-columns: 1fr; gap: 28px; }
	.single-cd_product .wa-float { display: none; }
	.buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
	.buybar b { font-size: 20px; font-weight: 800; color: var(--ink); }
	.buybar small { display: block; color: var(--green); font-weight: 600; }
	.single-cd_product .site-footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
