/*
Theme Name:   TechBulls Store
Description:  Lightweight WooCommerce child theme of Twenty Twenty-Five for an electronics store (mobile & gaming accessories and parts).
Template:     twentytwentyfive
Version:      1.2.0
Requires at least: 7.0
Requires PHP: 7.4
Text Domain:  techbulls
*/

/* ---------- Base ---------- */
:root {
	--tb-radius: 14px;
	--tb-border: var(--wp--preset--color--accent-6);
	--tb-shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
}
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 3px; }

/* ---------- Header ---------- */
.tb-topbar { gap: 8px 36px; }
.tb-topbar p { margin: 0; }
.tb-header { border-bottom: 1px solid var(--tb-border); }
.tb-header__main { gap: 24px; }
.tb-brand .wp-block-site-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.tb-search { flex: 1 1 auto; max-width: 620px; }
.tb-search .wp-block-search__inside-wrapper {
	border: 1.5px solid var(--tb-border); border-radius: 999px; padding: 4px; background: var(--wp--preset--color--accent-5);
}
.tb-search .wp-block-search__input { border: 0; background: transparent; padding: 8px 14px; font-size: .95rem; }
.tb-search .wp-block-search__input:focus { outline: none; }
.tb-search .wp-block-search__inside-wrapper:focus-within { border-color: var(--wp--preset--color--accent-1); background: #fff; }
.tb-search .wp-block-search__button { border-radius: 999px; margin: 0; padding: 8px 14px; }
.tb-header__icons .wc-block-mini-cart__button,
.tb-header__icons .wc-block-customer-account a { padding: 8px; border-radius: 10px; }
.tb-header__icons .wc-block-mini-cart__button:hover,
.tb-header__icons .wc-block-customer-account a:hover { background: var(--wp--preset--color--accent-5); }
.tb-header__icons .wc-block-mini-cart__badge { background: var(--wp--preset--color--accent-3); color: #fff; }
.tb-nav { border-bottom: 1px solid var(--tb-border); }
.tb-nav .wp-block-navigation { padding: 12px 0; }
.tb-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--accent-1); }
.tb-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--tb-border) !important; border-radius: 12px; box-shadow: var(--tb-shadow); padding: 8px 0; min-width: 230px !important;
}
.tb-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 18px !important; }
.tb-nav-deals > .wp-block-navigation-item__content { color: var(--wp--preset--color--accent-3); }

@media (max-width: 781px) {
	.tb-header__main { flex-wrap: wrap !important; }
	.tb-search { order: 3; flex-basis: 100%; max-width: none; }
	.tb-topbar p:not(:first-child) { display: none; }
}

/* ---------- Home ---------- */
.tb-eyebrow {
	display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
	color: var(--wp--preset--color--accent-7); margin-bottom: .5rem;
}
.tb-hero h1 { color: #fff; }
.tb-hero-art img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); }
.tb-btn-light .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.5); }
.tb-btn-light .wp-block-button__link:hover { background: rgba(255,255,255,.1); }
.tb-btn-white .wp-block-button__link { background: #fff; color: var(--wp--preset--color--contrast); }
.tb-btn-white .wp-block-button__link:hover { background: #E8EFFF; color: var(--wp--preset--color--contrast); }

.tb-trust-item p { margin: 0; line-height: 1.4; }
.tb-trust-item strong { font-size: 1rem; }
.tb-trust-item figure { flex-shrink: 0; margin: 0; }

.tb-section-head { margin-bottom: var(--wp--preset--spacing--30); }
.tb-section-head h2, .tb-section-head p { margin: 0; }
.tb-section-head a { font-weight: 600; text-decoration: none; }

.tb-cat-grid { gap: 18px !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
.tb-cat {
	background: #fff; border: 1px solid var(--tb-border); border-radius: var(--tb-radius);
	padding: 14px 14px 16px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tb-cat:hover { transform: translateY(-4px); box-shadow: var(--tb-shadow); border-color: transparent; }
.tb-cat figure { margin: 0; width: 100%; }
.tb-cat img { border-radius: 10px; width: 100%; height: auto; display: block; }
.tb-cat p { margin: 0; }
.tb-cat p a { color: var(--wp--preset--color--contrast); text-decoration: none; }

.tb-promo { border-radius: 20px; height: 100%; }
.tb-promo h2 { color: #fff; }

/* ---------- Product cards (home + shop) ---------- */
.tb-products .wc-block-product {
	background: #fff; border: 1px solid var(--tb-border); border-radius: var(--tb-radius);
	padding: 12px 12px 16px; display: flex; flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.tb-products .wc-block-product:hover { box-shadow: var(--tb-shadow); transform: translateY(-3px); border-color: transparent; }
.tb-products .wc-block-components-product-image { border-radius: 10px; overflow: hidden; background: var(--wp--preset--color--accent-5); margin-bottom: 12px !important; }
.tb-products .wc-block-components-product-image img { aspect-ratio: 1; object-fit: cover; }
.tb-products .wp-block-post-title { margin: 0 0 6px !important; font-weight: 600; line-height: 1.35; }
.tb-products .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.tb-products .wp-block-post-title a:hover { color: var(--wp--preset--color--accent-1); }
.tb-products .wc-block-components-product-price { font-weight: 700; margin-bottom: 12px !important; }
.tb-products .wc-block-components-product-price del { color: var(--wp--preset--color--accent-4); font-weight: 400; }
.tb-products .wc-block-components-product-price ins { text-decoration: none; color: var(--wp--preset--color--accent-3); }
.tb-products .wp-block-woocommerce-product-button { margin-top: auto; }
.tb-products .wp-block-button__link,
.tb-products .wc-block-components-product-button__button { width: 100%; border-radius: 10px !important; }
.wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--accent-3) !important; color: #fff !important; border: 0 !important;
	border-radius: 999px !important; font-weight: 700; padding: 3px 10px !important; margin: 8px !important;
}

/* ---------- Shop / archive ---------- */
.tb-shop-sidebar .wp-block-woocommerce-product-filters > * + * { margin-top: 1.5rem; }
.tb-shop-sidebar h3 { margin-bottom: .5rem; }
.tb-shop-sidebar { min-width: 0; flex-grow: 0 !important; flex-shrink: 0; }
.tb-shop-sidebar .wp-block-woocommerce-product-filter-price,
.tb-shop-sidebar .wp-block-woocommerce-product-filter-price * { max-width: 100%; box-sizing: border-box; }
.tb-shop-sidebar .wc-block-product-filter-price-slider input[type="text"] { width: 100%; border: 1px solid var(--tb-border); border-radius: 8px; padding: 6px 8px; }
.tb-shop-main { min-width: 0; }
.tb-shop-toolbar { margin-bottom: var(--wp--preset--spacing--30); font-size: .9rem; color: var(--wp--preset--color--accent-4); }
.tb-shop-toolbar select { border: 1px solid var(--tb-border); border-radius: 8px; padding: 6px 10px; }
@media (max-width: 781px) {
	.tb-shop-sidebar { position: static; flex-basis: auto !important; }
}

/* ---------- Single product ---------- */
.single-product .wp-block-woocommerce-product-image-gallery img,
.single-product .wc-block-product-gallery-large-image img { border-radius: var(--tb-radius); background: var(--wp--preset--color--accent-5); }
.single-product .wp-block-woocommerce-product-price { font-weight: 700; font-size: 1.6rem; }

/* ---------- Footer ---------- */
.tb-footer h4 { color: #fff; margin-bottom: .75rem; }
.tb-footer-links { list-style: none; padding: 0; }
.tb-footer-links li { margin: .45rem 0; }
.tb-footer-links a { text-decoration: none; }
.tb-footer-links a:hover { color: #fff; text-decoration: underline; }

/* Keep WooCommerce's filter panel inside the 260px sidebar on desktop. */
@media (min-width: 782px) {
	.tb-shop-sidebar .wc-block-product-filters,
	.tb-shop-sidebar .wc-block-product-filters * { min-width: 0; max-width: 100%; box-sizing: border-box; }
}

/* ---------- Home: category tiles + section links ---------- */
.tb-cat img { aspect-ratio: 1; object-fit: cover; background: var(--wp--preset--color--accent-5); }
.tb-cat p a { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.tb-cat-count { font-size: .8rem; font-weight: 500; color: var(--wp--preset--color--accent-4); }
@media (min-width: 1100px) {
	.tb-cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}
.tb-section-head { gap: 6px 24px; }
.tb-section-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.tb-section-links a { white-space: nowrap; }
@media (min-width: 600px) {
	.tb-nav .wp-block-navigation__submenu-container { max-height: 75vh; overflow-y: auto; }
}
