#product-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

#product-list a:hover {
    text-decoration: none;
}

.product-card img {
    width: 100%;
}

#product_detail {
    max-width: 60rem;
    margin: 0 auto;
}

.product-detail {
    display: flex;
    gap: 2rem;
}

.hide-scrollbar::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.product-images {
    flex: 1;
    width: 100%;
}

.image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1 / 1.2;
}

.slider-track {
    display: flex;
    transition: transform 0.3s ease;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
}

.arrow.left {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 99;
}

.arrow.right {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 99;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--gray-color);
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
}

.dot.active {
    background: var(--accent-color);
}

.image-small-display {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    overflow: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.image-small-display img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.image-small-display img:hover {
    border-color: var(--secondary-color);
}

.product-name-action {
    flex: 1;
    min-width: 300px;
}

.product-name-action h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.price {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

.quantity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--opacity-color);
    border-bottom: 1px solid var(--opacity-color);
}

.quantity label {
    display: block;
    margin-bottom: 8px;
}

.quality-action {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
}

.quantity-button {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
    border: 1px solid var(--gray-color);
    background: transparent;
}

.quantity-button:hover {
    border: 1px solid var(--secondary-color);
}

.product-name-action button {
    width: 100%;
}

.quality-action p {
    min-width: 20px;
    text-align: center;
}

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

.product-description h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.product-description p,
.product-description ul,
.product-description ol {
    margin-bottom: 10px;
    line-height: 1.5;
}

@media screen and (max-width: 768px) {
    #product-list {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .product-images img,
    .slide {
        object-fit: cover;
    }

    .arrow {
        font-size: 20px;
        padding: 8px;
    }
}
