.hero-section {
    text-align: center;
    padding: 5px;
    background-color: #f5f5f7;
    font-family: 'kanit',sans-serif;
}
.hero-section h1 {
    font-size: 40px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.hero-section p {
    font-size: 14px;
    color: #6e6e73;
}
/* การแสดงสินค้าด้วยรูปภาพและตัวเลือก */
.product-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 20px;
    background-color: #ffffff;
}

.product-image {
    flex: 1;
    text-align: center;
    font-family: 'kanit',sans-serif;

}

.product-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    width: auto;
    min-width: 400px;
    object-fit: cover;
}

.product-options {
    flex: 1;
    padding-left: 35px;
    padding-right: 35px;
    margin-left: auto;
    margin-right: auto;
    max-width: 70%;
    align-content: center;
    
}

.option-title {
    font-size: 18px;
    font-weight: 600;
    max-width: 350px
}

.size {
    font-size: 25px;
    color: #000000;
    font-family: 'kanit',sans-serif;
}

.description {
    font-size: 25px;
    color: #6e6e73;
    font-family: 'kanit',sans-serif;
}

.option-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 2fr));
    gap: 6px;
    max-height: 140px;
    max-width: 350px;
    margin-bottom: 90px;
}

.option-btn {
    padding: 4px;
    background-color: #f8f9fa;
    border: 2px solid #dcdcdc;
    border-radius: 7px;
    cursor: pointer;
    font-size: 17px;
    transition: background-color 1s, border-color 1s;
    border-color: #dcdcdc;
    margin-bottom: auto;
    font-family: 'kanit',sans-serif;
}

.option-btn:hover {
    background-color: #ece4d4;
    border-color: #dcdcdc;
}

#stock-info {
    background-color: #ddd;
    padding: 5px;
    margin: 5%  25% 1% 25%;
}
/* การจัดส่ง */
.shipping-title {
    font-size: 20px;
    font-weight: auto;
    font-family: 'kanit',sans-serif;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 350px;
}
.shipping-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 350px
}
.shipping-section {
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
}
.shipping-method p {
    margin: 4px;
    font-family: 'kanit',sans-serif;
}
.method-title {
    font-size: 17px;
    font-weight: bold;
    color: #1d1d1f;
    font-family: 'kanit',sans-serif;
}
.shipping-note {
    font-size: 14px;
    color: #6e6e73;
    font-family: 'kanit',sans-serif;
}
.shipping-section p-2 {
    font-size: 14px;
    color: #f9cb06;
    font-family: 'kanit',sans-serif;
}
.divider {
    margin: 10px;
    border: 0;
    border-top: -10px solid #ddd;
}



/* สำหรับขนาดหน้าจอที่เล็กกว่า 768px */
@media screen and (max-width: 768px) {
    .product-display {
        display: block;
        text-align: center;
    }

    .product-image img {
        max-width: 90%; /* ลดขนาดลงให้สัมพันธ์กับจอ */
        min-width: 250px; /* ป้องกันไม่ให้เล็กเกินไป */
        max-height: 350px; /* ลด max-height ลง */
    }
    .product-options {
        flex: 1;
        padding-left: 35px;
        padding-right: 35px;
        margin-left: auto;
        margin-right: auto;
        align-content: center;
    }
}

/* สำหรับขนาดหน้าจอที่เล็กกว่า 480px */
@media screen and (max-width: 480px) {
    .hero-section h1 {
        font-size: 22px; /* จาก 24px */
    }

    .hero-section p {
        font-size: 13px;
    }

    .option-btn {
        font-size: 14px;
        padding: 6px;
    }

    .shipping-title {
        font-size: 18px;
    }
}