/**
 * Alby Place — Frontend styles
 * Brand colors from Alby Brand Guidelines (Version 1.0 2024)
 */

:root {
	/* Primary palette */
	--alby-emerald: #00DD93;
	--alby-british-green: #0E402D;
	--alby-rich-black: #000000;
	--alby-pure-white: #FFFFFF;

	/* Supporting neutrals */
	--alby-gray-50: #F8FAF9;
	--alby-gray-100: #EDF1EF;
	--alby-gray-200: #D1D9D5;
	--alby-gray-400: #6C7570;
	--alby-gray-600: #3D4440;
	--alby-gray-900: #141515;

	/* Typography */
	--alby-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

	/* Sizing */
	--alby-radius-pill: 99px;
	--alby-radius-md: 12px;
	--alby-radius-sm: 6px;

	--alby-container-max: 1200px;
}

/* ─── Reset & base ─── */
* { box-sizing: border-box; }
body {
	font-family: var(--alby-font);
	color: var(--alby-gray-900);
	background: var(--alby-pure-white);
	margin: 0;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--alby-emerald); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
	font-family: var(--alby-font);
	font-weight: 700;
	color: var(--alby-rich-black);
	line-height: 1.2;
	margin-top: 0;
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.alby-container {
	max-width: var(--alby-container-max);
	margin: 0 auto;
	padding: 0 24px;
}

/* ─── Buttons (pill-shaped per brand guidelines) ─── */
.alby-button {
	display: inline-block;
	padding: 14px 32px;
	border-radius: var(--alby-radius-pill);
	font-family: var(--alby-font);
	font-weight: 500;
	font-size: 1rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}
.alby-button-primary {
	background: var(--alby-emerald);
	color: var(--alby-pure-white);
}
.alby-button-primary:hover {
	background: var(--alby-british-green);
	color: var(--alby-pure-white);
	text-decoration: none;
}
.alby-button-secondary {
	background: transparent;
	color: var(--alby-gray-900);
	border-color: var(--alby-gray-900);
}
.alby-button-large { padding: 18px 44px; font-size: 1.125rem; }

/* ─── Site header ─── */
.alby-site-header {
	background: var(--alby-pure-white);
	border-bottom: 1px solid var(--alby-gray-100);
	padding: 20px 0;
	position: sticky;
	top: 0;
	z-index: 100;
}
.alby-site-header .alby-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.alby-site-footer {
	background: var(--alby-gray-50);
	border-top: 1px solid var(--alby-gray-100);
	padding: 40px 0;
	margin-top: 80px;
	text-align: center;
	color: var(--alby-gray-400);
}

/* ─── Hero ─── */
.alby-hero {
	padding: 80px 0;
	text-align: center;
	background: linear-gradient(180deg, var(--alby-gray-50) 0%, var(--alby-pure-white) 100%);
}
.alby-hero h1 { font-size: 3.5rem; margin-bottom: 16px; }
.alby-lead {
	font-size: 1.25rem;
	color: var(--alby-gray-400);
	max-width: 600px;
	margin: 0 auto;
}

/* ─── City grid ─── */
.alby-cities { padding: 80px 0; }
.alby-cities h2 { text-align: center; margin-bottom: 48px; }
.alby-city-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}
.alby-city-card {
	display: block;
	padding: 32px;
	background: var(--alby-pure-white);
	border: 2px solid var(--alby-gray-100);
	border-radius: var(--alby-radius-md);
	transition: all 0.2s ease;
	color: var(--alby-gray-900);
	text-decoration: none;
}
.alby-city-card:hover {
	border-color: var(--alby-emerald);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 221, 147, 0.1);
	text-decoration: none;
}
.alby-city-card h3 { margin: 0 0 8px 0; }
.alby-city-region { color: var(--alby-gray-400); margin: 0 0 16px 0; font-size: 0.875rem; }
.alby-city-count { color: var(--alby-emerald); font-weight: 500; margin: 0; }
.alby-city-card.alby-coming-soon {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ─── Feature grid ─── */
.alby-ecosystem {
	padding: 80px 0;
	background: var(--alby-gray-50);
}
.alby-ecosystem h2 { text-align: center; margin-bottom: 48px; }
.alby-feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 32px;
}
.alby-feature {
	background: var(--alby-pure-white);
	padding: 32px;
	border-radius: var(--alby-radius-md);
}
.alby-feature h3 { color: var(--alby-emerald); }

/* ─── City hero ─── */
.alby-city-hero {
	padding: 60px 0 40px;
	background: var(--alby-gray-50);
}
.alby-breadcrumb {
	color: var(--alby-gray-400);
	font-size: 0.875rem;
	margin-bottom: 16px;
}
.alby-breadcrumb a { color: var(--alby-gray-400); }
.alby-breadcrumb span { margin: 0 8px; }

/* ─── Store grid ─── */
.alby-stores { padding: 60px 0; }
.alby-store-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 32px;
}
.alby-store-card {
	display: block;
	background: var(--alby-pure-white);
	border: 1px solid var(--alby-gray-100);
	border-radius: var(--alby-radius-md);
	overflow: hidden;
	transition: all 0.2s ease;
	color: var(--alby-gray-900);
	text-decoration: none;
}
.alby-store-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
	text-decoration: none;
}
.alby-store-cover {
	height: 180px;
	background-size: cover;
	background-position: center;
	background-color: var(--alby-gray-100);
}
.alby-store-info { padding: 24px; }
.alby-store-logo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	margin-bottom: 12px;
	object-fit: cover;
}
.alby-store-info h3 { margin: 0 0 8px 0; font-size: 1.25rem; }
.alby-store-category {
	display: inline-block;
	font-size: 0.75rem;
	background: var(--alby-gray-100);
	color: var(--alby-gray-600);
	padding: 4px 12px;
	border-radius: var(--alby-radius-pill);
	margin-bottom: 12px;
}
.alby-badge {
	display: inline-block;
	font-size: 0.75rem;
	padding: 4px 12px;
	border-radius: var(--alby-radius-pill);
	margin-top: 8px;
}
.alby-badge-shop {
	background: var(--alby-emerald);
	color: var(--alby-pure-white);
}

/* ─── Empty state ─── */
.alby-empty-state {
	text-align: center;
	padding: 80px 0;
}

/* ─── Signup form ─── */
.alby-signup-page {
	background: var(--alby-gray-50);
	min-height: 100vh;
}
.alby-signup-container {
	max-width: 520px;
	margin: 40px auto;
	padding: 48px;
	background: var(--alby-pure-white);
	border-radius: var(--alby-radius-md);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.alby-signup-header { text-align: center; margin-bottom: 32px; }
.alby-signup-header h1 { font-size: 2rem; margin: 16px 0 8px; }
.alby-logo img { height: 40px; width: auto; }

.alby-form { margin-top: 24px; }
.alby-field { margin-bottom: 20px; }
.alby-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alby-field label {
	display: block;
	font-weight: 500;
	margin-bottom: 8px;
	color: var(--alby-gray-900);
}
.alby-field input[type="text"],
.alby-field input[type="email"],
.alby-field input[type="password"],
.alby-field input[type="tel"],
.alby-field input[type="url"],
.alby-field select,
.alby-field textarea {
	width: 100%;
	padding: 14px 20px;
	font-family: var(--alby-font);
	font-size: 1rem;
	border: 1px solid var(--alby-gray-200);
	border-radius: var(--alby-radius-pill);
	background: var(--alby-pure-white);
	color: var(--alby-gray-900);
	transition: border-color 0.2s;
}
.alby-field textarea {
	border-radius: var(--alby-radius-md);
	resize: vertical;
}
.alby-field input:focus,
.alby-field select:focus,
.alby-field textarea:focus {
	outline: none;
	border-color: var(--alby-emerald);
}
.alby-field small {
	display: block;
	margin-top: 6px;
	color: var(--alby-gray-400);
	font-size: 0.75rem;
}

.alby-form .alby-button { width: 100%; margin-top: 8px; }
.alby-tos {
	text-align: center;
	font-size: 0.75rem;
	color: var(--alby-gray-400);
	margin-top: 16px;
}
.alby-error {
	background: #FEE;
	color: #C00;
	padding: 12px 16px;
	border-radius: var(--alby-radius-sm);
	margin-bottom: 16px;
}

.alby-signup-benefits {
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid var(--alby-gray-100);
}
.alby-signup-benefits h2 { font-size: 1.125rem; }
.alby-signup-benefits ul {
	list-style: none;
	padding: 0;
	margin: 16px 0;
}
.alby-signup-benefits li {
	padding: 6px 0;
	color: var(--alby-gray-600);
}

/* ─── Public profile ─── */
.alby-profile { max-width: 800px; margin: 0 auto; padding: 40px 24px; }
.alby-profile-cover {
	height: 280px;
	background-size: cover;
	background-position: center;
	border-radius: var(--alby-radius-md);
	margin-bottom: -40px;
}
.alby-profile-header {
	display: flex;
	gap: 20px;
	align-items: center;
	margin-bottom: 32px;
	padding-top: 40px;
}
.alby-profile-logo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	border: 4px solid var(--alby-pure-white);
	object-fit: cover;
	background: var(--alby-pure-white);
}
.alby-profile-category {
	display: inline-block;
	background: var(--alby-gray-100);
	color: var(--alby-gray-600);
	padding: 4px 12px;
	border-radius: var(--alby-radius-pill);
	font-size: 0.75rem;
}
.alby-profile-description { margin: 32px 0; font-size: 1.125rem; color: var(--alby-gray-600); }
.alby-profile-contact dl { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.alby-profile-contact dt { font-weight: 500; color: var(--alby-gray-400); }
.alby-upgrade-promo {
	margin-top: 32px;
	padding: 20px 24px;
	background: var(--alby-gray-50);
	border-left: 4px solid var(--alby-emerald);
	border-radius: var(--alby-radius-sm);
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
	h1 { font-size: 2rem; }
	.alby-hero h1 { font-size: 2.25rem; }
	.alby-field-row { grid-template-columns: 1fr; }
	.alby-signup-container { padding: 32px 24px; margin: 20px; }
.alby-profile-header { flex-direction: column; text-align: center; }
}

/* Chanya Thai storefront */
.alby-chanya-storefront {
	margin: 0;
	background: #fff;
	color: #34281f;
	font-family: Inter, Arial, sans-serif;
}
.chanya-header {
	height: 78px;
	display: grid;
	grid-template-columns: minmax(210px, 1fr) auto minmax(180px, 1fr);
	align-items: center;
	column-gap: 38px;
	padding: 0 6.1vw;
	background: #fff;
	border-bottom: 1px solid #ececec;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}
.chanya-brand,
.chanya-footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #2d2118;
	text-decoration: none;
}
.chanya-bowl {
	position: relative;
	width: 48px;
	height: 34px;
	display: inline-block;
}
.chanya-bowl::before {
	content: "";
	position: absolute;
	left: 3px;
	bottom: 1px;
	width: 39px;
	height: 20px;
	border-radius: 0 0 22px 22px;
	border: 4px solid #4b3321;
	border-top: 0;
	transform: rotate(-8deg);
}
.chanya-bowl::after {
	content: "";
	position: absolute;
	left: 26px;
	top: -1px;
	width: 12px;
	height: 23px;
	border-radius: 12px 12px 0 0;
	background: #e86f25;
	box-shadow: 9px -5px 0 -4px #4b3321;
	transform: rotate(28deg);
}
.chanya-brand strong,
.chanya-footer-brand strong {
	display: block;
	color: #e86f25;
	letter-spacing: 5px;
	font-size: 1.07rem;
	line-height: 1;
}
.chanya-brand small,
.chanya-footer-brand small {
	display: block;
	margin-top: 4px;
	color: #3b2a1f;
	font-size: 0.58rem;
	font-weight: 800;
	letter-spacing: 1.4px;
}
.chanya-nav {
	display: flex;
	align-items: center;
	gap: 39px;
	text-transform: uppercase;
	font-size: 0.88rem;
	font-weight: 900;
	white-space: nowrap;
}
.chanya-nav a,
.chanya-actions a {
	color: #151515;
	text-decoration: none;
}
.chanya-nav a:first-child {
	color: #e86f25;
}
.chanya-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 24px;
}
.chanya-actions a {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
}
.chanya-actions svg,
.chanya-floating-action svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: #151515;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.chanya-actions span {
	position: absolute;
	right: -10px;
	bottom: -5px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #f32727;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 900;
	line-height: 18px;
	text-align: center;
}
.chanya-main {
	position: relative;
	min-height: 552px;
	padding: 9px 6.15vw 112px;
	overflow: hidden;
	background: #fff;
}
.chanya-spice {
	position: absolute;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 42% 44%, rgba(96, 49, 16, 0.55), transparent 16px),
		radial-gradient(circle at 50% 50%, rgba(204, 109, 33, 0.38), transparent 38px);
	filter: blur(3px);
	pointer-events: none;
}
.chanya-spice-left {
	left: -49px;
	top: 7px;
}
.chanya-spice-right {
	right: -29px;
	top: 10px;
}
.chanya-side-icon {
	position: absolute;
	width: 22px;
	height: 22px;
	border: 4px solid #1f1f1f;
	pointer-events: none;
}
.chanya-side-icon-left {
	left: 3.35vw;
	top: 168px;
	border-color: #cfcfcf;
}
.chanya-side-icon-right {
	right: 7vw;
	top: 168px;
}
.chanya-products {
	max-width: 1410px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 29px;
}
.chanya-product-card {
	min-height: 344px;
	padding: 52px 60px 38px;
	border: 1px solid #e8e4e1;
	border-radius: 8px;
	background: #fff;
}
.chanya-product-card a {
	display: inline-block;
	color: inherit;
	text-decoration: none;
}
.chanya-product-card img {
	width: 74px;
	height: 96px;
	object-fit: contain;
	display: block;
	margin: 0 0 12px;
}
.chanya-stars {
	color: #ffbd00;
	font-size: 0.82rem;
	letter-spacing: 2px;
	margin: 0 0 22px;
}
.chanya-product-card p {
	max-width: 510px;
	margin: 0 0 24px;
	font-size: 1rem;
	line-height: 1.55;
	color: #3a2d24;
}
.chanya-product-card strong {
	display: block;
	font-size: 1rem;
	color: #3a2d24;
}
.chanya-footer {
	min-height: 111px;
	display: grid;
	place-items: center;
	background: #4b3321;
}
.chanya-footer .chanya-bowl::before {
	border-color: #fff;
}
.chanya-footer .chanya-bowl::after {
	background: #fff;
	box-shadow: 9px -5px 0 -4px #fff;
}
.chanya-footer strong,
.chanya-footer small {
	color: #fff;
}
.chanya-floating-action {
	position: fixed;
	right: 26px;
	bottom: 18px;
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #202020;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
	z-index: 30;
}
.chanya-floating-action svg {
	width: 18px;
	height: 18px;
	stroke: #fff;
}
@media (max-width: 980px) {
	.chanya-header {
		grid-template-columns: 1fr auto;
		height: auto;
		row-gap: 16px;
		padding: 18px 24px;
	}
	.chanya-nav {
		grid-column: 1 / -1;
		justify-content: center;
		flex-wrap: wrap;
		gap: 20px;
	}
	.chanya-products {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 560px) {
	.chanya-actions {
		gap: 14px;
	}
	.chanya-product-card {
		padding: 34px 28px;
	}
}
