/* YASŌRA Foto's: every photo on the site has the same 3:4 shape. */
body .ys-editorial-img img,
body .ys-product .woocommerce-product-gallery__image img,
body .ys-product .flex-control-thumbs img,
body .woocommerce ul.products li.product a img,
body .woocommerce table.shop_table img { aspect-ratio: 3 / 4 !important; object-fit: cover; object-position: center top; height: auto; }
body .ys-ig__item { aspect-ratio: 3 / 4; }

/* Official logo (mask, so it follows the text colour of header and footer). */
body .ys-logo .elementor-heading-title {
	display: inline-block; position: relative; width: 132px; height: 42px; margin: 0 !important;
	font-size: 0 !important; line-height: 0 !important; letter-spacing: 0 !important; color: var(--ys-ink) !important;
	background: currentColor;
	-webkit-mask: var(--ys-logo) center / contain no-repeat; mask: var(--ys-logo) center / contain no-repeat;
}
body .ys-logo .elementor-heading-title a { position: absolute; inset: 0; display: block; }
body .ys-logo--footer .elementor-heading-title { width: 170px; height: 54px; }
@media (max-width: 767px) { body .ys-logo .elementor-heading-title { width: 104px; height: 33px; font-size: 0 !important; letter-spacing: 0 !important; } }

/* Hero: text on the left, in the direction she looks (desktop); over the photo on phones. */
body .ys-hero .ys-hero-col, body .ys-hero .ys-hero-col > .elementor-element-populated { background-position: center 10% !important; background-size: cover !important; }
@media (min-width: 768px) {
	body .ys-hero .ys-hero-col > .elementor-widget-wrap { padding-left: 7% !important; padding-right: 50% !important; align-content: center !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	body .ys-hero .ys-hero-col, body .ys-hero .ys-hero-col > .elementor-element-populated { background-position: 100% 10% !important; }
	body .ys-hero .ys-hero-col > .elementor-widget-wrap { padding-left: 5% !important; padding-right: 48% !important; }
}
@media (max-width: 767px) {
	body .ys-hero .ys-hero-col, body .ys-hero .ys-hero-col > .elementor-element-populated { background-position: center top !important; }
}

body .ys-hero .ys-hero-col .elementor-widget-wrap .elementor-heading-title, body .ys-hero .ys-hero-col .ys-label { text-shadow: 0 1px 22px rgba(0,0,0,.35); }

/* Logged-in view: the sticky header follows the WordPress admin bar, which is 46px and scrolls away on phones. */
@media (max-width: 782px) { body.admin-bar header.elementor-location-header { top: 46px !important; } }
@media (max-width: 600px) { body.admin-bar header.elementor-location-header { top: 0 !important; } }

/* Product grids (shop): the right number of columns per screen. */
@media (max-width: 1024px) {
	body .ys-products-sc .woocommerce ul.products, body .ys-products-sc ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 767px) {
	body .ys-products-sc .woocommerce ul.products, body .ys-products-sc ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 32px 12px !important; }
}
.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .added_to_cart { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 767px) {
	.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .added_to_cart { letter-spacing: .12em !important; padding: 12px 6px !important; }
}

/* Product carousel on the homepage. */
body:has(.ys-hero) .ys-products-sc .woocommerce ul.products, body:has(.ys-hero) .ys-products-sc ul.products {
	display: flex !important; gap: 20px !important; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
body:has(.ys-hero) .ys-products-sc ul.products::-webkit-scrollbar { display: none; }
body:has(.ys-hero) .ys-products-sc ul.products li.product { flex: 0 0 calc((100% - 60px) / 4); min-width: 0; scroll-snap-align: start; }
@media (max-width: 1024px) {
	body:has(.ys-hero) .ys-products-sc ul.products li.product { flex-basis: calc((100% - 40px) / 2.6); }
}
@media (max-width: 767px) {
	body:has(.ys-hero) .ys-products-sc .woocommerce ul.products, body:has(.ys-hero) .ys-products-sc ul.products { gap: 12px !important; }
	body:has(.ys-hero) .ys-products-sc ul.products li.product { flex-basis: 66%; }
}
.ys-pcar { position: relative; }
.ys-pcar__nav { position: absolute; z-index: 3; top: 38%; transform: translateY(-50%); width: 46px; height: 46px; padding: 0 !important; display: flex; align-items: center; justify-content: center; border-radius: 50% !important; border: 1px solid var(--ys-line) !important; background: var(--ys-ivory) !important; color: var(--ys-ink) !important; cursor: pointer; box-shadow: 0 10px 24px -14px rgba(46, 38, 39, .35); transition: opacity .2s, background .2s, color .2s; }
.ys-pcar__nav:hover { background: var(--ys-ink) !important; color: #fff !important; }
.ys-pcar__nav[disabled] { opacity: 0; pointer-events: none; }
.ys-pcar__nav--prev { left: -14px; }
.ys-pcar__nav--next { right: -14px; }
.ys-pcar__nav svg { width: 18px; height: 18px; display: block; }
.ys-pcar__dots { display: flex; justify-content: center; gap: 2px; margin-top: 18px; }
.ys-pcar__dot { width: 24px; height: 24px; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 50% !important; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ys-pcar__dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ys-ink); opacity: .22; transition: opacity .2s; }
.ys-pcar__dot.is-active::before { opacity: 1; }
@media (max-width: 767px) { .ys-pcar__nav { display: none; } }

/* TikTok carousel: the videos play right in the cards. */
.ys-tt__card .ys-tt__player { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; pointer-events: none; background: transparent; opacity: 0; transition: opacity .5s ease; }
.ys-tt__card.is-live .ys-tt__player { opacity: 1; }
.ys-tt__card.is-live::after, .ys-tt__card.is-live .ys-tt__play, .ys-tt__card.is-live .ys-tt__brand, .ys-tt__card.is-live .ys-tt__caption { display: none; }

/* USPs on the product page, under the accordion. */
.ys-pinfo + .ys-usp { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; margin: 0; padding: 36px 0 0; max-width: none; }
