/* =========================================================
   WIIZE — Single product hero (new design 2026)
   Add this file to the theme and enqueue it,
   or paste into the theme's main style.css.

   NOTE: the Food Pairings section styles now live in a
   separate file — product-food-pairings.css. Enqueue it
   alongside this one (or it is loaded with that template part).
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
	--wiize-bg:           #faf9f8;
	--wiize-wine:         #A6032F;    /* burgundy red — title, links, ADD button */
	--wiize-wine-dark:    #6e1825;
	--wiize-ink:          #2c2926;
	--wiize-muted:        #211A15;
	--wiize-line:         #e6dfd5;
	--wiize-red:         #8C0335;

	--wiize-tan:          #c7bdb0;    /* attribute circles */
	--wiize-tan-light:    #efe7dc;    /* action-icon background */
	--wiize-card:         #e8dccb;    /* Taste & Trust card */
	--wiize-card-soft:    #f1e8d9;
	--wiize-light:    #554F4F;

	--wiize-radius:       12px;
	--wiize-radius-sm:    8px;
}

/* ---------- LAYOUT GRID ---------- */
.product-hero {
	padding: 32px 0 56px;
}

.product-hero .content_wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0px;
}

.product-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

@media (max-width: 900px) {
	.product-hero__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

/* ---------- LEFT: media + custom gallery ---------- */

/* Wrapper holds both the patterned box AND the bars below it */
.product-hero__media-wrap {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
}

/* Patterned beige box */
.product-hero__media {
	position: relative;
	background-color: #f3ece1;
	background-image: url("../img/product_pattern.svg");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	overflow: hidden;
	min-height: 600px;
	padding: 80px 40px 80px 40px;
	box-sizing: border-box;
}

/* Custom gallery — all images stacked, only one visible at a time */
.hero-gallery {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 550px;
}

.hero-gallery__img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-height: 520px;
	max-width: 90%;
	width: auto;
	height: auto;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.hero-gallery__img.is-active {
	opacity: 1;
	pointer-events: auto;
}

/* Bar navigation — full width of left column, below the patterned box */
.hero-gallery__bars {
	display: flex;
	gap: 6px;
	width: 100%;
	margin: 0;
	padding: 0;
}

.hero-gallery__bar {
	flex: 1;
	height: 6px;
	background: #e9e1d4;
	border: none;
	padding: 0;
	cursor: pointer;
	border-radius: 0;
	transition: background 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
}

.hero-gallery__bar:hover {
	background: #d4c8b3;
}

.hero-gallery__bar.is-active {
	background: #8C0335;
}

.hero-gallery__bar.is-active:hover {
	background: #6c0227;
}

.hero-gallery__bar:focus {
	outline: 2px solid rgba(140, 3, 53, 0.4);
	outline-offset: 2px;
}

/* ---------- RIGHT: info column ---------- */
.product-hero__info {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Top bar — region + badge */
.product-hero__topbar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}

.product-hero__region-top {
	font-size: 12px;
	letter-spacing: 0.14em;
	color: var(--wiize-muted);
	text-transform: uppercase;
	font-weight: 500;
}

.product-hero__badge {
	max-width: 64px;
}

.product-hero__badge img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Winemaker label & title */
.product-hero__winemaker-label {
	font-size: 22px;
	color: var(--wiize-ink);
	margin-top: 0px;
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
}

.product-hero__title {
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 38px !important;
	line-height: 1.05;
	font-weight: 500;
	color: var(--wiize-ink);
	margin: -10px 0px 0px 0px !important;
}

.product-hero__subtitle {
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 28px;
	line-height: 1.1;
	color: var(--wiize-ink);
	margin-top: -5px;
}

.product-hero__company {
	margin-top: 4px;
	font-size: 14px;
}

.product-hero__company a {
	color: var(--wiize-muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s ease;
}

.product-hero__company a:hover {
	border-bottom-color: var(--wiize-muted);
}

/* Quick anchor links */
.product-hero__quicklinks {
	list-style: none;
	padding: 0;
	margin: 10px 0 8px;
	display: flex;
	flex-direction: column;
	gap: 0px;
}

.product-hero__quicklinks a {
color: var(--wiize-wine) !important;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    line-height: 16px;
}

.product-hero__quicklinks li {
    line-height: 18px;
}

.product-hero__quicklinks a:hover {
	text-decoration: underline;
}

/* Attribute circles */
.product-hero__attributes {
	display: flex;
	gap: 14px;
	margin: 16px 0 8px;
	flex-wrap: wrap;
}

.hero-circle {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: var(--wiize-tan);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-align: center;
	padding: 4px;
	line-height: 1.1;
	cursor: default;
}

.hero-circle__label {
	font-weight: 600;
}

.hero-circle__value {
	display: block;
	margin-top: 2px;
	font-size: 10px;
	opacity: 0.95;
}

/* Options row: vintage / capacity / price */
.product-hero__options {
	display: grid;
	grid-template-columns: auto auto 1fr;
	gap: 12px;
	align-items: center;
	margin-top: 8px;
}

.hero-select {
	position: relative;
}

.hero-select::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-25%) rotate(45deg);
	width: 7px;
	height: 7px;
	border-right: 2px solid var(--wiize-wine);
	border-bottom: 2px solid var(--wiize-wine);
	pointer-events: none;
}

.hero-select select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: transparent;
	border: none;
	padding: 12px 36px 12px 12px;
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 24px;
	color: var(--wiize-wine);
	cursor: pointer;
	min-width: 90px;
}

.hero-select select:focus {
	outline: none;
}

.hero-select select:disabled {
	opacity: 1;          /* don't dim the static vintage field */
	cursor: default;
}

.hero-price-box {
	background: #f4f2ef;
	border-radius: var(--wiize-radius-sm);
	padding: 10px 24px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-price-box__value {
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 28px;
	color: var(--wiize-red);
}

/* Actions row: icons + ADD */
.product-hero__actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 8px;
}

.hero-action-icons {
	display: flex;
	gap: 10px;
}

.hero-action {
	width: 42px;
	height: 42px;
	background: #e3ded8;
	border: none;
	border-radius: var(--wiize-radius-sm);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s ease;
}

.hero-action:hover {
	background: #e6dac9;
}

.hero-action img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	opacity: 0.55;
}

.hero-add-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #8C0335;
	color: #fff !important;
	text-decoration: none;
	padding: 12px 28px;
	border-radius: 3px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 13px;
	transition: background 0.15s ease;
}

.hero-add-btn:hover {
	background: var(--wiize-wine-dark);
	color: #fff;
}

.hero-add-btn__icon img {
	width: 18px;
	height: 18px;
	display: block;
	filter: brightness(0) invert(1);
}

/* Shipping info */
.product-hero__shipping {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0px;
}

.product-hero__shipping li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: #c7bdb0;
}

.product-hero__shipping img {
	width: 22px;
	height: 22px;
	object-fit: contain;
	opacity: 0.6;
}

/* Taste & Trust card */
.product-hero__taste-trust {
	margin-top: 24px;
	background: #f4f2ef;
	border-radius: var(--wiize-radius);
	padding: 22px 26px;
}

.taste-trust__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.taste-trust__title {
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 32px;
	font-style: italic;
	color: #211A15;
}

.taste-trust__rating {
	display: flex;
	align-items: center;
	gap: 6px;
}

.tt-star {
	color: var(--wiize-wine);
	font-size: 18px;
	letter-spacing: 1px;
}

.tt-star--empty {
	color: rgba(139, 31, 46, 0.25);
}

.taste-trust__val {
	margin-left: 8px;
	font-size: 14px;
	color: var(--wiize-ink);
	font-weight: 500;
}

.taste-trust__icons {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	background: transparent;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	padding-top: 14px;
}

.tt-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px 8px;
	border-right: 1px solid rgba(0, 0, 0, 0.08);
	transition: opacity 0.15s ease;
}

.tt-icon:last-child {
	border-right: none;
}

.tt-icon img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	opacity: 0.75;
}

.tt-icon:hover img {
	opacity: 1;
}

/* ---------- RESPONSIVE TWEAKS ---------- */
@media (max-width: 600px) {
	.product-hero__title {
		font-size: 32px;
	}

	.product-hero__subtitle {
		font-size: 22px;
	}

	.hero-circle {
		width: 50px;
		height: 50px;
		font-size: 8px;
	}

	.product-hero__options {
		grid-template-columns: 1fr 1fr;
	}

	.hero-price-box {
		grid-column: 1 / -1;
	}

	.product-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero-add-btn {
		justify-content: center;
	}
}


/* =========================================================
   PRODUCT DESCRIPTION CARD
   Light-moss card with title, tasting notes, type & flavors
   and the long description text.
   ========================================================= */

:root {
	--card-bg:        #E4E1B5;   /* pale moss-yellow card background */
	--card-ink:       #4F4D26;   /* dark olive text */
	--card-ink-soft:  #6F6D3A;   /* muted olive (subtitles) */
	--card-line:      #c6c28a;   /* underlines / dividers */
}

.product-description-section {
	padding: 24px 0 40px;
}

.product-description-section .content_wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0px;
}

.description-card {
	position: relative;
	background: #EFF0C4;
	color: var(--card-ink);
	border-radius: var(--wiize-radius);
	padding: 48px 56px;
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
}

.description-card__bookmark {
	position: absolute;
	top: 28px;
	right: 32px;
	width: 32px;
	height: 32px;
	background: transparent;
	border: none;
	color: var(--card-ink);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: opacity 0.15s ease;
}

.description-card__bookmark svg {
	width: 41px;
	height: 53px;
}

.description-card__bookmark:hover {
	opacity: 0.6;
}

.description-card__title {
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 36px;
	line-height: 1.1;
	font-weight: 500;
	color: #76782F;
	margin: 0 0 32px;
	padding-right: 60px;
}

/* Two-column row: Tasting notes + Type & flavors */
.description-card__cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 36px;
}

.description-card__col {
	min-width: 0;
}

.description-card__subtitle {
	display: block;
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 18px;
	font-style: italic;
	color: var(--card-ink-soft);
	margin-bottom: 18px;
}

/* Tasting notes — 3 icons with separators between them */
.tasting-icons {
	display: flex;
	align-items: stretch;
	gap: 0;
}

.tasting-icon {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 4px 8px;
	border-right: 1px solid rgba(79, 77, 38, 0.25);
}

.tasting-icon:last-child {
	border-right: none;
}

.tasting-icon img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	opacity: 0.85;
}

.tasting-icon__score {
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 18px;
	color: var(--card-ink);
}

/* Type & flavors — 5 columns, each is a labelled bar group */
.flavors {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}

.flavor {
	display: flex;
	flex-direction: column;
	text-align: left;
	gap: 0px;
	min-width: 0;
}

.flavor__label {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--card-ink);
	white-space: nowrap;
	margin-top:10px;
}

.flavor__bars {
display: flex;
    flex-direction: column;
    gap: 5px;
    width: 90%;
    max-width: 100%;
}

.flavor__bar {
	display: block;
	width: 100%;
	height: 6px;
	background: #d3d598;
	border-radius: 1px;
	transition: background 0.15s ease;
}

.flavor__bar.is-on {
	background: #76782f;
}

.flavor__value {
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 14px;
	font-style: italic;
	color: var(--card-ink);
	line-height: 1.2;
}

/* Long description body */
.description-card__body {
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 28px;
	line-height: 1.55;
	color: #76782F;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.description-card__body p {
	margin: 0 0 14px;
	    margin-right: 80px;
}

.description-card__body p:last-child {
	margin-bottom: 0;
}

.description-card__body a {
	color: var(--card-ink);
	text-decoration: underline;
	text-decoration-color: var(--card-line);
	text-underline-offset: 3px;
}

.description-card__body a:hover {
	text-decoration-color: var(--card-ink);
}

/* Responsive */
@media (max-width: 900px) {
	.description-card {
		padding: 36px 28px;
	}

	.description-card__title {
		font-size: 28px;
		margin-bottom: 24px;
	}

	.description-card__cols {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.flavors {
		gap: 8px;
	}

	.flavor__label {
		font-size: 8px;
	}

	.flavor__value {
		font-size: 12px;
	}
}

@media (max-width: 560px) {
	.description-card {
		padding: 28px 20px;
	}

	.tasting-icon img {
		width: 26px;
		height: 26px;
	}

	.description-card__body {
		font-size: 15px;
	}
}


/* =========================================================
   TECHNICAL SHEET CARD
   Two-column key/value list inside a soft beige card.
   ========================================================= */

:root {
	--tech-bg:       #F0EAE0;   /* card background (light beige) */
	--tech-ink:      #2c2926;   /* primary text — label color */
	--tech-value:    #8a8378;   /* value / right-aligned text — soft grey-brown */
	--tech-line:     #ddd4c6;   /* divider between rows */
}

.product-technical-section {
	padding: 0px 0 16px;
}

.product-technical-section .content_wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0px;
}

.technical-sheet {
	background: #faf9f8;
	border-radius: var(--wiize-radius);
	padding: 40px 56px 44px;
}

.technical-sheet__title {
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 28px;
	font-style: italic;
	font-weight: 500;
	color: #000;
	margin: 0 0 28px;
}

/* Two columns of spec rows */
.technical-sheet__cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 64px;
}

.technical-sheet__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* One spec row: label left, value right, divider below */
.technical-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--tech-line);
}

.technical-row:last-child {
	border-bottom: none;
}

.technical-row__label {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #554F4F;
	flex-shrink: 0;
}

.technical-row__value {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: var(--tech-value);
	text-align: right;
	min-width: 0;
}

/* Responsive */
@media (max-width: 900px) {
	.technical-sheet {
		padding: 28px 28px 32px;
	}

	.technical-sheet__title {
		font-size: 26px;
		margin-bottom: 18px;
	}

	.technical-sheet__cols {
		grid-template-columns: 1fr;
		gap: 0;
	}

	/* When stacked, divider between the two lists keeps things tidy */
	.technical-sheet__cols .technical-sheet__list:first-child .technical-row:last-child {
		border-bottom: 1px solid var(--tech-line);
	}
}

@media (max-width: 480px) {
	.technical-sheet {
		padding: 24px 20px;
	}

	.technical-row {
		padding: 12px 0;
	}

	.technical-row__label,
	.technical-row__value {
		font-size: 13px;
	}
}


/* =========================================================
   FOOD PAIRINGS CARD  →  moved to product-food-pairings.css
   (styles intentionally not duplicated here)
   ========================================================= */


/* =========================================================
   COMMENTS SECTION
   Title + clean bordered container that wraps whatever
   comments.php outputs (form, list of reviews, or nothing).
   ========================================================= */

.product-comments-section {
	padding: 0px 0 16px;
}

.product-comments-section .content_wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0px;
}

.product-comments__title {
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 32px;
	font-weight: 500;
	color: var(--wiize-ink);
	margin: 0 0 16px;
}

.product-comments__box {
	background: #fff;
	border: 1px solid var(--wiize-line);
	border-radius: var(--wiize-radius);
	padding: 32px;
	min-height: 180px;
}

/* Empty state — if comments.php outputs nothing, the box should still feel intentional */
.product-comments__box:empty::before {
	content: "";
	display: block;
	min-height: 140px;
}

/* Reasonable defaults for whatever comments.php throws inside —
   so a stock WP / WC reviews block doesn't visually fight the new layout. */
.product-comments__box > *:first-child {
	margin-top: 0;
}

.product-comments__box > *:last-child {
	margin-bottom: 0;
}

.product-comments__box .commentlist,
.product-comments__box ol.commentlist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.product-comments__box .comment,
.product-comments__box li.comment {
	padding: 16px 0;
	border-bottom: 1px solid var(--wiize-line);
}

.product-comments__box .comment:last-child,
.product-comments__box li.comment:last-child {
	border-bottom: none;
}

.product-comments__box #review_form_wrapper,
.product-comments__box .comment-respond {
	margin-top: 16px;
}

.product-comments__box .comment-form input[type="text"],
.product-comments__box .comment-form input[type="email"],
.product-comments__box .comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--wiize-line);
	border-radius: var(--wiize-radius-sm);
	font-family: inherit;
	font-size: 14px;
	color: var(--wiize-ink);
	background: #fff;
	box-sizing: border-box;
}

.product-comments__box .comment-form textarea {
	min-height: 120px;
	resize: vertical;
}

.product-comments__box .comment-form .submit,
.product-comments__box .comment-form button[type="submit"],
.product-comments__box .comment-form input[type="submit"] {
	background: var(--wiize-wine);
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: var(--wiize-radius-sm);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.product-comments__box .comment-form .submit:hover,
.product-comments__box .comment-form button[type="submit"]:hover,
.product-comments__box .comment-form input[type="submit"]:hover {
	background: var(--wiize-wine-dark);
}

@media (max-width: 600px) {
	.product-comments__box {
		padding: 20px;
	}

	.product-comments__title {
		font-size: 24px;
	}
}


.full-bleed {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
}


/* =========================================================
   PRODUCT ROW SECTIONS
   "Other wine of this Winemaker" / "Similar wines" — title
   with thin divider underneath, then a 5-column grid of
   product cards rendered via product_in_the_product_list.php.
   ========================================================= */

.product-row-section {
	padding: 28px 0;
}

.product-row-section .content_wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0px;
}

.product-row-section__heading {
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--wiize-line);
}

.product-row-section__title {
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 32px;
	font-weight: 500;
	color: var(--wiize-ink);
	margin: 0;
}

/* 5-column grid for product cards */
.product-cards-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

/* Reset legacy column wrappers if they appear inside the card markup */
.product-cards-grid .product_column_25,
.product-cards-grid .product_column_20,
.product-cards-grid .product_column_50 {
	width: 100%;
	float: none;
	padding: 0;
	margin: 0;
}

/* Responsive scaling — fewer columns as the screen narrows */
@media (max-width: 1100px) {
	.product-cards-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 900px) {
	.product-cards-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}

	.product-row-section__title {
		font-size: 24px;
	}
}

@media (max-width: 600px) {
	.product-cards-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

@media (max-width: 380px) {
	.product-cards-grid {
		grid-template-columns: 1fr;
	}
}


.product-hero__options {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 12px;
	align-items: stretch;
}

/* Селекты и цена тянутся на всю ширину своей колонки */
.product-hero__options .hero-select,
.product-hero__options .hero-select select,
.product-hero__options .hero-price-box {
	width: 100%;
	min-width: 0;          /* чтобы grid-ячейка могла сжиматься, а не распирала ряд */
	box-sizing: border-box;
}

/* Цена выравнивается по центру внутри своей колонки */
.product-hero__options .hero-price-box {
	display: flex;
	align-items: center;
	justify-content: center;
}	

	.other_wines {
    padding: 60px 0 30px !important;
}

.similar_wines {
    background-color: #fff;
    padding: 60px 0 40px !important;
}

body .np-featured-content {
  margin: 0px auto !important;
}

.np-focus-wine-card-cart.is-loading { pointer-events: none; opacity: 0.85; }
.np-focus-wine-card-cart.is-added   { background: #2e7d32; } /* зелёный на момент успеха */

.np-focus-wine-card-cart-wrap {
    position: relative;
    display: inline-flex;
}
.np-focus-wine-card-cart-wrap .added_to_cart {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: underline;
}

/* === Cart notice banner === */

.wiize-cart-notice {
	background: #DDE5C9 !important;
	color: #38390B !important;
	padding: 14px 0;
	margin-top: 10px;
}
.wiize-cart-notice__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	line-height: 1.4;
	padding: 0px 20px;
}
.wiize-cart-notice__check {
	flex: 0 0 auto;
	display: inline-flex;
	width: 26px; height: 26px;
	background: #76782F;   /* тёмная олива, как в иконке Tasting */
	color: #fff;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
}
.wiize-cart-notice__text { flex: 1 1 auto; }
.wiize-cart-notice__text a {
	color: #38390B;
	text-decoration: underline;
	font-weight: 600;
}
.wiize-cart-notice__close {
	flex: 0 0 auto;
	background: none; border: 0;
	color: inherit;
	font-size: 26px; line-height: 1;
	cursor: pointer; padding: 0 4px;
	opacity: .7;
}
.wiize-cart-notice__close:hover { opacity: 1; }


/* === Add button states === */
/* Базовое состояние: видна только корзинка */
.hero-add-btn__icon--spinner,
.hero-add-btn__icon--check { display: none !important; }

.hero-add-btn__icon--spinner {
	width: 18px; height: 18px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	box-sizing: border-box;
}

/* Loading: только спиннер */
.hero-add-btn.is-loading { pointer-events: none; opacity: .85; }
.hero-add-btn.is-loading .hero-add-btn__icon--cart { display: none !important; }
.hero-add-btn.is-loading .hero-add-btn__icon--spinner {
	display: inline-block !important;
	animation: wiize-hero-spin .8s linear infinite;
}

/* Success: только галочка */
.hero-add-btn.is-success .hero-add-btn__icon--cart,
.hero-add-btn.is-success .hero-add-btn__icon--spinner { display: none !important; }
.hero-add-btn.is-success .hero-add-btn__icon--check { display: inline-flex !important; }

@keyframes wiize-hero-spin { to { transform: rotate(360deg); } }




/* ===== WC reviews — wine palette ===== */

/* Скрываем дефолтный заголовок WC, у нас уже есть свой h2 "Comments" */
.product-comments-section #reviews .woocommerce-Reviews-title { display: none; }

.product-comments-section .commentlist {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}
.product-comments-section .commentlist li { margin-bottom: 14px; }

.product-comments-section .commentlist .comment_container {
	display: flex;
	gap: 16px;
	padding: 18px 20px;
	background: #FAF7F1;
	border: 1px solid #E5DDD0;
	border-radius: 12px;
}
.product-comments-section .commentlist .avatar {
	flex: 0 0 auto;
	width: 48px; height: 48px;
	border-radius: 50%;
	object-fit: cover;
}
.product-comments-section .commentlist .comment-text { flex: 1 1 auto; }
.product-comments-section .commentlist .meta {
	margin: 4px 0 8px;
	color: #76782F;
	font-size: 14px;
}
.product-comments-section .commentlist .woocommerce-review__author {
	color: #38390B;
	font-weight: 600;
}
.product-comments-section .commentlist .description p {
	margin: 0;
	color: #38390B;
	line-height: 1.55;
}

/* Звёзды отзыва (WC использует font icons) — бордовые */
.product-comments-section .star-rating { color: #8B1538; }
.product-comments-section .star-rating::before { color: #E5DDD0; }
.product-comments-section .star-rating span::before { color: #8B1538; }

/* Форма "Add a review" */
.product-comments-section #review_form_wrapper { margin-top: 24px; }
.product-comments-section #respond .comment-reply-title {
	display: block;
	font-size: 22px;
	color: #38390B;
	font-weight: 600;
	margin-bottom: 14px;
}
.product-comments-section .comment-form {
	background: #FAF7F1;
	border: 1px solid #E5DDD0;
	border-radius: 12px;
	padding: 22px 24px;
}
.product-comments-section .comment-form p { margin: 0 0 14px; }
.product-comments-section .comment-form label {
	display: block;
	color: #38390B;
	font-weight: 500;
	margin-bottom: 6px;
}
.product-comments-section .comment-form input[type="text"],
.product-comments-section .comment-form input[type="email"],
.product-comments-section .comment-form input[type="url"],
.product-comments-section .comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #C7BDB0;
	border-radius: 8px;
	background: #fff;
	font-family: inherit;
	color: #38390B;
	box-sizing: border-box;
}
.product-comments-section .comment-form textarea { min-height: 120px; resize: vertical; }
.product-comments-section .comment-form input:focus,
.product-comments-section .comment-form textarea:focus {
	outline: none;
	border-color: #76782F;
}

/* Кликабельные звёзды в форме — серые → бордовые при наведении/выборе */
.product-comments-section .comment-form-rating .stars a { color: #C7BDB0; text-decoration: none; }
.product-comments-section .comment-form-rating .stars a:hover,
.product-comments-section .comment-form-rating .stars.selected a.active,
.product-comments-section .comment-form-rating .stars.selected a.active ~ a:hover { color: #8B1538; }
.product-comments-section .comment-form-rating .stars.selected a:not(.active) { color: #8B1538; }

/* Кнопка Submit — в цвет ADD */
.product-comments-section .form-submit input[type="submit"],
.product-comments-section .comment-form .submit {
background: #7A4C1F !important;
    color: #fff !important;
	border: 0;
	    padding: 14px 32px !important;
	border-radius: 5px !important;
	font-size: 12px !important;
    font-weight: 600 !important;
	cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;

}
.product-comments-section .form-submit input[type="submit"]:hover,
.product-comments-section .comment-form .submit:hover {
	background: #4F2F18 !important;   /* темнее при наведении */
}

/* "No reviews yet" */
.product-comments-section .woocommerce-noreviews,
.product-comments-section p.no-comments {
	color: #76782F;
	font-style: italic;
	margin-bottom: 20px;
}

/* Чекбокс cookies — поправляем выравнивание */
.product-comments-section .comment-form-cookies-consent label {
	display: inline;
	margin-left: 6px;
}

.wiize-review-feedback {
	margin-top: 10px;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 14px;
}
.wiize-review-feedback.is-error   { background: #F8E5E0; color: #6B0F2A; }
.wiize-review-feedback.is-success { background: #DDE5C9; color: #38390B; }
.wiize-review-feedback:empty      { display: none; }

body .np-focus-wine-card-image img.is-placeholder {
	object-fit: contain;
	padding: 0px;        /* чтоб не липло к краям, как у реальных бутылок */
}


/* =========================================================
   WIIZE — Single product page: RESPONSIVE TWEAKS
   Дополнение к основному CSS. Добавьте в конец таблицы стилей.

   Брейкпойнты:
   • ≤ 991px — планшеты (портрет + ландшафт), большие телефоны в ландшафте
   • ≤ 600px — телефоны в портрете
   • ≤ 380px — мелкие телефоны
   • orientation: landscape + max-height 500px — телефоны лёжа
   ========================================================= */


/* ---------------------------------------------------------
   1. БОКОВЫЕ ОТСТУПЫ КОНТЕЙНЕРОВ
   В content_wrap стоит padding: 0 — на десктопе ок,
   но на мобильном содержимое прилипает к краям экрана.
   --------------------------------------------------------- */
@media (max-width: 991px) {
	.product-hero .content_wrap,
	.product-description-section .content_wrap,
	.product-technical-section .content_wrap,
	.food-pairings-section .content_wrap,
	.product-extra-info .content_wrap,
	.product-comments-section .content_wrap,
	.product-row-section .content_wrap {
		padding-left: 20px !important;
		padding-right: 20px !important;
		box-sizing: border-box;
	}

	.wiize-cart-notice__inner {
		padding-left: 16px;
		padding-right: 16px;
	}
}


/* =========================================================
   2. ПЛАНШЕТЫ + БОЛЬШИЕ ТЕЛЕФОНЫ (≤ 991px)
   ========================================================= */
@media (max-width: 991px) {

	/* --- HERO --- */
	.product-hero {
		padding: 24px 0 40px;
	}

	.product-hero__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.product-hero__media {
		min-height: 460px;
		padding: 48px 24px;
	}

	.hero-gallery {
		min-height: 380px;
	}

	.hero-gallery__img {
		max-height: 400px;
	}

	.product-hero__winemaker-label {
		font-size: 20px;
	}

	.product-hero__title {
		font-size: 32px !important;
		line-height: 1.1;
	}

	.product-hero__subtitle {
		font-size: 24px;
	}

	.product-hero__quicklinks {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 16px;
		margin: 8px 0;
	}

	.product-hero__quicklinks li {
		line-height: 1;
	}

	.product-hero__attributes {
		gap: 10px;
	}

	.hero-circle {
		width: 54px;
		height: 54px;
	}

	.product-hero__taste-trust {
		padding: 18px 22px;
	}

	.taste-trust__title {
		font-size: 28px;
	}


	/* --- DESCRIPTION CARD --- */
	.description-card {
		padding: 36px 32px;
	}

	.description-card__title {
		font-size: 28px;
		margin-bottom: 24px;
		padding-right: 52px;
	}

	.description-card__cols {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.description-card__body {
		font-size: 22px;
	}

	.description-card__body p {
		margin-right: 0;
	}


	/* --- TECHNICAL SHEET --- */
	.technical-sheet {
		padding: 28px 24px 32px;
	}

	.technical-sheet__title {
		font-size: 24px;
		margin-bottom: 18px;
	}

	.technical-sheet__cols {
		grid-template-columns: 1fr;
		gap: 0;
	}


	/* --- COMMENTS --- */
	.product-comments-section .comment-form {
		padding: 18px 18px;
	}
}


/* =========================================================
   3. ТЕЛЕФОНЫ В ПОРТРЕТЕ (≤ 600px)
   ========================================================= */
@media (max-width: 600px) {

	/* --- CART NOTICE BANNER --- */
	.wiize-cart-notice {
		padding: 12px 0;
	}

	.wiize-cart-notice__inner {
		flex-wrap: wrap;
		gap: 10px;
		line-height: 1.35;
	}

	.wiize-cart-notice__text {
		font-size: 13px;
		flex-basis: calc(100% - 60px);
	}


	/* --- HERO --- */
	.product-hero {
		padding: 16px 0 24px;
	}

	.product-hero__media {
		min-height: 380px;
		padding: 32px 16px;
	}

	.hero-gallery {
		min-height: 320px;
	}

	.hero-gallery__img {
		max-height: 320px;
	}

	.product-hero__winemaker-label {
		font-size: 18px;
	}

	.product-hero__title {
		font-size: 26px !important;
	}

	.product-hero__subtitle {
		font-size: 20px;
	}

	.product-hero__quicklinks a {
		font-size: 15px;
	}

	/* Кружки атрибутов — 5 штук должны уместиться */
	.product-hero__attributes {
		gap: 6px;
	}

	.hero-circle {
		width: 48px;
		height: 48px;
		font-size: 8px;
	}

	/* Options: год + объём в одну строку, цена на всю ширину снизу */
	.product-hero__options[data-cols="3"] {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
	.product-hero__options[data-cols="3"] .hero-price-box {
		grid-column: 1 / -1;
	}
	.product-hero__options[data-cols="2"] {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
	.product-hero__options[data-cols="1"] {
		grid-template-columns: 1fr;
	}

	.product-hero__options .hero-price-box {
		grid-column: 1 / -1;
		padding: 10px 16px;
	}

	.hero-select select {
		font-size: 20px;
		padding: 10px 28px 10px 10px;
		min-width: 0;
		width: 100%;
	}

	.hero-price-box__value {
		font-size: 24px;
	}

	/* Actions: иконки + счётчик в одну строку, ADD на всю ширину */
	.product-hero__actions {
		flex-wrap: wrap;
		gap: 12px;
		justify-content: space-between;
		align-items: center;
	}

	.hero-action-icons {
		gap: 6px;
	}

	.hero-action {
		width: 36px;
		height: 36px;
	}

	.hero-add-btn {
		flex: 1 1 100%;
		justify-content: center;
		padding: 12px 24px;
	}

	/* Shipping */
	.product-hero__shipping li {
		font-size: 12px;
		gap: 10px;
	}

	/* Taste & Trust */
	.product-hero__taste-trust {
		padding: 16px 18px;
		margin-top: 18px;
	}

	.taste-trust__top {
		flex-wrap: wrap;
		gap: 8px;
		margin-bottom: 12px;
	}

	.taste-trust__title {
		font-size: 24px;
	}

	.tt-icon img {
		width: 24px;
		height: 24px;
	}


	/* --- DESCRIPTION CARD --- */
	.description-card {
		padding: 28px 20px;
	}

	.description-card__bookmark {
		top: 18px;
		right: 18px;
	}

	.description-card__bookmark svg {
		width: 28px;
		height: 36px;
	}

	.description-card__title {
		font-size: 22px;
		margin-bottom: 20px;
		padding-right: 40px;
	}

	.description-card__subtitle {
		font-size: 16px;
		margin-bottom: 14px;
	}

	/* Flavors: 5 штук в 2 ряда (2+2+1) — гораздо читаемее, чем 5 столбцов */
	.flavors {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px 14px;
	}

	.flavor__label {
		font-size: 10px;
		white-space: normal;
	}

	.flavor__value {
		font-size: 13px;
	}

	/* Tasting icons компактнее */
	.tasting-icon {
		padding: 4px 6px;
	}

	.tasting-icon img {
		width: 26px;
		height: 26px;
	}

	.tasting-icon__score {
		font-size: 14px;
	}

	/* Длинный текст описания */
	.description-card__body {
		font-size: 16px;
		line-height: 1.5;
		letter-spacing: 0.01em;
	}

	.description-card__body p {
		margin: 0 0 12px;
		margin-right: 0;
	}


	/* --- TECHNICAL SHEET --- */
	.technical-sheet {
		padding: 22px 18px;
	}

	.technical-sheet__title {
		font-size: 20px;
		margin-bottom: 14px;
	}

	.technical-row {
		padding: 10px 0;
		gap: 12px;
	}

	.technical-row__label,
	.technical-row__value {
		font-size: 13px;
	}


	/* --- GRAPES --- */
	.product-extra-info {
		padding: 16px 0;
	}

	.descr-list-item {
		gap: 12px;
	}

	.descr-list-icon {
		width: 32px;
		height: 32px;
	}

	.descr-list-header {
		font-size: 12px;
	}

	.descr-list-description {
		font-size: 14px;
	}


	/* --- COMMENTS --- */
	.product-comments-section {
		padding: 0 0 16px;
	}

	.product-comments__title {
		font-size: 22px;
	}

	.product-comments__box {
		padding: 16px;
	}

	.product-comments-section .comment-form {
		padding: 16px 16px;
	}

	.product-comments-section .comment-form input[type="text"],
	.product-comments-section .comment-form input[type="email"],
	.product-comments-section .comment-form textarea {
		padding: 10px 12px;
		font-size: 14px;
	}

	.product-comments-section #respond .comment-reply-title {
		font-size: 18px;
	}

	.product-comments-section .form-submit input[type="submit"],
	.product-comments-section .comment-form .submit {
		width: 100%;
		padding: 12px 20px !important;
	}
}


/* =========================================================
   4. МЕЛКИЕ ТЕЛЕФОНЫ (≤ 380px)
   ========================================================= */
@media (max-width: 380px) {

	/* Hero */
	.product-hero__media {
		min-height: 320px;
		padding: 24px 12px;
	}

	.hero-gallery {
		min-height: 280px;
	}

	.hero-gallery__img {
		max-height: 280px;
	}

	.product-hero__title {
		font-size: 24px !important;
	}

	/* Кружки атрибутов — еще меньше, чтоб 5 штук точно уместились */
	.hero-circle {
		width: 42px;
		height: 42px;
		font-size: 7px;
	}

	.hero-action {
		width: 32px;
		height: 32px;
	}

	/* Описание: вкусы в одну колонку */
	.flavors {
		grid-template-columns: 1fr;
		gap: 14px;
	}
}


/* =========================================================
   5. ТЕЛЕФОНЫ ЛЁЖА (короткая высота, горизонтальная)
   Когда width > 600 но height маленький — типичный
   телефон в ландшафтной ориентации.
   ========================================================= */
@media (max-width: 991px) and (orientation: landscape) and (max-height: 500px) {

	/* Hero: оставляем 2 колонки, чтобы было компактнее
	   (на узких ландшафтных экранах одна колонка слишком вытянута). */
	.product-hero__grid {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}

	.product-hero__media {
		min-height: 280px;
		padding: 24px 16px;
	}

	.hero-gallery {
		min-height: 240px;
	}

	.hero-gallery__img {
		max-height: 240px;
	}

	.product-hero__title {
		font-size: 26px !important;
	}

	/* Options/Actions в одну линию */
	.product-hero__options {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.product-hero__options .hero-price-box {
		grid-column: auto;
	}

	.product-hero__actions {
		flex-wrap: nowrap;
	}

	.hero-add-btn {
		flex: 0 1 auto;
	}

	/* Description card 2-column tasting/flavors на ландшафте */
	.description-card__cols {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	.flavors {
		grid-template-columns: repeat(5, 1fr);
	}
}


/* === Force full-width on mobile === */
@media (max-width: 991px) {

	/* Внешний WC-div вокруг товара (div id="product-XXX" class="product ...") */
	div.product,
	div[id^="product-"] {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		box-sizing: border-box;
	}

	/* Все секции страницы товара */
	.wiize-cart-notice,
	.product-hero,
	.product-description-section,
	.product-technical-section,
	.food-pairings-section,
	.product-extra-info,
	.product-comments-section,
	.product-row-section,
	.other_wines,
	.similar_wines {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		box-sizing: border-box;
	}

	/* Bricks builder контейнер — частая причина */
	#brx-content,
	#brx-content > .brxe-container,
	#brx-content > .brxe-section,
	main#brx-content {
		max-width: 100% !important;
		width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}


/* Адаптивный grid опций — сетка подстраивается под фактическое число
   колонок (год / объём / цена). Если года нет — 2 колонки, если ни года
   ни объёма — 1. */
.product-hero__options[data-cols="1"] {
	grid-template-columns: 1fr;
}
.product-hero__options[data-cols="2"] {
	grid-template-columns: 1fr 1fr;
}
.product-hero__options[data-cols="3"] {
	grid-template-columns: 1fr 1fr 1fr;
}


/* ============================================================
 * Wine card — canton flag (region badge)
 * ============================================================
 * Loaded by wiize_render_wine_card_mini() when rendering a card
 * in the 'shop' variant. The flag is the small image placed in
 * the top-right corner of the wine card image.
 *
 * NOTE: the rule
 *   .np-focus-wine-card.is-shop-variant .np-focus-wine-card-image { position: relative; }
 * is intentionally kept in the PHP renderer (alongside the gallery
 * slider rules) because the same positioning context is also used
 * by the gallery slider bars, not only by the flag.
 * ============================================================ */

.np-focus-wine-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    pointer-events: none;
    line-height: 0;
}

.np-focus-wine-card-badge img {
    display: block;
    width: auto;
    max-width: 30px;
    height: auto;
}
        /* ---------- Image wrapper positioning context ---------- */
        /* Shared by the canton flag (external CSS file) and the gallery slider bars below. */
        .np-focus-wine-card.is-shop-variant .np-focus-wine-card-image {
            position: relative;
        }

        /* ---------- Gallery slider (1–3 images) ---------- */
        .np-focus-wine-card-gallery {
            position: relative;
            display: block;
            line-height: 0;
        }
        .np-focus-gallery__img {
            display: none;
            width: 100%;
            height: auto;
        }
        .np-focus-gallery__img.is-active {
            display: block;
        }
        .np-focus-gallery__bars {
			position: absolute;
			left: 0;
			right: 0;
			top: 284px;
			display: flex;
			gap: 3px;
			padding: 0 2px;
			z-index: 2;
        }
		.np-focus-selection-grid .np-focus-wine-card-badge, .np-focus-selection-grid .np-focus-wine-card-rating { display:none; } 

		.np-focus-selection-grid .np-focus-gallery__bars, .np-selected-wine-grid .np-focus-gallery__bars  { top: 230px;} 
		
        .np-focus-gallery__bar {
            flex: 1;
            height: 3px;
            background: #e9e1d4;
            border: none;
            padding: 0;
            margin: 0;
            cursor: pointer;
            transition: background 0.25s ease;
        }
        .np-focus-gallery__bar:hover {
            background: #e9e1d4;
        }
        .np-focus-gallery__bar.is-active {
            background: #8b0d2b;
        }

        /* ---------- Star rating ---------- */
        .np-focus-wine-card-rating {
            display: flex;
            align-items: center;
            gap: 2px;
            margin: 10px 0 0px;
            font-size: 16px;
            line-height: 1;
        }
        .np-focus-star {
            color: #d9d2c4;
            line-height: 1;
        }
        .np-focus-star--full {
            color: #1a1a1a;
        }
        .np-focus-star--half {
            position: relative;
            display: inline-block;
            color: #d9d2c4;
        }
        .np-focus-star--half::before {
            content: '★';
            position: absolute;
            left: 0;
            top: 0;
            width: 50%;
            overflow: hidden;
            color: #1a1a1a;
        }



/* ---------- Star rating — centered, in wine red ---------- */
body .np-focus-wine-card-rating {
    justify-content: center;
}
body .np-focus-star--full {
    color: #A6032F;
}
body .np-focus-star--half::before {
    color: #A6032F;
}

/* ---------- Info wrapper — no background ---------- */
.page-template-shop-filters .np-focus-wine-card-info {
    background: transparent !important;
}

.page-template-shop-filters .np-focus-wine-card-image {
	position: relative;
    background-color: #f3ece1;
    background-image: url(../img/product_pattern.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
    box-sizing: border-box;
	padding-bottom: 8px;
	margin-bottom: 10px;
}
/* ============================================
 * Price range — dual slider
 * ============================================ */
.price-slider-wrapper {
    position: relative;
    width: 100%;
    height: 28px;
    margin: 14px 0 18px;
    /* CSS-переменные обновляются из JS */
    --min-pct: 0%;
    --max-pct: 100%;
}

/* Серая фоновая полоса */
.price-slider-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    background: #d9d2c4;
    border-radius: 2px;
    pointer-events: none;
}

/* Активный (закрашенный) отрезок между двумя шарами */
.price-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: var(--min-pct);
    right: calc(100% - var(--max-pct));
    height: 3px;
    background: #707070;
    border-radius: 2px;
    pointer-events: none;
}

/* Сами инпуты — невидимы, но шары на них работают */
.price-slider-wrapper .price_range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    pointer-events: none; /* клики по полосе провалятся на обёртку */
    z-index: 2;
}

/* Track скрываем — он только для нативного вида */
.price-slider-wrapper .price_range::-webkit-slider-runnable-track {
    height: 3px;
    background: transparent;
    border: none;
}
.price-slider-wrapper .price_range::-moz-range-track {
    height: 3px;
    background: transparent;
    border: none;
}

/* Шарики — кликабельны, цвет #707070 */
.price-slider-wrapper .price_range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;       /* возвращаем клики только на шарик */
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #707070;
    border: none;
    cursor: pointer;
    margin-top: -8px;            /* центруем по полосе высотой 3px */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.price-slider-wrapper .price_range::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #707070;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Когда шарик в фокусе/нажат — слегка увеличиваем */
.price-slider-wrapper .price_range::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

/* Loading-state for the product grid during AJAX filtering */
.p_grid {
    transition: opacity 0.2s ease;
}
.p_grid.is-loading {
    opacity: 0.35;
    pointer-events: none;          /* нельзя кликать по тусклым карточкам */
    position: relative;
}
.p_grid.is-loading::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border: 3px solid #d9d2c4;
    border-top-color: #707070;
    border-radius: 50%;
    animation: p-grid-spin 0.8s linear infinite;
    pointer-events: none;
}
@keyframes p-grid-spin {
    to { transform: translateX(-50%) rotate(360deg); }
}