/* JKT FreeGo child theme: Thai fonts, per-language logo, footer CMS block */
@font-face {
    font-family: 'Kanit';
    src: url('../fonts/kanit-webfont.woff2') format('woff2'),
         url('../fonts/kanit-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Sarabun';
    src: url('../fonts/sarabun-regular.woff2') format('woff2'),
         url('../fonts/sarabun-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-400.woff2') format('woff2'),
         url('../fonts/Roboto-400.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Roboto', 'Sarabun', sans-serif;
}
h1, h2, h3, h4, h5, h6,
.page-title,
.navigation .level0 > .level-top {
    font-family: 'Roboto', 'Kanit', sans-serif;
}

/* logo.phtml renders both logos; show the one matching the store view language */
html[lang="en"] .logo .logo-th,
html[lang="th"] .logo .logo-en {
    display: none;
}

/* footer: tsd_footer_links CMS block */
.jkt-footer {
    background: #000;
    color: #fff;
    padding: 40px 0 20px;
}
.jkt-footer h4 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 15px;
}
.jkt-footer p {
    margin: 0 0 6px;
}
.jkt-footer a,
.jkt-footer a:visited,
.jkt-footer a:hover {
    color: #fff;
}
.jkt-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.jkt-footer ul li {
    margin: 0;
}
.jkt-footer .footer-box {
    margin-bottom: 20px;
}
.jkt-footer .text-footer p,
.jkt-footer .text-footer a {
    display: inline-block;
    margin-right: 6px;
}

/* CMS blocks use the Bootstrap 4 grid; FreeGo's styles-l.css loads later and resets .row to block.
   div only: FreeGo checkout tables use tr.row */
.column.main div.row,
.page-main-full-width div.row,
.jkt-footer div.row {
    display: flex;
    flex-wrap: wrap;
}

/* CMS product carousels use the JKT widget grid template; FreeGo's hover overlay
   (.product-item-inner top:-70px + absolute actions) would cover the price */
/* !important: styles-l.css (FreeGo) loads after this file with equally specific selectors */
.home-products .product-items .product-item .product-item-inner,
.home-products .product-items .product-item .product-item-actions {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
}
.home-products .product-items .product-item .product-item-actions {
    margin-top: 10px;
    padding: 0;
}

/* Bootstrap 3 visibility helpers still used by CMS blocks (desktop/mobile slide variants) */
@media (max-width: 767px) {
    .hidden-xs {
        display: none !important;
    }
}
@media (min-width: 768px) {
    .visible-xs {
        display: none !important;
    }
}

/* home category menu block */
.main-left-categories-home ul,
.main-left-categories-home li {
    list-style: none;
}
.main-left-categories-home ul {
    margin-left: 0;
    padding-left: 0;
}

/* owl carousel controls, as in the old Magento/jkt theme */
.owl-carousel.owl-theme .owl-nav {
    margin: 0;
}
.owl-carousel.owl-theme .owl-nav div {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    font-size: 0;
    color: transparent;
    background-color: rgb(114 114 114 / 9%);
    border-radius: 100%;
    transform: translateY(-50%);
    cursor: pointer;
}
.owl-carousel.owl-theme .owl-nav div:hover {
    background-color: #F4BF17;
}
.owl-carousel.owl-theme .owl-nav div:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
}
.owl-carousel.owl-theme .owl-nav .owl-prev {
    left: 0;
}
.owl-carousel.owl-theme .owl-nav .owl-next {
    right: 0;
}
.owl-carousel.owl-theme .owl-nav .owl-prev:before {
    background: url(../images/icon/icon-arrow-right.svg) no-repeat center center / 15px auto;
}
.owl-carousel.owl-theme .owl-nav .owl-next:before {
    background: url(../images/icon/icon-arrow-left.svg) no-repeat center center / 15px auto;
}
.home-brands .owl-carousel.owl-theme .owl-nav .owl-prev,
.products-best-selling .owl-carousel.owl-theme .owl-nav .owl-prev,
.products-promotion .owl-carousel.owl-theme .owl-nav .owl-prev {
    left: 75%;
}
.home-brands .owl-carousel.owl-theme .owl-nav div {
    top: -11%;
}
.products-best-selling .owl-carousel.owl-theme .owl-nav div {
    top: -9%;
}
.products-promotion .owl-carousel.owl-theme .owl-nav div {
    top: -30%;
}
.owl-carousel.owl-theme .owl-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
}
.owl-carousel.owl-theme .owl-dots .owl-dot {
    width: 23px;
    height: 8px;
    margin: 0 5px;
    border-radius: 14px;
    background-color: #E9DFEA;
}
.owl-carousel.owl-theme .owl-dots .owl-dot span {
    display: none;
}
.owl-carousel.owl-theme .owl-dots .owl-dot.active,
.owl-carousel.owl-theme .owl-dots .owl-dot:hover {
    background-color: #F4BF17;
}
