/* Consumer Homepage Styles */

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), #0056b3;
    background-size: cover;
    color: white;
    padding: 100px 0;
    margin-bottom: 50px;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Section Titles - now handled by product-grid-section.css */

/* Product grid styling moved to product-grid-section.css */

.product-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
    background-color: #f8f9fa;
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
}

.no-image {
    color: #6c757d;
    font-style: italic;
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
    /* Limit to 2 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-brand {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-price {
    font-weight: 700;
    color: #007bff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    margin-top: auto;
}

/* Categories Section */
.categories-section {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.category-card {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), #666;
    background-size: cover;
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 5px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: scale(1.03);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Brands Section */
.brands-section {
    padding: 50px 0;
}

.brand-card {
    display: block;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: #333;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #007bff;
}

.brand-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.brand-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}


/* Responsive Adjustments */
@media (max-width: 767px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .product-image {
        height: 150px;
    }
    
    .category-card {
        margin-bottom: 20px;
    }
}

/* Button Styles */
.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

.btn-outline-primary {
    color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-light:hover {
    color: #0056b3;
}
