/* Product Variants Styling */
.product-variants .variants-grid {
    max-width: 100%;
}

.variant-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6 !important;
    background-color: #fff;
    min-height: 80px;
}

.variant-card:hover {
    border-color: #7db547 !important;
    box-shadow: 0 4px 12px rgba(125, 181, 71, 0.15);
    transform: translateY(-2px);
}

.variant-card.selected {
    border-color: #198754 !important;
    background-color: #f8fff9;
    box-shadow: 0 4px 16px rgba(25, 135, 84, 0.2);
}

.variant-card:focus {
    outline: none;
    border-color: #7db547 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.variant-thumbnail {
    width: 40px;
    height: 40px;
}

.variant-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    object-position: center;
}

.variant-placeholder {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
}

.variant-name {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.variant-price {
    font-size: 0.85rem;
    line-height: 1.2;
}

.variant-selected-indicator {
    font-size: 1.1rem;
}

.cursor-pointer {
    cursor: pointer;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .variant-card {
        min-height: 100px;
    }

    .variant-thumbnail {
        width: 60px;
        height: 60px;
    }

    .variant-image,
    .variant-placeholder {
        width: 60px;
        height: 60px;
    }

    .variant-name {
        font-size: 0.85rem;
    }

    .variant-price {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .variant-card {
        min-height: 78px;
    }
}

@media (min-width: 992px) {
    .variant-card {
        min-height: 78px;
    }
}

/* Related Products Section Styling */
.related-products-section {
    border-top: 1px solid #e9ecef;
}

.section-header .section-title {
    color: #2c3e50;
    position: relative;
}

.section-header .section-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #7db547, #578825);
    border-radius: 2px;
}

.related-product-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #bfcece !important;
}

.related-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
    border-color: #7db547 !important;
}

.product-image-wrapper {
    overflow: hidden;
    height: 200px;
    background: #f8f9fa;
}

.product-image {
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.related-product-card:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.95) !important;
}

.related-product-card:hover .quick-view-btn {
    opacity: 1 !important;
    transform: scale(1.05);
}

.discount-badge .badge {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 1rem !important;
}

.product-name a {
    transition: color 0.3s ease;
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a:hover {
    color: #67a136 !important;
}

.star-rating-display {
    display: flex;
    gap: 1px;
}

.star-rating-display .fa-star {
    font-size: 0.75rem !important;
}

.rating-text {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.product-price {
    margin-bottom: 0.75rem;
}

.current-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-gray-500);
}

.product-name--related a {
    font-family: var(--theme-font);
    font-weight: bold;
    font-size: 18px;
    color: var(--gray-800);
}

.original-price {
    font-size: 0.85rem;
}

.add-to-cart-btn {
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 24px;
    border-width: 1px;
}

.add-to-cart-btn:hover {
    background-color: #7db547;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(125, 181, 71, 0.3);
}

.add-to-cart-btn--card {
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-width: 1px;
    color: #7db547;
    border-color: #7db547 !important;
}

.add-to-cart-btn--card:hover {
    background-color: #7db547;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(125, 181, 71, 0.3);
}

.product-tab-style1 a {
    color: var(--gray-800);
}

.product-content-body {
    color: var(--gray-800);
}

/* Responsive adjustments for related products */
@media (max-width: 576px) {
    .product-image-wrapper {
        height: 160px;
    }

    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 0.75rem !important;
    }

    .product-name a {
        font-size: 0.9rem;
    }

    .current-price {
        font-size: 0.95rem;
    }

    .section-header .section-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .product-image-wrapper {
        height: 180px;
    }

    .product-image {
        height: 180px;
    }
}

@media (min-width: 1200px) {
    .related-product-card:hover {
        transform: translateY(-10px);
    }
}
