.phone-specifications {
    width: 100%;
    color: #252525;
}

.phone-spec-heading {
    padding: 14px 16px;
    background: #20252b;
    color: #fff;
    border-radius: 10px 10px 0 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.phone-spec-table {
    width: 100%;
    margin-bottom: 0;
    table-layout: fixed;
}

.phone-spec-table th,
.phone-spec-table td {
    padding: 12px;
    vertical-align: top;
    text-align: right;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.phone-spec-table .phone-spec-label {
    width: 34%;
    font-weight: 600;
}

.phone-spec-subheading th {
    background: #e9ecef;
    color: #252525;
    font-weight: 700;
}

.phone-spec-section .table-responsive {
    border-radius: 0 0 10px 10px;
}

@media (max-width: 576px) {
    .phone-spec-table th,
    .phone-spec-table td {
        padding: 9px;
        font-size: 0.9rem;
    }

    .phone-spec-table .phone-spec-label {
        width: 38%;
    }
}

/* Related products: horizontal scroll */
.related-products-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 14px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.related-product-item {
    flex: 0 0 300px;
    min-width: 0;
    scroll-snap-align: start;
}

/* Override Bootstrap column widths inside the slider */
.related-product-item .product-div {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 0 !important;
}

.related-products-track::-webkit-scrollbar {
    height: 6px;
}

.related-products-track::-webkit-scrollbar-thumb {
    background: #b8b8b8;
    border-radius: 10px;
}

.related-products-track::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 575.98px) {
    .related-product-item {
        flex-basis: 230px;
    }
}

/* Equal height for related product cards */
.related-products-track {
    align-items: stretch;
}

.related-products-track > .related-product-item {
    display: flex;
    align-items: stretch;
}

.related-products-track .product-div {
    display: flex;
    align-items: stretch;
    height: auto;
}

.related-products-track .product-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Keep product details at the bottom */
.related-products-track .product-item > .text-center.pb-3.mt-auto {
    margin-top: auto !important;
}
