/* Home Page Styles */

/* Home Page Background */
.home-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Page Container */
.home-container {
    background-color: transparent;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 0.75rem;
}

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

/* Store Cards */
.store-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 0.75rem;
}

.store-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Store Card Content */
.store-card .card-body {
    background-color: white;
    color: #333;
}

.store-card .card-title {
    color: #333;
    font-weight: 600;
}

.store-card .card-text {
    color: #6c757d;
}

.store-card .text-muted {
    color: #6c757d !important;
}

/* Badges */
.badge {
    font-size: 0.75rem;
}

/* Card Footer */
.card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    background-color: rgba(0, 0, 0, 0.03);
}

/* Product Thumbnails */
.product-thumbnail:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.product-thumbnail {
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-thumbnail img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.25rem;
    flex-shrink: 0;
}

.product-thumbnail .d-flex {
    flex: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    padding: 2px 4px;
}

.product-thumbnail small {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-name {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 2px;
}

.product-name small {
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
    white-space: normal;
    overflow: visible;
}

/* Featured Products Styles */
.featured-product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 200px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.featured-product-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.featured-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.featured-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    font-size: 2rem;
}

.featured-product-text-container {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    min-height: 60px;
    text-align: center;
}

.featured-product-name {
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.3;
    word-break: break-word;
}

/* Product name in thumbnails */
.product-name small {
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
    white-space: normal;
    overflow: visible;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .featured-product-card {
        height: 180px;
    }

    .featured-product-text-container {
        min-height: 50px;
        padding: 8px;
    }

    .featured-product-name {
        font-size: 0.8rem;
    }
}
