/* ========================================
   VAPESMALL - Single Product Page Styles
   Based on Design Specifications
======================================== */

:root {
	--vs-primary: #FFAA01;
	--vs-primary-hover: #E69A00;
	--vs-secondary: #333333;
	--vs-text: #333333;
	--vs-text-light: #666666;
	--vs-text-muted: #999999;
	--vs-border: #E0E0E0;
	--vs-bg: #F5F5F5;
	--vs-white: #FFFFFF;
	--vs-success: #28A745;
	--vs-error: #DC3545;
}

/* ========================================
   Breadcrumb
======================================== */

.vs-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	padding: 15px 0;
	font-size: 14px;
	color: var(--vs-text-muted);
}

.vs-breadcrumb a {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--vs-text-muted);
	text-decoration: none;
	transition: color 0.3s;
}

.vs-breadcrumb a:hover {
	color: var(--vs-primary);
}

.vs-breadcrumb-sep {
	margin: 0 10px;
	color: var(--vs-text-muted);
}

.vs-breadcrumb-current {
	color: var(--vs-text);
}

/* ========================================
   Product Layout
======================================== */

.vs-product-container {
	max-width: 1460px;
	margin: 0 auto;
	padding: 0 30px;
}

.vs-product-main {
	display: grid;
    grid-template-columns: 650px 1fr;
    gap: 32px;
    margin-bottom: 50px;
}

/* ========================================
   Product Gallery
======================================== */

.vs-product-gallery {
	position: sticky;
	top: 0;
	align-self: start;
}

.vs-gallery-main {
	width: 100%;
    background: var(--vs-white);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D8E8E5;
    aspect-ratio: 1 / 1;
}

.vs-gallery-main img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: opacity 0.15s ease;
}

.vs-gallery-thumbs {
	gap: 12px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.vs-gallery-thumb {
	aspect-ratio: 1 / 1;
	border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--vs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D8E8E5;
}

.vs-gallery-thumb:hover,
.vs-gallery-thumb.active {
	border-color: var(--vs-primary);
}

.vs-gallery-thumb img {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
}

/* ========================================
   Product Summary
======================================== */

.vs-product-summary {
	position: sticky;
    align-self: start;
    top: 0;
}

.vs-product-title {
	font-family: 'AvenirLTStd-Black', sans-serif;
    color: var(--vs-secondary);
    font-weight: bold;
    font-size: 30px;
    line-height: 1;
	margin-bottom: 12px;
}

/* Price */
.vs-product-price,.woocommerce-variation-price .price {
	display: flex;
	align-items: baseline;
	gap: 15px;
	margin-bottom: 8px;
}

.vs-price-original,.woocommerce-variation-price .price del {
	font-size: 24px;
	color: var(--vs-text-muted);
	text-decoration: line-through;
}

.vs-price-original .woocommerce-Price-amount,.woocommerce-variation-price .price ins .woocommerce-Price-amount {
	color: inherit;
}

.vs-price-current,.woocommerce-variation-price .price ins {
	font-family: 'AvenirLTStd-Heavy', sans-serif;
	font-size: 26px;
	font-weight: 800;
	color: var(--vs-primary);
	text-decoration: none;
}

.vs-price-current .woocommerce-Price-amount,.woocommerce-variation-price .price ins .woocommerce-Price-amount {
	color: inherit;
}

.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled .variable-item-contents:before, .woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled:hover .variable-item-contents:before{
	display: none;
}

/* Description */
.vs-product-desc {
	margin-bottom: 16px;
    font-weight: 300;
    font-size: 16px;
    color: #333333;
    line-height: 22px;
}

.vs-product-desc p {
	margin: 0 0 12px;
}

.vs-product-desc p:last-child {
	margin-bottom: 0;
}

/* Key Features */
.vs-key-features {
	margin-bottom: 0;
	padding: 16px 0;
	border-top: 1px solid var(--vs-border);
}

.vs-key-features-title {
	font-family: 'AvenirLTStd-Heavy', sans-serif;
	font-size: 16px;
	font-weight: 800;
	color: var(--vs-secondary);
	margin-bottom: 8px;
	text-transform: uppercase;
}

.vs-features-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 40px;
}

.vs-feature-item {
	display: flex;
	justify-content: space-between;
	font-size: 15px;
	padding: 4px 0;
	gap: 10px;
	border-bottom: 1px dashed var(--vs-border);
}

.vs-feature-label {
	color: var(--vs-text-light);
}

.vs-feature-value {
	color: var(--vs-text);
	font-weight: 600;
}

/* ========================================
   手機支援區塊（ACF 字段）
======================================== */
.vs-mobile-support {
	margin-bottom: 0;
	padding: 16px 0;
	border-top: 1px solid var(--vs-border);
}

.vs-mobile-support-title {
	font-family: 'AvenirLTStd-Heavy', sans-serif;
	font-size: 16px;
	font-weight: 800;
	color: var(--vs-secondary);
	margin-bottom: 12px;
}

.vs-mobile-support-content {
	font-size: 14px;
	line-height: 1.8;
	color: var(--vs-text);
	padding: 12px 16px;
	background: #f8f9fa;
	border-radius: 8px;
	border-left: 3px solid var(--vs-primary);
}

.vs-mobile-support-content p {
	margin: 0 0 8px 0;
}

.vs-mobile-support-content p:last-child {
	margin-bottom: 0;
}

.vs-mobile-support-content ul,
.vs-mobile-support-content ol {
	margin: 8px 0;
	padding-left: 20px;
}

.vs-mobile-support-content li {
	margin-bottom: 4px;
}

.vs-mobile-support-hint {
	margin-top: 12px;
	padding: 10px 14px;
	background: #fff8e6;
	border: 1px solid #ffe0a3;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.6;
	color: #856404;
}

.vs-mobile-support-hint::before {
	content: "💡 ";
}

/* Variations */
.variations th{
	font-family: 'AvenirLTStd-Heavy', sans-serif;
}
.vs-variations {
	margin-bottom: 28px;    
	margin-top: 10px;
}

.vs-variation-group {
	margin-bottom: 16px;
}

.vs-variation-label {
	font-family: 'AvenirLTStd-Heavy', sans-serif;
	font-size: 14px;
	font-weight: 800;
	color: var(--vs-secondary);
	margin-bottom: 8px;
	text-transform: uppercase;
}

.vs-variation-select {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--vs-border);
	border-radius: 8px;
	font-size: 14px;
	color: var(--vs-text);
	background: var(--vs-white);
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}

.vs-variation-select:focus {
	outline: none;
	border-color: var(--vs-primary);
}

.vs-product-main .vs-variations th .woo-selected-variation-item-name{
	display: none !important;
}

.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected, .woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected:hover{
	-webkit-box-shadow: var(--wvs-selected-item-box-shadow, 0 0 0 2px var(--vs-primary)) !important;
	box-shadow: var(--wvs-selected-item-box-shadow, 0 0 0 2px var(--vs-primary)) !important;
}

.woo-variation-swatches.wvs-show-label .variations th label{
	font-size: 18px;
}
.woo-variation-swatches.wvs-show-label .variations td, .woo-variation-swatches.wvs-show-label .variations th{
	margin-bottom: 8px;
}

/* ========================================
   Variation Add to Cart (single_variation_wrap)
======================================== */
.single_variation_wrap {
	margin-top: 20px;
}

.vs-variation-cart-wrapper {
	display: flex;
	flex-direction: row;
	gap: 16px;
}

.vs-variation-quantity {
	display: flex;
	align-items: center;
	border: 1px solid var(--vs-border);
	border-radius: 0;
	overflow: hidden;
	width: fit-content;
}

/* .vs-variation-quantity .vs-qty-btn {
	width: 44px;
	height: 48px;
	border: none;
	background: var(--vs-bg);
	font-size: 20px;
	font-weight: 600;
	color: var(--vs-text);
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vs-variation-quantity .vs-qty-btn:hover {
	background: var(--vs-primary);
	color: var(--vs-white);
} */

/* .vs-variation-quantity .vs-qty-input {
	width: 60px;
	height: 48px;
	border: none;
	border-left: 1px solid var(--vs-border);
	border-right: 1px solid var(--vs-border);
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: var(--vs-text);
	background: var(--vs-white);
}

.vs-variation-quantity .vs-qty-input::-webkit-outer-spin-button,
.vs-variation-quantity .vs-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
} */

.vs-variation-buttons {
	display: flex;
	gap: 12px;
	width: 44%;
}

.vs-variation-buttons .vs-btn-add-cart {
	width: 100%;
}

.vs-variation-buttons .vs-btn-add-cart:hover {
	background: var(--vs-primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 170, 1, 0.3);
}

.vs-variation-buttons .vs-btn-buy-now {
	flex: 1;
	height: 48px;
	background: #333333;
	border: none;
	border-radius: 8px;
	font-family: 'AvenirLTStd-Heavy', sans-serif;
	font-size: 14px;
	font-weight: 800;
	color: var(--vs-white);
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s;
}

.vs-variation-buttons .vs-btn-buy-now:hover {
	background: #444444;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Quantity & Add to Cart */
.vs-add-to-cart {
	display: flex;
	gap: 16px;
	margin-bottom: 24px;
}

.vs-quantity {
	display: flex;
	align-items: center;
	border: 1px solid var(--vs-border);
	border-radius: 0;
	overflow: hidden;
	padding: 1px;
}

.vs-qty-btn {
	width: 44px;
	height: 48px;
	border: none;
	background: var(--vs-white);
	font-size: 20px;
	font-weight: 600;
	color: var(--vs-text);
	cursor: pointer;
	transition: all 0.3s;
	border-radius: 0;
}

.vs-qty-btn:hover {
	background: var(--vs-primary);
	color: var(--vs-white);
}

.vs-qty-input {
	width: 60px;
	height: 48px;
	border: none;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: var(--vs-text);
}

.vs-qty-input::-webkit-outer-spin-button,
.vs-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.vs-btn-add-cart {
	background: var(--vs-primary);
    border: none;
    font-family: 'AvenirLTStd-Heavy', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--vs-white);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 0;
    width: 44%;
}

.vs-btn-add-cart:hover {
	background: var(--vs-primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 170, 1, 0.3);
}

/* Social & Wishlist */
.vs-product-actions {
	display: flex;
	align-items: center;
}

.vs-social-share {
	display: flex;
	align-items: center;
	gap: 12px;
}

.vs-social-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--vs-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--vs-text-light);
	text-decoration: none;
	transition: all 0.3s;
}

.vs-social-icon:hover {
	background: var(--vs-primary);
	color: var(--vs-white);
}

.vs-btn-wishlist {
	display: flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	font-size: 14px;
	font-weight: 600;
	color: var(--vs-text-light);
	cursor: pointer;
	transition: color 0.3s;
}

.vs-btn-wishlist:hover {
	color: var(--vs-primary);
}

.vs-btn-wishlist svg {
	stroke: currentColor;
}

/* ========================================
   Product Tabs
======================================== */

.vs-product-tabs {
	margin-bottom: 60px;
}

.vs-tabs-nav {
	display: flex;
	gap: 32px;
	border-bottom: 2px solid var(--vs-border);
	margin-bottom: 32px;
}

.vs-tab-btn {
	padding: 16px 0;
    background: none;
    border: none;
    font-family: 'AvenirLTStd-Heavy', sans-serif;
    color: var(--vs-text-muted);
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
}

.vs-tab-btn:hover {
	color: var(--vs-text);
}

.vs-tab-btn.active {
	color: var(--vs-secondary);
}

.vs-tab-btn.active::after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--vs-text);
}

.vs-tab-content {
	display: none;
}

.vs-tab-content.active {
	display: block;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Specifications Table */
.vs-specs-table {
	width: 100%;
	max-width: 600px;
	border-collapse: collapse;
}

.vs-specs-table tbody{
	border: 1px solid #DCDCDC;
}

.vs-specs-table tr {
	border-bottom: 1px solid var(--vs-border);
}

.vs-specs-table th,
.vs-specs-table td {
	padding: 14px 16px;
	text-align: left;
	font-size: 16px;
}

.vs-specs-table th {
	width: 180px;
	color: var(--vs-text);
	background: #F3F6FB;
    font-weight: 600;
}

.vs-specs-table td {
	color: var(--vs-text-light);
    font-weight: 600;
}

/* Description Tab */
.vs-product-description {
	font-size: 16px;
    line-height: 1.5;
    color: var(--vs-text);
}

.vs-product-description p {
	margin: 0 0 16px;
}

/* Testing Tab */
.vs-testing-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.vs-testing-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--vs-border);
}

.vs-testing-item:first-child {
	padding-top: 0;
}

.vs-testing-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	position: relative;
}

.vs-testing-icon svg {
	stroke: var(--vs-white);
}

/* Different icon colors for each testing item */
.vs-testing-icon-flavors {
	background: #FFAA01;
}

.vs-testing-icon-functionality {
	background: #FFAA01;
}

.vs-testing-icon-battery {
	background: #FFD700;
}

.vs-testing-icon-value {
	background: #FF6B6B;
}

.vs-testing-content h4 {
	font-family: 'AvenirLTStd-Heavy', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: var(--vs-secondary);
	margin: 0 0 4px;
}

.vs-testing-content p {
	font-size: 13px;
	color: var(--vs-text-light);
	margin: 0;
	line-height: 1.6;
}

.vs-testing-icon::before{
	width: 18px;
	height: 18px;
	z-index: 2;
	top: 0;
	left: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
	content: '';
	position: absolute;
}

.vs-testing-icon-flavors::before{
	background: url('../icons/flavors.svg') no-repeat center center;
	background-size: contain;
}
.vs-testing-icon-functionality::before{
	background: url('../icons/functionality.svg') no-repeat center center;
	background-size: contain;
}

.vs-testing-icon-battery::before{
	background: url('../icons/battery.svg') no-repeat center center;
	background-size: contain;
}
.vs-testing-icon-value::before{
	background: url('../icons/value.svg') no-repeat center center;
	background-size: contain;
}

/* ========================================
   Reviews Section
======================================== */

.vs-reviews-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--vs-border);
}

.vs-reviews-summary {
	display: flex;
	align-items: center;
	gap: 16px;
}

.vs-reviews-score {
	font-family: 'AvenirLTStd-Heavy', sans-serif;
	font-size: 48px;
	font-weight: 900;
	color: var(--vs-secondary);
}

.vs-reviews-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vs-reviews-stars {
	display: flex;
	gap: 2px;
}

.vs-reviews-stars svg {
	width: 18px;
	height: 18px;
	fill: var(--vs-primary);
}

.vs-reviews-count {
	font-size: 14px;
	color: var(--vs-text-muted);
}

.vs-btn-write-review {
	display: inline-block;
    padding: 16px;
    background: var(--vs-primary);
    border: none;
    border-radius: 5px;
    font-family: 'AvenirLTStd-Heavy', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--vs-white);
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    width: 228px;
    text-align: center;
}

.vs-btn-write-review:hover {
	background: var(--vs-primary-hover);
	color: var(--vs-white);
}

/* Reviews List */
.vs-reviews-list {
	margin-bottom: 40px;
}

/* Review Item */
.vs-review-item {
	padding: 24px 0;
	border-bottom: 1px solid var(--vs-border);
}

.vs-review-header {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 12px;
}

.vs-reviewer-avatar {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--vs-bg);
}

.vs-reviewer-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vs-review-images {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.vs-review-image-item {
	position: relative;
	width: 100px;
	height: 100px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	background: var(--vs-bg);
}

.vs-review-image-item:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vs-review-image-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vs-reviewer-info {
	flex: 1;
}

.vs-reviewer-name {
	font-size: 18px;
	font-weight: 700;
	color: var(--vs-secondary);
	margin: 0 0 4px;
}

.vs-verified-badge {
	font-weight: 400;
	color: var(--vs-primary);
	font-size: 16px;
	margin-left: 4px;
}

.vs-review-date {
	font-size: 14px;
	color: var(--vs-text-muted);
}

.vs-review-rating {
	display: flex;
	gap: 2px;
	margin-bottom: 12px;
}

.vs-review-rating svg {
	width: 14px;
	height: 14px;
}

.vs-review-content {
	font-size: 16px;
	line-height: 1.5;
	color: var(--vs-text-light);
	margin-bottom: 12px;
}

/* Review Image Lightbox */
.vs-review-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.vs-review-lightbox.active {
	opacity: 1;
	visibility: visible;
}

.vs-review-lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(5px);
}

.vs-review-lightbox-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vs-review-lightbox-image {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 0;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.vs-review-lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	border: none;
	background: rgba(255, 255, 255, 0.2);
	color: white;
	font-size: 32px;
	line-height: 1;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vs-review-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.vs-review-lightbox-prev,
.vs-review-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	border: none;
	background: rgba(255, 255, 255, 0.2);
	color: white;
	font-size: 32px;
	line-height: 1;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vs-review-lightbox-prev {
	left: -60px;
}

.vs-review-lightbox-next {
	right: -60px;
}

.vs-review-lightbox-prev:hover,
.vs-review-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
	.vs-review-lightbox-prev,
	.vs-review-lightbox-next {
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
	
	.vs-review-lightbox-prev {
		left: 10px;
	}
	
	.vs-review-lightbox-next {
		right: 10px;
	}
	
	.vs-review-lightbox-close {
		top: 10px;
		right: 10px;
		width: 36px;
		height: 36px;
		font-size: 28px;
	}
}

/* ========================================
   Related Products
======================================== */

.vs-related-section {
	margin-bottom: 60px;
}

.vs-products-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}

.vs-no-products {
	text-align: center;
	color: var(--vs-text-muted);
	padding: 40px;
}

/* ========================================
   WooCommerce Overrides
======================================== */

.woocommerce-product-gallery,
.woocommerce-product-details__short-description {
	display: none;
}

.cart {
	margin: 0;
}

/* ========================================
   Review Form Styles
======================================== */
#review_form_wrapper .comment-reply-title {
    font-family: 'AvenirLTStd-Black', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--vs-secondary);
    margin-bottom: 18px;
    display: block;
    line-height: 1;
}

#review_form_wrapper label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--vs-text);
	margin-bottom: 10px;
}

#review_form_wrapper label .required {
	color: #e74c3c;
	margin-left: 2px;
}

#review_form_wrapper label .optional {
	font-weight: 400;
	color: var(--vs-text-muted);
	font-size: 12px;
}

#review_form_wrapper input[type="text"],
#review_form_wrapper input[type="email"],
#review_form_wrapper textarea {
	width: 100%;
	padding: 14px 18px;
	border: 2px solid var(--vs-border);
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	color: var(--vs-text);
	background: #fff;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

#review_form_wrapper input[type="text"]:focus,
#review_form_wrapper input[type="email"]:focus,
#review_form_wrapper textarea:focus {
	outline: none;
	border-color: var(--vs-primary);
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

#review_form_wrapper textarea {
	min-height: 140px;
	resize: vertical;
	line-height: 1.6;
}

/* Rating Stars */
.comment-form-rating {
	margin-bottom: 24px;
}

.vs-rating-stars-wrapper {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.vs-rating-stars-wrapper .stars {
	display: none;
}

.vs-rating-stars {
	display: flex;
	gap: 4px;
	cursor: pointer;
}

.vs-rating-stars .vs-star {
	width: 32px;
	height: 32px;
	color: #ddd;
	transition: all 0.2s ease;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vs-rating-stars .vs-star:hover,
.vs-rating-stars .vs-star.active {
	color: #FFAA01;
	transform: scale(1.1);
}

.vs-rating-stars .vs-star svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
	stroke: currentColor;
}

.vs-rating-text {
	font-size: 14px;
	color: var(--vs-text-muted);
	font-weight: 500;
}

/* Image Upload */
.comment-form-images {
	margin-bottom: 10px;
}

.vs-image-upload-wrapper {
	position: relative;
}

.vs-image-upload-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 24px;
	background: #f8f9fa;
	border: 2px dashed var(--vs-border);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 14px;
	font-weight: 600;
	color: var(--vs-text);
	margin-bottom: 8px;
}

.vs-image-upload-btn:hover {
	background: #e9ecef;
	border-color: var(--vs-primary);
	color: var(--vs-primary);
}

.vs-image-upload-btn svg {
	width: 20px;
	height: 20px;
	stroke-width: 2;
}

.vs-image-upload-wrapper input[type="file"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	overflow: hidden;
}

.comment-images-hint {
	display: block;
	font-size: 12px;
	color: var(--vs-text-muted);
	margin-top: 4px;
}

.comment-images-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 10px;
}

.comment-image-preview-item {
	position: relative;
	width: 100px;
	height: 100px;
	border: 2px solid var(--vs-border);
	border-radius: 8px;
	overflow: hidden;
	background: #f8f9fa;
	transition: all 0.2s ease;
}

.comment-image-preview-item:hover {
	border-color: var(--vs-primary);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comment-image-preview-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.comment-image-preview-item .remove-image {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 24px;
	height: 24px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	transition: all 0.2s ease;
}

.comment-image-preview-item .remove-image:hover {
	background: #e74c3c;
	transform: scale(1.1);
}

/* Submit Button */
#review_form_wrapper input[type="submit"] {
	background: var(--vs-primary);
	color: var(--vs-white);
	border: none;
	padding: 16px 40px;
	border-radius: 8px;
	font-family: 'AvenirLTStd-Heavy', sans-serif;
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	margin-top: 8px;
}

#review_form_wrapper input[type="submit"]:hover {
	background: var(--vs-primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#review_form_wrapper input[type="submit"]:active {
	transform: translateY(0);
}

/* Form Fields Layout */
#review_form_wrapper .comment-form-author,
#review_form_wrapper .comment-form-email {
	margin-bottom: 20px;
}

@media (max-width: 768px) {
	#review_form_wrapper {
		padding: 24px 20px;
	}
	
	.vs-rating-stars .vs-star {
		width: 28px;
		height: 28px;
	}
	
	.vs-image-upload-btn {
		padding: 10px 20px;
		font-size: 13px;
	}
	
	#review_form_wrapper input[type="submit"] {
		width: 100%;
		padding: 14px 32px;
	}
}

/* ========================================
   Product Card Styles (in grid)
======================================== */

.vs-products-grid .vs-product-card {
	position: relative;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	border: 1px solid #f0f0f0;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.vs-products-grid .vs-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.vs-products-grid .vs-card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	background: #FF6B6B;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 4px;
	z-index: 1;
	text-transform: uppercase;
}

.vs-products-grid .vs-card-image {
	position: relative;
	padding-top: 100%;
	background: #F8F8F8;
	overflow: hidden;
}

.vs-products-grid .vs-card-image img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 85%;
	max-height: 85%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.vs-products-grid .vs-product-card:hover .vs-card-image img {
	transform: translate(-50%, -50%) scale(1.05);
}

.vs-products-grid .vs-card-content {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.vs-products-grid .vs-card-brand {
	font-size: 11px;
	margin-bottom: 6px;
}

.vs-products-grid .vs-card-brand-from {
	color: #999;
}

.vs-products-grid .vs-card-brand-name {
	color: #FF6B6B;
	font-weight: 700;
}

.vs-products-grid .vs-card-title {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin: 0 0 8px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 40px;
}

.vs-products-grid .vs-card-price {
	margin-top: auto;
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.vs-products-grid .vs-card-price-original {
	font-size: 13px;
	color: #999;
	text-decoration: line-through;
}

.vs-products-grid .vs-card-price-current {
	font-size: 17px;
	font-weight: 700;
	color: #333;
}

/* ========================================
   Responsive
======================================== */

@media (max-width: 1200px) {
	.vs-product-main {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}
	
	.vs-products-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 992px) {
	.vs-product-main {
		grid-template-columns: 1fr;
	}
	
	.vs-product-gallery {
		position: static;
	}
	
	.vs-products-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.vs-tabs-nav {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		gap: 18px;
	}
	
	.vs-tab-btn {
		white-space: nowrap;
		padding: 10px 0;
	}
}

@media (max-width: 768px) {
	.vs-product-container {
		padding: 15px;
		padding-top: 0;
	}
	
	.vs-product-title {
		font-size: 22px;
	}
	
	.vs-price-current {
		font-size: 26px;
	}
	
	.vs-gallery-main {
		height: 350px;
	}
	
	.vs-gallery-thumb {
		width: 70px;
		height: 70px;
	}
	
	.vs-products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	
	.vs-reviews-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
	
	.vs-specs-table th {
		width: 120px;
	}
	
	.vs-features-grid {
		grid-template-columns: 1fr;
	}

	.vs-gallery-thumbs{
		display: flex;
		flex-direction: row;
	}
}

@media (max-width: 480px) {
	.vs-products-grid {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	
	.vs-add-to-cart {
		flex-direction: column;
	}
	
	.vs-quantity {
		justify-content: center;
	}
	
	.vs-product-actions {
		flex-direction: column;
		gap: 16px;
		align-items: flex-start;
	}
}


/* ========================================
   TM EPO Plugin Styles Override - 適配主題風格
======================================== */

/* TM EPO 容器 */
.tc-extra-product-options {
	margin: 20px 0;
	padding: 0;
}

.tc-extra-product-options .tc-epo-element-product-container {
	margin-bottom: 16px;
}

/* 選項標題 */
.tc-extra-product-options .tc-epo-label,
.tc-extra-product-options .tm-epo-field-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--vs-text);
	margin-bottom: 8px;
	display: block;
}

/* 必填標記 */
.tc-extra-product-options .tm-epo-required {
	color: #e74c3c;
	margin-left: 2px;
}

/* 下拉選擇框 */
.tc-extra-product-options select,
.tc-extra-product-options .tm-epo-field select {
	width: 100%;
	max-width: 320px;
	padding: 12px 40px 12px 14px;
	font-size: 14px;
	color: var(--vs-text);
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.tc-extra-product-options select:hover,
.tc-extra-product-options .tm-epo-field select:hover {
	border-color: var(--vs-primary);
}

.tc-extra-product-options select:focus,
.tc-extra-product-options .tm-epo-field select:focus {
	outline: none;
	border-color: var(--vs-primary);
	box-shadow: 0 0 0 3px rgba(255, 170, 1, 0.15);
}

/* 單選按鈕組 */
.tc-extra-product-options .tm-epo-field-radiobutton,
.tc-extra-product-options .tmcp-field-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tc-extra-product-options .tmcp-field-wrap label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #f8f9fa;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 13px;
}

.tc-extra-product-options .tmcp-field-wrap label:hover {
	border-color: var(--vs-primary);
	background: #fff;
}

.tc-extra-product-options .tmcp-field-wrap input[type="radio"]:checked + label,
.tc-extra-product-options .tmcp-field-wrap label.tc-active {
	border-color: var(--vs-primary);
	background: rgba(255, 170, 1, 0.1);
	color: var(--vs-text);
}

/* 日期選擇器 */
.tc-extra-product-options input[type="date"],
.tc-extra-product-options .tm-epo-field input[type="text"].tm-epo-datepicker {
	width: 100%;
	max-width: 200px;
	padding: 12px 14px;
	font-size: 14px;
	color: var(--vs-text);
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.tc-extra-product-options input[type="date"]:hover,
.tc-extra-product-options .tm-epo-field input[type="text"].tm-epo-datepicker:hover {
	border-color: var(--vs-primary);
}

.tc-extra-product-options input[type="date"]:focus,
.tc-extra-product-options .tm-epo-field input[type="text"].tm-epo-datepicker:focus {
	outline: none;
	border-color: var(--vs-primary);
	box-shadow: 0 0 0 3px rgba(255, 170, 1, 0.15);
}

/* 複選框 */
.tc-extra-product-options input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--vs-primary);
}

/* ========================================
   TM EPO 價格總計框 - 隱藏原始樣式，只顯示 Options amount
======================================== */

/* 隱藏整個 TM EPO 價格總計區塊（包括標籤文字） */
.tc-extra-product-options .tc-totals-form,
.tc-extra-product-options .tm-epo-totals,
.tc-totals-form,
.tm-epo-totals,
.tc-epo-totals,
.tm-epo-final-totals,
.tc-final-totals {
	position: absolute !important;
	left: -9999px !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* 隱藏原始產品價格區塊（當有 TM EPO 時） */
.vs-product-summary > .vs-product-price:not(.vs-epo-price-container) {
	display: none !important;
}

/* Options amount 價格容器 */
.vs-epo-price-container {
	margin: 15px 0 20px 0;
}

/* Options amount 價格樣式 - 使用 vs-price-current 樣式 */
.vs-epo-options-price {
	font-size: 28px;
	font-weight: 700;
	color: var(--vs-primary);
	display: block;
}

.vs-epo-options-price .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.vs-epo-options-price .woocommerce-Price-currencySymbol {
	font-size: inherit;
	font-weight: inherit;
}

/* 選項價格顯示 */
.tc-extra-product-options .tc-price,
.tc-extra-product-options .price {
	color: var(--vs-primary);
	font-weight: 600;
}

/* 選項描述 */
.tc-extra-product-options .tc-epo-element-description {
	font-size: 12px;
	color: var(--vs-text-muted);
	margin-top: 4px;
}

/* 響應式 */
@media (max-width: 768px) {
	.tc-extra-product-options select,
	.tc-extra-product-options .tm-epo-field select {
		max-width: 100%;
	}
	
	.tc-extra-product-options .tmcp-field-wrap {
		flex-direction: column;
	}
	
	.tc-extra-product-options .tmcp-field-wrap label {
		width: 100%;
		justify-content: flex-start;
	}
	
	.vs-epo-options-price {
		font-size: 24px;
	}
}

/* ========================================
   Product Description - 優化視覺樣式
======================================== */

.vs-product-desc {
	margin: 20px 0;
	padding: 0;
}

/* 產品簡短描述：每個 span 獨立一行 */
.vs-product-desc span {
	display: block;
	margin-bottom: 5px;
}

.vs-desc-content {
	font-size: 16px;
	line-height: 1.8;
	color: var(--vs-text-light);
}

.vs-desc-content p {
	margin: 0 0 12px 0;
}

.vs-desc-content p:last-child {
	margin-bottom: 0;
}

.vs-desc-subtitle {
	font-size: 14px;
	font-weight: 600;
	color: var(--vs-text);
	margin: 16px 0 8px 0 !important;
	padding-bottom: 4px;
	border-bottom: 2px solid var(--vs-primary);
	display: inline-block;
}

.vs-desc-content .vs-highlight {
	color: var(--vs-primary);
	font-weight: 600;
	background: linear-gradient(to bottom, transparent 60%, rgba(255, 170, 1, 0.2) 60%);
	padding: 0 2px;
}

.vs-desc-content .vs-emphasis {
	color: var(--vs-text);
	font-style: normal;
	background: #f5f5f5;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 13px;
}

.vs-desc-list {
	margin: 12px 0;
	padding-left: 0;
	list-style: none;
}

.vs-desc-list li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 8px;
	line-height: 1.6;
}

.vs-desc-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 6px;
	height: 6px;
	background: var(--vs-primary);
	border-radius: 50%;
}

ol.vs-desc-list {
	counter-reset: list-counter;
}

ol.vs-desc-list li {
	counter-increment: list-counter;
}

ol.vs-desc-list li::before {
	content: counter(list-counter);
	width: 18px;
	height: 18px;
	background: var(--vs-primary);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	top: 3px;
}
