/* Scoped to the homepage category widget; native scrolling also works without JS. */
.tk-home-categories { min-width: 0; overflow: visible !important; }
.tk-home-categories .elementor-widget-container { min-width: 0; }
.tk-home-categories .tk_image_slider {
    display: flex; flex-flow: row nowrap; justify-content: flex-start; direction: rtl;
    gap: 24px; width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden;
    padding: 8px 4px 16px; scroll-snap-type: x proximity; scroll-padding-inline: 4px;
    overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: #b9c3c1 #f3f5f4;
}
.tk-home-categories .tk_image_slider_item {
    flex: 0 0 calc((100% - 168px) / 8); min-width: 148px; width: auto;
    margin: 0; padding: 6px 4px; justify-content: flex-start; scroll-snap-align: start;
    text-decoration: none; border-radius: 12px;
}
.tk-home-categories .tk_image_slider_item_img_wrapper { width: 112px; height: 112px; display: flex; align-items: center; justify-content: center; }
.tk-home-categories .tk_image_slider_item_img { display: block; width: 112px !important; height: 112px !important; object-fit: contain; }
.tk-home-categories .tk_image_slider_item_title { margin: 18px 0 8px; font-size: 15px; line-height: 1.8; text-align: center; }
.tk-home-categories a:focus-visible, .tk-home-categories button:focus-visible { outline: 2px solid #04724d; outline-offset: -2px; }
.tk-category-controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; direction: rtl; }
.tk-category-controls[hidden] { display: none; }
.tk-category-controls button { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; background: #fff; color: #38423f; border: 1px solid #d9dfdd; border-radius: 50%; cursor: pointer; }
.tk-category-controls button:hover { background: #ffd500; }
.tk-category-controls button:disabled { opacity: .3; cursor: default; background: #fff; }
.tk-category-controls svg { width: 18px; height: 18px; }
@media (max-width: 767px) {
    .tk-home-categories .tk_image_slider { gap: 12px; padding-bottom: 12px; }
    .tk-home-categories .tk_image_slider_item { flex-basis: 112px; min-width: 112px; margin-bottom: 0; }
    .tk-home-categories .tk_image_slider_item_img_wrapper { width: 88px; height: 88px; }
    .tk-home-categories .tk_image_slider_item_img { width: 88px !important; height: 88px !important; }
    .tk-home-categories .tk_image_slider_item_title { font-size: 12px; margin: 10px 0 4px; }
    .tk-category-controls { margin-top: 8px; }
}
