/* Enhanced Trending Products Section Styles */
:root {
    --card-gradient: linear-gradient(135deg, rgba(255, 71, 87, 0.8) 0%, rgba(255, 107, 107, 0.8) 100%);
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 20px 40px rgba(255, 71, 87, 0.2);
    --badge-gradient: linear-gradient(135deg, #ff4757 0%, #ff6b6b 100%);
    --transition-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Section Header Animation */
.trending-products .section-header {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.trending-products .section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.trending-products .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--badge-gradient);
    border-radius: 4px;
}

.trending-products .section-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Product Card */
.featured-product-card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 50px;
    position: relative;
    transition: transform 0.5s var(--transition-bounce), box-shadow 0.5s ease;
}

.featured-product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.featured-product-content {
    padding: 40px;
    flex: 1;
    position: relative;
    z-index: 1;
}

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

.featured-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--badge-gradient);
    color: white;
    font-weight: 700;
    font-size: 12px;
    border-radius: 30px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
    position: relative;
    overflow: hidden;
}

.featured-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) rotate(30deg);
    }
}

.featured-product-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.featured-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #ffc107;
}

.featured-rating i {
    margin-right: 2px;
}

.featured-rating span {
    color: #666;
    margin-left: 8px;
    font-size: 14px;
}

.featured-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #555;
    transition: transform 0.3s ease, color 0.3s ease;
}

.featured-product-card:hover .spec-item {
    transform: translateX(5px);
    color: #333;
}

.spec-item i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.featured-product-card:hover .spec-item i {
    transform: scale(1.2);
}

.featured-price {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.price-tag {
    display: flex;
    flex-direction: column;
}

.price-tag .original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.price-tag .discounted {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
}

.discount-pill {
    background: var(--badge-gradient);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-left: 15px;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.2);
}

.featured-actions {
    display: flex;
    gap: 15px;
}

.add-to-cart-btn {
    padding: 12px 25px;
    background: var(--badge-gradient);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.3);
}

.add-to-cart-btn:hover::before {
    opacity: 1;
}

.add-to-cart-btn i {
    margin-right: 8px;
}

.view-details-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-details-link:hover {
    background: rgba(255, 71, 87, 0.1);
    transform: translateY(-5px);
}

.featured-product-image {
    flex: 1;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

/* Netflix text styling */
.netflix-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.netflix-text {
    font-family: 'Arial', sans-serif;
    font-size: 4rem;
    font-weight: bold;
    color: #E50914;
    letter-spacing: -2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: netflix-glow 3s infinite alternate;
}

@keyframes netflix-glow {
    0% {
        text-shadow: 0 0 10px rgba(229, 9, 20, 0.5), 0 0 20px rgba(229, 9, 20, 0.3);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 20px rgba(229, 9, 20, 0.8), 0 0 30px rgba(229, 9, 20, 0.5);
        transform: scale(1.05);
    }
}

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

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

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.5s var(--transition-bounce), box-shadow 0.5s ease;
    position: relative;
    z-index: 1;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--hover-shadow);
}

.product-card:hover::before {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-badge.popular {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.product-badge.best-value {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.product-badge.new {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.product-badge.hot-deal {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

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

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

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

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

.product-details {
    padding: 20px;
}

.product-details h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    transition: color 0.3s ease;
}

.product-card:hover .product-details h4 {
    color: var(--primary-color);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-rating {
    color: #ffc107;
    font-size: 14px;
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.product-price .original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-price .discounted {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

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

.quick-add-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--badge-gradient);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.2);
}

.quick-add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.3);
}

.quick-add-btn.added {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    animation: pulse 0.5s var(--transition-bounce);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.quick-view-btn {
    padding: 8px 16px;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-view-btn:hover {
    background: rgba(255, 71, 87, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    background: var(--badge-gradient);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-all-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 71, 87, 0.3);
}

.view-all-btn:hover::before {
    opacity: 1;
}

.view-all-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

.view-all-container {
    text-align: center;
}

/* Animation for the add to cart button */
.pulse-animation {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .featured-product-card {
        flex-direction: column;
    }
    
    .featured-product-image {
        min-height: 300px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .trending-products .section-header {
        margin-bottom: 30px;
    }
    
    .trending-products .section-title {
        font-size: 22px;
        margin-bottom: 5px;
    }
    
    .featured-product-image {
        display: none;
    }
    
    .featured-product-card {
        flex-direction: column;
    }
    
    .trending-products .section-subtitle {
        font-size: 14px;
    }
    
    .featured-product-card {
        margin-bottom: 30px;
    }
    
    .featured-product-content {
        padding: 20px;
    }
    
    .featured-product-content h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .featured-badge {
        padding: 6px 12px;
        font-size: 10px;
        margin-bottom: 10px;
    }
    
    .featured-rating {
        margin-bottom: 15px;
    }
    
    .featured-specs {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .spec-item {
        font-size: 13px;
    }
    
    .spec-item i {
        font-size: 16px;
    }
    
    .featured-price {
        margin-bottom: 15px;
    }
    
    .price-tag .original {
        font-size: 14px;
    }
    
    .price-tag .discounted {
        font-size: 26px;
    }
    
    .discount-pill {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .featured-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .add-to-cart-btn, .view-details-link {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .featured-product-image {
        min-height: 250px;
    }
    
    /* Product grid items */
    .product-card {
        padding: 12px;
    }
    
    .product-card h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .product-meta {
        margin-bottom: 8px;
    }
    
    .product-price .discounted {
        font-size: 16px;
    }
    
    .product-image {
        height: 140px; /* Reduced height */
    }
    
    .product-actions {
        display: flex;
        justify-content: space-between;
        gap: 5px;
    }
    
    .quick-add-btn {
        width: 36px;
        height: 36px;
        background: linear-gradient(135deg, #ffffffce, #ffffff);
        color: rgb(255, 0, 0);
        border: 1px solid #eee;
    }
    
    .quick-view-btn {
        padding: 6px 12px;
        font-size: 12px;
        flex: 1;
        background: rgba(255, 71, 87, 0.05);
        border: 1px solid rgba(255, 71, 87, 0.2);
        color: #ff4757;
    }
    
    .view-all-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .featured-product-image {
        min-height: 200px;
    }
    
    .product-card {
        padding: 10px;
    }
    
    .product-card h3 {
        font-size: 13px;
    }
    
    .product-image {
        height: 120px; /* Further reduced height */
    }
    
    .product-price .original {
        font-size: 10px;
    }
    
    .product-price .discounted {
        font-size: 14px;
    }
    
    .product-rating {
        font-size: 11px;
    }
    
    .product-actions {
        gap: 4px;
    }
    
    .quick-add-btn {
        width: 30px;
        height: 30px;
    }
    
    .quick-view-btn {
        padding: 5px 8px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .featured-product-content {
        padding: 12px;
    }
    
    .featured-badge {
        padding: 4px 8px;
        font-size: 9px;
        margin-bottom: 8px;
    }
    
    .featured-product-content h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .featured-rating {
        margin-bottom: 10px;
    }
    
    .featured-specs {
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .spec-item {
        font-size: 12px;
    }
    
    .featured-price {
        margin-bottom: 12px;
    }
    
    .add-to-cart-btn, .view-details-link {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .add-to-cart-btn {
        background: linear-gradient(135deg, #ffffffce, #ffffff);
        color: rgb(255, 0, 0);
        border: 1px solid #eee;
        font-weight: bold;
    }
    
    .featured-product-content {
        padding: 15px;
    }
    
    .featured-product-content h3 {
        font-size: 18px;
    }
    
    .featured-badge {
        padding: 4px 10px;
        font-size: 9px;
    }
    
    .price-tag .discounted {
        font-size: 22px;
    }
}
