/**
 * Home Page Specific Styles
 * Silk By Ali E-commerce Website
 */

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-slide {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    transition: all 0.8s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(232, 62, 140, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0.8;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    max-width: 80%;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-content .btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(232, 62, 140, 0.3);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.9s;
}

.hero-content .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(232, 62, 140, 0.4);
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    width: 30px;
    border-radius: 10px;
    background-color: white;
}

.carousel-control-prev, .carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Categories Section Styles */
.categories-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-repeat: repeat;
    background-size: 300px;
    opacity: 0.03;
    z-index: -1;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-color-light, #f06598));
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    height: 300px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    transform: translateY(0);
}

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

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    transition: all 0.5s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(232, 62, 140, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.category-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 10px;
    transition: all 0.3s ease;
    width: 100%;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.category-card:hover .category-title::after {
    width: 80px;
}

/* Featured Products Section Styles */
.featured-products-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.featured-products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-repeat: repeat;
    background-size: 300px;
    opacity: 0.03;
    z-index: 0;
}

.featured-products-section .container {
    position: relative;
    z-index: 1;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    border: none;
    margin-bottom: 30px;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(to right, #ff6b6b, #ff8e8e);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
    z-index: 2;
}

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

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    height: auto;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.95rem;
    font-weight: 400;
    margin-right: 10px;
}

.product-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-actions .btn {
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.product-actions .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.product-actions .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.product-actions form {
    display: inline-block;
}

.product-actions .btn-primary {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(to right, var(--primary-color), var(--primary-color-light, #f06598));
    border: none;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.3);
}

.product-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(232, 62, 140, 0.4);
}

.view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-color-light, #f06598));
    color: white;
    box-shadow: 0 8px 20px rgba(232, 62, 140, 0.3);
    transition: all 0.5s ease;
    border: none;
    margin-top: 20px;
}

.view-all-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(232, 62, 140, 0.4);
    color: white;
}

/* Banner Section Styles */
.banner-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-repeat: repeat;
    background-size: 300px;
    opacity: 0.03;
    z-index: -1;
}

.promo-banner {
    position: relative;
    border-radius: 15px !important;
    overflow: hidden;
    padding: 40px !important;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    z-index: 1;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(252, 228, 236, 0.9) 0%, rgba(252, 228, 236, 0.7) 100%);
    z-index: -1;
}

.promo-banner.blue-banner::before {
    background: linear-gradient(135deg, rgba(227, 242, 253, 0.9) 0%, rgba(227, 242, 253, 0.7) 100%);
}

.promo-banner:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.promo-banner h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.promo-banner h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-color-light, #f06598));
}

.promo-banner p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
    max-width: 300px;
}

.promo-banner .btn {
    padding: 10px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-color-light, #f06598));
    color: white;
    box-shadow: 0 8px 20px rgba(232, 62, 140, 0.3);
    transition: all 0.5s ease;
    border: none;
}

.promo-banner .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(232, 62, 140, 0.4);
    color: white;
}

/* Testimonials Section Styles */
.testimonials-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-repeat: repeat;
    background-size: 300px;
    opacity: 0.03;
    z-index: 0;
}

.testimonials-section .container {
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
    transition: all 0.5s ease;
    transform: translateY(0);
}

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

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-meta h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.testimonial-meta p {
    margin-bottom: 0;
    color: #777;
    font-size: 0.9rem;
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-content {
    position: relative;
    padding-top: 20px;
    font-style: italic;
    color: #555;
    line-height: 1.7;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -5px;
    font-size: 4rem;
    color: rgba(232, 62, 140, 0.1);
    font-family: 'Georgia', serif;
}

/* Newsletter Section Styles */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fce4ec 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-repeat: repeat;
    background-size: 300px;
    opacity: 0.05;
    z-index: 0;
}

.newsletter-section .container {
    position: relative;
    z-index: 1;
}

.newsletter-section h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.newsletter-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    height: 50px;
    border-radius: 25px 0 0 25px;
    border: none;
    padding-left: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    padding: 10px 25px;
    font-weight: 600;
    background: linear-gradient(to right, var(--primary-color), var(--primary-color-light, #f06598));
    border: none;
    box-shadow: 0 5px 15px rgba(232, 62, 140, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-slide {
        height: 500px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .category-card {
        height: 250px;
    }
    
    .promo-banner {
        padding: 30px !important;
    }
    
    .promo-banner h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-slide {
        height: 400px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .category-card {
        height: 200px;
    }
    
    .promo-banner {
        margin-bottom: 30px;
    }
    
    .newsletter-section h3 {
        font-size: 1.8rem;
    }
}
