/* In your main CSS file, e.g., styles.css or app.css */
html {
    font-size: 16px; /* Default base font size for larger screens */
}

/* Adjust base font size for different screen sizes */
@media (max-width: 1400px) {
    html {
        font-size: 15.5px;
    }
}

@media (max-width: 1199px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    html {
        font-size: 14.5px;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 14px; /* Smaller base font for tablets/larger phones */
    }
}

@media (max-width: 575px) {
    html {
        font-size: 13px; /* Even smaller for extra small screens (phones) */
    }
}

/* Your existing new-arrival-item.css styles */
/* ... (all your provided new-arrival-item.css content) ... */

/* Ensure img-fluid works (Bootstrap class, usually) */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Ensure the image wrapper helps contain the image */
.img-wrap {
    position: relative;
    overflow: hidden; /* Important to clip any overflow if image size is tricky */
    display: flex; /* Helps vertically center images if needed */
    align-items: center;
    justify-content: center;
}

.img-wrap img {
    display: block; /* Removes extra space below image */
    width: 100%; /* Ensure image fills its container */
    height: auto;
}

/* 1. Wrap the <ul> in flex with gutters */
.products-group {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	/* Adjust gap for consistent spacing between items */
	gap: 1rem;
	/* Reduced gap for more compact layout */
}

/* 2. Each card gets horizontal padding + bottom margin */
.products-group .product-item {
	padding: 0;
	margin-bottom: 1rem;
	/* Slightly reduced vertical gutter */
	flex: 0 0 calc(16.666% - 1rem);
	/* Six items per row, accounting for gap */
	max-width: calc(16.666% - 1rem);
	/* Ensure it doesn't grow beyond 16.666% */
	box-sizing: border-box;
	/* Include padding and border in the element's total width and height */
}

/* 3. Image wrapper + badge (same as before) */
.img-wrap {
	position: relative;
}

.input-group>.form-control:not(:last-child),
.input-group>.custom-select:not(:last-child) {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.form-control {
	padding: 0.3rem !important;
}

.product-item {
	margin-bottom: 1rem;
	/* Match the vertical gutter with the overall design */
}

.img-wrap {
	position: relative;
}

/* The wishlist badge in top-right */
.fav-badge {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	padding: 0.25rem;
	border-radius: 50%;
	font-size: 1.25rem;
	color: #000;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .2s;
}

.fav-badge:hover {
	background: rgba(255, 255, 255, 1);
}

.new-badge {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	background: #FFC727;
	color: #222;
	font-weight: 700;
	font-size: 0.85rem;
	/* Slightly reduced font size for badge */
	border-radius: 0 0.5rem 0.5rem 0;
	padding: 0.2em 0.8em;
	/* Slightly reduced padding for badge */
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	letter-spacing: 0.02em;
	display: inline-block;
}

/* Responsive adjustments for 6 products per row */
@media (min-width: 1400px) {

	/* For very large screens, maintain 6 columns */
	.products-group .product-item {
		flex: 0 0 calc(16.666% - 1rem);
		max-width: calc(16.666% - 1rem);
	}
}

@media (max-width: 1399px) {

	/* Adjust for slightly smaller large screens */
	.products-group .product-item {
		flex: 0 0 calc(20% - 1rem);
		/* 5 items per row */
		max-width: calc(20% - 1rem);
	}
}

@media (max-width: 1199px) {

	/* 4 items per row on medium screens */
	.products-group .product-item {
		flex: 0 0 calc(25% - 1rem);
		max-width: calc(25% - 1rem);
	}
}

@media (max-width: 991px) {

	/* 3 items per row on tablet screens */
	.products-group .product-item {
		flex: 0 0 calc(33.333% - 1rem);
		max-width: calc(33.333% - 1rem);
	}
}

@media (max-width: 767px) {

	/* 2 items per row on smaller tablets/large phones */
	.products-group .product-item {
		flex: 0 0 calc(50% - 1rem);
		max-width: calc(50% - 1rem);
	}
}

@media (max-width: 575px) {

	/* 1 item per row on extra small screens (phones) */
	.products-group .product-item {
		flex: 0 0 100%;
		max-width: 100%;
	}
}