.cww-wrapper { position: relative; }
.cww-products-grid { display: grid; gap: 20px; }
.cww-wrapper.layout-list .cww-products-grid { display: flex; flex-direction: column; }
.cww-wrapper.layout-list .cww-product-card { display: flex; align-items: center; gap: 20px; }

.cww-product-card { cursor: pointer; text-align: center; border: 1px solid #eee; padding: 10px; border-radius: 8px; transition: 0.3s; }
.cww-product-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.cww-product-card img { max-width: 100%; height: auto; object-fit: contain; }
.cww-title { font-size: 16px; margin: 10px 0; }
.cww-price { font-weight: bold; color: #333; }

.cww-load-more-wrapper { text-align: center; margin-top: 30px; }
.cww-load-more-btn { padding: 10px 30px; background: #333; color: #fff; border: none; cursor: pointer; border-radius: 5px; }

/* Popup */
.cww-popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 99999; display: none; justify-content: center; align-items: center; }
.cww-popup-content { position: relative; width: 90%; max-width: 800px; background: transparent; padding: 40px; }
.cww-close-popup { position: absolute; top: 0; right: 0; width: 30px; cursor: pointer; z-index: 10; }
.cww-gallery-swiper { width: 100%; height: 60vh; }
.cww-gallery-swiper .swiper-slide { display: flex; justify-content: center; align-items: center; }
.cww-gallery-swiper .swiper-slide img { max-height: 100%; max-width: 100%; object-fit: contain; }
.cww-swiper-next, .cww-swiper-prev { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; cursor: pointer; z-index: 10; }
.cww-swiper-next { left: 0; }
.cww-swiper-prev { right: 0; }
.cww-popup-info { text-align: center; color: #fff; margin-top: 20px; font-size: 16px; }

/* Product card */
.cww-wrapper .cww-products-grid .cww-product-card{
	background-color:#362929;
	border-style:none;
	border-top-left-radius:15px;
	border-top-right-radius:15px;
	border-bottom-left-radius:15px;
	border-bottom-right-radius:15px;
}

/* Heading */
.cww-products-grid .cww-product-card h3{
	font-weight:700;
	font-size:15px;
}

/* Bdi */
.cww-products-grid .cww-price bdi{
	font-weight:600;
	color:#a39393;
}

/* Popup info */
.cww-wrapper .cww-popup-info{
	background-color:#082904;
	padding-top:10px;
	padding-bottom:10px;
	padding-right:5px;
	padding-left:5px;
	border-top-left-radius:12px;
	border-top-right-radius:12px;
	border-bottom-left-radius:12px;
	border-bottom-right-radius:12px;
	border-style:solid;
	border-width:1px;
	border-color:#9cff9e;
	color:#9cff9e;
}

/* Close popup */
.cww-wrapper .cww-close-popup{
	border-top-left-radius:1000px;
	border-top-right-radius:1000px;
	border-bottom-left-radius:1000px;
	border-bottom-right-radius:1000px;
	background-color:#feadad;
}

.swiper-slide-active img{
	border-top-left-radius:15px;
	border-top-right-radius:15px;
	border-bottom-left-radius:15px;
	border-bottom-right-radius:15px;
}

.swiper-slide-prev img{
	border-top-left-radius:15px;
	border-top-right-radius:15px;
	border-bottom-left-radius:15px;
	border-bottom-right-radius:15px;
}

.swiper-slide-next img{
	border-top-left-radius:15px;
	border-top-right-radius:15px;
	border-bottom-left-radius:15px;
	border-bottom-right-radius:15px;
}

/* Swiper prev */
.cww-wrapper .swiper-backface-hidden .cww-swiper-prev{
	border-top-left-radius:1000px;
	border-top-right-radius:1000px;
	border-bottom-left-radius:1000px;
	border-bottom-right-radius:1000px;
	background-color:rgba(0,0,0,0.48);
	border-width:1px;
	border-color:rgba(255,255,255,0.21);
	border-style:solid;
}

/* Swiper next */
.cww-wrapper .swiper-backface-hidden .cww-swiper-next{
	border-top-left-radius:1000px;
	border-top-right-radius:1000px;
	border-bottom-left-radius:1000px;
	border-bottom-right-radius:1000px;
	background-color:rgba(0,0,0,0.48);
	border-width:1px;
	border-color:rgba(255,255,255,0.21);
	border-style:solid;
}

/* Swiper next */
#content .page-content .elementor .e-con-boxed .e-con-inner .elementor-widget-custom_woo_widget .elementor-widget-container .cww-wrapper .cww-popup-overlay .cww-popup-content .swiper-backface-hidden .cww-swiper-next{
	backdrop-filter:blur(10px) !important;
}

.swiper-slide{
	transition: filter 0.5s ease-in-out;
}

.swiper-slide-next{
	filter: brightness(0.21);
}

.swiper-slide-active{
	filter: brightness(1);
}

.swiper-slide-prev{
	filter: brightness(0.21);
}

/* Thumbnail Image */
.cww-products-grid .cww-img-wrapper .attachment-full{
	border-top-left-radius:12px;
	border-top-right-radius:12px;
	border-bottom-left-radius:12px;
	border-bottom-right-radius:12px;
}

/* Product img */
.cww-products-grid .cww-product-img .cww-product-img{
	border-top-left-radius:12px;
	border-top-right-radius:12px;
	border-bottom-left-radius:12px;
	border-bottom-right-radius:12px;
}

/* Product img */
.cww-products-grid .cww-product-card .cww-img-wrapper > img.cww-product-img{
	border-top-left-radius:12px;
	border-top-right-radius:12px;
	border-bottom-left-radius:12px;
	border-bottom-right-radius:12px;
}

/* Product img */
.cww-products-grid picture .cww-product-img{
	border-top-left-radius:12px;
	border-top-right-radius:12px;
	border-bottom-left-radius:12px;
	border-bottom-right-radius:12px;
}

/* ========================================== */
/* Stock Badge - پایین سمت راست تصویر */
/* ========================================== */
.cww-img-wrapper {
    position: relative;
}

.cww-stock-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
    backdrop-filter: blur(4px);
}

.stock-badge-in {
    background: rgba(34, 139, 34, 0.85);
    color: #fff;
}

.stock-badge-out {
    background: rgba(220, 53, 69, 0.85);
    color: #fff;
}

.stock-badge-unlimited {
    background: rgba(0, 100, 200, 0.85);
    color: #fff;
}
/* ========================================== */
/* Stock Badge - پایین سمت راست تصویر */
/* ========================================== */
.cww-img-wrapper {
    position: relative;
}

.cww-stock-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
    backdrop-filter: blur(4px);
}

/* موجودی کم (1 یا 2 عدد مونده) - سبز */
.stock-badge-low {
    background: rgba(34, 139, 34, 0.85);
    color: #fff;
}

/* موجودی زیاد (فقط عدد) - نارنجی/آبی */
.stock-badge-number {
    background: rgba(255, 140, 0, 0.85);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    min-width: 35px;
    text-align: center;
    padding: 4px 8px;
}

/* ناموجود - قرمز */
.stock-badge-out {
    background: rgba(220, 53, 69, 0.85);
    color: #fff;
}

/* نامحدود - آبی */
.stock-badge-unlimited {
    background: rgba(0, 100, 200, 0.85);
    color: #fff;
}