:root {
    --fh-primary: #ff3366;
    --fh-dark: #1a1a1a;
    --fh-glass: rgba(255, 255, 255, 0.85);
}

body {
    font-family: 'Kanit', sans-serif;
}

.fh-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: var(--fh-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
}

.fh-navbar.fh-scrolled {
    padding: 5px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.fh-nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fh-logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--fh-dark);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.fh-logo-link img {
    width: 150px;
}

.fh-highlight { 
    color: var(--fh-primary); 
}

.fh-nav-list {
    display: flex;
    gap: 35px;
    list-style: none;
}

.fh-nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
    position: relative;
}

.fh-nav-link:hover, .fh-nav-link.fh-active {
    color: var(--fh-primary);
}

.fh-nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--fh-primary);
    border-radius: 10px;
    transition: 0.3s;
}

.fh-nav-link:hover::after, .fh-nav-link.fh-active::after {
    width: 25px;
}

.fh-actions { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.fh-cart-btn {
    background: var(--fh-dark);
    color: white;
    padding: 8px 18px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.fh-cart-btn:hover {
    background: var(--fh-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.3);
}

.fh-cart-icon-box { 
    position: relative; 
    font-size: 1.2rem; 
}

.fh-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--fh-primary);
    color: white;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--fh-dark);
}

.fh-cart-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    margin-left: 5px;
}

.fh-cart-text {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 500;
}

.fh-cart-total-nav {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.fh-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

.fh-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(5px);
    z-index: 9999; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fh-mobile-overlay.fh-active {
    opacity: 1 !important;
    visibility: visible !important;
}

.fh-mobile-content {
    position: absolute;
    right: -100%; 
    top: 0;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background-color: #ffffff !important; 
    display: flex;
    flex-direction: column;
    padding: 30px 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.fh-mobile-overlay.fh-active .fh-mobile-content {
    right: 0;
}

.fh-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-shrink: 0;
}

.fh-close-btn {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

.fh-close-btn:active {
    background: #eee;
    transform: scale(0.9);
}

.fh-mobile-nav {
    flex: 1 0 auto; 
    display: block !important; 
    overflow-y: auto;
    margin: 20px 0;
}

.fh-mobile-list {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

.fh-mobile-list li a {
    display: flex !important;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #f0f0f0;
    border-radius: 14px;
    color: var(--fh-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.2s;
}

/* ป้องกันตัวอักษรหลุดหรือจาง */
.fh-mobile-list li a i {
    color: var(--fh-primary);
    width: 25px;
    text-align: center;
}

.fh-mobile-list a:hover {
    background: #fff5f7;
    color: var(--fh-primary);
}

.fh-mobile-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.fh-total-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fh-total-preview .label {
    color: var(--fh-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.fh-total-preview .amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--fh-primary);
}

.fh-checkout-now {
    width: 100%;
    background: var(--fh-dark);
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
}

.fh-checkout-now:active {
    transform: scale(0.97);
    background: var(--fh-primary);
}

@media (min-width: 993px) {
    .fh-mobile-overlay {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .fh-menu-wrapper { display: none; }
    .fh-mobile-toggle { display: flex; }
    .fh-mobile-overlay { display: block; }
    .fh-cart-text { display: none; }
    .fh-cart-btn { 
        padding: 10px; 
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .fh-cart-info { display: none; }
    .fh-cart-btn { padding: 8px 12px; }
}

/* .fh-mobile-overlay { border: 2px solid red !important; }
.fh-mobile-list li { border: 1px solid blue !important; } */
