@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

:root {
	--pf-dark: #161311;
	--pf-gold: #b8925a;
	--pf-gold-light: #e8d3ae;
	--pf-cream: #faf7f2;
}

html, body {
	height: 100%;
}

body {
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	color: #2a2622;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body > main {
	flex: 1 0 auto;
}

body > footer,
body > .reassurance-bar,
body > nav {
	flex-shrink: 0;
}

h1, h2, h3, .hero-title {
	font-family: 'Playfair Display', Georgia, serif;
}

.reassurance-bar {
	background: var(--pf-dark);
	color: #fff;
	letter-spacing: .02em;
}

.social-links a {
	color: rgba(255,255,255,.7);
	font-size: 1rem;
	line-height: 1;
	transition: color .15s ease;
}

.social-links a:hover {
	color: var(--pf-gold-light);
}

.main-navbar {
	background: #fff;
	box-shadow: 0 .15rem .75rem rgba(0,0,0,.06);
	padding-top: .6rem;
	padding-bottom: .6rem;
}

.site-logo {
	height: 52px;
	width: auto;
}

.nav-search {
	width: 100%;
	max-width: 420px;
}

.nav-search input {
	border-radius: 999px;
	padding: .5rem 1rem .5rem 2.5rem;
	background: var(--pf-cream);
	border: 1px solid #e8dfd0;
}

.nav-search input:focus {
	background: #fff;
	border-color: var(--pf-gold);
	box-shadow: 0 0 0 .2rem rgba(184,146,90,.15);
}

.nav-search-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #a89a86;
	pointer-events: none;
	z-index: 2;
}

.nav-actions {
	flex-shrink: 0;
}

.nav-cart-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--pf-cream);
	color: var(--pf-dark);
	font-size: 1.15rem;
	transition: background .15s ease;
}

.nav-cart-btn:hover {
	background: var(--pf-gold-light);
	color: var(--pf-dark);
}

.nav-cart-count {
	position: absolute;
	top: -3px;
	right: -3px;
	background: var(--pf-dark);
	color: #fff;
	font-size: .65rem;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	border: 2px solid #fff;
}

.category-menu {
	background: var(--pf-dark);
	border-bottom: 2px solid var(--pf-gold);
}

.category-menu .nav {
	justify-content: center;
	flex-wrap: wrap;
}

.category-menu .nav-link {
	color: #e8dfd2;
	font-size: .85rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: .6rem 1rem;
}

.category-menu .nav-link:hover {
	color: var(--pf-gold-light);
}

/* ---------- Hero carousel ---------- */
.hero-carousel {
	--bs-carousel-control-opacity: .6;
}

.hero-slide {
	min-height: 720px;
	display: flex;
	align-items: center;
	color: #fff;
	position: relative;
	overflow: hidden;
}

.hero-slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
	animation: heroKenBurns 9s ease-in-out infinite alternate;
	will-change: transform;
}

.hero-slide::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.4);
	z-index: 1;
}

@keyframes heroKenBurns {
	from { transform: scale(1); }
	to { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
	.hero-slide-bg {
		animation: none;
	}
}

.hero-slide-1 { background: linear-gradient(135deg, #1a1512, #4a3418 70%, #6b4a1f); }
.hero-slide-2 { background: linear-gradient(135deg, #14181a, #2f3d40 70%, #3f5459); }
.hero-slide-3 { background: linear-gradient(135deg, #1c1512, #3a2a2e 70%, #5c3a3f); }

.hero-slide-content {
	position: relative;
	z-index: 2;
	max-width: 620px;
}

.hero-eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .8rem;
	font-weight: 600;
	color: var(--pf-gold-light);
	margin-bottom: 1rem;
}

.hero-title {
	font-size: clamp(2.2rem, 6vw, 3.8rem);
	font-weight: 700;
	line-height: 1.12;
	margin-bottom: 1.25rem;
}

.hero-subtitle {
	font-size: 1.05rem;
	color: rgba(255,255,255,.85);
	margin-bottom: 1.75rem;
}

.carousel-indicators [data-bs-target] {
	background-color: rgba(255,255,255,.5);
}

.carousel-indicators .active {
	background-color: #fff;
}

/* ---------- USP band ---------- */
.usp-band {
	background: var(--pf-cream);
	border-bottom: 1px solid #eee2d0;
}

.usp-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .35rem;
}

.usp-icon {
	font-size: 1.6rem;
}

.usp-label {
	font-size: .85rem;
	font-weight: 500;
	color: #4a4238;
}

/* ---------- Section layout ---------- */
.section-block {
	padding: 4rem 0;
}

.bg-light-alt {
	background: var(--pf-cream);
}

.section-heading {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 2.5rem;
}

.section-eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .75rem;
	font-weight: 600;
	color: var(--pf-gold);
	margin-bottom: .5rem;
}

.section-heading h2 {
	font-size: 1.9rem;
	margin-bottom: .5rem;
}

.section-lead {
	color: #6b6459;
}

/* ---------- Product / pack cards ---------- */
.product-card {
	border: 1px solid #eee;
	box-shadow: 0 .2rem .6rem rgba(0,0,0,.05);
	transition: transform .18s ease, box-shadow .18s ease;
	overflow: hidden;
}

.product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.1);
}

.product-card-img-wrap {
	position: relative;
	overflow: hidden;
}

.product-card img {
	height: 190px;
	object-fit: cover;
	transition: transform .3s ease;
}

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

.badge-slots {
	position: absolute;
	bottom: .5rem;
	left: .5rem;
	background: rgba(22,19,17,.85);
	color: #fff;
	font-size: .7rem;
	padding: .25rem .6rem;
	border-radius: 999px;
}

/* ---------- Packs: promo section ---------- */
.packs-promo-section {
	background: linear-gradient(135deg, var(--pf-dark), #3d2b12 55%, var(--pf-gold) 145%);
	position: relative;
}

.packs-promo-section .section-eyebrow {
	color: var(--pf-gold-light);
}

.packs-promo-section .section-heading h2 {
	color: #fff;
}

.packs-promo-section .section-lead {
	color: rgba(255,255,255,.8);
}

.pack-promo-card {
	position: relative;
}

.pack-discount-badge {
	position: absolute;
	top: .5rem;
	right: .5rem;
	background: var(--pf-gold);
	color: var(--pf-dark);
	font-size: .75rem;
	font-weight: 700;
	padding: .3rem .55rem;
	border-radius: 999px;
	box-shadow: 0 .2rem .5rem rgba(0,0,0,.25);
}

/* ---------- How it works ---------- */
.how-it-works-steps {
	position: relative;
}

.step-item-card {
	background: #fff;
	border-radius: .85rem;
	padding: 2.25rem 1.5rem 1.75rem;
	height: 100%;
	box-shadow: 0 .3rem 1.1rem rgba(0,0,0,.06);
	transition: transform .22s ease, box-shadow .22s ease;
}

.step-item-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 .9rem 2rem rgba(0,0,0,.12);
}

.step-number {
	position: relative;
	width: 64px;
	height: 64px;
	line-height: 64px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--pf-dark), #3a2a12);
	color: var(--pf-gold-light);
	font-size: 1.5rem;
	margin: 0 auto 1.25rem;
	box-shadow: 0 0 0 4px var(--pf-gold-light);
}

.step-number-badge {
	position: absolute;
	bottom: -6px;
	right: -6px;
	width: 24px;
	height: 24px;
	line-height: 24px;
	border-radius: 50%;
	background: var(--pf-gold);
	color: var(--pf-dark);
	font-size: .75rem;
	font-weight: 700;
	font-family: 'Inter', sans-serif;
	box-shadow: 0 .1rem .3rem rgba(0,0,0,.2);
}

/* ---------- Testimonials ---------- */
.review-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: .5rem;
	padding: 1.75rem;
	height: 100%;
}

.review-stars {
	color: var(--pf-gold);
	letter-spacing: .15em;
	margin-bottom: .75rem;
}

.review-text {
	font-style: italic;
	color: #4a4238;
}

.review-author {
	font-weight: 600;
	margin-top: .75rem;
}

/* ---------- CTA band ---------- */
.cta-band {
	background: var(--pf-dark);
	color: #fff;
	padding: 4rem 0;
}

.cta-band h2 {
	color: #fff;
	margin-bottom: .5rem;
}

/* ---------- Pack selector ---------- */
.pack-slot.filled {
	border-color: var(--pf-dark) !important;
	border-width: 2px !important;
}

.pack-slot:hover {
	background: #f8f9fa;
}

#global-search-results .list-group-item {
	cursor: pointer;
}

.thumb-swap {
	border: 2px solid transparent;
}

.thumb-swap.active {
	border-color: var(--pf-dark);
}

/* Bottom-sheet modal on small screens for the pack option picker */
@media (max-width: 576px) {
	.modal-dialog-bottom-sheet {
		margin: 0;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		max-width: 100%;
	}
	.modal-dialog-bottom-sheet .modal-content {
		border-radius: 1rem 1rem 0 0;
		max-height: 85vh;
	}

	.hero-slide {
		min-height: 520px;
		text-align: center;
		align-items: flex-end;
		padding-bottom: 2.5rem;
	}

	.hero-slide-content {
		max-width: 100%;
	}

	.carousel-control-prev,
	.carousel-control-next {
		display: none;
	}

	.reassurance-bar .container {
		flex-wrap: nowrap !important;
		overflow-x: auto;
		justify-content: flex-start !important;
		gap: 1.25rem !important;
		-ms-overflow-style: none;
		scrollbar-width: none;
	}

	.reassurance-bar .container::-webkit-scrollbar {
		display: none;
	}

	.reassurance-bar span {
		white-space: nowrap;
	}

	.category-menu .nav {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-ms-overflow-style: none;
		scrollbar-width: none;
	}

	.category-menu .nav::-webkit-scrollbar {
		display: none;
	}

	.category-menu .nav-link {
		white-space: nowrap;
	}

	.site-logo {
		height: 42px;
	}

	.section-block {
		padding: 2.5rem 0;
	}

	.section-heading h2 {
		font-size: 1.5rem;
	}

	.cta-band {
		padding: 2.5rem 0;
	}
}

/* ---------- Buttons ---------- */
.btn-dark {
	background: var(--pf-dark);
	border-color: var(--pf-dark);
}

.btn-dark:hover {
	background: #000;
	border-color: #000;
}

/* ---------- Content blocks (admin-managed, homepage) ---------- */
.content-blocks-section .content-block-img-wrap {
	border-radius: .75rem;
	overflow: hidden;
	box-shadow: 0 1rem 2.5rem rgba(0,0,0,.1);
}

.content-blocks-section .content-block-img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}

.content-blocks-section .content-block-img-wrap:hover .content-block-img {
	transform: scale(1.04);
}

.content-blocks-section .content-block-text {
	max-width: 480px;
}

.content-blocks-section .content-block-text h2 {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	margin-bottom: 1rem;
}

.content-blocks-section .content-block-text p {
	color: #6b6459;
	font-size: 1.03rem;
	line-height: 1.75;
	margin-bottom: 1.5rem;
	white-space: pre-line;
}

@media (min-width: 992px) {
	.content-blocks-section .content-block.flex-lg-row-reverse .content-block-text {
		margin-left: auto;
	}
}

@media (max-width: 991px) {
	.content-blocks-section .content-block-img {
		height: 280px;
	}
	.content-blocks-section .content-block-text {
		max-width: 100%;
		text-align: center;
		margin: 0 auto;
	}
}

/* ---------- Admin: topbar ---------- */
.admin-topbar {
	background: var(--pf-dark);
	border-bottom: 2px solid var(--pf-gold);
	min-height: 60px;
	z-index: 1031;
}

.admin-topbar .navbar-brand {
	color: #fff;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.15rem;
}

.admin-user-btn {
	background: rgba(255,255,255,.08);
	color: #fff;
	border: 1px solid rgba(255,255,255,.15);
	border-radius: 999px;
	padding: .25rem .75rem .25rem .25rem;
}

.admin-user-btn:hover,
.admin-user-btn:focus {
	background: rgba(255,255,255,.16);
	color: #fff;
}

.admin-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--pf-gold);
	color: var(--pf-dark);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: .8rem;
}

.admin-logo-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: .5rem;
	background: #fff;
	padding: 3px;
	overflow: hidden;
	flex-shrink: 0;
}

.admin-logo-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ---------- Admin: body / sidebar ---------- */
.admin-body {
	min-height: calc(100vh - 60px);
}

/*
 * Bootstrap's responsive offcanvas (.offcanvas-lg) forces
 * background-color: transparent !important at the lg breakpoint so it can
 * sit inline as a normal sidebar instead of a drawer overlay — that was
 * wiping out the dark background here, so it has to be re-forced with
 * !important on both the element and its .offcanvas-body.
 */
.admin-sidebar {
	width: 240px;
	background: #1a1a1a !important;
	border-right: 1px solid rgba(255,255,255,.08) !important;
}

.admin-sidebar .offcanvas-body {
	background: #1a1a1a !important;
}

.admin-sidebar .nav-link {
	color: #ccc;
	font-size: .9rem;
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .55rem .75rem;
	border-radius: .4rem;
	border-left: 3px solid transparent;
}

.admin-sidebar .nav-link i {
	font-size: 1.05rem;
	width: 1.2rem;
	text-align: center;
	color: var(--pf-gold-light);
}

.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
	color: #fff;
	background: rgba(255,255,255,.08);
}

.admin-sidebar .nav-link.active {
	border-left-color: var(--pf-gold);
}

.admin-sidebar hr {
	border-color: rgba(255,255,255,.1);
}

@media (min-width: 992px) {
	.admin-sidebar {
		min-height: calc(100vh - 60px);
	}
}

/* ---------- Admin: content, cards, tables ---------- */
.admin-content {
	background: #f5f3f0;
	flex: 1;
	min-width: 0;
}

.admin-content h1,
.admin-content h2 {
	font-family: 'Playfair Display', Georgia, serif;
}

.admin-content .card {
	border: none;
	border-radius: .6rem;
	box-shadow: 0 .1rem .5rem rgba(0,0,0,.06);
}

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

.stat-icon {
	width: 48px;
	height: 48px;
	border-radius: .7rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	flex-shrink: 0;
}

.admin-content .table-responsive {
	background: #fff;
	border-radius: .6rem;
	box-shadow: 0 .1rem .5rem rgba(0,0,0,.06);
	padding: .25rem;
}

.admin-content .table {
	margin-bottom: 0;
}

.admin-content .table thead th {
	background: var(--pf-dark);
	color: #fff;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-weight: 600;
	border: none;
	white-space: nowrap;
	padding: .75rem;
}

.admin-content .table tbody td {
	padding: .65rem .75rem;
	vertical-align: middle;
}

.admin-content .table tbody tr:hover {
	background: #faf5eb;
}

.admin-content .table .badge {
	font-weight: 500;
	padding: .4em .7em;
}

.admin-content .dataTables_wrapper .dataTables_filter {
	margin-bottom: .75rem;
}

.admin-content .dataTables_wrapper .dataTables_filter input {
	border: 1px solid #ddd;
	border-radius: .4rem;
	padding: .3rem .6rem;
	margin-left: .5rem;
}

.admin-content .dataTables_wrapper .dataTables_info {
	color: #6b6459;
	font-size: .85rem;
}

.admin-content .dataTables_wrapper .dataTables_paginate .page-link {
	border-radius: .4rem !important;
	margin: 0 .1rem;
	color: var(--pf-dark);
}

.admin-content .dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
	background: var(--pf-dark);
	border-color: var(--pf-dark);
	color: #fff;
}

/* ---------- Toast feedback (quick add to cart) ---------- */
.app-toast-container {
	position: fixed;
	bottom: 1.25rem;
	right: 1.25rem;
	z-index: 2000;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	max-width: min(320px, calc(100vw - 2rem));
}

.app-toast {
	background: var(--pf-dark);
	color: #fff;
	padding: .75rem 1.1rem;
	border-radius: .5rem;
	box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.25);
	font-size: .9rem;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease;
	border-left: 3px solid var(--pf-gold);
}

.app-toast.show {
	opacity: 1;
	transform: translateY(0);
}

.app-toast-error {
	border-left-color: #dc3545;
}
