/* power by xkao */
.shops {
    padding: 20px;
    border-radius: 1vh;
}

.shops-body {
    position: relative;
    color: #fff;
    font-weight: 600;
    height: 100%;
}

.img-anim {
    position: relative;
    text-align: center;
    overflow: hidden;
    border-radius: 1vh;
}

.img-anim img {
    width: 100%;
    height: auto;
    margin-left: auto;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}

.img-anim > div.bg {
    position: absolute;
    z-index: 2;
    opacity: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 1, 1, 0.3);
    transition: all 0.3s ease;
}

.img-anim > div.text {
    position: absolute;
    z-index: 3;
    top: 120%;
    left: 50%;
    opacity: 0;
    color: #fff;
    font-size: 20px;
    border-bottom: 1.5px solid transparent;
    border-image: linear-gradient(to right, var(--main), var(--main));
    border-image-slice: 1;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.content {
    height: auto;
    border: 1px solid rgba(0, 0, 0, .3);
    transition: all .5s ease;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.shops-body > .shops-img {
    width: 100%;
    height: 100%;
    border-radius: 1vh;
    transition: all .5s ease;
}

.shops-body > .shops-img:hover {
    transform: scale(1.035);
}

.shops-body > .shops-text-center {
    position: absolute;
    top: 80%;
    left: 20%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all .5s ease;
}

.shops-body:hover > .shops-text-center {
    left: 50%;
    opacity: 1;
    font-size: 20px;
    padding: 0 20px;
    border-radius: 2vh;
}

.img-anim:hover > img {
    transform: scale(1.1);
}

.img-anim:hover > div {
    opacity: 1;
}

.img-anim:hover > div.text {
    top: 80%;
    opacity: 1;
}

.btn-main {
    color: var(--main);
    background: var(--main-30);
    border: 1px solid var(--main);
    transition: all .5s ease;
}

.btn-main.active {
    color: white;
    background-color: var(--main);
    border: 1px solid var(--main);
}

.btn-main.active i {
    color: white !important;
}

.btn-main:hover {
    color: white;
    background-color: var(--main);
    border: 1px solid var(--main);
}

@media only screen and (max-width: 500px) {
    .pd-sm-font {
        font-size: 13px !important;
    }
    .pd-h-font {
        font-size: 16px;
    }
}

@media screen and (min-width: 48em) {
    .css-numc {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .css-card {
        padding: 1rem;
        min-height: 7rem;
    }

    .css-iconc {
        right: 0.5rem;
    }
}

.css-textc {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--font);
}

.css-numc {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-weight: 700;
    font-size: 1.875rem;
    line-height: 1.33;
    color: var(--main);
}

.css-5rec9s {
    font-size: 0.75rem;
    opacity: 0.6;
}

.css-card {
    padding: 0.75rem;
    border-radius: 0.75rem;
    min-height: 6rem;
    color: #000000;
    border-width: 1px;
    border-style: solid;
    border-image: initial;
    border-color: rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease 0s;
}

.css-card:hover {
    border: 2px solid var(--main);
}

.css-card * {
    transition: inherit;
}

.css-iconc {
    position: absolute;
    bottom: 1.5rem;
    right: 1rem;
    opacity: 0.2;
    color: var(--main);
    top: 24px;
    left: 65%;
    transition: all 0.3s ease 0s;
    z-index: 1;
}

.css-card:hover .css-iconc {
    opacity: 1;
    transform: translateY(-10px);
}

div .banner-show {
    border-radius: 0.75rem;
    position: relative;
    width: 100%;
    height: 100%;
}

.font-medium{font-weight:500}
.hover-main{color:#6b7280!important;border-radius:1vh;background-color:transparent;border:none}
.hover-main{transition:0.5s!important}
.hover-main.fa-regular{color:inherit!important}
.hover-main.active{background-color:transparent;color:var(--main)!important}
.hover-main.active .fa-regular{color:var(--main)!important}
.hover-main:hover{background-color:transparent;color:var(--main)!important;border-radius:1vh}
.icon-white{transition:0.5s!important}
.hover-main .icon-white{color:inherit!important}
.memu-main{color:#6b7280!important;border-radius:1vh;border:1px solid transparent;background-color:transparent}
.memu-main{transition:0.5s!important}
.memu-main.fa-regular{color:inherit!important}
.memu-main.active{background-color:transparent;color:var(--main)!important}
.memu-main.active .fa-regular{color:var(--main)!important}
.memu-main:hover{background-color:transparent;color:var(--main)!important;border-radius:1vh}
.memu-main .icon-white{color:inherit!important}

.input{display:flex;flex-direction:column;width:200px;justify-content:center;border-radius:10px;transition:1s;padding:10px;overflow:hidden}
.value{font-size:15px;background-color:transparent;border:none;padding:10px;color:var(--main);display:flex;position:relative;gap:5px;cursor:pointer;border-radius:10px;transition:1s;box-sizing:border-box}
.value:not(:active):hover,.value:focus{display:flex;box-sizing:border-box;border:2px solid var(--main);color:var(--main)}
.value:focus,.value:active{background-color:var(--main);color:#fff;outline:none;margin-left:17px}
.value::before{content:"";position:absolute;top:5px;left:-15px;width:5px;height:80%;background-color:#2f81f7;border-radius:5px;opacity:0;transition:1s}
.value:focus::before,.value:active::before{opacity:1}
.value svg{width:20px}
.input:hover>:not(.value:hover){transition:300ms;filter:blur(1.5px);transform:scale(0.95,0.95)}

.offcanvas-section-title{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0.85rem;
  color:#9ca3af;
}
.offcanvas-section-title::before,
.offcanvas-section-title::after{
  content:"";
  flex:1 1 auto;
  height:1px;
  background-color:#e5e7eb;
}
.offcanvas-section-title::before{margin-right:0.5rem;}
.offcanvas-section-title::after{margin-left:0.5rem;}

@media (max-width: 991.98px) {
  #navbarDropdownMobile + .dropdown-menu {
    left: auto !important;
    right: 0.5rem !important;
    transform: none !important;
    max-width: calc(100vw - 1rem);
  }

  /* Make mobile offcanvas menu narrower (not full screen) */
  #offcanvasRight {
    width: 65% !important;
    max-width: 65% !important;
  }
}

.product-item-sm {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-v1 {
    border-radius: 1.25rem;
    border: 1px solid var(--main);
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
    transition: all .25s ease;
}

.product-item-sm:hover .product-v1 {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.product-img {
    width: 185px;
    height: 185px;
    object-fit: contain;
    display: block;
    margin: 8px auto 0 auto;
    border-radius: 12px;
    background-color: #f3f4f6;
}

.product-v1::before,
.product-v1::after {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
}

.product-v1::before {
    content: none;
}

.product-v1::after {
    content: "ดูรายละเอียด";
    top: 100px;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 7px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--main);
    background-color: color-mix(in srgb, var(--main, #2563eb) 20%, #ffffff 80%);
    color: var(--main);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.product-item-sm:hover .product-v1::before,
.product-item-sm:hover .product-v1::after {
    opacity: 1;
}

.product-item-sm:hover .product-img {
    filter: blur(3px);
}

.product-item-sm:hover .product-v1.out-of-stock .product-img {
    filter: grayscale(1) blur(3px);
}

.product-body {
    padding-top: 10px;
    padding-bottom: 10px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.product-price {
font-size: 14px;
font-weight: 700;
}

.product-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
font-weight: 600;
padding: 9px 14px;
border-radius: 12px;
border: none;
background-color: var(--main);
color: var(--font, #ffffff) !important;
box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
transition: all 0.2s ease;
}

.product-btn i {
color: inherit;
}

.product-btn:hover {
filter: brightness(1.05);
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
transform: translateY(-1px);
}

.product-stock {
font-size: 12px;
background-color: #f3f4f6;
border-top: 1px solid rgba(15, 23, 42, 0.06);
padding: 4px 0 6px 0;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
color: #6b7280;
}

.product-stock i {
    color: #6b7280 !important;
}

.product-img.filters-out-stock {
filter: grayscale(1);
opacity: 0.85;
}

.product-v1.out-of-stock {
position: relative;
overflow: hidden;
background-color: #ffffff;
}

.product-v1.out-of-stock .product-body,
.product-v1.out-of-stock .product-stock {
position: relative;
z-index: 1;
}

.product-btn.out-of-stock-btn {
background-color: #ffe4ec;
background-color: color-mix(in srgb, var(--sec-color, #f97373) 18%, #ffffff 82%);
border: none;
color: var(--sec-color, #f97373) !important;
}

.product-btn.out-of-stock-btn span,
.product-btn.out-of-stock-btn i {
color: var(--sec-color, #f97373) !important;
}

.product-btn.out-of-stock-btn.disabled {
opacity: 1;
}