/* My Daily Diarys — calm kitchen storefront */

:root {
	--ink: #171411;
	--muted: #6b645c;
	--paper: #f6f4f1;
	--surface: #ffffff;
	--line: rgba(23, 20, 17, 0.1);
	--accent: #c45c26;
	--accent-deep: #9a4318;
	--leaf: #3f6b4b;
	--shadow: 0 12px 32px rgba(23, 20, 17, 0.08);
	--radius: 14px;
	--font-display: 'Bricolage Grotesque', Georgia, serif;
	--font-body: 'Figtree', sans-serif;
	--nav-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--paper);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }
img { max-width: 100%; display: block; }

.shop-container {
	width: min(1100px, calc(100% - 2rem));
	margin-inline: auto;
}

.shop-main { min-height: 55vh; padding-bottom: 3.5rem; }

.shop-main > .mb-4,
.shop-main > h1,
.shop-main > .row,
.shop-main > .card,
.shop-main > form,
.shop-main > .alert,
.shop-main > .d-flex,
.shop-main > .table-responsive,
.shop-main > p {
	width: min(1100px, calc(100% - 2rem));
	margin-left: auto;
	margin-right: auto;
}

/* —— Nav —— */
.shop-nav {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: rgba(246, 244, 241, 0.96);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}

.shop-nav__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: var(--nav-h);
	padding-top: 0.55rem;
	padding-bottom: 0.55rem;
}

.shop-nav__brand {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: -0.03em;
	color: var(--ink);
}

.shop-nav__brand:hover { color: var(--accent); }

.shop-nav__toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
}

.shop-nav__toggle span {
	display: block;
	width: 18px;
	height: 2px;
	margin-inline: auto;
	background: var(--ink);
	border-radius: 2px;
}

.shop-nav__collapse {
	flex-basis: 100%;
}

.shop-nav__collapse.show,
.shop-nav__collapse.collapsing {
	display: block;
}

@media (min-width: 992px) {
	.shop-nav__toggle { display: none; }
	.shop-nav__collapse {
		display: flex !important;
		flex: 1;
		flex-basis: auto;
		align-items: center;
		justify-content: flex-end;
		gap: 1.25rem;
	}
}

.shop-nav__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1rem;
	padding: 0.35rem 0 0.75rem;
}

@media (min-width: 992px) {
	.shop-nav__links { padding: 0; }
}

.shop-nav__links a {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--muted);
}

.shop-nav__links a:hover { color: var(--ink); }

.cart-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.85rem;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink) !important;
	font-weight: 700;
	font-size: 0.9rem;
}

.cart-btn .badge {
	background: var(--accent);
	color: #fff;
	border-radius: 8px;
	font-weight: 700;
}

.cart-btn:hover {
	border-color: var(--accent);
	color: var(--ink) !important;
}

.flash-wrap { padding-top: 1rem; }

/* —— Buttons —— */
.btn-chili,
.btn-menu,
.btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 12px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-chili {
	padding: 0.9rem 1.35rem;
	background: var(--accent);
	color: #fff !important;
	box-shadow: 0 10px 22px rgba(196, 92, 38, 0.25);
}

.btn-chili:hover {
	background: var(--accent-deep);
	transform: translateY(-2px);
	color: #fff !important;
}

.btn-ghost {
	padding: 0.9rem 1.2rem;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff !important;
	backdrop-filter: blur(6px);
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.28);
	color: #fff !important;
}

.btn-menu {
	width: 100%;
	padding: 0.75rem 1rem;
	background: var(--ink);
	color: #fff !important;
	font-size: 0.92rem;
}

.btn-menu:hover {
	background: var(--accent);
	color: #fff !important;
}

/* —— Hero —— */
.food-hero {
	position: relative;
	min-height: 520px;
	height: 72vh;
	max-height: 680px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	color: #fff;
	background-color: #2a211c;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	animation: heroKen 22s ease-in-out infinite alternate;
}

.food-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(23, 20, 17, 0.15) 0%, rgba(23, 20, 17, 0.3) 48%, rgba(23, 20, 17, 0.78) 100%),
		linear-gradient(90deg, rgba(23, 20, 17, 0.45) 0%, rgba(23, 20, 17, 0.1) 70%);
}

.food-hero__inner {
	position: relative;
	z-index: 2;
	width: min(1100px, calc(100% - 2.5rem));
	margin: 0 auto;
	padding: 3.5rem 0 3rem;
	animation: riseIn 0.8s ease both;
}

.food-hero__brand {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(2.1rem, 6.5vw, 4.2rem);
	line-height: 0.98;
	letter-spacing: -0.04em;
	margin: 0 0 0.85rem;
	max-width: 16ch;
	word-break: break-word;
}

.food-hero__lead {
	margin: 0 0 1.5rem;
	max-width: 28ch;
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	font-weight: 500;
	opacity: 0.95;
}

.food-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

@keyframes riseIn {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

@keyframes heroKen {
	from {
		background-size: 105%;
		background-position: center center;
	}
	to {
		background-size: 115%;
		background-position: center 48%;
	}
}

@keyframes foodDrift {
	from { transform: scale(1.03) translate3d(0, 0, 0); }
	to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes foodShine {
	from { transform: translateX(-120%); }
	to { transform: translateX(120%); }
}

/* —— Menu —— */
.menu-section {
	padding: 3.25rem 0 1rem;
	scroll-margin-top: 110px;
}

#menu { scroll-margin-top: 110px; }

.menu-section__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.85rem;
	margin-bottom: 1.5rem;
	animation: riseIn 0.7s ease 0.05s both;
}

.menu-section__head h2 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(1.7rem, 3.5vw, 2.35rem);
	letter-spacing: -0.03em;
	margin: 0 0 0.2rem;
}

.menu-section__head p {
	margin: 0;
	color: var(--muted);
	font-weight: 500;
}

.menu-section__link {
	font-weight: 700;
	color: var(--accent);
}

.menu-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* —— Dish tile —— */
.food-tile {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	color: inherit;
	box-shadow: var(--shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	animation: riseIn 0.65s ease both;
}

.food-tile:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(23, 20, 17, 0.12);
	color: inherit;
}

.food-tile__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #ebe7e2;
}

.food-tile__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
	transform: translateX(-120%);
	pointer-events: none;
	opacity: 0;
}

.food-tile:hover .food-tile__media::after {
	opacity: 1;
	animation: foodShine 0.9s ease;
}

.food-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transform: scale(1.04);
	animation: foodDrift 9s ease-in-out infinite alternate;
	transition: transform 0.45s ease;
	will-change: transform;
}

.food-tile:hover .food-tile__media img {
	animation-play-state: paused;
	transform: scale(1.12);
}

.food-tile__body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.15rem 1.2rem 1.25rem;
}

.food-tile__name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: -0.025em;
	margin: 0;
	line-height: 1.15;
}

.food-tile__from {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--leaf);
}

.food-tile__from span {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 0.15rem;
}

.food-tile__prices {
	display: grid;
	gap: 0.35rem;
	padding: 0.7rem 0.8rem;
	border-radius: 12px;
	background: #f3f1ee;
	font-size: 0.86rem;
}

.food-tile__prices div {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
}

.food-tile__prices span { color: var(--muted); }
.food-tile__prices strong { color: var(--ink); font-weight: 700; }

.food-tile__cta { margin-top: auto; }

.menu-grid > *:nth-child(1) .food-tile { animation-delay: 0.04s; }
.menu-grid > *:nth-child(2) .food-tile { animation-delay: 0.1s; }
.menu-grid > *:nth-child(3) .food-tile { animation-delay: 0.16s; }
.menu-grid > *:nth-child(4) .food-tile { animation-delay: 0.22s; }

/* —— Category / product —— */
.page-head { padding: 2rem 0 1rem; }
.page-head h1 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(1.7rem, 3.5vw, 2.3rem);
	letter-spacing: -0.03em;
	margin: 0 0 0.3rem;
}
.page-head p { margin: 0; color: var(--muted); }

.product-stage { padding: 1.75rem 0 1rem; }

.product-stage__grid {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 800px) {
	.product-stage__grid {
		grid-template-columns: 1.05fr 0.95fr;
		gap: 2.25rem;
		align-items: start;
	}
}

.product-stage__image {
	border-radius: 18px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #ebe7e2;
	box-shadow: var(--shadow);
}

.product-stage__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.04);
	animation: foodDrift 10s ease-in-out infinite alternate;
	transition: transform 0.45s ease;
}

.product-stage__image:hover img {
	animation-play-state: paused;
	transform: scale(1.1);
}

.product-stage__kicker {
	display: inline-block;
	margin-bottom: 0.4rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--leaf);
}

.product-stage h1 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(1.9rem, 4vw, 2.7rem);
	letter-spacing: -0.035em;
	line-height: 1.05;
	margin: 0 0 0.7rem;
}

.product-stage__desc {
	margin: 0 0 1.35rem;
	color: var(--muted);
}

.serving-picker h2 {
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 0.3rem;
}

.serving-picker > p {
	margin: 0 0 0.9rem;
	color: var(--muted);
	font-size: 0.92rem;
}

.serving-option {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 0.6rem;
	padding: 0.9rem 1rem;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.serving-option:hover { border-color: rgba(63, 107, 75, 0.45); }

.serving-option:has(input:checked) {
	border-color: var(--leaf);
	box-shadow: 0 0 0 3px rgba(63, 107, 75, 0.12);
}

.serving-option input {
	margin: 0;
	accent-color: var(--leaf);
}

.serving-option__meta { flex: 1; min-width: 0; }
.serving-option__meta strong {
	display: block;
	font-family: var(--font-display);
	font-size: 1.05rem;
}
.serving-option__meta span {
	color: var(--muted);
	font-size: 0.85rem;
}

.serving-option__price {
	font-weight: 800;
	color: var(--accent);
	white-space: nowrap;
}

/* —— Shared —— */
.product-thumb {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
	background: #ebe7e2;
}

.cart-thumb {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 10px;
	background: #ebe7e2;
}

.shop-footer {
	border-top: 1px solid var(--line);
	background: #fff;
	padding: 1.75rem 0;
	margin-top: 1.5rem;
}

.shop-footer strong {
	font-family: var(--font-display);
	font-size: 1.05rem;
}

.shop-footer .muted {
	color: var(--muted);
	font-size: 0.9rem;
}

.admin-sidebar { min-height: 100vh; }
.admin-sidebar .nav-link { color: rgba(255,255,255,.75); }
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active { color: #fff; background: rgba(255,255,255,.08); border-radius: .375rem; }
.login-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	background: var(--paper);
}

.auth-wrap {
	width: min(480px, calc(100% - 2rem));
	margin: 2rem auto 3rem;
}
.auth-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.75rem;
}
.auth-google {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	font-weight: 600;
}
.auth-google-gis {
	display: flex;
	justify-content: center;
	min-height: 44px;
}
.auth-google-gis > div {
	width: 100% !important;
}

.shop-seo {
	padding: 2.5rem 0 3.5rem;
	border-top: 1px solid var(--line);
	background: var(--paper);
}
.shop-seo--product {
	margin-top: 0.5rem;
	background: #fff8f3;
	border-top: 2px solid rgba(196, 70, 40, 0.18);
}
.shop-seo__title {
	margin: 0 0 0.85rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--ink);
}
.shop-seo__content {
	max-width: 42rem;
	color: var(--muted);
	font-size: 0.98rem;
	line-height: 1.75;
}
.auth-divider {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0.25rem 0 1.25rem;
	color: var(--muted);
	font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--line);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
	}
}
