/*
Theme Name: Glozin Child
Theme URI: https://wpglozin.com/
Author: UIXThemes
Author URI: https://uix.store
Description: Multipurpose WooCommerce WordPress Theme
Version: 1.0.0
Requires at least: 5.0
Tested up to: 5.8
Requires PHP: 7.0
License: GNU General Public License v2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glozin
Tags: one-column, two-columns, left-sidebar, right-sidebar, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
Template: glozin
*/

/* ------------------------------------------------------------------
	 Ajax search / dropdown product carousel — image fit tweaks
	 Keep images contained (no cropping) in the ajax results / swiper
	 Scoped to .results-content-products and glozin-swiper to avoid
	 affecting other gallery areas.
	 ------------------------------------------------------------------ */

.results-content-products .product-thumbnail img,
.glozin-swiper .product-thumbnail img,
.results-content-products .gz-ratio--product-image img,
.glozin-swiper .gz-ratio--product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain !important;
	object-position: center center !important;
	display: block;
	background-color: #ffffff; /* visible background when images have transparency */
}

/* Ensure the thumbnail container defines an area for the contained image.
	 If your theme sets a fixed aspect via .gz-ratio this will inherit correctly.
	 Fallback min-height so very small images don't collapse the layout. */
.results-content-products .product-thumbnail,
.glozin-swiper .product-thumbnail {
	min-height: 88px;
}

/* Mobile tweak: keep a reasonable thumbnail height on small screens */
@media (max-width: 520px) {
	.results-content-products .product-thumbnail,
	.glozin-swiper .product-thumbnail {
		min-height: 96px;
	}
}

/* Fix logo distortion for non-logged-in users */
.not-logged-in .header-logo img,
.not-logged-in .logo-dark {
	max-width: 100%;
	height: auto !important;
	object-fit: contain;
}
