/* ============================================
   WooCommerce Styles
   ============================================ */

/* Products Grid — override WooCommerce layout (float + 22% width) so cards fill grid cells */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--spacing-md);
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: start;
	justify-items: start;
}

.woocommerce ul.products li.product {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	min-width: 0;
}

/* Single product in grid: align to first column (left) */
.woocommerce ul.products li.product:only-child {
	grid-column: 1;
}

@media (max-width: 1023px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}
}

/* Archive & shop — vertical breathing room */
body.post-type-archive-product .woocommerce-wrapper > .container,
body.tax-product_cat .woocommerce-wrapper > .container,
body.tax-product_tag .woocommerce-wrapper > .container {
	padding-top: var(--spacing-md);
	padding-bottom: var(--spacing-xl);
}

body.post-type-archive-product .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header,
body.tax-product_tag .woocommerce-products-header {
	margin: 0 0 var(--spacing-md);
}

body.post-type-archive-product .woocommerce-products-header__title,
body.tax-product_cat .woocommerce-products-header__title,
body.tax-product_tag .woocommerce-products-header__title {
	margin: 0;
	font-size: 2rem;
	line-height: 1.2;
}

body.post-type-archive-product .woocommerce ul.products,
body.tax-product_cat .woocommerce ul.products,
body.tax-product_tag .woocommerce ul.products {
	margin-bottom: var(--spacing-md);
}

@media (max-width: 767px) {
	body.post-type-archive-product .woocommerce-wrapper > .container,
	body.tax-product_cat .woocommerce-wrapper > .container,
	body.tax-product_tag .woocommerce-wrapper > .container {
		padding-top: var(--spacing-sm);
		padding-bottom: var(--spacing-lg);
	}

	body.post-type-archive-product .woocommerce-products-header__title,
	body.tax-product_cat .woocommerce-products-header__title,
	body.tax-product_tag .woocommerce-products-header__title {
		font-size: 1.625rem;
	}
}

/* ============================================
   Product Card — Premium Style
   ============================================ */

.woocommerce .product-card {
	list-style: none;
	margin: 0;
	background: white;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
	transition: 
		transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
		box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.woocommerce .product-card:hover {
	transform: translateY(-6px);
	box-shadow: 
		0 16px 32px rgba(0, 0, 0, 0.08),
		0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

/* Image */
.product-card__image-wrap {
	position: relative;
	overflow: hidden;
	background: var(--color-bg-light);
}

.product-card__image {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card:hover .product-card__image {
	transform: scale(1.08);
}

/* Sale badge */
.product-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 12px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: var(--radius-full);
	z-index: 2;
}

.product-card__badge--sale {
	background: #e53e3e;
	color: white;
}

/* Content */
.product-card__content {
	padding: var(--spacing-sm) var(--spacing-sm) 0;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.product-card__title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-heading);
	margin: 0 0 6px;
	line-height: 1.35;
	transition: color 0.3s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.product-card:hover .product-card__title {
	color: var(--color-primary);
}

.product-card__excerpt {
	font-size: 0.8125rem;
	color: var(--color-text-light);
	line-height: 1.45;
	margin: 0 0 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.product-card__price {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--color-primary);
	margin-top: auto;
}

.product-card__price del {
	color: var(--color-text-muted);
	font-weight: normal;
	font-size: 0.875rem;
	margin-right: var(--spacing-xs);
}

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

/* Footer / CTA area */
.product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--spacing-sm);
	border-top: 1px solid #f0f0f0;
	margin-top: var(--spacing-sm);
}

.product-card__cta {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-primary);
	transition: color 0.3s ease;
}

.product-card:hover .product-card__cta {
	color: var(--color-primary-dark);
}

.product-card__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: var(--color-bg-light);
	border-radius: 50%;
	color: var(--color-primary);
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.product-card:hover .product-card__arrow {
	background: var(--color-primary);
	color: white;
	transform: translateX(3px);
}

.product-card__arrow svg {
	transition: transform 0.3s ease;
}

.product-card:hover .product-card__arrow svg {
	transform: translateX(2px);
}

/* Responsive grid fix */
@media (max-width: 767px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--spacing-sm);
	}
	
	.product-card__content {
		padding: var(--spacing-xs) var(--spacing-xs) 0;
	}
	
	.product-card__title {
		font-size: 0.875rem;
	}
	
	.product-card__price {
		font-size: 1rem;
	}
	
	.product-card__footer {
		padding: var(--spacing-xs);
	}
	
	.product-card__cta {
		font-size: 0.75rem;
	}
}

@media (max-width: 400px) {
	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}
}

/* Single Product */
.single-product-content {
	margin-top: var(--spacing-lg);
}

.single-product__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	gap: clamp(24px, 3vw, 40px);
	margin-bottom: var(--spacing-xl);
	align-items: start;
}

/* Tablet portrait & below: stack gallery above configurator (iPad Air, etc.) */
@media (max-width: 1024px) {
	.single-product-content {
		margin-top: 0;
	}

	.single-product__grid {
		grid-template-columns: 1fr;
		gap: 1rem;
		overflow: visible;
	}

	.woocommerce-wrapper .container {
		overflow: visible;
	}

	/* Break out of container padding — 100vw gets clipped by body overflow-x: hidden */
	.single-product__images {
		position: static;
		width: calc(100% + 2 * var(--spacing-sm));
		max-width: none;
		margin-left: calc(-1 * var(--spacing-sm));
		margin-right: calc(-1 * var(--spacing-sm));
	}

	@media (min-width: 768px) {
		.single-product__images {
			width: calc(100% + 2 * var(--spacing-md));
			margin-left: calc(-1 * var(--spacing-md));
			margin-right: calc(-1 * var(--spacing-md));
		}
	}

	.single-product-content div.images {
		width: 100% !important;
		max-width: none !important;
		float: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	.single-product__summary {
		padding: 0;
		width: 100%;
		min-height: 52vh;
	}

	.woocommerce .product_title {
		font-size: clamp(1.5rem, 4vw, 1.875rem);
		margin-bottom: var(--spacing-sm);
	}
}

@media (min-width: 1025px) {
	.single-product__images {
		position: sticky;
		top: 100px;
		align-self: start;
	}
}

.woocommerce-product-gallery {
	margin-bottom: var(--spacing-md);
}

.woocommerce-product-gallery__image {
	margin-bottom: 0;
}

/* Main image: crisp rendering when scaled down from large size */
.woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	border-radius: 0;
	display: block;
}

/* Thumbnails: desktop — small squares below main slider */
@media (min-width: 1025px) {
	.woocommerce-product-gallery .flex-control-thumbs,
	.single-product-content .woocommerce-product-gallery .flex-control-thumbs {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		margin-top: 20px !important;
		margin-bottom: 0;
		list-style: none;
		padding: 0;
	}

	.woocommerce-product-gallery .flex-control-thumbs li,
	.woocommerce div.product div.images .woocommerce-product-gallery .flex-control-thumbs li,
	.woocommerce div.product .woocommerce-product-gallery.images .flex-control-thumbs li {
		margin: 0 !important;
		width: 80px !important;
		height: 80px !important;
		min-width: 80px !important;
		min-height: 80px !important;
		max-width: 80px !important;
		max-height: 80px !important;
		float: none !important;
		flex-shrink: 0;
		aspect-ratio: 1;
		display: flex !important;
		align-items: center;
		justify-content: center;
		background: var(--color-bg-light);
		overflow: hidden;
		box-sizing: border-box;
	}

	.woocommerce-product-gallery .flex-control-thumbs li a {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 100% !important;
		height: 100% !important;
		max-width: 80px;
		max-height: 80px;
		box-sizing: border-box;
	}

	.woocommerce-product-gallery .flex-control-thumbs img {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: 100% !important;
		object-fit: cover !important;
		object-position: center;
	}
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: var(--spacing-sm);
	right: var(--spacing-sm);
	background-color: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 0;
	padding: var(--spacing-xs);
	cursor: pointer;
}

/* Tablet / mobile: compact 2-up horizontal gallery (LimePack style) */
@media (max-width: 1024px) {
	.single-product-content .woocommerce-product-gallery.levishop-gallery--compact,
	.single-product-content .woocommerce-product-gallery:has(.flex-control-thumbs li:nth-child(2)) {
		position: relative;
		width: 100% !important;
		max-width: none !important;
		margin-bottom: 0;
	}

	.single-product-content .woocommerce-product-gallery.levishop-gallery--compact .flex-viewport,
	.single-product-content .woocommerce-product-gallery:has(.flex-control-thumbs li:nth-child(2)) .flex-viewport,
	.single-product-content .woocommerce-product-gallery.levishop-gallery--compact .woocommerce-product-gallery__trigger,
	.single-product-content .woocommerce-product-gallery:has(.flex-control-thumbs li:nth-child(2)) .woocommerce-product-gallery__trigger {
		display: none !important;
	}

	.single-product-content .woocommerce-product-gallery.levishop-gallery--compact .flex-control-thumbs,
	.single-product-content .woocommerce-product-gallery:has(.flex-control-thumbs li:nth-child(2)) .flex-control-thumbs {
		display: flex !important;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 0 !important;
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		padding: 0 !important;
		scrollbar-width: none;
		list-style: none;
		box-sizing: border-box;
	}

	.single-product-content .woocommerce-product-gallery.levishop-gallery--compact .flex-control-thumbs::-webkit-scrollbar,
	.single-product-content .woocommerce-product-gallery:has(.flex-control-thumbs li:nth-child(2)) .flex-control-thumbs::-webkit-scrollbar {
		display: none;
	}

	.single-product-content .woocommerce-product-gallery.levishop-gallery--compact .flex-control-thumbs li,
	.single-product-content .woocommerce-product-gallery:has(.flex-control-thumbs li:nth-child(2)) .flex-control-thumbs li {
		scroll-snap-align: start;
		scroll-snap-stop: always;
		border: none;
		border-radius: 0;
		display: block !important;
		position: relative;
		padding: 0;
		margin: 0 !important;
		background: #fff;
		overflow: hidden;
		float: none !important;
		box-sizing: border-box;
		flex-shrink: 0;
	}

	.single-product-content .woocommerce-product-gallery.levishop-gallery--compact .flex-control-thumbs li a,
	.single-product-content .woocommerce-product-gallery:has(.flex-control-thumbs li:nth-child(2)) .flex-control-thumbs li a {
		position: absolute;
		inset: 0;
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		max-height: none !important;
		line-height: 0;
	}

	.single-product-content .woocommerce-product-gallery.levishop-gallery--compact .flex-control-thumbs li img,
	.single-product-content .woocommerce-product-gallery:has(.flex-control-thumbs li:nth-child(2)) .flex-control-thumbs li img {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		min-width: 100% !important;
		min-height: 100% !important;
		max-width: none !important;
		max-height: none !important;
		object-fit: cover !important;
		object-position: center;
		display: block !important;
		margin: 0 !important;
		padding: 0 !important;
		border: none !important;
	}

	.levishop-gallery-counter {
		position: absolute;
		bottom: 10px;
		right: 10px;
		padding: 4px 10px;
		background: rgba(255, 255, 255, 0.92);
		border-radius: var(--radius-full);
		font-size: 0.75rem;
		font-weight: 600;
		color: var(--color-heading);
		pointer-events: none;
		z-index: 2;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	}

	/* Single-image products: shorter main image */
	.single-product-content .woocommerce-product-gallery:not(.levishop-gallery--compact) .flex-viewport {
		max-height: min(40vh, 340px);
	}

	.single-product-content .woocommerce-product-gallery:not(.levishop-gallery--compact) .woocommerce-product-gallery__image img {
		object-fit: contain;
		width: 100%;
		max-height: min(40vh, 340px);
	}
}

.single-product__summary {
	padding: 0 0 var(--spacing-md) var(--spacing-sm);
	min-width: 0;
}

.woocommerce .product_title {
	font-size: 2rem;
	margin: 0 0 var(--spacing-sm);
	color: var(--color-heading);
	line-height: 1.2;
}

.woocommerce .price {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--color-primary);
	margin-bottom: var(--spacing-md);
}

.woocommerce .price del {
	color: var(--color-text-muted);
	font-weight: normal;
	font-size: 1rem;
	margin-right: var(--spacing-xs);
}

.woocommerce .woocommerce-product-details__short-description {
	margin-bottom: var(--spacing-md);
	color: var(--color-text-light);
	line-height: 1.7;
}

.woocommerce form.cart {
	margin-bottom: var(--spacing-lg);
}

.woocommerce .quantity {
	margin-right: var(--spacing-sm);
}

.woocommerce .quantity input[type="number"] {
	width: 80px;
	padding: 0.625rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	text-align: center;
}

.woocommerce .single_add_to_cart_button {
	padding: 0.875rem 2rem;
	background-color: var(--color-primary);
	color: white;
	border: none;
	border-radius: var(--radius-md);
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(122, 155, 122, 0.25);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.woocommerce .single_add_to_cart_button:hover {
	background-color: var(--color-primary-dark);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.woocommerce .single_add_to_cart_button:active {
	transform: scale(0.98);
}

.woocommerce .product_meta {
	display: none;
}

/* Product Tabs — light, unobtrusive (legacy; tabs removed on single product) */
.single-product-content .woocommerce-tabs,
.woocommerce div.product .woocommerce-tabs {
	margin-top: var(--spacing-xl);
}

.single-product-content .woocommerce-tabs ul.tabs.wc-tabs,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	border: none;
	border-bottom: 1px solid var(--color-border);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.single-product-content .woocommerce-tabs ul.tabs.wc-tabs::before,
.single-product-content .woocommerce-tabs ul.tabs.wc-tabs::after,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs::after {
	display: none;
}

.single-product-content .woocommerce-tabs ul.tabs.wc-tabs::-webkit-scrollbar,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs::-webkit-scrollbar {
	display: none;
}

.single-product-content .woocommerce-tabs ul.tabs.wc-tabs li,
.single-product-content .woocommerce-tabs ul.tabs.wc-tabs li.active,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li.active {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	border-radius: 0 !important;
	scroll-snap-align: start;
}

.single-product-content .woocommerce-tabs ul.tabs.wc-tabs li a,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li a {
	display: inline-block;
	padding: 0.875rem 1.25rem 0.75rem;
	color: var(--color-heading);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9375rem;
	line-height: 1.3;
	white-space: nowrap;
	border: none;
	border-radius: 0 !important;
	background: transparent;
	box-shadow: none;
	position: relative;
	transition: color var(--transition-base);
}

.single-product-content .woocommerce-tabs ul.tabs.wc-tabs li a::after,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 0;
	border: none;
	border-top: 3px solid transparent;
	background: none;
	border-radius: 0 !important;
}

.single-product-content .woocommerce-tabs ul.tabs.wc-tabs li a:hover,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li a:hover {
	color: var(--color-primary);
	background: transparent;
}

.single-product-content .woocommerce-tabs ul.tabs.wc-tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li.active a {
	color: var(--color-primary);
	background: transparent;
	box-shadow: none;
	border-radius: 0 !important;
}

.single-product-content .woocommerce-tabs ul.tabs.wc-tabs li.active a::after,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li.active a::after {
	border-top-color: var(--color-primary);
	border-radius: 0 !important;
}

.single-product-content .woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-tabs .panel {
	padding: 0.5rem 0 0;
	border: none;
	background: transparent;
}

.single-product-content .woocommerce-tabs .panel h2,
.woocommerce div.product .woocommerce-tabs .panel h2 {
	font-size: 1.25rem;
	margin-bottom: var(--spacing-sm);
}

.single-product-content .woocommerce-tabs ul.tabs.wc-tabs li:first-child a,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li:first-child a {
	padding-left: 0;
}

@media (min-width: 768px) {
	.single-product-content .woocommerce-tabs ul.tabs.wc-tabs li a,
	.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li a {
		padding: 1rem 1.5rem 0.875rem;
	}

	.single-product-content .woocommerce-tabs ul.tabs.wc-tabs li:first-child a,
	.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li:first-child a {
		padding-left: 0;
	}
}

@media (max-width: 767px) {
	.single-product-content .woocommerce-tabs ul.tabs.wc-tabs,
	.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs {
		margin-left: calc(-1 * var(--spacing-sm));
		margin-right: calc(-1 * var(--spacing-sm));
		padding: 0 var(--spacing-sm);
	}

	.single-product-content .woocommerce-tabs ul.tabs.wc-tabs li a,
	.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li a {
		padding: 0.875rem 0.875rem 0.75rem;
		font-size: 0.875rem;
	}

	.single-product-content .woocommerce-tabs ul.tabs.wc-tabs li:first-child a,
	.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li:first-child a {
		padding-left: 0;
	}
}

/* Product tab content — prose, lists, tables */
.woocommerce-tabs .panel,
#tab-description,
.levishop-product-content {
	color: var(--color-text);
	line-height: 1.7;
	font-size: 0.9375rem;
}

.woocommerce-tabs .panel > h2,
.woocommerce-tabs .panel > h3,
#tab-description > h2,
.levishop-product-content > h2,
#tab-description > h3,
.levishop-product-content > h3 {
	font-size: 1.25rem;
	color: var(--color-heading);
	margin: 0 0 0.875rem;
	padding: 0;
	border: none;
}

.woocommerce-tabs .panel > h3,
#tab-description > h3,
.levishop-product-content > h3 {
	font-size: 1.0625rem;
	margin-top: 1.5rem;
}

.woocommerce-tabs .panel p,
#tab-description p,
.levishop-product-content p {
	margin: 0 0 1rem;
	color: var(--color-text);
}

.woocommerce-tabs .panel ul,
.woocommerce-tabs .panel ol,
#tab-description ul,
.levishop-product-content ul,
#tab-description ol,
.levishop-product-content ol {
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.woocommerce-tabs .panel ul li,
#tab-description ul li,
.levishop-product-content ul li {
	position: relative;
	padding: 0.625rem 0 0.625rem 1.5rem;
	margin: 0;
	border-bottom: 1px solid rgba(224, 224, 224, 0.65);
	line-height: 1.55;
}

.woocommerce-tabs .panel ul li:last-child,
#tab-description ul li:last-child,
.levishop-product-content ul li:last-child {
	border-bottom: none;
}

.woocommerce-tabs .panel ul li::before,
#tab-description ul li::before,
.levishop-product-content ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--color-primary-light);
	border: 2px solid var(--color-primary);
	box-sizing: border-box;
	box-shadow: none;
}

.woocommerce-tabs .panel ol,
#tab-description ol,
.levishop-product-content ol {
	counter-reset: levishop-ol;
}

.woocommerce-tabs .panel ol li,
#tab-description ol li,
.levishop-product-content ol li {
	position: relative;
	padding: 0.625rem 0 0.625rem 1.5rem;
	margin: 0;
	counter-increment: levishop-ol;
	border-bottom: 1px solid rgba(224, 224, 224, 0.65);
	line-height: 1.55;
}

.woocommerce-tabs .panel ol li:last-child,
#tab-description ol li:last-child,
.levishop-product-content ol li:last-child {
	border-bottom: none;
}

.woocommerce-tabs .panel ol li::before,
#tab-description ol li::before,
.levishop-product-content ol li::before {
	content: counter(levishop-ol) '.';
	position: absolute;
	left: 0;
	top: 0.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-text-muted);
	background: none;
	border-radius: 0;
	width: auto;
	height: auto;
	display: block;
}

.woocommerce-tabs .panel strong,
#tab-description strong,
.levishop-product-content strong {
	color: var(--color-heading);
	font-weight: 600;
}

@keyframes levishop-content-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Cup specification tables */
.cup-table-wrap {
	margin: 1.75rem 0 2rem;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	border-radius: 0;
	border: none;
	background: transparent;
	box-shadow: var(--shadow-md);
	animation: levishop-content-in 0.55s ease both;
}

.cup-table {
	width: 100%;
	min-width: 680px;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 0.875rem;
	line-height: 1.45;
	border: 1px solid var(--color-border);
	background: #fff;
}

.cup-table thead th {
	padding: 0.875rem 0.75rem;
	font-weight: 600;
	font-size: 0.8125rem;
	text-align: center;
	vertical-align: middle;
	color: #fff;
	background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	white-space: nowrap;
}

.cup-table thead tr:first-child th {
	font-size: 0.9375rem;
	padding: 1rem 0.75rem;
}

.cup-table thead tr + tr th {
	background: rgba(93, 122, 93, 0.95);
	font-weight: 500;
	font-size: 0.8125rem;
}

.cup-table tbody th {
	padding: 0.75rem 1rem;
	font-weight: 600;
	text-align: left;
	vertical-align: middle;
	color: var(--color-heading);
	background: var(--color-bg-section);
	border: 1px solid var(--color-border);
	white-space: nowrap;
}

.cup-table tbody td {
	padding: 0.75rem 0.875rem;
	text-align: center;
	vertical-align: middle;
	color: var(--color-text);
	border: 1px solid var(--color-border);
	background: #fff;
	transition: background 0.15s ease;
}

.cup-table tbody tr:nth-child(even) td {
	background: var(--color-bg-light);
}

.cup-table tbody tr:hover td {
	background: rgba(122, 155, 122, 0.07);
}

.cup-table tbody tr:hover th {
	background: var(--color-beige);
}

.cup-table-wrap:has(.cup-notes) .cup-table,
.cup-table-wrap:has(.cup-note) .cup-table {
	border-bottom: none;
}

.cup-table-wrap:has(.cup-notes) .cup-table tbody tr:last-child th,
.cup-table-wrap:has(.cup-notes) .cup-table tbody tr:last-child td,
.cup-table-wrap:has(.cup-note) .cup-table tbody tr:last-child th,
.cup-table-wrap:has(.cup-note) .cup-table tbody tr:last-child td {
	border-bottom: none;
}

.cup-notes,
.cup-note {
	padding: 0.75rem 1rem;
	background: var(--color-bg-light);
	color: var(--color-text-muted);
	font-size: 0.8125rem;
	line-height: 1.55;
	border: 1px solid var(--color-border);
	border-top: none;
	border-bottom: none;
	border-radius: 0;
}

.cup-table-wrap + p,
.cup-table-wrap + em,
.cup-table-wrap ~ p small {
	display: block;
	margin-top: 0.75rem;
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	line-height: 1.5;
}

/* Generic tables in product description (fallback) */
.woocommerce-tabs .panel table:not(.cup-table),
#tab-description table:not(.cup-table),
.levishop-product-content table:not(.cup-table) {
	width: 100%;
	margin: 1.5rem 0;
	border-collapse: collapse;
	border-radius: 0;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	animation: levishop-content-in 0.55s ease both;
}

.woocommerce-tabs .panel table:not(.cup-table) th,
.woocommerce-tabs .panel table:not(.cup-table) td,
#tab-description table:not(.cup-table) th,
#tab-description table:not(.cup-table) td,
.levishop-product-content table:not(.cup-table) th,
.levishop-product-content table:not(.cup-table) td {
	padding: 0.75rem 1rem;
	border: 1px solid var(--color-border);
}

.woocommerce-tabs .panel table:not(.cup-table) thead th,
#tab-description table:not(.cup-table) thead th,
.levishop-product-content table:not(.cup-table) thead th {
	background: var(--color-primary);
	color: #fff;
	font-weight: 600;
}

@media (max-width: 767px) {
	.cup-table-wrap {
		margin-left: calc(-1 * var(--spacing-sm));
		margin-right: calc(-1 * var(--spacing-sm));
	}

	.cup-table,
	.cup-notes,
	.cup-note {
		border-left: none;
		border-right: none;
	}

	.cup-table {
		min-width: 600px;
		font-size: 0.8125rem;
	}

	.cup-table thead th,
	.cup-table tbody th,
	.cup-table tbody td {
		padding: 0.625rem 0.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cup-table-wrap,
	.woocommerce-tabs .panel table:not(.cup-table),
	#tab-description table:not(.cup-table) {
		animation: none;
	}
}

/* ============================================
   Cart Block Tweaks
   ============================================ */

/* Hide duplicate calculator attributes if any legacy entries remain */
.wc-block-cart__main .wc-block-components-product-details__cup-size,
.wc-block-cart__main .wc-block-components-product-details__wall,
.wc-block-cart__main .wc-block-components-product-details__material {
	display: none;
}

/* Hide quantity selector; editing is done via calculator/product page */
.wc-block-cart__main .wc-block-components-quantity-selector {
	display: none;
}

/* Optional: style custom edit links if added later */
.lpc-cart-edit-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	font-size: 0.8125rem;
	color: var(--color-text);
	text-decoration: none;
	margin-top: 4px;
}

.lpc-cart-edit-link:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

/* Shop Toolbar */
/* Hide result count and sorting on category/shop archives */
.woocommerce .woocommerce-result-count {
	display: none !important;
}

.woocommerce .woocommerce-ordering {
	display: none !important;
}

.woocommerce .woocommerce-ordering select {
	padding: 0.625rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	font-size: 0.875rem;
	background-color: white;
}

.woocommerce-result-count {
	margin-bottom: var(--spacing-md);
	color: var(--color-text-light);
	font-size: 0.875rem;
}

/* Buttons */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button {
	background-color: var(--color-primary);
	color: white;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius-md);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--transition-base);
	text-decoration: none;
	display: inline-block;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background-color: var(--color-primary-dark);
	color: white;
	transform: translateY(-1px);
	box-shadow: var(--shadow-sm);
}

.woocommerce .button.alt {
	background-color: var(--color-accent);
}

.woocommerce .button.alt:hover {
	background-color: var(--color-accent-dark);
}

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	padding: var(--spacing-sm) var(--spacing-md);
	margin-bottom: var(--spacing-md);
	border-radius: var(--radius-md);
	border-left: 4px solid;
}

.woocommerce-message {
	background-color: #e8f5e9;
	border-color: var(--color-primary);
	color: #2e7d32;
}

.woocommerce-info {
	background-color: #e3f2fd;
	border-color: #2196f3;
	color: #1565c0;
}

.woocommerce-error {
	background-color: #ffebee;
	border-color: #f44336;
	color: #c62828;
}

/* Related Products */
.woocommerce .related {
	margin-top: var(--spacing-2xl);
	padding-top: var(--spacing-xl);
	border-top: 1px solid var(--color-border);
}

.woocommerce .related h2 {
	margin-bottom: var(--spacing-lg);
}

/* Star Rating */
.woocommerce .star-rating {
	color: #ffc107;
	font-size: 1rem;
	overflow: hidden;
	position: relative;
	height: 1em;
	line-height: 1;
	width: 5.4em;
	font-family: star;
}

.woocommerce .star-rating::before {
	content: "\73\73\73\73\73";
	float: left;
	top: 0;
	left: 0;
	position: absolute;
}

.woocommerce .star-rating span {
	overflow: hidden;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	padding-top: 1.5em;
}

.woocommerce .star-rating span::before {
	content: "\53\53\53\53\53";
	top: 0;
	position: absolute;
	left: 0;
}

/* ============================================
   Subcategories Grid - Animated Cards
   ============================================ */

/* Keyframe Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes shimmer {
	0% {
		background-position: -200% 0;
	}
	100% {
		background-position: 200% 0;
	}
}

@keyframes pulse-glow {
	0%, 100% {
		box-shadow: 0 4px 15px rgba(122, 155, 122, 0.1);
	}
	50% {
		box-shadow: 0 8px 30px rgba(122, 155, 122, 0.25);
	}
}

/* Section Container */
.subcategories-section {
	margin-bottom: var(--spacing-xl);
	padding-bottom: var(--spacing-lg);
	border-bottom: 1px solid var(--color-border);
}

.subcategories-section__title {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--color-heading);
	margin-bottom: var(--spacing-md);
	position: relative;
	padding-left: var(--spacing-sm);
}

.subcategories-section__title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 70%;
	background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
	border-radius: 2px;
}

/* Grid Layout */
.subcategories-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--spacing-md);
}

@media (max-width: 1199px) {
	.subcategories-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 991px) {
	.subcategories-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 575px) {
	.subcategories-grid {
		grid-template-columns: 1fr;
		gap: var(--spacing-sm);
	}
}

/* Individual Card */
.subcategory-card {
	display: flex;
	flex-direction: column;
	background: white;
	border-radius: var(--radius-lg);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 20px rgba(0, 0, 0, 0.02);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	animation: fadeInUp 0.6s ease-out forwards;
	animation-delay: var(--animation-delay, 0s);
	opacity: 0;
	position: relative;
}

.subcategory-card::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: var(--radius-lg);
	padding: 2px;
	background: linear-gradient(135deg, transparent 40%, var(--color-primary) 100%);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.subcategory-card:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 12px 40px rgba(122, 155, 122, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.subcategory-card:hover::before {
	opacity: 1;
}

/* Image Wrapper */
.subcategory-card__image-wrapper {
	position: relative;
	overflow: hidden;
	background: var(--color-bg-light);
}

.subcategory-card__image {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.subcategory-card:hover .subcategory-card__image {
	transform: scale(1.1);
}

/* Overlay Effect */
.subcategory-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		transparent 0%,
		transparent 50%,
		rgba(0, 0, 0, 0.03) 100%
	);
	transition: background 0.4s ease;
}

.subcategory-card:hover .subcategory-card__overlay {
	background: linear-gradient(
		to bottom,
		rgba(122, 155, 122, 0.05) 0%,
		rgba(122, 155, 122, 0.1) 50%,
		rgba(122, 155, 122, 0.15) 100%
	);
}

/* Badge for subcategories count */
.subcategory-card__badge {
	position: absolute;
	top: var(--spacing-sm);
	right: var(--spacing-sm);
	display: flex;
	align-items: center;
	gap: 4px;
	background: white;
	color: var(--color-primary);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 6px 10px;
	border-radius: var(--radius-full);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.subcategory-card:hover .subcategory-card__badge {
	background: var(--color-primary);
	color: white;
	transform: scale(1.05);
}

.subcategory-card__badge svg {
	flex-shrink: 0;
}

/* Card Content */
.subcategory-card__content {
	padding: var(--spacing-sm);
	flex: 1;
	display: flex;
	flex-direction: column;
}

.subcategory-card__title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-heading);
	margin: 0;
	transition: color 0.3s ease;
	line-height: 1.3;
}

.subcategory-card:hover .subcategory-card__title {
	color: var(--color-primary);
}

.subcategory-card__description {
	font-size: 0.8125rem;
	color: var(--color-text-light);
	line-height: 1.4;
	margin: 4px 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Footer with count and arrow */
.subcategory-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: var(--spacing-xs);
	padding-top: var(--spacing-xs);
	border-top: 1px solid var(--color-border-light, #f0f0f0);
}

.subcategory-card__count {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	font-weight: 500;
	position: relative;
}

.subcategory-card__count::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	background: var(--color-primary);
	border-radius: 50%;
	margin-right: 8px;
	vertical-align: middle;
	animation: pulse-glow 2s ease-in-out infinite;
}

.subcategory-card__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: var(--color-bg-light);
	border-radius: 50%;
	color: var(--color-primary);
	transition: all 0.3s ease;
}

.subcategory-card:hover .subcategory-card__arrow {
	background: var(--color-primary);
	color: white;
	transform: translateX(4px);
}

.subcategory-card__arrow svg {
	transition: transform 0.3s ease;
}

.subcategory-card:hover .subcategory-card__arrow svg {
	transform: translateX(2px);
}

/* Shimmer loading effect (optional) */
.subcategory-card--loading .subcategory-card__image-wrapper {
	background: linear-gradient(
		90deg,
		#f0f0f0 25%,
		#e0e0e0 50%,
		#f0f0f0 75%
	);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite;
}

/* Alternative compact style for many subcategories */
@media (min-width: 992px) {
	.subcategories-grid--compact {
		grid-template-columns: repeat(5, 1fr);
	}
	
	.subcategories-grid--compact .subcategory-card__image-wrapper {
		aspect-ratio: 1;
	}
	
	.subcategories-grid--compact .subcategory-card__description {
		display: none;
	}
}

/* ============================================
   Single Product — Info block, inline content, reviews
   ============================================ */

.single-product__summary .levishop-product-info {
	margin-top: 0.875rem;
	padding-top: 0.875rem;
	border-top: 1px solid #e8eaed;
}

.single-product__summary .lpc-add-to-cart {
	margin-bottom: 0;
}

.levishop-product-info {
	--lpi-ink: #1e293b;
	--lpi-muted: #64748b;
	--lpi-line: #e8ecf1;
	--lpi-surface: #f8fafc;
	--lpi-blue: #6b8cae;
	--lpi-blue-soft: rgba(107, 140, 174, 0.12);
	--lpi-bronze: #ae8c6b;
	--lpi-bronze-soft: rgba(174, 140, 107, 0.1);
	--lpi-star: #f59e0b;
	--lpi-star-soft: #fde68a;
	--lpi-star-empty: #dbe1ea;
}

.levishop-product-info__sheet {
	background: var(--lpi-surface);
	border: 1px solid var(--lpi-line);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.levishop-product-info__meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.levishop-product-info__cell {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	min-width: 0;
	background: #fff;
}

.levishop-product-info__cell--sku {
	border-right: 1px solid var(--lpi-line);
}

.levishop-product-info__cell--category {
	background: linear-gradient(180deg, #fff 0%, #fcfaf8 100%);
}

.levishop-product-info__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	color: var(--lpi-blue);
	background: var(--lpi-blue-soft);
}

.levishop-product-info__cell--category .levishop-product-info__icon {
	color: var(--lpi-bronze);
	background: var(--lpi-bronze-soft);
}

.levishop-product-info__cell-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.levishop-product-info__label {
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--lpi-muted);
}

.levishop-product-info__value {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--lpi-ink);
	line-height: 1.35;
	word-break: break-word;
	font-variant-numeric: tabular-nums;
}

.levishop-product-info__value--link a {
	color: var(--lpi-bronze);
	text-decoration: none;
	font-weight: 700;
	transition: color 0.15s ease;
}

.levishop-product-info__value--link a:hover {
	color: #8f704f;
}

.levishop-product-info__reviews {
	padding: 12px 16px 14px;
	background: #fff;
	border-top: 1px solid var(--lpi-line);
}

.levishop-product-info__reviews-top {
	margin-bottom: 10px;
}

.levishop-product-info__reviews-label {
	margin: 0;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--lpi-muted);
}

.levishop-product-info__reviews-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.levishop-product-info__reviews-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px 14px;
}

.levishop-product-info__reviews-foot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed var(--lpi-line);
	text-align: center;
	font-size: 0.8125rem;
	color: var(--lpi-muted);
	line-height: 1.35;
}

.levishop-product-info__reviews-foot .levishop-rating-summary__value {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--lpi-ink);
}

.levishop-product-info__reviews-foot .levishop-rating-summary__sep {
	color: #cbd5e1;
}

.levishop-product-info__reviews-foot .levishop-rating-summary__count,
.levishop-product-info__reviews-foot .levishop-rating-summary__empty {
	font-size: inherit;
	color: inherit;
}

.levishop-rating-summary__count-link {
	padding: 0;
	border: none;
	background: none;
	font: inherit;
	color: var(--levishop-blue, #6b8cae);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	transition: color 0.15s ease;
}

.levishop-rating-summary__count-link:hover,
.levishop-rating-summary__count-link:focus-visible {
	color: #557494;
}

.levishop-review-stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
}

.levishop-review-stars__star {
	color: #d1d5db;
	font-size: 0.95rem;
	line-height: 1;
}

.levishop-review-stars__star.is-filled {
	color: #f59e0b;
}

.levishop-review-list__author-wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.levishop-review-list__author {
	font-size: 0.9375rem;
	color: var(--lpi-ink, #1e293b);
}

.levishop-review-list__date {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--lpi-muted, #64748b);
}

.levishop-review-modal__form > .levishop-review-modal__section-title {
	margin-top: 0;
}

.levishop-review-modal__section + .levishop-review-modal__form > .levishop-review-modal__section-title {
	margin-top: 0.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--lpi-line, #e8ecf1);
}

/* Review thank-you toast */
.levishop-toast-root {
	position: fixed;
	top: 72px;
	right: 16px;
	z-index: 100010;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
	max-width: min(380px, calc(100vw - 32px));
}

.levishop-toast {
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	color: #fff;
	background: rgba(22, 163, 74, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: 0 8px 28px rgba(22, 163, 74, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
	opacity: 0;
	transform: translateX(16px);
	transition: opacity 0.32s ease, transform 0.32s ease;
}

.levishop-toast.is-visible {
	opacity: 1;
	transform: translateX(0);
}

.levishop-toast.is-hiding {
	opacity: 0;
	transform: translateY(-8px);
}

@media (max-width: 768px) {
	.levishop-toast-root {
		top: 64px;
		right: 12px;
		left: 12px;
		max-width: none;
	}
}

.levishop-rating-summary {
	display: flex;
	align-items: center;
	min-width: 0;
	flex: 0 1 auto;
}

.levishop-rating-summary__stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
}

.levishop-rating-summary__star {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
	pointer-events: auto;
	color: var(--lpi-star-empty);
	transition:
		color 0.12s ease,
		transform 0.15s cubic-bezier(0.34, 1.25, 0.64, 1),
		background 0.12s ease;
}

.levishop-rating-summary__star svg {
	display: block;
	width: 20px;
	height: 20px;
	pointer-events: none;
}

.levishop-rating-summary.is-previewing .levishop-rating-summary__star.is-lit {
	color: var(--lpi-star);
}

.levishop-rating-summary__star.is-lit {
	color: var(--lpi-star);
}

.levishop-rating-summary__star.is-hovered {
	transform: scale(1.15);
	background: rgba(245, 158, 11, 0.14);
	filter: drop-shadow(0 2px 5px rgba(245, 158, 11, 0.35));
}

.levishop-rating-summary__star.is-pressed {
	transform: scale(0.9);
}

.levishop-rating-summary__star.is-selected {
	animation: levishop-star-pop 0.35s ease;
}

@keyframes levishop-star-pop {
	0% { transform: scale(1); }
	45% { transform: scale(1.2); }
	100% { transform: scale(1); }
}

.levishop-rating-summary--pulse .levishop-rating-summary__stars {
	animation: levishop-stars-pulse 0.4s ease;
}

@keyframes levishop-stars-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.03); }
}

.levishop-rating-summary__text {
	display: none;
}

.levishop-rating-summary__value {
	font-size: 1rem;
	font-weight: 700;
	color: var(--lpi-ink);
	line-height: 1;
}

.levishop-rating-summary__sep {
	color: #cbd5e1;
	font-weight: 400;
}

.levishop-rating-summary__count,
.levishop-rating-summary__empty {
	font-size: 0.8125rem;
	color: var(--lpi-muted);
	line-height: 1.35;
}

.levishop-product-info__review-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	padding: 6px 8px 6px 6px;
	border: none;
	border-radius: 10px;
	background: transparent;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--lpi-blue);
	transition:
		color 0.15s ease,
		transform 0.15s ease,
		background 0.15s ease;
}

.levishop-product-info__review-cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: var(--lpi-blue-soft);
	color: var(--lpi-blue);
	transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.levishop-product-info__review-cta-arrow {
	display: inline-flex;
	color: var(--lpi-blue);
	opacity: 0.65;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.levishop-product-info__review-cta:hover,
.levishop-product-info__review-cta.is-hover {
	color: #557494;
	background: rgba(107, 140, 174, 0.08);
}

.levishop-product-info__review-cta:hover .levishop-product-info__review-cta-icon,
.levishop-product-info__review-cta.is-hover .levishop-product-info__review-cta-icon {
	background: rgba(107, 140, 174, 0.22);
	transform: scale(1.06);
	color: #557494;
}

.levishop-product-info__review-cta:hover .levishop-product-info__review-cta-arrow,
.levishop-product-info__review-cta.is-hover .levishop-product-info__review-cta-arrow {
	opacity: 1;
	transform: translateX(3px);
}

.levishop-product-info__review-cta:active,
.levishop-product-info__review-cta.is-pressed,
.levishop-product-info__review-cta.is-clicked {
	transform: scale(0.97);
	background: rgba(107, 140, 174, 0.14);
}

.levishop-product-content {
	margin-top: var(--spacing-xl);
	padding-top: var(--spacing-lg);
	border-top: 1px solid var(--color-border);
	animation: levishop-content-in 0.55s ease both;
}

.levishop-product-content > h2:first-child,
.levishop-product-content > h3:first-child {
	margin-top: 0;
}

/* Review modal */
body.levishop-review-modal-open {
	overflow: hidden;
}

.levishop-review-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}

.levishop-review-modal[aria-hidden="false"] {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.levishop-review-modal[aria-hidden="false"] .levishop-review-modal__panel {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.levishop-review-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.62);
	backdrop-filter: blur(6px);
}

.levishop-review-modal__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(100%, 520px);
	max-height: min(94vh, 860px);
	overflow: hidden;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
	transform: translateY(12px) scale(0.97);
	opacity: 0;
	transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.22s ease;
}

@media (min-width: 768px) {
	.levishop-review-modal__panel {
		width: min(100%, 700px);
	}
}

@media (min-width: 1024px) {
	.levishop-review-modal__panel {
		width: min(100%, 760px);
		max-height: min(96vh, 920px);
	}
}

.levishop-review-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.25rem 1.125rem;
	background: linear-gradient(135deg, rgba(107, 140, 174, 0.12) 0%, rgba(174, 140, 107, 0.08) 100%);
	border-bottom: 1px solid rgba(107, 140, 174, 0.14);
	flex-shrink: 0;
}

.levishop-review-modal__header-text {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
}

.levishop-review-modal__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
	color: #fff;
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.levishop-review-modal__title {
	margin: 0 0 4px;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--color-heading);
	line-height: 1.25;
}

.levishop-review-modal__subtitle {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--lpi-muted, #64748b);
}

.levishop-review-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.75);
	color: #475569;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.levishop-review-modal__close:hover {
	background: #fff;
	transform: scale(1.05);
}

.levishop-review-modal__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(107, 140, 174, 0.45) transparent;
}

.levishop-review-modal__scroll::-webkit-scrollbar {
	width: 6px;
}

.levishop-review-modal__scroll::-webkit-scrollbar-track {
	background: transparent;
	margin: 8px 0;
}

.levishop-review-modal__scroll::-webkit-scrollbar-thumb {
	background: rgba(107, 140, 174, 0.35);
	border-radius: 999px;
}

.levishop-review-modal__scroll::-webkit-scrollbar-thumb:hover {
	background: rgba(107, 140, 174, 0.55);
}

.levishop-review-modal__body {
	padding: 1.25rem 1.375rem 1.5rem;
}

.levishop-review-modal__section-title {
	margin: 0 0 0.75rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lpi-muted, #64748b);
}

.levishop-review-modal__form .comment-reply-title,
.levishop-review-modal__form-title {
	display: none;
}

.levishop-review-list {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0 0 1rem;
	border-bottom: 1px solid var(--lpi-line, #e8ecf1);
}

.levishop-review-list__item + .levishop-review-list__item {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(229, 231, 235, 0.9);
}

.levishop-review-list__meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.levishop-review-list__text {
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--color-text);
}

.levishop-review-modal .comment-form {
	margin: 0;
}

.levishop-review-modal .comment-form > p,
.levishop-review-modal .comment-form .comment-form-rating,
.levishop-review-modal .comment-form .comment-form-comment,
.levishop-review-modal .comment-form .comment-form-author,
.levishop-review-modal .comment-form .comment-form-email,
.levishop-review-modal .comment-form .comment-form-cookies-consent,
.levishop-review-modal .comment-form .form-submit {
	margin: 0 0 1rem;
}

.levishop-review-modal .comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--lpi-ink, #1e293b);
}

.levishop-review-modal .comment-form .required {
	color: #ef4444;
}

.levishop-review-modal .comment-notes,
.levishop-review-modal .comment-form .comment-notes {
	margin: 0 0 1rem;
	padding: 10px 12px;
	font-size: 0.75rem;
	line-height: 1.45;
	color: var(--lpi-muted, #64748b);
	background: var(--lpi-surface, #f8fafc);
	border-radius: 10px;
	border: 1px solid var(--lpi-line, #e8ecf1);
}

.levishop-review-modal .comment-form-rating select {
	width: 100%;
	max-width: 100%;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--lpi-line, #e8ecf1);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	box-sizing: border-box;
}

.levishop-review-modal .comment-form-comment textarea,
.levishop-review-modal .comment-form-author input,
.levishop-review-modal .comment-form-email input {
	width: 100%;
	padding: 0.75rem 0.875rem;
	border: 1px solid var(--lpi-line, #e8ecf1);
	border-radius: 10px;
	font: inherit;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}

.levishop-review-modal .comment-form-comment textarea {
	min-height: 120px;
	resize: vertical;
}

@media (min-width: 768px) {
	.levishop-review-modal__body {
		padding: 1.375rem 1.75rem 1.625rem;
	}

	.levishop-review-modal .comment-form {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 1rem;
	}

	.levishop-review-modal .comment-form > p,
	.levishop-review-modal .comment-form .comment-form-rating,
	.levishop-review-modal .comment-form .comment-form-comment,
	.levishop-review-modal .comment-form .comment-form-cookies-consent,
	.levishop-review-modal .comment-form .form-submit,
	.levishop-review-modal .comment-form .comment-notes {
		grid-column: 1 / -1;
	}

	.levishop-review-modal .comment-form-comment textarea {
		min-height: 96px;
	}

	.levishop-review-modal .comment-form > p,
	.levishop-review-modal .comment-form .comment-form-rating,
	.levishop-review-modal .comment-form .comment-form-comment,
	.levishop-review-modal .comment-form .comment-form-author,
	.levishop-review-modal .comment-form .comment-form-email,
	.levishop-review-modal .comment-form .comment-form-cookies-consent {
		margin-bottom: 0.875rem;
	}
}

.levishop-review-modal .comment-form-comment textarea:focus,
.levishop-review-modal .comment-form-author input:focus,
.levishop-review-modal .comment-form-email input:focus,
.levishop-review-modal .comment-form-rating select:focus {
	outline: none;
	border-color: var(--levishop-blue, #6b8cae);
	box-shadow: 0 0 0 3px rgba(107, 140, 174, 0.15);
}

.levishop-review-modal .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.75rem;
	line-height: 1.45;
	color: var(--lpi-muted, #64748b);
}

.levishop-review-modal .comment-form-cookies-consent input {
	margin-top: 3px;
	flex-shrink: 0;
}

.levishop-review-modal .form-submit {
	margin-bottom: 0 !important;
	position: sticky;
	bottom: 0;
	z-index: 2;
	padding-top: 0.75rem;
	background: linear-gradient(to top, #fff 78%, rgba(255, 255, 255, 0));
}

.levishop-review-modal .form-submit input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.875rem 1.25rem;
	background: linear-gradient(135deg, var(--levishop-blue, #6b8cae) 0%, #557494 100%);
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(85, 116, 148, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.levishop-review-modal .form-submit input[type="submit"]:hover {
	filter: brightness(1.04);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(85, 116, 148, 0.34);
}

.levishop-review-modal .form-submit input[type="submit"]:active {
	transform: scale(0.98);
}

.levishop-review-modal .stars a {
	color: #f59e0b;
}

.levishop-review-modal #respond {
	margin: 0;
	padding: 0;
	border: none;
}

@media (max-width: 767px) {
	.levishop-product-info__meta {
		grid-template-columns: 1fr;
	}

	.levishop-product-info__cell--sku {
		border-right: none;
		border-bottom: 1px solid var(--lpi-line, #e8ecf1);
	}

	.levishop-product-info__reviews-main {
		flex-direction: column;
		align-items: stretch;
	}

	.levishop-rating-summary {
		justify-content: center;
	}

	.levishop-product-info__review-cta {
		width: 100%;
		justify-content: center;
	}

	.levishop-review-modal {
		padding: 0.75rem;
	}

	.levishop-review-modal__panel {
		max-height: 92vh;
		border-radius: 16px;
	}
}
