/* Business Profile Page Styles */

.featured {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

/* Product Card Styling */
.product-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-title {
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.badge-success {
    background-color: #81B622 !important;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
}

/* Button Styling */
.button-style {
    transition: all 0.3s ease;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

.button-style:hover {
    opacity: 0.9;
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(129, 182, 34, 0.3);
}

/* Header Section */
.d-flex.justify-content-between {
    gap: 2rem;
}

/* Empty State Styling */
.alert-info {
    background-color: #e7f3ff;
    border-color: #b3d9ff;
    border-radius: 12px;
    padding: 2rem;
}

.alert-info h5 {
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.alert-info p {
    color: #004499;
    margin-bottom: 1.5rem;
}

/* Pagination Styling */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border-radius: 6px;
    border: 1px solid #ddd;
    color: #81B622;
}

.page-link:hover {
    background-color: #81B622;
    border-color: #81B622;
    color: white;
}

.page-item.active .page-link {
    background-color: #81B622;
    border-color: #81B622;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .featured {
        padding: 15px;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }

    .d-flex.justify-content-between > div:last-child {
        width: 100%;
    }

    .d-flex.justify-content-between > div:last-child .btn {
        width: 100%;
    }

    .product-image-wrapper {
        height: 200px !important;
    }

    .card-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .product-card {
        margin-bottom: 1rem;
    }

    .product-image-wrapper {
        height: 180px !important;
    }

    .card-body {
        padding: 0.75rem !important;
    }

    .card-title {
        font-size: 0.85rem;
    }

    .button-style {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Card Body Alignment */
.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Link styling */
.card-link {
    text-decoration: none;
    color: inherit;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}
