/* ============================================
   Layout — OM Designs storefront
   ============================================ */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--md-sys-typescale-body-font);
	font-size: var(--md-sys-typescale-body-large-size);
	line-height: var(--md-sys-typescale-body-large-line-height);
	color: var(--md-sys-color-on-surface);
	background-color: var(--md-sys-color-surface);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--md-sys-color-primary);
}

h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	color: var(--md-sys-color-on-surface);
}

/* --- Section --- */

.section__inner {
	max-width: 72rem;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.section__cta {
	text-align: center;
	margin-top: 2rem;
}

/* --- Hero --- */

.hero {
	background-color: var(--md-sys-color-primary-container);
	color: var(--md-sys-color-on-primary-container);
	text-align: center;
	padding: 4rem 1rem;
}

.hero__inner {
	max-width: 48rem;
	margin: 0 auto;
}

.hero h1 {
	color: var(--md-sys-color-on-primary-container);
	margin-bottom: 0.5rem;
}

.hero p {
	margin-bottom: 2rem;
}

/* --- Product grid --- */

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: 1.5rem;
}

.product-card__price {
	color: var(--md-sys-color-primary);
	margin: 0.5rem 0;
}

/* --- Product detail --- */

.product-detail__layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}

.product-detail__image img {
	border-radius: var(--md-sys-shape-corner-medium);
	width: 100%;
}

.product-detail__price {
	color: var(--md-sys-color-primary);
}

.product-detail__out-of-stock {
	color: var(--md-sys-color-error);
}

@media (max-width: 768px) {
	.product-detail__layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* --- Page header --- */

.page-header {
	background-color: var(--md-sys-color-surface-container);
	padding: 1rem 0;
}

/* --- Confirmation --- */

.confirmation__inner {
	text-align: center;
	padding-top: 4rem;
	padding-bottom: 4rem;
}

/* --- Basket --- */

.basket-table {
	width: 100%;
}

.basket-empty {
	text-align: center;
	padding: 4rem 0;
}

.basket-summary {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 2rem;
	padding: 1.5rem 0;
	border-top: 1px solid var(--md-sys-color-outline-variant);
}

/* --- Footer --- */

.site-footer {
	background-color: var(--md-sys-color-surface-container);
	border-top: 1px solid var(--md-sys-color-outline-variant);
	margin-top: 4rem;
}

.site-footer__inner {
	max-width: 72rem;
	margin: 0 auto;
	padding: 2rem 1rem;
	text-align: center;
	font-size: var(--md-sys-typescale-body-small-size);
	color: var(--md-sys-color-on-surface-variant);
}

/* --- Admin layout --- */

.admin-layout {
	display: flex;
	min-height: 100vh;
}

.admin-layout__main {
	flex: 1;
	padding: 2rem;
}

.admin-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
}

.admin-form {
	max-width: 36rem;
}

.admin-form .button {
	margin-top: 1rem;
}

/* --- Login --- */

.login-page {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	background-color: var(--md-sys-color-surface);
}

.login-card {
	background-color: var(--md-sys-color-surface-container);
	border-radius: var(--md-sys-shape-corner-large);
	padding: 3rem;
	text-align: center;
	box-shadow: var(--md-sys-elevation-2);
	max-width: 24rem;
	width: 100%;
}
