body {
	font-family: 'Montserrat', sans-serif;
	margin: 0;
	padding: 0;
	background-color: #f8f8f8;
}

.wrapped {
	max-width: 1140px;
	margin: 0 auto;
}

.cart-container {
		max-width: 88%;
		margin: 0 auto 20px auto;
		background-color: #fff;
		border-radius: 0px;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
		padding: 20px;
		text-align: center;
		font-family: 'Montserrat', sans-serif;
}

.special-offer {
	max-width: 88%;
	margin: 0 auto;
	background-color: #fff;
	border-radius: 0px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	padding: 20px;
	text-align: center;
	font-family: 'Montserrat', sans-serif;
	background: #ffff00;
	border: 1px solid #ff0000;
}

.thankyou-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 24px;
	text-align: center;
}

.thankyou-description {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5em;
}

.cart-title {
		font-size: 24px;
		margin: 15px 0;
		color: #ff0000;
}

.container {
	max-width: 1048px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0px;
	padding: 5px;
}

.product-card-placeholder {
	flex: 1 1 calc(25% - 20px); /* Равномерное распределение четырех карточек с учетом отступов */
	max-width: 25%;
	background: white;
	border-radius: 5px;
	overflow: hidden;
	cursor: pointer;
	position: relative;
	margin-bottom: 10px;
}

.product-card-placeholder-border {
	border: 1px solid #eee;
}
.gallery {
	display: flex;
	overflow: hidden;
	position: relative;
}
.gallery img {
	width: 240px;
	display: none;
	transition: opacity 0.3s ease;
}
.gallery img.active {
	display: block;
}

.owl-dots {
	display: flex;
	justify-content: center;
	padding: 10px 0;
	list-style: none;
	margin: 0;
}

.owl-dots .owl-dot {
	margin: 0 5px;
}

.owl-dots .owl-dot span {
	display: block;
	width: 10px;
	height: 10px;
	background-color: #bbb;
	border-radius: 50%;
	transition: background-color 0.3s ease;
	cursor: pointer;
}

.owl-dots .owl-dot.active span {
	background-color: #000;
}

.product-info {
	padding: 15px;
}

.product-info .product-name {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 400;
}

.product-info .price {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.product-info .new-price {
	font-size: 16px;
	font-weight: 600;
	color: #009900;
}

.product-info .old-price {
	position: relative;
	font-size: 12px;
	font-weight: 400;
	color: #FF0033;
}

.product-info .old-price::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 60%; /* Сдвигает линию ниже центра */
	height: 0.5px; /* Толщина линии */
	background-color: #FF0033; /* Цвет линии */
}

.product-info .rating {
	margin-bottom: 15px;
}

.rating i {
	color: #FF6600;
}

.rating-number {
	font-size: 16px;
	font-weight: 400;
	color: #333333;
}

.add-to-cart-btn {
		background-color: #28a745;
		color: white;
		border: none;
		padding: 15px;
		font-size: 16px;
		border-radius: 5px;
		cursor: pointer;
		width: 100%;
		transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
		background-color: #218838;
}

.add-to-cart-btn:disabled {
		background-color: #ccc;
		color: #666;
		cursor: not-allowed;
		opacity: 0.7;
}

@media (max-width: 768px) {
	.product-card-placeholder {
		flex: 1 1 calc(50% - 20px); /* Для мобильных: 2 карточки в ряду */
		max-width: 50%;
	}
}

@media (max-width: 480px) {
	.container {
			justify-content: flex-start; /* Располагает карточки слева */
		}
	.product-card-placeholder {
		flex: 1 1 calc(50% - 20px); /* Для мобильных: 2 карточки в ряду */
		max-width: 50%;
	}
}

/* Popup styles */
.popup {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100vw;
	height: 100vh;
	box-sizing: border-box;
	overflow-y: auto;
	overflow-x: hidden;
	max-width: 500px;
	background: white;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	z-index: 1000;

}

.popup .content {
	padding: 0px 30px 20px 30px;
}

.popup .gallery {
	/*display: flex;
	justify-content: center;
	align-items: center;*/
	width: 100%;
	margin: 0 auto;
}

.popup img {
	border-radius: 0px;
}

.popup .close-btn {
	position: absolute;
	top: 15px;
	right: 15px;
	font-size: 18px;
	background: #ddd;
	color: #333;
	border: none;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: background-color 0.3s ease;
	z-index: 1000;
}

.info-section {
	padding: 10px 25px 20px 25px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(153, 153, 153, 0.2);
}

.popup .price {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin: 10px 0 10px 0;
}

.popup .new-price {
	font-size: 24px;
	font-weight: 600;
	color: #009900;
}

.popup .old-price {
	position: relative;
	font-size: 18px;
	font-weight: 400;
	color: #FF0033;
}

.popup .old-price::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 60%; /* Сдвигает линию ниже центра */
	height: 0.5px; /* Толщина линии */
	background-color: #FF0033; /* Цвет линии */
}

.popup .product-name {
	margin: 30px 0 10px;
	font-size: 24px;
	font-weight: 400;
	text-align: center;
}

.popup .specs {
	width: 100%;
	margin-top: 20px;
	border-collapse: collapse;
	font-size: 14px;
	font-weight: 400;
}

.popup .specs-title {
	font-size: 24px;
	font-weight: 600;
	padding-top: 20px;
}

.popup .specs th, .popup .specs td {
	padding: 8px 12px;
	border-bottom: 1px dotted #ddd;
	text-align: left;
}

.popup .specs th {
	background-color: #f8f8f8;
	font-weight: bold;
}

.overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 900;
}

/* Fullscreen popup on mobile */
@media (max-width: 768px) {
	.popup {
		width: 100%;
		height: 100%;
		box-sizing: border-box;
		top: 0;
		left: 0;
		border-radius: 0;
		overflow-y: auto;
		transform: none; /* Убираем центровку */
	}

	.popup .close-btn {
		top: 10px;
		right: 10px;
		font-size: 24px;
		z-index: 1000; /* Устанавливаем высокий z-index для видимости поверх всего */
		background-color: #ddd;
		border-radius: 0;
		width: 35px;
		height: 35px;
		display: flex;
		justify-content: center;
		align-items: center;
		cursor: pointer;
	}

	.popup .close-btn:hover {
		background-color: #bbb;
	}

	.popup .gallery {
		width: 100%;
		margin: 0;
	}
}

.rich-content img {
	display: block;
	width: 100%;
	margin: 0;
}

/* СПИНЕР */
.loading-spinner {
		border: 4px solid rgba(0, 0, 0, 0.1);
		border-top: 4px solid #000;
		border-radius: 50%;
		width: 40px;
		height: 40px;
		animation: spin 1s linear infinite;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		z-index: 10; /* Поверх контента */
}

@keyframes spin {
		0% {
				transform: rotate(0deg);
		}
		100% {
				transform: rotate(360deg);
		}
}

/* ФУТЕР */
.footer_section {
	padding: 0 10px 0 10px;
	margin-bottom: 80px;
	font-size: 13px;
	line-height: 1.5em;
}
.footer_section p {
	font-size: 14px;
	font-weight: 300;
	margin: 0;
}


/* ПОИСК */
.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
}

#search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* ТАЙМЕР */
.countdown-container {
    background: red;
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(153, 153, 153, 0.2);
    margin: 15px 0 15px 0;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
}

.countdown-item {
    background: white;
    color: red;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}
.countdown-title {
  padding-bottom: 15px;
}


.order-btn {
    width: 100%;
    max-width: 300px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 300;
    padding: 20px 40px 20px 40px;
    border-radius: 10px;
    background-color: #28a745;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 auto;
    display: block;
    text-align: center;
    text-decoration: none;
}

.basket-form {
    background: #f1f8f4;
    border: 1px solid #d6e9db;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.order-reminder {
  background: #f1f8f4;
  border: 1px solid #d6e9db;
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.order-reminder h3 {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1e5e45;
}

.order-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.order-step {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.order-step:hover {
  transform: translateY(-2px);
}

.order-icon {
  font-size: 26px;
  color: #28a745;
  margin-bottom: 10px;
}

.order-number {
  position: absolute;
  top: -10px;
  left: -10px;
  background: #ff69b4;
  color: #fff;
  width: 26px;
  height: 26px;
  font-size: 14px;
  font-weight: 600;
  line-height: 26px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-step p {
  font-size: 14px;
  font-weight: 400;
  color: #333;
  margin: 0;
}
