/* ============================================================================
   SHOPPS LUXURY THEME - Main Stylesheet
   Version: 1.0.0
   Better than HandicraftsTown with color-coded star ratings
   ============================================================================ */

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

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

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

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

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

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

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

.star-rating {
	position: relative;
	display: inline-block;
	font-size: 16px;
	line-height: 1;
}

.star-rating:before {
	content: "★★★★★";
	color: #e0e0e0;
	letter-spacing: 3px;
}

.star-rating span {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
}

.star-rating span:before {
	content: "★★★★★";
	letter-spacing: 3px;
}

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

/* Comment star rating */
.comment-star-rating {
	display: flex;
	gap: 2px;
	margin-bottom: 10px;
	font-size: 18px;
}

.comment-star-rating .star {
	color: #e0e0e0;
}

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

.products .product {
	background: #ffffff;
	border: 1px solid #f0f0f0;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
	position: relative;
}

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

/* Product image */
.products .product .woocommerce-loop-product__link {
	display: block;
	position: relative;
	overflow: hidden;
}

.products .product img {
	width: 100%;
	height: auto;
	transition: transform 0.4s ease;
}

.products .product:hover img {
	transform: scale(1.08);
}

/* Second image on hover */
.products .product .woocommerce-loop-product__link img:last-child {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.products .product:hover .woocommerce-loop-product__link img:last-child {
	opacity: 1;
}

/* Discount badge */
.onsale {
	position: absolute;
	top: 15px;
	left: 15px;
	background: #D4A574;
	color: #ffffff;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	z-index: 2;
}

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

.products .product .price {
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #2C2C2C;
	margin: 0 15px 15px;
}

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

.products .product .price ins {
	text-decoration: none;
	color: #D4A574;
}

/* Quick View Button */
.shopps-quick-view-btn {
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	opacity: 0;
	background: #2C2C2C;
	color: #ffffff;
	border: none;
	padding: 10px 25px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 3;
}

.products .product:hover .shopps-quick-view-btn {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

.shopps-quick-view-btn:hover {
	background: #D4A574;
}

/* ========================================
   TYPOGRAPHY & FONTS
   ======================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: 'Playfair Display', serif;
	color: #2C2C2C;
}

body {
	font-family: 'Montserrat', sans-serif;
	color: #666;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
	background: #ffffff;
	box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.main-navigation ul li a {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #2C2C2C;
	transition: color 0.3s ease;
}

.main-navigation ul li a:hover {
	color: #D4A574;
}

/* ========================================
   QUICK VIEW MODAL
   ======================================== */

.shopps-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
}

.shopps-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.8);
}

.shopps-modal-content {
	position: relative;
	max-width: 900px;
	margin: 50px auto;
	background: #ffffff;
	border-radius: 8px;
	max-height: 90vh;
	overflow-y: auto;
}

.shopps-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 30px;
	color: #2C2C2C;
	cursor: pointer;
	z-index: 10;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.shopps-modal-close:hover {
	background: #f0f0f0;
	color: #D4A574;
}

.shopps-modal-body {
	padding: 40px;
}

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

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

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

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

@media (max-width: 768px) {
	.products .product {
		margin-bottom: 20px;
	}
	
	.shopps-quick-view-btn {
		position: static;
		transform: none;
		opacity: 1;
		width: 100%;
		margin-top: 10px;
	}
}
