/* Product Page Styles */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #333;
    --accent-color: #f8c630;
    --light-bg: #f9f9f9;
    --dark-bg: #2c3e50;
    --text-light: #fff;
    --text-dark: #333;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Product Hero Section */
.product-hero {
    position: relative;
    height: 300px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
}

.product-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.product-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Product Categories Navigation */
.product-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
    gap: 10px;
}

.category-btn {
    padding: 10px 20px;
    background-color: var(--light-bg);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.category-btn:hover, .category-btn.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background-color: var(--text-light);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.product-card p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
}

.product-features {
    margin-bottom: 20px;
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.product-card .cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    margin-top: auto;
}

.product-card .cta-button:hover {
    background-color: #3a7bc8;
}

/* Product Section */
.product-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.product-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--secondary-color);
}

/* Featured Product */
.featured-product {
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 60px;
}

.featured-product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.featured-product-image {
    height: 400px;
    overflow: hidden;
}

.featured-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.featured-product-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-product-details h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.featured-product-details p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
}

.featured-product-details .features {
    margin-bottom: 25px;
}

.featured-product-details .features ul {
    list-style: none;
    padding: 0;
}

.featured-product-details .features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #555;
}

.featured-product-details .features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.featured-product-details .cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    align-self: flex-start;
}

.featured-product-details .cta-button:hover {
    background-color: #3a7bc8;
}

/* Testimonials Section */
.testimonials-section {
    padding: 60px 0;
    background-color: var(--text-light);
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--secondary-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    position: relative;
    padding-left: 25px;
    margin-bottom: 20px;
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.testimonial-content:before {
    content: """;
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 40px;
    color: var(--primary-color);
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin: 0;
    color: var(--secondary-color);
}

.testimonial-author-info p {
    margin: 5px 0 0 0;
    color: #777;
    font-size: 0.9rem;
}

/* CTA Section */
.product-cta {
    background-color: var(--light-bg);
    padding: 80px 0;
    text-align: center;
    margin-top: 60px;
}

.product-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.product-cta p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--text-dark);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-primary i {
    margin-left: 8px;
}

.btn-secondary {
    padding: 12px 30px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-secondary i {
    margin-left: 8px;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #3a7bc8;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* RTL Support */
[dir="rtl"] .btn-primary i,
[dir="rtl"] .btn-secondary i {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .product-badge {
    right: auto;
    left: 15px;
}

[dir="rtl"] .product-features li {
    padding-left: 0;
    padding-right: 25px;
}

[dir="rtl"] .product-features li:before {
    left: auto;
    right: 0;
}

[dir="rtl"] .featured-product-details .features li {
    padding-left: 0;
    padding-right: 25px;
}

[dir="rtl"] .featured-product-details .features li:before {
    left: auto;
    right: 0;
}

[dir="rtl"] .testimonial-content {
    padding-left: 0;
    padding-right: 25px;
}

[dir="rtl"] .testimonial-content:before {
    left: auto;
    right: 0;
}

[dir="rtl"] .testimonial-author img {
    margin-right: 0;
    margin-left: 15px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .featured-product-content {
        grid-template-columns: 1fr;
    }
    
    .featured-product-image {
        height: 300px;
    }
    
    .featured-product-details {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .product-hero {
        height: 250px;
    }
    
    .product-hero h1 {
        font-size: 2.2rem;
    }
    
    .product-hero p {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .product-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* Responsive Styles for Products Page */
@media screen and (max-width: 991px) {
    .product-hero {
        height: 250px;
    }
    
    .product-hero h1 {
        font-size: 2.5rem;
    }
    
    .product-hero p {
        font-size: 1.1rem;
        max-width: 90%;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-card img {
        height: 200px;
    }
    
    .product-content {
        padding: 15px;
    }
    
    .product-card h3 {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 767px) {
    .product-hero {
        height: 200px;
        margin-bottom: 40px;
    }
    
    .product-hero h1 {
        font-size: 2rem;
    }
    
    .product-hero p {
        font-size: 1rem;
        max-width: 95%;
    }
    
    .product-categories {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .category-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-card img {
        height: 180px;
    }
    
    .product-content {
        padding: 15px;
    }
    
    .product-card h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .product-card p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .product-features li {
        font-size: 0.85rem;
        margin-bottom: 6px;
        padding-left: 20px;
    }
    
    .product-features li:before {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .product-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .featured-product-image {
        height: 250px;
    }
    
    .featured-product-content {
        padding: 20px;
    }
    
    .featured-product-content h2 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 480px) {
    .product-hero {
        height: 180px;
        margin-bottom: 30px;
    }
    
    .product-hero h1 {
        font-size: 1.7rem;
    }
    
    .product-hero p {
        font-size: 0.9rem;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .product-card img {
        height: 160px;
    }
    
    .product-content {
        padding: 12px;
    }
    
    .product-card h3 {
        font-size: 1.1rem;
    }
    
    .product-card p {
        font-size: 0.85rem;
    }
    
    .product-badge {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .product-features li {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .product-btn {
        padding: 7px 12px;
        font-size: 0.85rem;
    }
    
    .featured-product-image {
        height: 200px;
    }
    
    .featured-product-content h2 {
        font-size: 1.5rem;
    }
}
