html, body {
    height: 100%;
    margin: 0;
    flex-direction: column;
    display: flex;
}

/* Catalog Page Styles */
.catalog-container {
    padding: 100px 20px 20px; /* Adjust for fixed header */
    max-width: 1200px; /* Set a max-width for better readability */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the catalog boxes horizontally */
}

.catalog-container h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.catalog-grid {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    gap: 20px; /* Gap between boxes */
    width: 100%; /* Take full width of the container */
    justify-content: center; /* Center the boxes horizontally */
    padding: 20px 0; /* Add some padding */
}

.catalog-box {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 400px;
    height: 400px; /* Fixed height */
    flex-shrink: 0; /* Prevent boxes from shrinking */
    display: flex;
    flex-direction: column;
}

.catalog-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.image-slider {
    position: relative;
    width: 100%;
    height: 200px; /* Adjust height as needed */
    overflow: hidden;
    flex-shrink: 0; /* Prevent the image slider from shrinking */
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the container */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-image.active {
    opacity: 1;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.box-description {
    padding: 15px;
    text-align: left;
    flex-grow: 1; /* Ensure it fills remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f8f8f8; /* Light background for better contrast */
    border-top: 1px solid #ddd; /* Separator between image and text */
}

.box-description h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.box-description p {
    font-size: 14px;
    color: #444;
    margin: 5px 0;
}

.box-description strong {
    color: #222; /* Darker text for emphasis */
}

.price {
    font-size: 16px;
    font-weight: bold;
    color: #1466c5; /* Highlighted price */
}

.btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: #6e8ca4;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    background: #5a6f7d;
}

.main-content {
    flex: 1;
}


/* Media Queries for Adaptive Layout */

/* For medium screens (2 boxes per row) */
@media (max-width: 1024px) {
    .catalog-box {
        width: calc(50% - 10px); /* 2 boxes per row (minus gap) */
    }
}

/* For small screens (1 box per row) */
@media (max-width: 768px) {
    .catalog-box {
        width: 100%; /* 1 box per row */
    }
}