/**
Theme Name: shradhareadymades
Author: Bishal Dangol
Author URI: https://bishaldangol.com.np
Description: This is self customise theme for shradhareadymade.com.np. At Shraddha Readymade, we craft stylish, high-quality girls’ apparel trend-ready and priced for bulk buyers. Whether you\'re a retailer or reseller, our collections move fast and sell faster. For more details contact at bishaldangol.com.np
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shradhareadymades
Template: astra
*/

/* ==========================================================================
   Custom Search Results Grid (search.php)
   ========================================================================== */
.search-results-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin: 30px 0;
}
.search-result-card {
	text-align: center;
}
.search-result-thumb {
	display: block;
	background: #f6f6f6;
	overflow: hidden;
}
.search-result-thumb img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}
.search-result-thumb:hover img {
	transform: scale(1.03);
}
.search-result-title {
	margin: 15px 0 4px;
	font-size: 16px;
	font-weight: 700;
}
.search-result-title a {
	color: #111;
	text-decoration: none;
}
.search-result-category {
	color: #999;
	font-size: 13px;
	text-transform: capitalize;
}
@media (max-width: 991px) {
	.search-results-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 767px) {
	.search-results-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 480px) {
	.search-results-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Custom Sort Dropdown (woocommerce/loop/orderby.php)
   ========================================================================== */
.woocommerce-ordering select.orderby {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 8px 32px 8px 12px;
	font-size: 14px;
	background-color: #fff;
}

/* ==========================================================================
   Custom Category Cards (woocommerce/content-product_cat.php)
   Bold overlay style: full image, centered text on dark gradient
   Hardened with !important to defeat Astra's default grid / lazyload CSS,
   which normally keeps elements at opacity:0 until an <img> tag loads.
   Our cards use background-image spans instead of <img>, so we force
   visibility explicitly here.
   ========================================================================== */
ul.products li.category-card-overlay,
ul.products li.category-card-overlay.product {
	list-style: none !important;
	margin: 0 0 30px !important;
	padding: 0 !important;
	opacity: 1 !important;
	visibility: visible !important;
	background: none !important;
}

.category-card-overlay__link {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	height: 320px !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	text-decoration: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	background-color: #e5e5e5;
}

.category-card-overlay__image {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	display: block !important;
	background-size: cover !important;
	background-position: center !important;
	transition: transform 0.4s ease;
	opacity: 1 !important;
	visibility: visible !important;
	z-index: 1;
}

.category-card-overlay__link:hover .category-card-overlay__image {
	transform: scale(1.08);
}

.category-card-overlay__gradient {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	display: block !important;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.25) 0%,
		rgba(0, 0, 0, 0.15) 45%,
		rgba(0, 0, 0, 0.15) 55%,
		rgba(0, 0, 0, 0.25) 100%
	) !important;
	opacity: 1 !important;
	visibility: visible !important;
	z-index: 2;
}

.category-card-overlay__content {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	padding: 20px !important;
	opacity: 1 !important;
	visibility: visible !important;
	z-index: 3;
}

.category-card-overlay__title {
	display: block !important;
	color: #fff !important;
	font-size: 24px !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	letter-spacing: 1px !important;
	line-height: 1.3 !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.category-card-overlay__count {
	display: block !important;
	margin-top: 8px !important;
	color: rgba(255, 255, 255, 0.85) !important;
	font-size: 13px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	opacity: 1 !important;
	visibility: visible !important;
}

@media (max-width: 480px) {
	.category-card-overlay__link {
		height: 240px !important;
	}
	.category-card-overlay__title {
		font-size: 19px !important;
	}
}



/* ==========================================================================
   Rounded corners on Shop product cards + Single product image
   ========================================================================== */

/* Product image inside the shop/category grid loop */
ul.products li.product img {
	border-radius: 10px !important;
}

/* Optional: round the whole card container too (adds a subtle frame effect
   if you also give it a background or box-shadow) */
ul.products li.product {
	border-radius: 10px;
	overflow: hidden;
}

/* Single product page — main large image */
.single-product div.images img,
.woocommerce-product-gallery__image img {
	border-radius: 10px !important;
}

/* Single product page — thumbnail gallery images below the main image */
.woocommerce-product-gallery__trigger,
.flex-control-thumbs img {
	border-radius: 8px !important;
}