/* General styles */
body {
    background-color: #f8f9fa;
    font-family: 'Arial', sans-serif;
    padding-top: 20px;
    padding-bottom: 20px;
    overflow-x: hidden;
    font-size: 1rem;
}

.container {
    margin-bottom: 30px;
}

.comparison-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: bold;
}

.comparison-table {
    width: 100%;
    margin: 0 auto;
    table-layout: fixed;
    border-collapse: separate;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #FFFFFF;
}

.comparison-table th,
.comparison-table td {
    vertical-align: top;
    padding: 15px;
    border: 1px solid #dee2e6;
    word-wrap: break-word;
    transition: background-color 0.3s ease;
    min-width: 250px;
    text-align: center;
}

.comparison-table th {
    background: #f1f1f1;
    color: #000054;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 1.1em;
    border-bottom: 1px solid #dee2e6;
}

.comparison-table th i {
    margin-right: 8px;
}

.comparison-table td:hover {
    background-color: #f9f9f9;
}

/* Feature Group Styles */
.feature-group {
    text-align: left !important;
    font-weight: bold;
    padding-left: 15px;
    color: #ff00ff;
    background-color: #ff00ff !important;
    border-bottom: 2px solid #dee2e6;
    font-size: 1em;
}



.feature-group i {
    margin-right: 8px;
    color: #007bff;
    vertical-align: middle;
}

.feature-name {
    text-align: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
    font-size: 0.9em;
}

/* Product Header Styles */
.product-header {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-header img {
    width: 100px;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
    border: none;
    padding: 5px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-header img:hover {
    transform: scale(1.05);
}

/* Remove Button Styles */
.remove-btn {
    position: absolute;
    top: 5px;      /* Distance from the top */
    right: 5px;    /* Distance from the right */
    font-size: 20px; /* Icon size */
    color: #dc3545; /* Red color for the icon */
    transition: color 0.3s ease; /* Smooth color transition */
}

/* Hover Effect for Remove Icon */
.remove-btn:hover {
    color: #ff0000; /* Darker red when hovered */
    cursor: pointer;
}


/* Search Container Styles */
.search-container {
    position: relative;
    width: 100%;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.suggestion-item:hover {
    background-color: #f1f1f1;
}

.suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
}

.suggestion-item .product-info {
    display: flex;
    flex-direction: column;
}

.suggestion-item .product-info .name {
    font-weight: bold;
    color: #343a40;
    font-size: 0.9em;
}

.suggestion-item .product-info .price {
    color: #28a745;
    font-size: 0.8em;
}

/* Random Product Section Styles */
.random-product-section {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.random-product-section img {
    width: 80px;
    height: auto;
    object-fit: contain;
    margin-right: 20px;
    border: none;
    padding: 2px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.random-product-section img:hover {
    transform: scale(1.05);
}

.random-product-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}



.random-product-details {
    flex-grow: 1;
    font-size: 0.6em ;
}

.add-random-btn {
    font-size: 1.5em;
    color: #28a745;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.add-random-btn:hover {
    color: #218838;
}

/* Reset Button Styles */
.reset-btn {
    font-size: 0.5em;
    color: #dc3545;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.reset-btn:hover {
    color: #bd2130;
}

/* Highlight Styles */
.differ {
    background-color: #ffeeba;
}

.highlight-green {
    background-color: #d4edda !important;
    border: 2px solid #28a745;
}

.highlight-red {
    background-color: #f8d7da !important;
    border: 2px solid #dc3545;
}

/* VS Icon Styles */
.vs-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 1px;
    border: 1px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: green;
    color: whitesmoke;
    font-size: 0.6em;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 550;
}

@media (max-width: 768px) {
    .vs-icon {
        width: 30px;
        height: 30px;
        font-size: 0.6em;
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .vs-icon {
        width: 20px;
        height: 20px;
        font-size: 0.6em;
        padding: 12px;
    }
    
   .vs-circle {
   
    width: 30px !important;
    height: 30px!important;
    
    font-size: 12px;
    color: #007bff;
    margin: 0 1px;
} 


    
}

/* Swiper.js Container Styles */
.swiper-container {
    width: 100%;
    padding: 20px 0;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Swiper Navigation Button Styles */
.swiper-button-next,
.swiper-button-prev {
    color: #007bff;
}

/* Comparison Card Styles */
.comparison-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 5px;
    background-color: #fff;
    margin: 5px;
    transition: transform 0.2s;
    cursor: pointer;
    width: 400px !important;
}

.comparison-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.comparison-card img {
    max-width: 80px;
    height: auto;
    margin-bottom: 10px;
}

/* VS Circle Styles */
.vs-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #007bff;
    border-radius: 50%;
    font-size: 16px;
    color: #007bff;
    margin: 0 20px;
}

/* Phone Name Styles */
.phone-name {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 10px;
}

/* Section Title Styles */
.section-title {
    border-left: 5px solid #007bff;
    padding-left: 10px;
    background-color: #f1f1f1;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Conclusion Section Styles */
.conclusion-section {
    background-color: #ffffff;
    padding: 30px;
    margin-top: 50px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.conclusion-section h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.conclusion-section h4 {
    font-size: 1.3rem;
    margin-top: 20px;
    color: green !important;
}

.pros-list {
    list-style: none;
    padding-left: 0;
}

.pros-list li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.pros-list li i {
    color: #28a745;
    margin-right: 10px;
}

/* Modal Header Styles */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: none;
}

.modal-header .live-search-modal {
    flex-grow: 1;
    margin-right: 10px;
}

/* Suggestions Modal Styles */
.suggestions-modal {
    max-height: 60vh;
    overflow-y: auto;
}

.suggestions-modal .suggestion-item {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}
