/* =========================================================
   INDEX PAGE CSS (HOME PAGE ONLY)
   Sections: Hero, Featured, Sale, Commission, Portfolio, Why Us
   ========================================================= */

/* ========== HERO SECTION ========== */
.hero-section {
	min-height: calc(100vh - var(--header-height));
	display: flex;
	align-items: center;
	padding: 40px 0;
	background: var(--bg);
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 40px;
}

.hero-label,
.section-mini-label {
	display: inline-block;
	margin-bottom: 12px;
	padding: 6px 14px;
	border-radius: var(--radius-full);
	background: var(--surface);
	color: var(--accent);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-family: "Inter", sans-serif;
	border: 1px solid var(--border);
}

.hero-copy h1 {
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1.12;
	color: var(--text);
	margin-bottom: 16px;
	max-width: 600px;
	font-family: "Montserrat", sans-serif;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.hero-copy h1 .highlight {
	color: var(--accent);
}

.hero-copy p {
	font-size: 1.05rem;
	color: var(--text-light);
	max-width: 520px;
	margin-bottom: 28px;
	line-height: 1.6;
	font-family: "Inter", sans-serif;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero-visual img {
	width: 100%;
	height: auto;
	max-height: 500px;
	object-fit: cover;
	border-radius: var(--radius-lg);
	display: block;
}

/* ========== HOME SECTIONS CONTAINER ========== */
.home-section {
	padding: 48px 0 56px;
}

.soft-section {
	background: var(--surface);
}

.section-head {
	margin-bottom: 28px;
}

.section-head h2 {
	font-size: 1.6rem;
	color: var(--text);
	margin-bottom: 8px;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
}

.section-head p {
	max-width: 600px;
	color: var(--text-light);
	font-size: 0.95rem;
	font-family: "Inter", sans-serif;
}

/* ========== FEATURED CATEGORIES ========== */
.featured-category-group {
	margin-bottom: 40px;
}

.featured-category-title {
	font-size: 1.2rem;
	color: var(--text);
	margin-bottom: 16px;
	padding-left: 12px;
	border-left: 3px solid var(--accent);
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
}

.sale-badge-header {
	background: var(--accent);
	color: white;
	font-size: 0.85rem;
	padding: 4px 12px;
	border-radius: var(--radius-full);
	display: inline-block;
	vertical-align: middle;
	margin-left: 8px;
}

.featured-action {
	margin-top: 28px;
	text-align: center;
}

/* ========== COMMISSION BANNER ========== */
.commission-banner {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 20px;
	align-items: stretch;
}

.commission-copy,
.commission-card {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 28px;
}

.commission-copy h2 {
	font-size: 1.6rem;
	color: var(--text);
	margin-bottom: 12px;
}

.commission-copy p {
	color: var(--text-light);
	margin-bottom: 24px;
	line-height: 1.7;
}

.commission-card {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--surface);
}

.commission-pill {
	padding: 12px 20px;
	border-radius: var(--radius-full);
	background: var(--accent);
	color: white;
	font-weight: 700;
}

/* ========== PORTFOLIO PREVIEW ========== */
.portfolio-preview {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 20px;
	align-items: center;
}

.portfolio-art-card,
.portfolio-copy-card {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}

.portfolio-art-card {
	padding: 12px;
	display: flex;
	justify-content: center;
}

.portfolio-art-card img {
	width: 100%;
	max-height: 400px;
	object-fit: contain;
}

.portfolio-copy-card {
	padding: 32px;
}

.portfolio-copy-card h3 {
	font-size: 1.4rem;
	margin-bottom: 12px;
}

.portfolio-copy-card p {
	color: var(--text-light);
	margin-bottom: 24px;
	line-height: 1.7;
}

/* ========== WHY KUMIRU CARDS ========== */
.home-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.home-card {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 24px;
	transition: all var(--transition);
}

.home-card:hover {
	transform: translateY(-2px);
	border-color: var(--accent);
	box-shadow: var(--shadow-md);
}

.home-card h3 {
	font-size: 1rem;
	margin-bottom: 8px;
	font-weight: 700;
}

.home-card p {
	color: var(--text-light);
	font-size: 0.9rem;
	line-height: 1.6;
}

/* ========== PRODUCT CARDS (UNIFIED - Used in Featured & Sale) ========== */
.product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.product-card {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: all var(--transition);
	display: flex;
	flex-direction: column;
}

.product-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: var(--accent);
}

.product-card-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.product-image-wrapper {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--surface);
}

.product-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.product-card:hover .product-image {
	transform: scale(1.05);
}

/* Badges on Image */
.stock-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 10px;
	border-radius: var(--radius-full);
	font-size: 0.65rem;
	font-weight: 700;
	font-family: "Inter", sans-serif;
	z-index: 2;
	text-transform: uppercase;
}

.stock-badge.out-of-stock {
	background: rgba(239, 68, 68, 0.9);
	color: white;
}

.stock-badge.low-stock {
	background: rgba(245, 158, 11, 0.9);
	color: white;
}

.sale-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--danger);
	color: white;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: var(--radius-full);
	z-index: 2;
}

/* Product Info */
.product-info {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.product-category {
	font-size: 0.7rem;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--text-light);
	letter-spacing: 0.03em;
}

.product-name {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--text);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.product-price {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.original-price {
	font-size: 0.75rem;
	color: var(--text-light);
	text-decoration: line-through;
}

.sale-price {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--danger);
}

.regular-price {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--text);
}

/* Product Meta: Rating LEFT | Stock RIGHT */
.product-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 6px;
	flex-wrap: wrap;
	gap: 8px;
}

.rating-stars {
	display: flex;
	align-items: center;
	gap: 2px;
}

.rating-stars .star {
	color: #d1d5db;
	font-size: 11px;
}

.rating-stars .star.filled {
	color: #fbbf24;
}

.rating-stars .rating-count {
	font-size: 10px;
	color: var(--text-light);
	margin-left: 4px;
}

.stock-status {
	display: flex;
	gap: 6px;
}

.stock-in,
.stock-low,
.stock-out {
	font-size: 10px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 20px;
}

.stock-in {
	background: #d1fae5;
	color: #065f46;
}

.stock-low {
	background: #fef3c7;
	color: #92400e;
}

.stock-out {
	background: #fee2e2;
	color: #991b1b;
}

/* Add to Cart Button */
.add-to-cart-form {
	padding: 0 12px 12px;
	margin-top: auto;
}

.add-to-cart-btn {
	width: 100%;
	padding: 10px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--text);
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition);
}

.add-to-cart-btn:hover {
	background: var(--text);
	color: white;
	border-color: var(--text);
}

.add-to-cart-btn.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ========== ANIMATIONS ========== */
.animate-on-scroll {
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.6s ease,
		transform 0.6s ease;
}

.animate-on-scroll.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ========== PRODUCT GRID RESPONSIVE ========== */
.product-grid {
	display: grid;
	gap: 20px;
}

@media (width: 768px) {
	.hero-section {
		height: 90vh;
	}

	.hero-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero-content h1,
	.hero-content p {
		margin-left: auto;
		margin-right: auto;

	}

	.hero-actions {
		justify-content: center;
	}

	.hero-actions .primary-btn,
	.hero-actions .secondary-btn {
		width: 30%;	
	}

	.featured-action a {
		width: 50%;
	}

}

@media (max-width: 400px) {
	.hero-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero-content h1 {
		font-size: 1.7rem;
	}

	.commission-banner, .portfolio-preview,
	.home-card-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}
}