@charset "utf-8";

/***********************************/
 /* คอนเทนเนอร์หลัก */
.category-tabs-container {
    background-color: #ffffff;
    border-bottom: 1px solid #ebebeb;
    width: 100%;
}

/* แถบเลื่อนเมนู */
.category-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth; /* บังคับให้เลื่อนแบบนุ่มนวล */
}

/* ซ่อน Scrollbar */
.category-tabs-scroll::-webkit-scrollbar { display: none; }
.category-tabs-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* ดีไซน์ปุ่มเมนู */
.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background-color: #ffffff;
    color: #495057;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.tag-item:hover {
    background-color: #222222;
    color: #ffffff !important;
    border-color: #222222;
}

/* 🛠️ ดีไซน์ปุ่มลูกศรสำหรับ PC */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    z-index: 5;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #222;
}
.scroll-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-50%) scale(1.05);
}

/* จัดวางตำแหน่งปุ่มซ้าย-ขวาไว้ขอบคอนเทนเนอร์ */
.scroll-left-btn { left: 15px; }
.scroll-right-btn { right: 15px; }