body {
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f3f9;
    color: #333;
    height: 100vh; 
    text-align: center;
}

a {
    text-decoration: none;
    font-weight: bold;
    color: #6a5b91;
    transition: color 0.3s ease;
}

a:hover {
    color: #7a6caa;
}

h1, h2 {
    text-align: center;
    color: #6a5b91; 
}

.hero {
    background-color: #e2d6f5;
    padding: 40px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    color: #777;
}
.carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.carousel-wrapper {
    display: flex;
    width: fit-content; 
}

.carousel-items {
    display: flex;
    animation: slide 20s linear infinite;
}

.carousel-item {
    flex: 0 0 auto; 
    text-align: center;
    width: 200px;
    margin: 0 10px;
}

.carousel-item img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    max-height: 350px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.catalogue {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px;
    background-color: #fff;
}

.item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 200px;
    text-align: center;
    transition: transform 0.3s ease;
}

.item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.item p {
    font-weight: bold;
    color: #7a6caa;
}

.item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.item:hover img {
    transform: scale(1.07);
}

header {
    background-color: #e2d6f5; 
    padding: 20px;
    border-bottom: 4px solid #b3bce6; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

header nav ul li {
    display: inline-block;
    margin: 0 20px;
}

header nav ul li a {
    color: #a27cb8; 
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #b3bce6; 
}

footer {
    background-color: #e2d6f5;
    color: #333;
    text-align: center;
    padding: 20px;
    font-weight: bold;
    border-top: 4px solid #b3bce6; 
}

main {
    padding: 30px;
}

.catalogue-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.catalogue-item {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    width: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 3px solid #ccc;
    position: relative;
}

.catalogue-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.catalogue-item img {
    border-radius: 5px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.catalogue-item:hover img {
    transform: scale(1.1);
}

.catalogue-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    color: #6a5b91;
    margin-bottom: 20px;
}

.item {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(163, 179, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.item:hover img {
    transform: scale(1.07) rotate(1.5deg);
}

.item:nth-child(1) { animation-delay: 0.1s; }
.item:nth-child(2) { animation-delay: 0.2s; }
.item:nth-child(3) { animation-delay: 0.3s; }
.item:nth-child(4) { animation-delay: 0.4s; }
.item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(179, 188, 230, 0.3);
}

.item p {
    text-align: center;
    font-weight: bold;
    color: #7a6caa;
}

table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

th {
    background-color: #5c6bc0;
    color: white;
}

td {
    background-color: #ffffff;
    color: #333;
}

td a {
    color: #e57373;
    text-decoration: none;
}

td a:hover {
    color: #d32f2f;
}

a.add-card {
    display: inline-block;
    background-color: #81c784;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
}

a.add-card:hover {
    background-color: #66bb6a;
}

hr {
    width: 80%;
    margin: 20px auto;
    border: 1px solid #ddd;
}

.search-box {
    background: #ffffff;
    padding: 25px 20px;
    max-width: 320px;
    margin: 40px auto;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(180, 150, 200, 0.2);
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.search-box label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #6a5b91;
    font-size: 16px;
}

.search-box input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 2px solid #d6c9f0;
    background-color: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

.search-box input::placeholder {
    color: #a89db9;
}

.search-box button {
    width: 100%;
    padding: 10px;
    background-color: #e8a4c2;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(232, 164, 194, 0.4);
    transition: background-color 0.3s, transform 0.2s;
}

.search-box button:hover {
    background-color: #d08aaa;
    transform: scale(1.05);
}

.button-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center; 
    justify-content: center;
}

.button-container button {
    width: 30%;
    padding: 10px;
    background-color: #b3bce6; 
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(179, 188, 230, 0.4);
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    justify-content: center; 
}

.button-container button:hover {
    background-color: #9aa3d9;
    transform: scale(1.05);
}


@media (max-width: 576px) {
    header nav ul {
        display: none;
        width: 100%;
        text-align: left;
    }

    header nav ul li {
        display: block;
        margin: 10px 0;
    }

    header nav ul.active {
        display: block;
    }

    .catalogue {
        display: block;
        padding: 10px;
    }

    .item {
        width: 90%;
        margin: 10px auto;
        padding: 15px;
        border-radius: 10px;
    }

    footer {
        font-size: 14px;
    }
}
