/**
 * WooCommerce — shop, category & single product.
 */

/* --- Shop wrapper --- */
.vp-woo-wrap {
	padding: 0.5rem 0 3.5rem;
}

/* Trust strip under hero */
.vp-shop-trust {
	padding: 0 0 1.5rem;
	margin-top: -0.5rem;
}

.vp-shop-trust__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
}

@media (min-width: 640px) {
	.vp-shop-trust__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

.vp-shop-trust__item {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 1rem 1.15rem;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(6px);
	border-radius: 1.25rem;
	border: 2px solid transparent;
	box-shadow: 0 12px 28px rgba(90, 140, 61, 0.1);
	transition: border-color 0.2s ease;
}

.vp-shop-trust__item:hover {
	border-color: rgba(242, 140, 40, 0.28);
}

.vp-shop-trust__icon {
	width: 3.25rem;
	height: 3.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 1rem;
	background: rgba(242, 140, 40, 0.1);
	font-size: 1.65rem;
	flex-shrink: 0;
}

.vp-shop-trust__item:nth-child(2) .vp-shop-trust__icon {
	background: rgba(90, 140, 61, 0.12);
}

.vp-shop-trust__item:nth-child(3) .vp-shop-trust__icon {
	background: rgba(252, 211, 77, 0.25);
}

.vp-shop-trust__item strong {
	display: block;
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--vp-dark);
	margin-bottom: 0.15rem;
}

.vp-shop-trust__item span {
	display: block;
	font-size: 0.78rem;
	color: #6b7280;
}

.vp-shop-section-head {
	text-align: center;
	margin: 0.5rem 0 1.5rem;
}

.vp-shop-section-head__title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	margin: 0;
	font-size: clamp(1.35rem, 3vw, 2rem);
	font-weight: 900;
	color: var(--vp-dark);
}

.vp-shop-section-head__title span {
	color: var(--vp-orange);
	font-size: 0.9em;
}

.vp-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	padding: 0.9rem 1.15rem;
	background: #fff;
	border: 1px solid rgba(74, 59, 50, 0.08);
	border-radius: 1.25rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.vp-shop-toolbar .woocommerce-result-count {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	font-size: 0.85rem;
	font-weight: 600;
	color: #6b7280;
}

.vp-shop-toolbar .woocommerce-result-count::before {
	content: "📦";
	font-size: 0.9rem;
}

.vp-shop-toolbar .woocommerce-ordering {
	margin: 0;
	flex-shrink: 0;
}

/*
 * Reset the native <select> chrome and draw our own chevron so it never
 * floats outside the pill background (the small styling issue on RTL).
 */
.vp-shop-toolbar .woocommerce-ordering select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	min-width: 11rem;
	border: 1.5px solid #eee;
	border-radius: 999px;
	padding: 0.55rem 1.15rem;
	padding-inline-start: 2.35rem;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	background-color: var(--vp-light);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 8L10 12.5L14.5 8' stroke='%234a3b32' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 0.7rem center;
	background-size: 1.1rem;
	color: var(--vp-dark);
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.vp-shop-toolbar .woocommerce-ordering select:hover {
	border-color: rgba(242, 140, 40, 0.35);
	background-color: #fff;
}

.vp-shop-toolbar .woocommerce-ordering select:focus {
	outline: none;
	border-color: var(--vp-orange);
	box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.15);
}

/*
 * Product grid — column count comes from theme settings (فروشگاه → ستون محصولات)
 * via the --vp-shop-columns custom property printed on .vp-woo-wrap; narrower
 * breakpoints cap it so cards never get too cramped on small screens.
 */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 640px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(min(3, var(--vp-shop-columns, 4)), minmax(0, 1fr));
		gap: 1.25rem;
	}
}

@media (min-width: 768px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(min(3, var(--vp-shop-columns, 4)), minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(var(--vp-shop-columns, 4), minmax(0, 1fr));
		gap: 1.5rem;
	}
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

.woocommerce ul.products li.product.vp-product-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-align: center;
	position: relative;
	box-sizing: border-box;
	min-width: 0;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	/* Visual shell: product-cards.css (--soft, --dock, etc.) */
}

.vp-product-card__thumb {
	display: block;
	width: 100%;
	text-decoration: none;
}

.vp-product-card__thumb-inner {
	display: block;
	overflow: hidden;
	border-radius: var(--vp-card-img-radius, 1rem);
	background: var(--vp-light);
	aspect-ratio: 1 / 1;
}

.vp-product-card__thumb-inner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vp-product-card__price .woocommerce-Price-currencySymbol,
.vp-product-card__price .amount {
	font: inherit;
}

/* Cart emoji only in shop/archive grids — not icon buttons / Elementor FA icons */
.vp-woo-wrap .vp-product-card__cart:not(.vp-product-card__icon-btn)::before,
.vp-shop-section-head ~ .woocommerce ul.products .vp-product-card__cart:not(.vp-product-card__icon-btn)::before {
	content: '🛒';
	font-size: 0.95em;
	line-height: 1;
	display: inline-block;
	flex-shrink: 0;
	align-self: center;
	vertical-align: middle;
}

.vp-product-card__stars--empty {
	opacity: 0.22;
}

.vp-product-card__badge {
	position: absolute;
	z-index: 5;
	font-weight: 900;
	color: #fff;
	border-radius: 999px;
}

.vp-product-card__badge--sale { background: var(--vp-orange); }
.vp-product-card__badge--new { background: var(--vp-green); }

.vp-product-card__cart:not(.vp-product-card__icon-btn):not(.vp-wish-btn):not(.vp-product-card__view-btn),
.woocommerce ul.products li.product .button:not(.vp-product-card__icon-btn):not(.vp-wish-btn):not(.vp-product-card__view-btn),
.woocommerce ul.products li.product a.button:not(.vp-product-card__icon-btn):not(.vp-wish-btn):not(.vp-product-card__view-btn) {
	/* Primary CTA: product-cards.css */
	margin-top: auto !important;
}

.woocommerce span.onsale {
	background: var(--vp-orange) !important;
	border-radius: 999px;
	min-height: auto;
	line-height: 1.2;
	padding: 0.25rem 0.5rem;
	font-size: 0.7rem;
}

.woocommerce nav.woocommerce-pagination {
	margin-top: 2rem;
}

.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	min-width: 2.25rem;
	height: 2.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #eee;
	color: var(--vp-dark);
	font-weight: 700;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--vp-orange);
	border-color: var(--vp-orange);
	color: #fff;
}

/* =========================================================
   Single product — artifact layout
   ========================================================= */

/* Reset legacy WooCommerce float layout */
.vp-product-page.woocommerce div.product,
.vp-product-page {
	display: block;
	width: 100%;
	max-width: none;
}

.vp-product-page .woocommerce-product-gallery,
.vp-product-page .images,
.vp-product-page .summary {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

/*
 * Single product shell.
 * At medium widths this produces the requested 5% gutter on each side;
 * on wide screens it stops at the same 1152px used by the homepage.
 */
.vp-main > .vp-container.vp-single-product {
	display: block;
	width: min(calc(100% - clamp(2rem, 10vw, 6rem)), var(--vp-container, 1152px));
	max-width: none;
	margin-inline: auto;
	padding: clamp(1.5rem, 4vw, 2.5rem) 0 3rem;
	box-sizing: border-box;
}

.vp-single-product-wrap,
.vp-product-page,
.vp-product-hero {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Artifact page has no breadcrumb strip */
.vp-single-product-wrap .vp-breadcrumb {
	display: none;
}

.vp-single-product-wrap.vp-reveal {
	opacity: 1;
	transform: none;
}

.vp-product-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-bottom: 2.5rem;
}

@media (min-width: 992px) {
	.vp-product-hero {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
		align-items: start;
	}
}

/* Gallery */
.vp-gallery {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.vp-gallery__main {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 1.5rem;
	overflow: hidden;
	background: #e5e7eb;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.vp-gallery__main-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s ease;
}

.vp-gallery__main-img.is-fading {
	opacity: 0.4;
}

.vp-gallery__badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: var(--vp-orange);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
}

.vp-gallery__thumbs-wrap {
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	width: 100%;
	padding: 1rem 0;
	mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

[dir="rtl"] .vp-gallery__thumbs-wrap {
	mask-image: linear-gradient(to left, transparent, black 10%, black 90%, transparent);
	-webkit-mask-image: linear-gradient(to left, transparent, black 10%, black 90%, transparent);
}

.vp-gallery__thumbs-wrap::-webkit-scrollbar {
	display: none;
}

.vp-gallery__thumbs {
	display: flex;
	gap: 0.75rem;
	width: max-content;
	padding: 0 1rem;
}

.vp-gallery__thumb {
	width: 80px;
	height: 80px;
	padding: 0;
	border-radius: 1rem;
	overflow: hidden;
	flex-shrink: 0;
	border: 3px solid transparent;
	background: #fff;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	cursor: pointer;
	transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

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

.vp-gallery__thumb:hover,
.vp-gallery__thumb.is-active {
	border-color: var(--vp-orange);
	transform: translateY(-4px);
	box-shadow: 0 8px 15px rgba(242, 140, 40, 0.25);
}

/* Summary */
.vp-product-hero__summary {
	display: flex;
	flex-direction: column;
}

.vp-stock {
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	font-weight: 700;
}

.vp-stock--in {
	color: var(--vp-green);
}

.vp-stock--out {
	color: #dc2626;
}

.vp-stock--back {
	color: var(--vp-orange);
}

.vp-product-hero__summary .product_title {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 900;
	line-height: 1.25;
	color: var(--vp-dark);
}

.vp-product-hero__summary .price {
	display: block;
	margin: 0 0 1.5rem !important;
	font-size: clamp(1.35rem, 3vw, 1.75rem) !important;
	font-weight: 900 !important;
	color: var(--vp-orange) !important;
	line-height: 1.3;
}

.vp-product-hero__summary .price del {
	display: inline-block;
	color: #bbb !important;
	font-size: 0.95rem !important;
	font-weight: 500 !important;
	margin-inline-start: 0.65rem;
	opacity: 0.85;
}

.vp-product-hero__summary .price ins {
	text-decoration: none;
	font-weight: 900;
}

.vp-product-hero__summary .price .woocommerce-Price-amount {
	font-weight: 900;
}

.vp-product-hero__summary .woocommerce-product-details__short-description {
	margin: 0 0 2rem;
	color: #4b5563;
	font-size: 1rem;
	line-height: 1.8;
}

.vp-product-hero__summary form.cart {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	margin: 0 0 1rem;
}

/* Artifact: full-width add button, no quantity stepper on simple products */
.vp-product-hero__summary form.cart:not(.variations_form) .quantity {
	display: none !important;
}

.vp-product-hero__summary .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid #eee;
	border-radius: 1rem;
	overflow: hidden;
	background: #fff;
	margin-bottom: 0.75rem;
}

.vp-product-hero__summary .quantity input.qty {
	width: 3.25rem;
	border: 0;
	background: transparent;
	text-align: center;
	font: inherit;
	font-weight: 700;
	padding: 0.85rem 0.25rem;
	-moz-appearance: textfield;
	max-width: none;
}

.vp-product-hero__summary .single_add_to_cart_button {
	width: 100%;
	flex: none;
	background: var(--vp-green) !important;
	border: 0 !important;
	border-radius: 1rem !important;
	padding: 1rem 1.5rem !important;
	font-weight: 900 !important;
	font-size: 1rem !important;
	color: #fff !important;
	box-shadow: 0 10px 24px rgba(90, 140, 61, 0.3);
	transition: background 0.2s ease, transform 0.2s ease !important;
}

.vp-product-hero__summary .single_add_to_cart_button:hover {
	background: var(--vp-green-hover) !important;
	transform: translateY(-1px);
}

.vp-product-hero__summary .quantity input.qty::-webkit-outer-spin-button,
.vp-product-hero__summary .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.vp-product-hero__summary table.variations {
	width: 100%;
	margin-bottom: 0.75rem;
}

.vp-product-hero__summary table.variations td,
.vp-product-hero__summary table.variations th {
	padding: 0.35rem 0;
	border: 0;
}

.vp-product-hero__summary table.variations label {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--vp-dark);
}

.vp-product-hero__summary table.variations select {
	width: 100%;
	border: 1px solid #eee;
	border-radius: 0.75rem;
	padding: 0.55rem 0.75rem;
	font: inherit;
	background: #fff;
}

.vp-product-hero__summary .reset_variations {
	font-size: 0.75rem;
	color: var(--vp-orange);
}

/* Details + specs */
.vp-product-details {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding-top: 2rem;
	margin-top: 0.5rem;
	border-top: 1px solid #e5e7eb;
}

@media (min-width: 992px) {
	.vp-product-details {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		gap: 3rem;
		align-items: start;
	}
}

.vp-product-details__main {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	min-width: 0;
}

.vp-product-details__aside {
	min-width: 0;
}

.vp-product-block__title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.35rem, 2.5vw, 1.5rem);
	font-weight: 900;
	color: var(--vp-dark);
}

.vp-product-block__body {
	color: #4b5563;
	font-size: 1rem;
	line-height: 2;
}

.vp-product-block__body p:first-child {
	margin-top: 0;
}

.vp-product-features {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.vp-product-features {
		grid-template-columns: 1fr 1fr;
	}
}

.vp-product-features__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
	background: #fff;
	border: 1px solid #f3f4f6;
	border-radius: 1rem;
	color: var(--vp-dark);
	font-size: 0.92rem;
	font-weight: 500;
}

.vp-product-features__check {
	color: var(--vp-green);
	font-weight: 900;
	flex-shrink: 0;
}

.vp-product-specs {
	padding: 1.5rem;
	background: var(--vp-light);
	border-radius: 1.5rem;
}

.vp-product-specs__title {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	font-weight: 900;
	color: var(--vp-dark);
}

.vp-product-specs__list {
	margin: 0;
}

.vp-product-specs__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 0.5rem;
	margin-bottom: 0.75rem;
	border-bottom: 1px solid rgba(74, 59, 50, 0.12);
	font-size: 0.875rem;
	color: var(--vp-dark);
}

.vp-product-specs__row:last-child {
	margin-bottom: 0;
	border-bottom: 0;
	padding-bottom: 0;
}

.vp-product-specs__row dt {
	margin: 0;
	font-weight: 500;
	color: #6b7280;
}

.vp-product-specs__row dd {
	margin: 0;
	font-weight: 700;
	text-align: left;
}

/* Reviews */
.vp-product-reviews {
	margin-top: 2.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid #e5e7eb;
}

.vp-product-reviews__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2rem;
}

.vp-product-reviews__title {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 900;
	color: var(--vp-dark);
}

.vp-product-reviews__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: start;
}

@media (min-width: 768px) {
	.vp-product-reviews__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		gap: 2rem;
	}
}

.vp-product-reviews__summary {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
	background: #fff;
	border: 1px solid #f3f4f6;
	border-radius: 2rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
	.vp-product-reviews__summary {
		position: sticky;
		top: calc(5.5rem + var(--vp-admin-offset, 0px));
	}
}

.vp-product-reviews__score {
	font-size: 3.75rem;
	font-weight: 900;
	line-height: 1;
	color: var(--vp-dark);
	margin-bottom: 0.5rem;
}

.vp-product-reviews__stars {
	font-size: 1.5rem;
	letter-spacing: 0.2em;
	color: var(--vp-orange);
	margin-bottom: 0.5rem;
}

.vp-product-reviews__stars--empty {
	opacity: 0.25;
}

.vp-product-reviews__meta {
	margin: 0 0 1.75rem;
	font-size: 0.875rem;
	color: #6b7280;
}

.vp-product-reviews__cta {
	display: block;
	width: 100%;
	padding: 0.9rem 1rem;
	border: 2px solid var(--vp-green);
	border-radius: 1rem;
	color: var(--vp-green);
	font-weight: 700;
	text-decoration: none;
	text-align: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.vp-product-reviews__cta:hover {
	background: var(--vp-green);
	color: #fff;
}

.vp-product-reviews__list {
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
}

.vp-commentlist {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
}

.vp-review-card__inner {
	padding: 1.5rem;
	background: #fff;
	border: 1px solid #f3f4f6;
	border-radius: 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s ease;
}

.vp-review-card__inner:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.vp-review-card__head {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

@media (min-width: 640px) {
	.vp-review-card__head {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.vp-review-card__author {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.vp-review-card__avatar {
	width: 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--vp-light);
	font-size: 1.5rem;
	flex-shrink: 0;
}

.vp-review-card__name {
	font-weight: 700;
	color: var(--vp-dark);
	font-size: 1rem;
}

.vp-review-card__badge {
	display: inline-block;
	margin-top: 0.25rem;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: rgba(90, 140, 61, 0.12);
	color: var(--vp-green);
	font-size: 0.65rem;
	font-weight: 700;
}

.vp-review-card__role {
	display: inline-block;
	margin-top: 0.25rem;
	font-size: 0.72rem;
	font-weight: 500;
	color: #6b7280;
}

.vp-review-card__rating {
	align-self: flex-start;
	padding: 0.35rem 0.75rem;
	border-radius: 0.75rem;
	background: rgba(242, 140, 40, 0.08);
	color: var(--vp-orange);
	font-size: 0.85rem;
	letter-spacing: 0.05em;
}

.vp-review-card__body {
	color: #4b5563;
	font-size: 0.9rem;
	line-height: 1.85;
}

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

.vp-review-card__foot {
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid #f9fafb;
	font-size: 0.75rem;
	color: #9ca3af;
	text-align: left;
}

.vp-product-reviews__empty {
	margin: 0;
	padding: 1.5rem;
	background: #fff;
	border-radius: 1.25rem;
	border: 1px dashed #e5e7eb;
	color: #6b7280;
	text-align: center;
}

.vp-product-reviews__form-wrap {
	margin-top: 0.5rem;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid #f3f4f6;
	border-radius: 1.5rem;
	display: none;
}

.vp-product-reviews__form-wrap.is-open {
	display: block;
}

.vp-product-reviews__form-wrap .comment-reply-title {
	display: block;
	margin-bottom: 1rem;
	font-size: 1.1rem;
	font-weight: 900;
	color: var(--vp-dark);
}

.vp-product-reviews__form-wrap label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--vp-dark);
}

/* WooCommerce turns the rating select into p.stars links via JavaScript.
 * Its default stylesheet is disabled by the theme, so render those links here.
 */
.vp-product-reviews__form-wrap .comment-form-rating {
	margin-bottom: 1rem;
}

.vp-product-reviews__form-wrap .comment-form-rating p.stars + select {
	display: none;
}

.vp-product-reviews__form-wrap p.stars {
	display: inline-flex;
	direction: ltr;
	gap: 0.2rem;
	margin: 0.25rem 0 0.75rem;
	line-height: 1;
}

.vp-product-reviews__form-wrap p.stars a {
	position: relative;
	display: inline-flex;
	width: 1.65rem;
	height: 1.65rem;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: transparent;
	font-size: 0;
	text-decoration: none;
	outline: none;
}

.vp-product-reviews__form-wrap p.stars a::before {
	content: '☆';
	color: var(--vp-orange);
	font-family: Arial, sans-serif;
	font-size: 1.65rem;
	line-height: 1;
}

.vp-product-reviews__form-wrap p.stars:hover a::before,
.vp-product-reviews__form-wrap p.stars.selected a::before {
	content: '★';
}

.vp-product-reviews__form-wrap p.stars a:hover ~ a::before,
.vp-product-reviews__form-wrap p.stars.selected a.active ~ a::before {
	content: '☆';
}

.vp-product-reviews__form-wrap p.stars a:focus-visible {
	border-radius: 0.25rem;
	outline: 2px solid var(--vp-green);
	outline-offset: 2px;
}

.vp-product-reviews__form-wrap input[type="text"],
.vp-product-reviews__form-wrap input[type="email"],
.vp-product-reviews__form-wrap select,
.vp-product-reviews__form-wrap textarea {
	width: 100%;
	border: 1px solid #eee;
	border-radius: 0.85rem;
	padding: 0.65rem 0.85rem;
	font: inherit;
	background: var(--vp-light);
	margin-bottom: 0.85rem;
}

.vp-product-reviews__form-wrap .form-submit .submit,
.vp-product-reviews__form-wrap button[type="submit"] {
	background: var(--vp-green);
	color: #fff;
	border: 0;
	border-radius: 1rem;
	padding: 0.75rem 1.5rem;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.vp-product-reviews__form-wrap .form-submit .submit:hover {
	background: var(--vp-green-hover);
}

/* Related — scoped to single product footer */
.vp-product-page .related.products,
.vp-related-products {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e7eb;
}

.vp-product-page .related.products .vp-product-card__cart::before,
.vp-related-products .vp-product-card__cart::before {
	content: none;
}

.vp-product-page .related.products ul.products,
.vp-related-products ul.products {
	margin-top: 0;
}

.vp-related-products .vp-section-title {
	margin-bottom: 1.25rem;
}

/* Sticky bar (mobile) */
.vp-product-sticky-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, 0.96);
	border-top: 1px solid rgba(74, 59, 50, 0.1);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
	backdrop-filter: blur(8px);
}

.vp-product-sticky-bar[hidden] {
	display: none !important;
}

.vp-product-sticky-bar__title {
	display: block;
	font-size: 0.78rem;
	color: var(--vp-dark);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 10rem;
}

.vp-product-sticky-bar__price {
	font-size: 0.85rem;
	font-weight: 900;
	color: var(--vp-orange);
}

.vp-product-sticky-bar__btn {
	flex-shrink: 0;
	border: 0;
	border-radius: 999px;
	background: var(--vp-green);
	color: #fff;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 800;
	padding: 0.65rem 1rem;
	cursor: pointer;
}

@media (min-width: 768px) {
	.vp-product-sticky-bar {
		display: none !important;
	}
}

