/* /assets/css/style.css */
/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
	/* Brand */
	--brand: #532f99;
	--brand-light: #6b3fc4;
	--brand-lighter: #b794f6;
	--brand-dark: #3c2170;
	--brand-50: #f5f1fc;
	--brand-100: #ece3fa;

	/* Ink */
	--ink: #1a1625;
	--ink-soft: #4a4458;
	--ink-faint: #8983a0;

	/* Surface */
	--bg: #faf8fc;
	--surface: #ffffff;
	--border: #ece8f2;

	/* Semantic (kept consistent with existing product UI) */
	--success: #16a34a;
	--success-bg: #f0fdf4;
	--danger: #e11d48;
	--danger-bg: #fef2f2;

	/* Type */
	--font-body: "Hind Siliguri", "Noto Sans Bengali", sans-serif;
	--font-display: "Fraunces", "Hind Siliguri", serif;

	/* Shape */
	--radius-sm: 10px;
	--radius-md: 16px;
	--radius-lg: 22px;
	--radius-full: 999px;

	/* Shadow */
	--shadow-sm: 0 1px 3px rgba(26, 22, 37, 0.06);
	--shadow-md: 0 8px 24px rgba(26, 22, 37, 0.08);
	--shadow-lg: 0 16px 48px rgba(26, 22, 37, 0.14);
	--shadow-brand: 0 10px 30px rgba(83, 47, 153, 0.25);

	/* Motion */
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	background: var(--bg);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	display: block;
}
a {
	text-decoration: none;
	color: inherit;
}

::selection {
	background: var(--brand-lighter);
	color: var(--ink);
}

:focus-visible {
	outline: 2px solid var(--brand-light);
	outline-offset: 2px;
	border-radius: 4px;
}

.container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 16px;
}

.product-header {
	display: none;
}

/* Shared section title pattern (used by FAQ, About, Contact) */
.section-title {
	text-align: center;
	max-width: 620px;
	margin: 0 auto 40px;
}
.section-eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--brand-light);
	background: var(--brand-50);
	padding: 6px 14px;
	border-radius: var(--radius-full);
	margin-bottom: 14px;
}
.section-title h2 {
	font-family: var(--font-display);
	font-size: 1.9rem;
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -0.01em;
	margin-bottom: 10px;
}
.section-subtitle {
	color: var(--ink-soft);
	font-size: 0.98rem;
	line-height: 1.7;
}

/* ============================================================
   STORE HOME — HERO
   ============================================================ */
.hero {
	position: relative;
	background: linear-gradient(165deg, #1f1733 0%, #1a1625 55%, #150f22 100%);
	color: white;
	padding: 56px 16px 44px;
	text-align: center;
	overflow: hidden;
	isolation: isolate;
}

.hero-glow {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(560px 360px at 18% -10%, rgba(107, 63, 196, 0.45), transparent 60%),
		radial-gradient(480px 320px at 100% 10%, rgba(183, 148, 246, 0.18), transparent 55%);
	pointer-events: none;
	z-index: 0;
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 680px;
	margin: 0 auto;
}

.trust-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(183, 148, 246, 0.35);
	padding: 7px 16px 7px 12px;
	border-radius: var(--radius-full);
	font-size: 0.82rem;
	font-weight: 600;
	color: #d8c8f7;
	margin-bottom: 22px;
	backdrop-filter: blur(6px);
}
.trust-pill-icon {
	width: 15px;
	height: 15px;
	color: #b794f6;
	flex-shrink: 0;
}

.hero h1 {
	font-family: var(--font-body);
	font-size: 1.85rem;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 16px;
	letter-spacing: -0.01em;
}

.hero-accent {
	color: #cbb3f5;
}

.hero-sub {
	opacity: 0.78;
	line-height: 1.8;
	font-size: 0.98rem;
	max-width: 540px;
	margin: 0 auto 28px;
}

.hero-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-bottom: 36px;
}

.hero-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: white;
	color: var(--ink);
	padding: 15px 30px;
	border-radius: var(--radius-full);
	font-weight: 700;
	font-size: 1rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	transition:
		transform 0.25s var(--ease),
		box-shadow 0.25s var(--ease);
}
.hero-btn svg {
	width: 18px;
	height: 18px;
	transition: transform 0.25s var(--ease);
}

.hero-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}
.hero-btn:hover svg {
	transform: translateX(3px);
}
.hero-btn:active {
	transform: translateY(0);
}

.hero-btn-secondary {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.92rem;
	font-weight: 600;
	padding: 8px 4px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-btn-secondary:hover {
	color: white;
	border-color: rgba(255, 255, 255, 0.6);
}

.trust-strip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-lg);
	padding: 18px 14px;
	flex-wrap: wrap;
}

.trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
	flex: 1 1 150px;
	min-width: 150px;
}
.trust-item svg {
	width: 26px;
	height: 26px;
	color: #b794f6;
	flex-shrink: 0;
}
.trust-item div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.trust-item strong {
	font-size: 0.84rem;
	font-weight: 700;
	color: white;
	line-height: 1.3;
}
.trust-item span {
	font-size: 0.76rem;
	color: rgba(255, 255, 255, 0.55);
}

.trust-divider {
	width: 1px;
	height: 34px;
	background: rgba(255, 255, 255, 0.12);
	flex-shrink: 0;
}

@media (max-width: 640px) {
	.trust-divider {
		display: none;
	}
	.trust-strip {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}
	.trust-item {
		min-width: 0;
	}
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
	padding: 40px 16px;
	background: var(--bg);
}

.features-inner {
	max-width: 1140px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.feature {
	background: var(--surface);
	padding: 24px 18px;
	border-radius: var(--radius-md);
	text-align: center;
	border: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
	transition:
		transform 0.25s var(--ease),
		box-shadow 0.25s var(--ease),
		border-color 0.25s var(--ease);
}

.feature:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: var(--brand-100);
}

.icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
	border-radius: 14px;
	background: var(--brand-50);
	color: var(--brand);
}
.icon svg {
	width: 24px;
	height: 24px;
}

.feature h3 {
	font-size: 0.98rem;
	font-weight: 700;
	margin-bottom: 5px;
	color: var(--ink);
}
.feature p {
	font-size: 0.84rem;
	color: var(--ink-faint);
	line-height: 1.5;
}

/* ============================================================
   PRODUCT PAGE & FORMS
   ============================================================ */
.product-page {
	max-width: 680px;
	margin: 0 auto;
	padding-bottom: 60px;
}

.product-gallery {
	background: white;
}
.gallery-main {
	width: 100%;
	aspect-ratio: 1/1;
	object-fit: cover;
}
.product-details {
	padding: 20px 16px;
}
.product-details .offer-badge {
	position: static;
	display: inline-block;
	margin-bottom: 12px;
}
.product-title {
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 8px;
}
.product-page .product-subtitle {
	font-size: 0.95rem;
	color: #555;
	line-height: 1.6;
	margin-bottom: 16px;
}
.product-page .price-wrap {
	margin-bottom: 12px;
	gap: 10px;
}
.product-page .current-price {
	font-size: 1.6rem;
}
.discount-pct {
	background: #fef2f2;
	color: #e11d48;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
}
.delivery-badge {
	display: inline-block;
	background: #f0fdf4;
	color: #16a34a;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 20px;
}

.variants-wrap {
	margin-bottom: 20px;
}
.variants-label {
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 10px;
}
.variants-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.variant-btn {
	padding: 8px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 999px;
	background: white;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.875rem;
	transition: all 0.15s ease;
}
.variant-btn:hover,
.variant-btn.active {
	border-color: #111;
	background: #111;
	color: white;
}

.qty-wrap {
	margin-bottom: 24px;
}
.qty-controls {
	display: flex;
	align-items: center;
	gap: 0;
	width: fit-content;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
}
.qty-controls button {
	width: 44px;
	height: 44px;
	border: none;
	background: #f5f5f5;
	cursor: pointer;
	font-size: 1.2rem;
	font-weight: 700;
	transition: background 0.15s;
}
.qty-controls button:hover {
	background: #e5e7eb;
}
#qtyDisplay {
	min-width: 48px;
	text-align: center;
	font-size: 1.1rem;
	font-weight: 700;
	padding: 0 8px;
}

.order-form {
	background: white;
	border-radius: 20px;
	padding: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.order-form h2 {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 16px;
}
.form-group {
	margin-bottom: 16px;
}
.form-group label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	font-family: inherit;
	font-size: 0.95rem;
	color: #111;
	transition: border-color 0.15s ease;
	outline: none;
	background: #fafafa;
}
.form-group input:focus,
.form-group textarea:focus {
	border-color: #111;
	background: white;
}
.form-group textarea {
	resize: vertical;
}
.form-msg {
	padding: 12px 16px;
	border-radius: 12px;
	margin-bottom: 16px;
	font-size: 0.9rem;
	font-weight: 600;
}
.form-msg.success {
	background: #f0fdf4;
	color: #16a34a;
}
.form-msg.error {
	background: #fef2f2;
	color: #e11d48;
}
.place-order-btn {
	width: 100%;
	padding: 16px;
	background: #111;
	color: white;
	border: none;
	border-radius: 14px;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	transition:
		background 0.2s ease,
		transform 0.15s ease;
}
.place-order-btn:hover:not(:disabled) {
	background: #e11d48;
	transform: translateY(-1px);
}
.place-order-btn:disabled {
	background: #9ca3af;
	cursor: not-allowed;
}
.place-order-btn.loading {
	opacity: 0.7;
	pointer-events: none;
}
.cod-note {
	text-align: center;
	font-size: 0.85rem;
	color: #16a34a;
	margin-top: 12px;
	font-weight: 600;
}

/* ============================================================
   ORDER SUCCESS PAGE
   ============================================================ */
.success-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
}
.success-card {
	background: white;
	border-radius: 24px;
	padding: 32px 24px;
	max-width: 480px;
	width: 100%;
	text-align: center;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}
.success-icon {
	font-size: 3.5rem;
	margin-bottom: 16px;
}
.success-card h1 {
	font-size: 1.6rem;
	font-weight: 700;
	margin-bottom: 8px;
}
.order-ref {
	color: #666;
	font-size: 0.9rem;
	margin-bottom: 20px;
}
.order-summary {
	background: #f9f9f9;
	border-radius: 16px;
	padding: 16px;
	margin-bottom: 20px;
	text-align: left;
}
.summary-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	font-size: 0.9rem;
}
.summary-row:last-child {
	border-bottom: none;
}
.summary-row span:first-child {
	color: #666;
	white-space: nowrap;
	min-width: 90px;
}
.summary-row span:last-child {
	font-weight: 600;
	text-align: right;
}
.total-row span:last-child {
	color: #e11d48;
	font-size: 1.1rem;
}
.success-note {
	color: #555;
	font-size: 0.9rem;
	line-height: 1.6;
	margin-bottom: 24px;
}
.back-btn {
	display: inline-block;
	background: #111;
	color: white;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	transition:
		background 0.15s,
		transform 0.15s;
}
.back-btn:hover {
	background: #e11d48;
	transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE OVERRIDES (Consolidated at the very end)
   ============================================================ */
@media (min-width: 480px) {
	.features-inner {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 760px) {
	.features-inner {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (min-width: 768px) {
	.products-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.hero {
		padding: 88px 16px 56px;
	}
	.hero h1 {
		font-size: 2.7rem;
	}
	.hero-sub {
		font-size: 1.05rem;
	}
	.hero-actions {
		flex-direction: row;
		justify-content: center;
	}

	.section-title h2 {
		font-size: 2.3rem;
	}

	.product-page {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: start;
		gap: 0;
		max-width: 960px;
	}

	.product-gallery {
		position: sticky;
		top: 52px;
	}

	.gallery-main {
		aspect-ratio: auto;
		min-height: 480px;
	}
}
