/**
 * Product Layout Styles
 * Matching the exact design specifications
 */

/* Page Layout - 100vh with footer at bottom */
.page-wrapper {
	min-height: calc(100vh - 200px);
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1;
}

/* Products Grid - Fixed 4 columns as per design */
.products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0; /* Remove gap for colliding borders */
	margin: 0;
	padding: 0;
	margin: 0 auto;
}

.product-item {
	width: 100%;
	margin: 0;
	padding: 0;
	/* Only right and bottom borders to avoid doubling */
	border-right: 1px solid var(--osnovy-border-color);
	border-bottom: 1px solid var(--osnovy-border-color);
	aspect-ratio: 4/5;
	overflow: hidden;
}


/* Regular Product Card */
.product-card {
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	position: relative;
	width: 100%;
	height: 100%;
}

/* Top Section - Image and Labels */
.product-card .card-top {
	display: flex;
	flex-direction: column;
	position: relative;
	width: 100%;
	aspect-ratio: 4/5;
	height: calc(100% - 91px);
}

/* Image Wrapper */
.product-card .card-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.product-card .card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Hover Image */
.product-card .card-hover-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.product-card .card-hover-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-card:hover .card-hover-image {
	opacity: 1;
}

/* Video styles - now part of main card-image */
.product-card .card-image iframe,
.product-card .card-image video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: none;
}

/* Labels */
.product-card .card-labels {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 100%;
	flex-wrap: wrap;
	padding: 12px 20px;
	column-gap: 16px;
	row-gap: 4px;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
}

.product-card .card-label {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	font-size: 14px;
	color: var(--osnovy-black);
}

/* Bottom Section - Product Info */
.product-card .card-bottom {
	position: absolute;
	width: 100%;
	display: flex;
	flex-direction: column;
	background: var(--osnovy-white);
	border-top: 1px solid var(--osnovy-gray-30);
	padding: 0;
	bottom: -45px;
	transition: all 0.2s ease;
	z-index: 1000;
}

.product-card:not(.out-of-stock):hover .card-bottom {
	bottom: 0;
}

@media (min-width: 1025px) {
	.product-card:hover .card-title{
		white-space: unset;
		overflow: unset;
		text-overflow: unset;
	}
	.product-card:hover .card-author{
		white-space: unset;
		overflow: unset;
		text-overflow: unset;
	}
}

.product-card .card-info-wrapper {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.product-card .card-info-wrapper-inner {
	padding: 12px 20px 14px;
	display: flex;
	flex-direction: column;
	min-height: 93px;
}

/* Names Section */
.product-card .card-names {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
}

/* Book Title */
.product-card .card-title {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	font-size: 16px;
	line-height: 1.3;
	color: var(--osnovy-black);
	margin: 0;
}

/* Author Name */
.product-card .card-author {
	font-family: 'IBM Plex Serif';
	font-size: 14px;
	line-height: 1.3;
	color: var(--osnovy-black);
	margin: 0;
}

/* Price Section */
.product-card .card-price {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
}

/* Regular Price */
.product-card .card-price-regular {
	display: flex;
	align-items: center;
	gap: 2px;
}

.product-card .card-price-regular .price-amount {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	font-size: 14px;
	color: var(--osnovy-black);
}

.product-card .card-price-regular .price-currency {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	font-size: 12px;
	color: var(--osnovy-black);
}

/* Sale Price */
.product-card .card-price-sale {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 4px;
}

/* Original Price (Strikethrough) */
.product-card .card-price-original {
	display: flex;
	align-items: center;
	gap: 2px;
}

.product-card .card-price-original .price-amount {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	font-size: 14px;
	text-decoration: line-through;
	color: var(--osnovy-gray-50);
}

.product-card .card-price-original .price-currency {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	font-size: 12px;
	color: var(--osnovy-gray-50);
}

/* Sale Price (Red) */
.product-card .card-price-discount {
	display: flex;
	align-items: center;
	gap: 1px;
}

.product-card .card-price-discount .price-amount {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	font-size: 14px;
	color: var(--osnovy-red);
}

.product-card .card-price-discount .price-currency {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	font-size: 12px;
	color: var(--osnovy-red);
}

/* Responsive Design */
@media (max-width: 1200px) {
	.products-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 18px;
	}
}

@media (max-width: 768px) {
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
	
	.product-card.big-card {
		grid-column: span 1;
		grid-row: span 1;
	}
}

@media (max-width: 480px) {
	.products-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}


@media (max-width: 768px) {

	.product-card .card-price-regular{
		align-items: flex-end;
	}

	.product-card .card-price-regular .price-amount{
		font-size: 13px;
	}

	.product-card .card-price-regular .price-currency{
		font-size: 11px;
	}

	.product-card .card-info-wrapper-inner {
		padding: 6px 8px 10px;
	}

	.category-card-content{
		padding: 24px 16px;
	}

	.product-card .card-labels{
		padding: 10px 12px;
	}

	.product-card .card-label{
		font-size: 12px;
	}

	.product-card .card-title{
		font-size: 13px;
	}

	.product-card .card-author{
		font-size: 11px;
	}

	.product-card .card-price-original .price-amount{
		font-size: 13px;
	}

	.product-card .card-price-original .price-currency{
		font-size: 11px;
	}

	.product-card .card-price-discount .price-amount{
		font-size: 13px;
	}

	.product-card .card-price{
		margin-top: 2px;
	}

	.product-card .card-names{
		gap: 2px;
	}

	.product-card .card-top{
		height: 100%;
		border-bottom: 1px solid var(--osnovy-border-color);
	}

	.product-card .card-bottom{
		position: unset;
		border-top: none;
	}

	.product-card .card-info-wrapper-inner{
		min-height: 69.2px;
	}

	.product-item{
		aspect-ratio: unset;
	}

	.card-actions{
		display: none;
	}

	.product-link{
		text-decoration: unset;
	}

	.product-card .card-price-discount, .product-card .card-price-original{
		align-items: flex-end;
	}

	.product-card .price-currency{
		line-height: 1.4;
	}

	.product-card .card-price-discount .price-currency{
		font-size: 11px;
	}
}

/* Single Product Price Classes */
.single-product .product-price {
	display: flex;
	flex-direction: row;
	margin-bottom: 24px;
	align-items: center;
	column-gap: 12px;
	margin-top: 24px;
}

.single-product .product-price.sold-out .product-price-regular .price-amount, .single-product .product-price.sold-out .product-price-regular .price-currency{
	color: var(--osnovy-gray-50);
}

.product-awards{
	margin: 24px 0;
}

.single-product .product-author-link{
	text-decoration: none;
}

.single-product .product-author-link:hover{
	text-decoration: underline;
}

/* Regular Price for Single Product */
.single-product .product-price-regular {
	display: flex;
	align-items: flex-end;
	gap: 2px;
}

.single-product .product-price-regular .price-amount {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	font-size: 18px;
	color: var(--osnovy-black);
}

.single-product .product-price-regular .price-currency {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	font-size: 15px;
	color: var(--osnovy-black);
	margin-left: 0px;
	line-height: 1.5;
}

/* Sale Price for Single Product */
.single-product .product-price-sale {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	gap: 10px;
}

/* Original Price (Strikethrough) for Single Product */
.single-product .product-price-original {
	display: flex;
	align-items: flex-end;
	gap: 2px;
}

.single-product .product-price-original, .single-product .product-price-discount {
	position: relative;
}

.single-product .product-price-original::before {
	position: relative;
	content: '';
	width: 100%;
	height: 2px;
	position: absolute;
	top: 50%;
	left: 0;
}

.single-product .product-price-original::before {
	background-color: var(--osnovy-gray-50);
}

.single-product .product-price-discount::before {
	background-color: var(--osnovy-red);
}

.single-product .product-price-original .price-amount, .single-product .product-price-discount .price-amount {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	color: var(--osnovy-gray-50);
	font-size: 20px;
	line-height: 1;
}

.single-product .product-price-original .price-currency, .single-product .product-price-discount .price-currency {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	color: var(--osnovy-gray-50);
	font-size: 16px;
	line-height: 18px;
}

/* Sale Price (Red) for Single Product */
.single-product .product-price-discount {
	display: flex;
	align-items: flex-end;
	gap: 2px;
}

.single-product .product-price-discount .price-amount, .single-product .product-price-discount .price-currency  {
	color: var(--osnovy-red);
}

/* Sold Out Styling */


.single-product .sold-out-badge {
	font-family: 'IBM Plex Serif';
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 26px;
	color: var(--osnovy-black);
}

/* Hide default WooCommerce out of stock message */
.single-product .stock.out-of-stock, .single-product .stock.in-stock {
	display: none;
}

/* Single Product Page Layout */
.osnovy-single-product {
	width: 100%;
	margin: 0;
	padding: 0;
}

.woocommerce div.product div.summary{
	width: 100%;
	max-width: 420px;
	position: relative;
	margin-bottom: 120px;
}

.osnovy-single-product.outofstock div.summary{
	margin-bottom: 64px !important;
}

.osnovy-single-product div.summary{
	margin-bottom: 120px !important;
}

@media (max-width: 768px) {
	.osnovy-single-product.outofstock div.summary{
		margin-bottom: 24px !important;
	}

	.osnovy-single-product div.summary{
		margin-bottom: 64px !important;
	}
	
}

.product-main-content {
	display: flex;
	margin-bottom: 80px;
}

/* Product Info Section (Left) */
.product-info-section {
	flex: 0 0 50%;
	max-width: 50%;
	align-self: flex-start;
	display: flex;
	align-items: center;
	padding: 96px 20px 0;
}

.product-info-content {
	width: 100%;
	display: flex;
	justify-content: center;
}

/* Product Gallery Section (Right) */
.product-gallery-section {
	flex: 0 0 50%;
	max-width: 50%;
	border-left: 1px solid var(--osnovy-border-color);
}

.woocommerce div.product form.cart{
	margin-bottom: 0px !important;
}


.osnovy-secondary-atc-inline{
	justify-content: space-between;
	width: 100%;
}

.secondary-atc-inline{
	position: sticky;
	top: calc(100vh - 70px);
	height: 0px;
	visibility: hidden;
	opacity: 0;
	transition: all 0.2s ease-in-out;
	margin-bottom: -10px;
}

.secondary-atc-inline.visible{
	visibility: visible;
	opacity: 1;
	top: calc(100vh - 80px);
}
/* Secondary ATC inline price styling */
.osnovy-secondary-atc-inline .woocommerce-Price-amount{
	font-size: 14px;
	line-height: 1;
	display: inline-flex;
	align-items: baseline;
}

.osnovy-secondary-atc-inline .woocommerce-Price-amount bdi{
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
}

.osnovy-secondary-atc-inline .woocommerce-Price-currencySymbol{
	font-size: 12px;
	line-height: 1;
}

/* Desktop: bottom-pin left column using native sticky without JS on scroll */
@media (min-width: 769px) {
	.osnovy-single-product .product-info-section {
		position: sticky;
		/* Stick so that the element's bottom coincides with viewport bottom:
		   top = 100vh - element-height (provided via CSS var) */
		top: calc(100vh - var(--left-col-height, 0px));
	}
}

.secondary-atc{
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
}

/* Product Gallery Row Layout */
.product-gallery-container {
	width: 100%;
}

.product-gallery-row {
	display: flex;
	flex-direction: column;
	align-items: center;
}


.product-gallery-item {
	width: 100%;
	max-width: 100%;
}

.gallery-image-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	display: flex;
}

.gallery-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	cursor: pointer;
}

.product-gallery-counter{
	display: none;
}

/* Mobile swipe gallery */
@media (max-width: 768px) {
	.product-gallery-row[data-mobile-scroll] {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 94%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 0;
	}
	.product-gallery-row[data-mobile-scroll] .product-gallery-item {
		scroll-snap-align: start;
	}
	.product-gallery-counter {
		display: block;
		margin-top: 10px;
		text-align: left;
		font-size: 13px;
		color: var(--osnovy-black);
	}
}


/* Product Lightbox */
.lightbox {
	display: none; /* hidden by default */
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	align-items: stretch;
	justify-content: center;
	background: transparent; /* overlay handled by .lightbox-overlay */
}

.lightbox.active {
	display: flex; /* shown when active */
}

.lightbox .lightbox-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 0;
}

.lightbox.active .lightbox-overlay {
	opacity: 1;
}

.lightbox .lightbox-content {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	opacity: 0;
	transform: translateY(16px) scale(0.98);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox.active .lightbox-content {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.lightbox .close-button {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 2;
}

.lightbox .lightbox-column {
	position: relative;
	width: 100%;
	height: 100%;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 80px 20px 40px; /* leave space for close button */
	background-color: var(--osnovy-white);
}

.lightbox .lightbox-image-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0 0 24px 0;
}

.lightbox .lightbox-image {
	max-width: 100%;
	width: 100%;
	width: auto;
	height: auto;
	display: block;
}

.lightbox .lightbox-caption {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--osnovy-white);
	opacity: 0.9;
	text-align: center;
	max-width: 90vw;
}

@media (max-width: 768px) {
    .lightbox .close-button {
        top: 12px;
        right: 12px;
    }
	.lightbox .lightbox-column {
		padding: 64px 12px 24px;
	}
	.lightbox .lightbox-image {
		max-width: 94vw;
		max-height: calc(100vh - 140px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.lightbox .lightbox-overlay {
		transition: none;
	}
	.lightbox .lightbox-content {
		transition: none;
		transform: none;
		opacity: 1;
	}
}


.gallery-image-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 8px 12px;
	font-size: 12px;
	line-height: 1.3;
}

.placeholder-image {
	width: 100%;
	height: 100%;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
}

.recommended-products-section .section-title{
	font-family: 'IBM Plex Serif';
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 26px;
	letter-spacing: -0.02em;
	margin: 0 0 16px 0;
	padding: 0 20px;
}

.recommended-products-section .products{
	border-top: 1px solid var(--osnovy-border-color);
}

/* Product Badges */
.product-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.product-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.badge-new {
	background: #4CAF50;
	color: white;
}

.badge-preorder {
	background: #FF9800;
	color: white;
}

.badge-sale {
	background: #F44336;
	color: white;
}

/* Product Authors */
.product-authors {
	margin: 20px 0;
}

.authors-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 12px;
	color: var(--osnovy-black);
}

.authors-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.author-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.author-link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--osnovy-black);
	transition: color 0.2s ease;
}

.author-link:hover {
	color: var(--osnovy-red);
}

.author-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.author-name {
	font-size: 14px;
	font-weight: 500;
}

/* Download Snippet Button */
.product-download-snippet {
	margin: 24px 0;
}

.button-download {
	display: inline-block;
	padding: 12px 24px;
	border: 2px solid var(--osnovy-black);
	background: transparent;
	color: var(--osnovy-black);
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.button-download:hover {
	background: var(--osnovy-black);
	color: white;
}

/* Product Description Section */
.product-description-section {
	margin: 30px 0;
}

.product-short-description{
	font-family: 'IBM Plex Serif';
	font-style: normal;
	font-weight: 400;
	font-size: 14px;
	line-height: 150%;
	letter-spacing: 0.02em;
	margin-top: 40px;
}

.product-short-description p:first-child {
	margin-top: 0;
}

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

.product-description-section .section-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 15px;
	color: var(--osnovy-black);
	border-bottom: 2px solid var(--osnovy-black);
	padding-bottom: 8px;
}

.product-description-content {
	font-size: 14px;
	line-height: 1.6;
	color: var(--osnovy-black);
}

.product-description-content p {
	margin-bottom: 15px;
}

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

.preorder-notice{
	font-family: 'IBM Plex Serif';
	font-style: normal;
	font-weight: 400;
	font-size: 13px;
	line-height: 20px;
	text-align: center;
	background-color: var(--osnovy-gray-5);
	padding: 16px 20px;
	border-radius: 20px;
	margin-bottom: 24px;
}

.product-info-section .product_title.entry-title{
	font-family: 'IBM Plex Serif';
	font-style: normal;
	font-weight: 400;
	font-size: 32px;
	line-height: 42px;
	letter-spacing: -0.02em;
	margin-bottom: 24px;
}

.product-info-section .primary-authors{
	font-family: 'IBM Plex Serif';
	font-style: normal;
	font-weight: 400;
	font-size: 15px;
	line-height: 20px;
	letter-spacing: -0.01em;
}

.product-info-section .additional-authors{
	font-family: 'IBM Plex Serif';
	font-style: normal;
	font-weight: 400;
	font-size: 13px;
	line-height: 17px;
	letter-spacing: -0.01em;
	color: var(--osnovy-gray-50);
	margin-top: 4px;
}

/* Product Details Section */
.product-details-section {
	margin: 30px 0;
}

.product-details-section .section-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 15px;
	color: var(--osnovy-black);
	border-bottom: 2px solid var(--osnovy-black);
	padding-bottom: 8px;
}

.product-details-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.product-details-table th,
.product-details-table td {
	padding: 0px;
	text-align: left;
	vertical-align: top;
}

.product-details-table th {
	color: var(--osnovy-black);
	width: 50%;
	padding: 0 10px 4px 0;
	font-family: 'IBM Plex Serif';
	font-style: normal;
	font-weight: 400;
	font-size: 13px;
	line-height: 19px;
	/* identical to box height, or 146% */
	letter-spacing: 0.02em;
}

.product-details-table td {
	font-family: 'IBM Plex Serif';
	font-style: normal;
	font-weight: 400;
	font-size: 13px;
	line-height: 19px;
	/* identical to box height, or 146% */
	letter-spacing: 0.02em;
}

.product-details-table tr:last-child th,
.product-details-table tr:last-child td {
	border-bottom: none;
}

/* Linked Products Section - Based on Cart Modal Recommended Items */
.linked-products-section {
	margin: 40px 0 24px;
}

.linked-products-section .section-title {
	font-family: 'IBM Plex Serif';
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 21px;
	letter-spacing: -0.02em;
	margin: 0 0 10px 0;
}

.linked-products-items {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--osnovy-gray-5);
	overflow: hidden;
	border-radius: 16px;
}

.linked-product-item {
	display: flex;
	align-items: center;
}

.linked-product-item:not(:last-child) {
	border-bottom: 1px solid var(--osnovy-gray-5);
}

.linked-product-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	justify-content: space-between;
	height: 100%;
	width: 100%;
	padding: 10px;
}

.linked-product-item .linked-product-image {
	width: 50px;
	height: 60px;
	aspect-ratio: 4/5;
}

.linked-product-item .linked-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.linked-product-item .linked-product-info {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.linked-product-item .linked-product-title {
	font-size: 14px;
	font-weight: 400;
	color: var(--osnovy-black);
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 220px;
}

.linked-product-item .linked-product-title-link {
	color: var(--osnovy-black);
	text-decoration: none;
	display: block;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.linked-product-item .linked-product-title-link:hover {
	text-decoration: underline;
}

/* Regular Price for Linked Products */
.linked-product-item .linked-price-regular {
	display: flex;
	align-items: center;
	gap: 2px;
}

.linked-product-item .linked-price-regular .price-amount {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	font-size: 14px;
	color: var(--osnovy-black);
}

.linked-product-item .linked-price-regular .price-currency {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	font-size: 12px;
	color: var(--osnovy-black);
	margin-left: 2px;
}

/* Sale Price for Linked Products */
.linked-product-item .linked-price-sale {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 6px;
}

/* Original Price (Strikethrough) for Linked Products */
.linked-product-item .linked-price-original {
	display: flex;
	align-items: flex-end;
	gap: 1px;
}

.linked-product-item .linked-price-original .price-amount {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	font-size: 14px;
	text-decoration: line-through;
	color: var(--osnovy-gray-50);
}

.linked-product-item .linked-price-original .price-currency {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	font-size: 12px;
	color: var(--osnovy-gray-50);
}

/* Sale Price (Red) for Linked Products */
.linked-product-item .linked-price-discount {
	display: flex;
	align-items: flex-end;
	gap: 1px;
}

.linked-product-item .linked-price-discount .price-amount {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	font-size: 14px;
	color: var(--osnovy-red);
}

.linked-product-item .linked-price-discount .price-currency {
	font-family: 'IBM Plex Serif';
	font-weight: 400;
	font-size: 12px;
	color: var(--osnovy-red);
}

.linked-product-special {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.special-edition-text {
	font-size: 12px;
	font-weight: 400;
	color: var(--osnovy-gray-50);
}

.awards-list{
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.award-item{
	display: flex;	
	align-items: center;
	gap: 10px;
}

.award-icon{
	width: 24px;
	height: 24px;
}

.award-name{
	font-size: 13px;
	font-weight: 400;
	color: var(--osnovy-black);
}

.cwginstock-subscribe-form .panel-primary>.panel-heading{
	display: none;
}

.cwginstock-subscribe-form .panel{
	box-shadow: none !important;
}

/* In-Stock Notifier Form Styling */
.cwginstock-panel-body {
	margin: 0;
	padding: 0;
	background-color: unset;
	border: none;
	box-shadow: none;
}

.cwginstock-subscribe-form .row{
	margin: 0 !important;
}

.cwginstock-subscribe-form .col-md-12{
	padding: 0 !important;
}

.cwginstock-panel-body .form-group {
	margin-bottom: 15px;
}

.cwginstock-panel-body .cwgstock_email {
	border: none;
	outline: none;
	width: 100%;
	height: 44px;
	padding: 0 16px;
	font-family: 'IBM Plex Serif', serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
	color: var(--osnovy-black);
	background-color: transparent;
	border: 1px solid var(--osnovy-gray-5);
	border-radius: 100px;
	transition: border-color 0.2s ease;
	text-align: left !important;
}

.cwginstock-panel-body .cwgstock_email:focus {
	outline: none;
	border: 1px solid var(--osnovy-gray-30);
}

.cwginstock-panel-body .cwgstock_email::placeholder {
	color: var(--osnovy-gray-30);
}

.cwginstock-panel-body input[type=email], .cwginstock-panel-body input[type=text], .form-group{
	margin-bottom: 0 !important;
}

.cwginstock-subscribe-form div.center-block:last-child{
	margin-bottom: 0px !important;
}

.cwginstock-panel-body .cwgstock_button {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 12px 30px;
	gap: 10px;
	background: var(--osnovy-black);
	border-radius: 100px;
	border: none;
	cursor: pointer;
	font-family: 'IBM Plex Serif', serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: #fff;
	text-decoration: none;
	transition: background 0.2s ease;
	width: 100%;
}

.cwginstock-panel-body .cwgstock_button:hover {
	background: var(--osnovy-gray-30);
}

.cwginstock-subscribe-form .panel-body{
	padding: 0 !important;
}

.cwginstock-subscribe-form .panel-primary{
	padding: 0 !important;
	border: none !important;
}

.cwginstockerror, .cwginstocksuccess{
	border-radius: 20px;
	padding: 16px 20px;
	font-size: 13px;
	line-height: 20px;
	color: var(--osnovy-black) !important;
	font-weight: 400;
	opacity: 0;
	height: 0;
	overflow: hidden;
	transition: opacity 0.3s ease, height 0.3s ease, padding 0.3s ease;
	max-height: unset !important;
	height: auto;
}

.cwginstocksuccess{
	background-color: var(--osnovy-gray-5);
}

.cwginstockerror{
	background-color: var(--osnovy-error-bg);
}

.cwginstockerror.show, .cwginstocksuccess.show{
	opacity: 1;
	height: auto;
	padding: 16px 20px;
}

.blockUI{
	display: none !important;
}

/* JavaScript to animate error appearance */
.cwginstock-panel-body .cwgstock_output {
	position: relative;
}

.cwginstock-panel-body .cwgstock_output .cwginstockerror, .cwginstock-panel-body .cwgstock_output .cwginstocksuccess {
	animation: slideInError 0.3s ease forwards;
}

.cwginstock-panel-body input[type=email], .cwginstock-panel-body input[type=text]{
	margin-bottom: 10px !important;
}

@keyframes slideInError {
	from {
		opacity: 0;
		transform: translateY(-10px);
		max-height: 0;
	}
	to {
		opacity: 1;
		transform: translateY(0);
		max-height: 100px;
		margin-top: 10px;
	}
}

.cwginstock-panel-body .cwgstock_output {
	font-size: 14px;
	text-align: center;
}

/* Hide the default form styling */
.cwginstock-panel-body .row {
	margin: 0;
}

.cwginstock-panel-body .col-md-12 {
	padding: 0;
}

.cwginstock-panel-body .center-block {
	text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
	
	.product-gallery-item {
		max-width: 100%;
		min-width: auto;
	}
}

@media (max-width: 768px) {
	.osnovy-single-product {
		padding: 0 0;
	}

	.product-info-section{
		width: 100%;
		flex: 0 0 100%;
		max-width: 100%;
	}

	.product-gallery-section{
		border-left: none;
	}

	.product-gallery-section{
		width: 480px;
		max-width: 100%;
		flex: 0 0 100%;
		padding: 0 12px;
	}

	.recommended-products-section .section-title{
		padding: 0 12px;
	}

	.product-info-section{
		padding: 0px 12px 0px;
	}
	
	.product-main-content {
		flex-direction: column-reverse;
		align-items: center;
		justify-content: center;
		margin-bottom: 40px;
		gap: 24px;
	}

	.woocommerce div.product .product_title{
		font-family: 'IBM Plex Serif';
		font-style: normal;
		font-weight: 400;
		font-size: 24px;
		line-height: 31px;
		letter-spacing: -0.02em;
	}

	.preorder-notice{
		padding: 16px 12px;
	}
	
	@media (max-width: 940px){
		.product-accordion{
			margin-bottom: 0 !important;
		}

		.product-main-content{
			border-bottom: none;
		}
		
	}

}

/* Product Accordion (uses global .accordion* rules) */
/* Overrides if needed */


