﻿/* Category Hero */
.category-hero {
    position: relative;
    color: var(--white);
    margin-top: 70px;
    padding: 80px 0;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    filter: brightness(0.7);
}

.category-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 163, 105, 0.45) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.category-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl);
    }

.product-content {
    display: flex;
    min-height: 400px;
}

    .product-content.reverse {
        flex-direction: row-reverse;
    }

/* Product Image Side */
.product-image-side {
    flex: 1;
    position: relative;
    min-height: 400px;
    background-color: #f1f5f9;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.product-card:hover .image-container img {
    transform: scale(1.03);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--light-orange);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 105, 18, 0.3);
}

/* Product Info Side */
.product-info-side {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.product-header {
    margin-bottom: 20px;
}

.product-category {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    text-decoration: none;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars {
    color: #fbbf24;
    font-size: 18px;
}

.rating-text {
    color: var(--text-light);
    font-size: 14px;
}

.product-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 16px;
}

/* Product Specs */
.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--background-light);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.spec-value {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
}

/* Product Footer */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.price-section {
    display: flex;
    flex-direction: column;
}

.price-label {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 4px;
}

.price-amount {
    color: var(--primary-color);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.price-note {
    color: var(--light-orange);
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
}

/* View Details Button */
.view-details-btn {
    background: var(--primary-color);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

    .view-details-btn:hover {
        background: #08995d;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(11, 163, 105, 0.3);
    }

.btn-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.view-details-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

    .features-header h2 {
        color: var(--text-dark);
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 15px;
    }

    .features-header p {
        color: var(--text-light);
        font-size: 18px;
        max-width: 600px;
        margin: 0 auto;
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary-color);
        box-shadow: var(--shadow-lg);
    }

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .category-tags {
        justify-content: flex-start;
    }

    .product-title {
        font-size: 24px;
    }

    .price-amount {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    .product-content, .product-content.reverse {
        flex-direction: column !important;
    }

    .product-content .product-image-side {
        min-height: 250px;
    }
}
