/* Home page specific styles */
.hero {
    text-align: center;
    padding: 40px 20px 60px;
    background: var(--card-background);
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 30px rgba(187, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(187, 0, 0, 0.03) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroGlow {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.5;
    }
    50% {
        transform: translate(-10%, -10%);
        opacity: 1;
    }
}

.hero-logo {
    width: 250px;
    max-width: 80%;
    height: auto;
    margin-top: 20px;
    margin-bottom: 15px;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222;
    position: relative;
    z-index: 1;
}

.hero h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--primary-color) 100%);
    margin: 10px auto;
    border-radius: 2px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
    position: relative;
    z-index: 1;
}

.cta-button {
    font-size: 1.1rem;
    padding: 15px 30px;
    position: relative;
    z-index: 1;
}

.features {
    padding: 40px 20px;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #222;
}

.features h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto;
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    background: var(--card-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #222;
}

.feature-item p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.featured-products {
    padding: 40px 20px;
    text-align: center;
    background: var(--card-background);
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.featured-products h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #222;
}

.featured-products h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto;
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    padding: 10px;
}

.product-card h3 {
    padding: 15px;
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

/* Featured Products Carousel */
.featured-carousel {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.carousel-track-container {
    overflow: hidden;
    width: calc(100% - 80px);
    margin: 0 auto;
    order: 2;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.featured-carousel .product-card {
    box-sizing: border-box;
    padding: 0 10px;
}

.carousel-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-arrow:hover {
    background: var(--hover-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-left {
    left: 0;
    order: 1;
}

.carousel-arrow-right {
    right: 0;
    order: 3;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding-top: 15px;
    order: 4;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-dot:hover {
    background: #888;
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #2c6e7f;
}

@media (max-width: 599px) {
    .carousel-track-container {
        width: calc(100% - 60px);
    }

    .carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

@media (max-width: 399px) {
    .carousel-track-container {
        width: calc(100% - 50px);
    }

    .carousel-arrow {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) {
    .hero-logo {
        width: 180px;
    }

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

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        padding: 20px;
    }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}