/*
Theme Name: Tabadaa
Theme URI: https://tabadaa.com
Description: Storefront theme for Tabadaa, a general store starting with electronics. Child theme of Twenty Twenty-Five, built for WooCommerce.
Author: Tabadaa
Template: twentytwentyfive
Version: 1.1.1
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: tabadaa
*/

:root {
	--tb-radius: 14px;
	--tb-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 28px rgba(15, 23, 42, .08);
	--tb-blue: var(--wp--preset--color--accent-1);
	--tb-navy: var(--wp--preset--color--accent-3);
	--tb-amber: var(--wp--preset--color--accent-2);
	--tb-slate: var(--wp--preset--color--accent-4);
	--tb-mist: var(--wp--preset--color--accent-5);
	--tb-line: var(--wp--preset--color--accent-6);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ---------- Header ---------- */

.tb-topbar p { margin: 0; }
.tb-topbar .wp-block-group { gap: 4px 28px; }
.tb-topbar { color: #C9D5EA; }

.tb-header-row { flex-wrap: wrap; row-gap: 14px; }
.tb-brand { flex: none; }
.tb-brand .wp-block-site-title a,
.tb-footer .wp-block-site-title a { text-decoration: none; }

.tb-search { flex: 1 1 320px; max-width: 620px; margin: 0; }
.tb-search .wp-block-search__inside-wrapper {
	border: 1.5px solid var(--tb-line);
	border-radius: 999px;
	padding: 4px;
	background: var(--tb-mist);
	transition: border-color .15s, background-color .15s;
}
.tb-search .wp-block-search__inside-wrapper:focus-within { border-color: var(--tb-blue); background: #fff; }
.tb-search .wp-block-search__input { border: 0; background: transparent; padding: 8px 16px; font-size: .95rem; outline: none; }
.tb-search .wp-block-search__button {
	margin: 0;
	border-radius: 999px;
	padding: 8px 16px;
	background: var(--tb-blue);
	color: #fff;
}
.tb-search .wp-block-search__button:hover { background: var(--tb-navy); }

.tb-actions { flex: none; }
.tb-actions .wc-block-mini-cart__button,
.tb-actions .wc-block-customer-account a { color: var(--wp--preset--color--contrast); }
.tb-actions .wc-block-mini-cart__badge { background: var(--tb-blue); color: #fff; border-color: #fff; }

.tb-navbar { border-bottom: 1px solid var(--tb-line); }
.tb-nav .wp-block-navigation-item__content {
	display: inline-block;
	padding: 13px 0 11px;
	border-bottom: 2px solid transparent;
	text-decoration: none;
	transition: color .15s, border-color .15s;
}
.tb-nav .wp-block-navigation-item__content:hover,
.tb-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--tb-blue);
	border-bottom-color: var(--tb-blue);
}

@media (max-width: 781px) {
	.tb-topbar .wp-block-group { justify-content: center; text-align: center; }
	.tb-topbar p + p { display: none; }
	.tb-search { order: 3; flex-basis: 100%; max-width: none; }
	.tb-nav .wp-block-navigation__container {
		flex-wrap: nowrap !important;
		overflow-x: auto;
		scrollbar-width: none;
		gap: 22px !important;
		padding-right: 16px;
	}
	.tb-nav .wp-block-navigation__container::-webkit-scrollbar { display: none; }
	.tb-nav .wp-block-navigation-item { flex: none; white-space: nowrap; }
}

/* ---------- Sections ---------- */

.tb-section-head { margin-bottom: 22px; align-items: flex-end; }
.tb-h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0; }
.tb-link-more { margin: 0; font-weight: 700; font-size: .95rem; }
.tb-link-more a { color: var(--tb-blue); text-decoration: none; }
.tb-link-more a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */

.tb-hero {
	position: relative;
	overflow: hidden;
	background-image:
		radial-gradient(900px 480px at 82% 30%, rgba(30, 107, 255, .32), transparent 65%),
		linear-gradient(180deg, #0B1630 0%, #0E1D42 100%);
}
.tb-eyebrow {
	display: inline-block;
	margin: 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .16);
	color: #9CC2FF;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.tb-hero-title {
	margin-top: 18px;
	color: #fff;
	font-size: clamp(2.2rem, 4.8vw, 3.9rem);
	letter-spacing: -0.035em;
	line-height: 1.04;
}
.tb-hero-lead { color: #B8C4DA; font-size: 1.125rem; max-width: 34em; }
.tb-hero .wp-block-buttons { margin-top: 28px; }
.tb-btn-ghost .wp-block-button__link { border: 1.5px solid rgba(255, 255, 255, .4); color: #fff; background: transparent; }
.tb-btn-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.tb-hero-img { margin: 0; }
.tb-hero-img img { width: 100%; height: auto; }

/* ---------- Trust strip ---------- */

.tb-trust-item { position: relative; padding-left: 60px; min-height: 46px; }
.tb-trust-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--tb-shadow);
}
.tb-trust-item::after {
	content: "";
	position: absolute;
	left: 12px;
	top: 12px;
	width: 22px;
	height: 22px;
	background: var(--tb-blue);
	-webkit-mask: var(--tb-ico) center / contain no-repeat;
	mask: var(--tb-ico) center / contain no-repeat;
}
.tb-trust-title { margin: 0; font-weight: 700; font-size: .98rem; line-height: 1.35; }
.tb-trust-text { margin: 2px 0 0; font-size: .875rem; color: var(--tb-slate); }
.tb-ico-truck { --tb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3z'/%3E%3Cpath d='M14 9h4l3 3.5V16h-7z'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E"); }
.tb-ico-cash { --tb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='19' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3Cpath d='M6 9.5v5M18 9.5v5'/%3E%3C/svg%3E"); }
.tb-ico-chat { --tb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1.1-4.4A8 8 0 1 1 21 12z'/%3E%3Cpath d='M8.5 12h.01M12 12h.01M15.5 12h.01'/%3E%3C/svg%3E"); }
.tb-ico-shield { --tb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }

/* ---------- Category tiles ---------- */

.tb-cat {
	position: relative;
	padding: 12px 12px 16px;
	border-radius: var(--tb-radius);
	background: var(--tb-mist);
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.tb-cat:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--tb-shadow); }
.tb-cat-img { margin: 0 0 12px; }
.tb-cat-img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.tb-cat-name { margin: 0; font-weight: 700; font-size: 1rem; line-height: 1.3; }
.tb-cat-name a { color: inherit; text-decoration: none; }
.tb-cat-name a::after { content: ""; position: absolute; inset: 0; }
.tb-cat-sub { margin: 3px 0 0; font-size: .82rem; color: var(--tb-slate); }

/* ---------- Product cards (home, shop, categories, search) ---------- */

.wc-block-product-template { gap: 20px !important; }
.wc-block-product-template .wc-block-product {
	display: flex;
	flex-direction: column;
	padding: 12px 12px 16px;
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-radius);
	background: #fff;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.wc-block-product-template .wc-block-product:hover { border-color: transparent; box-shadow: var(--tb-shadow); transform: translateY(-2px); }
.wc-block-product .wc-block-components-product-image { margin-bottom: 0 !important; }
.wc-block-product .wc-block-components-product-image img { border-radius: 10px; }
.wc-block-product .wp-block-post-title {
	margin: 14px 0 6px !important;
	font-size: .98rem !important;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.005em;
	text-align: left !important;
}
.wc-block-product .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.wc-block-product .wp-block-post-title a:hover { color: var(--tb-blue); }
.wc-block-product .wc-block-components-product-price {
	margin-bottom: 14px !important;
	font-size: 1.1rem !important;
	font-weight: 800;
	color: var(--tb-navy);
	text-align: left !important;
}
.wc-block-components-product-price del { color: var(--tb-slate); font-weight: 500; font-size: .85em; margin-right: 4px; }
.wc-block-components-product-price ins { text-decoration: none; }
.wc-block-product .wp-block-woocommerce-product-button { margin-top: auto !important; margin-bottom: 0 !important; }
.wc-block-product .wp-block-woocommerce-product-button .wp-block-button__link,
.wc-block-product .wc-block-components-product-button__button {
	width: 100%;
	justify-content: center;
	border-radius: 10px;
	background: var(--tb-navy);
	color: #fff;
	font-size: .9rem;
	padding: .7rem 1rem;
}
.wc-block-product .wc-block-components-product-button__button:hover { background: var(--tb-blue); }
.wc-block-components-product-sale-badge {
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--tb-amber) !important;
	color: var(--tb-navy) !important;
	font-size: .7rem !important;
	font-weight: 800 !important;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 4px 10px !important;
}

/* Older WooCommerce product grids (e.g. "New in store" on the empty cart page). */
.wc-block-grid__product-link { text-decoration: none; color: var(--wp--preset--color--contrast); }
.wc-block-grid__product-title { font-size: .98rem; font-weight: 600; }
.wc-block-grid__product-price { font-weight: 800; color: var(--tb-navy); }
.wc-block-grid__product-price ins { text-decoration: none; }
.wc-block-grid__product-onsale {
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--tb-amber) !important;
	color: var(--tb-navy) !important;
	font-weight: 800 !important;
}
.wc-block-grid__product .wp-block-button__link { border-radius: 10px; background: var(--tb-navy); }
.wc-block-grid__product .wp-block-button__link:hover { background: var(--tb-blue); }
.wc-block-grid__product-image img { border-radius: 10px; }

/* ---------- Single product ---------- */

.single-product .wp-block-woocommerce-product-price .wc-block-components-product-price {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--tb-navy);
}
.woocommerce span.onsale,
.wc-block-components-product-image span.onsale {
	min-width: 0;
	min-height: 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--tb-amber);
	color: var(--tb-navy);
	font-size: .75rem;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.single-product .wp-site-blocks > footer { margin-top: var(--wp--preset--spacing--60); }

/* ---------- Shop archive ---------- */

.tb-archive .woocommerce-breadcrumb { color: var(--tb-slate); }
.tb-archive .woocommerce-breadcrumb a { color: var(--tb-slate); text-decoration: none; }
.tb-archive-title { margin-top: 10px; margin-bottom: 4px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.tb-archive .wp-block-term-description { color: var(--tb-slate); margin-top: 0; }
.tb-archive-bar { padding: 12px 0; margin-bottom: 8px; border-bottom: 1px solid var(--tb-line); }
.tb-archive-bar .woocommerce-result-count { margin: 0; color: var(--tb-slate); font-size: .9rem; }
.tb-archive-bar select { border: 1px solid var(--tb-line); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: .9rem; }

/* ---------- Promo banners ---------- */

.tb-promos { gap: 20px; }
.tb-promo {
	position: relative;
	overflow: hidden;
	min-height: 280px;
	padding: clamp(24px, 4vw, 40px);
	border-radius: 20px;
}
.tb-promo--dark { background: linear-gradient(135deg, #0B1630 0%, #17337A 100%); color: #fff; }
.tb-promo--light { background: linear-gradient(135deg, #EAF1FF 0%, #D3E2FF 100%); }
.tb-promo-text { position: relative; z-index: 1; max-width: 56%; }
.tb-promo-kicker { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tb-blue); }
.tb-promo--dark .tb-promo-kicker { color: #9CC2FF; }
.tb-promo-title { margin: 10px 0 8px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.tb-promo--dark .tb-promo-title { color: #fff; }
.tb-promo-copy { margin: 0 0 20px; font-size: .95rem; opacity: .85; }
.tb-promo-img { position: absolute; right: -14px; bottom: -18px; width: 48%; margin: 0; }
.tb-promo-img img { width: 100%; height: auto; }
.tb-promo--dark .wp-block-button__link { background: #fff; color: var(--tb-navy); }
.tb-promo--dark .wp-block-button__link:hover { background: var(--tb-amber); color: var(--tb-navy); }
@media (max-width: 600px) {
	.tb-promo-text { max-width: 100%; }
	.tb-promo { padding-bottom: 210px; }
	.tb-promo-img { width: 62%; right: -6px; }
}

/* ---------- FAQ ---------- */

.tb-faq .tb-h2 { margin-bottom: 12px; }
.tb-faq .wp-block-details {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 18px 0;
	border-bottom: 1px solid var(--tb-line);
}
.tb-faq .wp-block-details summary {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	list-style: none;
	font-weight: 700;
	font-size: 1.05rem;
}
.tb-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.tb-faq .wp-block-details summary::after { content: "+"; color: var(--tb-blue); font-size: 1.4rem; font-weight: 400; line-height: 1; }
.tb-faq .wp-block-details[open] summary::after { content: "–"; }
.tb-faq .wp-block-details p { margin: 10px 0 0; color: var(--tb-slate); max-width: 52em; }

/* ---------- Help band ---------- */

.tb-help {
	border-radius: 24px;
	padding: clamp(28px, 5vw, 56px);
	background:
		radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, .18), transparent 60%),
		linear-gradient(135deg, #1E6BFF 0%, #0B4BD6 100%);
	color: #fff;
}
.tb-help .tb-h2 { color: #fff; }
.tb-help p { margin: 10px 0 0; max-width: 40em; color: #DCE7FF; }
.tb-help .wp-block-button__link { background: #fff; color: var(--tb-navy); }
.tb-help .wp-block-button__link:hover { background: var(--tb-amber); color: var(--tb-navy); }

/* ---------- Footer ---------- */

.tb-footer { font-size: .92rem; }
.tb-footer .tb-muted { color: #A9B4C8; max-width: 30em; }
.tb-footer-h {
	margin: 0 0 14px;
	color: #8EA0BF;
	font-size: .78rem !important;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.tb-footer-nav { font-size: .92rem; }
.tb-footer-nav a { color: #E6ECF6; text-decoration: none; }
.tb-footer-nav a:hover { color: #fff; text-decoration: underline; }
.tb-pay { display: inline-block; margin-top: 6px; padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-weight: 600; font-size: .82rem; color: #E6ECF6; }
.tb-footer-bottom { margin-top: 44px !important; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8EA0BF; font-size: .82rem; }
.tb-footer-bottom p { margin: 0; }
