.page-wrapper {
	margin: 20px auto;
	max-width: 1280px;
	width: 100%;
	padding: 20px;
	background: #f8fafc;
    border-radius: 20px;
    box-shadow: 0 4px 24px #9E9E9E;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.breadcrumbs a {
	color: #1e40af;
	text-decoration: none;
	font-weight: 500;
	transition: 0.2s;
}
.breadcrumbs a:hover {
	color: #1e3a8a;
	text-decoration: underline;
}
.breadcrumbs .sep {
	color: #9ca3af;
}
.breadcrumbs .current {
	color: #1f2937;
	font-weight: 600;
}

/* ===== ОСНОВНОЙ БЛОК ===== */
.products-main {
	display: flex;
	gap: 30px;
	align-items: flex-start;
	flex-wrap: wrap;
}

/* ===== ГАЛЕРЕЯ ===== */
.products-gallery {
    width: 50%;
    background: #f1f3f6;
    border-radius: 20px;
    padding: 10px 5px;
    box-shadow: 0 0 5px 1px #9E9E9E;
}

.gallery-main {
    position: relative;
    overflow: hidden;
    aspect-ratio: auto;
    max-height: none;
	display: flex;
    justify-content: center;
	cursor: pointer;
	width: auto;
}
/* ===== FULLSCREEN HINT (по центру) ===== */
.gallery-main .fullscreen-hint {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0,0,0,0.60);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-size: 0.85rem;
	padding: 10px 24px;
	border-radius: 40px;
	border: 1px solid rgba(255,255,255,0.12);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.4s ease, transform 0.3s ease;
	box-shadow: 0 4px 20px rgba(0,0,0,0.30);
	white-space: nowrap;
	letter-spacing: 0.3px;
	font-weight: 500;
	z-index: 5;
}

.gallery-main:hover .fullscreen-hint {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1.05);
}

.gallery-main .fullscreen-hint i {
	margin-right: 8px;
	font-size: 0.9rem;
}

.gallery-main img {
	width: auto;
	max-height: 365px;
	object-fit: cover;
	display: block;
	
}

.gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.50);
	backdrop-filter: blur(4px);
	border: none;
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	transition: 0.2s;
	z-index: 2;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
}
.gallery-nav:hover {
	background: rgba(0,0,0,0.75);
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-nav.hidden { display: none; }

.gallery-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
}
.gallery-thumbs img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 12px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: 0.2s;
	flex-shrink: 0;
	background: #f1f3f6;
}
.gallery-thumbs img:hover {
	border-color: #9ca3af;
}
.gallery-thumbs img.active {
	border-color: #1e40af;
}


/* ===== FULLSCREEN (весь экран) ===== */
.fullscreen-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0,0,0,0.92);
	backdrop-filter: blur(8px);
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 20px;
	animation: fadeIn 0.3s ease;
}

.fullscreen-overlay.active {
	display: flex;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.fullscreen-close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: rgba(255,255,255,0.10);
	border: none;
	color: #fff;
	font-size: 2rem;
	cursor: pointer;
	transition: 0.2s;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}
.fullscreen-close:hover {
	background: rgba(255,255,255,0.20);
	transform: rotate(90deg);
}

.fullscreen-image {
	width: auto;
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 8px 40px rgba(0,0,0,0.50);
}

.fullscreen-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,0.08);
	border: none;
	color: #fff;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	cursor: pointer;
	transition: 0.2s;
	font-size: 1.6rem;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255,255,255,0.06);
}
.fullscreen-nav:hover {
	background: rgba(255,255,255,0.15);
}
.fullscreen-nav.prev { left: 20px; }
.fullscreen-nav.next { right: 20px; }
.fullscreen-nav.hidden { display: none; }

.fullscreen-counter {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255,255,255,0.60);
	font-size: 0.9rem;
	background: rgba(0,0,0,0.40);
	padding: 6px 18px;
	border-radius: 30px;
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255,255,255,0.06);
	user-select: none;
}







/* ===== ИНФОРМАЦИЯ ===== */
.products-info {
	flex: 1 1 400px;
	min-width: 280px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.products-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #1e466e;
	line-height: 1.2;
}


.products-stock {
	font-size: 0.9rem;
	font-weight: 500;
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.products-stock.in-stock { color: #22c55e; }
.products-stock.out-of-stock { color: #ef4444; }

.products-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-size: 0.95rem;
	color: #4b5563;
}
.products-specs span {
    display: flex;
    align-items: center;
    gap: 6px;
}



.modal-block {
			display: flex;
			align-items: center;
			/*justify-content: center;*/
			gap: 12px;
			margin-bottom: 10px;
			flex-wrap: wrap;
		}
		.modal-block .left {
			display: flex;
			flex-direction: column;
			gap: 4px;
			padding: 6px 12px;
			border-radius: 12px;
			box-shadow: 0 4px 12px #9E9E9E;
		}
		.products-price {
			font-weight: 700;
			font-size: 20px;
			color: #e67e22;
			white-space: nowrap;
			flex-shrink: 0;
			padding: 12px 14px;
			border-radius: 12px;
			box-shadow: 0 4px 12px #9E9E9E;
		}












.products-description {
	font-size: 1rem;
	color: #4b5563;
	line-height: 1.7;
	margin: 4px 0;
	white-space: pre-wrap;
}

.products-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 8px;
	justify-content: left;
}

.btn-cart {
	background: #ff9800;
	color: #fff;
	border: none;
	padding: 14px 32px;
	border-radius: 40px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: 0.2s;
	display: flex;
	align-items: center;
	gap: 10px;
}
.btn-cart:hover {
	background: #e68900;
	transform: scale(1.02);
}
.btn-cart.in-cart {
	background: #22c55e;
}

.btn-back {
	background: transparent;
	color: #1e40af;
	border: 2px solid #1e40af;
	padding: 14px 28px;
	border-radius: 40px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: 0.2s;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.btn-back:hover {
	background: #1e40af;
	color: #fff;
}

/* ===== ОСНОВНОЙ ТЕКСТ (100% ширина) ===== */
.products-full-text {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 2px solid #eef1f5;
	width: 100%;
}

.products-full-text h2 {
	font-size: 1.3rem;
	font-weight: 700;
	color: #0a0a0a;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.products-full-text h2 i {
	color: #1e40af;
}

.products-full-text .text-content {
	font-size: 1rem;
	color: #4b5563;
	max-width: 100%;
	white-space: pre-wrap;
}

.products-full-text .text-content p {
	margin-bottom: 16px;
}

.products-full-text .text-content ul {
	padding-left: 24px;
	margin-bottom: 16px;
}

.products-full-text .text-content ul li {
	margin-bottom: 6px;
}

.products-full-text .text-content strong {
	color: #0a0a0a;
}

/* ===== ПОХОЖИЕ ТОВАРЫ ===== */


.related {
    margin: 20px auto;
    max-width: 1280px;
    width: 100%;
}
.related-grid {
    display: flex;
    transition: 0.2s;
    text-align: center;
	justify-content: center;
    gap: 16px;
}

.related-grid a {
    display: flex;
}
.related-card {
	flex: 0 0 197px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.2s;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    box-shadow: 0 4px 8px #9E9E9E;
}
.related-card:hover {
	transform: translateY(-4px);
}

.related-card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 12px;
	background: #f1f3f6;
}
.related-card .name {
	font-weight: 600;
	font-size: 0.9rem;
	margin-top: 8px;
	color: #0a0a0a;
}
.related-card .price {
	font-weight: 700;
	color: #e67e22;
	font-size: 0.95rem;
}



@media (max-width: 1024px) {
	
.page-wrapper {
    margin: 20px 2%;
    width: 96%;
	padding: 0 0 14px 0;
}
.breadcrumbs {
	font-size: 12px;
	margin: 0px 16px;
	padding: 4px 0 0 0;
}

.products-gallery {
    width: 100%;
    padding: 10px 2%;
    background: unset;
    border-radius: unset;
    box-shadow: unset;
}
.products-main {
    gap: 20px;
}
.gallery-main { max-height: 250px; }
.gallery-main img {
    width: 100%;
}
.gallery-thumbs {
    padding: 0 4px;
}

.products-info {
    padding: 0 10px;
}
.products-full-text {
    padding: 0 10px;
}

.products-actions {
    justify-content: center;
}

.related {
    margin: 20px 2%;
    width: 96%;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.related-grid a {
    display: grid;
}
	
	
	
	
	
	
	
	
	
	

.fullscreen-image { max-width: 98%; max-height: 80%; }
.gallery-main .fullscreen-hint {
	font-size: 0.65rem;
	padding: 6px 14px;
	white-space: normal;
}



}