/* New Deals Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for New Deals Page */
:root {
    --color2: #2a2d34;
    --color1: #1c1c1c;
    --primary-color: #0090d3;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section for New Deals */
.new-deals-hero {
    background: linear-gradient(135deg, var(--color2) 0%, #1a1c21 50%, var(--color2) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.new-deals-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../imgs/BG1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.new-deals-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: #fff;
}

.deals-hero-title {
    font-family: 'Jost', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #fff 50%, var(--color1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 1s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 15px rgba(0, 144, 211, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(0, 144, 211, 0.9));
    }
}

.deals-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.deals-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 150px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 144, 211, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color1);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Deals Products Section */
.deals-products-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.deals-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Jost', sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--color2);
    margin-bottom: 1rem;
}

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

/* Product Cards - Homepage Style */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.deals-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform-origin: center bottom;
}

.deals-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 0;
    padding: 0.4rem 1.2rem 0.4rem 0.8rem;
    border-radius: 0 50px 50px 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    }
}

.product-badge.sale {
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
    color: #fff;
}

.product-image {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}


.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.deals-card:hover .product-image::after {
    opacity: 1;
}

.product-image::before {
    content: 'View Details';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: white;
    background: rgba(28, 28, 28, 0.85);
    padding: 0.7rem 1.4rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.deals-card:hover .product-image::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

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

.product-info {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
}

.product-title {
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color2);
    margin-bottom: 0.4rem;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 0.2rem;
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color1);
    transition: width 0.3s ease;
}

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

.deals-card:hover .product-title {
    color: var(--color1);
}

.product-description {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

/* Product Price - Homepage Style */
.product-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    padding: 0.5rem 0.6rem;
    background: rgba(245, 247, 250, 0.7);
    border-radius: 6px;
    width: fit-content;
    position: relative;
    border-left: 2px solid var(--color1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.deals-card:hover .product-price {
    background: rgba(245, 247, 250, 0.9);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    transform: translateX(5px);
}

.current-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color2);
    position: relative;
    transition: color 0.3s ease;
}

.deals-card:hover .current-price {
    color: var(--color1);
}

.current-price::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.deals-card:hover .current-price::before {
    transform: scaleX(1);
}

.original-price {
    font-size: 0.7rem;
    color: #999;
    text-decoration: line-through;
    position: relative;
    padding-left: 6px;
}

.original-price::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    height: 60%;
    width: 1px;
    background-color: #ddd;
    transform: translateY(-50%);
}

.discount-percentage {
    font-size: 0.9rem;
    margin-left: 0.2rem;
}

.deal-timer {
    font-size: 0.75rem;
    margin: 0.5rem 0;
}

/* Product Button - Homepage Style */
.product-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--color2);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 2px solid var(--color2);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.product-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--color1);
    transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
    z-index: -1;
}

.deals-card:hover .product-btn {
    color: #fff;
    border-color: var(--color1);
}

.deals-card:hover .product-btn::before {
    width: 100%;
}

.product-btn::after {
    content: '→';
    position: absolute;
    right: 1.8rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.deals-card:hover .product-btn::after {
    opacity: 1;
    transform: translateX(0);
}

/* Call to Action Section */
.deals-cta-section {
    background: linear-gradient(135deg, var(--color2) 0%, #1a1c21 100%);
    padding: 4rem 2rem;
    border-radius: 20px;
    margin-top: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.deals-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../imgs/BG1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.cta-content h3 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    min-width: 160px;
}

.cta-btn.primary {
    background: var(--color1);
    color: #fff;
    border: 2px solid var(--color1);
}

.cta-btn.primary:hover {
    background: #fff;
    color: var(--color1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 144, 211, 0.3);
}



/* Responsive Design */
@media (max-width: 1200px) {
    .deals-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.8rem;
    }
    
    .deals-hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .new-deals-hero {
        padding: 100px 0 60px;
    }
    
    .new-deals-hero-container {
        padding: 0 1rem;
    }
    
    .deals-hero-title {
        font-size: 2.5rem;
    }
    
    .deals-hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .deals-stats {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        min-width: 200px;
    }
    
    .deals-products-section {
        padding: 60px 0;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .deals-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        max-width: 240px;
        margin: 0 auto;
    }
    
    .deals-card {
        margin: 0 auto;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .deals-hero-title {
        font-size: 2rem;
    }
    
    .deals-hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .deals-card .product-info {
        padding: 0.8rem;
    }
    
    .current-price {
        font-size: 1rem;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .product-description {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
    
    .product-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .cta-content h3 {
        font-size: 1.8rem;
    }
}