/*!
Theme Name: midgascatalog
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: midgascatalog
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

midgascatalog is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/
body {
	padding-top: 80px;
	padding-bottom: 60px;
	background-color: #F2EADC;
	color: #320B05;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
}

h1 {
	text-align: center;
	font-family: "Montserrat", sans-serif;
	font-weight: 500;
	margin-bottom: 60px;
}

.separator {
	display: block;
	max-width: 400px;
	margin: 0 auto;
	margin-bottom: 60px;
}

.info .container {
	margin-top: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	margin-bottom: 80px;
	font-family: "Lato", sans-serif;

	a {
		color: #320B05;
		text-decoration: none;
		font-size: 32px;
		text-transform: uppercase;
	}
}

.item {
	align-items: center;
	gap: 20px;
}

.loop {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.image_item {
	display: block;
	min-height: 400px;
	min-width: 400px;
	width: 400px;
	height: 400px;
	border-radius: 50px;
	border: 4px solid #CD9B7B;
	overflow: hidden;
	position: relative;
	z-index: 3;

	img {
		width: 100%;
		height: 100%;
		object-fit: cover;

	}
}

.text {
	max-height: 120px;
	overflow-y: auto;
}

/* Сам скроллбар */
::-webkit-scrollbar {
	width: 10px;
	/* толщина вертикального */
	height: 10px;
	/* толщина горизонтального */
}

/* Полоса фона */
::-webkit-scrollbar-track {
	background: #f0f0f0;
	border-radius: 10px;
}

/* Ползунок */
::-webkit-scrollbar-thumb {
	background: #CD9B7B;
	border-radius: 10px;
}

/* Hover эффект */
::-webkit-scrollbar-thumb:hover {
	background: #555;
}


.name {
	text-align: center;
	font-size: 26px;
	font-weight: bold;
	font-family: "Lato", sans-serif;
	margin-bottom: 10px;
	hyphens: auto;
	text-transform: uppercase;
	overflow-wrap: break-word;
	word-break: break-word; /* необязательно, но помогает в некоторых браузерах */

}

.info-box {
	font-family: "Montserrat", sans-serif;
	font-size: 26px;
}

.price {
	font-family: "Lato", sans-serif;
	text-align: center;
	font-weight: 700;
	font-size: 20px;
	margin-bottom: 10px;
}

.qty-input {
	padding: 5px;
	background-color: transparent;
	border-radius: 3px;
	border-color: #CD9B7B;
}

.flex-container {
	display: flex;
	gap: 0px;
	align-items: center;
	width: 100%;
}

.product-control {
	font-size: 22px !important;
}

.product-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.add-to-cart-btn {
	border: 4px solid #CD9B7B;
	padding: 10px 35px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	background: #CD9B7B;
	color: white;
}

.add-to-cart-btn:hover {
	width: fit-content;
	transition: all 1s;
	background-color: #d1936d;
	border-color: #d1936d;
}

.availability-status {
	display: inline-block;
	margin: 8px 0;
	padding: 6px 12px;
	border-radius: 999px;
	font-family: "Lato", sans-serif;
	font-size: 14px;
	font-weight: 700;
}

.availability-status--in_stock {
	background: #e4f3e7;
	color: #1e6b35;
}

.availability-status--out_of_stock {
	background: #f8e3e0;
	color: #9d2b20;
}

.add-to-cart-btn:disabled {
	background: #8b817d;
	border-color: #8b817d;
	cursor: not-allowed;
	opacity: 0.72;
}

.add-to-cart-btn:disabled:hover {
	background: #8b817d;
	border-color: #8b817d;
}

.cart-availability-notice {
	padding: 12px 16px;
	border-left: 4px solid #9d2b20;
	background: #f8e3e0;
	color: #6f1e17;
}

#clear-cart , .wpcf7-submit {
	border: 4px solid #CD9B7B;
	padding: 10px 35px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	background: #CD9B7B;
	color: white;
}
.return{
	text-decoration: none;
	color: rgb(50, 11, 5);
}
.remove-from-cart{
	background-color: #CD9B7B;
	color: white;
	border: none;
	cursor: pointer;
}

.text_item {
	height: 290px;
	width: calc(100% - 400px);
	transform: translateX(-3px);
	padding-top: 20px;
	padding-bottom: 20px;
	padding-left: 25px;
	padding-right: 20px;
	border: 4px solid #CD9B7B;
	border-left: none;
	border-bottom-right-radius: 20px;
	border-top-right-radius: 20px;
	background-color: #F4E5CC;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
}

.text {
	font-size: 18px;

}

.cart {
	position: fixed;
	width: 20px;
	background-color: #CD9B7B;
	bottom: 40px;
	right: 40px;
	padding: 15px;
	border-radius: 50%;
	z-index: 99;
}

.sku {
	text-align: center;
	font-size: 22px;
	margin-bottom: 10px;
	color: gray;
}

#order_data{
	display: none;
}

@media (max-width:978px) {
	h1 {
		font-size: 22px;
		margin-bottom: 20px;
	}

	.info .container a {
		font-size: 18px;
	}

	.separator {
		margin-bottom: 20px;
	}

	.container {
		padding: 0 20px;
	}

	.flex-container {
		flex-direction: column;
	}

	.image_item {
		width: 100%;
		height: 350px;
		min-width: 100%;

		img {
			width: 100%;
			height: 100%;
		}
	}

	.text_item {
		margin: 0;
		border-top: none;
		transform: none;
		transform: translateY(-10px);
		border-left: 4px solid rgb(205, 155, 123);
		border-bottom-left-radius: 20px;
		border-top-right-radius: 0px;
		height: auto;
		width: calc(100% - 90px);
	}

	.info_header {
		margin-top: 20px;
		margin-bottom: 20px;
	}

	.info-box {
		flex-direction: column;
	}

	.name {
		font-size: 28px;
	}

	.text {
		height: auto;
		min-height: auto;
		max-height: none;
	}
}

@media (max-width:580px) {
	.info .container {
		margin-bottom: 20px;
	}
	.loop{
		gap: 5px;
	}
	.sku{
		font-size: 16px;
	}
	.image_item {
		height: 300px;
		min-height: 250px;
		border-radius: 5px;
	}

	.name {
		font-size: 22px;
		text-align: center;
	}

	.info-box {
		font-size: 16px;
	}

	.price {
		margin-bottom: 20px;
	}

	.text_item {
		width: 100%;
		margin: 0;
		transform: translateY(-20px);
		padding: 0px;
		padding-top: 25px;
		padding-bottom: 15px;
		border-bottom-left-radius: 5px;
		border-bottom-right-radius: 5px;
	}

	.info-box {
		margin-left: 10px;
		margin-right: 10px;
	}

	.product-controls {
		margin-left: 10px;
		margin-right: 10px;
		justify-content: center;
	}

	.name {
		margin-left: 10px;
		margin-right: 10px;
	}

	.qty-input {
		width: 100%;
		display: block;
	}

	.label {
		width: 100px;
		display: block;
	}

	body {
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.cart {
		right: 20px;
	}
}
