/*
Theme Name:     OllieChild
Theme URI:
Description:    Ollie child theme.
Author:         Me
Author URI:
Template:       ollie
Version:        0.1.0
*/


html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

html:not(.is-loaded) {
	overflow: hidden;
}

html.is-loaded .page-loader {
	display: none;
}

.overflow-hidden {
	overflow: hidden;
}

body {
	--dvh: 100vh;
	--header--height: 0px;
	/* Cookies styles */
	--cc-btn-primary-bg: var(--wp--preset--color--primary);
	--cc-btn-primary-hover-bg: var(--wp--preset--color--main);
	--cc-toggle-bg-on: var(--wp--preset--color--main);
	--cc-text: var(--wp--preset--color--main);
	--cc-btn-primary-text: var(--wp--preset--color--base);
	--cc-btn-primary-text: var(--cc-bg);
	--cc-btn-primary-hover-text: var(--cc-btn-primary-text);
	--cc-btn-secondary-text: var(--cc-text);
	--cc-btn-secondary-hover-text: var(--cc-btn-secondary-text);
	--cc-toggle-bg-on: var(--cc-btn-primary-bg);
	--swiper-navigation-sides-offset: 20px;
	--swiper-navigation-size: 15px;

	overflow-x: hidden;
}

.rounded {
	border-radius: 12px;
}

.page-loader {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh !important;
	width: 100vw !important;
	margin: 0 !important;
	padding: 0 !important;
	z-index: 1000002;
}

.lds-dual-ring {
	display: inline-block;
	width: 80px !important;
	height: 80px !important;
}

.lds-dual-ring:after {
	content: " ";
	display: block;
	width: 48px;
	height: 48px;
	margin: 8px;
	border-radius: 50%;
	border: 6px solid var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary) var(--wp--preset--color--primary) var(--wp--preset--color--primary) transparent;
	animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.list-style-none {
	list-style: none;
}

iframe {
	max-width: 100%;
}

.is-whatsap-button {
	position: fixed;
	bottom: var(--wp--preset--spacing--small);
	right: var(--wp--preset--spacing--small);
	z-index: 2;
}

.is-whatsap-button svg {
	height: 1.7em !important;
	width: 1.7em !important;
}

.on-mobile .single-product .is-whatsap-button {
	bottom: calc(var(--wp--preset--spacing--small) + 80px);
}

.woocommerce-checkout .is-whatsap-button,
.woocommerce-cart .is-whatsap-button {
	display: none;
}

.swiper-button-next:after,
.swiper-button-prev:after {
	padding: 10px 14px;
	background-color: var(--wp--preset--color--main);
	border-radius: 50%;
	color: var(--wp--preset--color--base);
}

.swiper .swiper-slide.swiper-slide {
	flex-shrink: 0;
	width: 100%;
	height: 100%;
	position: relative;
	transition-property: transform;
}

.swiper .swiper-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 1;
	display: flex;
	transition-property: transform;
	box-sizing: content-box;
	padding-inline-start: unset;
}

.hidden {
	display: none !important;
}

.is-rounded {
	border-radius: 5px;
}

.is-full {
	width: 100% !important;
}

.no-decoration,
button {
	text-decoration: none !important;
}

.wp-site-blocks a {
	text-decoration: none !important;
}

header.site-header.is-scrolled {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 2;
	backdrop-filter: blur(5px);
}

header.site-header.is-scrolled .is-sticky .wp-block-navigation__responsive-container.is-menu-open {
	height: var(--dvh);
}

header .wp-block-site-logo {
	z-index: 100001;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-button.cta-button {
	position: fixed;
	width: calc(100% - calc(2 * var(--wp--preset--spacing--small)));
	left: 0;
	bottom: 0;
	margin: var(--wp--preset--spacing--small);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-button.cta-button a {
	width: 100%;
	padding: 15px;
}

.is-menu-open.has-modal-open {
	padding: var(--wp--preset--spacing--small);
}

.wp-block-navigation__responsive-container-close {
	margin-top: var(--wp--preset--spacing--small);
}

.is-menu-open.has-modal-open .wp-block-navigation__container {
	margin-top: var(--header--height, 0) !important;
}

.shadow-1 {
	box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
}

[style*="min-height:100vh"]:not(.skip-dvh) {
	--height: calc(var(--dvh, 100vh) - var(--header--height, 0px));
	min-height: var(--height, 100vh) !important;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
	.column-mobile-reverse {
		flex-direction: column-reverse;
	}

	.row-mobile-reverse {
		flex-direction: row-reverse;
	}

	.hide-on-mobile {
		display: none !important;
	}

	.wp-block-cover:not(.has-aspect-ratio) {
		min-height: 130px !important;
	}
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
	.hide-on-desktop {
		display: none !important;
	}

	.wp-block-cover:not(.has-aspect-ratio) {
		min-height: 230px !important;
	}
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {}


.is-menu-open.has-modal-open .wp-block-navigation__container>li:first-child>a {
	max-width: 100%;
}

.wp-block-navigation__responsive-container-open:not(.always-shown) {
	display: block;
}

.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
	display: none;
}

@media only screen and (min-width: 855px) {
	.wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: none;
	}

	.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: block;
	}
}

@media only screen and (max-width: 854px) {
	header .row-mobile-reverse {
		flex-direction: row-reverse;
	}

}

.no-scroll {
	overflow: hidden;
}

.on-desktop .share-button {
	display: none !important;
}

/* The lightbox overlay (already good) */
.simple-lightbox-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000;
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 9999999;
	overflow: hidden;
}

/* The lightbox image container (maintains image centering) */
.simple-lightbox-container {
	max-width: 90%;
	max-height: 90%;
	position: relative;
	/* This is needed for the image, but we'll re-parent the arrows */
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: visible;
}

/* The image itself (already good) */
.simple-lightbox-image {
	max-width: 100% !important;
	max-height: 100% !important;
	width: auto !important;
	height: auto !important;
	display: block;
	object-fit: contain;
	cursor: zoom-in;
	/* Change cursor to indicate zoomability */
	transition: transform 0.3s ease;
	/* Smooth transition for the zoom effect */
}

/* The close button (positioned relative to the overlay) */
.simple-lightbox-close {
	position: absolute;
	top: 10px;
	right: 15px;
	color: var(--wp--preset--color--primary);
	font-size: 35px;
	font-weight: bold;
	cursor: pointer;
	text-decoration: none;
	line-height: 1;
	z-index: 10001;
}

.simple-lightbox-close:hover {
	color: #bbb;
}

/* The navigation arrows (positioned relative to the overlay) */
.simple-lightbox-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: var(--wp--preset--color--primary);
	font-size: 20px;
	cursor: pointer;
	user-select: none;
	z-index: 10001;
}

.simple-lightbox-arrow.prev {
	left: 25px;
}

.simple-lightbox-arrow.next {
	right: 25px;
}

/* The magnifying glass on the product gallery images */
.woocommerce-product-gallery__image a {
	position: relative;
	display: block;
}

/* Magnifying glass icon: Always visible */
.woocommerce-product-gallery__image a::after {
	content: '\1F50D';
	font-size: 1em;
	position: absolute;
	top: 10px;
	right: 10px;
	color: #fff;
	opacity: 1;
	/* Fix: changed from 0 to 1 to make it always visible */
	transition: none;
	/* Fix: removes the fade-in effect */
	cursor: pointer;
	pointer-events: none;
}

/* Hide the default WooCommerce magnifying glass/zoom */
.woocommerce-product-gallery__image a:hover img {
	cursor: default;
}
/* Brands slider - normalize logo sizes */
.brands-slider .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
}
.brands-slider .swiper-slide img {
	width: 120px !important;
	height: 120px !important;
	object-fit: contain;
}
