/* Import base styles from styles.css */
@import url('styles.css');

/* Inventory-specific styles */
.inventory-section {
    padding: 100px 0;
    background: linear-gradient(rgba(248, 250, 252, 0.9), rgba(226, 232, 240, 0.9)), url('Images/background1.jpg');
    background-size: cover;
    background-position: center;
}

.inventory-section h1 {
    text-align: center;
    font-size: 3rem;
    color: #000000;
    margin-bottom: 1rem;
}

.inventory-section .section-subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: #4b4949;
    margin-bottom: 3rem;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
    margin-top: 3rem;
    padding: 0 0.25rem; /* Reduced side margins for desktop */
}

.inventory-container {
    display: flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
    width: calc(300px * 14 + 2rem * 13); /* Adjust based on number of cards */
}

.inventory-card {
    flex: 0 0 300px;
    background: white !important;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 350px; /* Fixed height for uniform card sizes */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 7 - 2rem * 7)); /* Half the width for infinite effect */
    }
}

@media (max-width: 768px) {
    .inventory-container {
        width: calc(250px * 14 + 1rem * 13);
        animation: scroll-mobile 20s linear infinite;
    }

    .inventory-card {
        flex: 0 0 250px;
    }

    @keyframes scroll-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-250px * 7 - 1rem * 7));
        }
    }
}

.inventory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.inventory-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.inventory-card:hover::after {
    transform: scaleX(1);
}

.inventory-card h2 {
    font-size: 2.25rem;
    color: #000000;
    margin-bottom: 1rem;
}

.inventory-details {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #242222;
}

.inventory-details li {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.inventory-details strong {
    color: #2563eb;
}
