﻿.page-container {
    height: 100vh;
	height: 100dvh;
    display: flex;
}
.page-container.cat-1 {
    background-color: var(--color-blue);
}
.page-container.cat-2 {
    background-color: var(--color-red);
}
.page-container.cat-3 {
    background-color: var(--color-purple);
}
.page-container.cat-4 {
    background-color: var(--color-orange);
}
.page-container.cat-5 {
    background-color: var(--color-green);
}

.left-side, .right-side {
    width: 50%;
}

.left-side {
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    color: #fff;
}

.product-image {
    max-width: 60%;
    position: relative;
}

.product-image > div:first-child {
	position: relative;
	width: 100%;
}

.product-image > div:first-child::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, var(--color-text), transparent);
    height: 16px;
    width: 40%;
}

.product-image > div:first-child img {
    width: 100%;
	max-width: 480px;
}

.product-piktogrami {
	text-transform: uppercase;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: absolute;
	left: 85%;
	bottom: 13%;
	width: fit-content;
}
.product-piktogrami li {
	list-style: none;
	text-wrap: nowrap;
}
.product-piktogrami img {
	width:40px;
	vertical-align: middle;
	margin-right: 8px;
}

.product-partners {
    text-decoration: underline;
    font-size: 1.25rem;
    position: relative;
    margin-top: 64px;
    cursor: pointer;
	color: #fff;
}
.product-partners::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -16px;
    width: 6px;
    height: 6px;
    border: 1px solid #fff;
    border-radius: 50%;
}

.right-side {
    position: relative;
    display: flex;
    align-items: center;
	justify-content: center;
	flex-direction: column;
}
.right-side .menu-icon {
    position: absolute;
    top: 48px;
    right: 48px;
    padding-right: 32px;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
}
.right-side .menu-icon::after {
    content: '...';
    position: absolute;
    top: -8px;
    right: 0;    
    color: #fff;
    font-size: 1.5rem;
}
.right-side .product-partners {
	display: none;
}
.right-side .content {
    color: #fff;
    width: 80%;
	max-width: 640px;
}

.right-side .content .product-name {
    font-size: 3rem;
    font-family: CenturyGothicBold;
	padding-bottom: 16px;
    margin: 0;
}

.product-desc {
    position: relative;
    border-bottom: 1px solid #fff;
    padding: 24px 0;
    width: 100%;
	z-index: 0;
}
.product-desc::before, .product-desc::after {
    content: '';
    position: absolute;
    background-color: #fff;
    transform-origin: center;
    transition: all 400ms;
    z-index: 0;
}
.product-desc::before {
    top: 38px;
    right: 0;
    height: 2px;
    width: 24px;
	z-index: 0;
}
 .product-desc::after {
    top: 27px;
    right: 11px;
    width: 2px;
    height: 24px;
	z-index: 0;
}

.product-desc.opened::before, .product-desc.opened::after{
    transform: rotate(135deg);
}

.product-desc.opened .product-desc-title {
    padding-bottom: 24px;
}

.product-desc-title {
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1;
    transition: all 400ms;
	position: relative;
	margin: 0;
}

.product-desc.opened .product-desc-text {
	overflow: auto;
}

.product-desc-text {
    height: 0;
    overflow: hidden;
    transition: all 400ms;
    /*padding-right: 48px;*/
    line-height: 1.5;
	max-height: calc(100vh - 600px);
}
.product-desc-text table {
	width: 100%;
	border: 1px solid #fff;
}
.product-desc-text table tr:first-child {
	font-family: CenturyGothicBold;
}
.product-desc-text table td {
	border: 1px solid #fff;
	padding: 4px;
}
.product-desc-text table tr td:nth-child(2), .product-desc-text table tr td:nth-child(4) {
	text-align: right;
}
.product-desc-text table tr td:nth-child(3), .product-desc-text table tr td:nth-child(5) {
	text-align: center;
}

.back-button {
    width: fit-content;
    text-align: left;
    margin-bottom: 32px;
    color: #fff;
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    text-decoration: none;
    cursor: pointer;
}

.back-button span {
    background-image: url("/images/svg/StrelicaBela.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    display: inline-block;
    width: 48px;
    height: 48px;
    margin-right: 8px;
}

/**********************************************/

.partners-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000b;
    display: flex;
    align-items: center; 
    justify-content: center;
    display: none;
	z-index: 20;
}
.partners-window.show {
    display: flex;
}

.partners-window .container {
    background-color: #f6f6f6;
    position: relative;
    padding: 64px;
    border-radius: 8px;
    box-shadow: 0 0 4px var(--color-text);
	max-width: 80%;
	max-height: 80%;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	
}

.partners-window .container .close-button
{
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 2rem;
    color: var(--color-text);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
	box-sizing: border-box;
}

.partners-window .container .content {
    display: flex;
	flex-wrap: wrap;
    align-items: center; 
    justify-content: center;
    gap: 40px;
	overflow-y: auto;
	max-height: 100%;
}

.partner-item {
    text-align: center;
    background-color: #fff;
    padding: 24px;
    border-radius: 4px;
}

.partner-image img {
    width: 120px;
}

.partner-name {
    margin-top: 16px;
	display: none;
}
.partner-name a {
    color: var(--color-text);
    font-size: 1.5rem;
}

@media screen and (max-width: 1520px)
{
	.product-image {
		width: 100%;
		max-width: none;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.product-image > div:first-child {
		width: 50%;
	}
	.product-piktogrami {
		position: relative;
		bottom: auto;
		left: auto;
		flex: 1;
		width: auto;
		height: 100%;
		justify-content: end;
		margin-bottom: 13%;
		max-width: none;
	}
}

@media screen and (max-width: 1440px), screen and (max-height: 720px) {
	.right-side .content .product-name {
		font-size: 2.5rem;
	}
}

@media screen and (max-width: 1200px), screen and (max-height: 720px) {
	.page-container {
		display: block;
		height: auto;
		min-height: 100vh;
		padding-top: 160px;
		box-sizing: border-box;
	}
	.left-side {
		padding-bottom: 80px;
	}
	.left-side, .right-side {
		width: 100%;
		
	}
	.left-side .product-partners {
		display: none;
	}
	
	.product-image {
		width: 100%;
		max-width: none;
		display: flex;
		align-items: end;
		justify-content: center;
	}
	.product-image > div:first-child {
		width: 40%;
	}
	.product-piktogrami {
		flex: 0;
		width: fit-content;
		height: 100%;
		justify-content: end;
		margin-bottom: 5%;
	}
	.product-piktogrami li {
		width: fit-content;
	}
	
	.right-side {
		padding-left: 32px;
		padding-right: 32px;
		box-sizing: border-box;	
		padding-bottom:	64px;
	}
	.right-side .content {
		width: 100%;
	}
	.right-side .menu-icon {
		display: none;
	}
	.right-side .back-button {
		display: none;
	}
	.right-side .product-name {
		text-align: center;
	}
	.right-side .product-partners {
		display: block;
		width: fit-content;
		margin: 16px auto;
	}
	.product-desc-text {
		max-height: none;
	}
}

@media only screen and (max-width: 800px) {
	.product-image > div:first-child {
		width: 50%;
	}
	.product-piktogrami {
		margin-bottom: 7%;
	}
	.product-piktogrami img {
		display: none;
	}
}

@media only screen and (max-width: 640px) {
	.partners-window .container {
		width: 100%;
		max-width: 100%;
		height: 100%;
		max-height: 100%;
		border-radius: 0;
	}
	
	.product-image > div:first-child {
		margin-left: -32px;
	}
	
	.product-piktogrami span {
		font-size: 14px;
	}
	.product-piktogrami img {
		width: 32px;
	}
}

@media only screen and (max-width: 480px) {
	.right-side .content .product-name {
		font-size: 2rem;
	}
	
	.product-desc-title {
		font-size: 1.25rem;
	}
	
	.right-side .product-partners {
		font-size: 1.125rem;
	}
	
	.product-piktogrami span {
		font-size: 12px;
	}
	.product-piktogrami img {
		width: 24px;
	}
}