/* v2 *//* ==========================================================================
   Sweet Crumbs - Main Stylesheet
   ========================================================================== */

/* CSS Custom Properties */
:root {
	/* Colors */
	--color-primary: #D4856A;
	--color-primary-dark: #B56D54;
	--color-primary-light: #F5E6E0;
	--color-secondary: #8B6B4A;
	--color-accent: #E8B4A0;
	--color-background: #FEFCFA;
	--color-surface: #FFFFFF;
	--color-text: #3D3229;
	--color-text-light: #6B5E52;
	--color-text-muted: #9A8E82;
	--color-border: #E8E0D8;
	--color-border-light: #F0EBE6;
	
	/* Typography */
	--font-heading: 'Playfair Display', Georgia, serif;
	--font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
	
	/* Spacing */
	--space-xs: 0.25rem;
	--space-sm: 0.5rem;
	--space-md: 1rem;
	--space-lg: 1.5rem;
	--space-xl: 2rem;
	--space-2xl: 3rem;
	--space-3xl: 4rem;
	
	/* Border Radius */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	--radius-full: 9999px;
	
	/* Shadows */
	--shadow-sm: 0 1px 2px rgba(61, 50, 41, 0.06);
	--shadow-md: 0 4px 12px rgba(61, 50, 41, 0.08);
	--shadow-lg: 0 8px 24px rgba(61, 50, 41, 0.12);
	--shadow-xl: 0 16px 48px rgba(61, 50, 41, 0.16);
	
	/* Transitions */
	--transition-fast: 0.15s ease;
	--transition-base: 0.25s ease;
	--transition-slow: 0.4s ease;
}

/* Reset & Base */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	color: var(--color-text);
	background-color: var(--color-background);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color var(--transition-fast);
}

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

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

.site-header {
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border-light);
}

.home .site-header {
	display: none;
}

.header-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: var(--space-sm) var(--space-lg);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-branding .custom-logo {
	max-height: 40px;
	width: auto;
}

.site-branding .site-title {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0;
}

.site-branding .site-title a {
	color: var(--color-text);
}

.site-branding .site-description {
	font-size: 0.875rem;
	color: var(--color-text-muted);
	margin: 0;
}

/* Navigation */
.main-navigation {
	display: flex;
	align-items: center;
}

.main-navigation ul {
	display: flex;
	list-style: none;
	gap: var(--space-md);
}

.main-navigation a {
	color: var(--color-text);
	font-weight: 500;
	padding: var(--space-xs) 0;
	position: relative;
}

.main-navigation a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--color-primary);
	transition: width var(--transition-base);
}

.main-navigation a:hover::after {
	width: 100%;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: var(--space-sm);
}

.menu-icon {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-text);
	position: relative;
}

.menu-icon::before,
.menu-icon::after {
	content: '';
	position: absolute;
	width: 24px;
	height: 2px;
	background: var(--color-text);
	left: 0;
}

.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }

.breadcrumbs {
	padding: var(--space-md) var(--space-lg);
	max-width: 1200px;
	margin: 0 auto;
	font-size: 0.875rem;
	color: var(--color-text-muted);
}

.breadcrumbs a {
	color: var(--color-text-muted);
}

.breadcrumbs a:hover {
	color: var(--color-primary);
}

.breadcrumb-separator {
	margin: 0 var(--space-sm);
	color: var(--color-border);
}

.breadcrumb-current {
	color: var(--color-text-light);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
	background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-surface) 50%, #FFF5F0 100%);
	padding: var(--space-3xl) var(--space-lg);
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero-section::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 80%;
	height: 200%;
	background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
	opacity: 0.5;
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 800px;
}

.hero-title {
	font-family: var(--font-heading);
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: var(--space-md);
	line-height: 1.2;
}

.hero-subtitle {
	font-size: 1.25rem;
	color: var(--color-text-light);
	margin-bottom: var(--space-xl);
	font-weight: 300;
}

.hero-actions {
	display: flex;
	gap: var(--space-md);
	justify-content: center;
	flex-wrap: wrap;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm);
	padding: var(--space-md) var(--space-xl);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 500;
	border-radius: var(--radius-full);
	transition: all var(--transition-base);
	cursor: pointer;
	border: 2px solid transparent;
}

.btn-primary {
	background: var(--color-primary);
	color: white;
}

.btn-primary:hover {
	background: var(--color-primary-dark);
	color: white;
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.btn-secondary {
	background: transparent;
	color: var(--color-text);
	border-color: var(--color-border);
}

.btn-secondary:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.btn-outline {
	background: transparent;
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.btn-outline:hover {
	background: var(--color-primary);
	color: white;
}

/* ==========================================================================
   Featured Section
   ========================================================================== */

.featured-section {
	padding: var(--space-3xl) var(--space-lg);
	max-width: 1200px;
	margin: 0 auto;
}

.section-header {
	text-align: center;
	margin-bottom: var(--space-2xl);
}

.section-title {
	font-family: var(--font-heading);
	font-size: 2.5rem;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: var(--space-sm);
}

.section-subtitle {
	font-size: 1.125rem;
	color: var(--color-text-muted);
}

.section-cta {
	text-align: center;
	margin-top: var(--space-2xl);
}

/* ==========================================================================
   Cakes Grid
   ========================================================================== */

.cakes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: var(--space-xl);
	padding: var(--space-lg);
	max-width: 1200px;
	margin: 0 auto;
}

/* Cake Card */
.cake-card {
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: all var(--transition-base);
}

.cake-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-xl);
}

.cake-card .cake-image {
	position: relative;
	padding-top: 75%;
	overflow: hidden;
	background: var(--color-primary-light);
}

.cake-card .cake-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.cake-card:hover .cake-image img {
	transform: scale(1.05);
}

.cake-category-badge {
	position: absolute;
	top: var(--space-md);
	left: var(--space-md);
	background: var(--color-surface);
	color: var(--color-text);
	padding: var(--space-xs) var(--space-md);
	border-radius: var(--radius-full);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	box-shadow: var(--shadow-md);
}

.cake-card .cake-content {
	padding: var(--space-lg);
}

.cake-card .cake-title {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: var(--space-sm);
	line-height: 1.3;
}

.cake-card .cake-title a {
	color: var(--color-text);
}

.cake-card .cake-title a:hover {
	color: var(--color-primary);
}

.cake-card .cake-excerpt {
	color: var(--color-text-light);
	font-size: 0.9375rem;
	margin-bottom: var(--space-md);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cake-meta {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
	margin-bottom: var(--space-md);
	padding-top: var(--space-md);
	border-top: 1px solid var(--color-border-light);
}

.cake-price {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-primary);
}

.cake-prep-time {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	color: var(--color-text-muted);
	font-size: 0.875rem;
}

.cake-prep-time svg {
	stroke: var(--color-primary);
}

.cake-weight {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	color: var(--color-text-muted);
	font-size: 0.875rem;
}

.cake-weight svg {
	stroke: var(--color-primary);
}

.cake-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	color: var(--color-primary);
	font-weight: 500;
	font-size: 0.9375rem;
}

.cake-link svg {
	transition: transform var(--transition-fast);
}

.cake-link:hover svg {
	transform: translateX(4px);
}

/* ==========================================================================
   Categories Section
   ========================================================================== */

.categories-section {
	padding: var(--space-3xl) var(--space-lg);
	background: var(--color-surface);
}

.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--space-lg);
	max-width: 1000px;
	margin: 0 auto;
}

.category-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--space-xl);
	background: var(--color-background);
	border-radius: var(--radius-lg);
	text-align: center;
	transition: all var(--transition-base);
}

.category-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.category-icon {
	width: 60px;
	height: 60px;
	margin-bottom: var(--space-md);
	color: var(--color-primary);
}

.category-icon svg {
	width: 100%;
	height: 100%;
}

.category-name {
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: var(--space-xs);
}

.category-count {
	font-size: 0.875rem;
	color: var(--color-text-muted);
}

/* ==========================================================================
   Archive Page
   ========================================================================== */

.archive-header {
	background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-surface) 100%);
	padding: var(--space-3xl) var(--space-lg);
	text-align: center;
}

.archive-title {
	font-family: var(--font-heading);
	font-size: 2.5rem;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: var(--space-sm);
}

.archive-description {
	font-size: 1.125rem;
	color: var(--color-text-light);
	max-width: 600px;
	margin: 0 auto;
}

.archive-filters {
	padding: var(--space-lg);
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border-light);
}

.category-filters {
	display: flex;
	gap: var(--space-sm);
	justify-content: center;
	flex-wrap: wrap;
}

.filter-btn {
	padding: var(--space-sm) var(--space-lg);
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-full);
	color: var(--color-text);
	font-size: 0.875rem;
	font-weight: 500;
	transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: white;
}

.archive-pagination {
	padding: var(--space-xl);
	text-align: center;
}

/* ==========================================================================
   Single Cake Page
   ========================================================================== */

.single-cake-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-2xl);
	padding: var(--space-2xl) var(--space-lg);
	max-width: 1200px;
	margin: 0 auto;
}

.single-cake-image {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-xl);
	overflow: hidden;
	box-shadow: var(--shadow-xl);
	background: var(--color-primary-light);
}

.single-cake-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.featured-badge {
	position: absolute;
	top: var(--space-lg);
	right: var(--space-lg);
	background: var(--color-primary);
	color: white;
	padding: var(--space-xs) var(--space-md);
	border-radius: var(--radius-full);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.single-cake-header {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.cake-categories {
	display: flex;
	gap: var(--space-sm);
	flex-wrap: wrap;
	margin-bottom: var(--space-md);
}

.category-tag {
	background: var(--color-primary-light);
	color: var(--color-primary-dark);
	padding: var(--space-xs) var(--space-md);
	border-radius: var(--radius-full);
	font-size: 0.8125rem;
	font-weight: 500;
}

.category-tag:hover {
	background: var(--color-primary);
	color: white;
}

.single-cake-title {
	font-family: var(--font-heading);
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: var(--space-md);
	line-height: 1.2;
}

.single-cake-excerpt {
	font-size: 1.125rem;
	color: var(--color-text-light);
	margin-bottom: var(--space-xl);
	line-height: 1.8;
}

.cake-details {
	display: flex;
	gap: var(--space-xl);
	padding: var(--space-lg);
	background: var(--color-background);
	border-radius: var(--radius-lg);
}

.detail-item {
	display: flex;
	flex-direction: column;
}

.detail-label {
	font-size: 0.75rem;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: var(--space-xs);
}

.detail-value {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-text);
}

.detail-item.price .detail-value {
	color: var(--color-primary);
}

.single-cake-content {
	padding: var(--space-2xl) var(--space-lg);
	max-width: 1200px;
	margin: 0 auto;
}

.cake-description {
	background: var(--color-surface);
	padding: var(--space-xl);
	border-radius: var(--radius-lg);
	margin-bottom: var(--space-2xl);
}

.cake-description h2 {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: var(--space-md);
}

.cake-description p {
	color: var(--color-text-light);
	line-height: 1.8;
}

/* Related Cakes */
.related-cakes {
	margin-top: var(--space-2xl);
	padding-top: var(--space-2xl);
	border-top: 1px solid var(--color-border-light);
}

.related-cakes h3 {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: var(--space-lg);
	text-align: center;
}

.related-cakes-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-lg);
}

/* Post Navigation */
.post-navigation {
	padding: var(--space-xl);
	background: var(--color-surface);
	border-top: 1px solid var(--color-border-light);
}

.nav-links {
	display: flex;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
}

.nav-subtitle {
	display: block;
	font-size: 0.75rem;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: var(--space-xs);
}

.nav-title {
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--color-text);
}

.nav-links a:hover .nav-title {
	color: var(--color-primary);
}

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

.site-footer {
	background: var(--color-text);
	color: var(--color-background);
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: var(--space-lg) var(--space-lg);
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: var(--space-lg);
	padding-bottom: var(--space-md);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: var(--space-md);
}

.footer-widgets .widget-title {
	color: var(--color-background);
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: var(--space-md);
}

.footer-widgets a {
	color: rgba(255, 255, 255, 0.7);
}

.footer-widgets a:hover {
	color: var(--color-primary-light);
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

.site-info {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.75rem;
}

.footer-navigation .footer-menu {
	display: flex;
	list-style: none;
	gap: var(--space-md);
}

.footer-navigation a {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.75rem;
}

.footer-navigation a:hover {
	color: var(--color-primary-light);
}

/* ==========================================================================
   No Results
   ========================================================================== */

.no-results {
	text-align: center;
	padding: var(--space-3xl) var(--space-lg);
}

.no-results .page-title {
	font-family: var(--font-heading);
	font-size: 2rem;
	margin-bottom: var(--space-md);
}

.no-results .page-content {
	color: var(--color-text-light);
}

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

@media (max-width: 1024px) {
	.single-cake-hero {
		grid-template-columns: 1fr;
	}
	
	.related-cakes-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.header-container {
		padding: var(--space-xs) var(--space-md);
	}
	
	.menu-toggle {
		display: block;
	}
	
	.main-navigation ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--color-surface);
		flex-direction: column;
		padding: var(--space-md);
		box-shadow: var(--shadow-lg);
	}
	
	.main-navigation.toggled ul {
		display: flex;
	}
	
	.hero-section {
		padding: var(--space-lg) var(--space-md);
		min-height: 40vh;
	}
	
	.hero-title {
		font-size: 2rem;
	}
	
	.hero-actions {
		flex-direction: column;
		align-items: center;
	}
	
	.section-title {
		font-size: 1.75rem;
	}
	
	.cakes-grid {
		grid-template-columns: 1fr;
		padding: var(--space-md);
	}
	
	.categories-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.cake-details {
		flex-direction: column;
		gap: var(--space-md);
	}
	
	.related-cakes-grid {
		grid-template-columns: 1fr;
	}
	
	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}
	
	.nav-links {
		flex-direction: column;
		gap: var(--space-md);
	}
}

@media (max-width: 480px) {
	.hero-section {
		padding: var(--space-md) var(--space-sm);
		min-height: 30vh;
	}
	
	.categories-grid {
		grid-template-columns: 1fr;
	}
	
	.category-filters {
		flex-direction: column;
		align-items: stretch;
	}
	
	.filter-btn {
		text-align: center;
	}
}

/* ==========================================================================
   Footer Block Content
   ========================================================================== */

.site-footer .footer-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: var(--space-sm) 0;
}

.site-footer .footer-content .widget {
	margin-bottom: 0;
}

.site-footer .footer-content p,
.site-footer .footer-content h1,
.site-footer .footer-content h2,
.site-footer .footer-content h3,
.site-footer .footer-content h4,
.site-footer .footer-content h5,
.site-footer .footer-content h6 {
	color: inherit;
}

.site-footer .footer-content a {
	color: rgba(255, 255, 255, 0.8);
}

.site-footer .footer-content a:hover {
	color: #F5E6E0;
}

.site-footer .footer-content .wp-block-group {
	color: rgba(255, 255, 255, 0.6);
}

.site-footer .footer-content .wp-block-navigation__container-link {
	color: rgba(255, 255, 255, 0.6);
}

.site-footer .footer-content .wp-block-navigation__container-link:hover {
	color: #F5E6E0;
}

/* ==========================================================================
   Header Block Content
   ========================================================================== */

.site-header .widget {
	margin-bottom: 0;
	width: 100%;
}

.site-header .wp-block-columns {
	align-items: center;
	gap: 0;
}

.site-header .wp-block-column {
	margin-bottom: 0;
}

.site-header p {
	margin: 0;
}

.site-header p a {
	color: var(--color-text);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.site-header p a:hover {
	color: var(--color-primary);
}

.site-header ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: var(--space-lg);
	justify-content: center;
}

.site-header li {
	margin: 0;
	padding: 0;
}

.site-header li::before {
	content: none;
}

.site-header ul a {
	color: var(--color-text);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9375rem;
	transition: color var(--transition-fast);
}

.site-header ul a:hover {
	color: var(--color-primary);
}

.site-header .wp-block-buttons {
	margin: 0;
}

.site-header .wp-block-button__link {
	font-size: 0.875rem;
}
