/*
 * Velvet Skin Beauty additions. The template's own stylesheet (style.css) stays unchanged.
 */

/* Logo: replaces the BeShop logo. Footer size matches the template's 61px logo. */
.header-logo a,
.header-logo img {
	display: block;
}
.header-logo img {
	width: 180px;
	height: auto;
}
.footer-top__logo img {
	display: block;
	width: 200px;
	height: auto;
}
@media screen and (max-width: 1200px) {
	.header-logo img {
		width: 145px;
	}
}
@media screen and (max-width: 767px) {
	.header-logo {
		width: 150px;
	}
	.header-logo img {
		width: 150px;
	}
}

/* Light pink fade behind the header, so the logo and menu stay readable over banner photos. Same pink as the template's sticky header. */
.header::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: calc(100% + 80px);
	background: linear-gradient(to bottom, rgba(252, 237, 234, 0.95) 0%, rgba(252, 237, 234, 0.85) 50%, rgba(252, 237, 234, 0) 100%);
	pointer-events: none;
	z-index: -1;
}

/* Section spacing: the template's gaps between sections (180px to 245px on desktop, 110px on tablets) are cut by about 40% on desktop and 30% on tablets. Phones keep the template's 60px. */
@media screen and (min-width: 1280px) {
	.trending {
		padding-top: 110px;
		padding-bottom: 80px;
	}
	.main-logos {
		padding-bottom: 80px;
	}
	.discount {
		padding: 130px 0;
	}
	.discount-about {
		padding: 120px 0;
	}
	.discount-contacts {
		padding: 120px 0 115px;
	}
	.post .discount {
		padding-top: 115px;
		padding-bottom: 105px;
		margin-bottom: 70px;
	}
	.advantages,
	.top-categories,
	.arrivals,
	.latest-news,
	.testimonials,
	.all-categories,
	.faq,
	.post,
	.shop,
	.product,
	.cart,
	.wishlist,
	.login,
	.error-page,
	.profile {
		padding-top: 110px;
	}
	.subscribe,
	.blog {
		margin-top: 110px;
	}
	.promo-video {
		padding-top: 150px;
		margin-bottom: 110px;
	}
	.contacts-info {
		padding-top: 140px;
	}
	.main-logos_contacts {
		padding-bottom: 110px;
	}
	.checkout {
		padding-top: 150px;
	}
	.links-page {
		padding-top: 90px;
	}
	.info-blocks__item-text {
		padding: 130px 116px;
	}
	/* Extra bottom space keeps the link clear of the powder brush at the bottom of this block's background photo. */
	.info-blocks__item-reverse .info-blocks__item-text {
		padding: 165px 10px 225px 0;
	}
}
@media screen and (min-width: 768px) and (max-width: 1279px) {
	.trending,
	.discount {
		padding-top: 80px;
		padding-bottom: 80px;
	}
	.main-logos {
		padding-bottom: 80px;
	}
	.advantages,
	.top-categories,
	.arrivals,
	.latest-news,
	.testimonials,
	.all-categories,
	.faq,
	.post,
	.shop,
	.product,
	.cart,
	.wishlist,
	.login,
	.error-page,
	.profile,
	.checkout {
		padding-top: 80px;
	}
	.subscribe,
	.insta-photos,
	.blog {
		margin-top: 80px;
	}
	.promo-video {
		padding-top: 120px;
		margin-bottom: 80px;
	}
	.contacts-info {
		padding-top: 120px;
	}
}
@media screen and (min-width: 768px) and (max-width: 991px) {
	.promo-video,
	.contacts-info {
		padding-top: 80px;
	}
}

/* Page banner info boxes (About, Contact): two lines per box, the heading and one line of detail. Boxes share the row equally but never get narrower than their text. */
@media screen and (min-width: 768px) {
	.detail-block__items {
		-webkit-flex-wrap: wrap;
		-ms-flex-wrap: wrap;
		flex-wrap: wrap;
		-webkit-box-pack: center;
		-webkit-justify-content: center;
		-ms-flex-pack: center;
		justify-content: center;
		row-gap: 12px;
	}
	.detail-block__item {
		-webkit-box-flex: 1;
		-webkit-flex: 1 1 0;
		-ms-flex: 1 1 0px;
		flex: 1 1 0;
		width: auto;
		min-width: -webkit-max-content;
		min-width: max-content;
		padding: 22px 28px 22px 22px;
	}
	.detail-block__item-icon {
		-webkit-flex-shrink: 0;
		-ms-flex-negative: 0;
		flex-shrink: 0;
		width: 56px;
		height: 47px;
		margin-right: 16px;
	}
	.detail-block__item-icon i {
		font-size: 36px;
	}
	.detail-block__item-info h6,
	.detail-block__item-info > p {
		white-space: nowrap;
	}
}
@media screen and (min-width: 768px) and (max-width: 1279px) {
	.detail-block__item-info {
		font-size: 14px;
	}
	.detail-block__item-info h6 {
		font-size: 16px;
	}
}
@media screen and (max-width: 767px) {
	.detail-block__item {
		max-width: 360px;
	}
	.detail-block__item-icon {
		margin-right: 14px;
	}
	.detail-block__item-info {
		font-size: 15px;
	}
}

/* Home category tabs on phones: two columns instead of one long list. An odd last tab spans both columns. */
@media screen and (max-width: 767px) {
	.trending-tabs .tabs {
		display: -ms-grid;
		display: grid;
		-ms-grid-columns: 1fr 1fr;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
	.trending-tabs li {
		width: auto;
		margin: 0;
	}
	.trending-tabs li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
	.trending-tabs li a {
		padding: 0 8px;
		text-align: center;
	}
}

/* Product sliders show two cards on phones (velvet.js). Smaller type, badge and arrows so the cards fit. */
@media screen and (max-width: 650px) {
	.products-items .products-item__info {
		margin-top: 14px;
	}
	.products-items .products-item__name {
		font-size: 16px;
		line-height: 1.35;
		margin-bottom: 4px;
	}
	.products-items .products-item__cost {
		font-size: 15px;
	}
	.products-items .products-item__cost span {
		font-size: 13px;
		margin-right: 6px;
	}
	.products-items .products-item__sale,
	.products-items .products-item__new {
		padding: 6px 12px;
		font-size: 11px;
	}
	.products-items .slick-arrow {
		height: 44px;
		width: 30px;
	}
	.products-items .slick-arrow i {
		font-size: 16px;
	}
}

/* Text page template (policies): the template's post.html layout, with spacing for plain paragraphs and lists. */
.vsb-text-page .post-content p,
.vsb-text-page .post-content ul,
.vsb-text-page .post-content ol {
	margin-bottom: 20px;
}
.vsb-text-page .post-content ul,
.vsb-text-page .post-content ol {
	padding-left: 22px;
}
.vsb-text-page .post-content ul li {
	list-style: disc;
	margin-bottom: 8px;
}
.vsb-text-page .post-content ol li {
	list-style: decimal;
	margin-bottom: 8px;
}
.vsb-text-page .post-content h2.title6 {
	border-top: 1px solid #eeeeee;
	margin-top: 52px;
	padding-top: 60px;
	margin-bottom: 16px;
}
.vsb-text-page .post-content h2.title6:first-child {
	border-top: 0;
	margin-top: 0;
	padding-top: 0;
}
.vsb-text-page .post-content a {
	color: #d05278;
	text-decoration: underline;
}

/*
 * Product images follow WooCommerce's own image settings
 * (Appearance > Customize > WooCommerce > Product Images: thumbnail cropping and widths).
 * The template gives product frames fixed heights (570px, 435px, 370px, 315px or 440px
 * depending on screen width), which would override that setting. These rules let the
 * frame take the height of the image WooCommerce produces.
 */
.products-item__img,
.shop-main__items .products-item__img,
.product-slider__nav-item {
	height: auto !important;
}
.products-item__img img,
.product-slider__main img,
.product-slider__nav-item img {
	display: block;
	width: 100%;
	height: auto !important;
}

/* Footer logo: the Site Identity logo, shown in white on the dark footer. */
.footer-top__logo img {
	-webkit-filter: brightness(0) invert(1);
	filter: brightness(0) invert(1);
}
/* Long email addresses in the footer Contact column wrap instead of running out of the column. */
.footer-nav__col a[href^="mailto:"] {
	overflow-wrap: anywhere;
}
