﻿/* Main Products Section */
.main-products-section {
    padding: 5rem 0 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.main-title-section {
    margin-bottom: 4rem;
}

.main-title {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Find this existing block in your CSS and replace it */
.section-title {
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    /* margin-bottom: 0.5rem;  <-- Old margin */
    margin-bottom: 1.2rem; /* Increased margin to make room for the line */
    position: relative; /* Needed to position the line underneath */
    display: inline-block; /* Makes the container's width match the text width */
}

   
   

.title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.divider-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
}

.divider-icon {
    color: var(--primary-red);
    font-size: 1.5rem;
    animation: spin 4s linear infinite;
}

.main-subtitle {
    color: var(--dark-text);
    font-size: 1.3rem;
    opacity: 0.9;
    margin-top: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-text);
    opacity: 0.8;
}



/* Category Sections - Lite Mode */
.category-section.lite-mode {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

    .category-section.lite-mode:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

/* Products Grid - Lite Mode */
.products-grid.lite-mode-grid {
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Product Cards - Lite Mode */
.product-card.lite-mode-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: none;
    border: 1px solid #eaeaea;
    cursor: pointer;
}

.product-card-link.lite-mode-link {
    transition: none;
}

    .product-card-link.lite-mode-link:hover .product-card.lite-mode-card {
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        border-color: #eaeaea;
    }

/* Product Image Container - Lite Mode */
.product-image-container.lite-mode-image-container {
    height: 350px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

    .product-image-container.lite-mode-image-container:hover {
        transform: none;
    }

    .product-image-container.lite-mode-image-container .product-image.active {
        opacity: 1;
        transform: none;
    }

/* Hide slideshow dots in Lite Mode */
.lite-mode-image-container .slideshow-dots {
    display: none;
}

/* Lite Mode Badges */
.sale-badge.lite-mode-sale-badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    animation: none;
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 51, 102, 0.2);
}

    .sale-badge.lite-mode-sale-badge:hover {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 51, 102, 0.2);
    }

    .sale-badge.lite-mode-sale-badge::before {
        display: none;
    }

.new-badge.lite-mode-new-badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

/* Product Info - Lite Mode */
.product-info.lite-mode-product-info {
    padding: 1.2rem;
}

    .product-info.lite-mode-product-info .product-name {
        font-size: 1.1rem;
        height: auto;
        min-height: 2.5rem;
    }

    .product-info.lite-mode-product-info .product-category {
        font-size: 0.85rem;
    }

    .product-info.lite-mode-product-info .product-price {
        gap: 0.5rem;
    }

    .product-info.lite-mode-product-info .original-price {
        font-size: 0.85rem;
    }

    .product-info.lite-mode-product-info .discounted-price,
    .product-info.lite-mode-product-info .current-price {
        font-size: 1.1rem;
    }

/* Lite Mode Button */
.btn-view-all.lite-mode-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

    .btn-view-all.lite-mode-btn:hover {
        transform: none;
    }

/* Normal Mode Styles */
.product-image-container {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease-in-out, transform 0.5s ease;
    opacity: 0;
    z-index: 1;
}

    .product-image.active {
        opacity: 1;
        z-index: 2;
    }

.slideshow-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image-container:hover .slideshow-dots {
    opacity: 1;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

    .dot.active {
        background: white;
        transform: scale(1.3);
    }

.category-section {
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
    transition: transform 0.3s ease;
}

    .category-section:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 35px rgba(0,0,0,0.1);
    }

.new-arrivals-section {
    background: linear-gradient(135deg, #fff8f8 0%, #fff 100%);
    border: 2px solid #ffebee;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding-top: 1.5rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

    .product-card-link:hover .product-card {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        border-color: var(--primary-blue);
    }

    .product-card-link:hover .product-image.active {
        transform: scale(1.05);
    }

/* Sale Badge - Improved Eye-catching Design */
.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary-red), #ff3366, #ff6699);
    color: white;
    padding: 0.7rem 1.3rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulseGlow 2s ease-in-out infinite;
    z-index: 15;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4);
    transform-origin: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .sale-badge::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.7s ease;
    }

    .sale-badge:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 51, 102, 0.6);
    }

        .sale-badge:hover::before {
            left: 100%;
        }

    .sale-badge i {
        font-size: 0.9rem;
        animation: bounce 1s ease infinite alternate;
    }

.discounted-price {
    color: var(--primary-red);
    font-weight: 800;
    font-size: 1.3rem;
    position: relative;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(to right, transparent, rgba(255, 51, 102, 0.1), transparent);
    border-radius: 8px;
    animation: pricePulse 3s ease-in-out infinite;
}

    .discounted-price::after {
        content: '🔥';
        margin-left: 5px;
        font-size: 0.9rem;
        animation: fireFlicker 1.5s ease-in-out infinite;
    }

.original-price {
    text-decoration: line-through;
    color: var(--dark-text);
    opacity: 0.6;
    font-size: 0.9rem;
    position: relative;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
}

.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 15;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3rem;
}

.product-category {
    color: var(--dark-text);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .product-category:before {
        content: "•";
        color: var(--primary-red);
    }

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.discounted-price {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.2rem;
}

.current-price {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.2rem;
}

.btn-view-all {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.8rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

    .btn-view-all:hover {
        background: var(--primary-red);
        transform: translateX(5px);
        color: white;
        box-shadow: 0 5px 15px rgba(217, 35, 35, 0.3);
    }

.admin-controls-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid #90caf9;
    animation: slideDown 0.5s ease, pulseAdmin 2s infinite;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    70% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slideshow animations for normal mode */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(255, 51, 102, 0.6);
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-2px);
    }
}

@keyframes pricePulse {
    0%, 100% {
        background: linear-gradient(to right, transparent, rgba(255, 51, 102, 0.1), transparent);
    }

    50% {
        background: linear-gradient(to right, transparent, rgba(255, 51, 102, 0.2), transparent);
    }
}

@keyframes fireFlicker {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}
