/* ============================================
   Eaglesong Woodworks - Custom Styles
   Warm earth tones, mobile-first design
   ============================================ */

/* --- Color Variables --- */
:root {
	--color-dark-wood: #3B2314;
	--color-medium-wood: #6B4226;
	--color-light-wood: #A67B5B;
	--color-cream: #FAF3E8;
	--color-off-white: #FFF9F0;
	--color-forest: #2D5016;
	--color-forest-light: #4A7C28;
	--color-accent: #C17817;
	--color-accent-hover: #D4891F;
	--color-text: #2C2C2C;
	--color-text-muted: #6B6B6B;
	--color-border: #E0D5C7;
}

/* --- Base Styles --- */
body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: var(--color-text);
	background-color: var(--color-off-white);
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	color: var(--color-dark-wood);
}

a {
	color: var(--color-forest);
	transition: color 0.2s ease;
}

a:hover {
	color: var(--color-forest-light);
}

/* --- Navbar --- */
.bg-dark-wood {
	background-color: var(--color-dark-wood) !important;
}

.navbar-brand span {
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: 0.5px;
}

.navbar-dark .nav-link {
	color: rgba(255,255,255,0.85);
	font-weight: 500;
	padding: 0.5rem 1rem;
	transition: color 0.2s ease;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus {
	color: #fff;
}

/* --- Accent / CTA Colors --- */
.bg-accent {
	background-color: var(--color-accent) !important;
}

.btn-accent {
	background-color: var(--color-accent);
	border-color: var(--color-accent);
	color: #fff;
	font-weight: 600;
	padding: 0.6rem 1.5rem;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.btn-accent:hover {
	background-color: var(--color-accent-hover);
	border-color: var(--color-accent-hover);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(193, 120, 23, 0.3);
}

.btn-forest {
	background-color: var(--color-forest);
	border-color: var(--color-forest);
	color: #fff;
	font-weight: 600;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.btn-forest:hover {
	background-color: var(--color-forest-light);
	border-color: var(--color-forest-light);
	color: #fff;
}

.btn-outline-wood {
	border: 2px solid var(--color-medium-wood);
	color: var(--color-medium-wood);
	font-weight: 600;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.btn-outline-wood:hover {
	background-color: var(--color-medium-wood);
	color: #fff;
}

/* --- Hero Section --- */
.hero-section {
	background: linear-gradient(135deg, var(--color-dark-wood) 0%, var(--color-medium-wood) 100%);
	color: #fff;
	padding: 4rem 0;
	position: relative;
	overflow: hidden;
}

.hero-section::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.03)"/></svg>');
	background-size: 30px 30px;
}

.hero-section .container {
	position: relative;
	z-index: 1;
}

.hero-section h1 {
	color: #fff;
	font-size: 2.5rem;
	font-weight: 700;
}

.hero-section p {
	font-size: 1.15rem;
	opacity: 0.9;
}

@media (min-width: 768px) {
	.hero-section {
		padding: 6rem 0;
	}
	.hero-section h1 {
		font-size: 3.2rem;
	}
}

/* --- Product Cards --- */
.product-card {
	border: 1px solid var(--color-border);
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	background: #fff;
	height: 100%;
}

.product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(59, 35, 20, 0.12);
}

.product-card .card-img-top {
	height: 220px;
	object-fit: cover;
	background-color: var(--color-cream);
}

.product-card .card-body {
	padding: 1.25rem;
}

.product-card .card-title {
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.product-card .card-title a {
	color: var(--color-dark-wood);
	text-decoration: none;
}

.product-card .card-title a:hover {
	color: var(--color-accent);
}

.product-price {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--color-forest);
}

.product-price-sale {
	color: #c0392b;
}

.product-price-original {
	text-decoration: line-through;
	color: var(--color-text-muted);
	font-size: 0.9rem;
	font-weight: 400;
}

/* --- Category Filter --- */
.category-filter .btn {
	border-radius: 20px;
	padding: 0.4rem 1.2rem;
	font-size: 0.9rem;
	margin: 0.2rem;
}

.category-filter .btn.active {
	background-color: var(--color-dark-wood);
	border-color: var(--color-dark-wood);
	color: #fff;
}

/* --- Product Detail --- */
.product-detail-img {
	width: 100%;
	max-height: 500px;
	object-fit: cover;
	border-radius: 10px;
	background-color: var(--color-cream);
}

.product-thumbnails img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 6px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: border-color 0.2s ease;
}

.product-thumbnails img:hover,
.product-thumbnails img.active {
	border-color: var(--color-accent);
}

/* --- Cart --- */
.cart-item {
	border-bottom: 1px solid var(--color-border);
	padding: 1rem 0;
}

.cart-item:last-child {
	border-bottom: none;
}

.cart-item-img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 6px;
}

.cart-summary {
	background: var(--color-cream);
	border-radius: 10px;
	padding: 1.5rem;
}

/* --- Section Styling --- */
.section-title {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--color-dark-wood);
	margin-bottom: 1rem;
}

.section-subtitle {
	color: var(--color-text-muted);
	font-size: 1.05rem;
	margin-bottom: 2rem;
}

.bg-cream {
	background-color: var(--color-cream);
}

/* --- Gallery --- */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
}

.gallery-item {
	border-radius: 10px;
	overflow: hidden;
	position: relative;
	cursor: pointer;
}

.gallery-item img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.gallery-item:hover img {
	transform: scale(1.05);
}

/* --- Forms --- */
.form-control:focus,
.form-select:focus {
	border-color: var(--color-light-wood);
	box-shadow: 0 0 0 0.2rem rgba(166, 123, 91, 0.25);
}

/* --- Footer --- */
.text-light-muted {
	color: rgba(255,255,255,0.6) !important;
}

.text-light-muted:hover {
	color: rgba(255,255,255,0.9) !important;
}

footer h5,
footer h6 {
	color: #fff;
}

/* --- Quantity Input --- */
.qty-input {
	display: flex;
	align-items: center;
	gap: 0;
}

.qty-input .btn {
	width: 36px;
	height: 36px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0;
	border: 1px solid var(--color-border);
}

.qty-input .btn:first-child {
	border-radius: 6px 0 0 6px;
}

.qty-input .btn:last-child {
	border-radius: 0 6px 6px 0;
}

.qty-input input {
	width: 50px;
	height: 36px;
	text-align: center;
	border: 1px solid var(--color-border);
	border-left: none;
	border-right: none;
	border-radius: 0;
}

/* --- Placeholder Image --- */
.img-placeholder {
	background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-border) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-light-wood);
	font-size: 3rem;
}

/* --- Alert Styles --- */
.alert-wood {
	background-color: var(--color-cream);
	border-color: var(--color-border);
	color: var(--color-dark-wood);
}

/* --- Badge --- */
.badge-featured {
	background-color: var(--color-accent);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.3rem 0.6rem;
	border-radius: 4px;
}

/* --- Page Header --- */
.page-header {
	background: linear-gradient(135deg, var(--color-dark-wood) 0%, var(--color-medium-wood) 100%);
	color: #fff;
	padding: 2.5rem 0;
	margin-bottom: 2rem;
}

.page-header h1 {
	color: #fff;
	margin-bottom: 0.25rem;
}

.page-header p {
	opacity: 0.85;
	margin-bottom: 0;
}

/* --- Breadcrumb --- */
.breadcrumb-custom {
	background: transparent;
	padding: 0;
	margin-bottom: 0;
}

.breadcrumb-custom .breadcrumb-item a {
	color: rgba(255,255,255,0.7);
	text-decoration: none;
}

.breadcrumb-custom .breadcrumb-item.active {
	color: rgba(255,255,255,0.9);
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
	color: rgba(255,255,255,0.5);
}

/* --- Responsive Adjustments --- */
@media (max-width: 575.98px) {
	.hero-section h1 {
		font-size: 1.8rem;
	}
	.hero-section {
		padding: 3rem 0;
	}
	.product-card .card-img-top {
		height: 180px;
	}
	.section-title {
		font-size: 1.5rem;
	}
	.page-header {
		padding: 1.5rem 0;
	}
}

/* --- Order Confirmation --- */
.order-confirmation {
	text-align: center;
	padding: 3rem 1rem;
}

.order-confirmation .bi-check-circle-fill {
	font-size: 4rem;
	color: var(--color-forest);
}

/* --- Search --- */
.search-bar .form-control {
	border-radius: 25px 0 0 25px;
	border-right: none;
	padding-left: 1.25rem;
}

.search-bar .btn {
	border-radius: 0 25px 25px 0;
}

/* --- Loading spinner --- */
.spinner-wood {
	color: var(--color-accent);
}
