/* ==========================================================================
   FILE: assets/css/trending-grid.css
   PURPOSE: Styling for the homepage "Trending" tabs + grid section
   (template-parts/sections/trending-grid.php). Mobile default is a
   2-column grid (3 rows = 6 products), scales to 3/4 columns on wider
   screens. Product cards themselves are styled by assets/css/shop-card.css
   (already loaded sitewide) — this file only handles the heading, tabs
   and grid layout.
   Tabs (.dc-tg__tab) set -webkit-tap-highlight-color:transparent and
   outline:none — without it, Chrome on Android leaves a solid dark
   tap-highlight rectangle sitting on the tapped tab that doesn't fade.
   Card name/price get an explicit text-decoration:none override (same
   fix the wishlist page needed) since shop-card.css's own reset is
   scoped to the shop grid, not this new container.
   Heading divider (.dc-tg__line) is a soft gradient-fade line and the
   View All button (.dc-tg__viewall) is an outline pill that fills solid
   black on hover — matching Kicks Mania's premium look.
   White background / black text, no colour anywhere.
   HTML: template-parts/sections/trending-grid.php | JS: assets/js/trending-grid.js
   ========================================================================== */

.dc-tg { max-width: 1280px; margin: 0 auto; padding: 40px 14px 10px; }

.dc-tg__head { text-align: center; margin-bottom: 22px; }
.dc-tg__eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #666; margin-bottom: 4px; }
.dc-tg__title { font-size: 24px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #000; margin: 0; }

.dc-tg__line {
	display: block;
	width: 60px;
	height: 1px;
	margin: 14px auto 0;
	background: linear-gradient(90deg, transparent, #000, transparent);
}

.dc-tg__tabs {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	scrollbar-width: none;
	border-bottom: 1px solid #e2e2e2;
	margin-bottom: 18px;
}
.dc-tg__tabs::-webkit-scrollbar { display: none; }

.dc-tg__tab {
	flex: 0 0 auto;
	background: none;
	border: none;
	padding: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: #999;
	letter-spacing: .03em;
	cursor: pointer;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	-webkit-tap-highlight-color: transparent;
	outline: none;
}
.dc-tg__tab:focus, .dc-tg__tab:active { background: none !important; outline: none; }
.dc-tg__tab.is-active { color: #000; font-weight: 800; border-bottom-color: #000; }

.dc-tg__panel { display: none; }
.dc-tg__panel.is-active { display: block; }

.dc-tg__grid {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px 12px;
	padding: 0 !important;
	margin: 0 0 20px !important;
	list-style: none;
}

.dc-tg__grid .dc-shop-card__info,
.dc-tg__grid .dc-shop-card__info:hover,
.dc-tg__grid .dc-shop-card__name,
.dc-tg__grid .dc-shop-card__price,
.dc-tg__grid .dc-shop-card__link {
	text-decoration: none !important;
}

.dc-tg__viewall {
	display: block;
	max-width: 200px;
	margin: 4px auto 0;
	text-align: center;
	padding: 11px;
	border: 1px solid #000;
	border-radius: 6px;
	color: #000;
	background: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .25s ease, color .25s ease;
}
.dc-tg__viewall:hover { background: #000; color: #fff; }

@media (min-width: 700px) { .dc-tg__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .dc-tg__grid { grid-template-columns: repeat(4, 1fr); } }