/**
 * Theme Name: OSETINSKIE-PIROGI-STOREFRONT
 * Template: storefront
 *
 * Не обязательные параметры:
 * Theme URI: http://
 * Description: Дочерняя тема для темы storefront
 * Author: d3n2dboy
 * Author URI: https://ryazanovdenis.ru
 * Version: 1.0
 */

/* импортируем стили родительской темы */
/* @import url("../storefront/style.css"); */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

:root {
	/*var(--accent-color);*/
	--main-color: rgb(0, 0, 0);
	--accent-color: #ffae00;
	--font-size: 16px;
}

/*Свои дополнительные стили */
.site-footer {
	background-color: #eeeeeea1;
	padding: 35px 0 0 0;
}

.footer-widgets {
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.widget {
	margin: 0;
}

.footer-widgets::before,
.footer-widgets::after {
	display: none;
}

@media (min-width: 790.98px) {
	.footer-widget-2 {
		flex: 0 1 35%;
	}
}

.site-footer .site-info {
	padding: 15px 0;
}

body {
	font-family: "Inter", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 18px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-size: 1.5em;
}

a {
	transition: all 0.2s ease;
}

input,
textarea {
	font-family: inherit;
}

a:focus,
input:focus,
textarea:focus {
	outline: none;
}

@media (max-width: 767.98px) {
	.menu ul li {
		border-bottom: 1px solid rgb(172, 172, 172);
	}
}

.current_page_item a {
	font-weight: 700;
	text-decoration: underline;
}

.site-header {
	padding: 0;
	padding-top: 15px;
	background-color: rgb(248, 248, 248);
	color: #000;
}

.storefront-primary-navigation {
	background-color: rgb(255, 255, 255);
	padding-bottom: 10px;
}

.col-full:not(:last-child) {
	margin-bottom: 15px;
}

.wp-swiper > .wp-swiper__wrapper {
	margin-bottom: 25px !important;
}

.woocommerce-breadcrumb {
	font-size: 0.8em;
}

.home.blog .site-header,
.home.page:not(.page-template-template-homepage) .site-header,
.home.post-type-archive-product .site-header {
	margin-bottom: 20px;
}

.site-header input {
	background-color: inherit !important;
	color: #fff !important;
}

.widget_shopping_cart {
	background-color: #eee !important;
	color: #000 !important;
}

.widget_shopping_cart_content a {
	color: rgb(44, 44, 44) !important;
}

.site-header-cart .widget_shopping_cart,
.site-header .product_list_widget li .quantity {
	color: rgb(44, 44, 44) !important;
}
.woocommerce-mini-cart__buttons .checkout {
	color: #fff !important;
}

.main-navigation ul.nav-menu {
	margin-left: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 20px;
	padding-bottom: 10px;
	/* font-size: 0.8em; */
}

.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
	padding: 0;
}

.nav-menu .menu-item a:hover {
	color: var(--main-color);
}

.product-category a {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.product-category img,
.product img {
	transition: all 0.3s ease;
}

.product-category a:hover img,
.product a:hover img {
	transition: all 0.3s ease;
	transform: scale(1.1);
}

.custom_header {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 15px 0;
	align-items: center;
}

.custom_header__body {
	display: flex;
	gap: 20px;
	font-size: 30px;
	margin: 0;
	border-radius: 5px;
	padding: 5px 15px;
	margin-left: -15px;
	align-items: center;
}

@media (min-width: 953.98px) {
	.custom_header__body {
		flex: 0 0 40%;
	}
}

.custom_header__text {
	display: flex;
	flex-direction: column;
	align-self: center;
}

.custom_header__title {
	font-size: 1.25em;
	line-height: 1.1;
	color: var(--main-color);
	font-weight: 900;
}

.custom_header__description {
	font-size: 10px;
	text-transform: uppercase;
	/*color: #ffffff; */
}

.custom_header__contacts {
	flex: 1 0 25%;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.custom_header__contacts-text {
	font-size: 13px;
	text-align: center;
}

.custom_header__contacts a:link {
	color: var(--main-color) !important;
	opacity: 1;
	font-size: 1.3em;
	font-weight: 500;
	line-height: 1;
}

.custom_header__search {
	/*flex: 0 1 25%;*/
	align-self: center;
}

.custom_header_cart {
	display: flex;
	gap: 10px;
	align-items: center;
	background-color: var(--accent-color);
	padding: 2px 5px;
	border-radius: 5px;
	color: var(--main-color);
	transition: opasity 0.2s ease;
}

.custom_header_cart:hover {
	opacity: 0.8;
}

.custom_header_cart .custom-cart {
	display: inline-block;
	position: relative;
	font-size: 12px;
	font-weight: 500;
}

.custom-cart-price {
	color: var(--main-color);
}

.custom-cart-count {
	font-size: 10px;
	position: absolute;
	top: -18px;
	right: -15px;
	background-color: var(--main-color);
	color: #fff;
	padding: 2px 5px;
	border-radius: 5px;
}

.custom_header_cart .site-header-cart {
	width: 100% !important;
}
.custom_header_cart .cart-contents {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

@media (max-width: 767.98px) {
	.custom_header_cart {
		display: none;
	}
}

.button__callback {
	border-radius: 5px;
	background-color: var(--main-color);
}

.button__callback:hover {
	background-color: var(--main-color);
	opacity: 0.9;
}

.woocommerce-info,
.woocommerce-noreviews,
p.no-comments {
	background-color: var(--main-color);
}

.storefront-breadcrumb {
	padding: 15px 0;
	margin-bottom: 15px;
}

.storefront-full-width-content .woocommerce-products-header {
	padding-bottom: 15px;
}

/* BLOG */

.custom__blog {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.woocommerce-billing-fields input,
.woocommerce-additional-fields textarea,
.woocommerce-form-coupo input {
	border-radius: 5px;
	border: 1px solid #c4c4c4 !important;
	background-color: inherit;
	box-shadow: 0;
}

#billing_date {
	padding: 10px 15px;
}

.hentry .entry-content figure.wp-block-image,
.editor-styles-wrapper figure.wp-block-image {
	margin-bottom: 45px;
}

.wp-swiper > .wp-swiper__wrapper {
	margin-bottom: 50px;
}

.mobile_menue_d3n {
	display: none;
}

.custom_header__logo {
	width: 50px;
	height: 50px;
}

.custom_header_call {
	display: flex;
	gap: 50px;
}

.hentry .entry-content a {
	text-decoration: none;
}

@media (max-width: 1064.98px) {
	.custom_header__body {
		gap: 0;
	}
	.custom_header__title {
		font-size: 30px;
	}
	.button__callback {
		padding: 10px;
	}
}

@media (max-width: 953.98px) {
	.custom_header__title,
	.custom_header__description {
		display: none;
	}

	.menu-toggle {
		display: none;
	}
}

.main-navigation {
	position: relative;
}

.mobile_menue_d3n {
	position: absolute;
	top: 61px;
	left: 0;
	background-color: rgb(54, 54, 54);
	width: 100%;
	padding: 10px 25px;
	transition: all 0.3s ease;
	opacity: 0;
	visibility: hidden;
}

.main-navigation.toggled .mobile_menue_d3n {
	opacity: 1;
	visibility: visible;
}

@media (max-width: 768.98px) {
	.custom_header {
		gap: 5px;
		padding: 0;
	}
	.custom_header_call {
		font-size: 14px;
	}
	.menu-item:not(:last-child) {
		border-bottom: 1px solid rgb(202, 202, 202);
	}

	.menu-toggle {
		min-width: 100%;
	}

	button.menu-toggle {
		background-color: var(--main-color);
		font-size: 20px;
	}

	button.menu-toggle:hover {
		opacity: 0.9;
		background-color: var(--main-color);
	}

	/* .custom_header__logo {
		width: 100px;
		height: 100px;
	} */

	.custom_header__contacts {
		flex: 1 0 25%;
		text-align: center;
	}

	.custom_header__description {
		font-size: 16px;
	}

	.custom_header {
		margin-bottom: 20px;
	}

	.storefront-handheld-footer-bar ul li > a::before {
		color: var(--main-color);
	}

	.storefront-handheld-footer-bar ul li.cart .count {
		border: 1px solid #000;
		background-color: #000;
	}

	.main-navigation .menu {
		display: flex;
		flex-direction: column;
		flex-wrap: wrap;
		column-gap: 20px;
	}

	.mobile_menue_d3n {
		display: block;
	}
}

@media (max-width: 641.98px) {
	.button.menu-toggle {
		color: #000 !important;
	}

	.col-full {
		margin: 0 15px;
	}
}

@media (max-width: 460px) {
	.custom_header_call {
		gap: 20px;
	}
	.button__callback {
		font-size: 14px;
	}

	.custom_header__contacts a {
		font-size: 15px;
	}
}

.wpforms-field-medium {
	min-width: 100%;
}

.wpforms-submit {
	background-color: rgb(223, 51, 51) !important;
}

/* menu */

.sub-menu .menu-item a {
	color: #000;
}

.custom-mobile-menu-toggle {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}

@media (max-width: 767.98px) {
	.custom-mobile-menu-toggle {
		display: flex;
	}
}

.custom-mobile-menu-toggle span {
	display: none;
	width: 30px;
	height: 2px;
	background: #000;
	transition: 0.3s ease;
}

@media (max-width: 767.98px) {
	.custom-mobile-menu-toggle span {
		display: block;
	}

	.storefront-primary-navigation {
		background-color: rgb(248, 248, 248);
	}
}

/* крестик */

.custom-mobile-menu-toggle.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.custom-mobile-menu-toggle.is-active span:nth-child(2) {
	opacity: 0;
}

.custom-mobile-menu-toggle.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/*Товары из шорткода для главнгой*/
.category-subcategories {
	display: flex;
	/* grid-template-columns: repeat(4, 1fr); */
	gap: 40px;
	margin-bottom: 30px;
}

.category-subcategory {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
}

.category-subcategory-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 20px;
}

.category-subcategory-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;

	transition: transform 0.3s ease;
}

.category-subcategory:hover .category-subcategory-image img {
	transform: scale(1.04);
}

.category-subcategory-title {
	font-size: 16px;
	/* font-weight: 600;
	text-align: center; */
}

.category-subcategory-title:hover {
	opacity: 0.8;
}

/* ========================================
   ТОВАРЫ
======================================== */

.storefront-handheld-footer-bar {
	background-color: rgb(235, 235, 235);
}

.storefront-handheld-footer-bar ul li.search .site-search {
	bottom: auto;
}

.category-products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px 20px;
	margin-bottom: 50px;
}

.category-product {
	min-width: 0;
}

.category-product-link {
	display: flex;
	flex-direction: column;

	color: inherit;
	text-decoration: none;
}

.category-product-image {
	width: 100%;
	aspect-ratio: 1 / 1;

	overflow: hidden;
	border-radius: 20px;
	margin-bottom: 15px;
}

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

	transition: transform 0.3s ease;
}

.category-product-link:hover .category-product-image img {
	transform: scale(1.04);
}

.category-product-wrapper {
	padding: 10px;
	background-color: #fafafa;
	border-radius: 5px;
	margin-bottom: 10px;
}

.category-products-title {
	margin-top: 20px;
	font-size: 20px;
	font-weight: 500;
}

.category-product-title {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 500;
}

.category-product-price {
	/* font-size: 17px;
	font-weight: 600; */
}

.category-product-price del {
	opacity: 0.5;
	font-weight: 400;
}

.category-product-price ins {
	text-decoration: none;
}

.category-product .button {
	width: 100%;
	text-align: center;
	border-radius: 15px;
	background-color: var(--accent-color);
	color: var(--main-color);
	transition: opacity 0.2s ease;
}

.category-product .button:hover {
	opacity: 0.8;
}

/* .category-product .button .added {
	background-color: green;
} */

.category-product .added_to_cart {
	display: none !important;
}

.category-product-body {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
}

/* ========================================
   ПЛАНШЕТ
======================================== */

@media (max-width: 1024px) {
	/* .category-subcategories {
		grid-template-columns: repeat(2, 1fr);
	} */

	.category-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 25px 30px;
	}
}

/* ========================================
   МОБИЛЬНЫЕ
======================================== */

@media (max-width: 600px) {
	.category-subcategories {
		/* grid-template-columns: 1fr;
		gap: 20px;
		margin-bottom: 35px; */
	}

	.category-products {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.category-product-title {
		/* font-size: 17px; */
	}

	.category-product-price {
		/* font-size: 16px; */
	}
}
/**/

@media (max-width: 1200px) {
	.category-subcategories {
		display: flex;
		flex-wrap: nowrap;

		gap: 12px;

		width: calc(100vw - 30px);

		overflow-x: auto;
		overflow-y: hidden;

		margin-left: -15px;
		margin-bottom: 35px;
		padding: 5px 15px 12px;

		scroll-snap-type: x proximity;

		-webkit-overflow-scrolling: touch;

		scrollbar-width: none;
	}

	.category-subcategories::-webkit-scrollbar {
		display: none;
	}

	.category-subcategory {
		flex: 0 0 auto;

		/* width: 140px; */

		scroll-snap-align: start;
	}

	.category-subcategory-image {
		width: 140px;
		height: 100px;

		aspect-ratio: auto;

		border-radius: 16px;
	}

	.category-subcategory-title {
		font-size: 15px;
		line-height: 1.2;
		white-space: nowrap;
	}
}
