.detail ul {

    list-style-type: disc;
    padding-left: 35px;
}

.detail li {
    margin: 4px;
}

.product-gallery {
    width: 500px;
    max-width: 100%;
}

.product {
    width: 100%;
    height: 125px;
    background: var(--color-gray-100);
    border-bottom: 1px solid var(--color-gray-300);
}

.product-title {
    padding: 2% 20% 0 20%;
}

.product-title #product-brand {
    color: var(--color-orange);
    letter-spacing: 0.13em;
}

.product-title #product-category {
    color: var(--color-gray-600);
    font-size: 0.8rem;
}

.product-info {
    width: 100%;
    padding: 2% 20%;
}

.product-content {
    width: 100%;
    display: flex;
}

.product-image {
    flex: 1;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    width: 100%;
    height: 400px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

.image img {
    height: 350px;
    width: 100%;

    object-fit: contain;
}

.product-detail {
    flex: 1.5;
    margin-left: 20px;

}

.product-info h3 {
    color: var(--color-orange);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.detail {
    width: 100%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
}

.detail h3 {
    font-size: 1.0rem;
    color: black;
    padding-left: 10px;
}

.product-description {
    margin-top: 20px;
}

.product-description-content {
    width: 100%;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.product-image {
    width: 100%;
    height: 400px;
}

.carousel {
    margin-top: 10px;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px 5px;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.group {
    width: max-content;
    min-width: 100%;
    display: flex;

}

.group img {
    flex: 0 0 5em;

    max-width: 80px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 15px;

    padding: 5px;
    margin: 5px;

    width: 50px;
    height: 80px;

    object-fit: contain;
}

.thumb {
    position: relative;
    pointer-events: auto;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    -webkit-user-drag: none;
    transition: .2s;
    z-index: 1;
}

.thumb:hover {
    border-color: #ff7a00;
}

.thumb.active {
    border-color: #ff7a00;
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#prev,
#next {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}
.carousel {
    cursor: grab;
}

.carousel.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    -webkit-user-drag: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 1.2rem;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}


/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

/* Tablets (≤1024px): reduz o respiro lateral que era pensado pra desktop largo */
@media (max-width: 1024px) {

    .product-title {
        padding: 3% 8% 0 8%;
    }

    .product-info {
        padding: 3% 8%;
    }

    .product-gallery {
        width: 400px;
    }
}

/* Tablets/mobile (≤768px): empilha a galeria em cima dos detalhes,
   já que flex:1 / flex:1.5 lado a lado fica espremido demais */
@media (max-width: 768px) {

    .product {
        height: auto;
        padding: 16px 0;
    }

    .product-title {
        padding: 4% 6% 0 6%;
    }

    .product-info {
        padding: 4% 6%;
    }

    .product-content {
        flex-direction: column;
    }

    .product-gallery {
        width: 100%;
        flex: none;
    }

    .product-detail {
        flex: none;
        margin-left: 0;
        margin-top: 20px;
    }

    .product-image {
        height: 300px;
    }

    .image img {
        max-width: 220px;
    }

    .lightbox-image {
        max-width: 95%;
        max-height: 75vh;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 2rem;
    }
}

/* Celulares pequenos (≤480px) */
@media (max-width: 480px) {

    .product-title {
        padding: 5% 4% 0 4%;
    }

    .product-info {
        padding: 5% 4%;
    }

    .product-image {
        height: 240px;
        border-radius: 10px;
    }

    .image img {
        max-width: 160px;
    }

    .detail {
        padding: 14px;
        border-radius: 10px;
    }

    .detail h3 {
        padding-left: 4px;
    }

    .group img {
        max-width: 64px;
    }

    #prev,
    #next {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
}