/* ============================================
   TEEPOGRAPHY THEME - MAIN STYLESHEET
   Streetwear / Typography vibe | Lean & Fast
   ============================================ */

:root {
	--tee-primary: #FF3366;
	--tee-dark: #0A0A0A;
	--tee-light: #F5F5F5;
	--tee-white: #FFFFFF;
	--tee-gray: #888888;
	--tee-gray-light: #E5E5E5;
	--tee-radius: 18px;
	--tee-radius-sm: 12px;
	--tee-shadow: 0 4px 20px rgba(0,0,0,0.08);
	--tee-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
	--tee-transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
	--tee-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--tee-font-heading: 'Space Grotesk', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	font-family: var(--tee-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--tee-dark);
	background: var(--tee-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--tee-font-heading);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

a { color: var(--tee-primary); text-decoration: none; transition: color var(--tee-transition); }
a:hover { opacity: 0.8; }

img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255,255,255,0.92);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--tee-gray-light);
	transition: box-shadow var(--tee-transition);
}
.site-header.is-scrolled { box-shadow: var(--tee-shadow); }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
}

.header-brand .site-title {
	font-family: var(--tee-font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--tee-dark);
	letter-spacing: -1px;
}

.header-nav .nav-menu {
	display: flex;
	gap: 32px;
	list-style: none;
}
.header-nav .nav-menu a {
	font-weight: 500;
	font-size: 0.9rem;
	color: var(--tee-dark);
	position: relative;
}
.header-nav .nav-menu a::after {
	content: '';
	position: absolute;
	bottom: -4px; left: 0;
	width: 0; height: 2px;
	background: var(--tee-primary);
	transition: width var(--tee-transition);
}
.header-nav .nav-menu a:hover::after { width: 100%; }

.header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.search-toggle, .cart-toggle, .mobile-menu-toggle {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--tee-dark);
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color var(--tee-transition);
}
.search-toggle:hover, .cart-toggle:hover { color: var(--tee-primary); }

.cart-toggle { position: relative; }
.cart-count {
	position: absolute;
	top: 0; right: 0;
	background: var(--tee-primary);
	color: var(--tee-white);
	font-size: 0.65rem;
	font-weight: 700;
	width: 16px; height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 8px;
}
.mobile-menu-toggle span {
	display: block;
	width: 24px; height: 2px;
	background: var(--tee-dark);
	transition: all 0.3s ease;
}
.mobile-menu-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Search Overlay */
.search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(255,255,255,0.98);
	z-index: 2000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 120px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}
.search-overlay.is-active { opacity: 1; visibility: visible; }

.search-overlay-inner {
	width: 100%;
	max-width: 700px;
	padding: 0 24px;
	position: relative;
}
.search-field {
	width: 100%;
	border: none;
	border-bottom: 2px solid var(--tee-dark);
	font-size: 2rem;
	font-family: var(--tee-font-heading);
	padding: 16px 0;
	background: transparent;
	outline: none;
}
.search-submit {
	position: absolute;
	right: 24px; top: 16px;
	background: var(--tee-primary);
	color: var(--tee-white);
	border: none;
	padding: 12px 24px;
	border-radius: var(--tee-radius-sm);
	font-weight: 600;
	cursor: pointer;
	transition: transform var(--tee-transition);
}
.search-submit:hover { transform: translateY(-2px); }
.search-close {
	position: absolute;
	top: 24px; right: 24px;
	background: none; border: none;
	cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
	position: fixed;
	inset: 72px 0 0 0;
	background: var(--tee-white);
	z-index: 999;
	padding: 40px 24px;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-nav-menu { list-style: none; }
.mobile-nav-menu li { margin-bottom: 24px; }
.mobile-nav-menu a {
	font-family: var(--tee-font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--tee-dark);
}

/* Hero */
.hero-section {
	padding: 120px 0;
	text-align: center;
	background: var(--tee-light);
}
.hero-title {
	font-size: clamp(2.5rem, 6vw, 5rem);
	margin-bottom: 20px;
	letter-spacing: -3px;
}
.hero-desc {
	font-size: 1.2rem;
	color: var(--tee-gray);
	max-width: 600px;
	margin: 0 auto 40px;
}
.hero-cta {
	display: inline-block;
	background: var(--tee-dark);
	color: var(--tee-white);
	padding: 16px 40px;
	border-radius: var(--tee-radius);
	font-weight: 600;
	font-size: 1rem;
	transition: transform var(--tee-transition), box-shadow var(--tee-transition);
}
.hero-cta:hover {
	transform: translateY(-3px);
	box-shadow: var(--tee-shadow-lg);
	color: var(--tee-white);
}

/* Section Headers */
.section-header {
	text-align: center;
	margin-bottom: 48px;
	padding-top: 80px;
}
.section-title {
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	margin-bottom: 8px;
}
.section-subtitle {
	color: var(--tee-gray);
	font-size: 1.1rem;
}

/* Affiliate Section */
.affiliate-section {
	padding: 80px 0;
	background: var(--tee-dark);
	color: var(--tee-white);
	margin: 80px 0;
}
.affiliate-content {
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
}
.affiliate-content h3 {
	font-size: 2rem;
	margin-bottom: 16px;
}
.affiliate-content p {
	color: rgba(255,255,255,0.7);
	margin-bottom: 32px;
}
.btn-secondary {
	display: inline-block;
	background: var(--tee-primary);
	color: var(--tee-white);
	padding: 14px 36px;
	border-radius: var(--tee-radius);
	font-weight: 600;
	transition: transform var(--tee-transition);
}
.btn-secondary:hover {
	transform: translateY(-2px);
	color: var(--tee-white);
}

/* Post Grid (Blog) */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 32px;
}
.post-card {
	background: var(--tee-white);
	border-radius: var(--tee-radius);
	overflow: hidden;
	box-shadow: var(--tee-shadow);
	transition: transform var(--tee-transition), box-shadow var(--tee-transition);
}
.post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--tee-shadow-lg);
}
.post-thumb img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: 24px; }
.post-title {
	font-size: 1.2rem;
	margin-bottom: 8px;
}
.post-title a { color: var(--tee-dark); }
.post-title a:hover { color: var(--tee-primary); }
.post-meta {
	font-size: 0.8rem;
	color: var(--tee-gray);
	margin-bottom: 12px;
}
.post-excerpt { color: var(--tee-gray); font-size: 0.95rem; }

/* Single Post */
.content-single { max-width: 800px; margin: 60px auto; }
.single-article .entry-header { margin-bottom: 40px; }
.entry-title { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 16px; }
.entry-meta { color: var(--tee-gray); font-size: 0.9rem; }
.entry-meta span { margin-right: 16px; }
.entry-thumb { border-radius: var(--tee-radius); overflow: hidden; margin-bottom: 40px; }
.entry-content { font-size: 1.1rem; line-height: 1.8; }
.entry-content p { margin-bottom: 24px; }
.entry-content h2, .entry-content h3 { margin: 40px 0 16px; }
.entry-content img { border-radius: var(--tee-radius-sm); }
.tag-links { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--tee-gray-light); }
.tag-links a {
	display: inline-block;
	padding: 6px 14px;
	background: var(--tee-light);
	border-radius: 20px;
	font-size: 0.8rem;
	margin-right: 8px;
	color: var(--tee-dark);
}

/* Page */
.content-page { max-width: 800px; margin: 60px auto; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 32px; }

/* 404 */
.error-404 {
	text-align: center;
	padding: 120px 24px;
}
.error-code {
	font-size: clamp(6rem, 15vw, 12rem);
	color: var(--tee-gray-light);
	line-height: 1;
	margin-bottom: 16px;
}
.error-title { font-size: 1.5rem; margin-bottom: 16px; }
.error-desc { color: var(--tee-gray); margin-bottom: 32px; }
.btn-primary {
	display: inline-block;
	background: var(--tee-dark);
	color: var(--tee-white);
	padding: 14px 36px;
	border-radius: var(--tee-radius);
	font-weight: 600;
	transition: transform var(--tee-transition);
}
.btn-primary:hover { transform: translateY(-2px); color: var(--tee-white); }

/* Footer */
.site-footer {
	background: var(--tee-light);
	padding: 80px 0 40px;
	margin-top: 80px;
	border-top: 1px solid var(--tee-gray-light);
}
.footer-inner { display: grid; gap: 48px; }
.footer-brand .site-title {
	font-family: var(--tee-font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--tee-dark);
}
.footer-tagline { color: var(--tee-gray); margin-top: 8px; }
.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 32px;
}
.widget-title {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 16px;
}
.widget ul { list-style: none; }
.widget ul li { margin-bottom: 10px; }
.widget ul li a { color: var(--tee-gray); font-size: 0.95rem; }
.widget ul li a:hover { color: var(--tee-primary); }
.footer-bottom {
	border-top: 1px solid var(--tee-gray-light);
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}
.footer-menu { display: flex; gap: 24px; list-style: none; }
.footer-menu a { color: var(--tee-gray); font-size: 0.9rem; }
.copyright { color: var(--tee-gray); font-size: 0.85rem; }

/* Pagination */
.pagination, .nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 48px 0;
}
.pagination a, .pagination span, .nav-links a, .nav-links span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border-radius: var(--tee-radius-sm);
	font-weight: 500;
	font-size: 0.9rem;
}
.pagination a, .nav-links a {
	background: var(--tee-light);
	color: var(--tee-dark);
}
.pagination span.current, .nav-links span.current {
	background: var(--tee-dark);
	color: var(--tee-white);
}

/* No Results */
.no-results { text-align: center; padding: 80px 24px; }
.no-results-title { margin-bottom: 16px; }
.no-results-desc { color: var(--tee-gray); margin-bottom: 24px; }

/* WooCommerce overrides */
.woocommerce-wrap { padding: 40px 0; }
.woocommerce .woocommerce-breadcrumb { color: var(--tee-gray); margin-bottom: 24px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--tee-dark); }

/* Product Grid (Shop / Archive) */
.product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Product Card (WC loop) */
.product-card {
	background: var(--tee-white);
	border-radius: var(--tee-radius);
	overflow: hidden;
	box-shadow: var(--tee-shadow);
	transition: transform var(--tee-transition), box-shadow var(--tee-transition);
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
}
.product-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--tee-shadow-lg);
}
.product-card .woocommerce-loop-product__link {
	display: flex;
	flex-direction: column;
	flex: 1;
}
.product-card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.product-card:hover img { transform: scale(1.05); }
.product-card .woocommerce-loop-product__title {
	font-family: var(--tee-font-body);
	font-size: 0.95rem;
	font-weight: 600;
	padding: 16px 16px 4px;
	color: var(--tee-dark);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.4;
	min-height: 2.8em;
}
.product-card .price {
	padding: 0 16px 12px;
	font-weight: 600;
	color: var(--tee-primary);
	font-size: 1rem;
}
.product-card .button,
.product-card .add_to_cart_button {
	display: block;
	width: calc(100% - 32px);
	margin: 0 16px 16px;
	text-align: center;
	padding: 10px;
	background: var(--tee-dark);
	color: var(--tee-white);
	border-radius: var(--tee-radius-sm);
	font-weight: 600;
	font-size: 0.85rem;
	transition: background var(--tee-transition);
	border: none;
	cursor: pointer;
}
.product-card .button:hover,
.product-card .add_to_cart_button:hover { background: var(--tee-primary); color: var(--tee-white); }
.product-card .onsale {
	position: absolute;
	top: 12px; left: 12px;
	background: var(--tee-primary);
	color: var(--tee-white);
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 700;
	z-index: 2;
}

/* Responsive Product Grid */
@media (max-width: 1200px) {
	.product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
	.product-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Single Product */
.woocommerce .product .woocommerce-product-gallery { border-radius: var(--tee-radius); overflow: hidden; }
.woocommerce .product .entry-summary h1.product-title {
	font-family: var(--tee-font-heading);
	font-size: 2rem;
	margin-bottom: 16px;
}
.woocommerce .product .entry-summary .price {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--tee-primary);
	margin-bottom: 24px;
}
.woocommerce .product .entry-summary .single_add_to_cart_button {
	background: var(--tee-dark);
	color: var(--tee-white);
	border-radius: var(--tee-radius);
	padding: 16px 40px;
	font-weight: 600;
	transition: transform var(--tee-transition);
}
.woocommerce .product .entry-summary .single_add_to_cart_button:hover {
	transform: translateY(-2px);
	background: var(--tee-primary);
}

/* Shop Sidebar */
.shop-sidebar .widget {
	background: var(--tee-white);
	border-radius: var(--tee-radius);
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: var(--tee-shadow);
}

/* Archive Header */
.archive-header { margin: 40px 0 32px; }
.archive-title { font-size: 2rem; margin-bottom: 8px; }

/* Responsive */
@media (max-width: 768px) {
	.header-nav { display: none; }
	.mobile-menu-toggle { display: flex; }
	.hero-section { padding: 80px 0; }
	.footer-bottom { flex-direction: column; text-align: center; }
	.search-field { font-size: 1.2rem; }
}

/* Accessibility */
.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	border: 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--tee-light); }
::-webkit-scrollbar-thumb { background: var(--tee-gray); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--tee-dark); }
