html {
    font-size: 16px;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    font-size: 1rem;
    line-height: 1.5;
}

h1 {
    font-size: 1.8rem;
    color: #333;
    margin: 0.8em 0;
}

h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 1em 0 0.8em;
}

h3 {
    font-size: 1.2rem;
    margin: 0.5em 0;
}

.container {
    max-width: 1200px;
    margin: auto;
    overflow: auto;
    padding: 0 2rem;
}

.categories, .products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .categories, .products,
    .product-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 15px;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .categories, .products,
    .product-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 15px;
    }

    .container {
        padding: 0 10px;
    }

    .breadcrumbs {
        font-size: 0.9rem;
        margin: 10px 0;
    }

    .filename {
        font-size: 0.85rem;
    }
}

.category-item, .product-item {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    background-color: #fff;
}

.category-item a, .product-item a {
    text-decoration: none;
    color: #333;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-item .image-container {
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    margin-bottom: 8px;
}

.product-item .filename {
    font-size: 14px;
    color: #555;
    word-break: break-word;
    margin-top: 5px;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-item .image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    margin-bottom: 8px;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.gallery-item .filename {
    font-size: 14px;
    color: #555;
    word-break: break-word;
    text-align: center;
}

.product-description {
    margin-top: 20px;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.breadcrumbs a {
    text-decoration: none;
    color: #007bff;
}

.breadcrumbs span {
    color: #6c757d;
}
