/* Smartphone Compare Pro - Final Premium UI */
.scp-phone-card-container {
    max-width: 900px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Top Row: Image | Specs | Buttons */
.scp-phone-card-top {
    display: grid;
    grid-template-columns: 90px 1fr 120px;
    gap: 16px;
    padding: 18px;
    background: #ffffff;
}

.scp-phone-card-top img {
    width: 90px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    align-self: start;
}

/* Specs Section */
.specs-container h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a !important;
}

.specs-container .price {
    font-size: 16px;
    font-weight: 600;
    color: #d32f2f;
    margin: 0 0 8px 0;
    border: none;
}

.specs-container .specs {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

/* Buttons Section */
/* Buttons Container - Mobile Friendly */
/* Buttons Container - Always Horizontal */
.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: start;
}

.buttons-container a,
.buttons-container button {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto; /* Prevent shrinking */
    min-width: 75px;
}

.btn-amazon {
    background: #ff9900 !important;
    color: white !important;
}

.btn-amazon:hover {
    background: #e68a00;
}

.btn-flipkart {
    background: #2874f0 !important;
    color: white !important;
}

.btn-flipkart:hover {
    background: #1b5ac0;
}

.btn-compare {
    background: #4b5563;
    color: white  !important;
}

.btn-compare:hover {
    background: #374151;
}

/* Responsive: Mobile - Horizontal Scroll */
@media (max-width: 768px) {
    .scp-phone-card-top {
        grid-template-columns: 80px 1fr;
        gap: 12px;
        padding: 14px;
    }

    /* Wrap buttons in scrollable container */
    .buttons-container {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 4px;
        scrollbar-width: thin; /* Firefox */
        -webkit-overflow-scrolling: touch;
        min-width: 400px;
    }

    .buttons-container::-webkit-scrollbar {
        height: 6px;
    }

    .buttons-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }

    /* Slightly smaller buttons */
    .buttons-container a,
    .buttons-container button {
        font-size: 12px;
        padding: 6px 10px;
        min-width: 70px;
    }
}

/* Hide scrollbar but keep functionality */
.buttons-container::-webkit-scrollbar {
    display: none;
}

/* Optional: Show scrollbar on hover */
/* .buttons-container:hover::-webkit-scrollbar {
    display: block;
} */
/* Full-Width Pros & Cons Below */
.pros-cons-full {
    padding: 16px 18px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.pros-cons {
    display: flex;
    gap: 16px;
    font-size: 13.5px;
}

.pros-column, .cons-column {
    flex: 1;
    min-width: 0;
}

.pros-column h4, .cons-column h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 4px 0;
    border-bottom: 2px solid;
    border-radius: 6px 6px 0 0;
}

.pros-column h4 {
    color: #047857 !important;
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

.cons-column h4 {
    color: #b91c1c !important;
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.pros-item, .cons-item {
    display: block;
    margin: 4px 0;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    font-size: 13px;
}

.pros-item {
    background: #f0fdf4;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.cons-item {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
