/* Enhanced styling for product and service tabs */

/* Tab styling for "More from this seller" section */
.more-from-seller .nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.more-from-seller .nav-link {
    color: #6c757d;
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.25rem;
    margin-right: 1rem;
    transition: all 0.2s ease;
}

.more-from-seller .nav-link:hover {
    color: #4a90e2;
    background-color: rgba(74, 144, 226, 0.05);
}

.more-from-seller .nav-link.active {
    color: #4a90e2;
    border-bottom-color: #4a90e2;
    background-color: transparent;
}

/* Grid layout for product and service cards in tabs */
.more-from-seller .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for phones */
    gap: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .more-from-seller .grid-container {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for tablets */
        gap: 1.25rem;
    }
}

@media (min-width: 992px) {
    .more-from-seller .grid-container {
        grid-template-columns: repeat(4, 1fr); /* 4 columns for desktops */
        gap: 1.5rem;
    }
}

/* Card styling */
.more-from-seller .card {
    position: relative;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.more-from-seller .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Image container */
.more-from-seller .img-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
    background: #f8f9fa;
}

.more-from-seller .img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevent cropping */
    object-position: center;
    transition: opacity 0.3s, transform 0.3s;
    padding: 0.5rem;
}

.more-from-seller .card:hover .img-container img {
    transform: scale(1.03);
}

/* Card content */
.more-from-seller .card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.more-from-seller .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #475569;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    min-height: 2.8rem;
}

.more-from-seller .card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
    margin-top: auto;
    padding: 0.5rem 0;
}

/* Empty state */
.more-from-seller .alert-info {
    background-color: #f0f7ff;
    border-color: #cce5ff;
    color: #0c5460;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}