/**
 * IF Local Sensation - Product Catalog
 * Stylesheet: styles.css
 * 
 * Color Variables:
 * --green: Primary brand color (#2d6a3f)
 * --green-light: Light green background (#e8f5ec)
 * --green-mid: Medium green accent (#4a9260)
 * --sand: Light beige background (#f7f4ef)
 * --dark: Dark text/primary (#1a1a1a)
 * --muted: Secondary text (#6b6b6b)
 * --border: Border color (#e0dbd3)
 * --white: Pure white (#fff)
 */

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

:root {
	/* Brand Colors */
	--green: #2d6a3f;
	--green-light: #e8f5ec;
	--green-mid: #4a9260;
	--sand: #f7f4ef;
	--dark: #1a1a1a;
	--muted: #6b6b6b;
	--border: #e0dbd3;
	--white: #fff;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'DM Sans', sans-serif;
	background: var(--sand);
	color: var(--dark);
	line-height: 1.5;
}

/* ============================================
   HEADER / HERO SECTION
   ============================================ */
header {
	background: var(--green);
	color: white;
	padding: 52px 40px 44px;
	overflow: hidden;
	position: relative;
}

header::before {
	content: '';
	position: absolute;
	top: -80px;
	right: -80px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
}

.header-inner {
	max-width: 1140px;
	margin: 0 auto;
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

.brand-tag {
	font-size: 10px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 12px;
}

header h1 {
	font-family: 'DM Serif Display', serif;
	font-size: clamp(30px, 5vw, 52px);
	font-weight: 400;
	line-height: 1.1;
	margin-bottom: 12px;
}

header p {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.68);
	max-width: 480px;
	line-height: 1.7;
}

.header-stats {
	display: flex;
	gap: 28px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-num {
	font-size: 24px;
	font-weight: 500;
}

.stat-label {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.45);
	margin-top: 2px;
}

.qr-hero {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 16px;
	padding: 20px;
	text-align: center;
	min-width: 160px;
}

#main-qr {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
}

#main-qr canvas {
	border-radius: 6px;
}

.qr-hero-label {
	font-size: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.qr-hero-sub {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
	margin-top: 3px;
}

/* ============================================
   FILTER BAR / NAVIGATION
   ============================================ */
.filter-bar {
	background: white;
	border-bottom: 1px solid var(--border);
	padding: 0 40px;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.filter-inner {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	overflow-x: auto;
	scrollbar-width: none;
}

.filter-inner::-webkit-scrollbar {
	display: none;
}

.filter-btn {
	padding: 15px 20px;
	font-size: 13px;
	font-family: 'DM Sans', sans-serif;
	font-weight: 500;
	color: var(--muted);
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition:
		color 0.2s ease,
		border-color 0.2s ease;
}

.filter-btn:hover {
	color: var(--green);
}

.filter-btn.active {
	color: var(--green);
	border-bottom-color: var(--green);
}

/* ============================================
   MAIN CATALOG SECTION
   ============================================ */
.catalog {
	max-width: 1140px;
	margin: 0 auto;
	padding: 48px 40px;
}

.section-block {
	margin-bottom: 60px;
}

.section-label {
	font-size: 10px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 8px;
}

.section-heading {
	font-family: 'DM Serif Display', serif;
	font-size: 24px;
	font-weight: 400;
	color: var(--dark);
	margin-bottom: 28px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--border);
}

/* ============================================
   PRODUCT GRID & CARDS
   ============================================ */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
	gap: 24px;
}

.card {
	background: white;
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.card-img {
	height: 210px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	position: relative;
	background: #f2ede6;
}

.card-img img {
	max-height: 190px;
	max-width: 100%;
	object-fit: contain;
	display: block;
}

.cat-pill {
	position: absolute;
	top: 12px;
	left: 12px;
	font-size: 10px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 20px;
	font-weight: 500;
	color: white;
}

.cat-drinks {
	background: #2d6a3f;
}

.cat-snacks {
	background: #b45309;
}

.card-body {
	padding: 18px 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.card-name {
	font-family: 'DM Serif Display', serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.3;
	margin-bottom: 6px;
}

.card-desc {
	font-size: 12.5px;
	color: var(--muted);
	line-height: 1.6;
	margin-bottom: 14px;
	flex: 1;
}

.tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.tag {
	font-size: 10.5px;
	padding: 3px 9px;
	border-radius: 20px;
	background: var(--green-light);
	color: var(--green);
	font-weight: 500;
}

.tag.orange {
	background: #fef3c7;
	color: #92400e;
}

.nutrients {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px 10px;
	padding: 12px;
	background: var(--sand);
	border-radius: 9px;
	margin-bottom: 0;
}

.n-item {
	display: flex;
	justify-content: space-between;
	font-size: 11.5px;
}

.n-label {
	color: var(--muted);
	text-transform: capitalize;
}

.n-val {
	font-weight: 500;
	color: var(--dark);
}

.card-footer {
	border-top: 1px solid var(--border);
	padding: 14px 20px;
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 16px;
}

.pkg-size {
	font-size: 14px;
	font-weight: 500;
	color: var(--dark);
}

.pkg-pack {
	font-size: 11.5px;
	color: var(--muted);
	margin-top: 2px;
}

.pkg-natural {
	margin-left: auto;
	font-size: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--green);
	border: 1px solid var(--green-mid);
	padding: 3px 8px;
	border-radius: 20px;
	opacity: 0.7;
}

/* ============================================
   QR STRIP SECTION (CTA)
   ============================================ */
.qr-strip {
	background: var(--green);
	color: white;
	padding: 48px 40px;
}

.qr-strip-inner {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 48px;
	flex-wrap: wrap;
}

.qr-strip-text {
	flex: 1;
	min-width: 260px;
}

.qr-strip-text h2 {
	font-family: 'DM Serif Display', serif;
	font-size: 28px;
	font-weight: 400;
	line-height: 1.2;
	margin-bottom: 10px;
}

.qr-strip-text h2 span {
	color: #a8d5b5;
}

.qr-strip-text p {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.7;
	max-width: 420px;
}

.qr-large {
	background: white;
	border-radius: 16px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

#bottom-qr canvas {
	min-width: 160px;
	border-radius: 6px;
}

.qr-large-label {
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--muted);
	text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
	background: #1a1a1a;
	color: rgba(255, 255, 255, 0.4);
	text-align: center;
	padding: 24px 40px;
	font-size: 12px;
	letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 640px) {
	header,
	.catalog,
	.qr-strip,
	footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	.filter-bar {
		padding: 0 20px;
	}

	.grid {
		grid-template-columns: 1fr;
	}

	.qr-hero {
		display: none;
	}

	.qr-strip-inner {
		gap: 24px;
	}

	header h1 {
		font-size: clamp(24px, 4vw, 32px);
	}

	.header-stats {
		gap: 20px;
	}

	.stat-num {
		font-size: 20px;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 14px;
	}

	header {
		padding: 32px 20px 24px;
	}

	.header-inner {
		gap: 20px;
	}

	header h1 {
		font-size: clamp(20px, 3vw, 28px);
		margin-bottom: 8px;
	}

	header p {
		font-size: 13px;
	}

	.header-stats {
		flex-direction: column;
		gap: 12px;
		padding-top: 12px;
	}

	.filter-btn {
		padding: 12px 15px;
		font-size: 12px;
	}

	.catalog {
		padding: 32px 20px;
	}

	.card-name {
		font-size: 15px;
	}

	.card-desc {
		font-size: 11.5px;
	}

	.qr-strip {
		padding: 32px 20px;
	}

	.qr-strip-text h2 {
		font-size: 22px;
	}
}
