/**
 * Pilgrim shop styles — PLP, PDP, cart, checkout, content pages.
 *
 * Owner: theme-shop. Loaded only on shop/PLP/PDP/cart/checkout/page/404/search.
 *
 * Measurements come from the live reference (pilgrim.net, Horizon theme) at
 * 1440×900 and 390×844 — see tools/theme-shop/ref/ and ref-theme/shots/.
 * Tokens: gutter 40px desktop / 16px mobile, ink #000, body rgba(0,0,0,.81),
 * border #e5e5e5, media placeholder #f3f3f3, font Helvetica Neue.
 */

/* =========================================================================
   1. Tokens & shared primitives
   ========================================================================= */
.p-shop {
	--p-ink: #000;
	--p-body: rgba(0, 0, 0, 0.81);
	--p-muted: rgba(0, 0, 0, 0.6);
	--p-faint: rgba(0, 0, 0, 0.45);
	--p-border: #e5e5e5;
	--p-border-strong: #d9d9d9;
	--p-placeholder: #f3f3f3;
	--p-surface: #f7f7f7;
	--p-white: #fff;
	--p-gutter: 40px;
	--p-gap: 4px;
	--p-header-height: 70px;
	--p-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--p-anim: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);

	font-family: var(--p-font);
	font-size: 14px;
	line-height: 1.6;
	color: var(--p-body);
}

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

.p-shop img {
	max-width: 100%;
}

.p-shop a:not(.p-btn) {
	color: inherit;
}

.p-main {
	margin: 0;
}

.p-wrap {
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: var(--p-gutter);
}

.p-visually-hidden {
	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;
}

.p-section-title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
}

/* Buttons --------------------------------------------------------------- */
.p-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 24px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	color: var(--p-ink);
	background: transparent;
	border: 1px solid transparent;
	border-radius: 0;
	cursor: pointer;
	transition: opacity var(--p-anim), background-color var(--p-anim), color var(--p-anim);
}

.p-btn:hover {
	opacity: 0.82;
}

.p-btn--primary {
	background: var(--p-ink);
	border-color: var(--p-ink);
	color: var(--p-white);
}

.p-btn--primary:hover {
	opacity: 0.86;
}

.p-btn--secondary {
	background: var(--p-white);
	border-color: var(--p-ink);
	color: var(--p-ink);
}

.p-btn[disabled],
.p-btn[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Price block ----------------------------------------------------------- */
.p-price {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0 8px;
	font-size: 14px;
	line-height: 1.4;
}

.p-price__regular {
	opacity: 0.5;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

.p-price__sale {
	text-decoration: none;
}

.p-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.p-badge--sale {
	color: var(--p-ink);
}

/* Quantity stepper ------------------------------------------------------ */
.p-qty {
	display: inline-flex;
	align-items: stretch;
	height: 40px;
	border: 1px solid var(--p-border-strong);
	background: var(--p-white);
}

.p-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--p-ink);
	cursor: pointer;
	transition: background-color var(--p-anim);
}

.p-qty__btn:hover {
	background: rgba(0, 0, 0, 0.05);
}

.p-qty__input {
	width: 40px;
	min-width: 0;
	padding: 0;
	font-family: inherit;
	font-size: 14px;
	text-align: center;
	color: var(--p-ink);
	background: transparent;
	border: 0;
	-moz-appearance: textfield;
	appearance: textfield;
}

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

.p-qty__input:focus-visible {
	outline: 1px solid var(--p-ink);
	outline-offset: -1px;
}

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

.p-empty__title {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
}

.p-empty__text {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--p-muted);
}

.p-empty .p-btn {
	margin-top: 24px;
}

/* Drawer (filter + added-to-cart) ---------------------------------------- */
.p-drawer {
	position: fixed;
	inset: 0;
	width: 500px;
	max-width: 92vw;
	height: 100dvh;
	max-height: 100dvh;
	padding: 0;
	margin: 0 0 0 auto;
	background: var(--p-white);
	color: var(--p-body);
	border: 0;
	border-radius: 0;
	box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
	overflow: hidden;
}

.p-drawer::backdrop {
	background: rgba(0, 0, 0, 0.25);
}

.p-drawer__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.p-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 40px;
}

.p-drawer__title {
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
}

.p-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: -12px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--p-ink);
	cursor: pointer;
}

.p-drawer__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 0 40px 24px;
}

.p-drawer__footer {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 40px 32px;
	border-top: 1px solid var(--p-border);
}

/* =========================================================================
   2. PLP — product archive
   ========================================================================= */
.p-plp {
	padding-bottom: 32px;
}

.p-plp__header {
	padding-block: 24px 36px;
}

.p-plp__title {
	margin: 0;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
}

.p-plp__description {
	margin: 12px 0 0;
	max-width: 70ch;
	color: var(--p-muted);
}

/* Category sub-menu row */
.p-plp__submenu {
	padding-bottom: 16px;
	overflow: hidden;
}

.p-plp__submenu-list {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.p-plp__submenu-list::-webkit-scrollbar {
	width: 0;
	height: 0;
}

.p-plp__submenu-item {
	flex: 0 0 auto;
}

.p-plp__submenu-link {
	display: inline-block;
	padding-block: 8px;
	font-size: 14px;
	line-height: 1.6;
	text-decoration: none;
	color: var(--p-body);
	white-space: nowrap;
	border-bottom: 1px solid transparent;
}

.p-plp__submenu-link:hover,
.p-plp__submenu-link.is-active {
	border-bottom-color: var(--p-ink);
}

/* Toolbar */
.p-plp__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 8px;
	min-height: 36px;
}

.p-plp__toolbar-side {
	display: flex;
	align-items: center;
	gap: 16px;
}

.p-plp__count {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--p-body);
}

.p-media-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}

.p-media-toggle__label {
	font-size: 14px;
	line-height: 20px;
}

.p-media-toggle__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.p-media-toggle__track {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 20px;
	background: #cfcfcf;
	border-radius: 999px;
	transition: background-color var(--p-anim);
}

.p-media-toggle__thumb {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	background: var(--p-white);
	border-radius: 50%;
	transition: transform var(--p-anim);
}

.p-media-toggle__input:checked + .p-media-toggle__track {
	background: var(--p-ink);
}

.p-media-toggle__input:checked + .p-media-toggle__track .p-media-toggle__thumb {
	transform: translateX(16px);
}

.p-media-toggle__input:focus-visible + .p-media-toggle__track {
	outline: 1px solid var(--p-ink);
	outline-offset: 2px;
}

.p-filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	font-family: inherit;
	font-size: 14px;
	line-height: 20px;
	color: var(--p-body);
	background: transparent;
	border: 0;
	cursor: pointer;
}

.p-filter-toggle:hover {
	color: var(--p-ink);
}

.p-filter-toggle__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
}

/* Hidden sort control (parity with reference DOM) */
.sorting-filter__container.hidden {
	display: none !important;
}

/* Product grid */
.p-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: var(--p-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.p-plp__grid {
	align-items: start;
}

/* Product card (mirrors theme-core component contract) */
.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.product-card__media-wrap {
	position: relative;
}

.product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--p-placeholder);
	text-decoration: none;
}

.product-card__media img,
.product-card__media .product-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.25s ease;
}

.product-card__media img + img {
	opacity: 0;
}

.product-card:hover .product-card__media img + img,
.product-card:focus-within .product-card__media img + img {
	opacity: 1;
}

.product-card__media .badge--sale {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
}

.product-card__info {
	padding-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.product-card__title {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.product-card__title a {
	text-decoration: none;
}

.product-card__title a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.product-card__price {
	font-size: 14px;
	line-height: 1.4;
}

.product-card__price .price__regular {
	opacity: 0.5;
	text-decoration: line-through;
}

.product-card__price .price__sale {
	text-decoration: none;
}

.product-card__quick-add {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	color: var(--p-ink);
	background: var(--p-white);
	border: 1px solid rgba(0, 0, 0, 0.13);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color var(--p-anim), border-color var(--p-anim);
}

.product-card__quick-add:hover {
	background: #f2f2f2;
	border-color: rgba(0, 0, 0, 0.3);
}

/* Card image hooks — theme-core card uses .product-card__img--primary/-secondary. */
.product-card__media .product-card__img--secondary,
.product-card__media .product-card__media-secondary {
	opacity: 0;
}

.product-card:hover .product-card__media .product-card__img--secondary,
.product-card:focus-within .product-card__media .product-card__img--secondary,
.product-card:hover .product-card__media .product-card__media-secondary {
	opacity: 1;
}

.product-card__media .product-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
}

/* Model toggle: show the secondary ("model") image instead of the packshot. */
.p-plp__grid.is-model .product-card__media img.product-card__img--primary,
.p-plp__grid.is-model .product-card__media img.product-card__media-primary {
	opacity: 0;
}

.p-plp__grid.is-model .product-card__media img.product-card__img--secondary,
.p-plp__grid.is-model .product-card__media img.product-card__media-secondary {
	opacity: 1;
}

.p-plp__grid.is-model .product-card__media:has(img + img) img:first-child {
	opacity: 0;
}

.p-plp__grid.is-model .product-card__media:has(img + img) img + img {
	opacity: 1;
}

/* Load more */
.p-plp__loadmore {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 40px 0 24px;
}

.p-plp__loadmore-status {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--p-muted);
}

.p-plp__progress {
	width: 320px;
	max-width: 100%;
	height: 2px;
	background: var(--p-border);
	overflow: hidden;
}

.p-plp__progress-bar {
	display: block;
	height: 100%;
	width: 0;
	background: var(--p-ink);
	transition: width 0.3s ease;
}

.p-plp__loadmore-btn {
	min-width: 220px;
}

.p-plp__noscript-pagination {
	display: flex;
	gap: 12px;
	justify-content: center;
	padding-bottom: 24px;
}

/* Filter drawer content */
.p-filter-group {
	padding-block: 20px;
	border-bottom: 1px solid var(--p-border);
}

.p-filter-group:last-child {
	border-bottom: 0;
}

.p-filter-group__title {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

.p-filter-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.p-filter-list__item {
	margin: 0;
}

.p-filter-list__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-block: 9px;
	font-size: 14px;
	line-height: 20px;
	text-decoration: none;
	color: var(--p-body);
}

.p-filter-list__link:hover,
.p-filter-list__link.is-active {
	color: var(--p-ink);
	font-weight: 500;
}

.p-filter-list__check {
	flex: 0 0 auto;
}

.p-filter-clear {
	font-size: 14px;
	line-height: 20px;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-align: center;
	color: var(--p-muted);
}

/* =========================================================================
   3. PDP — single product
   ========================================================================= */
.p-pdp {
	padding-bottom: 8px;
}

.p-pdp__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 429px;
	gap: 48px;
	align-items: start;
}

.p-pdp__media {
	position: sticky;
	top: var(--p-header-height);
	min-width: 0;
}

.p-pdp__gallery {
	position: relative;
}

.p-pdp__track {
	display: flex;
	height: 70dvh;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	background: var(--p-placeholder);
	-webkit-overflow-scrolling: touch;
}

.p-pdp__track::-webkit-scrollbar {
	width: 0;
	height: 0;
}

.p-pdp__slide {
	flex: 0 0 100%;
	scroll-snap-align: center;
	height: 70dvh;
	min-width: 0;
}

/* WooCommerce's .woocommerce img { height: auto } (loaded after shop.css) has
   higher specificity than a single class, so the PDP media rules are scoped
   with .p-shop to win without !important. */
.p-shop .p-pdp__slide {
	height: 70dvh;
}

.p-pdp__slide--placeholder {
	background: var(--p-placeholder);
}

.p-pdp__stage-img {
	display: block;
	width: 100%;
	height: 70dvh;
	object-fit: cover;
}

.p-shop .p-pdp__stage-img {
	height: 70dvh;
}

.p-pdp__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	color: var(--p-ink);
	background: transparent;
	border: 0;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity var(--p-anim);
}

.p-pdp__arrow:hover {
	opacity: 1;
}

.p-pdp__arrow--prev {
	left: 20px;
}

.p-pdp__arrow--next {
	right: 20px;
}

.p-pdp__thumbs {
	display: flex;
	gap: 4px;
	margin-top: 8px;
	overflow-x: auto;
	scrollbar-width: none;
}

.p-pdp__thumbs::-webkit-scrollbar {
	width: 0;
	height: 0;
}

.p-pdp__thumb {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--p-placeholder);
	border: 1px solid transparent;
	cursor: pointer;
}

.p-pdp__thumb.is-active {
	border-color: var(--p-ink);
}

.p-pdp__thumb img,
.p-shop .p-pdp__thumb img,
.p-shop .p-cart__media img,
.p-shop .p-added-drawer__media img,
.p-shop .p-checkout__item-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.p-pdp__details {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 31px;
	min-width: 0;
}

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

.p-pdp__title {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
}

.p-pdp__price {
	font-size: 18px;
	line-height: 1.2;
}

.p-pdp__price .p-price {
	font-size: 18px;
	gap: 0 10px;
}

.p-pdp__price .p-price__regular {
	opacity: 0.5;
}

.p-pdp__price .p-badge {
	font-size: 12px;
	vertical-align: 2px;
}

.p-pdp__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 8px;
	margin: 0;
	font-size: 12px;
	line-height: 18px;
	color: var(--p-faint);
}

.p-pdp__meta-sep {
	color: var(--p-border-strong);
}

.p-pdp__countdown {
	font-variant-numeric: tabular-nums;
}

/* Variant selector */
.p-pdp__variants {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.p-pdp__option {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.p-pdp__option-label {
	min-width: 48px;
	font-size: 13px;
	color: var(--p-muted);
}

.p-pdp__option-values {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.p-pdp__option-btn {
	min-height: 36px;
	padding: 0 14px;
	font-family: inherit;
	font-size: 13px;
	color: var(--p-body);
	background: var(--p-white);
	border: 1px solid var(--p-border-strong);
	cursor: pointer;
	transition: border-color var(--p-anim), color var(--p-anim);
}

.p-pdp__option-btn:hover {
	border-color: var(--p-ink);
}

.p-pdp__option-btn.is-active {
	border-color: var(--p-ink);
	color: var(--p-ink);
	box-shadow: inset 0 0 0 1px var(--p-ink);
}

.p-pdp__option-chip {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	font-size: 13px;
	color: var(--p-ink);
	border: 1px solid var(--p-ink);
	box-shadow: inset 0 0 0 1px var(--p-ink);
}

/* Add to cart */
.p-pdp__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

.p-pdp__qtyrow {
	display: flex;
	align-items: center;
}

.p-pdp__atc {
	width: 100%;
	min-height: 45px;
	font-size: 14px;
}

.p-pdp__atc.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.p-pdp__atc.is-added {
	background: var(--p-ink);
}

/* Highlights + trust */
.p-pdp__highlights {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.p-pdp__highlight {
	position: relative;
	padding-left: 18px;
	font-size: 14px;
	line-height: 1.6;
}

.p-pdp__highlight::before {
	content: "–";
	position: absolute;
	left: 0;
	top: 0;
}

.p-trust {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 4px 0 0;
	padding: 14px 0;
	list-style: none;
	border-top: 1px solid var(--p-border);
	border-bottom: 1px solid var(--p-border);
}

.p-trust__item {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 11px;
	line-height: 1.35;
	color: var(--p-muted);
}

.p-trust__icon {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 1px;
}

/* Accordions */
.p-accordion {
	border-top: 1px solid var(--p-border);
}

.p-accordion__item {
	border-bottom: 1px solid var(--p-border);
}

.p-accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 18px;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}

.p-accordion__summary::-webkit-details-marker {
	display: none;
}

.p-accordion__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	transition: transform var(--p-anim);
}

.p-accordion__item[open] .p-accordion__icon {
	transform: rotate(90deg);
}

.p-accordion__item[open] .p-accordion__icon-v {
	opacity: 0;
}

.p-accordion__content {
	padding-bottom: 18px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--p-body);
}

.p-accordion__content > *:first-child {
	margin-top: 0;
}

.p-accordion__content > *:last-child {
	margin-bottom: 0;
}

.p-accordion__content a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.p-attrs {
	margin: 20px 0 0;
	padding: 0;
	font-size: 14px;
}

.p-attrs__row {
	display: flex;
	gap: 16px;
	padding-block: 5px;
}

.p-attrs__label {
	flex: 0 0 132px;
	margin: 0;
	color: var(--p-muted);
}

.p-attrs__value {
	margin: 0;
}

/* Added-to-cart drawer */
.p-added-drawer__item {
	display: flex;
	gap: 20px;
	padding-block: 8px 24px;
}

.p-added-drawer__media {
	flex: 0 0 140px;
	width: 140px;
	height: 140px;
	background: var(--p-placeholder);
	overflow: hidden;
}

.p-added-drawer__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.p-added-drawer__info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.p-added-drawer__title {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}

.p-added-drawer__price {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}

.p-added-drawer__cart {
	width: 100%;
}

/* Related products rail */
.p-pdp__related {
	margin-top: 64px;
	padding-bottom: 24px;
}

.p-products--rail {
	display: grid;
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: 300px;
	gap: var(--p-gap);
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.p-products--rail::-webkit-scrollbar {
	width: 0;
	height: 0;
}

.p-products--rail .product-card {
	scroll-snap-align: start;
}

/* =========================================================================
   4. Responsive
   ========================================================================= */
@media screen and (max-width: 989px) {
	.p-pdp__grid {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 32px;
	}
}

@media screen and (max-width: 749px) {
	.p-shop {
		--p-gutter: 16px;
		--p-header-height: 60px;
	}

	.p-wrap--plp-grid {
		padding-inline: 0;
	}

	.p-plp__header {
		padding-block: 20px 24px;
	}

	.p-plp__title {
		font-size: 24px;
	}

	.p-plp__submenu {
		padding-bottom: 16px;
	}

	.p-plp__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.p-plp__loadmore {
		padding: 32px 16px 16px;
	}

	.p-plp__progress {
		width: 100%;
	}

	.p-plp__loadmore-btn {
		width: 100%;
	}

	.p-pdp__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.p-pdp__media {
		position: static;
	}

	.p-pdp__track {
		height: 50dvh;
	}

	.p-pdp__slide,
	.p-pdp__stage-img,
	.p-shop .p-pdp__slide,
	.p-shop .p-pdp__stage-img {
		height: 50dvh;
	}

	.p-pdp__details {
		padding-top: 0;
	}

	.p-trust {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.p-products--rail {
		grid-auto-columns: 215px;
	}

	.p-pdp__related {
		margin-top: 40px;
	}

	.p-drawer {
		width: 100%;
		max-width: 100%;
	}

	.p-drawer__header {
		padding: 16px 20px;
	}

	.p-drawer__body {
		padding: 0 20px 20px;
	}

	.p-drawer__footer {
		padding: 16px 20px 24px;
	}
}

/* =========================================================================
   5. Cart
   ========================================================================= */
.p-cart {
	padding-bottom: 0;
}

.p-cart__grid {
	display: grid;
	grid-template-columns: minmax(0, 952px) 360px;
	gap: 48px;
	align-items: start;
	padding-top: 24px;
}

.p-cart__title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
}

.p-cart__count {
	font-size: 12px;
	font-weight: 400;
	color: var(--p-muted);
}

.p-cart__form {
	margin: 0;
}

.p-cart__lines {
	display: block;
}

.p-cart__line {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) 180px;
	gap: 20px;
	align-items: start;
	min-height: 150px;
}

.p-cart__line + .p-cart__line {
	border-top: 1px solid var(--p-border);
	margin-top: 16px;
	padding-top: 16px;
}

.p-cart__media {
	width: 120px;
	height: 150px;
	background: var(--p-placeholder);
	overflow: hidden;
}

.p-cart__media a {
	display: block;
	width: 100%;
	height: 100%;
}

.p-cart__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.p-cart__info {
	padding-top: 16px;
	min-width: 0;
}

.p-cart__name {
	display: inline-block;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
}

.p-cart__name:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.p-cart__variant {
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--p-muted);
}

.p-cart__variant p {
	margin: 0;
}

.p-cart__lineactions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 16px;
}

.p-qty--cart {
	height: 36px;
}

.p-qty--cart .p-qty__btn {
	width: 31px;
}

.p-qty--cart .p-qty__input {
	width: 36px;
}

.p-cart__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--p-body);
}

.p-cart__remove:hover {
	color: var(--p-ink);
}

.p-cart__price {
	padding-top: 16px;
	text-align: right;
	font-size: 14px;
	line-height: 1.4;
	white-space: nowrap;
}

.p-cart__price-original {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--p-faint);
	text-decoration: line-through;
}

.p-cart__aside {
	margin-right: calc(-1 * var(--p-gutter));
}

.p-cart__summary {
	background: var(--p-surface);
	padding: 24px 40px 32px;
}

.p-shipnote {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--p-body);
}

.p-shipnote--done {
	color: var(--p-ink);
}

.p-shipbar {
	height: 2px;
	margin-bottom: 20px;
	background: var(--p-border-strong);
	overflow: hidden;
}

.p-shipbar__fill {
	display: block;
	height: 100%;
	background: var(--p-ink);
	transition: width 0.3s ease;
}

.p-cart__rows {
	padding-bottom: 8px;
}

.p-cart__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-block: 6px;
	font-size: 14px;
	line-height: 1.4;
}

.p-cart__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--p-border-strong);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.p-cart__taxnote {
	margin: 6px 0 24px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--p-muted);
}

.p-cart__checkout {
	width: 100%;
	min-height: 52px;
}

.p-cart__secure {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--p-muted);
	text-align: center;
}

.p-cart__related {
	padding-top: 64px;
}

.p-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.p-section-head .p-section-title {
	margin: 0;
}

.p-section-link {
	font-size: 12px;
	line-height: 1.4;
	color: var(--p-body);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.p-band {
	margin-top: 64px;
	padding-block: 18px;
	background: var(--p-surface);
}

.p-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 12px;
	line-height: 1.4;
	color: var(--p-muted);
}

.p-breadcrumb__item a {
	text-decoration: none;
	color: inherit;
}

.p-breadcrumb__item a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.p-breadcrumb__item--current {
	color: var(--p-body);
}

/* Empty cart */
.p-cart-empty {
	padding: 72px 0 56px;
	text-align: center;
}

.p-cart-empty__title {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
}

.p-cart-empty__text {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.6;
}

.p-cart-empty__text a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.p-cart-empty__button {
	margin-top: 28px;
	min-width: 182px;
	min-height: 50px;
}

.p-cart--empty .p-cart__related {
	padding-top: 32px;
}

/* =========================================================================
   6. Checkout
   ========================================================================= */
.p-checkout {
	padding-block: 32px 72px;
}

.p-checkout__grid {
	display: grid;
	grid-template-columns: minmax(0, 500px) minmax(340px, 440px);
	grid-template-areas:
		"main aside"
		"payment aside";
	justify-content: center;
	column-gap: 80px;
	row-gap: 40px;
	align-items: start;
}

.p-checkout__main {
	grid-area: main;
	min-width: 0;
}

.p-checkout__aside,
.p-checkout #order_review {
	display: contents;
}

.p-checkout__title {
	margin: 0 0 24px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
}

.p-checkout__section-title {
	margin: 32px 0 12px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
}

.p-checkout__main .p-checkout__section-title:first-child {
	margin-top: 0;
}

.p-checkout__login {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--p-muted);
}

.p-checkout__login a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.p-checkout .form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 12px;
	padding: 0;
	float: none;
	width: 100%;
}

.p-checkout .form-row-first,
.p-checkout .form-row-last {
	width: calc(50% - 6px);
}

.p-checkout .form-row-first {
	float: left;
}

.p-checkout .form-row-last {
	float: right;
}

.p-checkout__row {
	display: flex;
	gap: 12px;
	clear: both;
}

.p-checkout__row .form-row {
	flex: 1 1 0;
	margin: 0;
}

.p-checkout .form-row label {
	font-size: 12px;
	line-height: 1.4;
	color: var(--p-muted);
}

.p-checkout .form-row .required {
	color: #b00020;
	text-decoration: none;
}

.p-checkout .input-text,
.p-checkout select,
.p-checkout .select2-selection {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	font-family: inherit;
	font-size: 14px;
	color: var(--p-body);
	background: var(--p-white);
	border: 1px solid var(--p-border-strong);
	border-radius: 8px;
	box-shadow: none;
	transition: border-color var(--p-anim);
}

.p-checkout .input-text:focus,
.p-checkout select:focus {
	border-color: var(--p-ink);
	outline: none;
}

.p-checkout .form-row.woocommerce-invalid .input-text,
.p-checkout .form-row.woocommerce-invalid select {
	border-color: #b00020;
}

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

.p-checkout .form-row-wide {
	clear: both;
}

.p-checkout__newsletter {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 4px 0 8px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--p-body);
}

.p-checkout__newsletter input {
	margin-top: 3px;
	width: 16px;
	height: 16px;
}

/* Order summary (right column) */
.p-checkout__summary {
	grid-area: aside;
	grid-row: 1 / span 2;
	position: sticky;
	top: calc(var(--p-header-height) + 24px);
	align-self: start;
	min-width: 0;
	padding: 28px;
	background: var(--p-surface);
}

.p-checkout .woocommerce-form-login-toggle,
.p-checkout .woocommerce-form-coupon-toggle {
	display: none;
}

.p-checkout .woocommerce-checkout-payment {
	grid-area: payment;
	align-self: start;
	min-width: 0;
}

.p-checkout__items {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.p-checkout__item {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: start;
}

.p-checkout__item-media {
	position: relative;
	width: 80px;
	height: 80px;
	background: var(--p-white);
	border: 1px solid var(--p-border);
	border-radius: 8px;
	overflow: visible;
}

.p-checkout__item-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
}

.p-checkout__item-qty {
	position: absolute;
	top: -8px;
	right: -8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	font-size: 11px;
	line-height: 1;
	color: var(--p-white);
	background: var(--p-ink);
	border-radius: 999px;
}

.p-checkout__item-info {
	min-width: 0;
	padding-top: 4px;
}

.p-checkout__item-name {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
}

.p-checkout__item-variant {
	margin: 2px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--p-muted);
}

.p-checkout__item-price {
	padding-top: 4px;
	font-size: 13px;
	line-height: 1.4;
	white-space: nowrap;
}

.p-checkout__rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--p-border-strong);
}

.p-checkout__row-line {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	font-size: 14px;
	line-height: 1.4;
}

.p-checkout__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--p-border-strong);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
}

.p-checkout__total .p-checkout__currency {
	margin-right: 6px;
	font-size: 12px;
	font-weight: 400;
	color: var(--p-muted);
	vertical-align: 2px;
}

.p-checkout__taxnote {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--p-muted);
}

/* Payment */
.p-checkout .woocommerce-checkout-payment,
.p-checkout #payment,
.p-shop.p-checkout #payment {
	margin-top: 12px;
	background: transparent !important;
	border-radius: 0;
}

.woocommerce-checkout .woocommerce-form-login-toggle {
	display: none;
}

.p-checkout .wc_payment_methods {
	display: none !important;
}

.p-checkout__payment {
	padding-top: 24px;
	border-top: 1px solid var(--p-border);
}

.p-checkout__secure {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--p-muted);
}

.p-pay-icons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.p-pay-icons__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 26px;
}

.p-pay-icons__img {
	display: block;
	height: 24px;
	width: auto;
	max-width: 46px;
	object-fit: contain;
}

.p-pay-icons__svg {
	display: block;
	height: 24px;
	width: 38px;
}

.p-pay-icons__badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 7px;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: #1a1f71;
	background: var(--p-white);
	border: 1px solid var(--p-border-strong);
	border-radius: 3px;
}

.p-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--p-body);
}

.p-consent input {
	flex: 0 0 auto;
	margin-top: 3px;
	width: 16px;
	height: 16px;
}

.p-consent a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.p-consent .woocommerce-error-text {
	display: block;
	font-size: 12px;
	color: #b00020;
}

.p-checkout #place_order,
.p-checkout .p-checkout__placeorder {
	width: 100%;
	min-height: 52px;
	margin-top: 8px;
	font-size: 14px;
	background: var(--p-ink);
	border-color: var(--p-ink);
	color: var(--p-white);
	opacity: 1;
}

.p-checkout .woocommerce-terms-and-conditions-wrapper {
	margin-bottom: 12px;
	font-size: 13px;
}

.p-checkout .woocommerce-privacy-policy-text {
	font-size: 12px;
	line-height: 1.5;
	color: var(--p-muted);
	margin: 0 0 16px;
}

.p-checkout__coupon {
	display: none;
}

/* =========================================================================
   7. Content pages, 404, search
   ========================================================================= */
.p-page {
	padding-block: 32px 72px;
}

.p-page__breadcrumb {
	margin-bottom: 20px;
}

.p-page__title {
	margin: 0 0 24px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
}

.p-page__content {
	max-width: 820px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--p-body);
}

.p-page__content h1,
.p-page__content h2,
.p-page__content h3,
.p-page__content h4 {
	margin: 1.6em 0 0.6em;
	font-weight: 500;
	line-height: 1.3;
}

.p-page__content h1 {
	font-size: 24px;
}

.p-page__content h2 {
	font-size: 20px;
}

.p-page__content h3 {
	font-size: 18px;
}

.p-page__content h4 {
	font-size: 16px;
}

.p-page__content p {
	margin: 0 0 1em;
}

.p-page__content ul,
.p-page__content ol {
	margin: 0 0 1em;
	padding-left: 1.5em;
}

.p-page__content a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.p-page__content img {
	height: auto;
}

.p-page__content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1em;
}

.p-page__content th,
.p-page__content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--p-border);
	text-align: left;
}

/* 404 */
.p-404 {
	padding: 96px 0;
	text-align: center;
}

.p-404__title {
	margin: 0 0 12px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
}

.p-404__text {
	margin: 0 auto 24px;
	max-width: 46ch;
	font-size: 14px;
	line-height: 1.6;
	color: var(--p-muted);
}

.p-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

/* Search */
.p-search {
	padding-block: 32px 72px;
}

.p-search__title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
}

.p-search__meta {
	margin: 0 0 24px;
	font-size: 14px;
	color: var(--p-muted);
}

.p-search__form {
	display: flex;
	gap: 8px;
	max-width: 520px;
	margin: 0 0 40px;
}

.p-search__input {
	flex: 1 1 auto;
	height: 48px;
	padding: 0 14px;
	font-family: inherit;
	font-size: 14px;
	color: var(--p-body);
	background: var(--p-white);
	border: 1px solid var(--p-border-strong);
	border-radius: 8px;
}

.p-search__input:focus {
	border-color: var(--p-ink);
	outline: none;
}

.p-search__results {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.p-search__result a {
	text-decoration: none;
}

.p-search__result a:hover {
	text-decoration: underline;
}

/* =========================================================================
   8. Cart / checkout responsive
   ========================================================================= */
@media screen and (max-width: 989px) {
	.p-cart__grid {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 32px;
	}

	.p-checkout__grid {
		grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
		gap: 40px;
	}
}

@media screen and (max-width: 749px) {
	.p-cart__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		padding-top: 16px;
	}

	.p-cart__aside {
		margin-right: calc(-1 * var(--p-gutter));
		margin-left: calc(-1 * var(--p-gutter));
	}

	.p-cart__summary {
		padding: 20px 16px 24px;
	}

	.p-cart__line {
		grid-template-columns: 90px minmax(0, 1fr);
		gap: 14px;
		min-height: 112px;
	}

	.p-cart__media {
		width: 90px;
		height: 112px;
	}

	.p-cart__price {
		grid-column: 2;
		padding-top: 0;
		text-align: left;
	}

	.p-cart__info {
		padding-top: 6px;
	}

	.p-cart__lineactions {
		margin-top: 10px;
	}

	.p-cart__related {
		padding-top: 40px;
	}

	.p-band {
		margin-top: 40px;
	}

	.p-checkout__grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"main"
			"aside"
			"payment";
		row-gap: 24px;
	}

	.p-checkout__summary {
		grid-area: aside;
		grid-row: auto;
		position: static;
		padding: 20px 16px;
	}

	.p-checkout__row {
		flex-direction: column;
		gap: 0;
	}

	.p-checkout .form-row-first,
	.p-checkout .form-row-last {
		width: 100%;
		float: none;
	}

	.p-page,
	.p-search {
		padding-block: 24px 56px;
	}

	.p-404 {
		padding: 64px 0;
	}
}

/* =========================================================================
   9. Checkout shipping methods + small states
   ========================================================================= */
.p-shipmethods {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.p-shipmethod {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.4;
	border: 1px solid var(--p-border-strong);
	border-radius: 8px;
	cursor: pointer;
}

.p-shipmethod input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 0;
}

.p-shipmethod:has(input:checked) {
	border-color: var(--p-ink);
	box-shadow: inset 0 0 0 1px var(--p-ink);
}

.p-shipmethod__label {
	flex: 1 1 auto;
}

.p-shipmethod__price {
	font-weight: 500;
}

.p-checkout__hint {
	margin: 0;
	padding: 14px 16px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--p-muted);
	background: var(--p-surface);
	border-radius: 8px;
}

.p-cart.is-updating {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.p-404__search {
	justify-content: center;
	margin: 32px auto 0;
}

.p-cart__summary.is-updating,
.p-cart__lines.is-updating {
	opacity: 0.55;
}

.p-shop :where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--p-ink);
	outline-offset: 2px;
}

/* =========================================================================
   10. Thank-you page
   ========================================================================= */
.p-thankyou {
	padding-block: 40px 72px;
}

.p-thankyou__grid {
	max-width: 820px;
}

.p-thankyou__eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--p-muted);
}

.p-thankyou__title {
	margin: 0 0 24px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
}

.p-thankyou__meta {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 24px;
	padding: 20px 0;
	list-style: none;
	border-top: 1px solid var(--p-border);
	border-bottom: 1px solid var(--p-border);
}

.p-thankyou__meta li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--p-muted);
}

.p-thankyou__meta strong {
	font-size: 14px;
	font-weight: 500;
	color: var(--p-body);
}

.p-thankyou__text {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.6;
}

.p-thankyou__items {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.p-thankyou__item {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	font-size: 14px;
	line-height: 1.4;
	border-bottom: 1px solid var(--p-border);
}

.p-thankyou__totals {
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

.p-thankyou__totals li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 6px 0;
	font-size: 14px;
	line-height: 1.4;
}

.p-thankyou__totals-grand {
	margin-top: 8px;
	padding-top: 12px !important;
	font-weight: 500;
	border-top: 1px solid var(--p-border-strong);
}

.p-thankyou__taxnote {
	margin: 0 0 24px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--p-muted);
}

.p-thankyou__actions {
	margin-top: 24px;
}

@media screen and (max-width: 749px) {
	.p-thankyou__meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* =========================================================================
   11. EUR checkout notice (owned by wp-import's mu-plugin: exactly one line)
   ========================================================================= */
body.woocommerce-checkout .pilgrim-eur-notice.woocommerce-info {
	max-width: 1440px;
	margin: 0 auto;
	padding: 12px 40px;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(0, 0, 0, 0.81);
	background: #f7f7f7;
	border-bottom: 1px solid #e5e5e5;
	list-style: none;
}

body.woocommerce-checkout .pilgrim-eur-notice.woocommerce-info::before,
body.woocommerce-checkout .pilgrim-eur-notice.woocommerce-info::after {
	display: none;
}

@media screen and (max-width: 749px) {
	body.woocommerce-checkout .pilgrim-eur-notice.woocommerce-info {
		padding: 10px 16px;
		font-size: 12px;
	}
}

/* =========================================================================
   12. Payment icon rows (checkout 26 icons + cart 5 cards) — PGPay/Stripe
   ========================================================================= */
.p-pay-row {
	margin: 18px 0 0;
}

.p-pay-row__label {
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--p-muted);
}

.p-pay-icons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.p-pay-icons__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 24px;
}

.p-pay-icons__img {
	display: block;
	height: 24px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.p-pay-row__note {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--p-muted);
}

.p-pay-row--checkout {
	margin-top: 16px;
	margin-bottom: 4px;
}

.p-pay-row--cart {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--p-border);
}

.p-pay-row--cart .p-pay-icons {
	gap: 18px;
}

.p-pay-row--cart .p-pay-icons__item,
.p-pay-row--cart .p-pay-icons__img {
	height: 28px;
}

@media screen and (max-width: 749px) {
	.p-pay-icons {
		gap: 6px;
	}

	.p-pay-row--cart .p-pay-icons {
		gap: 12px;
	}

	.p-pay-row--cart {
		margin-top: 16px;
	}
}

/* Payment icons must keep an exact height despite WooCommerce's `img{height:auto}`
   (`img` rules in woocommerce.css have higher specificity than a single class). */
.p-shop .p-pay-icons__item {
	height: 24px;
}

.p-shop .p-pay-icons__img {
	display: block;
	height: 24px;
	width: auto;
	max-width: none;
	object-fit: contain;
}

.p-shop .p-pay-row--cart .p-pay-icons__item,
.p-shop .p-pay-row--cart .p-pay-icons__img {
	height: 28px;
}

/* The client's cart card set ships a white VISA mark (designed for a dark
   surface); invert just that one so it stays readable on the light summary. */
.p-shop .p-pay-row--cart .p-pay-icons__img[src*='VISA.svg'] {
	filter: invert(1);
}

/* =========================================================================
   13. Price-rule info bars (wp-import mu-plugin; cart + checkout)
   ========================================================================= */
.pilgrim-price-rule.woocommerce-info {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	margin: 0 0 20px;
	padding: 12px 16px;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(0, 0, 0, 0.81);
	background: #f7f7f7;
	border: 1px solid #e5e5e5;
	border-radius: 0;
	list-style: none;
}

.pilgrim-price-rule.woocommerce-info::before,
.pilgrim-price-rule.woocommerce-info::after {
	display: none;
}

.pilgrim-price-rule__discount {
	display: inline-block;
	font-weight: 500;
	white-space: nowrap;
}

/* Cart: banner sits above the lines, inside the page gutters. */
.p-cart .pilgrim-price-rule.woocommerce-info {
	margin: 0 0 24px;
}

/* Checkout: the mu-plugin prints it above the form; keep it a full-width band
   aligned with the EUR notice. */
body.woocommerce-checkout .pilgrim-price-rule.woocommerce-info {
	max-width: 1440px;
	margin: 0 auto;
	padding: 12px 40px;
	border-width: 0 0 1px;
}

@media screen and (max-width: 749px) {
	.p-cart .pilgrim-price-rule.woocommerce-info,
	body.woocommerce-checkout .pilgrim-price-rule.woocommerce-info {
		padding: 10px 16px;
		font-size: 12px;
	}

	.p-cart .pilgrim-price-rule.woocommerce-info {
		margin-bottom: 16px;
	}
}

/* Cart summary rows must never overflow when rule/fee rows are appended. */
.p-cart__row {
	flex-wrap: wrap;
}

.p-cart__row-value {
	margin-left: auto;
	text-align: right;
}

/* =========================================================================
   14. WooCommerce hooks wrapper on the custom thank-you page
   ========================================================================= */
/* Keep the custom layout: hide the standard WooCommerce order-details output
   that `woocommerce_thankyou` prints, but keep plugin popups (e.g. the coupon
   reward dialog) rendered by the same hook visible. */
.p-thankyou__hooks > :not(.teveo-reward-dialog):not(.teveo-reward-pending) {
	display: none !important;
}

.p-thankyou__hooks {
	position: relative;
	z-index: 1;
}

/* WooCommerce login/coupon toggles printed by `woocommerce_before_checkout_form`
   sit outside `.p-checkout`; hide them so the checkout matches the reference
   (inline "Log ind" line + no coupon form; reward coupons are auto-applied). */
body.woocommerce-checkout .woocommerce-form-login-toggle,
body.woocommerce-checkout .woocommerce-form-coupon-toggle {
	display: none !important;
}
