/* ===== Material Design 3 - BePawtastic Admin & Customer Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Chewy&family=Roboto:wght@300;400;500;700&display=swap');

:root {
	--md-primary: #c2185b;
	--md-primary-dark: #a3154a;
	--md-primary-container: #ffd9e2;
	--md-on-primary: #ffffff;
	--md-on-primary-container: #2b0012;
	--md-secondary: #7c4d8c;
	--md-secondary-container: #f8d8ff;
	--md-on-secondary-container: #320046;
	--md-surface: #fff8f8;
	--md-surface-container: #f4ebed;
	--md-surface-container-high: #ebe0e3;
	--md-on-surface: #211a1c;
	--md-on-surface-variant: #524346;
	--md-outline: #847376;
	--md-outline-variant: #d6c1c5;
	--md-error: #ba1a1a;
	--md-tertiary: #8c4d5c;
	--md-tertiary-container: #ffd9e0;
	--md-shadow-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	--md-shadow-2: 0 3px 6px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
	--md-shadow-3: 0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10);
	--md-shadow-4: 0 14px 28px rgba(0,0,0,0.20), 0 10px 10px rgba(0,0,0,0.15);
	--md-radius-sm: 8px;
	--md-radius-md: 16px;
	--md-radius-lg: 28px;
	--font-headline: 'Chewy', cursive, 'Roboto', sans-serif;
	--font-body: 'Roboto', 'Noto Sans', system-ui, -apple-system, sans-serif;
	--primary: #c2185b;
	--primary-rgb: 194, 24, 91;
	--bg: #fff8f8;
	--surface: #ffffff;
	--surface-2: #f4ebed;
	--text: #211a1c;
	--muted: #524346;
	--border: rgba(132, 115, 118, 0.20);
	--shadow: var(--md-shadow-2);
	--radius: var(--md-radius-md);
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; transition: all .2s ease; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Admin Navbar ===== */
.navbar {
	background: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid var(--md-outline-variant);
	backdrop-filter: blur(16px);
	padding: .6rem 0;
}

.navbar .navbar-brand {
	font-family: var(--font-headline);
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--md-primary);
	display: inline-flex;
	align-items: center;
	gap: .5rem;
}

.navbar .navbar-brand img { width: 40px; height: 40px; border-radius: var(--md-radius-sm); object-fit: cover; }

.navbar .navbar-toggler {
	border: 2px solid var(--md-outline-variant);
	border-radius: var(--md-radius-sm);
}

.navbar .nav-link {
	font-weight: 500;
	font-size: .9rem;
	color: var(--md-on-surface);
	border-radius: 999px;
	padding: .45rem 1rem;
	transition: all .2s ease;
}

.navbar .nav-link:hover {
	background: var(--md-primary-container);
	color: var(--md-on-primary-container);
}

.navbar .nav-link.active {
	background: var(--md-primary);
	color: var(--md-on-primary);
	box-shadow: var(--md-shadow-1);
}

/* ===== Surfaces (Cards) ===== */
.surface {
	background: var(--surface);
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-radius-md);
	box-shadow: var(--md-shadow-2);
	transition: transform .25s ease, box-shadow .25s ease;
}

.surface:hover {
	box-shadow: var(--md-shadow-3);
}

/* ===== Hero ===== */
.hero {
	padding: 3rem 0 2rem;
}

.hero-title {
	font-family: var(--font-headline);
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 700;
	color: var(--md-primary);
	line-height: 1.15;
	margin-bottom: .75rem;
}

.hero-subtitle {
	color: var(--muted);
	max-width: 52ch;
	font-size: 1.05rem;
	line-height: 1.6;
}

/* ===== Buttons ===== */
.btn-primary {
	background: var(--md-primary);
	border-color: var(--md-primary);
	color: #fff;
	font-weight: 600;
	padding: .7rem 1.5rem;
	border-radius: var(--md-radius-sm);
	box-shadow: var(--md-shadow-1);
	transition: all .2s ease;
	letter-spacing: .02em;
}

.btn-primary:hover {
	background: var(--md-primary-dark);
	border-color: var(--md-primary-dark);
	box-shadow: var(--md-shadow-2);
	transform: translateY(-1px);
}

.btn-outline-dark {
	border-color: var(--md-outline);
	color: var(--md-on-surface);
	font-weight: 500;
	border-radius: var(--md-radius-sm);
	padding: .6rem 1.2rem;
	transition: all .2s ease;
}

.btn-outline-dark:hover {
	background: var(--md-surface-container);
	border-color: var(--md-primary);
	color: var(--md-primary);
}

.btn-outline-light {
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}

.btn-link {
	color: var(--md-primary);
	font-weight: 500;
	text-decoration: none;
}

.btn-link:hover {
	color: var(--md-primary-dark);
	text-decoration: underline;
}

/* ===== Chips / Badges ===== */
.icon-chip {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .5rem .9rem;
	border-radius: 999px;
	background: var(--md-surface-container);
	border: 1px solid var(--md-outline-variant);
	color: var(--md-on-surface);
	font-size: .875rem;
	font-weight: 500;
}

.badge-soft {
	background: var(--md-primary-container);
	border: 1px solid rgba(194, 24, 91, 0.18);
	color: var(--md-on-primary-container);
	font-weight: 600;
	border-radius: 999px;
	padding: .4rem .85rem;
}

/* ===== Sections ===== */
.section { padding: 2.5rem 0; }

.section-title {
	font-family: var(--font-headline);
	font-weight: 700;
	color: var(--md-primary);
	font-size: clamp(1.5rem, 3.5vw, 2.2rem);
	margin-bottom: .5rem;
}

.section-lead {
	color: var(--muted);
	max-width: 70ch;
}

/* ===== Feature Cards ===== */
.feature-card {
	background: var(--surface);
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-radius-md);
	padding: 1.5rem;
	box-shadow: var(--md-shadow-1);
	transition: all .25s ease;
}

.feature-card:hover {
	box-shadow: var(--md-shadow-2);
	transform: translateY(-3px);
}

.feature-icon {
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--md-radius-sm);
	background: var(--md-primary-container);
	color: var(--md-on-primary-container);
	font-size: 1.3rem;
	margin-bottom: .75rem;
}

/* ===== Product Cards ===== */
.product-card {
	background: var(--surface);
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-radius-md);
	overflow: hidden;
	box-shadow: var(--md-shadow-1);
	transition: all .25s ease;
}

.product-card:hover {
	box-shadow: var(--md-shadow-3);
	transform: translateY(-4px);
}

.product-card-media {
	padding: .75rem .75rem 0 .75rem;
}

.product-card-media img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: var(--md-radius-sm);
	display: block;
}

.product-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	flex-wrap: nowrap;
}

.product-card-badge,
.product-card-price {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ===== Typography ===== */
.price {
	font-weight: 700;
	color: var(--md-primary);
	white-space: nowrap;
}

.muted { color: var(--muted); }

.divider {
	height: 1px;
	background: var(--md-outline-variant);
	margin: 1.5rem 0;
}

/* ===== Footer ===== */
.footer {
	margin-top: 2.5rem;
	padding: 2.5rem 0 1.25rem;
	border-top: 1px solid var(--md-outline-variant);
	background: var(--md-surface-container);
}

/* ===== Social ===== */
.social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--md-surface-container);
	border: 1px solid var(--md-outline-variant);
	color: var(--md-primary);
	transition: all .2s ease;
}

.social a:hover {
	background: var(--md-primary);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--md-shadow-1);
}

/* ===== Map ===== */
.map-embed {
	border-radius: var(--md-radius-md);
	overflow: hidden;
	border: 1px solid var(--md-outline-variant);
}

/* ===== Forms ===== */
.form-control,
.form-select {
	background: var(--surface);
	border: 1px solid var(--md-outline-variant);
	color: var(--text);
	border-radius: var(--md-radius-sm);
	padding: .7rem 1rem;
	font-size: .95rem;
	transition: border-color .2s, box-shadow .2s;
}

.form-control:focus,
.form-select:focus {
	border-color: var(--md-primary);
	box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.12);
	background: var(--surface);
	color: var(--text);
}

.form-control::placeholder {
	color: var(--md-outline);
}

.form-label {
	font-weight: 500;
	font-size: .875rem;
	color: var(--md-on-surface);
	margin-bottom: .4rem;
}

/* ===== Tables ===== */
.table {
	border-radius: var(--md-radius-md);
	overflow: hidden;
}

.table thead th {
	background: var(--md-surface-container);
	color: var(--md-on-surface);
	font-weight: 600;
	font-size: .85rem;
	border-bottom: 1px solid var(--md-outline-variant);
	padding: .75rem 1rem;
}

.table tbody td {
	border-bottom: 1px solid var(--md-outline-variant);
	padding: .75rem 1rem;
	font-size: .875rem;
	vertical-align: middle;
}

.table tbody tr:hover {
	background: var(--md-surface-container-high);
}

/* ===== Toast ===== */
.toast-container { z-index: 1080; }

.toast {
	border-radius: var(--md-radius-md) !important;
	box-shadow: var(--md-shadow-3) !important;
}

/* ===== Offcanvas ===== */
.offcanvas {
	border-left: 1px solid var(--md-outline-variant);
}

.offcanvas-title {
	font-family: var(--font-headline);
	color: var(--md-primary);
}

/* ===== Modal ===== */
.modal-content {
	border-radius: var(--md-radius-lg);
	border: 1px solid var(--md-outline-variant);
	box-shadow: var(--md-shadow-4);
}

.modal-header {
	border-bottom: 1px solid var(--md-outline-variant);
}

.modal-footer {
	border-top: 1px solid var(--md-outline-variant);
}

/* ===== Admin Dashboard Grid ===== */
.dashboard-card {
	background: var(--surface);
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-radius-md);
	padding: 1.5rem;
	box-shadow: var(--md-shadow-1);
	transition: all .25s ease;
	height: 100%;
}

.dashboard-card:hover {
	box-shadow: var(--md-shadow-2);
	transform: translateY(-3px);
}

.dashboard-card .card-icon {
	width: 52px;
	height: 52px;
	border-radius: var(--md-radius-sm);
	background: var(--md-primary-container);
	color: var(--md-on-primary-container);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.dashboard-card h2 {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: .5rem;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--md-surface-container); }
::-webkit-scrollbar-thumb { background: var(--md-outline); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--md-primary); }

::selection {
	background: var(--md-primary);
	color: #fff;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.animate-in {
	animation: fadeInUp .6s ease-out forwards;
	opacity: 0;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
	.hero { padding-top: 4.5rem; }
	.navbar-collapse {
		background: rgba(255, 255, 255, 0.98);
		border-radius: var(--md-radius-md);
		padding: 1rem;
		margin-top: .5rem;
		box-shadow: var(--md-shadow-2);
	}
}

@media (max-width: 575.98px) {
	.hero-title { font-size: 1.7rem; }
	.btn-primary, .btn-outline-dark { padding: .6rem 1.2rem; font-size: .9rem; }
	.product-card-media img { height: 160px; }
}
