/*
 * gadgetsphere brand layer (site-core).
 * Source of truth: playbooks/design-system.md and design/design-reference.html.
 * Colours are the exact brand values. Lime is an accent, never text on a light background.
 * Never put the brand name inside an element that uses text-transform: uppercase.
 */

/* ---------- 1. Tokens ---------- */
:root {
	--gs-violet: #5352ED;
	--gs-violet-700: #3F3ED6;
	--gs-violet-50: #EEEEFD;
	--gs-lime: #C4F013;
	--gs-ink: #121212;
	--gs-offwhite: #FAF9F6;
	--gs-grey: #9CA3AF;
	--gs-ink-600: #4B5563;
	--gs-line: #E7E6F2;
	--gs-wa: #25D366;
	--gs-r-card: 16px;
	--gs-r-btn: 12px;
	--gs-r-img: 14px;
	--gs-shadow: 0 1px 2px rgba(18, 18, 18, .06), 0 8px 24px rgba(83, 82, 237, .08);
	--gs-head: 'Manrope', Arial, Helvetica, sans-serif;
	--gs-body: 'Inter', Arial, Helvetica, sans-serif;
	/* Orbit lines: thin circles with ONE lime dot. White for violet bands, violet for light backgrounds. */
	--gs-orbit-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.2' opacity='.22'%3E%3Ccircle cx='200' cy='200' r='70'/%3E%3Ccircle cx='200' cy='200' r='130'/%3E%3Ccircle cx='200' cy='200' r='190'/%3E%3Cpath d='M0 200h400M200 0v400' stroke-width='.8'/%3E%3C/g%3E%3Ccircle cx='292' cy='108' r='11' fill='%23C4F013'/%3E%3C/svg%3E");
	--gs-orbit-violet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%235352ED' stroke-width='1.2' opacity='.22'%3E%3Ccircle cx='200' cy='200' r='70'/%3E%3Ccircle cx='200' cy='200' r='130'/%3E%3Ccircle cx='200' cy='200' r='190'/%3E%3Cpath d='M0 200h400M200 0v400' stroke-width='.8'/%3E%3C/g%3E%3Ccircle cx='292' cy='108' r='11' fill='%23C4F013'/%3E%3C/svg%3E");
}

/* ---------- 2. Type details Kadence cannot set ---------- */
h1 { letter-spacing: -.02em; }
h2 { letter-spacing: -.01em; }
.gs-eyebrow {
	font: 500 13px/18px var(--gs-body);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gs-violet);
}
.gs-muted { color: var(--gs-ink-600); }

/* ---------- 3. Buttons: 48px tall, Inter Medium, 12px radius ---------- */
.button,
.wp-element-button,
.wp-block-button__link,
.kb-button,
.kt-button,
input[type="submit"],
button[type="submit"] {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: var(--gs-r-btn);
	font-family: var(--gs-body);
	font-weight: 500;
}
/* Reusable button styles for blocks and shortcodes */
.gs-btn-secondary {
	background: #fff;
	color: var(--gs-violet);
	border: 1.5px solid var(--gs-violet);
}
.gs-btn-wa,
a.gs-whatsapp {
	background: var(--gs-lime);
	color: var(--gs-ink);
	border-radius: var(--gs-r-btn);
	min-height: 48px;
	padding: 0 22px;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	font-weight: 500;
}

/* ---------- 4. Brand motifs (use sparingly) ---------- */
/* 4a. Orbit lines. Add to a section; keep it behind text; one per screen. */
.gs-orbits { position: relative; overflow: hidden; isolation: isolate; }
.gs-orbits::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: 420px;
	height: 420px;
	left: -140px;
	top: -160px;
	background: var(--gs-orbit-white) no-repeat center / contain;
	pointer-events: none;
}
.gs-orbits--violet::before { background-image: var(--gs-orbit-violet); }
.gs-orbits--right::before { left: auto; right: -140px; }

/* 4b. Cropped big planet "p" on a violet panel (0.9.3, Nalu 27 Oct 2026: the "p" mark, never the round
   planet on its own). Never redraw it; it is the symbol file. Only the ring tip runs off the right edge
   and the foot of the stem off the bottom, so it always reads as a "p". */
.gs-planet-panel {
	position: relative;
	overflow: hidden;
	background: var(--gs-violet);
	color: #fff;
	border-radius: 28px;
	padding: 64px 56px;
}
.gs-planet-panel::after {
	content: "";
	position: absolute;
	width: 240px;
	height: 240px;
	right: -24px;
	bottom: -40px;
	background: var(--gs-planet-white) no-repeat center / contain;
	pointer-events: none;
}
.gs-planet-panel > * { position: relative; z-index: 1; }
/* Tablets: a smaller "p" in its own space under the text, never behind white text or buttons. */
@media (max-width: 1024px) {
	.gs-planet-panel { padding-bottom: 150px; }
	.gs-planet-panel::after { width: 180px; height: 180px; right: -20px; bottom: -32px; }
}

/* 4c. Violet icon circle: put a white line icon (svg) inside. */
.gs-icon-circle {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--gs-violet);
	color: #fff;
	display: inline-grid;
	place-items: center;
	flex: none;
}
.gs-icon-circle svg { width: 24px; height: 24px; }

/* 4d. Tracked caps line, e.g. "COMPUTER VILLAGE · IKEJA · NATIONWIDE DELIVERY". */
.gs-tracked {
	font: 500 14px/20px var(--gs-body);
	letter-spacing: .3em;
	text-transform: uppercase;
}
.gs-tagline { color: var(--gs-grey); }

/* 4e. Lime DELIVERED badge: real delivery-proof photos only. Place inside a position:relative photo box. */
.gs-delivered {
	position: absolute;
	left: 12px;
	top: 12px;
	background: var(--gs-lime);
	color: var(--gs-ink);
	font: 500 12px/18px var(--gs-body);
	letter-spacing: .14em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 4px 12px;
}

/* 4f. Price: Manrope ExtraBold, violet. */
.gs-price {
	font-family: var(--gs-head);
	font-weight: 800;
	color: var(--gs-violet);
}
.gs-updated { font-size: 14px; color: var(--gs-ink-600); }

/* 4g. Small helpers */
.gs-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	padding: 4px 12px;
	font: 500 13px/20px var(--gs-body);
	background: var(--gs-violet-50);
	color: var(--gs-violet-700);
}
.gs-chip--lime { background: var(--gs-lime); color: var(--gs-ink); }
.gs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gs-lime); display: inline-block; }

/* ---------- 5. Utility bar (ink) ---------- */
.site-top-header-wrap .site-header-row-container-inner { background: var(--gs-ink); }
.site-top-header-wrap .site-header-row { display: block; }
.site-top-header-wrap .site-header-item,
.site-top-header-wrap .header-html,
.site-top-header-wrap .header-html-inner,
.site-top-header-wrap .mobile-html,
.site-top-header-wrap .mobile-html-inner { flex: 1 1 100%; width: 100%; }
/* Side padding 20px like the design reference (Kadence default is 24px). */
#masthead .site-container,
#colophon .site-container { padding-left: 20px; padding-right: 20px; }
.gs-utility {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	width: 100%;
	font: 400 13px/20px var(--gs-body);
	color: #fff;
}
.gs-utility a { color: #fff; text-decoration: none; font-weight: 500; }
.gs-utility .gs-hours-today { color: var(--gs-lime); } /* lime on ink = 14:1, allowed */
.gs-utility .gs-missing { color: #fca5a5 !important; }

/* ---------- 6. Main header (white, sticky) ---------- */
.site-main-header-wrap .site-header-row-container-inner {
	background: #fff;
	border-bottom: 1px solid var(--gs-line);
}
/* Clear space: the logo keeps at least one planet diameter (about 16px) free on every side. */
.site-branding { padding: 14px 16px 14px 0; }
.site-branding a.brand img { display: block; height: auto; }
.header-navigation .header-menu-container > ul > li.menu-item > a {
	font: 500 15px var(--gs-body);
	color: var(--gs-ink);
}
.header-navigation .header-menu-container > ul > li.menu-item > a:hover,
.header-navigation .header-menu-container > ul > li.current-menu-item > a { color: var(--gs-violet); }

/* Search and cart as 44px bordered squares, like the design reference. */
.search-toggle-open.search-toggle-style-default,
.menu-toggle-open.menu-toggle-style-default,
#masthead .header-cart-button {
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--gs-line);
	border-radius: 12px;
	background: #fff;
	color: var(--gs-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
#masthead .header-cart-button .header-cart-total {
	position: absolute;
	top: -4px;
	right: -4px;
	margin: 0;
	padding: 0 5px;
	background: var(--gs-violet);
	color: #fff;
	font: 500 11px/18px var(--gs-body);
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	text-align: center;
}
.site-header-section > .site-header-item + .site-header-item { margin-left: 8px; }

/* ---------- 7. Footer (ink) ---------- */
#colophon,
#colophon .site-footer-row-container-inner { background: var(--gs-ink); color: #D1D5DB; }
#colophon { margin-top: 96px; }
#colophon .site-footer-section,
#colophon .footer-widget-area,
#colophon .footer-html { text-align: left; justify-content: flex-start; }
#colophon .site-middle-footer-inner-wrap { padding: 64px 0 24px; }
.gs-footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; font: 400 15px/24px var(--gs-body); }
.gs-footer-cols a { color: #D1D5DB; text-decoration: none; display: block; padding: 4px 0; }
.gs-footer-cols a:hover { color: #fff; }
.gs-footer-cols .gs-phone { display: inline; padding: 0; }
.gs-footer-cols address { font-style: normal; color: #D1D5DB; }
.gs-flogo { width: 170px; height: auto; margin-bottom: 14px; display: block; }
.gs-fpromise { font: 600 17px/24px var(--gs-head); color: #fff; margin: 0 0 16px; max-width: 16em; }
.gs-fphones { margin-top: 12px; }
.gs-fhours { margin-top: 12px; font-size: 14px; line-height: 22px; color: var(--gs-grey); }
.gs-footer-col h4 {
	font: 500 13px var(--gs-body);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 14px;
}
/* A link whose page does not exist yet: shown dim, not clickable. */
.gs-pending { display: block; padding: 4px 0; color: #6B7280; cursor: default; }
#colophon .site-bottom-footer-inner-wrap {
	border-top: 1px solid #2A2A2A;
	padding: 20px 0 32px;
}
#colophon .footer-html, #colophon .gs-legal { font: 400 13px/20px var(--gs-body); color: var(--gs-grey); }

/* ---------- 8. Phones (design reference breakpoint: 768px) ---------- */
@media (max-width: 768px) {
	.gs-utility .gs-long { display: none; }
	.site-branding { padding: 10px 12px 10px 0; }
	.gs-tracked { font-size: 12px; }
	.gs-planet-panel { padding: 40px 24px 120px; border-radius: 22px; }
	.gs-planet-panel::after { width: 150px; height: 150px; right: -20px; bottom: -30px; }
	.gs-footer-cols { grid-template-columns: 1fr 1fr; }
	.gs-footer-cols > .gs-footer-brand { grid-column: 1 / -1; }
	#colophon { margin-top: 64px; }
}

/* 0.9.2 (P30, QA D2/E2-5): bigger tap targets (44px) and bold product-card names. */
.gs-footer-cols a { padding: 10px 0; }
.gs-footer-cols .gs-phone { display: inline-block; padding: 10px 0; }
.gs-utility a.gs-call { display: inline-flex; align-items: center; justify-content: flex-end; min-height: 44px; min-width: 44px; }
body .woocommerce ul.products li.product .woocommerce-loop-product__title, body ul.products li.product .woocommerce-loop-product__title { font-family: var(--gs-head); font-weight: 700; }
.gs-strip-links a { display: inline-block; padding: 12px 0; }

/* 0.9.4: footer social icons, white in violet circles (44px tap targets). */
.gs-fsocial { display: flex; gap: 12px; margin-top: 16px; }
.gs-footer-cols .gs-fsocial a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--gs-violet); color: #fff; }
.gs-footer-cols .gs-fsocial a:hover, .gs-footer-cols .gs-fsocial a:focus-visible { background: #fff; color: var(--gs-violet); }

/* 0.9.6 (launch QA E2-6, 29 Oct 2026): Home and "related products" cards lack .woo-archive-loop,
   so give them the same Manrope Bold name and violet ExtraBold price as the collections. */
body .related ul.products li.product .woocommerce-loop-product__title { font-weight: 700; }
body .woocommerce ul.products li.product .price,
body .related ul.products li.product .price { font: 800 21px/24px var(--gs-head); color: var(--gs-violet); margin: 0; }
body .woocommerce ul.products li.product .price .gs-from,
body .related ul.products li.product .price .gs-from { font: 400 13px/1 var(--gs-body); color: var(--gs-ink-600); }
@media (max-width: 768px) {
	body .woocommerce ul.products li.product .price,
	body .related ul.products li.product .price { font-size: 18px; line-height: 22px; }
}

/* Inter 300/400/500 only (Israel, 29 Oct 2026): bold words use Inter Medium; headings keep their own weight. */
strong, b { font-weight: 500; }
h1 strong, h2 strong, h3 strong, h4 strong, h1 b, h2 b, h3 b, h4 b { font-weight: inherit; }
body .entry-taxonomies a, body .post-navigation-sub small, body a.post-more-link { font-weight: 500; }
.gs-coll-links a { display: inline-flex; align-items: center; min-height: 44px; }
.woocommerce-ordering select { min-height: 44px; }
