/* Hero Section */
.hero-section {
    background: #fff;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    display: block;
    color: #007bff;
    font-size: 3rem;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.search-form {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-form .input-group {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.search-form .input-group:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0,123,255,0.1);
}

.search-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    background: transparent;
}

.search-form .form-control:focus {
    box-shadow: none;
}

.search-form .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Price Tags Animation */
.price-tag {
    position: absolute;
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px);
    animation: float 6s ease-in-out infinite;
}

.price-tag-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.price-tag-2 {
    top: 40%;
    right: 25%;
    animation-delay: 2s;
}

.price-tag-3 {
    top: 60%;
    right: 15%;
    animation-delay: 4s;
}

.price-tag .amount {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.price-tag .currency {
    font-size: 0.875rem;
    color: #718096;
}

@keyframes float {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Featured Products Section */
.featured-products-section {
    padding: 4rem 0;
    background: #f8f9fa; /* Or any background color you prefer */
}

.featured-carousel {
    position: relative;
}

.featured-track {
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling if needed */
    gap: 1rem; /* Spacing between items */
    padding-bottom: 1rem; /* To accommodate scrollbar if visible */
    scroll-snap-type: x mandatory; /* Enable snapping for smooth scrolling */
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
}

.featured-item {
    width: 250px; /* Adjust as needed */
    flex: 0 0 auto; /* Don't grow, don't shrink, base width */
    scroll-snap-align: start; /* Snap to the start of the item */
}

.featured-card {
    display: block; /* Make it a block-level element to contain the content */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-decoration: none; /* Remove default link styling */
    color: inherit; /* Inherit text color */
    position: relative; /* Add relative positioning */
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.featured-image {
    position: relative; /* For positioning badges */
    width: 100%;
    height: 150px; /* Adjust as needed */
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Remove bottom spacing in some browsers */
}
.discount-badge,
.timer-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #dc3545; /* Example color */
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    z-index: 10000;
}

.timer-badge {
    top: 0.5rem;
    bottom: auto;
    left: 0.5rem;
    right: auto;
    background-color: rgba(0, 0, 0, 0.5);
}


.featured-info {
    padding: 1rem;
}

.featured-info .product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-info .price-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-info .original-price {
    font-size: 0.875rem;
    color: #718096;
    text-decoration: line-through;
}

.featured-info .final-price {
    font-size: 1rem;
    font-weight: 600;
    color: #48bb78; /* Or your theme's price color */
}

.featured-nav {
    text-align: center;
    margin-top: 1rem;
}

.featured-nav button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #555;
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-nav button:hover {
    background: #eee;
}


@media (max-width: 768px) {
    .featured-item {
        width: 200px; /* Adjust for smaller screens */
    }

    .featured-image {
        height: 120px; /* Adjust for smaller screens */
    }
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: #fff;
}

.stats-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.stats-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,123,255,0.05);
    border-radius: 16px;
    color: #007bff;
    font-size: 1.5rem;
}

.stats-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: block;
}

.stats-label {
    color: #718096;
    font-size: 1rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: #ffffff;
}

.feature-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,123,255,0.05);
    border-radius: 12px;
    color: #007bff;
    font-size: 1.25rem;
}

.feature-content h4 {
    color: #2d3748;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-content p {
    color: #718096;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Products Section */
.products-section {
    padding: 4rem 0 4rem 0; /* Added padding-bottom */
    background: #fff;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    color: #2d3748;
    margin: 0;
}

.section-link {
    color: #007bff;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.section-link:hover {
    color: #0056b3;
}

.product-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.125rem;
    color: #2d3748;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: #48bb78;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-meta {
    color: #718096;
    font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-title span {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .search-form .form-control {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .stats-card,
    .feature-card {
        padding: 1.5rem;
    }

    .stats-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .stats-number {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
