/*
Theme Name:   Woodmart Child
Description:  Woodmart Child Theme
Author:       XTemos
Author URI:   http://xtemos.com
Template:     woodmart
Version:      1.0.0
Text Domain:  woodmart
*/

/* Custom Single Product Layout Styles */

.custom-product-layout {
	margin: 30px 0;
}

.product-main-wrapper {
	display: flex;
	flex-direction: row;
	gap: 40px;
	margin-bottom: 40px;
}

.product-details-column {
	flex: 1;
	max-width: 50%;
}

.product-images-column {
	flex: 1;
	max-width: 50%;
}

.product-details-inner {
	padding: 20px 0;
}

/* Product Title */
.custom-product-title-wrapper {
	margin-bottom: 15px;
}

.custom-product-title-wrapper .product_title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 10px;
	line-height: 1.4;
}

.custom-product-title-wrapper .product_code {
	display: block;
	font-size: 16px;
	font-weight: 400;
	color: #666;
	margin-top: 5px;
}

/* Product Meta */
.custom-product-meta {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
	font-size: 14px;
}

.custom-product-meta .product-id,
.custom-product-meta .product-tag {
	display: flex;
	gap: 8px;
}

.custom-product-meta .meta-label {
	color: #666;
}

.custom-product-meta .meta-value {
	color: #333;
	font-weight: 500;
}

/* Rating */
.woocommerce-product-rating {
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.woocommerce-product-rating .star-rating {
	margin: 0;
}

/* Authenticity Guarantee */
.authenticity-guarantee {
	background: #f0f8ff;
	padding: 12px 15px;
	border-radius: 5px;
	margin-bottom: 20px;
	font-size: 14px;
	color: #0066cc;
	font-weight: 500;
}

/* Product Features */
.custom-product-features {
	margin-bottom: 25px;
}

.custom-product-features .features-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 15px;
	color: #333;
}

.product-features-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.product-feature-item {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
	display: flex;
	gap: 10px;
	font-size: 14px;
}

.product-feature-item:last-child {
	border-bottom: none;
}

.product-feature-item .feature-label {
	color: #666;
	font-weight: 500;
}

.product-feature-item .feature-value {
	color: #333;
}

/* Color Selection */
.custom-color-selection {
	margin-bottom: 25px;
}

.color-selection-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 15px;
	color: #333;
}

.color-swatches {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.color-swatch {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 3px solid transparent;
	cursor: pointer;
	position: relative;
	transition: all 0.3s ease;
	padding: 0;
	background: none;
}

.color-swatch.selected {
	border-color: #0066cc;
	box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.color-swatch .color-name {
	position: absolute;
	top: -25px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 11px;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.3s;
}

.color-swatch:hover .color-name {
	opacity: 1;
}

/* Price and Add to Cart */
.woocommerce div.product .summary .price {
	font-size: 28px;
	font-weight: 700;
	color: #333;
	margin-bottom: 20px;
	display: block;
}

.woocommerce div.product form.cart {
	margin-bottom: 25px;
}

.woocommerce div.product form.cart .quantity {
	margin-left: 15px;
}

.woocommerce div.product form.cart .button {
	background: #0066cc;
	color: #fff;
	padding: 15px 40px;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.3s;
}

.woocommerce div.product form.cart .button:hover {
	background: #0052a3;
}

/* Service Icons */
.custom-service-icons {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
	margin-top: 25px;
}

.service-icon-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	background: #f9f9f9;
	border-radius: 8px;
	transition: background 0.3s;
}

.service-icon-item:hover {
	background: #f0f0f0;
}

.service-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #0066cc;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}

.service-title {
	font-size: 13px;
	color: #333;
	line-height: 1.4;
}

/* Product Gallery */
.custom-product-gallery {
	position: relative;
}

.product-gallery-wrapper {
	display: flex;
	gap: 15px;
	flex-direction: row-reverse; /* RTL: thumbnails on right */
}

.main-image-container {
	flex: 1;
	position: relative;
}

.main-image-container .main-image {
	margin: 0;
	position: relative;
}

.main-image-container img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.product-badge.new-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: #ff6600;
	color: #fff;
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	z-index: 10;
}

.thumbnails-gallery {
	width: 80px;
	flex-shrink: 0;
}

.thumbnails-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 500px;
	overflow-y: auto;
	padding-right: 5px;
}

.thumbnail-item {
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 5px;
	overflow: hidden;
	transition: all 0.3s;
}

.thumbnail-item.active {
	border-color: #0066cc;
}

.thumbnail-item img {
	width: 100%;
	height: auto;
	display: block;
}

/* Product Description */
.custom-product-description {
	margin: 40px 0;
	padding: 30px 0;
	border-top: 1px solid #eee;
}

.description-heading {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 20px;
	color: #333;
}

.description-content {
	font-size: 15px;
	line-height: 1.8;
	color: #555;
}

/* Related Products */
.related-and-upsells {
	margin: 40px 0;
}

.related-and-upsells h2 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 25px;
	color: #333;
}

/* Reviews Section */
.custom-reviews-section {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #eee;
}

.reviews-section-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 20px;
	color: #333;
}

.overall-rating-summary {
	margin-bottom: 25px;
	font-size: 16px;
	color: #666;
}

.overall-rating-summary .rating-label {
	font-weight: 500;
}

.custom-review-form-wrapper {
	margin-top: 30px;
	padding: 25px;
	background: #f9f9f9;
	border-radius: 8px;
}

.custom-review-form-wrapper .comment-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.custom-review-form-wrapper .comment-form-author,
.custom-review-form-wrapper .comment-form-email {
	margin-bottom: 15px;
}

.custom-review-form-wrapper .comment-form-comment {
	grid-column: 1 / -1;
}

.custom-review-form-wrapper label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	color: #333;
}

.custom-review-form-wrapper input[type="text"],
.custom-review-form-wrapper input[type="tel"],
.custom-review-form-wrapper textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 14px;
}

.custom-review-form-wrapper .form-submit {
	grid-column: 1 / -1;
	margin-top: 15px;
}

.custom-review-form-wrapper .submit {
	background: #0066cc;
	color: #fff;
	padding: 12px 30px;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s;
}

.custom-review-form-wrapper .submit:hover {
	background: #0052a3;
}

.woocommerce-Reviews-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 25px;
	color: #333;
}

/* Custom Rating Display */
.custom-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.custom-rating .rating-text {
	display: flex;
	gap: 15px;
	align-items: center;
}

.custom-rating .rating-score {
	font-weight: 600;
	color: #333;
}

.custom-rating .review-count {
	color: #666;
	font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.product-main-wrapper {
		flex-direction: column;
	}
	
	.product-details-column,
	.product-images-column {
		max-width: 100%;
	}
	
	.product-gallery-wrapper {
		flex-direction: column;
	}
	
	.thumbnails-gallery {
		width: 100%;
	}
	
	.thumbnails-container {
		flex-direction: row;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
	}
	
	.custom-service-icons {
		grid-template-columns: 1fr;
	}
}

/* RTL Support */
body.rtl .product-gallery-wrapper {
	flex-direction: row; /* RTL: thumbnails stay on right of main image */
}

body.rtl .product-badge.new-badge {
	right: auto;
	left: 15px;
}

/* Ensure proper RTL layout for main wrapper */
body.rtl .product-main-wrapper {
	direction: rtl;
}

body.rtl .product-details-column {
	order: 2;
}

body.rtl .product-images-column {
	order: 1;
}

/* Additional Polish */
.woocommerce div.product .summary {
	padding: 0;
}

.woocommerce div.product .summary .summary-inner {
	padding: 0;
}