/*
Theme Name:   Dog Things
Theme URI:    https://example.com/dog-things
Author:       Dog Things
Author URI:   https://example.com
Description:  A clean, modern Astra child theme for a dog-themed Amazon affiliate site. Features a custom homepage layout with hero section, product category showcases, and conversion-optimized call-to-action areas.
Version:      1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Template:     astra
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  dog-things
Tags:         custom-menu, featured-images, theme-options, e-commerce
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
	--dt-primary: #1a73e8;
	--dt-primary-dark: #1557b0;
	--dt-primary-light: #e8f0fe;
	--dt-secondary: #f8f9fa;
	--dt-accent: #ff6d00;
	--dt-text: #202124;
	--dt-text-light: #5f6368;
	--dt-white: #ffffff;
	--dt-border: #dadce0;
	--dt-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	--dt-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
	--dt-radius: 8px;
	--dt-radius-lg: 12px;
	--dt-max-width: 1200px;
	--dt-transition: 0.2s ease;
}

/* ==========================================================================
   Base Overrides
   ========================================================================== */

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--dt-text);
	background-color: var(--dt-white);
}

a {
	color: var(--dt-primary);
	transition: color var(--dt-transition);
}

a:hover,
a:focus {
	color: var(--dt-primary-dark);
}

/* ==========================================================================
   Header
   ========================================================================== */

.ast-primary-header-bar {
	border-bottom: 1px solid var(--dt-border);
	box-shadow: none;
}

.site-title a {
	color: var(--dt-text) !important;
	font-weight: 700;
	letter-spacing: -0.5px;
}

/* ==========================================================================
   Homepage Hero
   ========================================================================== */

.dt-hero {
	background: linear-gradient(135deg, var(--dt-primary) 0%, var(--dt-primary-dark) 100%);
	color: var(--dt-white);
	padding: 60px 0;
	overflow: hidden;
}

.dt-hero__inner {
	max-width: var(--dt-max-width);
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 40px;
}

.dt-hero__content {
	flex: 1;
	min-width: 0;
}

.dt-hero__image {
	flex: 0 0 380px;
}

.dt-hero__image img {
	width: 100%;
	height: auto;
	display: block;
}

.dt-hero__title {
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 800;
	margin: 0 0 16px;
	line-height: 1.2;
}

.dt-hero__subtitle {
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	opacity: 0.9;
	margin: 0 0 32px;
	max-width: 540px;
	line-height: 1.6;
}

.dt-hero__cta {
	display: inline-block;
	background: var(--dt-accent);
	color: var(--dt-white) !important;
	padding: 14px 36px;
	border-radius: 50px;
	font-size: 1.05rem;
	font-weight: 600;
	text-decoration: none;
	transition: background var(--dt-transition), transform var(--dt-transition);
}

.dt-hero__cta:hover,
.dt-hero__cta:focus {
	background: #e65100;
	color: var(--dt-white) !important;
	transform: translateY(-2px);
}

/* ==========================================================================
   Section Layout
   ========================================================================== */

.dt-section {
	padding: 64px 0;
}

.dt-section--alt {
	background-color: var(--dt-secondary);
}

.dt-section__inner {
	max-width: var(--dt-max-width);
	margin: 0 auto;
	padding: 0 20px;
}

.dt-section__header {
	text-align: center;
	margin-bottom: 48px;
}

.dt-section__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	color: var(--dt-text);
	margin: 0 0 12px;
}

.dt-section__subtitle {
	font-size: 1.05rem;
	color: var(--dt-text-light);
	margin: 0;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* ==========================================================================
   Product Category Cards
   ========================================================================== */

.dt-categories {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.dt-category-card {
	background: var(--dt-white);
	border: 1px solid var(--dt-border);
	border-radius: var(--dt-radius-lg);
	overflow: hidden;
	transition: box-shadow var(--dt-transition), transform var(--dt-transition);
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
}

.dt-category-card:hover,
.dt-category-card:focus {
	box-shadow: var(--dt-shadow-hover);
	transform: translateY(-4px);
	color: inherit;
}

.dt-category-card__image {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	background-color: var(--dt-primary-light);
}

.dt-category-card__image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	background-color: var(--dt-primary-light);
	height: 180px;
}

.dt-category-card__body {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.dt-category-card__title {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0 0 8px;
	color: var(--dt-text);
}

.dt-category-card__desc {
	font-size: 0.9rem;
	color: var(--dt-text-light);
	margin: 0 0 16px;
	line-height: 1.5;
	flex: 1;
}

.dt-category-card__link {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--dt-primary);
	text-decoration: none;
}

.dt-category-card:hover .dt-category-card__link {
	color: var(--dt-primary-dark);
}

/* ==========================================================================
   Featured Products Grid
   ========================================================================== */

.dt-products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}

.dt-product-card {
	background: var(--dt-white);
	border: 1px solid var(--dt-border);
	border-radius: var(--dt-radius);
	padding: 24px;
	text-align: center;
	transition: box-shadow var(--dt-transition);
}

.dt-product-card:hover {
	box-shadow: var(--dt-shadow-hover);
}

.dt-product-card__image {
	width: 100%;
	height: 160px;
	object-fit: contain;
	margin-bottom: 16px;
	background: var(--dt-secondary);
	border-radius: var(--dt-radius);
}

.dt-product-card__title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 8px;
}

.dt-product-card__price {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--dt-primary);
	margin: 0 0 12px;
}

.dt-product-card__button {
	display: inline-block;
	background: var(--dt-primary);
	color: var(--dt-white) !important;
	padding: 10px 24px;
	border-radius: 50px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: background var(--dt-transition);
}

.dt-product-card__button:hover,
.dt-product-card__button:focus {
	background: var(--dt-primary-dark);
	color: var(--dt-white) !important;
}

/* ==========================================================================
   Trust / Benefits Bar
   ========================================================================== */

.dt-benefits {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 32px;
	text-align: center;
}

.dt-benefit {
	padding: 24px 16px;
}

.dt-benefit__icon {
	font-size: 2.5rem;
	margin-bottom: 12px;
	display: block;
	color: var(--dt-primary);
}

.dt-benefit__title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 8px;
}

.dt-benefit__text {
	font-size: 0.9rem;
	color: var(--dt-text-light);
	margin: 0;
	line-height: 1.5;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */

.dt-cta-banner {
	background: linear-gradient(135deg, var(--dt-primary) 0%, #4285f4 100%);
	color: var(--dt-white);
	text-align: center;
	padding: 64px 20px;
	border-radius: var(--dt-radius-lg);
	margin: 0 20px;
}

.dt-cta-banner__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	margin: 0 0 12px;
}

.dt-cta-banner__text {
	font-size: 1.05rem;
	opacity: 0.9;
	margin: 0 0 28px;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

.dt-cta-banner__button {
	display: inline-block;
	background: var(--dt-white);
	color: var(--dt-primary) !important;
	padding: 14px 36px;
	border-radius: 50px;
	font-size: 1.05rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform var(--dt-transition), box-shadow var(--dt-transition);
}

.dt-cta-banner__button:hover,
.dt-cta-banner__button:focus {
	transform: translateY(-2px);
	box-shadow: var(--dt-shadow-hover);
	color: var(--dt-primary-dark) !important;
}

/* ==========================================================================
   Latest Posts
   ========================================================================== */

.dt-posts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}

.dt-post-card {
	background: var(--dt-white);
	border: 1px solid var(--dt-border);
	border-radius: var(--dt-radius-lg);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow var(--dt-transition), transform var(--dt-transition);
}

.dt-post-card:hover,
.dt-post-card:focus {
	box-shadow: var(--dt-shadow-hover);
	transform: translateY(-3px);
	color: inherit;
}

.dt-post-card__image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.dt-post-card__body {
	padding: 20px;
}

.dt-post-card__category {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dt-primary);
	margin-bottom: 8px;
}

.dt-post-card__title {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0 0 8px;
	line-height: 1.4;
	color: var(--dt-text);
}

.dt-post-card__excerpt {
	font-size: 0.9rem;
	color: var(--dt-text-light);
	margin: 0;
	line-height: 1.5;
}

/* ==========================================================================
   Amazon Affiliate Disclosure
   ========================================================================== */

.dt-disclosure {
	background: var(--dt-primary-light);
	border-left: 4px solid var(--dt-primary);
	padding: 16px 20px;
	margin: 32px auto;
	max-width: var(--dt-max-width);
	border-radius: 0 var(--dt-radius) var(--dt-radius) 0;
	font-size: 0.85rem;
	color: var(--dt-text-light);
	line-height: 1.5;
}

/* ==========================================================================
   Category Page Hero
   ========================================================================== */

.dt-cat-hero {
	background: linear-gradient(135deg, var(--dt-primary) 0%, var(--dt-primary-dark) 100%);
	color: var(--dt-white);
	padding: 56px 0;
	text-align: center;
}

.dt-cat-hero__icon {
	font-size: 3.5rem;
	display: block;
	margin-bottom: 16px;
}

.dt-cat-hero__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	margin: 0 0 12px;
}

.dt-cat-hero__desc {
	font-size: 1.05rem;
	opacity: 0.9;
	margin: 0;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

/* ==========================================================================
   Buying Tips
   ========================================================================== */

.dt-tips {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}

.dt-tip {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--dt-white);
	border: 1px solid var(--dt-border);
	border-radius: var(--dt-radius);
	padding: 24px;
}

.dt-tip__number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 36px;
	background: var(--dt-primary);
	color: var(--dt-white);
	border-radius: 50%;
	font-weight: 700;
	font-size: 0.95rem;
}

.dt-tip__title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 6px;
}

.dt-tip__text {
	font-size: 0.9rem;
	color: var(--dt-text-light);
	margin: 0;
	line-height: 1.5;
}

/* ==========================================================================
   Product Cards (Large / Category Page)
   ========================================================================== */

.dt-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 24px;
}

.dt-product-card-lg {
	background: var(--dt-white);
	border: 1px solid var(--dt-border);
	border-radius: var(--dt-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: box-shadow var(--dt-transition);
}

.dt-product-card-lg:hover {
	box-shadow: var(--dt-shadow-hover);
}

.dt-product-card-lg__badge span {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--dt-accent);
	color: var(--dt-white);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 50px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 1;
}

.dt-product-card-lg__image-wrap {
	background: var(--dt-secondary);
}

.dt-product-card-lg__image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	font-size: 4rem;
}

.dt-product-card-lg__body {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.dt-product-card-lg__title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--dt-text);
}

.dt-product-card-lg__desc {
	font-size: 0.9rem;
	color: var(--dt-text-light);
	margin: 0 0 12px;
	line-height: 1.5;
}

.dt-product-card-lg__rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.dt-stars {
	color: #f5a623;
	font-size: 1rem;
	letter-spacing: 1px;
}

.dt-rating-text {
	font-size: 0.85rem;
	color: var(--dt-text-light);
	font-weight: 600;
}

.dt-product-card-lg__features {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	flex: 1;
}

.dt-product-card-lg__features li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 8px;
	font-size: 0.88rem;
	color: var(--dt-text);
	line-height: 1.4;
}

.dt-product-card-lg__features li::before {
	content: '\2713';
	position: absolute;
	left: 0;
	color: #34a853;
	font-weight: 700;
}

.dt-product-card-lg__button {
	display: block;
	text-align: center;
	background: var(--dt-accent);
	color: var(--dt-white) !important;
	padding: 12px 24px;
	border-radius: 50px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: background var(--dt-transition), transform var(--dt-transition);
}

.dt-product-card-lg__button:hover,
.dt-product-card-lg__button:focus {
	background: #e65100;
	color: var(--dt-white) !important;
	transform: translateY(-2px);
}

/* ==========================================================================
   Category Page Layout
   ========================================================================== */

.dt-category-page .dt-section:first-of-type {
	margin-top: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	border-top: 1px solid var(--dt-border);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
	.dt-hero {
		padding: 40px 0;
	}

	.dt-hero__inner {
		flex-direction: column;
		text-align: center;
	}

	.dt-hero__image {
		flex: 0 0 auto;
		max-width: 280px;
		margin: 0 auto;
	}

	.dt-hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}

	.dt-section {
		padding: 40px 0;
	}

	.dt-cta-banner {
		margin: 0 12px;
		padding: 40px 16px;
	}

	.dt-categories,
	.dt-products,
	.dt-posts,
	.dt-tips,
	.dt-product-grid {
		grid-template-columns: 1fr;
	}

	.dt-cat-hero {
		padding: 36px 0;
	}

	.dt-benefits {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.dt-benefits {
		grid-template-columns: 1fr;
	}
}
