/**
 * RiversideHiFi - Single Product Styles
 * Diseño moderno para páginas de producto individual
 */

/* ========================================
   SINGLE PRODUCT PAGE
======================================== */
.rh-single-product-page {
	background-color: transparent;
	padding: 2rem 0 4rem;
	min-height: auto;
}

.rh-single-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 2rem;
	margin-top: 2rem;
}

/* ========================================
   PRODUCT MAIN
======================================== */
.rh-single-main {
	background-color: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rh-single-product {
	padding: 0;
}

.rh-product-main {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	padding: 3rem;
}


.rh-product-content {
    padding: 15px;
}
.rh-product-content .rh-product-title {
    font-size: 18px;
}
.rh-product-content .rh-product-image,
.rh-product-content .rh-product-image a {	
    overflow: hidden;
    display: block;
    position: relative;

}


/* ========================================
   PRODUCT GALLERY
======================================== */
.rh-product-gallery-wrapper {
	position: relative;
}

.woocommerce-product-gallery {
	margin: 0;
	position: relative;
}

.woocommerce-product-gallery__wrapper {
	margin: 0;
	padding: 0;
}

.woocommerce-product-gallery__image {
	margin: 0;
	padding: 0;
}

.woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	object-fit: cover;
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 40px;
	height: 40px;
	background-color: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.woocommerce-product-gallery__trigger:hover {
	background-color: #ffffff;
	transform: scale(1.1);
}

.flex-control-thumbs {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
	padding: 0;
	list-style: none;
}

.flex-control-thumbs li {
	flex: 1;
	margin: 0;
}

.flex-control-thumbs li img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.3s ease;
	border: 2px solid transparent;
}

.flex-control-thumbs li img:hover,
.flex-control-thumbs li img.flex-active {
	opacity: 1;
	border-color: #1a1a1a;
}

/* Sale Badge */
.onsale {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background-color: #e74c3c;
	color: #ffffff;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 20px;
	z-index: 10;
}

/* ========================================
   PRODUCT SUMMARY
======================================== */
.rh-product-summary-wrapper {
	display: flex;
	flex-direction: column;
}

.summary {
	flex: 1;
}

.product_title {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 1rem;
	color: #1a1a1a;
	line-height: 1.3;
}

/* Rating */
.woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e5e5e5;
}

.star-rating {
	display: inline-flex;
	align-items: center;
	color: #f39c12;
	font-size: 0.875rem;
}

.woocommerce-review-link {
	color: #666666;
	font-size: 0.875rem;
	text-decoration: none;
}

.woocommerce-review-link:hover {
	color: #1a1a1a;
}

/* Price */
.price {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 1.5rem;
	display: block;
}

.price del {
	color: #999999;
	font-size: 1.25rem;
	margin-right: 1rem;
}

.price ins {
	text-decoration: none;
	color: #e74c3c;
}

.rh-price-login-required {
	font-size: 1rem;
	font-weight: 600;
	padding: 1rem 1.5rem;
	background-color: #f8f9fa;
	border: 2px dashed #e5e5e5;
	border-radius: 8px;
	text-align: center;
	margin-bottom: 1.5rem;
}

.rh-price-login-required a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.rh-price-login-required a:hover {
	color: #c19a6b;
}

/* Description */
.woocommerce-product-details__short-description {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: #666666;
	margin-bottom: 2rem;
}

.woocommerce-product-details__short-description p {
	margin-bottom: 1rem;
}

/* Add to Cart */
.cart {
	margin-bottom: 2rem;
	padding: 2rem;
	background-color: #f8f9fa;
	border-radius: 12px;
}

.cart .quantity {
	display: inline-flex;
	align-items: center;
	margin-right: 1rem;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
}

.cart .quantity input {
	width: 60px;
	height: 48px;
	text-align: center;
	border: none;
	font-size: 1rem;
	font-weight: 600;
	background-color: #ffffff;
}

.cart .single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 2rem;
	background-color: #1a1a1a;
	color: #ffffff;
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border: 2px solid #1a1a1a;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.cart .single_add_to_cart_button:hover {
	background-color: transparent;
	color: #1a1a1a;
}

.cart .single_add_to_cart_button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.rh-login-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 1rem 2rem;
	background-color: #c19a6b;
	color: #ffffff;
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border: 2px solid #c19a6b;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.rh-login-button:hover {
	background-color: transparent;
	color: #c19a6b;
}

/* Product Meta */
.product_meta {
	padding: 1.5rem 0;
	border-top: 1px solid #e5e5e5;
	font-size: 0.8125rem;
	color: #666666;
}

.product_meta > span {
	display: block;
	margin-bottom: 0.5rem;
}

.product_meta a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.product_meta a:hover {
	color: #c19a6b;
}

/* ========================================
   PRODUCT TABS
======================================== */
.woocommerce-tabs {
	margin-top: 3rem;
	padding: 3rem;
	border-top: 1px solid #e5e5e5;
}

.woocommerce-tabs .tabs {
	display: flex;
	gap: 2rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	border-bottom: 2px solid #e5e5e5;
}

.woocommerce-tabs .tabs li {
	margin: 0;
	padding: 0;
}

.woocommerce-tabs .tabs li a {
	display: block;
	padding: 1rem 0;
	color: #666666;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: all 0.3s ease;
}

.woocommerce-tabs .tabs li.active a,
.woocommerce-tabs .tabs li a:hover {
	color: #1a1a1a;
	border-bottom-color: #1a1a1a;
}

.woocommerce-tabs .panel {
	padding: 2rem 0;
}

.woocommerce-tabs .panel h2 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

/* ========================================
   RELATED & UPSELL PRODUCTS
======================================== */
.related.products,
.upsells.products {
	margin-top: 4rem;
	padding: 3rem;
	background-color: #ffffff;
	border-radius: 12px;
	border: 1px solid #e5e5e5;
}

.related.products h2,
.upsells.products h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 2rem;
	text-align: center;
	color: #1a1a1a;
}

/* Grid 2 columnas para productos relacionados y upsells */
.related.products ul.products,
.upsells.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 1.5rem !important;
	overflow: visible !important;
	flex: none !important;
	padding-bottom: 0 !important;
	scrollbar-width: unset !important;
}

.related.products ul.products li.product,
.upsells.products ul.products li.product {
	flex: none !important;
	min-width: 0 !important;
	width: 100% !important;
}

@media (max-width: 640px) {
	.related.products ul.products,
	.upsells.products ul.products {
		grid-template-columns: 1fr !important;
	}
}

/* ========================================
   SIDEBAR
======================================== */
.rh-single-sidebar {
	position: sticky;
	top: 100px;
	height: fit-content;
}

.rh-sidebar-sticky {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.rh-sidebar-widget {
	background-color: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rh-widget-title {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.9375rem;
	font-weight: 600;
	margin: 0 0 1rem;
	color: #1a1a1a;
}

.rh-widget-title svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.rh-widget-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rh-widget-list li {
	margin-bottom: 0.5rem;
}

.rh-widget-list li:last-child {
	margin-bottom: 0;
}

.rh-widget-list a {
	display: block;
	padding: 0.5rem 0.75rem;
	color: #666666;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.3s ease;
	font-size: 0.875rem;
}

.rh-widget-list a:hover {
	background-color: #f8f9fa;
	color: #1a1a1a;
}

/* Tags */
.rh-tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.rh-sidebar-sticky .rh-tag-item {
	display: inline-block;
	padding: 0.375rem 0.75rem;
	background-color: #f8f9fa;
	color: #666666;
	font-size: 0.875rem;
	text-decoration: none;
	border-radius: 20px;
	transition: all 0.3s ease;
}

.rh-sidebar-sticky .rh-tag-item:hover {
	background-color: #1a1a1a;
	color: #ffffff;
}

/* Share Buttons */
.rh-share-buttons {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}
.rh-sidebar-widget .rh-share-buttons .rh-share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: #ffffff;
	text-decoration: none;
	transition: all 0.3s ease;
}

.rh-share-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rh-share-facebook {
	background-color: #1877f2;
}

.rh-share-twitter {
	background-color: #1da1f2;
}

.rh-share-linkedin {
	background-color: #0077b5;
}

.rh-share-email {
	background-color: #666666;
}

/* Back to Shop */
.rh-sidebar-widget .rh-back-to-shop {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.5rem;
	background-color: #f8f9fa;
	color: #1a1a1a;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.rh-sidebar-widget .rh-back-to-shop:hover {
	background-color: #1a1a1a;
	color: #ffffff;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
	.rh-single-layout {
		grid-template-columns: 1fr;
	}
	
	.rh-single-sidebar {
		position: relative;
		top: 0;
	}
	
	.rh-sidebar-sticky {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		gap: 1rem;
	}
	
	.rh-product-main {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 2rem;
	}
}

@media (max-width: 768px) {
	.rh-single-product-page {
		padding: 1rem 0 2rem;
	}
	
	.product_title {
		font-size: 1.5rem;
	}
	
	.price {
		font-size: 1.5rem;
	}
	
	.rh-product-main {
		padding: 1.5rem;
	}
	
	.woocommerce-tabs {
		padding: 1.5rem;
	}
	
	.related.products,
	.upsells.products {
		padding: 1.5rem;
	}
	
	.rh-sidebar-sticky {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.product_title {
		font-size: 1.25rem;
	}
	
	.price {
		font-size: 1.25rem;
	}
	
	.cart {
		padding: 1rem;
	}
	
	.cart .quantity,
	.cart .single_add_to_cart_button {
		width: 100%;
		margin-right: 0;
		margin-bottom: 0.75rem;
	}
}

/* ========================================
   ELEMENTOR HEADER FIX FOR SINGLE PRODUCT
======================================== */
body.single-product {
	padding-top: 0 !important;
}

/* .rh-single-product-page {
	margin-top: 80px; Ajustar según altura del header
	padding-top: 2rem;
} */

/* ========================================
   SIDEBAR VISIBILITY FIX
======================================== */
.rh-single-sidebar {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.rh-sidebar-sticky {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* ========================================
   LAYOUT FIX
======================================== */
.rh-single-layout {
	display: grid !important;
	grid-template-columns: 1fr 320px !important;
	gap: 2rem !important;
}

/* ========================================
   MOBILE ADJUSTMENTS
======================================== */
@media (max-width: 1024px) {
	.rh-single-product-page {
		margin-top: 60px; /* Ajustar para móvil */
	}
	
	.rh-single-layout {
		grid-template-columns: 1fr !important;
	}
}
