/* 
 * SBOBET88 - Products Page Styles
 * Additional styles specific to the products listing page
 */

/* Hero Section */
.products-hero {
    background: linear-gradient(135deg, #091e5b 0%, #1139af 100%);
    padding: 3rem 0;
    color: white;
    text-align: center;
}

.products-hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.products-hero p {
    color: #e6e6e6;
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* Search Box */
.search-container {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    position: relative;
}

#product-search-form {
    display: flex;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 50px;
    overflow: hidden;
}

#search-input {
    flex: 1;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px 0 0 50px;
    outline: none;
}

.search-btn {
    background: linear-gradient(to bottom, #ffda44 0%, #ffbd00 100%);
    color: #091e5b;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(to bottom, #ffce1f 0%, #ffb000 100%);
}

/* Product Categories Tags */
.product-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1rem;
}

.category-tag {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.category-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Featured Products Slider */
.featured-products {
    padding: 4rem 0;
    background: white;
}

.featured-slider {
    display: flex;
    overflow: hidden;
    margin: 2rem 0;
    position: relative;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.slider-arrow {
    background: transparent;
    border: 2px solid #091e5b;
    color: #091e5b;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: #091e5b;
    color: white;
}

.slider-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
    margin: 0 1rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #091e5b;
    transform: scale(1.2);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    flex: 0 0 100%;
    margin-right: 2rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card.featured {
    flex: 0 0 calc(33.333% - 2rem);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(to bottom, #ff5e62 0%, #ff2a6a 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(255, 42, 106, 0.3);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-details h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.stars {
    color: #ffbd00;
    margin-right: 0.5rem;
}

.count {
    color: #777;
    font-size: 0.9rem;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex: 1;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #091e5b;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.discount {
    background: #e9f7ef;
    color: #27ae60;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.btn-product {
    background: linear-gradient(to bottom, #0056b3 0%, #003580 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-product:hover {
    background: linear-gradient(to bottom, #004494 0%, #002a66 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 53, 128, 0.3);
    text-decoration: none;
    color: white;
}

/* Product Category Sections */
.product-category-section {
    padding: 4rem 0;
    background: white;
}

.product-category-section.alt-bg {
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.products-grid.small-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.view-more-container {
    text-align: center;
    margin-top: 2rem;
}

.btn-view-more {
    background: transparent;
    color: #0056b3;
    border: 2px solid #0056b3;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 600;
}

.btn-view-more:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* CTA Section */
.cta-products {
    padding: 4rem 0;
    background: linear-gradient(135deg, #091e5b 0%, #1139af 100%);
    color: white;
    text-align: center;
}

/* Recently Viewed Section */
.recently-viewed {
    padding: 4rem 0;
    background: #f0f7ff;
}

.empty-message {
    text-align: center;
    grid-column: 1 / -1;
    color: #777;
    padding: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .product-card.featured {
        flex: 0 0 calc(50% - 2rem);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .product-card.featured {
        flex: 0 0 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .products-hero h1 {
        font-size: 2rem;
    }
    
    .search-container {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .products-hero h1 {
        font-size: 1.8rem;
    }
    
    .category-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .product-details h3 {
        font-size: 1.1rem;
    }
    
    .price {
        font-size: 1.2rem;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
    }
}