/* Category Hub Design System */

/* Hero Banner Styles */
.hero-banner {
    position: relative;
    margin-bottom: 2rem;
}

.banner-container {
    height: 400px;
    overflow: hidden;
    border-radius: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: center;
}

.banner-content {
    color: white;
    max-width: 500px;
}

.banner-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Section Header */
.section-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #232f3e;
    margin-bottom: 0;
}

.section-subtitle {
    font-size: 0.95rem;
}

/* Product Card Styles */
.product-card {
    background: white;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #ddd;
}

.product-image-container {
    position: relative;
    background: #f8f9fa;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
    opacity: 0; /* Updated to 1 via observer */
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.product-info {
    padding: 1rem;
}

.product-title {
    margin-bottom: 0.5rem;
}

.product-title a {
    color: #232f3e;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a:hover {
    color: #007185;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #ffa500;
    font-size: 0.85rem;
}

.stars i {
    margin-right: 1px;
}

.rating-count {
    color: #007185;
    font-size: 0.8rem;
    text-decoration: none;
}

.rating-count:hover {
    text-decoration: underline;
}

.product-price {
    margin-bottom: 0.75rem;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #232f3e;
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.stock-status {
    font-size: 0.8rem;
}

.stock-available {
    color: #007600;
    font-weight: 500;
}

.stock-low {
    color: #ff6600;
    font-weight: 500;
}

.stock-out {
    color: #cc0000;
    font-weight: 500;
}

.btn-add-cart {
    font-size: 0.9rem;
    padding: 0.5rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-add-cart:hover {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .banner-container {
        height: 250px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: start !important;
        gap: 1rem;
    }
    
    .product-actions {
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .products-section {
        padding: 2rem 0;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .row {
        margin-left: -0.375rem;
        margin-right: -0.375rem;
    }
    
    .row > * {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
    }
}

.product-link {
    display: block;
    text-decoration: none;
}
