﻿/* ========== PRODUCT SECTION STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.products-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

    .products-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #FF9800, #FF5722, #FF9800);
    }

.products-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255,87,34,0.2);
}

    .section-badge i {
        margin-right: 8px;
    }

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: #1a1a1a;
}

    .section-title span {
        background: linear-gradient(120deg, #FF9800, #FF5722);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }

.section-description {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

    .product-card.featured {
        border: 2px solid #FF9800;
        transform: scale(1.02);
    }

        .product-card.featured:hover {
            transform: translateY(-10px) scale(1.02);
        }

/* Product Image */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: #f0f0f0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #FF9800;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.featured-badge {
    background: linear-gradient(135deg, #FF9800, #FF5722);
}

/* Product Content */
.product-content {
    padding: 25px;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.3;
}

.product-rating {
    margin-bottom: 15px;
    color: #FFB800;
}

    .product-rating i {
        margin-right: 3px;
    }

    .product-rating span {
        color: #999;
        margin-left: 8px;
        font-size: 0.9rem;
    }

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

/* Product Features */
.product-features {
    list-style: none;
    margin-bottom: 20px;
}

    .product-features li {
        padding: 6px 0;
        color: #555;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .product-features li i {
            color: #4CAF50;
            font-size: 0.9rem;
        }

/* Product Footer */
.product-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* More Info Button */
.more-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

    .more-info-btn:hover {
        transform: translateX(5px);
        box-shadow: 0 5px 20px rgba(255,87,34,0.4);
        background: linear-gradient(135deg, #FF5722, #FF9800);
        color: white;
        text-decoration: none;
    }

    .more-info-btn i {
        transition: transform 0.3s ease;
    }

    .more-info-btn:hover i:last-child {
        transform: translateX(5px);
    }

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 1024px) {
    .products-section {
        padding: 60px 20px;
    }

    .products-grid {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 50px 15px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-card.featured {
        transform: scale(1);
    }

        .product-card.featured:hover {
            transform: translateY(-5px);
        }

    .product-image-wrapper {
        height: 250px;
    }

    .product-content {
        padding: 20px;
    }

    .product-title {
        font-size: 1.3rem;
    }

    .more-info-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .products-section {
        padding: 40px 12px;
    }

    .product-image-wrapper {
        height: 220px;
    }

    .product-content {
        padding: 18px;
    }

    .product-features li {
        font-size: 0.85rem;
    }

    .section-badge {
        font-size: 0.8rem;
        padding: 6px 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .product-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .more-info-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        gap: 8px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .product-card:hover {
        transform: none;
    }
}

/* Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
    .products-section {
        padding: 40px 20px;
    }

    .product-image-wrapper {
        height: 200px;
    }
}

/* High Resolution Screens */
@media (min-width: 1600px) {
    .products-container {
        max-width: 1600px;
    }

    .products-grid {
        gap: 35px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}
