/* Compare Page Styles */

body {
    background-color: #f8f8f8;
}

/* Compare Section */
.compare-section {
    padding: 80px 20px;
    min-height: calc(100vh - 100px);
}

.compare-container {
    max-width: 1400px;
    margin: 0 auto;
}

.compare-container h1 {
    font-family: Helvetica Neue, sans-serif;
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #000;
}

.section-intro {
    font-size: 20px;
    text-align: center;
    color: #666;
    margin-bottom: 60px;
    line-height: 1.6;
}

/* Table Wrapper */
.compare-table-wrapper {
    overflow-x: auto;
    background: #FFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 900px;
}

/* Table Header */
.compare-table thead tr {
    background-color: #f8f8f8;
}

.compare-table th {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    background-color: #f8f8f8;
    z-index: 10;
}

.feature-column {
    text-align: left !important;
    font-weight: 700;
    font-size: 16px;
    color: #000;
    min-width: 200px;
}

.product-column {
    min-width: 180px;
}

.product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.product-header img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-header:hover img {
    transform: scale(1.1);
}

.product-header h3 {
    font-family: Helvetica Neue, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #4a90e2;
    margin: 0;
}

/* Table Body */
.compare-table tbody tr {
    transition: background-color 0.2s ease;
}

.compare-table tbody tr:nth-child(odd) {
    background-color: #fafafa;
}

.compare-table tbody tr:hover {
    background-color: #f0f7ff;
}

.compare-table td {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}

.feature-name {
    text-align: left !important;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.feature-value {
    font-size: 15px;
    color: #666;
}

.feature-value.check {
    color: #00b67a;
    font-size: 24px;
    font-weight: 700;
}

.feature-value.cross {
    color: #ccc;
    font-size: 24px;
    font-weight: 300;
}

/* Rating Row */
.rating-row {
    background-color: #f0f7ff !important;
    font-weight: 600;
}

.rating-row .feature-value {
    color: #FFD700;
    font-size: 20px;
    letter-spacing: 2px;
}

/* App Displays Slider Section */
.app-displays-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid #e0e0e0;
}

.app-displays-section h2 {
    font-family: Helvetica Neue, sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #000;
}

.displays-intro {
    font-size: 18px;
    text-align: center;
    color: #666;
    margin-bottom: 60px;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.displays-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.slider-overflow-wrapper {
    overflow: hidden;
    position: relative;
}

.displays-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
    padding: 20px 0;
}

.display-slide {
    min-width: calc(50% - 15px);
    max-width: calc(50% - 15px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: transparent;
    border-radius: 12px;
    border: none;
    transition: all 0.4s ease;
    opacity: 1;
    transform: scale(1);
    box-sizing: border-box;
}

.display-slide.active {
    opacity: 1;
    transform: scale(1);
    background: transparent;
    box-shadow: none;
}

.display-image {
    width: 100%;
    max-width: 100%;
    height: 300px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.display-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.display-info {
    text-align: center;
    max-width: 100%;
}

.display-info h3 {
    font-family: Helvetica Neue, sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.display-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.display-features li {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Slider Buttons */
.slider-btn-display {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #FFF;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn-display:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn-display svg {
    width: 24px;
    height: 24px;
}

.prev-btn-display {
    left: 20px;
}

.next-btn-display {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: #999;
}

.dot.active {
    background-color: #000;
    width: 30px;
    border-radius: 6px;
}

/* App Features Section */
.app-features-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid #e0e0e0;
}

.feature-value.rating {
    color: #FFD700;
    font-size: 18px;
    letter-spacing: 2px;
}

/* Products Section */
.products-section {
    margin-top: 60px;
    padding: 40px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card-image {
    width: 100%;
    height: 280px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-card-content h3 {
    font-family: Helvetica Neue, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
    min-height: 44px;
    line-height: 1.4;
}

.product-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #4a90e2;
    margin: 0;
}

.product-card-btn {
    width: 100%;
    padding: 14px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.product-card-btn:hover {
    background-color: #333;
    transform: scale(1.02);
}

.product-card-btn:active {
    transform: scale(0.98);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .compare-container h1 {
        font-size: 40px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .compare-section {
        padding: 60px 20px;
    }
    
    .compare-container h1 {
        font-size: 32px;
    }
    
    .section-intro {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .compare-table-wrapper {
        padding: 15px;
        border-radius: 8px;
    }
    
    .compare-table {
        font-size: 14px;
    }
    
    .compare-table th,
    .compare-table td {
        padding: 12px 8px;
    }
    
    .product-header img {
        width: 70px;
        height: 70px;
    }
    
    .product-header h3 {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 13px;
    }
    
    .feature-name {
        font-size: 13px;
    }
    
    .feature-value {
        font-size: 13px;
    }
    
    .app-displays-section {
        margin-top: 60px;
        padding-top: 40px;
    }
    
    .app-displays-section h2 {
        font-size: 28px;
    }
    
    .displays-intro {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .displays-slider-container {
        padding: 0 60px;
    }
    
    .display-slide {
        min-width: calc(50% - 15px);
        max-width: calc(50% - 15px);
        padding: 15px;
        box-sizing: border-box;
    }
    
    .display-image {
        height: 250px;
        margin-bottom: 25px;
    }
    
    .display-info h3 {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .display-features li {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .slider-btn-display {
        width: 40px;
        height: 40px;
    }
    
    .slider-btn-display svg {
        width: 20px;
        height: 20px;
    }
    
    .prev-btn-display {
        left: 10px;
    }
    
    .next-btn-display {
        right: 10px;
    }
    
    .app-features-section {
        margin-top: 60px;
        padding-top: 40px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .product-card-image {
        height: 220px;
        padding: 20px;
    }
    
    .product-card-content {
        padding: 20px;
    }
    
    .product-card-content h3 {
        font-size: 16px;
        min-height: 40px;
    }
    
    .product-card-price {
        font-size: 18px;
    }
    
    .product-card-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .compare-container h1 {
        font-size: 28px;
    }
    
    .compare-table-wrapper {
        padding: 10px;
    }
    
    .product-header img {
        width: 60px;
        height: 60px;
    }
    
    .displays-slider-container {
        padding: 0 50px;
    }
    
    .display-slide {
        min-width: 100%;
        max-width: 100%;
        padding: 20px 15px;
        box-sizing: border-box;
    }
    
    .display-image {
        height: 200px;
    }
    
    .display-info h3 {
        font-size: 22px;
    }
    
    .display-features li {
        font-size: 13px;
    }
    
    .prev-btn-display {
        left: 5px;
    }
    
    .next-btn-display {
        right: 5px;
    }
    
    .app-features-section {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card-image {
        height: 200px;
        padding: 15px;
    }
    
    .product-card-content {
        padding: 18px;
    }
    
    .product-card-content h3 {
        font-size: 15px;
        min-height: auto;
    }
    
    .product-card-price {
        font-size: 17px;
    }
    
    .product-card-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

