﻿.splide__slide img {
    width: inherit;
}

.thumbnails {
    display: flex;
    margin: 1rem auto 0;
    padding: 0;
    justify-content: flex-start;
    opacity: 0.6;
    flex-wrap: wrap;
}

.thumbnail {
    width: 70px;
    height: 70px;
    overflow: hidden;
    list-style: none;
    margin: 0.2rem;
    cursor: pointer;
}

.thumbnail_ {
    width: 70px;
    height: 70px;
    overflow: hidden;
    list-style: none;
    margin: 0.2rem;
    cursor: pointer;
}

.thumbnail_ img {
    width: 100%;
    height: auto;
}


.thumbnail img {
    width: 100%;
    height: auto;
}

.thumbnail.is-active {
    opacity: 1;
}

.cover-container-product {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.cover-container-product > div {
    width: 50%;
}

.cover-container-product > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover-product-detail {
    display: flex;
    flex-direction: column;
    padding: 0 5%;
    justify-content: space-between;
}

.cover-product-detail h1 {
    font-size: 2.5rem;
}

.cover-product-detail p {
    color: var(--sec-txt-color);
    padding: 0;
    margin: 20px 0;
}

.cover-container-upload {
    display: flex;
    width: 100%;
    padding: 0 10%;
    justify-content: center;
    align-items: center;
}

.cover-container-upload img {
    width: 100%;
    max-width: 500px;
}

.loop-categories-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 5%;
}

#categories-slider {
    width: 100%; /* Ensure it spans the full width of the parent container */
    height: auto; /* Let the height adjust based on the content */
    padding: 5% 0;
}

#categories-slider h1 {
    font-size: 2rem;
    margin: 30px 0;
}

.loop-categories-container > div {
    margin: 2.5% 0;
}

.loop-categories-container h1 {
    font-size: 2rem;
    margin: 10px 0;
}

.splide__slide {
    height: auto; /* Maintain proportions */
    width: 100%; /* Adapt card dimensions */
}


.card {
    display: flex;
    flex-direction: column; /* Stack image and info vertically */
    justify-content: space-evenly; /* Distribute space between image and info */
    align-items: center;
    width: 90%; /* Take the full width of the parent */
    height: 100%; /* Take the full height of the parent */
    border-radius: 10px;
    overflow: hidden;
    background: #f8f8f8; /* Add a subtle background color */
    text-align: center; /* Center text for `card-info` */
    box-sizing: border-box; /* Ensure padding doesn’t overflow */
    cursor: pointer;
    background-color: var(--main-highlight-color);
}

.card:hover {
    opacity: 0.75;
}

.card img {
    width: 100%; /* Ensures the image fills the card width */
    height: 80%; /* Ensures the image fills the card height */
    object-fit: cover; /* Scales the image by ratio, cropping if necessary */
    border-radius: 10px 10px 0 0; /* Matches the card's top corners for a polished look */
    aspect-ratio: 1 / 1.5;
}

.card-info {
    font-size: 14px; /* Slightly larger font for readability */
    line-height: 1.4; /* Add proper spacing between lines */
    color: #333;
    padding: 10px;
    background-color: var(--main-highlight-color);
    border-radius: 0 0 10px 10px;
    flex-grow: 1; /* Allow the info section to grow if needed */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: "SF Mono", Menlo, Consolas, Monaco;
    width: 100%;
}

.card-info label {
    font-weight: bold;
    text-align: left;
}

.card-info span {
    font-size: 10px;
    margin-top: 10px;
    text-align: left;
    letter-spacing: .1rem;
    font-weight: bold;
}

.card-info p {
    font-weight: bold;
}

@media (max-width: 1024px) {
    .cover-product-detail h1 {
        margin-top: 20px;+
        font-size: 2rem;
    }

    .cover-container-product > div {
        width: 100%;
    }

    .thumbnails {
        display: none;
    }

    .loop-categories-container h1 {
        font-size: 1.5rem;
    }
}