@charset "utf-8";
เพื่อให้โค้ดของคุณเป็นระเบียบและทำงานร่วมกันได้ดีที่สุด ผมได้ทำการ "รวม CSS ทุกส่วน" ที่เราคุยกันไว้ (Dropdown, ปุ่ม Next, และระบบ Zoom รูปภาพ) มาไว้ในชุดเดียว โดยจัดกลุ่มให้ดูง่ายและไล่ลำดับการทำงานครับ

คุณสามารถก๊อปปี้โค้ดชุดนี้ไปวางในไฟล์ .css ของคุณได้เลยครับ

CSS
/* ============================================================
   1. CUSTOM DROPDOWN (เมนูย่อยมีสกอลบาร์เมื่อเกิน 5)
   ============================================================ */
.title-product-select {
    width: 100%;
    display: flex;
    margin: 5px auto;
    height: auto;
}

.custom-dropdown {
    position: relative;
    font-family: 'serithairegular', sans-serif;
    width: 100%;
    user-select: none;
}

.select-selected {
    background-color: #fff;
    border: 2px solid #FDE594;
    border-radius: 15px;
    padding: 12px 20px;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.select-selected:after {
    content: "▼";
    font-size: 10px;
    color: #C45E9C;
    transition: 0.3s;
}

.select-selected.select-arrow-active:after {
    transform: rotate(180deg);
}

.select-items {
    position: absolute;
    background-color: #fff;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 999;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    
    /* ควบคุมสกอลบาร์: แสดงเมื่อเกิน ~5 รายการ */
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    display: none; /* ใช้ JavaScript ควบคุมการเปิด-ปิด */
}

.select-items div {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
    transition: 0.2s;
}

.select-items div:last-child {
    border-bottom: none;
}

.select-items div:hover {
    background-color: #C45E9C;
    color: #fff;
    padding-left: 25px;
}

/* ตกแต่ง Scrollbar ให้สวยงาม */
.select-items::-webkit-scrollbar { width: 6px; }
.select-items::-webkit-scrollbar-thumb { background: #FDE594; border-radius: 10px; }
.select-items::-webkit-scrollbar-track { background: transparent; }


/* ============================================================
   2. NEXT BUTTON (ปุ่มแบบไม่มีกรอบ ลูกศรขยับได้เอง)
   ============================================================ */
.next-02 {
    font-family: 'serithairegular', sans-serif;
    float: right;
    margin: 0 10px 20px 0;
}

.next-02 a {
    display: inline-flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px 45px 10px 15px;
    background-image: url(../images/icon-next.png);
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: right 5px center;
    transition: color 0.3s ease;
    
    /* Animation ลูกศรขยับนานๆ ที */
    animation: arrowMove 4s infinite ease-in-out;
}

.next-02 a:hover {
    color: #92278f;
    animation-play-state: paused; /* หยุดขยับตอนจะกด */
}

@keyframes arrowMove {
    0%, 80% { transform: translateX(0); background-position: right 5px center; }
    85%     { transform: translateX(8px); background-position: right 0px center; }
    90%     { transform: translateX(4px); }
    100%    { transform: translateX(0); background-position: right 5px center; }
}


/* ============================================================
   3. IMAGE POPUP ZOOM (คลิกรูปแล้วขยาย+พื้นหลังเบลอ)
   ============================================================ */
.zoom-able {
    cursor: pointer; /* เมาส์รูปมือ */
    transition: transform 0.3s ease, opacity 0.3s;
}

.zoom-able:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.img-popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 99999;
    display: none; /* ซ่อนไว้รอคลิก */
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 0.2s ease-out;
    opacity: 0;
}

/* พื้นหลังเบลอจากรูปภาพ */
.img-popup-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.5);
    z-index: -1;
    transform: scale(1.1);
    transition: transform 0.2s ease-out;
}

.img-popup-overlay.active { opacity: 1; }
.img-popup-overlay.active::before { transform: scale(1); }

/* รูปภาพหลัก (ป้องกันล้นจอ) */
.img-popup-content {
    max-width: 95%;
    max-height: 95%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.img-popup-overlay.active .img-popup-content { transform: scale(1); }

/* ปุ่มปิดขนาดใหญ่และกดยาง */
.img-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    line-height: 0.5;
    z-index: 1000002;
    padding: 20px; /* พื้นที่ Click Zone */
    transition: transform 0.1s ease;
}

.img-popup-close:hover {
    transform: scale(1.2);
    color: #FDE594;
}

/* รองรับ Mobile/Tablet */
@media screen and (max-width: 768px) {
    .img-popup-close { top: 10px; right: 10px; font-size: 60px; }
    .custom-dropdown { max-width: 100%; }
}