.container-header {
    background: none !important;
    transition: all 0.3s ease;
}

.container-header.sticky,
.header.sticky {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-brand img {
    margin: 0 10px;
}

nav.navbar .mod-menu {
    color: #113b4d !important;
    font-weight: bolder !important;
}

nav.navbar {
    margin-top: 0 !important;
    background: #ffffff !important;
}

/* Sticky Navigation Styles */
.header.position-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
    width: 100%;
    transform: translateZ(0);
    /* GPU acceleration for mobile */
    -webkit-transform: translateZ(0);
}

.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.header.sticky .navbar,
.container-header.sticky .navbar {
    padding: 0.5rem 0;
}

.header.sticky .navbar-brand img,
.container-header.sticky .navbar-brand img {
    max-height: 50px;
    transition: max-height 0.3s ease;
}

/* Mobile Specific Fixes */
@media (max-width: 991.98px) {
    .header.position-sticky {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        width: 100vw;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        will-change: transform;
    }

    .header.sticky {
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    }

    .site-grid {
        padding-top: 0 !important;
    }

    body.has-sticky-header .site-grid {
        padding-top: 80px;
        /* Adjust based on your header height */
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .header.sticky .navbar {
        padding: 0.5rem 0;
    }
}

@media (width <=991.98px) {
    .container-header .mod-menu .mod-menu__sub a {
        color: #113b4d !important;
        font-weight: bolder !important;
    }
}

a {
    color: #113b4d !important;
    text-decoration: none !important;
}

.jshop_price {
    color: #ff0000 !important;
}

.bg-j9phone {
    background-color: #113b4d !important;
    color: #f7ec8d !important;
}

/* Footer Menu - แสดงเมนูแนวนอน */
.container-footer .mod-menu ul,
.container-footer .mod-menu.nav,
.container-footer ul.mod-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 15px !important;
}

.container-footer .mod-menu li,
.container-footer .nav-item {
    display: inline-block !important;
    margin-right: 15px !important;
    margin-bottom: 0 !important;
}

.container-footer .mod-menu li:last-child {
    margin-right: 0 !important;
}

.container-footer .mod-menu a,
.container-footer .nav-item a {
    text-decoration: none !important;
    padding: 5px 10px !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.container-footer .mod-menu a:hover {
    text-decoration: underline !important;
}

/* Floating Contact Button Styles */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contact-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.contact-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.5);
}

.contact-toggle.active {
    background: linear-gradient(135deg, #dc3545, #a71e2a);
}

.contact-toggle i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contact Tooltip Styles */
.contact-tooltip {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: tooltipFloat 3s ease-in-out infinite;
    z-index: 999;
}

.contact-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
}

.contact-tooltip::before {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 24px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid rgba(0, 0, 0, 0.1);
}

.contact-tooltip.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

@keyframes tooltipFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ซ่อน tooltip เมื่อเมนูเปิด */
.floating-contact.menu-open .contact-tooltip {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4), 0 0 0 0 rgba(0, 123, 255, 0.6);
    }

    70% {
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4), 0 0 0 15px rgba(0, 123, 255, 0);
    }

    100% {
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4), 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.contact-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 15px;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.contact-menu::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 5px 0;
    text-decoration: none !important;
    border-radius: 10px;
    transition: all 0.2s ease;
    color: #333 !important;
    font-size: 14px;
    font-weight: 500;
}

.contact-item:hover {
    background: #f8f9fa;
    transform: translateX(-3px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item.chat i {
    color: #17a2b8;
}

.contact-item.facebook i {
    color: #1877f2;
}

.contact-item.line i {
    color: #00c300;
}

.contact-item.phone i {
    color: #fd7e14;
}

.powered-by {
    text-align: center;
    padding: 10px 0 5px;
    margin-top: 10px;
    border-top: 1px solid #eee;
    font-size: 11px;
    color: #888;
    font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 15px;
        right: 15px;
    }

    .contact-toggle {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .contact-menu {
        bottom: 75px;
        right: 0;
        min-width: 220px;
        border-radius: 12px;
    }

    .contact-item {
        padding: 10px 12px;
        font-size: 13px;
    }

    .contact-item i {
        font-size: 16px;
        margin-right: 10px;
    }

    /* Mobile tooltip */
    .contact-tooltip {
        bottom: 75px;
        right: 0;
        font-size: 12px;
        padding: 6px 10px;
    }

    .contact-tooltip::after {
        right: 22px;
    }

    .contact-tooltip::before {
        right: 21px;
    }
}

/* Animation for contact items */
.contact-menu.show .contact-item {
    animation: slideInUp 0.3s ease forwards;
    opacity: 0;
}

.contact-menu.show .contact-item:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-menu.show .contact-item:nth-child(2) {
    animation-delay: 0.15s;
}

.contact-menu.show .contact-item:nth-child(3) {
    animation-delay: 0.2s;
}

.contact-menu.show .contact-item:nth-child(4) {
    animation-delay: 0.25s;
}

.contact-menu.show .powered-by {
    animation-delay: 0.3s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ซ่อน tooltip เมื่อเมนูเปิด */
.floating-contact.menu-open .contact-tooltip {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.prod_price #block_price {
    font-size: 36px;
    color: #ff0000;
}