/* ============================================
   Category Pages Styles - By Nature
   ============================================ */

/* Category Hero Section */
.category-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    overflow: hidden;
}

.category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(45, 90, 39, 0.95) 0%, rgba(45, 90, 39, 0.7) 50%, transparent 100%);
}

.category-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 100px 0;
}

.category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

body.rtl .category-title {
    font-family: 'Cairo', sans-serif;
}

.category-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Category Features */
.category-features {
    background: var(--mint-green);
    padding: 30px 0;
}

.features-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-item .feature-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.feature-item h4 {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 15px;
}

/* Category Products Section */
.category-products {
    padding: 80px 0;
    background: linear-gradient(180deg, #f0f5ef 0%, #e8f0e6 100%);
}

.category-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.category-products .product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(45, 90, 39, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(45, 90, 39, 0.08);
}

.category-products .product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(45, 90, 39, 0.15);
    border-color: rgba(45, 90, 39, 0.15);
}

.category-products .product-image {
    position: relative;
    padding: 30px;
    background: linear-gradient(145deg, #ffffff 0%, #f8faf8 100%);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-products .product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 120%, rgba(45, 90, 39, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.category-products .product-image img.primary-img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.12));
}

.category-products .product-image img.secondary-img {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    width: calc(100% - 60px);
    height: 280px;
    object-fit: contain;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.12));
}

.category-products .product-card:hover .product-image img.primary-img {
    opacity: 0;
    transform: scale(0.95);
}

.category-products .product-card:hover .product-image img.secondary-img {
    opacity: 1;
    transform: scale(1.05);
}

/* Fallback for single image products */
.category-products .product-image img:only-child {
    width: 100%;
    height: 280px;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.12));
}

.category-products .product-card:hover .product-image img:only-child {
    transform: scale(1.08);
}

.category-products .product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-green);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.category-products .product-badge.new {
    background: #ff6b6b;
}

.category-products .product-badge.travel {
    background: #4ecdc4;
}

.category-products .product-quick-view {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--primary-green);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-products .product-card:hover .product-quick-view {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.category-products .product-info {
    padding: 25px 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(248,250,248,0.5) 100%);
}

.category-products .product-category {
    color: var(--light-green);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-products .product-category::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--light-green);
}

.category-products .product-category::after {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--light-green);
}

.category-products .product-name {
    margin: 15px 0 10px;
}

.category-products .product-name a {
    color: var(--dark-green);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.category-products .product-name a:hover {
    color: var(--primary-green);
}

.category-products .product-size {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 18px;
    font-weight: 500;
}

.category-products .product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.category-products .product-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--primary-green);
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.08) 0%, rgba(74, 140, 63, 0.12) 100%);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid rgba(45, 90, 39, 0.1);
    transition: all 0.3s ease;
}

.category-products .product-features span:hover {
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.15) 0%, rgba(74, 140, 63, 0.2) 100%);
    transform: translateY(-2px);
}

.category-products .product-features span i {
    color: var(--primary-green);
    font-size: 10px;
}

/* Learn More Button for Category Products */
.category-products .product-learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    color: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.25);
}

.category-products .product-learn-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 90, 39, 0.35);
}

.category-products .product-learn-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.category-products .product-learn-more:hover i {
    transform: translateX(4px);
}

/* Benefits Section */
.category-benefits {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    position: relative;
    overflow: hidden;
}

.category-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 50px 50px;
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.benefits-text h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

body.rtl .benefits-text h2 {
    font-family: 'Cairo', sans-serif;
}

.benefits-text > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-item i {
    color: var(--mint-green);
    font-size: 24px;
    margin-top: 3px;
}

.benefit-item h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.benefits-image {
    position: relative;
}

.benefits-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Coming Soon Section */
.coming-soon-section {
    margin-top: 60px;
    padding: 60px;
    background: linear-gradient(135deg, var(--mint-green) 0%, #e8f5e9 100%);
    border-radius: 25px;
    text-align: center;
}

.coming-soon-content i {
    font-size: 48px;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.coming-soon-content h3 {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.coming-soon-content p {
    color: var(--text-gray);
    max-width: 500px;
    margin: 0 auto;
}

/* Skincare specific */
.skincare-hero .category-hero-overlay {
    background: linear-gradient(90deg, rgba(45, 90, 39, 0.9) 0%, rgba(45, 90, 39, 0.5) 50%, transparent 100%);
}

.skincare-benefits {
    background: linear-gradient(135deg, #4a8c3f 0%, #2d5a27 100%);
}

/* Responsive */
@media (max-width: 1024px) {
    .category-products .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .benefits-image {
        order: -1;
    }
    
    .benefits-image img {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .benefit-item {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .category-hero {
        min-height: 50vh;
    }
    
    .category-title {
        font-size: 2.5rem;
    }
    
    .category-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .features-row {
        gap: 30px;
    }
    
    .feature-item h4 {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .category-products .products-grid {
        grid-template-columns: 1fr;
    }
    
    .features-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .coming-soon-section {
        padding: 40px 20px;
    }
}
