/* ==========================================================================
   Produktkort – desktop: namn och pris inne i bilden. Mobil (listning): under bilden.
   ========================================================================== */

.product-card {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--sand);
	color: var(--ink);
	text-decoration: none;
	aspect-ratio: 612 / 745;
	transition: transform var(--ease), box-shadow var(--ease);
}
.product-card:hover { transform: var(--lift); box-shadow: var(--shadow-lift); color: var(--ink); }
.product-card:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius); }

.product-card__media { position: absolute; inset: 0; display: block; }
.product-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	transition: transform 600ms ease;
}
.product-card:hover .product-card__img { transform: scale(1.02); }

.product-card__top,
.product-card__bottom {
	position: absolute;
	left: 1.25rem;
	right: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	font-family: var(--font-heading);
	font-size: 1rem;
	line-height: 1.3;
}
.product-card__top { top: 1.15rem; }
.product-card__bottom { bottom: 1.15rem; }
.product-card__name { flex: 1; min-width: 0; }
.product-card__number {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-caps);
	color: var(--ink-soft);
}
.product-card__price { font-variant-numeric: tabular-nums; }
.product-card__price del { color: var(--ink-soft); text-decoration: line-through; margin-right: 0.4em; }
.product-card__price ins { text-decoration: none; }
.product-card__badge {
	padding: 0.25rem 0.7rem;
	border-radius: var(--radius-pill);
	background: var(--cream);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: var(--weight-ui);
	white-space: nowrap;
}

.swatches { display: inline-flex; gap: 0.4rem; flex-shrink: 0; }
.swatch {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--swatch);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

/* Rutnät: 20px mellanrum som referensen */
.product-grid { display: grid; gap: var(--header-inset); }
.product-grid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 768px) {
	.product-grid--3, .product-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
	.product-grid--3, .product-grid--shop, .product-grid--2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Mobil listning: bild, sedan namn (serif) och pris (sans) under */
@media (max-width: 767px) {
	.product-grid--shop .product-card { aspect-ratio: auto; background: none; border-radius: 0; overflow: visible; }
	.product-grid--shop .product-card:hover { transform: none; box-shadow: none; }
	.product-grid--shop .product-card__media {
		position: relative;
		inset: auto;
		overflow: hidden;
		border-radius: var(--radius-sm);
		background: var(--sand);
		aspect-ratio: 372 / 486;
	}
	.product-grid--shop .product-card__top {
		position: static;
		display: block;
		margin-top: 0.75rem;
		font-size: 1.125rem;
		line-height: 1.25;
	}
	.product-grid--shop .product-card__top .swatches { position: absolute; top: 0.75rem; right: 0.75rem; }
	.product-grid--shop .product-card__top .product-card__number { display: none; }
	.product-grid--shop .product-card__bottom {
		position: static;
		display: block;
		margin-top: 0.35rem;
		font-family: var(--font-body);
		font-weight: var(--weight-ui);
	}
	.product-grid--shop .product-card__badge { position: absolute; top: 0.75rem; left: 0.75rem; }
}

.woocommerce-Price-amount { white-space: nowrap; }

/* ==========================================================================
   Listning – kategorirad, sortering, paginering
   ========================================================================== */

.shop { padding-bottom: var(--section-gap); }
.shop__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.5rem var(--space-4);
	margin-bottom: var(--space-3);
}
.shop-nav__list { display: flex; flex-wrap: wrap; align-items: baseline; list-style: none; }
.shop-nav__item { display: inline-flex; align-items: baseline; }
.shop-nav__link {
	font-size: clamp(1.75rem, 2.1vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--ink-soft);
	text-decoration: none;
	transition: color var(--ease);
}
.shop-nav__link:hover { color: var(--ink); }
.shop-nav__link.is-active { color: var(--ink); font-weight: var(--weight-ui); }
.shop-nav__comma {
	margin-right: 0.35em;
	font-size: clamp(1.75rem, 2.1vw, 2.5rem);
	color: var(--ink-soft);
}
.shop-nav__item:has(.is-active) .shop-nav__comma { color: var(--ink); }

.shop-sort { position: relative; display: inline-flex; align-items: center; }
.shop-sort .woocommerce-ordering { margin: 0; }
.shop-sort select {
	appearance: none;
	-webkit-appearance: none;
	min-height: 0;
	padding: 0.25rem 1.5rem 0.25rem 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	font-size: var(--text-sm);
	font-weight: var(--weight-ui);
	cursor: pointer;
}
.shop-sort .icon { position: absolute; right: 0; pointer-events: none; }

.shop__description { max-width: 40rem; margin-bottom: var(--space-4); color: var(--ink-soft); }
.shop__description p:last-child { margin: 0; }
.shop__empty { padding: var(--space-6) 0; text-align: center; }
.shop__empty .btn { margin-top: var(--space-2); }

.woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	gap: 0.25rem;
	margin-top: var(--space-6);
	list-style: none;
}
.woocommerce-pagination a,
.woocommerce-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.5rem;
	border-radius: var(--radius-pill);
	color: var(--ink);
	text-decoration: none;
	font-weight: var(--weight-ui);
}
.woocommerce-pagination a:hover { background: var(--sand); }
.woocommerce-pagination .current { background: var(--sand); }

/* Woos meddelanden */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	margin: 0 0 var(--space-3);
	padding: 0.9rem 1.25rem;
	border-radius: var(--radius-sm);
	background: var(--white);
	list-style: none;
	font-size: var(--text-sm);
}
.woocommerce-error { background: #F1D9D0; }
.woocommerce-message .button, .woocommerce-info .button { display: none; }

/* ==========================================================================
   Produktsida – galleri vänster, sticky infokort höger
   ========================================================================== */

.site-main--product { padding-top: calc(var(--header-h) + 2 * var(--header-inset)); }
.product-page { display: grid; gap: var(--space-3); }

.product-gallery { position: relative; }
.product-gallery__track {
	display: flex;
	gap: var(--header-inset);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	border-radius: var(--radius);
}
.product-gallery__track::-webkit-scrollbar { display: none; }
.product-gallery__item {
	flex: 0 0 100%;
	scroll-snap-align: start;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--sand);
}
.product-gallery__img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: 4 / 5; }
.product-gallery__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 1rem;
	display: flex;
	justify-content: center;
	gap: 0.4rem;
}
.product-gallery__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	transition: background-color var(--ease);
}
.product-gallery__dot.is-active { background: var(--white); }

.product-anchors {
	display: flex;
	justify-content: space-around;
	gap: 1rem;
	padding: 0.25rem 0 0.9rem;
	font-size: var(--text-xs);
	font-weight: var(--weight-ui);
}
.product-anchors a { color: var(--ink); text-decoration: none; }
.product-anchors a:hover { color: var(--clay); }

.product-info {
	padding: 1.25rem 1.25rem 1.5rem;
	border-radius: var(--radius);
	background: var(--sand);
}
.product-info__title {
	margin: 0.5rem 0 1rem;
	font-size: clamp(1.75rem, 2.2vw, 2.5rem);
	text-align: center;
}
.product-info__origin { margin-bottom: 1rem; font-size: var(--text-sm); font-weight: var(--weight-ui); }
.product-info__excerpt { margin-bottom: 1.25rem; font-size: var(--text-sm); color: var(--ink-soft); }
.product-info__excerpt ul { padding-left: 1.1rem; }
.product-info__label { margin: 0.5rem 0 0.5rem; }

/* Köpdel: Woos formulär stylat */
.product-info__buy form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; }
.product-info__buy .variations { width: 100%; margin: 0 0 0.75rem; border-collapse: collapse; }
.product-info__buy .variations th, .product-info__buy .variations td { display: block; padding: 0; }
.product-info__buy .variations th { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.product-info__buy .variations select.has-pills { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.product-info__buy .reset_variations { display: none !important; }
.product-info__buy .single_variation_wrap { width: 100%; }
.product-info__buy .woocommerce-variation-price { display: none; }
.product-info__buy .woocommerce-variation-add-to-cart { display: flex; align-items: center; gap: 0.5rem; }
.product-info__buy .woocommerce-variation-availability,
.product-info__buy .stock { width: 100%; margin: 0.5rem 0 0; font-size: var(--text-xs); color: var(--ink-soft); }
.product-info__buy .out-of-stock { color: var(--clay-dark); }

.variation-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.25rem; }
.variation-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.35rem 0.85rem;
	border-radius: var(--radius-pill);
	background: var(--cream);
	color: var(--ink-soft);
	font-size: var(--text-sm);
	font-weight: var(--weight-ui);
	transition: background-color var(--ease), color var(--ease);
}
.variation-pill:hover { color: var(--ink); }
.variation-pill.is-active { background: var(--ink); color: var(--white); }
.variation-pill.is-disabled { opacity: 0.4; text-decoration: line-through; }
.variation-pill__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6); }
.variation-pill:focus-visible { border-radius: var(--radius-pill); }

.quantity {
	display: inline-flex;
	align-items: center;
	height: 3rem;
	border-radius: var(--radius-pill);
	background: var(--cream);
}
.quantity .screen-reader-text { position: absolute; }
.qty-btn {
	width: 2.5rem;
	height: 100%;
	font-size: 1.125rem;
	color: var(--ink);
	transition: color var(--ease);
}
.qty-btn:hover { color: var(--clay); }
.qty-btn:focus-visible { border-radius: var(--radius-pill); }
.quantity input.qty {
	width: 2.25rem;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	text-align: center;
	font-weight: var(--weight-ui);
	-moz-appearance: textfield;
}
.quantity input.qty::-webkit-inner-spin-button, .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantity input.qty:focus-visible { box-shadow: none; }

.single_add_to_cart_button {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 3rem;
	padding: 0.5rem 1.25rem;
	border-radius: var(--radius-pill);
	background: var(--clay);
	color: var(--white);
	font-weight: var(--weight-ui);
	white-space: nowrap;
	transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease), opacity var(--ease);
}
.single_add_to_cart_button:hover { background: var(--clay-dark); transform: var(--lift); box-shadow: var(--shadow-soft); }
.single_add_to_cart_button:focus-visible { border-radius: var(--radius-pill); }
.single_add_to_cart_button.disabled, .single_add_to_cart_button:disabled { background: var(--cream); color: var(--ink-soft); cursor: not-allowed; transform: none; box-shadow: none; }
.single_add_to_cart_button.is-loading { opacity: 0.7; pointer-events: none; }
.btn-price { font-variant-numeric: tabular-nums; }
.btn-price del { opacity: 0.7; margin-right: 0.3em; }
.btn-price ins { text-decoration: none; }
.btn-sep { opacity: 0.7; }

/* Set (grouped): delarna som lista */
.product-info__buy .woocommerce-grouped-product-list { width: 100%; margin: 0 0 0.75rem; border-collapse: collapse; }
.product-info__buy .woocommerce-grouped-product-list tbody, .product-info__buy .woocommerce-grouped-product-list tr { display: block; }
.product-info__buy .woocommerce-grouped-product-list tr { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; }
.product-info__buy .woocommerce-grouped-product-list td { display: block; padding: 0; }
.product-info__buy .woocommerce-grouped-product-list-item__quantity { flex-shrink: 0; }
.product-info__buy .woocommerce-grouped-product-list-item__quantity .quantity { height: 2.5rem; }
.product-info__buy .woocommerce-grouped-product-list-item__quantity .qty-btn { width: 2rem; }
.product-info__buy .woocommerce-grouped-product-list-item__label { flex: 1; font-family: var(--font-heading); }
.product-info__buy .woocommerce-grouped-product-list-item__label a { color: var(--ink); text-decoration: none; }
.product-info__buy .woocommerce-grouped-product-list-item__label a:hover { color: var(--clay); }
.product-info__buy .woocommerce-grouped-product-list-item__price { font-size: var(--text-sm); }
.product-info__buy .woocommerce-grouped-product-list-item__price .stock { display: none; }
.product-info__buy form.grouped_form .single_add_to_cart_button { width: 100%; }

/* Under: beskrivning, FAQ, passar till */
.product-story, .product-faq, .product-addons { margin-top: clamp(4rem, 6vw, 6rem); scroll-margin-top: calc(var(--header-h) + 3 * var(--header-inset)); }
.product-story__inner { max-width: 72rem; font-size: var(--text-lg); }
.product-story__inner figure { margin-block: var(--space-4); }
.product-story__inner figcaption { margin-top: 0.75rem; font-size: var(--text-sm); color: var(--ink-soft); }
.product-story__inner .wp-block-columns, .product-story__inner .wp-block-gallery { margin-block: var(--space-4); }

.faq { max-width: 64rem; }
.faq__item { margin-bottom: 0.5rem; border-radius: var(--radius-sm); background: var(--sand); }
.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	font-family: var(--font-heading);
	font-size: 1.125rem;
	cursor: pointer;
	list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:focus-visible { border-radius: var(--radius-sm); }
.faq__icon { font-family: var(--font-body); font-size: 1.5rem; line-height: 1; transition: transform var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 1.25rem 1.25rem; color: var(--ink-soft); }

.product-addons__title { margin-bottom: var(--space-3); }
.addon { position: relative; }
.addon .product-card__bottom { bottom: 5.25rem; }
.addon__actions {
	position: absolute;
	left: 1.25rem;
	right: 1.25rem;
	bottom: 1.25rem;
	display: flex;
	gap: 0.5rem;
}
.addon__actions .addon__button { flex: 1; }
.addon__actions .added_to_cart { display: none; }

/* Relaterade – olive-band med rundad övergång, går ihop med sidfoten */
.product-related {
	position: relative;
	margin-top: clamp(5rem, 8vw, 8rem);
	padding: clamp(5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
	background: var(--olive);
	color: var(--white);
}
.product-related::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: var(--radius);
	background: var(--cream);
	border-radius: 0 0 var(--radius) var(--radius);
}
.product-related__title {
	margin-bottom: var(--space-5);
	font-size: clamp(2rem, 3vw, 3rem);
	text-align: center;
	color: var(--white);
}
.site-main--product ~ .site-footer { margin-top: 0; }

@media (min-width: 1100px) {
	.product-page { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--header-inset); align-items: start; }
	.product-gallery__track { flex-direction: column; overflow: visible; scroll-snap-type: none; }
	.product-gallery__item { flex: none; }
	.product-gallery__img { aspect-ratio: auto; height: auto; }
	.product-gallery__dots { display: none; }
	.product-page__side { position: sticky; top: calc(var(--header-h) + 2 * var(--header-inset)); }
	.product-info { padding: 1.25rem 1.25rem 1.5rem; }
	.product-story { padding-inline: var(--header-inset); }
}

/* ==========================================================================
   Varukorgspanel
   ========================================================================== */

.cart-drawer { position: fixed; inset: 0; z-index: 200; }
.cart-drawer[hidden] { display: none; }
.cart-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(43, 38, 34, 0.35);
	opacity: 0;
	transition: opacity 250ms ease;
}
.cart-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(100%, 34rem);
	background: var(--cream);
	box-shadow: var(--shadow-lift);
	transform: translateX(100%);
	transition: transform 300ms ease;
	outline: none;
}
.cart-drawer.is-open .cart-drawer__backdrop { opacity: 1; }
.cart-drawer.is-open .cart-drawer__panel { transform: none; }
body.cart-open { overflow: hidden; }

.cart-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 0.75rem 0.75rem 1.25rem;
}
.cart-drawer__title { margin: 0; font-family: var(--font-body); font-size: var(--text-sm); font-weight: var(--weight-ui); }
.cart-drawer__count { color: var(--ink-soft); }

.cart-drawer__body { flex: 1; overflow-y: auto; padding: 0 1.25rem 1.25rem; }
.cart-drawer__shipping {
	margin: 0.5rem 0 1.25rem;
	font-family: var(--font-heading);
	font-size: 1.125rem;
	text-align: center;
}
.cart-drawer__empty { margin: var(--space-4) 0 var(--space-3); text-align: center; color: var(--ink-soft); }
.cart-drawer__body .btn { display: flex; }

.cart-drawer__items { list-style: none; }
.cart-item {
	display: flex;
	gap: 1rem;
	margin-bottom: 0.5rem;
	padding: 0.75rem;
	border-radius: var(--radius-sm);
	background: var(--white);
}
.cart-item__media {
	flex-shrink: 0;
	width: 5rem;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 12px;
	background: var(--sand);
}
.cart-item__img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { margin: 0.15rem 0 0.25rem; font-family: var(--font-heading); font-size: 1.0625rem; line-height: 1.25; }
.cart-item__name a { color: var(--ink); text-decoration: none; }
.cart-item__name a:hover { color: var(--clay); }
.cart-item .variation { display: flex; flex-wrap: wrap; gap: 0 0.5rem; margin: 0; font-size: var(--text-xs); color: var(--ink-soft); }
.cart-item .variation dt, .cart-item .variation dd { margin: 0; display: inline; }
.cart-item .variation dd p { display: inline; margin: 0; }
.cart-item__meta { display: flex; justify-content: space-between; gap: 1rem; margin: 0.35rem 0 0; font-size: var(--text-sm); color: var(--ink-soft); }
.cart-item__remove { color: var(--ink-soft); text-decoration: none; }
.cart-item__remove:hover { color: var(--clay); }

.cart-drawer__footer { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 1.25rem 1.25rem; background: var(--sand); }
.cart-drawer__footer.is-empty { display: none; }
.cart-drawer__checkout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 3.25rem;
	padding: 0 1.5rem;
	border-radius: var(--radius-pill);
	background: var(--clay);
	color: var(--white);
	font-size: 1.0625rem;
	font-weight: var(--weight-ui);
	text-decoration: none;
	transition: background-color var(--ease), transform var(--ease);
}
.cart-drawer__checkout:hover { background: var(--clay-dark); color: var(--white); transform: var(--lift); }
.cart-drawer__checkout:focus-visible { border-radius: var(--radius-pill); }
.cart-drawer__cartlink { text-align: center; font-size: var(--text-sm); color: var(--ink-soft); }
.cart-drawer__cartlink:hover { color: var(--clay); }

/* ==========================================================================
   Woos block-varukorg och block-kassa – bara CSS, inga egna mallar
   ========================================================================== */

/* Knappar */
.woocommerce-cart .wc-block-components-button.wp-element-button,
.woocommerce-checkout .wc-block-components-button.wp-element-button,
.woocommerce-cart .wc-block-components-product-button__button.wp-element-button {
	min-height: 3rem;
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--clay);
	color: var(--white);
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: var(--weight-ui);
	line-height: 1.2;
	text-transform: none;
	box-shadow: none;
	transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.woocommerce-cart .wc-block-components-button.wp-element-button:hover,
.woocommerce-checkout .wc-block-components-button.wp-element-button:hover,
.woocommerce-cart .wc-block-components-product-button__button.wp-element-button:hover { background: var(--clay-dark); color: var(--white); transform: var(--lift); box-shadow: var(--shadow-soft); }
.woocommerce-cart .wc-block-components-button.wp-element-button:focus-visible,
.woocommerce-checkout .wc-block-components-button.wp-element-button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.woocommerce-cart .wc-block-components-button.wp-element-button:disabled,
.woocommerce-checkout .wc-block-components-button.wp-element-button:disabled { opacity: 0.5; transform: none; }
.woocommerce-cart .wc-block-cart__submit-button,
.woocommerce-checkout .wc-block-components-checkout-place-order-button { width: 100%; }
.wc-block-components-button__text { line-height: 1.2; }

/* Bilder i varukorg/kassa: små och lätt rundade (24px blir cirklar på 48px) */
.wc-block-components-product-image img,
.wc-block-components-order-summary-item__image img,
.wc-block-cart-item__image img { border-radius: 12px; }
.wc-block-grid__product-image img { border-radius: var(--radius); }

/* Rubriker och länkar */
.wc-block-components-title,
.wc-block-components-checkout-step__title,
.wc-block-components-checkout-order-summary__title-text { font-family: var(--font-heading); font-weight: var(--weight-heading); color: var(--ink); }
.wc-block-components-checkout-step__title { font-size: 1.5rem; }
.wc-block-cart__totals-title { font-family: var(--font-body); font-size: var(--text-xs); font-weight: var(--weight-ui); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-soft); }
.wc-block-components-product-name { color: var(--ink); font-family: var(--font-heading); font-size: 1.0625rem; text-decoration: none; }
.wc-block-components-product-name:hover { color: var(--clay); }
.wc-block-components-product-metadata,
.wc-block-components-product-details { font-size: var(--text-xs); color: var(--ink-soft); }
.wc-block-components-product-price { font-size: var(--text-sm); }

/* Varukorgens rader som kort */
.wc-block-cart-items { border-collapse: separate; border-spacing: 0 0.5rem; }
.wc-block-cart-items__header { font-size: var(--text-xs); letter-spacing: var(--tracking-caps); color: var(--ink-soft); }
.wc-block-cart-items .wc-block-cart-items__header th { border: 0; padding: 0 1rem 0.5rem; }
.wc-block-cart-items .wc-block-cart-items__row td { border: 0; background: var(--white); padding: 1rem; vertical-align: top; }
.wc-block-cart-items .wc-block-cart-items__row td:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.wc-block-cart-items .wc-block-cart-items__row td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.wc-block-cart-item__total { font-family: var(--font-heading); }

.wc-block-components-quantity-selector { background: var(--cream); border-radius: var(--radius-pill); }
.wc-block-components-quantity-selector::after { border-color: transparent; border-radius: var(--radius-pill); }
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__input { font-weight: var(--weight-ui); }
.wc-block-cart-item__remove-link { color: var(--ink-soft); }
.wc-block-cart-item__remove-link:hover { color: var(--clay); }

/* Summering (varukorg) och orderöversikt (kassa) som sand-kort */
.wc-block-cart__sidebar,
.wc-block-checkout__sidebar { padding: 1.25rem; border-radius: var(--radius); background: var(--sand); }
.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary { border: 0; }
.wc-block-components-totals-wrapper,
.wc-block-components-totals-item,
.wc-block-components-panel,
.wc-block-components-checkout-order-summary__content,
.wc-block-components-order-summary,
.wc-block-components-checkout-order-summary__title { border-color: rgba(43, 38, 34, 0.1); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--font-heading); font-weight: var(--weight-heading); }
.wc-block-components-order-summary-item__quantity { background: var(--clay); border-color: var(--clay); color: var(--white); box-shadow: none; }
.wc-block-components-panel__button { color: var(--ink); }
.wc-block-cart__payment-options { display: none; }

/* Fält i kassan */
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="url"],
.wc-block-components-text-input input[type="number"],
.wc-block-components-textarea textarea,
.wc-blocks-components-select__select {
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--ink);
	box-shadow: none;
}
.wc-block-components-textarea textarea { min-height: 6rem; }
.wc-block-components-text-input input:focus,
.wc-block-components-textarea textarea:focus,
.wc-blocks-components-select__select:focus { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay); outline: none; }
.wc-block-components-text-input.has-error input { border-color: #B54A3F; }
.wc-block-components-text-input label,
.wc-blocks-components-select__label { color: var(--ink-soft); }
.wc-block-components-validation-error { color: #944036; }
.wc-blocks-components-select__container { border: 0; border-radius: var(--radius-sm); }

.wc-block-components-checkbox .wc-block-components-checkbox__input { border-radius: 6px; border-color: var(--ink-soft); background: var(--white); }
.wc-block-components-checkbox .wc-block-components-checkbox__input:checked { background: var(--clay); border-color: var(--clay); }
.wc-block-components-checkbox .wc-block-components-checkbox__input:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

/* Frakt- och betalval */
.wc-block-components-radio-control .wc-block-components-radio-control__input { border-color: var(--ink-soft); }
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked { border-color: var(--clay); }
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before { background: var(--clay); }
.wc-block-components-radio-control-accordion-option,
.wc-block-components-shipping-rates-control__package,
.wc-block-components-radio-control__option { border-color: rgba(43, 38, 34, 0.1); }
.wc-block-components-radio-control-accordion-option { background: var(--white); border-radius: var(--radius-sm); margin-bottom: 0.5rem; }
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: inset 0 0 0 1.5px var(--clay); }
.wc-block-components-notice-banner { border-radius: var(--radius-sm); }
.wc-block-checkout__terms { font-size: var(--text-xs); color: var(--ink-soft); }
.wc-block-checkout__terms a { color: var(--ink); }
.wc-block-components-checkout-step__description { color: var(--ink-soft); }

/* Korsförsäljning på varukorgssidan (Woos produktblock) */
.woocommerce-cart .wc-block-product-template { margin-top: var(--space-3); }
.woocommerce-cart .wp-block-heading { font-size: var(--text-h3); }
.woocommerce-cart .wc-block-product { text-align: left; }
.woocommerce-cart .wc-block-product .wp-block-post-title { margin: 0.75rem 0 0.25rem; font-family: var(--font-heading); font-size: 1.0625rem; font-weight: var(--weight-heading); }
.woocommerce-cart .wc-block-product .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.woocommerce-cart .wc-block-product .wp-block-post-title a:hover { color: var(--clay); }
.woocommerce-cart .wc-block-product .wc-block-grid__product-price,
.woocommerce-cart .wc-block-product .wc-block-components-product-price { display: block; margin-bottom: 0.75rem; text-align: left; font-family: var(--font-heading); }
.woocommerce-cart .wc-block-product .wc-block-components-product-button { text-align: left; }

/* Högre specificitet än Woos egna blockstilar för kanter och radier */
.woocommerce-checkout .wc-block-components-text-input input[type="text"],
.woocommerce-checkout .wc-block-components-text-input input[type="email"],
.woocommerce-checkout .wc-block-components-text-input input[type="tel"],
.woocommerce-checkout .wc-block-components-text-input input[type="url"],
.woocommerce-checkout .wc-block-components-text-input input[type="number"],
.woocommerce-checkout .wc-block-components-textarea textarea,
.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select,
.woocommerce-cart .wc-block-components-text-input input[type="text"] { border-color: transparent; border-radius: var(--radius-sm); background: var(--white); }
.woocommerce-checkout .wc-block-components-text-input input:focus,
.woocommerce-checkout .wc-block-components-textarea textarea:focus,
.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.woocommerce-cart .wc-block-components-text-input input:focus { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay); }
.woocommerce-checkout .wc-block-components-text-input.has-error input { border-color: #B54A3F; }
.woocommerce-checkout .wc-block-components-radio-control,
.woocommerce-checkout .wc-block-components-shipping-rates-control__package { border-radius: var(--radius-sm); overflow: hidden; }
.woocommerce-checkout .wc-block-components-radio-control .wc-block-components-radio-control__option,
.woocommerce-checkout .wc-block-components-radio-control-accordion-option { border-color: rgba(43, 38, 34, 0.12); background: var(--white); }
.woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted,
.woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted { border-color: transparent; box-shadow: inset 0 0 0 1.5px var(--clay); }
.woocommerce-cart .wc-block-cart__sidebar { align-self: flex-start; position: sticky; top: calc(var(--header-h) + 2 * var(--header-inset)); }

/* Antalsväljaren: nollställ temats generella input-stil (höjd/padding klippte siffran) */
.woocommerce-cart .wc-block-components-quantity-selector { height: 2.75rem; }
.woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	min-height: 0;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	line-height: 1;
	box-shadow: none;
}
.woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input:focus-visible { box-shadow: none; outline: 2px solid var(--clay); outline-offset: -2px; border-radius: 4px; }
.woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { min-width: 2.25rem; color: var(--ink); opacity: 1; }
.woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover { color: var(--clay); }

/* Fraktalternativen som egna rundade kort – markeringen får då hela sin ram synlig */
.woocommerce-checkout .wc-block-components-shipping-rates-control__package,
.woocommerce-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control { border: 0; border-radius: 0; overflow: visible; background: transparent; }
.woocommerce-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control .wc-block-components-radio-control__option {
	margin: 0 0 0.5rem;
	padding: 0.9rem 1rem 0.9rem 3rem;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--white);
	box-shadow: inset 0 0 0 1px rgba(43, 38, 34, 0.08);
}
.woocommerce-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control .wc-block-components-radio-control__option::after,
.woocommerce-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control .wc-block-components-radio-control__option::before { display: none; }
.woocommerce-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted { box-shadow: inset 0 0 0 1.5px var(--clay); }
/* Woos yttre ram (::after) runt hela radiogruppen och avdelarlinjen i betalkortet */
.woocommerce-checkout .wc-block-components-radio-control--highlight-checked::after,
.woocommerce-checkout .wc-block-components-radio-control--highlight-checked div.wc-block-components-radio-control-accordion-option::after { display: none; }
.woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.woocommerce-checkout .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted { border-radius: var(--radius-sm); }
.woocommerce-checkout .wc-block-components-radio-control-accordion-option { border: 0; box-shadow: inset 0 0 0 1px rgba(43, 38, 34, 0.08); }
.woocommerce-checkout .wc-block-components-radio-control-accordion-content { background: transparent; }
.woocommerce-checkout .wc-block-components-radio-control .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option { background: transparent; border-radius: 0; box-shadow: none; }
.woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted { border: 0; box-shadow: inset 0 0 0 1.5px var(--clay); }

/* Snackbar-meddelanden */
.wc-block-components-notice-snackbar-list .components-snackbar { border-radius: var(--radius-sm); background: var(--ink); color: var(--white); }
