/*
*Theme Name:     PatioTime Child Theme
*Theme URI: 	 https://patiotime.loftocean.com/
*Description:    PatioTime child theme for user customization
*Author:         Loft.Ocean
*Author URI:     http://www.loftocean.com
*License: 		 GNU General Public License v2 or later
*License URI: 	 http://www.gnu.org/licenses/gpl-2.0.html
*Tags: 			 full-width-template, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, rtl-language-support, sticky-post, threaded-comments, translation-ready
*Template:       patiotime
*Text Domain: 	 patiotime-child
*Version:        2.3
*/

 /** Add your styles below **/

/* Тёмный оверлей на баннере заголовка (страницы, архивы категорий) — как у постов/about */
.page-title-section .page-title-bg:not(.page-title-default-background-image):after {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #000;
	opacity: .45;
	content: "";
	z-index: 1;
}

.page-title-section .page-title-bg:not(.page-title-default-background-image) + .container,
.page-title-section .page-title-bg:not(.page-title-default-background-image) + .container .entry-title,
.page-title-section .page-title-bg:not(.page-title-default-background-image) + .container .woocommerce-breadcrumb,
.page-title-section .page-title-bg:not(.page-title-default-background-image) + .container .woocommerce-breadcrumb a {
	color: #fff;
}

/* Оверлей для баннера товара (там дефолтный фон темы с картинкой) */
.woocommerce-single-product-header .page-title-bg:after {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #000;
	opacity: .45;
	content: "";
	z-index: 1;
}

.woocommerce-single-product-header .page-title-bg + .container,
.woocommerce-single-product-header .page-title-bg + .container .entry-title,
.woocommerce-single-product-header .page-title-bg + .container .woocommerce-breadcrumb,
.woocommerce-single-product-header .page-title-bg + .container .woocommerce-breadcrumb a {
	color: #fff;
}

/* Крошки на баннере — видимы и с отступом */
.page-title-section .woocommerce-breadcrumb {
	margin-bottom: 14px;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* Заголовок блока похожих товаров «You may also like» — по центру */
.single-product .related.products > h2,
.single-product .up-sells > h2 {
	text-align: center;
	width: 100%;
	margin: 0 0 32px;
	font-size: 32px;
	line-height: 1.2;
}

/* Убираем иконку корзины в хедере (магазин работает как «Call for price») */
#site-header-cart,
.site-header-cart {
	display: none !important;
}

/* ==========================================================================
   Call for price — карточка товара (без Elementor)
   ========================================================================== */

/* Пустой блок цены (когда цена 0) не занимает место */
.single-product .summary .price:empty,
.woocommerce-loop-product__link + .price:empty,
li.product .price:empty {
	display: none !important;
}

.single-product .summary > .price {
	margin: 0 0 24px;
	font-size: 24px;
	font-weight: 600;
}

.single-product .cfp-eyebrow {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #c15c22;
}

/* Отступы между блоками сводки товара: заголовок → размер → описание → кнопка */
.single-product div.product .summary .product_title.entry-title {
	margin-bottom: 28px;
}

.single-product .woocommerce-product-details__short-description {
	margin: 28px 0 0;
}

.single-product .cfp-size {
	width: 100%;
	max-width: 490px; /* единая ширина блока на всех товарах */
	margin: 0 0 4px;
}

.single-product .cfp-cta {
	width: 100%;
	max-width: 490px;
	margin: 32px 0 0;
}

.single-product .cfp-size__label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.single-product .cfp-size__options {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	width: 100%;
}

.single-product .cfp-size__option {
	min-width: 0;
	padding: 14px 10px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 4px;
	background: transparent;
	color: rgba(255, 255, 255, .6);
	font-size: 15px;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: color .15s ease, border-color .15s ease;
}

.single-product .cfp-size__option:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, .6);
}

.single-product .cfp-size__option.is-selected {
	color: #fff;
	border-color: #fff;
}

.single-product .cfp-button {
	display: block;
	width: 100%;
	padding: 15px 24px;
	border: 0;
	border-radius: 6px;
	background-color: #c15c22;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease;
}

.single-product .cfp-button:hover,
.single-product .cfp-button:focus {
	background-color: #a54c1a;
	color: #fff;
}

/* Попап */
html.cfp-modal-open {
	overflow: hidden;
}

.cfp-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.cfp-modal.is-open {
	display: flex;
}

.cfp-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
}

.cfp-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 460px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 32px 28px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.cfp-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: #999;
	cursor: pointer;
}

.cfp-modal__close:hover {
	color: #1a1a1a;
}

.cfp-modal__title {
	margin: 0 0 6px;
	font-size: 22px;
}

.cfp-modal__lead {
	margin: 0 0 18px;
	font-size: 15px;
	color: #666;
}

.cfp-modal__notice {
	color: #b00;
}

/* Прячем служебные поля product/size внутри формы попапа */
.cfp-modal__form .cfp-hidden {
	display: none !important;
}

/* Форма CF7 внутри попапа (перебиваем тёмную тему карточки) */
.cfp-modal__form,
.cfp-modal__form p,
.cfp-modal__form label {
	color: #333;
	font-size: 14px;
	line-height: 1.5;
}

.cfp-modal__form p {
	margin: 0 0 14px;
}

.cfp-modal__form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.cfp-modal__form input[type="text"],
.cfp-modal__form input[type="tel"],
.cfp-modal__form input[type="email"],
.cfp-modal__form input[type="number"],
.cfp-modal__form textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #cfcfcf;
	border-radius: 6px;
	background: #fff;
	color: #222;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none;
}

.cfp-modal__form input:focus,
.cfp-modal__form textarea:focus {
	border-color: #c15c22;
	outline: none;
}

.cfp-modal__form textarea {
	height: 110px;
	min-height: 90px;
	resize: vertical;
}

.cfp-modal__form input[type="submit"] {
	width: 100%;
	margin-top: 4px;
	padding: 14px 24px;
	border: 0;
	border-radius: 6px;
	background: #c15c22;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease;
}

.cfp-modal__form input[type="submit"]:hover {
	background: #a54c1a;
}

.cfp-modal__form .wpcf7-not-valid-tip {
	color: #b00;
	font-size: 13px;
	font-weight: 400;
}

.cfp-modal__form .wpcf7-response-output {
	margin: 8px 0 0;
	padding: 10px 12px;
	font-size: 13px;
}

@media (max-width: 600px) {
	.single-product .cfp-size,
	.single-product .cfp-cta {
		max-width: 100%;
	}

	.single-product .cfp-size__options {
		grid-template-columns: repeat(2, 1fr);
	}
}
/* Скрываем стандартный WooCommerce dropdown */
.single-product select.cfp-wc-hidden-select {
	display: none !important;
}

/* Кнопки размеров у товаров с ценой */
.single-product .cfp-wc-size-options {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	width: 100%;
	margin-top: 8px;
}

/* Скрываем ссылку Clear */
.single-product .reset_variations {
	display: none !important;
}

@media (max-width: 767px) {
	.single-product .cfp-wc-size-options {
		grid-template-columns: repeat(2, 1fr);
	}
}
