:root {
    --tmpbody: #9fa1a2;
    --tmpbody_bg: #f8f8f8;
    --tmp_bg_nav: #028090;
    --tmp_bg_nav_hover: #015863;
    --tmp_bg_stickyft: #015863;
    --tmp_bg_navitem: #8b8b8c;
    --tmp_navitem: #474748;
    --tmp_font_dark: #018263;
    --tmp_color_navlink: white;
    --tmp_color_navlink_active: rgb(206, 206, 206);
    --tmp_menubar_bg: #028090;
    --tmp_color1: #027180;
    --tmp_color2: #005a66;

}

/* .active {
    pointer-events: none;
    cursor: default;
    border-bottom: var(--tmp_bg_navitem) solid 1px;
} */


.pointer-none {
    pointer-events: none;
    cursor: default;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    background-color: var(--tmpbody_bg);
}

.menu-link.active {
    color: var(--tmp_bg_nav) !important;
    pointer-events: none;
    cursor: default;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.row {
    width: 100% !important;
    margin-left: 0 !important;
}

@keyframes shake {
    0% {
        transform: translate(0, 50px) rotate(-120deg) scale(0);
    }

    10% {
        transform: translate(0, 30px) rotate(-90deg) scale(0.5);
    }

    25% {
        transform: translate(0, 0) rotate(-60deg) scale(1);
    }

    30% {
        transform: translate(-15px, -25px) rotate(-30deg) scale(1.7);
    }

    50% {
        transform: translate(-30px, -45px) rotate(15deg) scale(2.2);
    }

    70% {
        transform: translate(-15px, -25px) rotate(30deg) scale(1.5);
    }

    75% {
        transform: translate(0, 0) rotate(-10deg) scale(1);
    }

    90% {
        transform: translate(0, -35px) rotate(-20deg) scale(1.05);
    }

    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

.shaking {
    animation: shake 1.2s ease-in-out 1;
}



.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    gap: 10px;
    animation: marquee 200s linear infinite;
    width: max-content;
}

.marquee-item {
    display: inline-block;
    text-align: center;
}

.marquee-item img {
    width: 200px;
    height: auto;
    border-radius: 8px;
}

@keyframes marquee {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-50%);
    }
}

.img-fluid {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-fluid:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.align-item-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.form-inline {
    display: flex;
    position: relative;
    padding: 3px;
    align-items: center;
}

.form-inline .btn {
    position: absolute;
    right: 6px;
    background: linear-gradient(45deg, var(--tmp_bg_stickyft), var(--tmp_bg_nav), var(--tmp_color1));
    color: white;
    border-radius: 3px 20px 20px 3px;
    height: 34px;
}

.stickyft {
    margin-left: 0;
    padding: 10px;
    width: 100%;
    background: linear-gradient(45deg, var(--tmp_bg_stickyft), var(--tmp_bg_nav), var(--tmp_color1));
    position: fixed;
    bottom: -10px;
    z-index: 9999;
    display: none;
}

.sticky-icon-box {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-bottom: 5px;
}

ul {
    margin-left: -40px;
}

li {
    list-style: none !important;
}

a {
    text-decoration: none;
}

a:hover {
    color: crimson !important;
}

.b,
h2,
h3,
h4,
h5,
h6 {
    color: #474748;
}

.topnav {
    background: linear-gradient(45deg, var(--tmp_bg_stickyft), var(--tmp_bg_nav), var(--tmp_color1));
    color: white;
}

#page-show {
    position: absolute;
    left: 0;
    top: 29px;
}

.navbar-toggler {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -4px;
}

.topnav-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: small;
}

.topnav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav {
    position: sticky !important;
    top: 0;
    display: flex;
    color: black;
    z-index: 9999;
    background-color: var(--tmpbody_bg);
    padding: 0;
}

.navbar-icon-search {
    border: black solid 1px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    padding: 5px;
    margin: 5px;
}

.navbar-nav {
    display: flex;
    justify-content: space-between;
}


nav .logo {
    width: 28% !important;
    height: auto;
}

.navlogo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.navlogo a {
    display: flex;
    justify-content: flex-start;
}

.nav-item {
    color: var(--tmp_navitem);
}

.shadow {
    box-shadow: 1px 1px 4px 1px rgba(0, 0, 0, 0.5);
}

.nav-link {
    margin-bottom: 0;
    transition: transform 0.7s ease, margin 0.5s ease, color 0.2s ease, box-shadow 0.2s ease;
    color: var(--tmp_navitem);
}

.nav-link.active {
    color: var(--tmp_menubar_bg) !important;
    pointer-events: none;
    cursor: default;
}

.nav-link:hover {
    color: var(--tmp_menubar_bg);
}


.search-input {
    border-radius: 30px;
}

.menubar-menu {
    margin-top: 3px;
    display: flex;
    align-items: center;
}

.menu-menu {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: -30px !important;
}

.menu-item {
    display: flex;
    justify-content: center;
}

.menu-link {
    padding: 5px;
}

.nav-icon {
    color: var(--tmp_navitem);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    margin-right: 5px;
    border-radius: 50%;
}

.nav-icon:hover {
    background-color: #9fa1a2;
    color: white;
}

.sidebar-item {
    display: flex;
    border-bottom: 1px solid rgb(178, 178, 178);
    padding: 10px 0;
    margin-bottom: 5px;
}

a.sidebar-link {
    display: flex;
    width: 100% !important;
    justify-content: space-between;
}

.promotion-box {
    min-height: 100px;
    border: var(--tmp_navitem) solid 1px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-ft {
    align-items: center;
    justify-content: space-between;
    display: flex;
}

.slide-img-w {
    border-radius: 20px;
    overflow: hidden;
}

.card>a>img {
    transition: transform 0.5s ease;
}

.card:hover>a>img {
    transform: scale(1.12);
}

.footer-pd {
    color: white !important;
    background: linear-gradient(0deg, var(--tmp_color2), var(--tmp_color1), var(--tmp_bg_nav), var(--tmp_bg_nav));

}

.topnav-right>a:nth-child(1) {
    display: none;
}

.hide {
    display: none;
}

.pagination li span,
.pagination li a {
    font-size: x-small !important;
    margin-top: 0;
}

.pagination {
    margin-top: -15px;
}

.li-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    font-size: xx-small;
}

.li-link:hover {
    color: crimson !important;
    cursor: pointer;
}


.card-price-title {
    margin-bottom: 70px !important;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#ft-img-logo {
    width: 100%;
}


.product-slide {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.01), white) !important;
    padding: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.graphic-icon-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
}

.graphic-icon-box {
    width: 25%;
}

.graphic-icon-box:hover {
    cursor: pointer;
}

.graphic-icon-box img {
    display: flex;
    width: 37% !important;
    border-radius: 50%;
    overflow: hidden;
    border: white solid 3px;
    opacity: 0.8;
    transition: all .3s;
}

.graphic-icon-box:hover img {
    margin-top: -5px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.icon-text {
    text-shadow: 2px 2px 7px rgba(0, 0, 0, 1);
    font-weight: 600;
    font-size: 2em;
    left: 38%;
    bottom: 1%;
    position: absolute;
    color: white;
}

.price-strike {
    position: relative;
    color: gray;
    display: inline-block;
    margin-bottom: -10px;
}

.price-strike::after {
    content: '';
    position: absolute;
    left: 0;
    top: 82%;
    width: 75%;
    height: 2px;
    background: gray;
    transform: rotate(-12deg);
    transform-origin: left center;
}

.icon p {
    font-size: xx-small;
}

.roboto-thin-italic>p {
    left: 26%;
    bottom: -17px;
    position: absolute;
    text-wrap: nowrap;
}

.graphic-icon-container {
    margin-top: 10px;
}

.hashtag .btn {
    background-color: var(--tmp_bg_nav_hover) !important;
    color: white !important;
    border-radius: 30px !important;
    font-size: x-small !important;
}

.stock-status {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 3px;
    font-size: x-small;
    color: white;
    border-color: white;
    border-radius: 20px;
    min-width: 100px;
    text-align: center;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

.stock-status:hover {
    pointer-events: none;
    cursor: default;
}

.stock-status.available {
    background-color: #28a745c0;
}

.stock-status.unavailable {
    background-color: #dc3545c0;

}

.stock-status.limited {
    background-color: #ffc107c0;
}

.PdSwiper3 .swiper-slide img {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.PdSwiper3 .swiper-slide:hover img {
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    background-color: red;
    /* สีพื้นหลัง */
    color: white;
    /* สีตัวเลข */
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.slide-img {
    /* border-radius: 50%; */
    transition: scale 0.2s ease-in-out, border-radius 0.3s ease-in-out;
}

.swiper-slide:hover .slide-img {
    border-radius: 10px;
    scale: 1.05;
}

.card-img-top {
    transition: scale 0.5s ease-in-out, border-radius 0.3s ease-in-out;
}

.card-img-top:hover {
    scale: 1.1;
}

.stock-container {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #acacacc1;
    color: white;
    padding: 4px 10px;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
    z-index: 10;
    opacity: 0.9;
}

.promotion-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 15;

    /* Modern gradient background */
    background: linear-gradient(135deg,
            #ff6b6b 0%,
            #ee5a52 50%,
            #dc3545 100%);

    /* Typography */
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;

    /* Layout */
    padding: 4px 7px;
    border-radius: 15px;
    min-width: 60px;
    text-align: center;

    /* Modern effects */
    box-shadow:
        0 4px 12px rgba(220, 53, 69, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    /* Border for premium look */
    border: 1px solid rgba(255, 255, 255, 0.1);

    /* Animation */
    animation: promotionPulse 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);

    /* Remove opacity for better visibility */
    opacity: 1;

    /* Backdrop effect */
    backdrop-filter: blur(10px);
}

/* Hover effect */
.promotion-badge:hover {
    transform: scale(1.05) translateY(-1px);
    box-shadow:
        0 6px 16px rgba(220, 53, 69, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Animation keyframes */
@keyframes promotionPulse {

    0%,
    100% {
        box-shadow:
            0 4px 12px rgba(220, 53, 69, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow:
            0 6px 20px rgba(220, 53, 69, 0.4),
            0 4px 8px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Alternative designs */

/* Style 1: Hot badge */
.promotion-badge.hot {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b35 100%);
    box-shadow:
        0 4px 12px rgba(255, 107, 53, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.promotion-badge.hot::before {
    content: "🔥 ";
    margin-right: 2px;
}

/* Style 2: New badge */
.promotion-badge.new {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow:
        0 4px 12px rgba(40, 167, 69, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.promotion-badge.new::before {
    content: "✨ ";
    margin-right: 2px;
}

/* Style 3: Sale badge with animation */
.promotion-badge.sale {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    animation: saleShake 2s ease-in-out infinite;
}

@keyframes saleShake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-2deg);
    }

    75% {
        transform: rotate(2deg);
    }
}

/* Style 4: Discount percentage */
.promotion-badge.discount {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 0;
}

.promotion-badge.discount::after {
    content: "OFF";
    font-size: 0.4rem;
    position: absolute;
    bottom: 8px;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .promotion-badge {
        font-size: 0.6rem;
        padding: 4px 8px;
        min-width: 50px;
        bottom: 10px !important;
        right: 6px;
    }

    .promotion-badge.discount {
        width: 40px;
        height: 40px;
        font-size: 0.55rem;
    }
}

.share-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10000;
    background: linear-gradient(45deg, var(--tmp_bg_stickyft), var(--tmp_bg_nav), var(--tmp_color1));
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    opacity: 0.8;
}

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    opacity: 1;
}

.share-btn:active {
    transform: scale(0.95);
}

.share-btn i {
    transition: color 0.2s ease;
}

@media screen and (max-width: 1280px) {
    .roboto-thin-italic>p {
        display: none !important;
    }
}

@media screen and (max-width: 1024px) {

    .container:nth-child(4)>div:nth-child(1),
    .topnav-left {
        display: none;
    }

    .hide {
        display: flex;
        width: 100%;
    }

    nav .logo {
        width: 50% !important;
        height: auto;
    }
}

@media screen and (max-width: 930px) {


    #navbarNav {
        margin-top: 5px;
        border-radius: 20px;
        background-color: white;
        justify-content: center;
        overflow: hidden;
    }

    .nav-item {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .topnav-right>a:nth-child(1) {
        display: flex;
        margin-top: 7px;
    }

    .topnav-right {
        width: 100% !important;
        justify-content: space-between;
    }

    .nav-link {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .graphic-icon-box {
        width: 50%;
        margin-top: 20px;
    }

    .icon-text {
        font-size: 20px;
        left: 38%;
        bottom: 28%;
    }

    .graphic-icon-box img {
        opacity: 0.9;
    }

    .graphic-icon-container {
        margin-top: -20px;
    }
}

@media screen and (max-width: 768px) {
    .navlogo {
        justify-content: space-evenly;
    }

    nav .logo {
        width: 15% !important;
    }

    .form-inline {
        margin-top: -17px;
    }

    .sidebar {
        display: none;
    }

    .mainbox {
        width: 100%;
    }

    .menu-link {
        font-size: smaller;
    }

    .promotion-box {
        margin-top: 8px;
    }

    .search-input {
        margin-top: 20px;
    }

    .col-md-2 {
        position: relative;
    }

    .nav-icon {
        position: absolute;
        margin-top: -88px;
        margin-right: 50px;
    }

    .nav-icon:nth-child(1) {
        margin-right: 95px;
    }

    h2 {
        font-size: medium;
    }

    p,
    a,
    span {
        font-size: small;
    }

    .stickyft {
        display: flex;
    }

    .slide-img-w {
        border-radius: 8px;
    }

    .form-inline .btn {
        top: 25px;
    }

    .card-price-title {
        margin-bottom: 65px !important;
    }

    #ft-img-logo {
        width: 50%;
        margin-left: 25%;
        margin-bottom: 30px;
        margin-top: 10px;
    }

    #page-show {
        top: 25px;
    }

    .roboto-thin-italic>p {
        display: flex !important;
        font-size: xx-small;
        left: 13%;

    }

    .icon p {
        display: none !important;
    }
}

@media screen and (max-width: 640px) {
    .menu-menu {
        margin: 0;
        overflow: hidden;
    }

    .menu-link {
        font-size: xx-small;
        display: block;
        white-space: nowrap;
    }

    .menu-item {
        padding: 0;
        margin: 0;
    }

    .card-title {
        font-size: smaller;
    }

    .card-text {
        font-size: small;
    }

    .card-ft {
        display: flex;
        flex-direction: column;
    }

    .card-ft>a {
        display: flex;
        width: 100% !important;
        margin-top: 5px;
        justify-content: center;
    }

    tr td,
    th {
        font-size: xx-small;
    }
}