/*
Theme Name: Ecomus Child
Theme URI: https://wpecomus.com
Description: Child theme for safe customizations to the Ecomus theme.
Author: Local Site Customization
Template: ecomus
Version: 1.0.0
Text Domain: ecomus-child
*/

/*
	Add site-specific CSS overrides below.
	Keeping them here avoids editing the parent theme directly.
*/

/* Homepage featured collection category carousel */
.home .ecomus-categories-carousel__item {
	padding: 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
	text-align: center;
}

.home .ecomus-categories-carousel__image {
	margin: 0 auto 16px !important;
}

.home .ecomus-categories-carousel__thumbnail {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 999px !important;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	position: relative;
}

.home .ecomus-categories-carousel__thumbnail img {
	position: absolute;
	top: 50%;
	left: 50%;
	width: auto;
	height: auto;
	max-width: 58%;
	max-height: 58%;
	transform: translate(-50%, -50%);
	object-fit: contain;
	border-radius: 999px !important;
	transition: transform 0.35s ease;
}

.home .ecomus-categories-carousel__item:hover .ecomus-categories-carousel__thumbnail img {
	transform: translate(-50%, -50%) scale(1.05);
}

.home .ecomus-categories-carousel__content {
	text-align: center;
}

.home .ecomus-categories-carousel__title {
	margin-top: 0 !important;
	font-size: 18px !important;
	font-weight: 700;
	line-height: 1.3;
	padding: 0 8px;
}

.home .ecomus-categories-carousel__title a {
	color: #231f20;
}

.home .ecomus-categories-carousel__cat-count,
.home .ecomus-categories-carousel__image .ecomus-button {
	display: none !important;
}

.home .ecomus-categories-carousel .swiper-pagination {
	position: static;
	display: flex;
	align-items: center;
	gap: 0;
	width: min(100%, 1460px);
	height: 4px;
	margin-top: 18px;
	background: #d9d9d9;
	border-radius: 999px;
	overflow: hidden;
}

.home .ecomus-categories-carousel .swiper-pagination .swiper-pagination-bullet {
	flex: 1 1 0;
	height: 100%;
	margin: 0 !important;
	border-radius: 0;
	background: transparent;
	opacity: 1;
}

.home .ecomus-categories-carousel .swiper-pagination .swiper-pagination-bullet:before {
	display: none;
}

.home .ecomus-categories-carousel .swiper-pagination .swiper-pagination-bullet-active {
	background: #111;
}

@media (max-width: 1024px) {
	.home .ecomus-categories-carousel__title {
		font-size: 16px !important;
	}
}

@media (max-width: 767px) {
	.home .elementor-element-3ee2ddd3 .ecomus-categories-carousel__wrapper {
		display: flex;
	}

	.home .elementor-element-3ee2ddd3 .ecomus-categories-carousel .swiper-slide {
		flex: 0 0 calc((100% - 24px) / 3) !important;
		width: calc((100% - 24px) / 3) !important;
	}

	.home .ecomus-categories-carousel__image {
		margin-bottom: 12px !important;
	}

	.home .ecomus-categories-carousel__title {
		font-size: 13px !important;
		padding: 0 4px;
	}

	.home .ecomus-categories-carousel__thumbnail img {
		max-width: 54%;
		max-height: 54%;
	}

	.home .ecomus-categories-carousel .swiper-pagination {
		margin-top: 14px;
		height: 3px;
	}
}

/* Single product gallery fixed image frames */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #e9e9e9;
	overflow: hidden;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 18px;
	background: #fff;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.single-product div.product .ecomus-product-gallery-thumbnails .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #111;
	overflow: hidden;
}

.single-product div.product .ecomus-product-gallery-thumbnails .swiper-slide a,
.single-product div.product .ecomus-product-gallery-thumbnails .woocommerce-product-gallery__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 3 / 4;
	padding: 8px;
	background: #fff;
}

.single-product div.product .ecomus-product-gallery-thumbnails .swiper-slide img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* Header logo sizing */
.header-logo {
	display: flex;
	align-items: center;
}

.header-logo img.logo-dark,
.header-logo img.logo-light {
	display: block;
	width: auto;
	max-height: 72px;
}

@media (max-width: 767px) {
	.header-logo img.logo-dark,
	.header-logo img.logo-light {
		max-height: 52px;
	}
}

/* Mobile hamburger visibility */
@media (max-width: 767px) {
	.site-header__mobile {
		display: block;
	}

	.header-hamburger {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		padding: 0 14px 0 0;
		opacity: 1 !important;
		visibility: visible !important;
	}

	.header-hamburger .ecomus-svg-icon,
	.header-hamburger .hamburger__icon,
	.header-hamburger svg {
		display: block !important;
		color: #ffffff;
		fill: currentColor;
		font-size: 24px;
		width: 24px;
		height: 24px;
		opacity: 1 !important;
		visibility: visible !important;
	}

	body:not(.home) .header-hamburger .ecomus-svg-icon,
	body:not(.home) .header-hamburger .hamburger__icon,
	body:not(.home) .header-hamburger svg {
		color: #111111;
	}
}
