/* ================= GLOBAL ================= */

.font-bold {
    font-weight: 700
}

.font-semibold {
    font-weight: 600
}

.font-medium {
    font-weight: 500
}

/* ================= SHOP CARD ================= */

.shops {
    padding: 20px;
    border-radius: 1vh;
}

.shops-body {
    position: relative;
    color: #fff;
    font-weight: 600;
    height: 100%;
}

.shops-img {
    width: 100%;
    height: 100%;
    border-radius: 1vh;
    transition: transform .4s ease;
}

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

.shops-text-center {
    position: absolute;
    top: 80%;
    left: 20%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: .4s ease;
}

.shops-body:hover .shops-text-center {
    left: 50%;
    opacity: 1;
    font-size: 20px;
}

/* ================= IMAGE ANIMATION ================= */

.img-anim {
    position: relative;
    text-align: center;
    overflow: hidden;
    border-radius: 1vh;
}

.img-anim img {
    width: 100%;
    transition: transform .3s ease;
}

.img-anim:hover img {
    transform: scale(1.1);
}

/* ================= PRODUCT CARD ================= */

.product-item-sm {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-v1 {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, .06);
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
    overflow: hidden;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
    will-change: transform;
}

/* hover card */

.product-item-sm:hover .product-v1 {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .15);
}

/* ================= PRODUCT IMAGE ================= */

.product-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform .35s ease, filter .3s ease;
}

.product-item-sm:hover .product-img {
    transform: scale(1.08);
    filter: blur(2px) brightness(.75);
}

/* ================= PRODUCT HOVER BUTTON ================= */

.product-v1::after {
    content: "ดูรายละเอียด";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.85);
    padding: 10px 26px;
    border-radius: 999px;
    background: var(--main);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: .25s ease;
    z-index: 2;
}

.product-item-sm:hover .product-v1::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ================= GLOW EFFECT ================= */

.product-v1::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(45deg,
            transparent,
            rgba(var(--main-rgb), 0.25),
            transparent);
    opacity: 0;
    transition: .4s;
}

.product-item-sm:hover .product-v1::before {
    opacity: 1;
}

/* ================= PRODUCT TEXT ================= */

.product-body {
    padding: 12px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.product-price {
    font-size: 15px;
    font-weight: 700;
}

/* ================= PRODUCT BUTTON ================= */

.product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 10px;
    border: none;
    background: var(--main);
    color: #fff;
    transition: .2s ease;
}

.product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

/* ================= OUT OF STOCK ================= */

.product-v1.out-of-stock .product-img {
    filter: grayscale(1);
    opacity: .8;
}

.product-btn.out-of-stock {
    background: #ffe4ec;
    color: #e11d48 !important;
    cursor: not-allowed;
}

/* ================= STOCK INFO ================= */

.product-stock {
    font-size: 12px;
    background: #f3f4f6;
    border-top: 1px solid rgba(0, 0, 0, .06);
    padding: 5px;
    display: flex;
    justify-content: center;
    gap: 6px;
    color: #6b7280;
}

/* ================= CONTACT CARD ================= */

.contact-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: .35s ease;
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .02);
}

.contact-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
    border-color: var(--main);
}

.contact-icon-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    transition: .35s ease;
}

.contact-card:hover .contact-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.contact-btn {
    padding: .6rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    border: none;
    background: var(--main);
    color: #fff;
    transition: .25s;
}

.contact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(var(--main-rgb), .2);
}

/* ================= MOBILE ================= */

@media (max-width:768px) {

    .product-v1::after {
        display: none;
    }

    .product-item-sm:hover .product-img {
        filter: none;
    }

}

/* ================= SMALL SCREEN ================= */

@media (max-width:500px) {

    .pd-sm-font {
        font-size: 13px !important;
    }

    .pd-h-font {
        font-size: 16px;
    }

}