/* ==========================================================================
   ARBEL theme, phase 2: shop pages, purchase flow, account, gift finder, content pages.
   Measurements from figma/SPEC_NOTES_PHASE2.md. Loads after main.css (tokens, header, footer,
   product card, buttons, fields, consent, FAQ accordion, dialog).
   Mobile first. Reference widths: 375 / 390 / 424 / 768 / 1024 / 1440 / 1920.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Shared primitives
   -------------------------------------------------------------------------- */
.divider {
	display: block;
	width: 100%;
	height: 1px;
	border: 0;
	background: var(--line);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.section-title {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.3;
}

.site-main--shop .btn,
.menu-page .btn {
	min-height: 52px;
}

.site-main--shop .btn--outline {
	box-shadow: inset 0 0 0 1px var(--olive);
}

.text-input--area {
	min-height: 136px;
	padding: 14px 16px;
	resize: vertical;
	line-height: 1.5;
}

.text-input--select {
	appearance: none;
	-webkit-appearance: none;
	padding-inline-end: 44px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23494D36' stroke-width='1.5'/></svg>");
	background-repeat: no-repeat;
	background-position: left 16px center;
	background-size: 12px 8px;
}

.text-input:disabled {
	opacity: 0.45;
}

/* Notices (WooCommerce messages rendered through the theme) */
.notices {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.notice {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	border-inline-start: 2px solid var(--olive);
	padding: 12px 16px;
}

.notice a {
	color: var(--olive);
	text-decoration: underline;
	text-underline-position: from-font;
}

.notice--error {
	border-inline-start-color: var(--ink);
}

.notice--success {
	color: var(--olive);
}

/* Breadcrumb and page intro */
.breadcrumb {
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted);
}

.breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumb__item + .breadcrumb__item::before {
	content: "/";
	margin-inline-end: 6px;
}

.breadcrumb__link:hover {
	color: var(--olive);
}

.page-intro {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.page-intro__title {
	font-size: 36px;
	font-weight: 300;
	line-height: 1.2;
}

.page-intro__desc {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
}

/* The shop shell: every phase 2 page */
.site-main--shop {
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding: 32px 24px 56px;
}

/* WooCommerce wraps shortcode output in div.woocommerce; its children join the shell's column. */
.site-main--shop > .woocommerce,
.site-main--shop > .woocommerce > .woocommerce-notices-wrapper:empty {
	display: contents;
}

/* Choice cards (shipping, payment, sort, pickup, gift answers) */
.choice-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.choice {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	background: var(--white);
	border: 1px solid var(--line);
	box-shadow: inset 0 0 0 0 var(--olive);
	cursor: pointer;
	transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.choice--static {
	cursor: default;
}

.choice__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.choice__control {
	position: relative;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	border: 1px solid var(--olive);
	border-radius: 50%;
	background: var(--white);
}

.choice__control::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: var(--olive);
	opacity: 0;
	transition: opacity var(--dur) var(--ease);
}

.choice__input[type="checkbox"] + .choice__control,
.choice__input[type="checkbox"] + .choice__control::after {
	border-radius: 2px;
}

.choice__input:checked ~ .choice__control::after {
	opacity: 1;
}

.choice__copy {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.choice__label {
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink);
}

.choice__hint {
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted);
}

.choice:hover {
	border-color: var(--olive);
}

.choice.is-selected,
.choice:has(.choice__input:checked) {
	border-color: var(--olive);
	box-shadow: inset 0 0 0 1px var(--olive);
}

.choice:has(.choice__input:focus-visible) {
	outline: 2px solid var(--olive);
	outline-offset: 2px;
}

.choice__input:disabled ~ .choice__copy {
	opacity: 0.45;
}

/* Payment method card: li > input + label.choice__body + .payment_box */
.choice--payment {
	flex-wrap: wrap;
	padding: 0;
}

.choice__body {
	display: flex;
	flex: 1 1 100%;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	cursor: pointer;
}

.choice__icon {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.choice__icon img {
	max-height: 24px;
	width: auto;
}

.choice__details {
	flex: 1 1 100%;
	padding: 0 16px 16px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted);
}

.choice__details p {
	margin: 0 0 8px;
}

.choice__details .form-row {
	margin-bottom: 12px;
}

/* Consent rows reused as filter checkboxes */
.consent--filter .consent__label {
	font-size: 14px;
	color: var(--ink);
}

/* WooCommerce form rows (woocommerce_form_field) mapped to the approved field style */
.form-fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.form-row-hidden,
.form-row.form-row-hidden {
	display: none;
}

.form-row label {
	font-size: 14px;
	line-height: 1.5;
}

.form-row .required,
.form-row .optional {
	display: none;
}

.woocommerce-input-wrapper {
	display: block;
}

.form-row .input-text,
.form-row textarea,
.form-row select {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 16px;
	font: inherit;
	font-size: 14px;
	color: var(--ink);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 0;
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.form-row textarea {
	min-height: 112px;
	height: auto;
	padding: 14px 16px;
	resize: vertical;
	line-height: 1.5;
}

.form-row .input-text::placeholder,
.form-row textarea::placeholder {
	color: var(--muted);
	opacity: 1;
}

.form-row .input-text:focus-visible,
.form-row textarea:focus-visible,
.form-row select:focus-visible {
	outline: none;
	border-color: var(--olive);
	box-shadow: inset 0 0 0 1px var(--olive);
}

.form-row--ltr .input-text {
	direction: ltr;
	text-align: left;
}

.form-row.woocommerce-invalid .input-text,
.form-row.woocommerce-invalid textarea,
.form-row.has-error .input-text {
	border-color: var(--olive);
	box-shadow: inset 0 0 0 1px var(--olive);
}

.form-row .checkout-inline-error-message,
.form-row .field-error {
	font-size: 12px;
	color: var(--ink);
	margin: 2px 0 0;
}

.form-row .checkout-inline-error-message::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-inline-end: 6px;
	background: var(--olive);
	border-radius: 50%;
	vertical-align: middle;
}

.form-row .show-password-input {
	display: none;
}

/* White state panel (empty states, confirmations, dialogs) */
.state-panel {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: 680px;
	margin-inline: auto;
	padding: 24px;
	background: var(--white);
}

.state-panel__title {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.3;
	color: var(--ink);
}

.state-panel__text {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
}

.state-panel__note {
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted);
}

.state-panel__media {
	width: 100%;
	max-width: 294px;
	margin-inline: auto;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--line);
}

.state-panel__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.state-panel .footer-link {
	align-self: flex-start;
}

.state-panel .btn {
	min-height: 52px;
}

.state-panel--inline {
	margin-inline: 0;
}

/* Panel inside a dialog */
.dialog--panel {
	align-items: flex-end;
	padding: 0;
	padding-top: calc(16px + env(safe-area-inset-top, 0px));
}

.dialog--panel .state-panel {
	position: relative;
	max-width: none;
	max-height: 100%;
	overflow-y: auto;
	padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	animation: dialog-in 220ms var(--ease);
}

.state-panel--dialog .choice-list {
	max-height: 42vh;
	overflow-y: auto;
	padding: 2px;
}

.filter-set {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.filter-set__legend {
	font-size: 18px;
	line-height: 1.5;
	padding-bottom: 8px;
}

/* Quantity stepper */
.qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--line);
	background: var(--white);
}

.qty__btn {
	width: 44px;
	height: 44px;
	font-size: 18px;
	line-height: 1;
	color: var(--olive);
}

.qty__btn:disabled {
	color: var(--line);
	cursor: not-allowed;
}

.qty__input {
	width: 48px;
	height: 44px;
	padding: 0;
	font-size: 16px;
	text-align: center;
	border: 0;
	background: transparent;
	-moz-appearance: textfield;
	appearance: textfield;
}

.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* --------------------------------------------------------------------------
   2. Quiet chrome (checkout, auth, gift finder, state screens) and the full-page menu
   -------------------------------------------------------------------------- */
.quiet-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 24px;
	padding-top: calc(12px + env(safe-area-inset-top, 0px));
	background: var(--ivory);
}

.quiet-header__logo {
	display: block;
	width: 120px;
	flex: 0 0 auto;
}

.quiet-header__logo img {
	width: 100%;
	height: auto;
	pointer-events: none;
}

.quiet-header__back {
	min-width: 120px;
	justify-content: center;
}

.quiet-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 24px;
	padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted);
	text-align: center;
}

.quiet-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
}

.quiet-footer__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--muted);
	text-decoration: underline;
	text-underline-position: from-font;
}

.quiet-footer__link:hover {
	color: var(--olive);
}

.quiet-footer__link.is-pending {
	text-decoration: none;
	cursor: default;
}

.menu-page {
	position: fixed;
	inset: 0;
	z-index: 80;
	overflow-y: auto;
	background: var(--ivory);
}

.menu-page[hidden] {
	display: none;
}

.menu-page__inner {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	animation: dialog-in 220ms var(--ease);
}

.menu-page__main {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 16px;
	padding: 32px 24px 56px;
}

.menu-page__title {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.3;
}

.menu-page__search {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.menu-page__links {
	display: flex;
	flex-direction: column;
}

.menu-page__links .drawer__menu-link {
	display: inline-flex;
	padding: 0;
	font-size: 16px;
	min-height: 44px;
}

/* --------------------------------------------------------------------------
   3. Catalog, category, search, favorites
   -------------------------------------------------------------------------- */
.catalog-tabs__list {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.catalog-tabs__list::-webkit-scrollbar {
	display: none;
}

.catalog-tabs__list li {
	flex: 1 0 100px;
}

.catalog-tabs .catalog-tab {
	width: 100%;
	white-space: nowrap;
}

.filter-sort {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.filter-sort__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 100px;
}

.filter-sort + .divider {
	margin-top: -24px;
}

.shop-search {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 12px;
}

.product-card--catalog .product-card__price,
.product-card--related .product-card__price,
.product-card--favorites .product-card__price,
.product-card--article .product-card__price {
	font-size: 14px;
}

.product-card--favorites .product-card__name,
.product-card--related .product-card__name,
.product-card--article .product-card__name {
	font-size: 14px;
}

.product-card.is-unavailable .product-card__img {
	opacity: 0.55;
}

.product-card.is-unavailable .product-card__price::after {
	content: " · אזל";
	color: var(--muted);
}

.shop-more {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.shop-more__btn {
	width: 100%;
	min-height: 52px;
}

.shop-more__btn:disabled {
	display: none;
}

.favorites__more {
	min-height: 52px;
}

/* --------------------------------------------------------------------------
   4. Product page
   -------------------------------------------------------------------------- */
.product-layout {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.product-gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.product-gallery__item {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--line);
}

.product-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-gallery__thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
}

.product-gallery__thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--white);
	transition: border-color var(--dur) var(--ease);
}

.product-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-gallery__thumb.is-active {
	border-color: var(--olive);
	box-shadow: inset 0 0 0 1px var(--olive);
}

.product-gallery__zoom {
	align-self: flex-start;
}

.product-info {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.product-info__eyebrow {
	font-size: 14px;
	line-height: 1.5;
	color: var(--olive);
}

.product-info__title {
	font-size: 36px;
	font-weight: 300;
	line-height: 1.2;
}

.product-info__price {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.3;
	text-align: start;
}

.product-info__desc {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
}

.product-info__desc p + p {
	margin-top: 12px;
}

.product-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.product-option__fact {
	font-size: 14px;
	line-height: 1.5;
}

.product-option {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.product-option__label {
	padding: 0;
	font-size: 14px;
	line-height: 1.5;
}

.product-option__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.product-option__choices--size {
	gap: 8px;
}

.option-tab {
	position: relative;
	display: inline-flex;
}

.option-tab__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.option-tab__label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 100px;
	height: 44px;
	padding: 0 12px;
	font-size: 16px;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.product-option__choices--size .option-tab__label {
	min-width: 64px;
}

.option-tab__label:hover {
	color: var(--olive);
}

.option-tab__input:checked + .option-tab__label {
	color: var(--olive);
	border-bottom-color: var(--olive);
}

.option-tab__input:focus-visible + .option-tab__label {
	outline: 2px solid var(--olive);
	outline-offset: -2px;
}

.option-tab.is-unavailable .option-tab__label {
	color: var(--muted);
	text-decoration: line-through;
}

.product-info__link {
	align-self: flex-start;
}

.product-form__status {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	border-inline-start: 2px solid var(--olive);
	padding: 10px 14px;
}

.product-form__submit {
	min-height: 52px;
}

.product-form__soldout {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
}

.product-info__fav {
	align-self: flex-start;
}

.product-faq {
	padding: 0 16px;
	background: var(--white);
}

.related {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.related__title {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.3;
}

.state-panel--zoom .state-panel__media {
	max-width: 100%;
}

/* --------------------------------------------------------------------------
   5. Cart
   -------------------------------------------------------------------------- */
.cart-layout {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.cart-items {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.cart-list {
	display: flex;
	flex-direction: column;
}

.cart-item {
	display: flex;
	gap: 16px;
	padding: 24px 0;
	border-bottom: 1px solid var(--line);
}

.cart-item:first-child {
	padding-top: 0;
}

.cart-item__media {
	flex: 0 0 96px;
	width: 96px;
	height: 112px;
	overflow: hidden;
	background: var(--line);
}

.cart-item__media a,
.cart-item__img {
	display: block;
	width: 100%;
	height: 100%;
}

.cart-item__img {
	object-fit: cover;
}

.cart-item__info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.cart-item__name {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
}

.cart-item__variant {
	font-size: 14px;
	color: var(--muted);
}

.cart-item__price {
	font-size: 16px;
	text-align: start;
}

.cart-item__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 4px;
}

.cart-item__remove {
	min-width: 64px;
	justify-content: center;
}

.cart-items__continue {
	align-self: flex-start;
}

.summary {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 24px;
	background: var(--white);
}

.summary__title {
	font-size: 24px;
	font-weight: 300;
	line-height: 1.3;
}

.summary__items {
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted);
}

.summary__rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

.summary__row {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 16px;
	line-height: 1.5;
}

.summary__row dt,
.summary__row dd {
	margin: 0;
}

.summary__row dd {
	text-align: start;
	white-space: nowrap;
}

.summary__total {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 24px;
	font-weight: 300;
	line-height: 1.3;
}

.summary__total span:last-child {
	white-space: nowrap;
}

.summary__note {
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted);
}

.summary__coupon {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.summary .woocommerce-remove-coupon {
	margin-inline-start: 8px;
	font-size: 12px;
	color: var(--olive);
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   6. Checkout, order pay, confirmation
   -------------------------------------------------------------------------- */
.checkout-form {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.checkout-form__login {
	align-self: flex-start;
}

.checkout-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.checkout-section__title {
	font-size: 24px;
	font-weight: 300;
	line-height: 1.3;
}

.woocommerce-billing-fields,
.woocommerce-account-fields,
.woocommerce-address-fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.create-account {
	padding-top: 4px;
}

.delivery-pickup {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.delivery-pickup__line,
.delivery-pickup__empty {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
}

.delivery-pickup .footer-link {
	align-self: flex-start;
}

#payment {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.checkout-aside {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.place-order {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.place-order__btn {
	min-height: 52px;
}

.place-order__note {
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted);
}

.checkout-terms {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.checkout-terms__text {
	font-size: 12px;
	line-height: 1.7;
	color: var(--muted);
}

.payment-unavailable {
	margin: 0;
}

.dev-gateway {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	font-size: 14px;
	color: var(--ink);
	border: 1px dashed var(--olive);
}

.dev-gateway__title {
	font-size: 12px;
	color: var(--muted);
}

.dev-gateway__option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	cursor: pointer;
}

/* Processing state: WooCommerce blocks the form; the overlay lives on the form only. */
form.checkout.processing {
	opacity: 0.6;
	pointer-events: none;
}

.checkout-form .blockUI.blockOverlay,
.checkout-form .blockUI.blockMsg {
	display: none !important;
}

.checkout-form--pay {
	width: 100%;
	max-width: 680px;
	margin-inline: auto;
}

/* Confirmation */
.confirmation {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: 680px;
	margin-inline: auto;
	padding: 24px;
	background: var(--white);
}

.confirmation__check {
	font-size: 48px;
	font-weight: 300;
	line-height: 1;
	color: var(--olive);
	text-align: center;
}

.confirmation__title {
	font-size: 24px;
	font-weight: 300;
	line-height: 1.3;
}

.confirmation__text {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
}

.confirmation__subtitle {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
}

.confirmation__delivery {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
	margin-top: -16px;
}

.confirmation .footer-link {
	align-self: flex-start;
}

.order-lines {
	display: flex;
	flex-direction: column;
}

.order-line {
	display: flex;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.order-line:first-child {
	padding-top: 0;
}

.order-line:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.order-line__media {
	flex: 0 0 96px;
	width: 96px;
	height: 112px;
	overflow: hidden;
	background: var(--line);
}

.order-line__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.order-line__info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.order-line__name {
	font-size: 18px;
	line-height: 1.4;
}

.order-line__variant {
	font-size: 14px;
	color: var(--muted);
}

.order-line__price {
	font-size: 16px;
	text-align: start;
}

.order-lines--compact .order-line__media {
	flex-basis: 72px;
	width: 72px;
	height: 88px;
}

.order-lines--compact .order-line__name {
	font-size: 16px;
}

/* --------------------------------------------------------------------------
   7. Auth (login, register, reset) and account
   -------------------------------------------------------------------------- */
.auth-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
}

.auth-layout__media {
	display: none;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: 480px;
}

.auth-form__eyebrow {
	font-size: 14px;
	line-height: 1.5;
	color: var(--olive);
}

.auth-form__title {
	font-size: 36px;
	font-weight: 300;
	line-height: 1.2;
	margin-top: -12px;
}

.auth-form__text {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
	margin-top: -12px;
}

.auth-form .footer-link {
	align-self: flex-start;
}

.auth-form .btn {
	min-height: 52px;
}

.account-layout {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.account-nav__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.account-nav__link {
	width: 100%;
}

.account-nav__link.is-current {
	color: var(--ink);
	text-decoration: none;
	cursor: default;
}

.account-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.account-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	max-width: 680px;
}

.account-form__greeting {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.3;
}

.account-form__text {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
	margin-top: -8px;
}

.account-form__legend {
	font-size: 24px;
	font-weight: 300;
	line-height: 1.3;
	padding: 0;
}

.account-form__password {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.account-form__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
}

.account-form__submit {
	width: 100%;
	min-height: 52px;
}

.order-cards {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.order-card,
.order-detail,
.address-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	background: var(--white);
}

.order-detail {
	gap: 20px;
}

.order-card__title,
.address-card__title {
	font-size: 24px;
	font-weight: 300;
	line-height: 1.3;
}

.order-detail__title {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.3;
}

.order-card__status {
	font-size: 14px;
	line-height: 1.5;
	color: var(--olive);
	margin-top: -8px;
}

.order-card__row {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 16px;
}

.order-detail__text,
.address-card__lines {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
}

.order-detail__subtitle {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
}

.order-detail .order-detail__subtitle + .order-detail__text {
	margin-top: -12px;
}

.order-card .footer-link,
.order-detail .footer-link,
.address-card .footer-link {
	align-self: flex-start;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	font-size: 14px;
	color: var(--olive);
	text-decoration: underline;
	text-underline-position: from-font;
}

.pagination .page-numbers.current {
	color: var(--ink);
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   8. Gift finder
   -------------------------------------------------------------------------- */
.gift-intro {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.gift-intro__copy {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.gift-intro__eyebrow {
	font-size: 14px;
	line-height: 1.5;
	color: var(--olive);
}

.gift-intro__title {
	font-size: 36px;
	font-weight: 300;
	line-height: 1.2;
}

.gift-intro__text {
	font-size: 18px;
	line-height: 1.7;
	color: var(--muted);
}

.gift-intro__note {
	font-size: 14px;
	line-height: 1.5;
	color: var(--muted);
	margin-top: -12px;
}

.gift-intro__media {
	aspect-ratio: 342 / 273.6;
	overflow: hidden;
	background: var(--line);
}

.gift-intro__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gift-step {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: 760px;
	margin-inline: auto;
}

.gift-step__counter {
	font-size: 14px;
	line-height: 1.5;
	color: var(--olive);
}

.gift-step__progress {
	display: flex;
	gap: 6px;
	margin-top: -12px;
}

.gift-step__segment {
	flex: 1 1 0;
	height: 3px;
	background: var(--line);
	transition: background-color var(--dur) var(--ease);
}

.gift-step__segment.is-done {
	background: var(--olive);
}

.gift-step__title {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.3;
}

.gift-step__hint {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
	margin-top: -12px;
}

.gift-step__form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.gift-step__form .footer-link--btn {
	align-self: flex-start;
	margin-top: -12px;
}

.gift-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gift-options--grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.gift-option-visual {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.gift-option-visual__media {
	aspect-ratio: 163 / 130.4;
	overflow: hidden;
	background: var(--line);
}

.gift-option-visual__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gift-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.gift-group__label {
	padding: 0;
	font-size: 18px;
	line-height: 1.4;
}

.gift-groups {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.gift-results {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.gift-results__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
}

.gift-results__answers {
	font-size: 14px;
	line-height: 1.5;
	color: var(--olive);
}

.gift-results__list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.gift-result {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.gift-result__reason {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
}

.gift-result__cta {
	min-height: 52px;
}

.gift-results > .footer-link {
	align-self: flex-start;
}

/* --------------------------------------------------------------------------
   9. About, contact, FAQ, policies, legal, magazine, article, 404
   -------------------------------------------------------------------------- */
.about-opening {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.about-opening__story {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.about-opening__title,
.about-values__title,
.contact-intro__title {
	font-size: 36px;
	font-weight: 300;
	line-height: 1.2;
}

.about-opening__text {
	font-size: 18px;
	line-height: 1.7;
	color: var(--muted);
}

.about-opening__media {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--line);
}

.about-opening__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-values {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.about-values__text {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
}

.values {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.value {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.value__title {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.3;
}

.value__text {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
}

.about-cta {
	width: 100%;
}

.contact-layout {
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.contact-intro {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.contact-intro__text {
	font-size: 18px;
	line-height: 1.7;
	color: var(--muted);
}

.contact-intro .footer-link {
	align-self: flex-start;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact-form__note {
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted);
}

.contact-form[aria-busy="true"] {
	opacity: 0.6;
	pointer-events: none;
}

.faq-page {
	width: 100%;
	max-width: 920px;
	margin-inline: auto;
	padding: 0 16px;
	background: var(--white);
}

.still-help {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.still-help__title {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.3;
}

.still-help__cta {
	width: 100%;
}

.policy {
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: 100%;
	max-width: 920px;
	margin-inline: auto;
}

.policy__section {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.policy__title {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.3;
}

.policy__text {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
}

.policy__section .faq {
	padding: 0 16px;
}

.legal-doc {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: 920px;
	margin-inline: auto;
}

.legal-doc__body h2,
.policy__body h2 {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.3;
	color: var(--ink);
	margin-top: 8px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.legal-doc__body h3,
.policy__body h3 {
	font-size: 20px;
	font-weight: 400;
	color: var(--ink);
}

.legal-doc__body ul,
.policy__body ul {
	padding-inline-start: 20px;
	list-style: disc;
}

.legal-doc__body a,
.policy__body a {
	color: var(--olive);
	text-decoration: underline;
	text-underline-position: from-font;
}

.legal-doc__contact {
	align-self: flex-start;
}

.legal-doc__eyebrow {
	font-size: 14px;
	color: var(--olive);
}

/* Magazine */
.featured-story {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.featured-story__media,
.story-card__media {
	display: block;
	aspect-ratio: 1.25 / 1;
	overflow: hidden;
	background: var(--line);
}

.featured-story__img,
.story-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.featured-story__body {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.story-card__category {
	font-size: 14px;
	line-height: 1.5;
	color: var(--olive);
}

.featured-story__title {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.3;
	margin-top: -8px;
}

.featured-story__excerpt {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
}

.featured-story .footer-link,
.story-card .footer-link {
	align-self: flex-start;
}

.featured-story__title a:hover,
.story-card__title a:hover {
	color: var(--olive);
}

.story-grid {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.story-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.story-card__title {
	font-size: 24px;
	font-weight: 300;
	line-height: 1.3;
}

/* Article */
.article-cover {
	aspect-ratio: 342 / 256.5;
	overflow: hidden;
	background: var(--line);
}

.article-cover__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-layout {
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.article-nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
	order: 2;
}

.article-nav__title {
	font-size: 24px;
	font-weight: 300;
	line-height: 1.3;
}

.article-nav__list {
	display: flex;
	flex-direction: column;
}

.article-body {
	display: flex;
	flex-direction: column;
	gap: 24px;
	font-size: 18px;
	line-height: 1.7;
	color: var(--muted);
}

.article-body h2 {
	font-size: 24px;
	font-weight: 300;
	line-height: 1.3;
	color: var(--ink);
	scroll-margin-top: calc(var(--header-h) + 16px);
}

.article-body h3 {
	font-size: 20px;
	font-weight: 400;
	color: var(--ink);
}

.article-body a {
	color: var(--olive);
	text-decoration: underline;
	text-underline-position: from-font;
}

.article-body ul {
	padding-inline-start: 20px;
	list-style: disc;
}

.article-body .btn,
.legal-doc__body .btn,
.policy__body .btn {
	color: var(--ivory);
	text-decoration: none;
}

.callout {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	background: var(--white);
}

.callout__quote {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.3;
	color: var(--olive);
}

.article-products {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* 404 */
.not-found__code {
	font-size: 96px;
	font-weight: 300;
	line-height: 1;
	color: var(--olive);
	text-align: center;
}

.not-found__title {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.3;
	text-align: center;
}

.not-found__text {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
}

.not-found__cta {
	width: 100%;
}

/* --------------------------------------------------------------------------
   10. Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.site-main--shop {
		gap: 32px;
		padding: 56px 40px 80px;
	}

	.page-intro__title {
		font-size: 48px;
	}

	.page-intro__desc {
		font-size: 18px;
	}

	.section-title,
	.related__title,
	.about-opening__title,
	.about-values__title,
	.contact-intro__title,
	.featured-story__title {
		font-size: 36px;
	}

	.state-panel {
		padding: 40px;
	}

	.state-panel__title {
		font-size: 36px;
	}

	.dialog--panel {
		align-items: center;
		padding: 16px;
	}

	.dialog--panel .state-panel {
		max-width: 680px;
		padding: 40px;
		border: 1px solid var(--line);
	}

	.quiet-header {
		padding-inline: 40px;
	}

	.menu-page__main {
		padding: 56px 40px 80px;
	}

	.menu-page__title {
		font-size: 36px;
	}

	.catalog-tabs__list li {
		flex: 1 1 0;
	}

	.catalog-tabs .catalog-tab {
		font-size: 16px;
	}

	.product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px 24px;
	}

	.product-card--favorites .product-card__name,
	.product-card--related .product-card__name,
	.product-card--article .product-card__name {
		font-size: 16px;
	}

	.shop-more__btn {
		width: 320px;
	}

	.form-fields {
		display: grid;
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 20px 16px;
	}

	.form-fields .form-row {
		grid-column: span 6;
	}

	.form-fields .form-row-first,
	.form-fields .form-row-last {
		grid-column: span 3;
	}

	.form-fields .form-row-third {
		grid-column: span 2;
	}

	.account-form__actions {
		flex-direction: row;
		align-items: center;
		gap: 24px;
	}

	.account-form__submit {
		width: 320px;
	}

	.about-cta,
	.still-help__cta,
	.not-found__cta {
		width: 360px;
	}

	.not-found__cta {
		align-self: flex-start;
	}

	.still-help__cta {
		width: 320px;
	}

	.story-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px;
	}

	.gift-results__list {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px;
	}

	.values {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px;
	}

	.article-cover {
		aspect-ratio: 1312 / 480;
	}

	.article-body h2 {
		font-size: 28px;
	}

	.product-faq,
	.faq-page,
	.policy__section .faq {
		padding-inline: 24px;
	}
}

@media (min-width: 1024px) {
	.site-main--shop {
		padding-inline: 64px;
	}

	.quiet-header {
		padding-inline: 64px;
	}

	.quiet-header__logo {
		width: 148px;
	}

	.menu-page__main {
		padding-inline: 64px;
	}

	.product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.product-layout {
		display: grid;
		grid-template-columns: minmax(0, 686fr) minmax(0, 562fr);
		gap: 64px;
		align-items: start;
	}

	.product-info {
		position: sticky;
		top: calc(var(--header-h) + 24px);
	}

	.cart-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 40px;
		align-items: start;
	}

	.cart-layout .summary {
		position: sticky;
		top: calc(var(--header-h) + 24px);
	}

	.account-layout {
		display: grid;
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 48px;
		align-items: start;
	}

	.auth-layout {
		display: grid;
		grid-template-columns: minmax(0, 480px) minmax(0, 768fr);
		gap: 64px;
		align-items: center;
	}

	.auth-layout--single {
		display: flex;
	}

	.auth-layout__media {
		display: block;
		grid-column: 2;
		grid-row: 1;
		aspect-ratio: 768 / 600;
		overflow: hidden;
		background: var(--line);
	}

	.auth-layout__img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.auth-layout .auth-form {
		grid-column: 1;
		grid-row: 1;
	}

	.auth-form__title {
		font-size: 48px;
	}

	.gift-intro {
		display: grid;
		grid-template-columns: minmax(0, 562fr) minmax(0, 686fr);
		gap: 64px;
		align-items: center;
	}

	.gift-intro__title {
		font-size: 48px;
	}

	.gift-intro__media {
		aspect-ratio: 686.4 / 600;
	}

	.gift-step__title {
		font-size: 36px;
	}

	.about-opening {
		display: grid;
		grid-template-columns: minmax(0, 562fr) minmax(0, 686fr);
		gap: 64px;
		align-items: center;
	}

	.about-opening__media {
		aspect-ratio: 686.4 / 560;
	}

	.about-values__text {
		font-size: 18px;
	}

	.contact-layout {
		display: grid;
		grid-template-columns: minmax(0, 568fr) minmax(0, 680fr);
		gap: 64px;
		align-items: start;
	}

	.contact-intro {
		gap: 24px;
	}

	.featured-story {
		display: grid;
		grid-template-columns: minmax(0, 524fr) minmax(0, 724fr);
		gap: 64px;
		align-items: center;
	}

	.featured-story__media {
		grid-column: 2;
		grid-row: 1;
		aspect-ratio: 723.84 / 440;
	}

	.featured-story__body {
		grid-column: 1;
		grid-row: 1;
	}

	.article-layout {
		display: grid;
		grid-template-columns: minmax(0, 820fr) 280px;
		gap: 64px;
		align-items: start;
	}

	.article-nav {
		order: 0;
		grid-column: 2;
		grid-row: 1;
		position: sticky;
		top: calc(var(--header-h) + 24px);
	}

	.article-body {
		grid-column: 1;
		grid-row: 1;
	}

	.not-found__title {
		font-size: 48px;
	}
}

@media (min-width: 1440px) {
	.checkout-form {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 360px;
		column-gap: 48px;
		row-gap: 32px;
		align-items: start;
	}

	.checkout-form__login,
	.checkout-form > .checkout-section {
		grid-column: 1;
	}

	.checkout-form > .checkout-section--payment,
	.checkout-form #order_review,
	.checkout-form #payment {
		display: contents;
	}

	.checkout-form #order_review_heading {
		grid-column: 1;
		margin-bottom: -16px;
	}

	.checkout-form .wc_payment_methods,
	.checkout-form .payment-unavailable {
		grid-column: 1;
	}

	.checkout-form .checkout-aside {
		grid-column: 2;
		grid-row: 1 / span 6;
		position: sticky;
		top: 24px;
	}

	.checkout-form--pay {
		display: flex;
		max-width: 680px;
	}
}

@media (min-width: 1920px) {
	.site-main--shop {
		max-width: 1440px;
	}
}
