/* Product Detail Page Styles */

/* Product Meta Information Styles - Enhanced */
.tf-product-info-meta {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 1px;
    padding: 2px 0;
    border-bottom: 1px solid #f1f5f9;
}

.product-meta-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.meta-label {
    font-weight: 600;
    color: #4C1D95;
    font-size: 12px;
    min-width: 120px;
    margin-right: 15px;
}

.meta-value {
    color: #6B7280;
    font-size: 12px;
    flex: 1;
}

.category-hierarchy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.category-link {
    color: #6B46C1;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.category-link:hover {
    color: #4C1D95;
    background-color: #eff6ff;
    text-decoration: none;
}

.category-link.current-category {
    color: #4C1D95;
    font-weight: 600;
    background-color: #dbeafe;
}

.category-separator {
    color: #94a3b8;
    font-weight: 600;
    margin: 0 2px;
}

/* Enhanced Price Display Styles */
.mrp-label {
    font-size: 14px;
    color: #666;
    margin-right: 8px;
}

.mrp-price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.discount-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.discount-amount {
    font-size: 14px;
    color: #8b5cf6;
    font-weight: 600;
}

.cost-price-info {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    font-size: 13px;
}

.cost-label {
    color: #856404;
    font-weight: 500;
    margin-right: 8px;
}

.cost-price {
    color: #856404;
    font-weight: 600;
}

/* Stock Status Styles */
.stock-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-status.in-stock {
    background-color: #8b5cf6;
    color: #ffffff;
    border: none;
    padding: 3px 6px;
    font-size: 11px;
}

.stock-status.low-stock {
    background-color: #f59e0b;
    color: #ffffff;
    border: none;
}

.stock-status.out-of-stock {
    background-color: #ef4444;
    color: #ffffff;
    border: none;
}

/* Price Section - Image Design */
.tf-product-info-price {
    margin-bottom: 20px;
}

.price-compact-layout {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.original-price {
    font-size: 22px;
    color: #999999;
    text-decoration: line-through;
    font-weight: 500;
}

.discount-percent {
    font-size: 18px;
    color: #00a651;
    font-weight: 700;
}

/* Description Section */
.tf-product-info-description {
    margin-bottom: 15px;
}

.tf-product-info-description p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Live View Counter */
.tf-product-info-liveview {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #8b5cf6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.tf-product-info-liveview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #a855f7, #8b5cf6);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.liveview-count {
    font-size: 28px;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
}

.liveview-count::after {
    content: '👥';
    margin-left: 8px;
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.tf-product-info-liveview p {
    margin: 0;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.view-status {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-indicator {
    animation: pulse 2s infinite;
    color: #8b5cf6;
}

.view-status.updating .status-indicator {
    animation: blink 1s infinite;
    color: #ffc107;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Product Description Styles */
.product-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.product-description p {
    margin-bottom: 15px;
    color: #555;
}

.tf-product-des-demo .right ul,
.tf-product-des-demo .left ul {
    list-style: none;
    padding: 0;
}

.tf-product-des-demo .right li,
.tf-product-des-demo .left li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tf-product-des-demo .right li:last-child,
.tf-product-des-demo .left li:last-child {
    border-bottom: none;
}

.text-success {
    color: #8b5cf6 !important;
}

.text-warning {
    color: #f59e0b !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-primary {
    color: #3b82f6 !important;
    text-decoration: none;
}

.text-primary:hover {
    text-decoration: underline;
}

/* Enhanced Meta Information Icons */
.meta-label::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: #3b82f6;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* Stock Status Enhancement */
.stock-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.stock-status.in-stock {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.stock-status.low-stock {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.stock-status.out-of-stock {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* Button Group Styles */
.button-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
}

.tf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 80px;
    flex: 1;
    height: 40px;
}

.tf-btn.btn-icon-only {
    
    height: 40px;
    padding: 0;
    flex: 0 0 auto;
}


.btn-add-to-cart {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    border-color: #8b5cf6;
    padding: 6px 12px;
    font-size: 12px;
    max-width: 153px;
    height: 40px;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-buy-now {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    border-color: #8b5cf6;
    padding: 6px 20px;
    font-size: 12px;
    max-width: 153px;
    height: 40px;
    padding: 0px 22px 0 23px !important;
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-wishlist {
    background: #ffffff;
    color: #8b5cf6;
    border-color: #8b5cf6;
    padding: 6px 12px;
    font-size: 12px;
    min-width: 80px;
    height: 40px;
}

.btn-wishlist:hover {
    background: #f3f0ff;
    color: #7c3aed;
    border-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.btn-wishlist.active {
    background: #8b5cf6;
    color: #ffffff;
    border-color: #8b5cf6;
}

.btn-wishlist.active:hover {
    background: #7c3aed;
    color: #ffffff;
}

.tf-btn i {
    font-size: 12px;
}

.tf-btn.btn-icon-only i {
    font-size: 12px;
}

.btn-add-to-cart {
    flex: 1;
}

/* Responsive Button Group */
@media (max-width: 768px) {
    .button-group {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
    }
    
    .btn-add-to-cart {
        flex: 1; 
    }
    
}

/* Hide quantity and button group on mobile (since they're in mobile bottom nav) */
@media (max-width: 1150px) {
    .tf-product-info-quantity,
    .tf-product-info-buy-button {
        display: none !important;
    }
}

/* Product Variations Styles */
.tf-product-info-variations {
    margin-bottom: 20px;
}

.variation-group {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.variation-label {
    font-weight: 600;
    color: #4C1D95;
    font-size: 14px;
    margin-bottom: 12px;
    display: block;
}

.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variation-option {
    padding: 10px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    text-align: center;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.variation-option:hover {
    border-color: #3b82f6;
    color: #6B46C1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.variation-option.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.variation-option.selected::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #8b5cf6;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Review System Styles */
.rating-stars {
    color: #ffc107;
    font-size: 14px;
    margin: 5px 0;
}

.review-actions {
    margin-top: 10px;
}

.btn-helpful {
    background: none;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
}

.btn-helpful:hover {
    background: #f3f0ff;
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.btn-helpful.voted {
    background: #8b5cf6;
    color: #fff;
    border-color: #8b5cf6;
}

.list-rating-check input[type="radio"] {
    display: none;
}

.list-rating-check label {
    cursor: pointer;
    font-size: 20px;
    color: #ddd;
    transition: color 0.3s ease;
}

.list-rating-check input[type="radio"]:checked ~ label,
.list-rating-check label:hover {
    color: #ffc107;
}

.list-rating-check input[type="radio"]:checked ~ label ~ label {
    color: #ffc107;
}

.write-review-wrap {
    display: none;
}

.write-review-wrap.active {
    display: block;
}

/* Product Reviews Section - Enhanced Styles */
.product-reviews-section {
    padding: 30px 0;
}

/* Review Statistics Container */
.review-stats-container {
    display: flex;
    gap: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.review-stats-left {
    flex: 0 0 250px;
    text-align: center;
    padding-right: 30px;
    border-right: 2px solid #e2e8f0;
}

.review-stats-right {
    flex: 1;
}

.review-average-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.average-rating-number {
    font-size: 56px;
    font-weight: 800;
    color: #8b5cf6;
    line-height: 1;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.average-rating-stars {
    display: flex;
    gap: 4px;
    font-size: 24px;
}

.average-rating-stars .icon-star {
    color: #ffc107;
}

.average-rating-stars .icon-star.active {
    color: #ffc107;
}

.rating-count-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Rating Breakdown */
.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 10px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-bar-label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 60px;
}

.rating-bar-label .rating-number {
    font-weight: 600;
    color: #4C1D95;
    font-size: 14px;
}

.rating-bar-label .icon-star {
    color: #ffc107;
    font-size: 14px;
}

.rating-bar-container {
    flex: 1;
    height: 10px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.rating-bar-count {
    min-width: 30px;
    text-align: right;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Product Review Badge */
.product-review-badge-container {
    margin: 20px 0;
}

.product-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-review-badge:hover {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #f3f0ff 0%, #f8fafc 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
    text-decoration: none;
}

.review-badge-stars {
    display: flex;
    gap: 2px;
    font-size: 16px;
}

.review-badge-stars .icon-star {
    color: #d1d5db;
}

.review-badge-stars .icon-star.active {
    color: #ffc107;
}

.review-badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-badge-rating {
    font-size: 18px;
    font-weight: 700;
    color: #8b5cf6;
    line-height: 1;
}

.review-badge-count {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.review-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-control {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-control textarea {
    resize: vertical;
    min-height: 120px;
}

.star-rating-input {
    display: flex;
    align-items: center;
}

.list-rating-check {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.list-rating-check input[type="radio"] {
    display: none;
}

.list-rating-check .star-label {
    cursor: pointer;
    font-size: 32px;
    color: #d1d5db;
    transition: all 0.2s ease;
    line-height: 1;
}

.list-rating-check .star-label:hover,
.list-rating-check .star-label:hover ~ .star-label {
    color: #ffc107;
}

.list-rating-check input[type="radio"]:checked ~ .star-label,
.list-rating-check input[type="radio"]:checked ~ .star-label ~ .star-label {
    color: #ffc107;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-cancel-review {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-review:hover {
    background: #e5e7eb;
    color: #4b5563;
}

.btn-submit-review {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit-review:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Reviews List Container */
.reviews-list-container {
    margin-top: 25px;
}

.reviews-list-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Review Item Card - Compact */
.review-item-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
}

.review-item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}

.review-user-icon i {
    font-size: 20px;
    color: #ffffff;
}

.review-user-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.review-user-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    text-transform: lowercase;
}

.review-date {
    font-size: 12px;
    color: #6b7280;
}

.review-rating-display {
    display: flex;
    gap: 2px;
    font-size: 16px;
    align-items: center;
}

.review-rating-display .icon-star {
    color: #d1d5db;
    font-size: 16px;
}

.review-rating-display .icon-star.active {
    color: #ffc107;
}

.review-item-content {
    margin-bottom: 12px;
}

.review-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    text-transform: lowercase;
}

.review-comment {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
}

.review-item-actions {
    display: flex;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.btn-helpful {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #6b7280;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.btn-helpful:hover {
    background: #f3f0ff;
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.btn-helpful.voted {
    background: #8b5cf6;
    color: #ffffff;
    border-color: #8b5cf6;
}

.btn-helpful .icon {
    font-size: 14px;
}

.helpful-count {
    font-weight: 600;
}

/* No Reviews Message */
.no-reviews-message {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.no-reviews-icon {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.no-reviews-text {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Responsive Design for Reviews */
@media (max-width: 768px) {
    .product-review-badge {
        padding: 10px 16px;
        gap: 10px;
    }
    
    .review-badge-stars {
        font-size: 14px;
    }
    
    .review-badge-rating {
        font-size: 16px;
    }
    
    .review-badge-count {
        font-size: 11px;
    }
    
    .review-stats-container {
        flex-direction: column;
        gap: 25px;
        padding: 20px;
    }
    
    .review-stats-left {
        flex: 1;
        border-right: none;
        border-bottom: 2px solid #e2e8f0;
        padding-right: 0;
        padding-bottom: 25px;
    }
    
    .review-stats-right {
        flex: 1;
    }
    
    .average-rating-number {
        font-size: 48px;
    }
    
    .rating-breakdown {
        gap: 10px;
    }
    
    .review-item-card {
        padding: 15px;
    }
    
    .review-item-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .review-rating-display {
        align-self: flex-start;
    }
    
    .review-user-icon {
        width: 36px;
        height: 36px;
    }
    
    .review-user-icon i {
        font-size: 18px;
    }
}

.variation-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
}

.variation-option.color-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    min-width: 50px;
    padding: 0;
    position: relative;
    border: 3px solid #e2e8f0;
}

.variation-option.color-option::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.variation-option.color-option:hover {
    border-color: #3b82f6;
    transform: translateY(-2px) scale(1.1);
}

.variation-option.color-option.selected {
    border-color: #3b82f6;
    background: #ffffff;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.variation-option.color-option.selected::after {
    border: 3px solid #3b82f6;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}

/* Variation Status Display */
.variation-status {
    margin-bottom: 15px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.1);
}

.variation-selected-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.variation-label-text {
    font-weight: 600;
    color: #0369a1;
    font-size: 14px;
}

#selected-variation-text {
    color: #0c4a6e;
    font-weight: 500;
    font-size: 14px;
}

.variation-price {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #4C1D95;
}

.variation-stock {
    margin-top: 5px;
    font-size: 12px;
    color: #6b7280;
}

.variation-stock.in-stock {
    color: #8b5cf6;
}

.variation-stock.low-stock {
    color: #f59e0b;
}

.variation-stock.out-of-stock {
    color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-meta-item {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
        padding: 8px 0;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .meta-label {
        min-width: 80px;
        font-size: 11px;
        margin-right: 8px;
    }
    
    .meta-value {
        font-size: 11px;
        flex: 1;
    }
    
    .category-hierarchy {
        gap: 2px;
    }
    
    .category-link {
        padding: 1px 4px;
        font-size: 10px;
        border-radius: 3px;
    }
    
    .stock-status {
        padding: 2px 6px;
        font-size: 10px;
        border-radius: 4px;
    }
    
    .price-compact-layout {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
    }
    
    .price-on-sale {
        font-size: 24px;
        font-weight: 700;
    }
    
    .compare-at-price {
        font-size: 16px;
    }
    
    .badges-on-sale {
        font-size: 12px;
        padding: 2px 6px;
    }
    
    .variation-options {
        gap: 6px;
    }
    
    .variation-option {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 50px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .product-meta-item {
        gap: 6px;
        padding: 6px 0;
        margin-bottom: 6px;
    }
    
    .meta-label {
        min-width: 70px;
        font-size: 10px;
        margin-right: 6px;
    }
    
    .meta-value {
        font-size: 10px;
    }
    
    .category-link {
        padding: 1px 3px;
        font-size: 9px;
    }
    
    .stock-status {
        padding: 1px 4px;
        font-size: 9px;
    }
    
    .price-compact-layout {
        gap: 8px;
    }
    
    .price-on-sale {
        font-size: 20px;
    }
    
    .compare-at-price {
        font-size: 14px;
    }
    
    .badges-on-sale {
        font-size: 10px;
        padding: 1px 4px;
    }
}

/* Additional Product Detail Styles */
.variation-group {
    margin-bottom: 20px;
}

.variation-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
}

.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variation-option {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    min-width: 60px;
    text-align: center;
}

.variation-option:hover {
    border-color: #333;
    background: #f8f8f8;
}

.variation-option.selected {
    border-color: #333;
    background: #333;
    color: #fff;
}

.variation-status {
    margin-top: 15px;
    padding: 10px;
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 6px;
    font-size: 14px;
}

.variation-selected-info {
    color: #8b5cf6;
    font-weight: 500;
}

/* Add to Cart Button Styles */
.btn-add-to-cart, .btn-buy-now, .btn-wishlist {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart:disabled, .btn-buy-now:disabled, .btn-wishlist:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-add-to-cart.in-wishlist, .btn-wishlist.in-wishlist {
    background-color: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
}

.btn-add-to-cart.success {
    background-color: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
}

.btn-add-to-cart i, .btn-buy-now i, .btn-wishlist i {
    transition: transform 0.3s ease;
}

.btn-add-to-cart:hover i, .btn-buy-now:hover i, .btn-wishlist:hover i {
    transform: scale(1.1);
}

/* Quantity Controls */
.wg-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: 40px;
}

.btn-quantity {
    background: #f8f9fa;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 40px;
}

.btn-quantity:hover {
    background: #e9ecef;
}

.quantity-product {
    border: none;
    text-align: center;
    width: 50px;
    padding: 6px;
    font-weight: 600;
    height: 40px;
}

.quantity-product:focus {
    outline: none;
    background: #f8f9fa;
}

/* Button Group Layout */
.button-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-icon-only {
    
    
    height: 40px;
    padding: 0;
}


@media (min-width: 768px) {
    .btn-icon-only span {
        display: inline;
        margin-left: 5px;
    }
}

/* Beautiful Login Alert Popup Styles */
.login-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.login-alert-overlay.show {
    display: flex;
    opacity: 1;
}

.login-alert-popup {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    transform: scale(0.9) translateY(30px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

.login-alert-overlay.show .login-alert-popup {
    transform: scale(1) translateY(0);
}

.login-alert-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 200% 100%;
    animation: gradientFlow 2s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-alert-header {
    text-align: center;
    padding: 30px 30px 20px;
    position: relative;
}

.login-alert-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentlePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.login-alert-icon i {
    font-size: 28px;
    color: #fff;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

.login-alert-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-alert-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #bdc3c7;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.login-alert-close:hover {
    background: #f8f9fa;
    color: #e74c3c;
    transform: rotate(90deg);
}

.login-alert-content {
    padding: 0 30px 30px;
    text-align: center;
}

.login-alert-message {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.login-alert-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.login-alert-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.login-alert-btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
}

.login-alert-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.login-alert-btn-secondary {
    background: #f3f0ff;
    color: #8b5cf6;
    border: 1px solid #8b5cf6;
}

.login-alert-btn-secondary:hover {
    background: #e9d5ff;
    transform: translateY(-1px);
}

.login-alert-btn:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .login-alert-popup {
        width: 95%;
        margin: 20px;
    }
    
    .login-alert-header {
        padding: 25px 20px 15px;
    }
    
    .login-alert-content {
        padding: 0 20px 25px;
    }
    
    .login-alert-icon {
        width: 60px;
        height: 60px;
    }
    
    .login-alert-icon i {
        font-size: 24px;
    }
    
    .login-alert-title {
        font-size: 20px;
    }
    
    .login-alert-buttons {
        flex-direction: column;
    }
    
    .login-alert-btn {
        width: 100%;
    }
}

/* Additional Inline Styles Moved from PHP */
.tf-page-title {
    background-color: #4f326742 !important;
    padding: 24px 0 24px;
}

.tf-page-title .heading {
    font-size: 29px;
}

.tf-breadcrumb-wrap {
    padding: 15px 0;
}

#view-status {
    font-size: 12px;
    color: #8b5cf6;
    margin-top: 4px;
}

.debug-info {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
}

#product-variations {
    margin-bottom: 20px;
}

#variation-status {
    display: none;
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 6px;
}

#standard-product-notice {
    display: none;
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 6px;
}

.flat-spacing-1.flat-iconbox {
    background: rgb(246 243 249);
    border-radius: 9px !important;
    margin-bottom: 32px;
    padding: 26px 0;
}

.login-alert-btn i {
    margin-right: 8px;
}

/* Exit Intent Feedback Modal Styles */
.exit-feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exit-feedback-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.exit-feedback-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.exit-feedback-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: exitFeedbackSlideIn 0.4s ease-out;
    z-index: 10001;
}

@keyframes exitFeedbackSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.exit-feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #4F3267 0%, #6B46A3 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.exit-feedback-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.exit-feedback-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.exit-feedback-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.exit-feedback-body {
    padding: 28px;
}

.exit-feedback-intro {
    color: #4b5563;
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.6;
    text-align: center;
}

.exit-feedback-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.exit-feedback-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.exit-feedback-option:hover {
    border-color: #6B46A3;
    background: #f3f4f6;
    transform: translateX(4px);
}

.exit-feedback-option input[type="radio"] {
    display: none;
}

.exit-feedback-option input[type="radio"]:checked + .radio-custom {
    background: linear-gradient(135deg, #4F3267, #6B46A3);
    border-color: #6B46A3;
}

.exit-feedback-option input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
    transform: scale(1);
}

.exit-feedback-option input[type="radio"]:checked ~ .option-text {
    color: #4F3267;
    font-weight: 600;
}

.exit-feedback-option:has(input[type="radio"]:checked) {
    border-color: #6B46A3;
    background: #f0f0ff;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: white;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.option-text {
    color: #374151;
    font-size: 0.95rem;
    flex: 1;
    transition: color 0.3s ease;
}

.exit-feedback-comment {
    margin-bottom: 24px;
}

.exit-feedback-comment label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
}

.exit-feedback-comment textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
}

.exit-feedback-comment textarea:focus {
    outline: none;
    border-color: #6B46A3;
    box-shadow: 0 0 0 3px rgba(107, 70, 163, 0.1);
}

.exit-feedback-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.exit-feedback-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.exit-feedback-btn-cancel {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.exit-feedback-btn-cancel:hover {
    background: #e5e7eb;
    color: #4b5563;
}

.exit-feedback-btn-submit {
    background: linear-gradient(135deg, #4F3267, #6B46A3);
    color: white;
}

.exit-feedback-btn-submit:hover {
    background: linear-gradient(135deg, #3d2652, #5a3a8a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 50, 103, 0.3);
}

.exit-feedback-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.exit-feedback-success {
    text-align: center;
    padding: 40px 20px;
}

.exit-feedback-success i {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 16px;
    display: block;
}

.exit-feedback-success p {
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .exit-feedback-content {
        width: 95%;
        max-width: none;
        margin: 20px;
    }
    
    .exit-feedback-header {
        padding: 20px;
    }
    
    .exit-feedback-header h3 {
        font-size: 1.25rem;
    }
    
    .exit-feedback-body {
        padding: 20px;
    }
    
    .exit-feedback-option {
        padding: 12px;
    }
    
    .option-text {
        font-size: 0.9rem;
    }
    
    .exit-feedback-actions {
        flex-direction: column;
    }
    
    .exit-feedback-btn {
        width: 100%;
    }
}