@charset "UTF-8";

/* --- FONTS --- */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/roboto-v50-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/roboto-v50-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/roboto-v50-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/roboto-v50-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('fonts/roboto-v50-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-900.woff2') format('woff2');
}

/* --- RESET & VARIABLES --- */
:root {
    --primary-red: #d0021b; 
    --primary-red-hover: #a60014;
    --header-bg: #fff;
    --header-text: #d0021b;
    --sale-red: #d0021b;
    --text-main: #333;
    --border-light: #e0e0e0;
    --gradient-sale: linear-gradient(to right, #d9222a, #ff9c00);
    --footer-bg: #fff;
    --footer-text: #555;
    --link-blue: #288ad6;
}

html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; background-color: #f4f4f4; color: var(--text-main); margin: 0; padding: 0; font-size: 14px; line-height: 1.5; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { padding-left: 0; margin: 0; list-style: none; } 
.container { max-width: 1200px; margin: 0 auto; padding: 0 10px; }
img { max-width: 100%; height: auto; }

/* --- BREADCRUMB (Global) --- */
.breadcrumb { margin-bottom: 10px; color: #666; font-size: 13px; }

/* =========================================
   HEADER STYLES
   ========================================= */
.site-header { background: #fff; border-bottom: 1px solid #ddd; margin-bottom: 20px; }

/* --- Top Header --- */
.header-top { padding: 15px 0; border-bottom: 1px solid #f0f0f0; }
.header-flex { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

/* Search - Updated for Relative Positioning */
.header-search { flex: 1; max-width: 500px; position: relative; }
.search-form { display: flex; border: 2px solid #ddd; border-radius: 40px; overflow: hidden; height: 40px; }
.search-form:focus-within { border-color: var(--primary-red); }
.search-form input { flex: 1; border: none; padding: 0 20px; outline: none; font-size: 13px; }
.search-form button { background: #fff; border: none; padding: 0 20px; cursor: pointer; color: #666; font-size: 16px; transition: 0.2s; }
.search-form button:hover { color: var(--primary-red); }

/* --- SEARCH SUGGESTIONS --- */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}
.search-suggestions.active { display: block; }
.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: #f9f9f9; }
.suggestion-thumb { width: 40px; height: 40px; object-fit: contain; margin-right: 15px; }
.suggestion-info { flex: 1; }
.suggestion-title { font-size: 13px; font-weight: 500; color: #333; margin-bottom: 2px; line-height: 1.3; }
.suggestion-price { font-size: 12px; color: #d0021b; font-weight: bold; }

/* Header Actions */
.header-actions { display: flex; gap: 20px; }
.action-item { display: flex; align-items: center; gap: 8px; }
.icon-box { font-size: 24px; color: #666; position: relative; }
.info-box { display: flex; flex-direction: column; line-height: 1.2; }
.sub-text { font-size: 11px; color: #888; }
.hotline { font-weight: bold; color: var(--primary-red); font-size: 14px; }
.login-link { font-weight: bold; font-size: 13px; }
.cart-count { 
    position: absolute; top: -5px; right: -8px; 
    background: var(--primary-red); color: #fff; 
    font-size: 10px; padding: 2px 5px; border-radius: 10px; 
}
.mobile-toggle-btn { display: none; font-size: 24px; cursor: pointer; }

/* --- Navigation Bar --- */
.header-nav { background: var(--primary-red); color: #fff; height: 45px; }
.nav-flex { display: flex; align-items: center; height: 100%; position: relative; }

/* Vertical Menu */
.vertical-menu { width: 260px; position: relative; z-index: 100; height: 100%; }
.v-menu-title { 
    background: #a60014; color: #fff; font-weight: 700; 
    padding: 0 15px; height: 100%; display: flex; align-items: center; gap: 10px; 
    cursor: pointer; text-transform: uppercase; font-size: 13px;
}
.v-menu-list { 
    display: none; /* Hide by default, show on hover */
    position: absolute; top: 100%; left: 0; width: 100%; 
    background: #fff; border: 1px solid #ddd; box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}
.vertical-menu:hover .v-menu-list { display: block; }
.v-menu-list li a { 
    display: flex; justify-content: space-between; padding: 10px 15px; 
    color: #333; font-size: 13px; border-bottom: 1px solid #eee; 
}
.v-menu-list li a:hover { background: #f9f9f9; color: var(--primary-red); }

/* Horizontal Menu */
.main-menu { flex: 1; margin-left: 20px; }
.main-menu ul { display: flex; gap: 20px; }
.main-menu a { font-weight: 500; font-size: 13px; text-transform: uppercase; padding: 12px 0; display: block; }
.main-menu a:hover, .main-menu a.active { color: #ffd700; }

.nav-right-link a { color: #fff; font-weight: bold; font-size: 13px; text-transform: uppercase; }

/* =========================================
   FOOTER STYLES
   ========================================= */
.site-footer { background: #fff; padding-top: 40px; border-top: 3px solid var(--primary-red); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 40% 30% 30%; gap: 30px; padding-bottom: 30px; }
.footer-title { font-size: 16px; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; color: #333; }

/* Footer Box (Address) */
.footer-box { display: flex; gap: 15px; margin-bottom: 15px; border-bottom: 1px dashed #eee; padding-bottom: 15px; }
.box-icon { font-size: 30px; color: var(--primary-red); }
.box-content h4 { font-size: 13px; margin: 0 0 5px 0; font-weight: 700; }
.box-content p { font-size: 12px; margin: 0; color: #666; }

.footer-text { margin-bottom: 8px; font-size: 13px; }
.highlight { color: var(--primary-red); font-weight: 700; }
.footer-subhead { font-weight: 700; margin-top: 15px; margin-bottom: 8px; font-size: 13px; }
.store-loc { font-size: 12px; color: #555; margin-bottom: 6px; }
.store-loc i { color: var(--primary-red); width: 15px; }

/* Links */
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: #555; }
.footer-links a:hover { color: var(--primary-red); padding-left: 5px; }

/* Social */
.social-icons { display: flex; gap: 10px; }
.social-btn { 
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; color: #fff; font-size: 16px; transition: 0.3s;
}
.social-btn.facebook { background: #3b5998; }
.social-btn.youtube { background: #c4302b; }
.social-btn.tiktok { background: #000; }
.social-btn.zalo { background: #0088cc; font-size: 10px; font-weight: bold; }
.social-btn:hover { opacity: 0.8; transform: translateY(-3px); }

.footer-bottom { background: #f4f4f4; padding: 10px 0; text-align: center; font-size: 12px; color: #888; border-top: 1px solid #eee; }

/* =========================================
   RESPONSIVE HEADER/FOOTER
   ========================================= */
@media (max-width: 992px) {
    .header-search, .header-actions { display: none; }
    .mobile-toggle-btn { display: block; margin-left: auto; }
    .header-nav { display: none; /* Hide default nav on mobile */ }
    .footer-grid { grid-template-columns: 1fr; }
}