/* csb-single-product.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
	--csb-primary-color: #127d6b;
	--csb-accent-color: #e74c3c;
	--csb-text-color: #333;
	--csb-border-color: #eee;
	--csb-bg-light: #f9f9f9;
}

.csb-single-product-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0px 20px 40px;
	font-family: 'Inter', sans-serif;
	color: var(--csb-text-color);
}

.csb-go-back-wrapper {
	margin-bottom: 10px;
}

.csb-go-back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #777;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: color 0.2s;
}

.csb-go-back-link:hover {
	color: var(--csb-primary-color);
}

.csb-go-back-link svg {
	width: 18px;
	height: 18px;
}

.csb-product-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 60px;
	margin-bottom: 60px;
}

.csb-product-gallery-column {
	flex: 1.2;
	min-width: 350px;
}
.csb-product-summary-column {
	flex: 1;
	min-width: 350px;
}

/* Gallery */
.csb-gallery-wrapper {
	position: relative;
}

.csb-main-image {
	position: relative;
	background: transparent;
	margin-bottom: 20px;
	text-align: center;
}

.csb-main-image img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.csb-sku-tag {
	position: absolute;
	top: 15px;
	left: 15px;
	background: rgba(0,0,0,0.4);
	color: #fff;
	padding: 4px 10px;
	font-size: 11px;
	border-radius: 20px;
	z-index: 10;
}

.csb-thumbnails {
	display: flex;
	gap: 10px;
}

.csb-thumbnails .csb-gallery-image-wrapper {
    width: calc(25% - 7.5px) !important;
    flex: 0 0 calc(25% - 7.5px) !important;
    max-width: calc(25% - 7.5px) !important;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    height: auto;
    background-color: transparent;
    display: block;
}

.csb-thumbnails .csb-gallery-image-wrapper img {
    width: auto !important;
    max-width: 100% !important;
	height: auto !important;
    max-height: 100% !important;
	aspect-ratio: auto !important;
	object-fit: contain !important;
	display: block;
}

.csb-thumbnails .woocommerce-product-gallery__image:hover {
	border-color: var(--csb-primary-color);
}

/* Summary */
.csb-summary-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 15px;
}

.csb-top-icons {
	display: flex;
	gap: 10px;
}

.csb-summary-eyebrow {
	font-size: 11px;
	text-transform: uppercase;
	color: var(--csb-primary-color);
	font-weight: 700;
	margin-bottom: 0;
	letter-spacing: 1px;
}

.csb-product-title {
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 15px;
	line-height: 1.2;
}

.csb-price-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 25px;
}

.csb-price-original {
	text-decoration: line-through;
	color: #999;
	font-size: 18px;
}

.csb-price-sale {
	color: var(--csb-primary-color);
	font-weight: 700;
	font-size: 14px;
}

.csb-price-current {
	font-size: 32px;
	font-weight: 700;
}

.csb-tax-note {
	font-size: 12px;
	color: #777;
}

/* Size Selector & Variations Form */
.csb-size-selector-wrap {
	margin-bottom: 20px;
}

.csb-size-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 15px;
}

.csb-size-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #999;
}

.csb-size-chart-link {
	color: var(--csb-primary-color);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

/* Reset Table for variations */
table.variations {
	width: 100%;
	border: none;
}
table.variations tbody,
table.variations tr,
table.variations th,
table.variations td {
	display: block;
	border: none;
	padding: 0;
	margin: 0;
}

/* Display WC Variation Label cleanly */
table.variations th.label, table.variations td.label {
	display: block !important;
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #999;
	padding: 0 0 10px 0 !important;
	width: 100%;
}
table.variations td.value {
	padding-bottom: 25px;
}
a.reset_variations {
    font-size: 12px;
    color: #e74c3c;
    text-decoration: none;
    margin-left: 10px;
}

/* Pill Swatches */
.csb-pills-wrapper {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}
.csb-pill {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 20px;
	min-width: 40px;
	padding: 0 12px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	color: #333;
	box-sizing: border-box;
}
.csb-pill:hover {
	border-color: var(--csb-primary-color);
}
.csb-pill.active {
	background: var(--csb-primary-color);
	border-color: var(--csb-primary-color);
	color: #fff;
}

/* Actions */
.csb-action-buttons {
	margin-bottom: 40px;
}

.woocommerce-variation-add-to-cart,
.variations_button,
.csb-action-buttons form.cart:not(.variations_form) {
	display: flex !important;
	gap: 15px !important;
	align-items: center !important;
	flex-wrap: wrap !important;
}

.woocommerce-variation-add-to-cart .quantity,
.variations_button .quantity,
.csb-action-buttons form.cart:not(.variations_form) .quantity {
	display: inline-block !important;
	height: 50px !important;
	flex-shrink: 0;
	margin: 0 !important;
}
.woocommerce-variation-add-to-cart .quantity input.qty,
.variations_button .quantity input.qty,
.csb-action-buttons form.cart:not(.variations_form) .quantity input.qty {
	height: 50px !important;
	border: 1px solid #ccc !important;
	border-radius: 4px !important;
	padding: 0 10px !important;
	width: 60px !important;
	box-sizing: border-box !important;
	text-align: center !important;
	font-weight: 700 !important;
	margin: 0 !important;
}

.csb-btn,
.single_add_to_cart_button {
	height: 50px !important;
	line-height: 50px !important;
	padding: 0 25px !important;
	border-radius: 4px !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	text-align: center !important;
	transition: all 0.2s ease !important;
	border: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	flex: 1 1 auto;
	min-width: 150px;
	margin: 0 !important;
}

.csb-btn-secondary {
	background-color: #f0f0f0 !important;
	color: #333 !important;
}

.csb-btn-secondary:hover {
	background-color: #e4e4e4 !important;
}

.csb-btn-icon {
	width: 40px !important;
	height: 40px !important;
	line-height: 40px !important;
	min-width: 0 !important;
	flex: 0 0 40px !important;
	padding: 0 !important;
}

@media (max-width: 767px) {
	.woocommerce-variation-add-to-cart,
	.csb-action-buttons form.cart {
		flex-wrap: wrap;
	}
	.csb-btn,
	.single_add_to_cart_button {
		flex: 1 1 100%;
	}
}

.single_add_to_cart_button {
	background-color: var(--csb-btn-primary-bg) !important;
	color: var(--csb-btn-primary-text) !important;
	border: var(--csb-btn-primary-border-w, 0) solid var(--csb-btn-primary-border) !important;
	border-radius: var(--csb-btn-primary-radius) !important;
	font-weight: var(--csb-btn-primary-weight) !important;
}

.single_add_to_cart_button:hover {
	background-color: var(--csb-btn-primary-hover-bg) !important;
	color: var(--csb-btn-primary-hover-text) !important;
}

.csb-btn-outline {
	background-color: var(--csb-btn-secondary-bg) !important;
	border: var(--csb-btn-secondary-border-w, 1px) solid var(--csb-btn-secondary-border) !important;
	color: var(--csb-btn-secondary-text) !important;
	border-radius: var(--csb-btn-secondary-radius) !important;
	font-weight: var(--csb-btn-secondary-weight) !important;
	flex: 0 0 auto;
	width: auto;
}

.csb-btn-outline:hover {
	background-color: var(--csb-btn-secondary-hover-bg) !important;
	color: var(--csb-btn-secondary-hover-text) !important;
}

.csb-btn-outline.csb-in-wishlist {
	color: var(--csb-primary-color) !important;
	border-color: var(--csb-primary-color) !important;
}

.csb-heart-icon {
	margin-right: 0;
	font-size: 20px;
}

/* Details & Material */
.csb-product-details,
.csb-material-care {
	margin-bottom: 30px;
}

.csb-product-details h3,
.csb-material-care h3,
.csb-seller-title {
	font-size: 12px;
	text-transform: uppercase;
	color: #999;
	letter-spacing: 1px;
	margin-bottom: 10px;
	font-weight: 700;
}

.csb-details-content {
	font-size: 14px;
	line-height: 1.6;
	color: #555;
}

.csb-material-care ul {
	padding-left: 20px;
	margin: 0;
	font-size: 14px;
	color: #555;
	line-height: 1.6;
}

/* Seller Card */
.csb-seller-card {
	border-top: 1px solid var(--csb-border-color);
	padding-top: 25px;
}

.csb-seller-name {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 10px;
}

.csb-seller-name a {
	color: var(--csb-primary-color);
	text-decoration: none;
}

.csb-seller-details {
	list-style: none;
	padding: 0;
	margin: 10px 0 0;
	font-size: 13px;
	color: #777;
}

.csb-seller-details li {
	margin-bottom: 5px;
	display: flex;
	align-items: center;
}
.csb-seller-details li::before {
	content: "\2022";
	color: #ccc;
	font-size: 18px;
	margin-right: 8px;
}

/* Modal */
.csb-size-chart-modal {
	position: fixed;
	top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.csb-size-chart-content {
	background: #fff;
	padding: 40px;
	border-radius: 8px;
	max-width: 600px;
	width: 90%;
	position: relative;
}

.csb-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #999;
}

@media (max-width: 767px) {
	.csb-product-layout {
		flex-direction: column;
	}
	.woocommerce-variation-add-to-cart,
	.variations_button,
	.csb-action-buttons form.cart:not(.variations_form) {
		flex-direction: column !important;
		align-items: stretch !important;
	}
	.woocommerce-variation-add-to-cart .quantity,
	.variations_button .quantity,
	.csb-action-buttons form.cart:not(.variations_form) .quantity {
		width: 100% !important;
		display: block !important;
	}
	.woocommerce-variation-add-to-cart .quantity input.qty,
	.variations_button .quantity input.qty,
	.csb-action-buttons form.cart:not(.variations_form) .quantity input.qty {
		width: 100% !important;
	}
	.csb-btn-outline {
		width: 100%;
	}
}

/* Similar Products Carousel */
.csb-similar-products {
	position: relative;
	margin-top: 50px;
}
.csb-similar-products h2 {
	margin-bottom: 25px;
}
.csb-product-carousel-wrapper {
	padding: 0 50px 50px;
}
.csb-product-carousel-wrapper .swiper-button-next,
.csb-product-carousel-wrapper .swiper-button-prev {
	color: var(--csb-primary-color);
	transform: scale(0.8);
	top: 50%;
	margin-top: -30px;
	background: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	justify-content: center;
}
.csb-product-carousel-wrapper .swiper-button-next::after,
.csb-product-carousel-wrapper .swiper-button-prev::after {
	font-size: 20px;
	font-weight: bold;
}
.csb-product-carousel-wrapper .swiper-button-prev {
	left: 5px;
}
.csb-product-carousel-wrapper .swiper-button-next {
	right: 5px;
}
.csb-product-carousel-wrapper .swiper-pagination {
	bottom: 0;
}
.csb-product-carousel-wrapper .swiper-pagination-bullet-active {
	background: var(--csb-primary-color);
}

/* Hide Open in Gallery buttons */
.woocommerce-product-gallery__trigger,
.elementor-custom-gallery-button,
.csb-gallery-wrapper .open-in-gallery,
[title="Open in Gallery"],
.csb-thumbnails a::after,
.csb-main-image a::after {
    display: none !important;
}

.csb-main-image {
    overflow: hidden !important;
    border-radius: 8px !important;
    height: auto !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    background-color: transparent !important;
    display: block;
    cursor: zoom-in;
}

.csb-main-image .csb-gallery-image-wrapper {
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
}

.csb-main-image img {
    width: 100% !important;
    height: auto !important;
    max-height: 70vh !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain !important;
    transition: transform 0.3s ease;
}

.csb-gallery-image-wrapper img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    aspect-ratio: auto !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain !important;
}