/* Sharipova Shop 1.0 - единый вид магазина на всех сайтах */

/* ---------- Лента товаров ---------- */
ul.products.shp-grid,
.woocommerce ul.products.shp-grid,
.sc-posts.sc-products {
	list-style: none !important;
	margin: 0 auto 48px !important;
	padding: 0 !important;
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	gap: 32px 20px !important;
	width: 100% !important;
	max-width: 1240px;
}
ul.products.shp-grid::before,
ul.products.shp-grid::after { display: none !important; content: none !important; }

ul.products.shp-grid > li.shp-card,
.woocommerce ul.products.shp-grid > li.shp-card {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
	text-align: left !important;
	position: relative;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	min-width: 0;
}

.shp-card__media,
.sc-product-card .sc-product-card__media {
	display: block !important;
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 16px !important;
	overflow: hidden;
	background: #E5E1DD;
	margin: 0 !important;
}
.shp-card__media img,
.sc-product-card .sc-product-card__media img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	margin: 0 !important;
	border-radius: 0 !important;
	transition: transform .5s ease;
}
.shp-card:hover .shp-card__media img,
.sc-product-card:hover .sc-product-card__media img { transform: scale(1.04); }

.shp-card__title,
.woocommerce ul.products li.shp-card .shp-card__title,
.sc-product-card h2 {
	font-size: 15px !important;
	line-height: 1.3 !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	margin: 12px 0 4px !important;
	padding: 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.shp-card__title a,
.sc-product-card h2 a { color: #232327 !important; text-decoration: none !important; }
.shp-card__title a:hover,
.sc-product-card h2 a:hover { color: var(--shp-accent) !important; }

.shp-card__price,
.sc-product-card .sc-product-card__price {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: var(--shp-accent) !important;
	margin: 0 !important;
}
.shp-card__price del { opacity: .5; font-weight: 400; margin-right: 4px; }
.shp-card__price ins { text-decoration: none; }

.shp-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: var(--shp-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1;
	padding: 5px 9px;
	border-radius: 999px;
}

/* Stylocrome: своя разметка карточки, приводим к тому же виду */
.sc-product-card {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	min-width: 0;
}
.sc-product-card > p,
.sc-product-card .sc-btn,
.sc-product-card .sc-post-card__body > p { display: none !important; }
.sc-product-card .sc-product-card__foot { margin: 0 !important; padding: 0 !important; border: 0 !important; display: block !important; }
.sc-product-card .sc-free { color: var(--shp-accent) !important; background: none !important; padding: 0 !important; font-size: inherit !important; }

/* Лишнее над лентой и под ней */
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-pagination { display: none !important; }

.shp-empty { text-align: center; opacity: .7; padding: 40px 0; }

@media (max-width: 1100px) {
	ul.products.shp-grid,
	.sc-posts.sc-products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 820px) {
	ul.products.shp-grid,
	.woocommerce ul.products.shp-grid,
	.sc-posts.sc-products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 20px 10px !important;
	}
	.shp-card__media,
	.sc-product-card .sc-product-card__media { border-radius: 12px !important; }
	.shp-card__title,
	.woocommerce ul.products li.shp-card .shp-card__title,
	.sc-product-card h2 { font-size: 13px !important; margin: 8px 0 2px !important; }
	.shp-card__price,
	.sc-product-card .sc-product-card__price { font-size: 13px !important; }
	.shp-badge { top: 6px; left: 6px; font-size: 9px; padding: 4px 6px; }
}

/* ---------- Страница товара ---------- */
.single-product .product_title,
.single-product .wp-block-post-title {
	font-size: clamp(26px, 3.2vw, 42px) !important;
	line-height: 1.15 !important;
	margin-bottom: 12px !important;
}
.single-product .summary .price,
.single-product .wp-block-woocommerce-product-price {
	color: var(--shp-accent) !important;
	font-weight: 700;
	font-size: 22px !important;
}
.single-product .single_add_to_cart_button,
.single-product form.cart .button,
.single-product .wp-block-woocommerce-add-to-cart-form .button {
	background: var(--shp-accent) !important;
	border-color: var(--shp-accent) !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 14px 32px !important;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: 13px !important;
	line-height: 1.2 !important;
	height: auto !important;
	min-height: 0 !important;
	width: auto !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}
.single-product .summary > .se-badge { display: none !important; }
.single-product .woocommerce-product-details__short-description {
	font-size: 16px;
	line-height: 1.6;
}

/* Вкладок больше нет - закрываем обтекание, чтобы подвал не наезжал */
.single-product div.product::after { content: ''; display: table; clear: both; }

/* Аккордеон */
.shp-acc {
	margin: 28px 0 0;
	border-top: 1px solid #E5E1DD;
	clear: both;
	max-width: 760px;
}
.wp-block-woocommerce-product-details .shp-acc,
.shp-acc:only-child { margin-left: auto; margin-right: auto; }
.shp-acc__item { border-bottom: 1px solid #E5E1DD; }
.shp-acc__head {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 2px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #232327;
}
.shp-acc__head::-webkit-details-marker { display: none; }
.shp-acc__head::marker { content: ''; }
.shp-acc__icon {
	position: relative;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
}
.shp-acc__icon::before,
.shp-acc__icon::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 14px;
	height: 2px;
	margin: -1px 0 0 -7px;
	background: var(--shp-accent);
	border-radius: 2px;
	transition: transform .25s ease;
}
.shp-acc__icon::after { transform: rotate(90deg); }
.shp-acc__item[open] .shp-acc__icon::after { transform: rotate(0deg); }
.shp-acc__body {
	padding: 0 2px 22px;
	font-size: 15px;
	line-height: 1.65;
}
.shp-acc__body > *:first-child { margin-top: 0; }
.shp-acc__body h2 { font-size: 17px !important; margin: 18px 0 8px !important; }
.shp-acc__body h3 { font-size: 15px !important; margin: 16px 0 6px !important; }
.shp-acc__body ul { padding-left: 1.2em; }
.shp-acc__body #reviews h2,
.shp-acc__body .woocommerce-Reviews-title { display: none; }
.shp-specs { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.shp-specs th,
.shp-specs td { text-align: left; padding: 8px 0; border-bottom: 1px dashed #E5E1DD; font-size: 15px; vertical-align: top; }
.shp-specs th { width: 42%; font-weight: 600; padding-right: 12px; }

/* Похожие товары */
.related.products > h2,
.upsells.products > h2,
.shp-related > h2 {
	font-size: 22px !important;
	margin: 56px 0 20px !important;
}
.shp-related { max-width: 1240px; margin: 0 auto; }

@media (max-width: 820px) {
	.single-product .product_title,
	.single-product .wp-block-post-title { font-size: 26px !important; }
	.single-product .summary .price { font-size: 19px !important; }
	.single-product .woocommerce-product-gallery { margin-bottom: 20px !important; }
	.single-product .flex-control-thumbs li { width: 18% !important; }
	.shp-acc__head { font-size: 13px; padding: 16px 0; }
	.shp-acc__body { font-size: 15px; }
}

/* ---------- Stylocrome: логотип на страницах магазина ---------- */
/* WooCommerce ставит img{height:auto}, из-за этого эмблема раздувалась до 240 px */
.sc-header .sc-logo__emblem {
	height: 54px;
	width: auto;
}
