/*----------------------------------------*/
/* Product Card Styles - Enhanced */
/*----------------------------------------*/

.product-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1; /* Maintain square ratio */
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.03);
}

/*----------------------------------------*/
/* Enhanced Card Styles */
/*----------------------------------------*/

.card {
    border: 1px solid rgba(121, 82, 179, 0.2);
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-title {
    color: #7952B3;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #7952B3, #FFCB2F);
}

.card-body {
    padding: 1.5rem;
}

.card-body ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.card-body ul li {
    margin-bottom: 12px;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.card-body ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #7952B3;
    font-weight: bold;
}

/*----------------------------------------*/
/* Enhanced Comparison Table */
/*----------------------------------------*/
.comparison-table {
    margin-top: 3rem;
    border: 1px solid #e0e0e0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.comparison-table th, 
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
    font-weight: bold; /* 👈 Makes all table text bold */

}

.comparison-table th {
    background-color: #7952B3;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.comparison-table td {
    background-color: #fafafa;
    font-size: 0.9rem;
    color: #333;
}

.comparison-table tr:nth-child(even) td {
    background-color: #f5f5f5;
}

.comparison-table tr:hover td {
    background-color: #f0f0f0;
}

/* Highlight recommended option */
.comparison-table .highlight {
    position: relative;
    background-color: #f9f5ff;
}

.comparison-table .highlight::after {
    content: 'Recommended';
    position: absolute;
    top: -10px;
    right: 10px;
    background: #FFCB2F;
    color: #333;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
}

/*----------------------------------------*/
/* Enhanced Carousel Slider */
/*----------------------------------------*/

.carousel {
    padding: 1rem 0;
}

.carousel-item {
    padding: 0 15px;
    text-align: center;
}

.carousel-item img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: grayscale(100%) brightness(0.9);
    opacity: 0.8;
}

.carousel-item img:hover {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon, 
.carousel-control-next-icon {
    background-color: rgba(121, 82, 179, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-size: 60%;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover, 
.carousel-control-next-icon:hover {
    background-color: #7952B3;
    transform: scale(1.1);
}

.carousel-indicators {
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    background-color: rgba(121, 82, 179, 0.4);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #7952B3;
    width: 30px;
    border-radius: 5px;
}

/*----------------------------------------*/
/* Enhanced Trusted Section */
/*----------------------------------------*/
.trusted-section {
    background-color: #f9f9f9;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.trusted-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #7952B3, #FFCB2F);
}

.trusted-section h4 {
    font-size: 1rem;
    color: #666;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 600;
}

.trusted-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #7952B3;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.trusted-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, #7952B3, transparent);
}

/*----------------------------------------*/
/* Enhanced Tooltip */
/*----------------------------------------*/
.tooltip {
    --bs-tooltip-bg: #7952B3;
}

.tooltip-inner {
    background-color: var(--bs-tooltip-bg);
    color: white;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 250px;
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--bs-tooltip-bg);
}

/*----------------------------------------*/
/* Enhanced Tab Navigation */
/*----------------------------------------*/
.nav-tabs {
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(121, 82, 179, 0.1);
}

.nav-tabs .nav-link {
    color: #666;
    font-weight: 600;
    border: none;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 0;
}

.nav-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: #7952B3;
    transition: width 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #7952B3;
    background-color: transparent;
}

.nav-tabs .nav-link:hover::after {
    width: 100%;
}

.nav-tabs .nav-link.active {
    color: #7952B3;
    background-color: transparent;
    border: none;
}

.nav-tabs .nav-link.active::after {
    width: 100%;
}

/*----------------------------------------*/
/* Dark Mode Enhancements */
/*----------------------------------------*/
body[data-theme="dark"] {
    background-color: #1a1a2e;
    color: #e6e6e6;
}

body[data-theme="dark"] .card {
    background-color: #2a2a3e;
    border-color: rgba(121, 82, 179, 0.3);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .card-title {
    color: #b388ff;
}

body[data-theme="dark"] .card-title::after {
    background: linear-gradient(90deg, #b388ff, #FFCB2F);
}

body[data-theme="dark"] .card-body ul li::before {
    color: #b388ff;
}

body[data-theme="dark"] .card-body ul li {
    color: #e6e6e6;
}

/* Dark mode comparison table */
body[data-theme="dark"] .comparison-table {
    border-color: #3a3a4e;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .comparison-table th {
    background-color: #5e43a3;
}

body[data-theme="dark"] .comparison-table td {
    background-color: #2a2a3e;
    color: #e6e6e6;
    border-color: #3a3a4e;
}

body[data-theme="dark"] .comparison-table tr:nth-child(even) td {
    background-color: #333347;
}

body[data-theme="dark"] .comparison-table tr:hover td {
    background-color: #3a3a4e;
}

body[data-theme="dark"] .comparison-table .highlight {
    background-color: #3a2a5e;
}

/* Dark mode trusted section */
body[data-theme="dark"] .trusted-section {
    background-color: #2a2a3e;
}

body[data-theme="dark"] .trusted-section h4 {
    color: #b3b3b3;
}

body[data-theme="dark"] .trusted-section h2 {
    color: #b388ff;
}

body[data-theme="dark"] .trusted-section h2::after {
    background: linear-gradient(90deg, #b388ff, transparent);
}

/* Dark mode tabs */
body[data-theme="dark"] .nav-tabs {
    border-bottom-color: rgba(121, 82, 179, 0.2);
}

body[data-theme="dark"] .nav-tabs .nav-link {
    color: #b3b3b3;
}

body[data-theme="dark"] .nav-tabs .nav-link:hover,
body[data-theme="dark"] .nav-tabs .nav-link.active {
    color: #b388ff;
}

/*----------------------------------------*/
/* Responsive Breakpoints */
/*----------------------------------------*/
@media (max-width: 992px) {
    .card-title {
        font-size: 1.1rem;
    }
    
    .trusted-section h2 {
        font-size: 2.2rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .card {
        margin-bottom: 1.5rem;
    }
    
    .trusted-section {
        padding: 3rem 0;
    }
    
    .trusted-section h2 {
        font-size: 2rem;
    }
    
    .carousel-item img {
        max-height: 90px;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        margin: 0 0.25rem;
        font-size: 0.9rem;
    }
    
    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1.25rem;
    }
    
    .trusted-section h2 {
        font-size: 1.75rem;
    }
    
    .trusted-section h4 {
        font-size: 0.9rem;
    }
    
    .carousel-item img {
        max-height: 70px;
    }
    
    .nav-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }
    
    .nav-tabs .nav-link {
        white-space: nowrap;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}