/**
 * WooCommerce Styles
 * Product card and catalog styles for Binergy theme
 *
 * @package Binergy
 * @version 1.5.0
 */

/* ==========================================================================
   Product Page
   ========================================================================== */

.product-page {
	padding: 3.2rem 0 10rem;
	overflow: hidden;
}

.product-page__inner {
	padding: 0 6rem;
}

/* ==========================================================================
   Product Card
   ========================================================================== */
 
.product-card {
	display: flex;
	flex-direction: row;
	gap: 4.8rem;
	align-items: flex-start;
	justify-content: flex-start;
}

/* ==========================================================================
   Product Gallery (frame-13)
   ========================================================================== */

.product-card__gallery {
	flex: 1;
	min-width: 0;
}

.product-card__gallery-slider {
	background: var(--color-bg-light, #f2f2f2);
	border-radius: 1.3rem;
	align-self: stretch;
	position: relative;
	overflow: hidden;
}

.product-card__gallery-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.product-card__gallery-image {
	max-width: 100%;
	max-height: 100%;
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* Gallery Pagination (dots) */
.product-card__gallery-pagination {
	padding: 1.6rem 6rem;
	display: flex;
	flex-direction: row;
	gap: 0.8rem;
	align-items: center;
	justify-content: center;
	align-self: stretch;
}

.product-card__gallery-pagination .swiper-pagination-bullet,
.product-card__gallery-dot {
	background: var(--color-black, #202020);
	border-radius: 50%;
	width: 1rem;
	height: 1rem;
	opacity: 0.1;
	cursor: pointer;
	transition: opacity var(--transition-base, 0.3s ease);
}

.product-card__gallery-pagination .swiper-pagination-bullet-active,
.product-card__gallery-dot--active {
	opacity: 1;
}

/* ==========================================================================
   Product Content (frame-2087328931)
   ========================================================================== */

.product-card__content {
	background: var(--color-white, #ffffff);
	padding: 1.2rem 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 4rem;
	align-items: flex-start;
	justify-content: flex-start;
	flex: 1;
	min-width: 0;
}

.product-card__main {
	display: flex;
	flex-direction: column;
	gap: 3.2rem;
	align-items: flex-start;
	justify-content: flex-start;
	align-self: stretch;
}

/* ==========================================================================
   Product Header
   ========================================================================== */

.product-card__header {
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
	align-items: flex-start;
	justify-content: flex-start;
	align-self: stretch;
}

/* Category Badge (frame-2087328916) */
.product-card__category {
	background: var(--color-red, #e5403e);
	border-radius: 0.4rem;
	padding: 0.4rem 0.6rem;
	display: inline-flex;
	flex-direction: row;
	gap: 1rem;
	align-items: center;
	justify-content: center;
}

.product-card__category--red {
	background: var(--color-red, #e5403e);
}

.product-card__category--orange {
	background: var(--color-orange, #f28b14);
}

.product-card__category--green {
	background: var(--color-green, #008556);
}

.product-card__category-name {
	color: var(--color-white, #ffffff);
	text-align: left;
	font-family: var(--font-inter);
	font-size: 1.2rem;
	line-height: 140%;
	letter-spacing: 0.02em;
	font-weight: 700;
	font-style: italic;
	text-transform: uppercase;
	max-height: 1.6rem;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

/* Product Title (binergy-d-3) */
.product-card__title {
	color: var(--color-black, #000000);
	text-align: left;
	font-family: var(--font-actay);
	font-size: 4rem;
	line-height: 110%;
	font-weight: 700;
	margin: 0;
	align-self: stretch;
	min-height: 4.8rem;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

/* Product Description (binergy) */
.product-card__description {
	color: var(--color-black, #000000);
	text-align: left;
	font-family: var(--font-inter);
	font-size: 1.6rem;
	line-height: 135%;
	font-weight: 400;
	align-self: stretch;
}

.product-card__description p {
	margin: 0 0 1em;
}

.product-card__description p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Section Title
   ========================================================================== */

.product-card__section-title {
	color: var(--color-black, #0a0a0a);
	text-align: left;
	font-family: var(--font-actay);
	font-size: 2rem;
	line-height: 140%;
	font-weight: 700;
	margin: 0;
	width: 100%;
	max-width: 63.6rem;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

/* ==========================================================================
   Benefits Section (frame-9 - Польза для организма)
   ========================================================================== */

.product-card__benefits {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	align-items: flex-start;
	justify-content: flex-start;
	align-self: stretch;
}

.product-card__benefits-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.4rem;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	width: 100%;
}

.product-card__benefit-item {
	display: grid;
	grid-template-columns: 4.8rem 1fr;
	gap: 0.8rem;
	align-items: center;
	justify-content: flex-start;
}

.product-card__benefit-icon {
	flex-shrink: 0; 
	max-width: 4.8rem;
	width: 100%;
	flex: 0 0 4.8rem;
	max-width: 16rem;
	object-fit: contain;
}

.product-card__benefit-name {
	color: var(--color-black, #0a0a0a);
	font-family: var(--font-inter);
	font-size: 1.4rem;
	line-height: 140%;
	font-weight: 500;
	text-transform: uppercase;
	width: min-content;
    white-space: break-spaces;
}

/* ==========================================================================
   Attributes Section (frame-93)
   ========================================================================== */

.product-card__attributes {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	align-items: flex-start;
	justify-content: flex-start;
	align-self: stretch;
}

.product-card__attribute {
	display: flex;
	flex-direction: row;
	gap: 2.4rem;
	align-items: flex-start;
	justify-content: flex-start;
	align-self: stretch;
}

.product-card__attribute-label {
	color: var(--color-black-400, #999999);
	text-align: left;
	font-family: var(--font-inter);
	font-size: 1.4rem;
	line-height: 140%;
	font-weight: 400;
	width: 15rem;
	flex-shrink: 0;
	min-height: 2.4rem;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.product-card__attribute-content {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	align-items: flex-start;
	justify-content: center;
	flex: 1;
}

.product-card__attribute-value {
	color: var(--color-black, #0a0a0a);
	text-align: left;
	font-family: var(--font-inter);
	font-size: 1.4rem;
	line-height: 140%;
	font-weight: 500;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.product-card__attribute-description {
	color: var(--color-black, #0a0a0a);
	text-align: left;
	font-family: var(--font-inter);
	font-size: 1.4rem;
	line-height: 140%;
	font-weight: 400;
	align-self: stretch;
}

.product-card__attribute-separator {
	margin-top: -0.1rem;
	border-top: 0.1rem solid var(--color-black-100, #e6e6e6);
	align-self: stretch;
	height: 0;
}

/* ==========================================================================
   Quality Badges Section (div5)
   ========================================================================== */

.product-card__badges {
	display: flex;
	flex-direction: row;
	gap: 0.4rem;
	align-items: flex-start;
	justify-content: flex-start;
	flex-wrap: wrap;
	align-content: flex-start;
	align-self: stretch;
}

.product-card__badge {
	background: var(--color-bg-light, #f2f2f2);
	border-radius: 1.3rem;
	flex-shrink: 0;
	min-width: 4.8rem;
	height: 4.8rem;
	position: relative;
	overflow: visible;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer; 
	transition: opacity var(--transition-base, 0.3s ease);
}

.product-card__badges--has-active .product-card__badge {
	opacity: 0.5!important; 
}

.product-card__badges--has-active .product-card__badge.is-active {
	opacity: 1!important;
}

.product-card__badge.is-active {
	z-index: 2;
}

.product-card__badge-image {
	max-width: fit-content;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.product-card__badge-image {
	min-width: 100%;
	width: auto;
	height: 4.8rem!important;
}

.product-card__badge-note {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 0.8rem);
	transform: translateX(-50%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	white-space: nowrap;
	z-index: 3;
	transition: opacity var(--transition-base, 0.3s ease), visibility var(--transition-base, 0.3s ease);
}

.product-card__badge.is-active .product-card__badge-note {
	opacity: 1;
	visibility: visible;
}

.product-card__badge .note-parent {
	background: var(--black, #0a0a0a);
	border-radius: 6px;
	padding: 4px 8px 4px 8px;
	display: flex;
	flex-direction: row;
	gap: 10px;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	position: absolute;
}

.product-card__badge .note-child {
	color: var(--white, #ffffff);
	text-align: left;
	font-family: "Inter-Regular", sans-serif;
	font-size: 13px;
	line-height: 140%;
	font-weight: 400;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

/* ==========================================================================
   Documents Section (frame-2087328932)
   ========================================================================== */

.product-card__documents {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	align-items: flex-start;
	justify-content: flex-start;
	align-self: stretch;
}

.product-card__document {
	background: var(--color-bg-light, #f2f2f2);
	border-radius: 1.2rem;
	padding: 1.2rem 1.2rem 1.2rem 1.6rem;
	display: flex;
	flex-direction: row;
	gap: 0.8rem;
	align-items: center;
	justify-content: space-between;
	align-self: stretch;
	text-decoration: none;
	transition: background-color var(--transition-base, 0.3s ease);
}

.product-card__document:hover {
	background: var(--color-black-100, #e6e6e6);
}

.product-card__document-title {
	color: var(--color-black, #0a0a0a);
	text-align: left;
	font-family: var(--font-inter);
	font-size: 1.4rem;
	line-height: 140%;
	font-weight: 500;
	flex: 1;
	min-height: 2.4rem;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.product-card__document-icon {
	flex-shrink: 0;
	width: 2.4rem;
	height: 2.4rem;
	color: var(--color-black, #0a0a0a);
}

/* ==========================================================================
   Marketplaces Section (frame-9 - Доступен на маркетплейсах)
   ========================================================================== */

.product-card__marketplaces {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	align-items: flex-start;
	justify-content: flex-start;
	align-self: stretch;
}

.product-card__marketplace-list {
	display: flex;
	flex-direction: row;
	gap: 0.4rem;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
}

.product-card__marketplace {
	background: var(--color-black, #000000);
	border-radius: 1.2rem;
	padding: 1.6rem 1.6rem 1.6rem 2rem;
	display: flex;
	flex-direction: row;
	gap: 1.4rem;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: opacity var(--transition-base, 0.3s ease);
}

.product-card__marketplace:hover {
	opacity: 0.85;
}

.product-card__marketplace-name {
	color: var(--color-white, #ffffff);
	text-align: left;
	font-family: var(--font-inter);
	font-size: 1.6rem;
	line-height: 130%;
	letter-spacing: 0.02em;
	font-weight: 600;
	text-transform: uppercase;
	min-height: 2.4rem;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.product-card__marketplace-icon {
	border-radius: 2.4rem;
	display: flex;
	flex-direction: row;
	gap: 0.2rem;
	align-items: center;
	justify-content: flex-start;
	height: 3.2rem;
    width: 3.2rem;
	
}

.product-card__marketplace--wildberries .product-card__marketplace-icon-inner {
	background: linear-gradient(30.96deg, rgba(111, 1, 251, 1) 0%, rgba(255, 73, 215, 1) 100%);
	border-radius: 4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	height: 100%;
	width: 100%;
}

.product-card__marketplace-icon svg {
	width: 100%;
	height: 100%;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1089px) {
	.product-page {
		padding: 0 0 var(--spacing-3xl);
	}

	.product-page__inner {
		padding: 0;
	}

	.product-card {
		gap: var(--spacing-xl);
		flex-direction: column;
	}

	.product-card__gallery {
		margin: 0 -1.6rem;
		max-width: calc(100% + 3.2rem);
	}

	.product-card__gallery-slider {
		height: 37.5rem;
		border-radius: 0;
	}

	.product-card__gallery-pagination {
		padding: 1.2rem 2rem;
	}

	.product-card__content {
		padding: 0;
		gap: var(--spacing-3xl);
	}

	.product-card__main {
		gap: var(--spacing-3xl);
	}

	.product-card__header {
		gap: var(--spacing-lg);
	}

	.product-card__title {
		font-size: var(--font-size-2xl);
		min-height: auto;
	}

	.product-card__description {
		font-size: var(--font-size-sm);
	}

	.product-card__section-title {
		font-size: var(--font-size-xl);
	}

	.product-card__benefits {
		gap: var(--spacing-lg);
	}

	.product-card__benefits-list {
		gap: var(--spacing-sm) var(--spacing-xl);
		grid-template-columns: repeat(2, 1fr);
	}

	.product-card__benefit-icon {
		height: 3.6rem;
		max-width: 12rem;
	}

	.product-card__attributes {
		gap: var(--spacing-md);
	}

	.product-card__attribute {
		flex-direction: column;
		gap: 0.4rem;
	}

	.product-card__attribute-label {
		width: 100%;
	}

	.product-card__badges {
		gap: 0.8rem;
	}

	.product-card__badge {
		height: 4.8rem;
		border-radius: 1rem;
	}

	.product-card__badge-image {
		max-width: 4.8rem;
		max-height: fit-content;
	}

	.product-card__document {
		padding: 1rem 1.2rem 1rem 1.4rem;
		border-radius: var(--radius-md);
	}

	.product-card__marketplaces {
		gap: var(--spacing-xl);
	}

	.product-card__document-title {
		font-size: var(--font-size-sm);
		line-height: var(--line-height-normal);
	}

	.product-card__marketplace-list {
		flex-direction: column;
		width: 100%;
	}

	.product-card__marketplace {
		padding: var(--spacing-lg) var(--spacing-xl);
		border-radius: var(--radius-md);
		width: 100%;
        justify-content: space-between;
	}

	.product-card__marketplace-name {
		font-size: 1.4rem;
	}

}

/* ==========================================================================
   Animation Initial States
   ========================================================================== */

/* Section animation initial state */
.product-page[data-animate="section"] {
	opacity: 0;
	transform: translateY(6rem);
}

/* Fade animation initial state */
.product-card__gallery[data-animate="fade"],
.product-card__header[data-animate="fade"],
.product-card__benefits[data-animate="fade"],
.product-card__attributes[data-animate="fade"],
.product-card__marketplaces[data-animate="fade"] {
	opacity: 0;
}

/* Stagger animation initial state for child items */
[data-animate="stagger"] [data-animate-item] {
	opacity: 0;
	transform: translateY(2rem);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	.product-card__badge,
	.product-card__badge-note {
		transition: none;
	}

	.product-page[data-animate="section"],
	.product-card__gallery[data-animate="fade"],
	.product-card__header[data-animate="fade"],
	.product-card__benefits[data-animate="fade"],
	.product-card__attributes[data-animate="fade"],
	.product-card__marketplaces[data-animate="fade"],
	[data-animate="stagger"] [data-animate-item] {
		opacity: 1;
		transform: none;
	}
}
