/* ============================================================================
   SHOPPS COMPLETE ENHANCEMENT
   HandicraftsTown-style Design + Color-Coded Stars + Reviews
   Does NOT modify homepage - only shop/category/product pages
   ============================================================================ */

/* ========================================
   COLOR-CODED STAR RATINGS
   ======================================== */

.shopps-star-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0;
}

/* 5 STAR - Dark Green */
.shopps-star-rating .stars-5 .star-rating,
.shopps-star-rating .stars-5 .star-rating:before,
.shopps-star-rating .stars-5 .star-rating span:before {
	color: #2d7a2d !important;
}

/* 4 STAR - Light Green */
.shopps-star-rating .stars-4 .star-rating,
.shopps-star-rating .stars-4 .star-rating:before,
.shopps-star-rating .stars-4 .star-rating span:before {
	color: #4caf50 !important;
}

/* 3 STAR - Yellow */
.shopps-star-rating .stars-3 .star-rating,
.shopps-star-rating .stars-3 .star-rating:before,
.shopps-star-rating .stars-3 .star-rating span:before {
	color: #ffc107 !important;
}

/* 2 STAR - Orange */
.shopps-star-rating .stars-2 .star-rating,
.shopps-star-rating .stars-2 .star-rating:before,
.shopps-star-rating .stars-2 .star-rating span:before {
	color: #ff9800 !important;
}

/* 1 STAR - Red */
.shopps-star-rating .stars-1 .star-rating,
.shopps-star-rating .stars-1 .star-rating:before,
.shopps-star-rating .stars-1 .star-rating span:before {
	color: #f44336 !important;
}

.review-count {
	color: #666;
	font-size: 14px;
	font-weight: 500;
}

/* ========================================
   PRODUCT CARDS - HandicraftsTown Style
   ======================================== */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	background: #ffffff !important;
	border: 1px solid #f0f0f0 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	transition: all 0.3s ease !important;
	position: relative !important;
	box-shadow: none !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
	box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
	transform: translateY(-5px) !important;
	border-color: #D4A574 !important;
}

/* Product Image Container */
.woocommerce ul.products li.product a.woocommerce-loop-product__link,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
	display: block !important;
	position: relative !important;
	overflow: hidden !important;
}

/* Product Images */
.woocommerce ul.products li.product img {
	width: 100% !important;
	height: auto !important;
	transition: transform 0.4s ease !important;
}

.woocommerce ul.products li.product:hover img {
	transform: scale(1.08) !important;
}

/* Discount Badge */
.woocommerce span.onsale {
	position: absolute !important;
	top: 15px !important;
	left: 15px !important;
	background: #D4A574 !important;
	color: #ffffff !important;
	padding: 6px 12px !important;
	border-radius: 4px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.5px !important;
	z-index: 2 !important;
	min-width: auto !important;
	min-height: auto !important;
	line-height: 1 !important;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
	font-family: 'Montserrat', sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #2C2C2C !important;
	margin: 15px 15px 8px !important;
	line-height: 1.4 !important;
}

/* Product Price */
.woocommerce ul.products li.product .price {
	font-family: 'Montserrat', sans-serif !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #2C2C2C !important;
	margin: 0 15px 15px !important;
}

.woocommerce ul.products li.product .price del {
	color: #999 !important;
	font-weight: 400 !important;
	font-size: 14px !important;
	margin-right: 8px !important;
}

.woocommerce ul.products li.product .price ins {
	text-decoration: none !important;
	color: #D4A574 !important;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
	background: #2C2C2C !important;
	color: #ffffff !important;
	border: none !important;
	padding: 10px 20px !important;
	border-radius: 4px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0.5px !important;
	text-transform: uppercase !important;
	transition: all 0.3s ease !important;
	margin: 0 15px 15px !important;
}

.woocommerce ul.products li.product .button:hover {
	background: #D4A574 !important;
	transform: translateY(-2px) !important;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

.woocommerce h1,
.woocommerce h2,
.woocommerce h3 {
	font-family: 'Playfair Display', serif !important;
	color: #2C2C2C !important;
}

.woocommerce,
.woocommerce-page {
	font-family: 'Montserrat', sans-serif !important;
}

/* ========================================
   SINGLE PRODUCT PAGE
   ======================================== */

/* Star ratings on single product */
.woocommerce div.product .woocommerce-product-rating {
	margin-bottom: 20px !important;
}

/* Review section styling */
.woocommerce #reviews #comments ol.commentlist li {
	background: #f8f8f8 !important;
	padding: 25px !important;
	border-radius: 8px !important;
	border-left: 4px solid #D4A574 !important;
	margin-bottom: 20px !important;
}

.woocommerce #reviews #comments ol.commentlist li .star-rating {
	margin-bottom: 10px !important;
}

/* Review author name */
.woocommerce #reviews #comments ol.commentlist li .meta {
	font-weight: 700 !important;
	color: #2C2C2C !important;
	margin-bottom: 10px !important;
}

/* ========================================
   BUTTONS ENHANCEMENT
   ======================================== */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: #D4A574 !important;
	color: #ffffff !important;
	border: none !important;
	padding: 14px 30px !important;
	border-radius: 4px !important;
	font-family: 'Montserrat', sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0.5px !important;
	text-transform: uppercase !important;
	transition: all 0.3s ease !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: #B8935F !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3) !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
	.woocommerce ul.products li.product {
		margin-bottom: 20px !important;
	}
	
	.woocommerce ul.products li.product .button {
		width: calc(100% - 30px) !important;
		text-align: center !important;
	}
}

/* ========================================
   ENSURE NO HOMEPAGE CHANGES
   ======================================== */

/* Only apply to shop/category pages, NOT homepage */
body.home .woocommerce ul.products,
body.home .products {
	/* Homepage products stay as they are */
}
