/*
 Theme Name:   Cape Town Video Games
 Description:  WoodMart child theme for Cape Town Video Games (capetownvideogames.co.za)
 Author:       Spriggabyte
 Template:     woodmart
 Version:      1.1.0
 Text Domain:  woodmart
*/

/* ── Brand tokens (from the CTVG logo) ───────────────────────────── */
:root {
	--ctvg-pink: #F1487A;
	--ctvg-pink-dark: #D42E65;
	--ctvg-blue: #54AFE5;
	--ctvg-yellow: #FBBE00;
	--ctvg-green: #7ECD50;
	--ctvg-cream: #F6F4E1;
	--ctvg-cream-2: #ECE8CC;
	--ctvg-ink: #1F1A17;
	--ctvg-muted: #5E5850;
	--ctvg-radius: 18px;
	--ctvg-shadow: 0 2px 0 var(--ctvg-ink);
	--wd-primary-color: var(--ctvg-pink-dark);
	--wd-alternative-color: var(--ctvg-yellow);
}

body { color: var(--ctvg-ink); }
h1, h2, h3, h4, .title, .wd-entities-title { letter-spacing: -0.01em; }

/* ── Header ──────────────────────────────────────────────────────── */
.whb-top-bar { font-weight: 600; }
.whb-top-bar .wd-header-text { width: 100%; text-align: center; }
.whb-header-bottom, .whb-general-header { border-bottom: 3px solid var(--ctvg-ink); }
.wd-header-search .searchform input[type="text"] { border-radius: 999px; border: 2px solid var(--ctvg-ink); background: #fff; }
.whb-header .wd-tools-element .wd-tools-count { background: var(--ctvg-pink-dark); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.ctvg-btn, .ctvg-page .button {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 14px 26px; border-radius: 999px; font-weight: 700;
	border: 2px solid var(--ctvg-ink); box-shadow: 0 3px 0 var(--ctvg-ink);
	transition: transform .12s ease, box-shadow .12s ease; text-decoration: none;
}
.ctvg-btn:hover, .ctvg-page .button:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--ctvg-ink); }
.ctvg-btn--primary, .ctvg-page .button { background: var(--ctvg-pink-dark); color: #fff !important; }
.ctvg-btn--ghost { background: #fff; color: var(--ctvg-ink) !important; }
.ctvg-btn--light { background: var(--ctvg-yellow); color: var(--ctvg-ink) !important; }

/* ── Homepage ────────────────────────────────────────────────────── */
.home .wd-page-content, .home .main-page-wrapper { background: #fff; }
.home .wd-content-layout, .home .site-content { padding-top: 0; }

.ctvg-hero {
	display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
	background: var(--ctvg-cream); border: 3px solid var(--ctvg-ink); border-radius: 28px;
	padding: 48px 56px; margin: 28px 0 24px; position: relative; overflow: hidden;
}
.ctvg-hero::after {
	content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
	background: radial-gradient(circle, var(--ctvg-yellow) 0 40%, transparent 41%);
	opacity: .35; pointer-events: none;
}
.ctvg-eyebrow {
	display: inline-block; background: var(--ctvg-blue); color: var(--ctvg-ink);
	font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
	padding: 6px 12px; border-radius: 999px; border: 2px solid var(--ctvg-ink); margin-bottom: 18px;
}
.ctvg-hero h1 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; margin-bottom: 18px; }
.ctvg-hl { color: var(--ctvg-pink-dark); }
.ctvg-hero p { font-size: 18px; color: var(--ctvg-muted); max-width: 36em; margin-bottom: 26px; }
.ctvg-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ctvg-hero__art { text-align: center; position: relative; z-index: 1; }
.ctvg-hero__art img { width: min(360px, 100%); height: auto; filter: drop-shadow(6px 8px 0 rgba(31,26,23,.15)); }

.ctvg-trust {
	list-style: none; margin: 0 0 48px; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.ctvg-trust li {
	display: flex; gap: 12px; align-items: center; background: #fff;
	border: 2px solid var(--ctvg-ink); border-radius: var(--ctvg-radius); padding: 14px 16px; margin: 0;
}
.ctvg-trust__ico {
	flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	background: var(--c); border: 2px solid var(--ctvg-ink); font-size: 20px; color: var(--ctvg-ink);
}
.ctvg-trust strong { display: block; line-height: 1.2; }
.ctvg-trust small { color: var(--ctvg-muted); }

.ctvg-section { margin: 0 0 56px; }
.ctvg-section--cream { background: var(--ctvg-cream); border-radius: 28px; padding: 40px; border: 3px solid var(--ctvg-ink); }
.ctvg-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ctvg-section__head a { font-weight: 700; color: var(--ctvg-pink-dark); }
.ctvg-h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 22px; }

.ctvg-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.ctvg-cats a {
	display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
	padding: 22px 10px; border-radius: var(--ctvg-radius); background: #fff; color: var(--ctvg-ink);
	border: 2px solid var(--ctvg-ink); box-shadow: 0 4px 0 var(--c); font-weight: 800;
	transition: transform .12s ease;
}
.ctvg-cats a:hover { transform: translateY(-3px); color: var(--ctvg-ink); }
.ctvg-cats span {
	width: 64px; height: 64px; display: grid; place-items: center; font-size: 30px;
	border-radius: 50%; background: var(--c); border: 2px solid var(--ctvg-ink);
}

.ctvg-banner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	background: var(--ctvg-pink-dark); color: #fff; border: 3px solid var(--ctvg-ink);
	border-radius: 28px; padding: 36px 44px; margin-bottom: 56px;
}
.ctvg-banner h2 { color: #fff; margin: 0 0 6px; }
.ctvg-banner p { margin: 0; opacity: .95; }

/* ── Google reviews ──────────────────────────────────────────────── */
.ctvg-reviews__summary {
	display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
	font-size: 16px; margin-bottom: 22px;
}
.ctvg-reviews__summary > strong { font-size: 30px; font-family: inherit; line-height: 1; }
.ctvg-reviews__cta {
	margin-left: auto; font-weight: 700; padding: 10px 18px; border-radius: 999px;
	background: #fff; border: 2px solid var(--ctvg-ink); color: var(--ctvg-ink);
}
.ctvg-stars { color: #D0CCB4; font-size: 20px; letter-spacing: 1px; }
.ctvg-stars .on { color: var(--ctvg-yellow); text-shadow: 0 0 0 var(--ctvg-ink); }
.ctvg-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ctvg-review { background: #fff; border: 2px solid var(--ctvg-ink); border-radius: var(--ctvg-radius); padding: 18px 20px; }
.ctvg-review header { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.ctvg-review header img, .ctvg-review__initial {
	width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px;
	display: grid; place-items: center; background: var(--ctvg-blue); font-weight: 800;
}
.ctvg-review header small { display: block; color: var(--ctvg-muted); }
.ctvg-review p { margin: 8px 0 0; color: var(--ctvg-ink); }

/* ── Content pages ───────────────────────────────────────────────── */
.ctvg-page { max-width: 900px; }
.ctvg-lead { font-size: 19px; color: var(--ctvg-muted); }
.ctvg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 32px; }
.ctvg-card { background: var(--ctvg-cream); border: 2px solid var(--ctvg-ink); border-radius: var(--ctvg-radius); padding: 20px; }
.ctvg-card h3 { font-size: 18px; margin-bottom: 8px; }
.ctvg-card p { margin: 0; }
.ctvg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 32px; text-align: center; }
.ctvg-stats div { border: 2px solid var(--ctvg-ink); border-radius: var(--ctvg-radius); padding: 18px; background: var(--ctvg-cream); }
.ctvg-stats strong { display: block; font-size: 32px; color: var(--ctvg-pink-dark); }
.ctvg-ticks { list-style: none; padding: 0; }
.ctvg-ticks li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.ctvg-ticks li::before { content: "✔"; position: absolute; left: 0; color: var(--ctvg-green); font-weight: 900; font-size: 18px; }
.ctvg-faq details { border: 2px solid var(--ctvg-ink); border-radius: 14px; padding: 14px 18px; margin-bottom: 12px; background: #fff; }
.ctvg-faq summary { font-weight: 800; cursor: pointer; }
.ctvg-faq details[open] { background: var(--ctvg-cream); }
.ctvg-faq details p { margin: 10px 0 0; }

/* ── WooCommerce polish ──────────────────────────────────────────── */
.product-grid-item .wd-product-wrapper, .wd-product .product-wrapper {
	border-radius: var(--ctvg-radius);
}
.product-grid-item .product-element-top { border-radius: 14px; overflow: hidden; background: var(--ctvg-cream); }
.price, .price .amount { color: var(--ctvg-ink); font-weight: 800; }
.product-labels .product-label.onsale { background: var(--ctvg-pink-dark); }
.product-labels .product-label.new { background: var(--ctvg-green); color: var(--ctvg-ink); }
.woocommerce-product-attributes-item--attribute_pa_condition td { font-weight: 700; }
.ctvg-condition {
	display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
	border: 2px solid var(--ctvg-ink); background: var(--ctvg-cream); margin: 4px 0 6px;
}
.ctvg-condition--new { background: var(--ctvg-green); }
.ctvg-product-trust { list-style: none; padding: 14px 16px; margin: 18px 0; border: 2px dashed var(--ctvg-ink); border-radius: 14px; background: var(--ctvg-cream); }
.ctvg-product-trust li { margin: 4px 0; font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────────────── */
.wd-copyrights, .footer-container { background: var(--ctvg-ink); color: #EDEAD8; }
.ctvg-footer-brand { display: flex; flex-direction: column; gap: 10px; }
.ctvg-footer-brand img { max-width: 220px; background: var(--ctvg-cream); border-radius: 14px; padding: 8px 12px; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.ctvg-cats { grid-template-columns: repeat(3, 1fr); }
	.ctvg-trust { grid-template-columns: repeat(2, 1fr); }
	.ctvg-reviews__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.ctvg-hero { grid-template-columns: 1fr; padding: 28px 22px; margin-top: 16px; }
	.ctvg-hero__art { order: -1; }
	.ctvg-hero__art img { width: 180px; }
	.ctvg-trust, .ctvg-reviews__grid, .ctvg-cards, .ctvg-stats { grid-template-columns: 1fr; }
	.ctvg-cats { grid-template-columns: repeat(2, 1fr); }
	.ctvg-section--cream, .ctvg-banner { padding: 24px 20px; }
	.ctvg-reviews__cta { margin-left: 0; }
}

/* Footer block */
.ctvg-footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 32px; color: #EDEAD8; }
.ctvg-footer h4 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.ctvg-footer ul { list-style: none; padding: 0; margin: 0; }
.ctvg-footer li { margin-bottom: 8px; }
.ctvg-footer a { color: #EDEAD8; }
.ctvg-footer a:hover { color: var(--ctvg-yellow); }
.ctvg-footer p { color: #CFCBB8; }
.ctvg-footer-google { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--ctvg-yellow) !important; }
.wd-footer, .footer-container .main-footer { background: var(--ctvg-ink); }
@media (max-width: 768px) { .ctvg-footer { grid-template-columns: 1fr; gap: 24px; } }
