/*!
 * VCCSell Theme WooCommerce Styles
 * Version: 1.0.0
 */

/* ===== SINGLE PRODUCT PAGE ENHANCEMENTS ===== */

/* Enhanced Product Layout */
.woocommerce div.product {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 32px var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.woocommerce div.product::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

/* Enhanced Product Images */
.woocommerce div.product .woocommerce-product-gallery {
    position: relative;
    margin-bottom: 0;
}

.woocommerce div.product .woocommerce-product-gallery__image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.woocommerce div.product .woocommerce-product-gallery__image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.2);
}

.woocommerce div.product .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.woocommerce div.product .woocommerce-product-gallery__image:hover img {
    transform: scale(1.05);
}

/* Enhanced Product Summary */
.woocommerce div.product .summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.woocommerce div.product .summary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-primary)08, var(--accent-secondary)08);
    opacity: 0.3;
    z-index: -1;
}

/* Enhanced Product Title */
.woocommerce div.product .product_title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
}

.woocommerce div.product .product_title::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Enhanced Product Price */
.woocommerce div.product .price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.woocommerce div.product .price::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.woocommerce div.product .price:hover::before {
    left: 100%;
}

.woocommerce div.product .price del {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1.4rem;
    margin-right: 0.5rem;
}

.woocommerce div.product .price ins {
    color: var(--success);
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: 800;
}

/* Enhanced Product Description */
.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Enhanced Add to Cart Section */
.woocommerce div.product .cart {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    position: relative;
}

.woocommerce div.product .cart::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.woocommerce div.product .cart:hover::before {
    opacity: 0.1;
}

/* Enhanced Quantity Input */
.woocommerce div.product .quantity {
    margin-right: 1rem;
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-primary);
}

.woocommerce div.product .quantity .qty {
    width: 80px;
    height: 50px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    background: transparent;
    color: var(--text-primary);
    -moz-appearance: textfield; /* Firefox */
}

.woocommerce div.product .quantity .qty:focus {
    outline: none;
    background: var(--bg-secondary);
}

/* Remove quantity input arrows/spinners */
.woocommerce div.product .quantity .qty::-webkit-outer-spin-button,
.woocommerce div.product .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Additional quantity input styles for all WooCommerce quantity inputs */
.woocommerce .quantity input[type="number"],
.woocommerce-page .quantity input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

.woocommerce .quantity input[type="number"]::-webkit-outer-spin-button,
.woocommerce .quantity input[type="number"]::-webkit-inner-spin-button,
.woocommerce-page .quantity input[type="number"]::-webkit-outer-spin-button,
.woocommerce-page .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Enhanced Add to Cart Button */
.woocommerce div.product .single_add_to_cart_button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.woocommerce div.product .single_add_to_cart_button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.woocommerce div.product .single_add_to_cart_button:hover::before {
    left: 100%;
}

.woocommerce div.product .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
}

.woocommerce div.product .single_add_to_cart_button:active {
    transform: translateY(0);
}

/* Enhanced Product Meta */
.woocommerce div.product .product_meta {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.woocommerce div.product .product_meta > span {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.woocommerce div.product .product_meta > span:last-child {
    margin-bottom: 0;
}

.woocommerce div.product .product_meta a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.woocommerce div.product .product_meta a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* Enhanced Product Tabs with Modern Design */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 3rem;
    margin-left: 10%;
    margin-right: 10%;
    max-width: 80%;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 48px var(--shadow-lg);
    position: relative;
    border: 1px solid var(--border-color);
}

.woocommerce div.product .woocommerce-tabs::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* Original ul.tabs styling */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border-color);
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    position: relative;
    overflow: hidden;
    gap: 2px;
}

/* NEW: Button-based tabs styling (copying from ul.tabs) */
.woocommerce div.product .woocommerce-tabs .tab-buttons {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border-color);
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    position: relative;
    overflow: hidden;
    gap: 2px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::after,
.woocommerce div.product .woocommerce-tabs .tab-buttons::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 25%, var(--accent-primary) 50%, var(--border-color) 75%, transparent 100%);
    opacity: 0.3;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    flex: 1;
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
    transition: var(--transition);
}

/* NEW: Button styling (copying from li) */
.woocommerce div.product .woocommerce-tabs .tab-btn {
    margin: 0;
    padding: 1.8rem 2.5rem;
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    border-bottom: 4px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: var(--border-color);
    opacity: 0.6;
    transition: var(--transition);
}

/* NEW: Button pseudo-element for separator */
.woocommerce div.product .woocommerce-tabs .tab-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.08) 30%, rgba(59, 130, 246, 0.15) 50%, rgba(59, 130, 246, 0.08) 70%, transparent 100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:last-child::before {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 1.8rem 2.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid transparent;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.08) 30%, rgba(59, 130, 246, 0.15) 50%, rgba(59, 130, 246, 0.08) 70%, transparent 100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a::after,
.woocommerce div.product .woocommerce-tabs .tab-btn::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: var(--gradient-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 -2px 8px rgba(59, 130, 246, 0.3);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* NEW: Button text styling */
.woocommerce div.product .woocommerce-tabs .tab-btn span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a span::before,
.woocommerce div.product .woocommerce-tabs .tab-btn span::before {
    content: "●";
    font-size: 0.6rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    color: var(--accent-primary);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover::before,
.woocommerce div.product .woocommerce-tabs .tab-btn:hover::before {
    left: 100%;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover,
.woocommerce div.product .woocommerce-tabs .tab-btn:hover {
    color: var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(59, 130, 246, 0.05) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover span::before,
.woocommerce div.product .woocommerce-tabs .tab-btn:hover span::before {
    opacity: 1;
    transform: scale(1);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover::after,
.woocommerce div.product .woocommerce-tabs .tab-btn:hover::after {
    width: 80%;
    box-shadow: 0 -2px 16px rgba(59, 130, 246, 0.4);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs .tab-btn.active {
    color: var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(59, 130, 246, 0.08) 100%);
    font-weight: 800;
    position: relative;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a span::before,
.woocommerce div.product .woocommerce-tabs .tab-btn.active span::before {
    opacity: 1;
    transform: scale(1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after,
.woocommerce div.product .woocommerce-tabs .tab-btn.active::after {
    width: 90%;
    background: var(--gradient-primary);
    box-shadow: 0 -2px 20px rgba(59, 130, 246, 0.5), 0 0 12px rgba(59, 130, 246, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 -2px 20px rgba(59, 130, 246, 0.5), 0 0 12px rgba(59, 130, 246, 0.3); }
    to { box-shadow: 0 -2px 24px rgba(59, 130, 246, 0.7), 0 0 16px rgba(59, 130, 246, 0.4); }
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active::before {
    opacity: 0;
}

.woocommerce div.product .woocommerce-tabs .panel {
    padding: 3rem;
    background: var(--bg-primary);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    position: relative;
    display: none; /* Hide all panels by default */
}

.woocommerce div.product .woocommerce-tabs .panel.active {
    display: block; /* Show only active panel */
}

.woocommerce div.product .woocommerce-tabs .panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
}

/* Custom tab link styling for better UX */
.woocommerce div.product .woocommerce-tabs ul.tabs li a.wc-tab-link {
    cursor: pointer;
    outline: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a.wc-tab-link:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a.wc-tab-link.active {
    color: var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(59, 130, 246, 0.08) 100%);
    font-weight: 800;
    position: relative;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Enhanced Reviews Section */
.woocommerce div.product #reviews {
    background: var(--bg-primary);
    padding: 2rem 0;
}

/* Individual Comment Styling */
.woocommerce div.product #reviews .comment {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.woocommerce div.product #reviews .comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.woocommerce div.product #reviews .comment::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px 0 0 2px;
}

/* Comment Meta Information */
.woocommerce div.product #reviews .comment .comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.woocommerce div.product #reviews .comment .comment-author strong {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.woocommerce div.product #reviews .comment .comment-metadata time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Comment Text Styling */
.woocommerce div.product #reviews .comment .comment-text {
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 1rem;
}

.woocommerce div.product #reviews .comment .comment-text p {
    margin-bottom: 1rem;
}

.woocommerce div.product #reviews .comment .comment-text p:last-child {
    margin-bottom: 0;
}

/* Star Rating Enhanced */
.woocommerce div.product #reviews .star-rating {
    color: var(--warning);
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.woocommerce div.product #reviews .star-rating::before {
    content: "★★★★★";
    color: #e5e7eb;
    letter-spacing: 0.2rem;
}

.woocommerce div.product #reviews .star-rating span {
    position: absolute;
    color: #fbbf24;
    overflow: hidden;
    white-space: nowrap;
}

.woocommerce div.product #reviews .star-rating span::before {
    content: "★★★★★";
    letter-spacing: 0.2rem;
}

/* Review Form Section Header */
.woocommerce div.product #reviews h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.woocommerce div.product #reviews h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Add some spacing for the review section */
.woocommerce div.product #reviews #respond {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

/* Enhanced Star Rating System */
.woocommerce #reviews #respond .comment-form-rating {
    margin-bottom: 2rem;
}

.woocommerce #reviews #respond .comment-form-rating label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Hide the default dropdown */
.woocommerce #reviews #respond .comment-form-rating select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* Create custom star rating */
.woocommerce #reviews #respond .comment-form-rating {
    position: relative;
}

.woocommerce #reviews #respond .comment-form-rating::after {
    content: "";
    display: block;
    clear: both;
}

/* Add star rating container */
.woocommerce #reviews #respond .comment-form-rating .stars {
    display: inline-flex;
    gap: 0.25rem;
    font-size: 1.8rem;
    color: #ddd;
    cursor: pointer;
    margin-top: 0.5rem;
}

.woocommerce #reviews #respond .comment-form-rating .stars::before {
    content: "★★★★★";
    letter-spacing: 0.25rem;
    background: linear-gradient(90deg, var(--warning) 0%, var(--warning) 0%, #ddd 0%, #ddd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

/* Create interactive star rating */
.comment-form-rating-wrapper {
    position: relative;
    display: inline-block;
}

.star-rating-input {
    display: flex;
    gap: 0.25rem;
    font-size: 1.8rem;
    margin-top: 0.5rem;
}

.star-rating-input .star {
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
}

.star-rating-input .star:hover,
.star-rating-input .star.active {
    color: var(--warning);
    transform: scale(1.1);
}

/* Hover effect for preceding stars */
.star-rating-input .star:hover ~ .star {
    color: #ddd;
    transform: scale(1);
}

/* Animation for star selection */
@keyframes starPulse {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.1); }
}

.star-rating-input .star.selected {
    animation: starPulse 0.3s ease;
}

/* Review form enhancements */
.woocommerce #reviews #respond .comment-form-comment label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.woocommerce #reviews #respond .comment-form-comment textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    transition: var(--transition);
}

.woocommerce #reviews #respond .comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Enhanced Submit button */
.woocommerce #reviews #respond input[type="submit"] {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 200px;
    margin-top: 2rem;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.woocommerce #reviews #respond input[type="submit"]:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.woocommerce #reviews #respond input[type="submit"]:hover:before {
    left: 100%;
}

.woocommerce #reviews #respond input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.woocommerce #reviews #respond input[type="submit"]:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* Enhanced Stock Status */
.woocommerce div.product .stock {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: inline-block;
    margin-bottom: 1rem;
}

.woocommerce div.product .stock.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.woocommerce div.product .stock.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

/* Enhanced Related Products */
.woocommerce div.product .related {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.woocommerce div.product .related h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-primary);
    position: relative;
}

.woocommerce div.product .related h2::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Center Related Products Grid */
.woocommerce div.product .related ul.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce div.product .related ul.products li.product {
    flex: 0 1 calc(33.333% - 1.333rem);
    max-width: 300px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: left;
}

.woocommerce div.product .related ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.woocommerce div.product .related ul.products li.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.woocommerce div.product .related ul.products li.product:hover img {
    transform: scale(1.05);
}

.woocommerce div.product .related ul.products li.product .woocommerce-loop-product__title {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.woocommerce div.product .related ul.products li.product .price {
    padding: 0 1rem 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.woocommerce div.product .related ul.products li.product .star-rating {
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

/* Add to Cart Button in Related Products */
.woocommerce div.product .related ul.products li.product .add_to_cart_button,
.woocommerce div.product .related ul.products li.product .button {
    width: 100%;
    padding: 1.25rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    display: block;
}

.woocommerce div.product .related ul.products li.product .add_to_cart_button::before,
.woocommerce div.product .related ul.products li.product .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.woocommerce div.product .related ul.products li.product .add_to_cart_button:hover::before,
.woocommerce div.product .related ul.products li.product .button:hover::before {
    left: 100%;
}

.woocommerce div.product .related ul.products li.product .add_to_cart_button:hover,
.woocommerce div.product .related ul.products li.product .button:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.woocommerce div.product .related ul.products li.product .add_to_cart_button:disabled,
.woocommerce div.product .related ul.products li.product .button:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading state for related product buttons */
.woocommerce div.product .related ul.products li.product .add_to_cart_button.loading,
.woocommerce div.product .related ul.products li.product .button.loading {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: wait;
}

.woocommerce div.product .related ul.products li.product .add_to_cart_button.loading::before,
.woocommerce div.product .related ul.products li.product .button.loading::before {
    content: "⟳";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
    font-size: 1.2rem;
    background: none;
    width: auto;
    height: auto;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Related Products */
@media (max-width: 992px) {
    .woocommerce div.product .related ul.products li.product {
        flex: 0 1 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .woocommerce div.product .related ul.products {
        gap: 1.5rem;
    }
    
    .woocommerce div.product .related ul.products li.product {
        flex: 0 1 calc(50% - 0.75rem);
        min-width: 200px;
    }
    
    .woocommerce div.product .related ul.products li.product img {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .woocommerce div.product .related ul.products {
        gap: 1rem;
    }
    
    .woocommerce div.product .related ul.products li.product {
        flex: 0 1 100%;
        max-width: 100%;
        min-width: unset;
    }
    
    .woocommerce div.product .related ul.products li.product img {
        height: 200px;
    }
}

/* Enhanced Breadcrumbs */
.woocommerce-breadcrumb {
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.woocommerce-breadcrumb a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

.woocommerce-breadcrumb a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* ===== EXISTING CART STYLES (ENHANCED) ===== */

/* WooCommerce Cart Integration */
.woocommerce-cart table.cart td.actions .coupon .input-text {
    width: auto;
    margin-right: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

.woocommerce-cart table.cart td.actions .coupon .input-text:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100%;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 24px var(--shadow);
}

/* Cart Buttons */
.woocommerce .cart .button,
.woocommerce .cart input.button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.woocommerce .cart .button::before,
.woocommerce .cart input.button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.woocommerce .cart .button:hover::before,
.woocommerce .cart input.button:hover::before {
    left: 100%;
}

.woocommerce .cart .button:hover,
.woocommerce .cart input.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

/* Cart Table */
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px var(--shadow);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.woocommerce table.shop_table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Cart Totals */
.woocommerce .cart-collaterals .cart_totals table {
    width: 100%;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.woocommerce .cart-collaterals .cart_totals table th,
.woocommerce .cart-collaterals .cart_totals table td {
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.woocommerce .cart-collaterals .cart_totals table th {
    background: var(--bg-secondary);
    font-weight: 600;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .woocommerce div.product {
        padding: 1.5rem;
    }
    
    .woocommerce div.product .summary {
        padding: 1.5rem;
    }
    
    .woocommerce div.product .product_title {
        font-size: 2rem;
    }
    
    .woocommerce div.product .price {
        font-size: 1.5rem;
        padding: 0.75rem 1rem;
    }
    
    .woocommerce div.product .cart {
        padding: 1.5rem;
    }
    
    .woocommerce div.product .single_add_to_cart_button {
        width: 100%;
        margin-top: 1rem;
    }
    
    .woocommerce div.product .woocommerce-tabs {
        margin-left: 7.5%;
        margin-right: 7.5%;
        max-width: 85%;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs,
    .woocommerce div.product .woocommerce-tabs .tab-buttons {
        flex-direction: column;
        gap: 1px;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs::after,
    .woocommerce div.product .woocommerce-tabs .tab-buttons::after {
        display: none;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li,
    .woocommerce div.product .woocommerce-tabs .tab-btn {
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
        background: var(--bg-primary);
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li:last-child,
    .woocommerce div.product .woocommerce-tabs .tab-btn:last-child {
        border-bottom: none;
        border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li:first-child,
    .woocommerce div.product .woocommerce-tabs .tab-btn:first-child {
        border-radius: 0;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li::before {
        display: none;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li a,
    .woocommerce div.product .woocommerce-tabs .tab-btn {
        padding: 1.5rem 2rem;
        text-align: left;
        font-size: 0.95rem;
        border-radius: 0;
        background: linear-gradient(90deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
        display: flex;
        align-items: center;
        gap: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        font-weight: 700;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li a::before,
    .woocommerce div.product .woocommerce-tabs .tab-btn::before {
        background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.12) 50%, transparent 100%);
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li a::after,
    .woocommerce div.product .woocommerce-tabs .tab-btn::after {
        left: 0;
        bottom: auto;
        top: 0;
        width: 0;
        height: 100%;
        transform: none;
        border-radius: 0 6px 6px 0;
        box-shadow: 4px 0 16px rgba(59, 130, 246, 0.3);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li a span,
    .woocommerce div.product .woocommerce-tabs .tab-btn span {
        justify-content: flex-start;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover,
    .woocommerce div.product .woocommerce-tabs .tab-btn:hover {
        transform: translateX(12px);
        background: linear-gradient(90deg, var(--bg-secondary) 0%, rgba(59, 130, 246, 0.08) 100%);
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover::after,
    .woocommerce div.product .woocommerce-tabs .tab-btn:hover::after {
        width: 8px;
        box-shadow: 4px 0 20px rgba(59, 130, 246, 0.4);
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
    .woocommerce div.product .woocommerce-tabs .tab-btn.active {
        background: linear-gradient(90deg, var(--bg-secondary) 0%, rgba(59, 130, 246, 0.12) 100%);
        transform: translateX(8px);
        box-shadow: 0 6px 24px rgba(59, 130, 246, 0.2);
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after,
    .woocommerce div.product .woocommerce-tabs .tab-btn.active::after {
        width: 10px;
        box-shadow: 4px 0 24px rgba(59, 130, 246, 0.5);
    }
    
    .woocommerce-cart .cart-collaterals {
        width: 100%;
    }
    
    .woocommerce table.shop_table {
        font-size: 14px;
    }
    
    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .woocommerce div.product .product_title {
        font-size: 1.5rem;
    }
    
    .woocommerce div.product .price {
        font-size: 1.2rem;
    }
    
    .woocommerce div.product .woocommerce-tabs {
        margin-left: 5%;
        margin-right: 5%;
        max-width: 90%;
    }
    
    .woocommerce div.product .woocommerce-tabs .panel {
        padding: 1rem;
    }
    
    .woocommerce div.product .related {
        padding: 1rem;
    }
}

/* Integration with existing theme styles */
.woocommerce .button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.woocommerce .button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.woocommerce .button:hover::before {
    left: 100%;
}

.woocommerce .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

/* Dark Theme Support - Enhanced with more specific selectors */
html[data-theme="dark"] .woocommerce div.product {
    background: var(--bg-primary) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .woocommerce div.product .summary {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

/* Enhanced Dark Theme for Product Tabs */
html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs {
    background: var(--bg-secondary) !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8) !important;
    border: 1px solid var(--border-color) !important;
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs::before {
    background: var(--gradient-primary) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs,
html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs .tab-buttons {
    background: var(--bg-primary) !important;
    border-bottom: 2px solid var(--border-color) !important;
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs::after,
html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs .tab-buttons::after {
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 25%, var(--accent-primary) 50%, var(--border-color) 75%, transparent 100%) !important;
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li,
html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs .tab-btn {
    background: var(--bg-tertiary) !important;
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li::before {
    background: var(--border-color) !important;
    opacity: 0.4 !important;
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li a,
html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs .tab-btn {
    color: var(--text-secondary) !important;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li a::before {
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.15) 30%, rgba(59, 130, 246, 0.25) 50%, rgba(59, 130, 246, 0.15) 70%, transparent 100%) !important;
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover::before {
    left: 100% !important;
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li a::after {
    background: var(--gradient-primary) !important;
    box-shadow: 0 -2px 12px rgba(59, 130, 246, 0.4) !important;
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li a span::before {
    color: var(--accent-primary) !important;
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--accent-primary) !important;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(59, 130, 246, 0.15) 100%) !important;
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after {
    box-shadow: 0 -2px 20px rgba(59, 130, 246, 0.6), 0 0 16px rgba(59, 130, 246, 0.4) !important;
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--accent-primary) !important;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(59, 130, 246, 0.1) 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover::after {
    box-shadow: 0 -2px 16px rgba(59, 130, 246, 0.5) !important;
}

/* Dark theme mobile adaptations */
@media (max-width: 768px) {
    html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li {
        border-bottom: 1px solid var(--border-color) !important;
        background: var(--bg-secondary) !important;
    }
    
    html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    }
    
    html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li a::before {
        background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.2) 50%, transparent 100%) !important;
    }
    
    html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
        background: linear-gradient(90deg, var(--bg-tertiary) 0%, rgba(59, 130, 246, 0.12) 100%) !important;
        transform: translateX(12px) !important;
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2) !important;
    }
    
    html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover::after {
        box-shadow: 4px 0 20px rgba(59, 130, 246, 0.5) !important;
    }
    
    html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
        background: linear-gradient(90deg, var(--bg-tertiary) 0%, rgba(59, 130, 246, 0.18) 100%) !important;
        transform: translateX(8px) !important;
        box-shadow: 0 6px 24px rgba(59, 130, 246, 0.25) !important;
    }
    
    html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after {
        box-shadow: 4px 0 24px rgba(59, 130, 246, 0.6) !important;
    }
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs .panel {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

/* Dark theme for reviews section */
html[data-theme="dark"] .woocommerce div.product #reviews {
    background: var(--bg-primary) !important;
}

html[data-theme="dark"] .woocommerce div.product #reviews .comment {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

html[data-theme="dark"] .woocommerce div.product #reviews h2,
html[data-theme="dark"] .woocommerce div.product #reviews h3 {
    color: var(--text-primary) !important;
}

html[data-theme="dark"] .woocommerce div.product #reviews .comment-text {
    color: var(--text-secondary) !important;
}

/* Dark theme for description section */
html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs .panel h2,
html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs .panel h3,
html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs .panel h4 {
    color: var(--text-primary) !important;
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs .panel p {
    color: var(--text-secondary) !important;
}

/* Dark theme for review form */
html[data-theme="dark"] .woocommerce #reviews #respond .comment-form-rating label,
html[data-theme="dark"] .woocommerce #reviews #respond .comment-form-comment label {
    color: var(--text-primary) !important;
}

html[data-theme="dark"] .woocommerce #reviews #respond .comment-form-comment textarea {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

html[data-theme="dark"] .woocommerce #reviews #respond .comment-form-comment textarea:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

/* Dark theme for additional elements */
html[data-theme="dark"] .woocommerce table.shop_table {
    background: var(--bg-primary) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .woocommerce table.shop_table th {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .woocommerce table.shop_table td {
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Dark Theme for Related Products */
html[data-theme="dark"] .woocommerce div.product .related {
    background: var(--bg-secondary) !important;
}

html[data-theme="dark"] .woocommerce div.product .related ul.products li.product {
    background: var(--bg-tertiary) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .woocommerce div.product .related ul.products li.product:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .woocommerce div.product .related ul.products li.product .woocommerce-loop-product__title {
    color: var(--text-primary) !important;
}

html[data-theme="dark"] .woocommerce div.product .related ul.products li.product .price {
    color: var(--accent-primary) !important;
}

/* Dark Theme for Related Products Buttons */
html[data-theme="dark"] .woocommerce div.product .related ul.products li.product .add_to_cart_button,
html[data-theme="dark"] .woocommerce div.product .related ul.products li.product .button {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg) !important;
}

html[data-theme="dark"] .woocommerce div.product .related ul.products li.product .add_to_cart_button:hover,
html[data-theme="dark"] .woocommerce div.product .related ul.products li.product .button:hover {
    background: var(--accent-secondary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4) !important;
}

html[data-theme="dark"] .woocommerce div.product .related ul.products li.product .add_to_cart_button:disabled,
html[data-theme="dark"] .woocommerce div.product .related ul.products li.product .button:disabled {
    background: var(--bg-tertiary) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ===== FLOATING LABEL ANIMATION FOR REVIEW FORM ===== */

/* Container for floating label fields */
.comment-form-author,
.comment-form-email,
.comment-form-comment {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Hide original labels completely */
.comment-form-author label,
.comment-form-email label,
.comment-form-comment label,
.comment-form-author label *,
.comment-form-email label *,
.comment-form-comment label * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Input field styling */
.comment-form-author input,
.comment-form-email input,
.comment-form-comment textarea {
    width: 100%;
    padding: 1.2rem 1rem 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    transition: var(--transition);
    outline: none;
}

/* Textarea specific styling */
.comment-form-comment textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 1.5rem;
}

/* Floating label styling */
.comment-form-author::after,
.comment-form-email::after,
.comment-form-comment::after {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    transform-origin: left top;
    z-index: 5;
    background: var(--bg-primary);
    padding: 0 0.2rem;
    border-radius: 2px;
}

/* Label positioning for textarea */
.comment-form-comment::after {
    top: 1.2rem;
}

/* Focused state - label moves up */
.comment-form-author.focused::after,
.comment-form-email.focused::after,
.comment-form-comment.focused::after,
.comment-form-author.has-value::after,
.comment-form-email.has-value::after,
.comment-form-comment.has-value::after {
    transform: translateY(-1.5rem) scale(0.85);
    color: var(--accent-primary);
    font-weight: 600;
}

/* Input focus state */
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-comment textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Animation for label when field is focused or has value */
.comment-form-author.focused input,
.comment-form-email.focused input,
.comment-form-comment.focused textarea {
    border-color: var(--accent-primary);
}

/* Remove asterisk - clean labels without stars */
.comment-form-author::after,
.comment-form-email::after,
.comment-form-comment::after {
    content: attr(data-label);
}

/* Dark theme support */
html[data-theme="dark"] .comment-form-author input,
html[data-theme="dark"] .comment-form-email input,
html[data-theme="dark"] .comment-form-comment textarea {
    background: var(--bg-secondary);
    border-color: #374151;
    color: var(--text-primary);
}

html[data-theme="dark"] .comment-form-author::after,
html[data-theme="dark"] .comment-form-email::after,
html[data-theme="dark"] .comment-form-comment::after {
    color: #9CA3AF;
    background: var(--bg-secondary);
}

html[data-theme="dark"] .comment-form-author.focused::after,
html[data-theme="dark"] .comment-form-email.focused::after,
html[data-theme="dark"] .comment-form-comment.focused::after,
html[data-theme="dark"] .comment-form-author.has-value::after,
html[data-theme="dark"] .comment-form-email.has-value::after,
html[data-theme="dark"] .comment-form-comment.has-value::after {
    color: var(--accent-primary);
}

html[data-theme="dark"] .comment-form-author input:focus,
html[data-theme="dark"] .comment-form-email input:focus,
html[data-theme="dark"] .comment-form-comment textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .comment-form-author input,
    .comment-form-email input,
    .comment-form-comment textarea {
        padding: 1rem 0.75rem 0.75rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .comment-form-comment textarea {
        padding-top: 1.25rem;
        min-height: 100px;
    }
    
    .comment-form-author::after,
    .comment-form-email::after,
    .comment-form-comment::after {
        left: 0.75rem;
        top: 0.875rem;
        font-size: 0.9rem;
    }
    
    .comment-form-comment::after {
        top: 1rem;
    }
    
    .comment-form-author.focused::after,
    .comment-form-email.focused::after,
    .comment-form-comment.focused::after,
    .comment-form-author.has-value::after,
    .comment-form-email.has-value::after,
    .comment-form-comment.has-value::after {
        transform: translateY(-1.2rem) scale(0.8);
    }
} 