/* power by wnm9 - ui matched / no blur */
.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;
    background: #fff;
}

.img-anim img {
    width: 100%;
    height: auto;
    margin-left: auto;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.img-anim > div.bg {
    position: absolute;
    z-index: 2;
    opacity: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.18);
    transition: opacity 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, 0.08);
    background: #fff;
    transition: all .35s ease;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.shops-body > .shops-img {
    width: 100%;
    height: 100%;
    border-radius: 1vh;
    transition: all .35s ease;
}

.shops-body > .shops-img:hover {
    transform: scale(1.02);
}

.shops-body > .shops-text-center {
    position: absolute;
    top: 80%;
    left: 20%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all .35s 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.04);
}

.img-anim:hover > div {
    opacity: 1;
}

.img-anim:hover > div.text {
    top: 80%;
    opacity: 1;
}

.btn-main {
    color: #fff !important;
    background: var(--main);
    border: 1px solid var(--main);
    box-shadow: none;
    transition: all .25s ease;
}

.btn-main.active {
    color: #fff !important;
    background-color: var(--main);
    border: 1px solid var(--main);
}

.btn-main.active i {
    color: #fff !important;
}

.btn-main:hover {
    color: #fff !important;
    background-color: var(--main);
    border: 1px solid var(--main);
    filter: brightness(1.03);
    transform: translateY(-1px);
}

@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: 'Kanit', 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: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.css-card:hover {
    border: 1px solid var(--main);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.css-card * {
    transition: inherit;
}

.css-iconc {
    position: absolute;
    bottom: 1.5rem;
    right: 1rem;
    opacity: 0.18;
    color: var(--main);
    top: 24px;
    left: 65%;
    transition: all 0.25s ease;
    z-index: 1;
}

.css-card:hover .css-iconc {
    opacity: 0.45;
    transform: translateY(-4px);
}

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;
    transition: 0.25s !important;
}

.hover-main.fa-regular { color: inherit !important; }

.hover-main.active {
    background-color: transparent;
    color: var(--main) !important;
}

.hover-main.active .fa-regular,
.hover-main.active i {
    color: var(--main) !important;
}

.hover-main:hover {
    background-color: transparent;
    color: var(--main) !important;
    border-radius: 1vh;
}

.icon-white { transition: 0.25s !important; }
.hover-main .icon-white { color: inherit !important; }

.memu-main {
    color: #6b7280 !important;
    border-radius: 1vh;
    border: 1px solid transparent;
    background-color: transparent;
    transition: 0.25s !important;
}

.memu-main.fa-regular { color: inherit !important; }

.memu-main.active {
    background-color: transparent;
    color: var(--main) !important;
}

.memu-main.active .fa-regular,
.memu-main.active i {
    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: 220px;
    justify-content: center;
    border-radius: 12px;
    transition: 0.25s;
    padding: 10px;
    overflow: hidden;
    background: #fff;
}

.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: 0.25s;
    box-sizing: border-box;
}

.value:not(:active):hover,
.value:focus {
    display: flex;
    box-sizing: border-box;
    border: 1px solid rgba(56, 169, 255, 0.22);
    background: rgba(56, 169, 255, 0.06);
    color: var(--main);
}

.value:focus,
.value:active {
    background-color: var(--main);
    color: #fff;
    outline: none;
    margin-left: 0;
}

.value::before {
    content: "";
    position: absolute;
    top: 5px;
    left: -15px;
    width: 5px;
    height: 80%;
    background-color: var(--main);
    border-radius: 5px;
    opacity: 0;
    transition: 0.25s;
}

.value:focus::before,
.value:active::before {
    opacity: 1;
}

.value svg {
    width: 20px;
}

.input:hover > :not(.value:hover) {
    transition: 0.25s;
    filter: none;
    transform: none;
    opacity: 1;
}

.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);
    }

    #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 #dee2e6;
    background-color: #ffffff;
    box-shadow: none;
    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.08);
    border-color: rgba(56, 169, 255, 0.28);
}

.product-img {
    width: 185px;
    height: 185px;
    object-fit: contain;
    display: block;
    margin: 8px auto 0 auto;
    border-radius: 12px;
    background-color: #f8fafc;
    transition: transform .25s ease, opacity .25s ease;
}

.product-v1::before,
.product-v1::after {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
}

.product-v1::before {
    content: "";
    inset: 0;
    background: rgba(255, 255, 255, 0.26);
}

.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: #fff;
    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 {
    transform: scale(1.03);
    filter: none;
    opacity: 0.88;
}

.product-item-sm:hover .product-v1.out-of-stock .product-img {
    filter: grayscale(1);
    opacity: 0.75;
}

.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: #fff !important;
    box-shadow: none;
    transition: all 0.2s ease;
}

.product-btn i {
    color: inherit;
}

.product-btn:hover {
    filter: brightness(1.03);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
    transform: translateY(-1px);
}

.product-stock {
    font-size: 12px;
    background-color: #f8fafc;
    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: #fff1f2;
    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;
}