/* Product detail gallery tweaks */
.product div.zoom {
	height: clamp(260px, 55vw, 480px);
	background-size: contain;
	background-repeat: no-repeat;
	background-color: #fff;
	transition: background-size .25s ease;
}

.product div.zoom:hover {
	background-size: 160%;
}

@media (min-width: 992px) {
	.product div.zoom {
		height: clamp(320px, 45vw, 440px);
	}
}

.product div.zoom img {
	height: 100%;
	width: 100%;
	object-fit: contain;
}

/* Product card layout normalization */
.card-product {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.card-product .card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.card-product .d-grid.mt-4 {
	margin-top: auto;
}

.card-product h2.fs-6 {
	min-height: 2.75rem;
	overflow: hidden;
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

@media (max-width: 575.98px) {
	.card-product h2.fs-6 {
		min-height: 2.4rem;
	}
}

.card-product .btn-action.favorite-toggle {
	border: 0;
}

/* Header logo styling - prevent header from growing when logo scales */
.navbar.py-lg-5 {
	padding-top: 2rem !important;
	padding-bottom: 2rem !important;
}

.navbar-brand {
	display: flex;
	align-items: center;
	height: 40px;
	overflow: visible;
}

.navbar-brand img {
	max-height: 70px !important;
	width: auto;
	position: relative;
	top: 0;
}

@media (max-width: 991.98px) {
	.navbar.py-lg-5 {
		padding-top: 1rem !important;
		padding-bottom: 0 !important;
	}
	
	.navbar-brand {
		height: 35px;
	}
	
	.navbar-brand img {
		max-height: 55px !important;
	}
}

/* About page content styling for rich text editor content */
.about-content {
	line-height: 1.8;
}

.about-content p {
	margin-bottom: 1rem;
}

.about-content p:last-child {
	margin-bottom: 0;
}

.about-content h1,
.about-content h2,
.about-content h3,
.about-content h4,
.about-content h5,
.about-content h6 {
	margin-top: 1.5rem;
	margin-bottom: 1rem;
	font-weight: 600;
}

.about-content h1:first-child,
.about-content h2:first-child,
.about-content h3:first-child,
.about-content h4:first-child,
.about-content h5:first-child,
.about-content h6:first-child {
	margin-top: 0;
}

.about-content ul,
.about-content ol {
	margin-bottom: 1rem;
	padding-left: 1.5rem;
}

.about-content li {
	margin-bottom: 0.5rem;
}

.about-content strong,
.about-content b {
	font-weight: 600;
}

.about-content em,
.about-content i {
	font-style: italic;
}

.about-content a {
	color: #0d6efd;
	text-decoration: underline;
}

.about-content a:hover {
	color: #0a58ca;
}

.about-content blockquote {
	border-left: 4px solid #dee2e6;
	padding-left: 1rem;
	margin: 1.5rem 0;
	font-style: italic;
	color: #6c757d;
}

.about-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 1rem 0;
}

.about-content table {
	width: 100%;
	margin-bottom: 1rem;
	border-collapse: collapse;
}

.about-content table th,
.about-content table td {
	padding: 0.5rem;
	border: 1px solid #dee2e6;
}

.about-content table th {
	background-color: #f8f9fa;
	font-weight: 600;
}

/* Hero slider fixed height */
.hero-slider .slick-slide > div {
	min-height: 500px;
	height: 500px;
}

@media (max-width: 767.98px) {
	.hero-slider .slick-slide > div {
		min-height: 400px;
		height: 400px;
	}
}