/* WooCommerce: archive, product page, cart, checkout */

/* ---------- Notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; margin: 0 0 20px; padding: 14px 18px;
	background: var(--color-white); border: 1px solid var(--color-line-soft); border-left-width: 1px;
	border-radius: var(--radius-card); font-size: var(--fs-ui);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.woocommerce-message { border-color: var(--color-green); }
.woocommerce-error { border-color: var(--color-error); }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 36px; padding: 0 14px; font-size: var(--fs-xs); }

/* ---------- Archive ---------- */
.archive-head { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; padding-bottom: 8px; }
.archive-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.archive-head__text { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.archive-head__title { font-size: var(--fs-h1); letter-spacing: -0.02em; }
.archive-head__desc p { margin: 0; }
.archive-head__desc { font-size: var(--fs-body); }
.archive-head__count { font-size: var(--fs-sm); }
.archive-head__chips { padding-top: 8px; }

.archive-body { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 24px; padding-bottom: 80px; }
.archive-body__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.archive-toolbar { display: flex; justify-content: flex-end; }
.woocommerce-ordering { display: flex; align-items: center; gap: 10px; margin: 0; }
.woocommerce-ordering::before { content: "Sortér efter"; font-size: var(--fs-sm); color: var(--color-muted); }
.woocommerce-ordering select { height: var(--control-h); padding: 0 36px 0 14px; font-size: var(--fs-sm); }

.filters { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 28px; font-size: var(--fs-ui); }
.filters form { display: flex; flex-direction: column; gap: 28px; }
.filters__group { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.filters__group legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.filters__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.filters__reset { font-size: var(--fs-sm); }
.filters__note { background: var(--color-sand); border-radius: var(--radius-card); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.filters__note span { font-size: var(--fs-sm); line-height: 1.5; color: var(--color-muted); }

/* Sticky filter column on desktop; scrolls internally if taller than the viewport. */
@media (min-width: 761px) {
	.filters {
		position: sticky; top: 24px;
		max-height: calc(100vh - 48px); overflow-y: auto;
		overscroll-behavior: contain; scrollbar-width: thin;
		padding-right: 4px;
	}
	.admin-bar .filters { top: 56px; max-height: calc(100vh - 80px); }
}

@media (max-width: 760px) {
	.filters { max-width: none; flex-basis: 100%; }
	.filters form { flex-direction: row; flex-wrap: wrap; gap: 20px 32px; }
	.filters__note { display: none; }
}

.archive-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 32px; }
.archive-more__sentinel { width: 100%; height: 1px; }
.archive-more__status { margin: 0; font-size: var(--fs-sm); color: var(--color-subtle); min-height: 1.5em; }
.archive-more.is-loading .archive-more__status::before {
	content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px;
	border: 2px solid var(--color-line); border-top-color: var(--color-green); border-radius: 50%;
	animation: hm-spin .8s linear infinite;
}
@keyframes hm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .archive-more.is-loading .archive-more__status::before { animation: none; } }

.empty-state { padding: 40px; background: var(--color-white); border: 1px solid var(--color-line-soft); border-radius: var(--radius-card); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.archive-seo { padding-bottom: 72px; }
.archive-seo__inner { border-top: 1px solid var(--color-line); padding-top: 40px; max-width: 760px; color: var(--color-muted); }
.archive-seo__inner h2 { color: var(--color-ink); font-size: 26px; }

/* ---------- Product page ---------- */
.product-page__crumbs { padding-top: 28px; }

.product-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 24px; padding-bottom: 72px; }
.product-layout__gallery { flex: 1 1 480px; min-width: 0; }
.product-layout__summary { flex: 1 1 400px; display: flex; flex-direction: column; gap: 22px; }

/* Gallery (WooCommerce FlexSlider markup) */
.woocommerce-product-gallery { position: relative; opacity: 1 !important; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery__image:only-child { border-radius: var(--radius-media); overflow: hidden; background: var(--color-placeholder); }
.woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.woocommerce-product-gallery .flex-control-thumbs {
	list-style: none; margin: 12px 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.woocommerce-product-gallery .flex-control-thumbs img {
	width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-thumb); cursor: pointer; opacity: .75;
	outline-offset: 2px;
}
.woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; outline: 2px solid var(--color-ink); }
.woocommerce-product-gallery__trigger {
	position: absolute; top: 14px; right: 14px; z-index: 5;
	width: var(--control-h); height: var(--control-h); border-radius: 50%;
	background: var(--color-white); display: flex; align-items: center; justify-content: center;
	text-indent: -9999px; overflow: hidden;
}
.woocommerce-product-gallery__trigger::before {
	content: ""; width: 14px; height: 14px; border: 2px solid var(--color-ink); border-radius: 50%; text-indent: 0; display: block;
}

.product-summary__cat { text-decoration: none; }
.product-summary__title { font-size: var(--fs-h1-product); line-height: 1.05; letter-spacing: -0.02em; margin-top: -12px; }
.product-layout__summary .product-summary__cat + .product-summary__title { margin-top: -12px; }
.product-layout__summary > .price { font-size: 24px; font-weight: 500; margin: -8px 0 0; }
.price del { color: var(--color-subtle); font-weight: 400; margin-right: 8px; }
.price ins { text-decoration: none; }
.product-summary__intro { font-size: var(--fs-body); line-height: 1.6; color: var(--color-muted); }

/* Add to cart form */
form.cart { display: flex; flex-direction: column; gap: 18px; margin: 0; }
form.cart:not(.variations_form),
.woocommerce-variation-add-to-cart { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; }
.single_add_to_cart_button { flex: 1 1 220px; min-height: var(--cta-h); font-size: 16px; }

table.variations, table.variations tbody, table.variations tr, table.variations th, table.variations td { display: block; border: 0; padding: 0; text-align: left; }
table.variations tr + tr { margin-top: 16px; }
table.variations th.label { margin-bottom: 12px; font-size: var(--fs-ui); font-weight: 600; }
table.variations th.label label { font-weight: 600; }
.swatch-current { font-weight: 400; }
table.variations td.value select:not(.hm-swatch-select) { width: 100%; max-width: 360px; }
.hm-swatch-select { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.reset_variations { display: inline-block; margin-top: 10px; font-size: var(--fs-sm); }
.single_variation_wrap { display: flex; flex-direction: column; gap: 12px; }
.woocommerce-variation-price .price { font-size: 20px; }
.stock { font-size: var(--fs-sm); color: var(--color-green); margin: 0; }
.stock.out-of-stock { color: var(--color-jul); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
	width: 48px; height: 48px; border-radius: 50%;
	border: 2px solid var(--color-white); outline: 1px solid var(--color-line); outline-offset: 1px;
	background: var(--color-placeholder) center / cover no-repeat; cursor: pointer; padding: 0;
}
.swatch.is-selected { outline: 2px solid var(--color-ink); }
.swatch--text {
	width: auto; height: var(--control-h); padding: 0 16px; border-radius: var(--radius-pill);
	border: 1.5px solid var(--color-line); outline: 0; background: var(--color-white);
	font-size: var(--fs-sm); font-weight: 500;
}
.swatch--text.is-selected { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-white); outline: 0; }
.swatch.is-unavailable { opacity: .35; cursor: not-allowed; background-image: linear-gradient(135deg, transparent 47%, var(--color-ink) 48%, var(--color-ink) 52%, transparent 53%) !important; }

/* Quantity stepper (enhanced by site.js) */
.quantity { display: inline-flex; align-items: center; }
.quantity input.qty {
	width: 56px; min-height: var(--cta-h); text-align: center;
	border: 1.5px solid var(--color-line); border-radius: var(--radius-pill); background: var(--color-white);
	-moz-appearance: textfield; font-weight: 600;
}
.quantity input.qty::-webkit-outer-spin-button, .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hm-qty { border: 1.5px solid var(--color-line); border-radius: var(--radius-pill); background: var(--color-white); height: var(--cta-h); }
.hm-qty input.qty { border: 0; min-height: 0; height: 100%; width: 32px; padding: 0; background: transparent; }
.hm-qty__btn { width: 48px; height: 100%; border: 0; background: transparent; font-size: 20px; cursor: pointer; border-radius: var(--radius-pill); }
.cart-item .hm-qty { height: var(--control-h); }
.cart-item .hm-qty__btn { width: 44px; font-size: 18px; }

.product-summary__notify { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

.info-box {
	list-style: none; margin: 0; padding: 18px 20px;
	background: var(--color-white); border: 1px solid var(--color-line-soft); border-radius: var(--radius-card);
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; font-size: var(--fs-sm);
}
.info-box li { display: flex; align-items: center; gap: 10px; }
.info-box .icon { flex: none; color: var(--color-green); }
@media (max-width: 480px) { .info-box { grid-template-columns: 1fr; } }

.accordion__panel ul { margin: 0; padding-left: 1.2em; }
.accordion__panel table { width: 100%; border-collapse: collapse; }
.accordion__panel th, .accordion__panel td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--color-line-soft); }
.accordion__panel th { font-weight: 600; color: var(--color-ink); width: 40%; }
.accordion__panel p { margin: 0; }

.related { padding-bottom: 80px; }
.related .section-title { margin-bottom: 24px; }
.related .product-grid { gap: 24px; }

/* ---------- Cart ---------- */
.cart-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-block: 48px 80px; }
.cart-layout__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cart-layout__title { font-size: var(--fs-h1-sm); letter-spacing: -0.02em; margin-bottom: 16px; }
.cart-layout__side { flex: 1 1 340px; max-width: 420px; }

.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px 0; border-top: 1px solid var(--color-line); }
.cart-item:last-child { border-bottom: 1px solid var(--color-line); }
.cart-item__media { width: 120px; flex: none; }
.cart-item__media img { width: 120px; height: 140px; object-fit: cover; border-radius: 14px; }
.cart-item__body { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; }
.cart-item__name { font-weight: 600; font-size: 17px; }
.cart-item__name a { text-decoration: none; }
.cart-item__body .variation { margin: 0; font-size: var(--fs-sm); color: var(--color-subtle); display: flex; flex-wrap: wrap; gap: 0 6px; }
.cart-item__body .variation dt, .cart-item__body .variation dd { margin: 0; }
.cart-item__body .variation dd p { margin: 0; }
.cart-item__note { font-size: var(--fs-sm); font-weight: 500; color: var(--color-green); }
.cart-item__actions { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.cart-item__remove { font-size: var(--fs-sm); color: var(--color-muted); min-height: var(--control-h); display: inline-flex; align-items: center; }
.cart-item__total { font-weight: 600; font-size: 17px; }

.cart-actions { display: flex; gap: 12px; justify-content: flex-end; padding-top: 12px; }
.hm-js .cart-actions__update { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.cart-suggestion { margin-top: 24px; background: var(--color-sand); border-radius: var(--radius-media); padding: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.cart-suggestion__media { width: 88px; flex: none; }
.cart-suggestion__media img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius-thumb); }
.cart-suggestion__text { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.cart-suggestion__text span { font-size: var(--fs-sm); color: var(--color-muted); }
.cart-suggestion .added_to_cart { font-size: var(--fs-sm); }

.summary-box {
	background: var(--color-white); border: 1px solid var(--color-line-soft); border-radius: var(--radius-media);
	padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.summary-box__title { font-size: 24px; }
.summary-box__table { width: 100%; border-collapse: collapse; font-size: var(--fs-ui); }
.summary-box__table th { text-align: left; font-weight: 400; padding: 6px 0; }
.summary-box__table td { text-align: right; padding: 6px 0; }
.summary-box__table .order-total th, .summary-box__table .order-total td { font-size: 18px; font-weight: 600; border-top: 1px solid var(--color-line-soft); padding-top: 16px; }
.summary-box__table .order-total .includes_tax { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--color-subtle); }
.summary-box__table #shipping_method { list-style: none; margin: 0; padding: 0; }
.summary-box__table .woocommerce-shipping-destination { font-size: var(--fs-xs); color: var(--color-subtle); }
.summary-box__coupon { display: flex; flex-direction: column; gap: 6px; }
.summary-box__coupon label { font-size: var(--fs-sm); color: var(--color-muted); }
.summary-box__coupon-row { display: flex; gap: 8px; }
.summary-box__coupon-row input { flex: 1; min-width: 0; }
.summary-box__coupon-row .btn { border-radius: var(--radius-input); min-height: var(--control-h); }
.wc-proceed-to-checkout .checkout-button { width: 100%; }
.summary-box__payment { margin: 0; text-align: center; font-size: var(--fs-xs); color: var(--color-muted); }

.cart-empty, .return-to-shop { text-align: center; }
.return-to-shop { margin-bottom: 80px; }

/* ---------- Checkout (light touch: keep plugin fields, match look) ---------- */
.woocommerce form .form-row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.woocommerce form .form-row label { font-size: var(--fs-sm); font-weight: 500; }
.woocommerce form .form-row .required { color: var(--color-jul); text-decoration: none; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { width: 100%; }
#order_review, .woocommerce-checkout-review-order {
	background: var(--color-white); border: 1px solid var(--color-line-soft); border-radius: var(--radius-media); padding: 24px;
}
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-size: var(--fs-ui); }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 8px 0; text-align: left; border-bottom: 1px solid var(--color-line-soft); }
.wc_payment_methods { list-style: none; margin: 16px 0; padding: 0; }
.wc_payment_method { padding: 10px 0; border-bottom: 1px solid var(--color-line-soft); }
#place_order { width: 100%; min-height: var(--cta-h); }
@media (min-width: 960px) {
	form.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
	form.checkout > .col2-set { grid-column: 1; }
	form.checkout > #order_review_heading, form.checkout > #order_review { grid-column: 2; }
	form.checkout > #order_review_heading { grid-row: 1; }
	form.checkout > #order_review { grid-row: 2; }
}

/* Empty cart */
.cart-empty-page { padding-block: 48px 80px; }
.cart-empty-page__text { color: var(--color-muted, #5b6460); margin: 0 0 24px; max-width: 48ch; }
.cart-empty-page__popular { margin-top: 64px; }
.cart-empty-page__popular .section-title { margin-bottom: 24px; }
