@charset "UTF-8";

@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; }

/* =========================================
   NEW 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); }

/* 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; }
}

/* =========================================
   OLD CSS BELOW (Keep Product Styles)
   ========================================= */
/* --- BREADCRUMB --- */
.breadcrumb { margin-bottom: 10px; color: #666; font-size: 13px; }
/* --- LAYOUT --- */
.product-grid { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px;}
.left-column { flex: 1; min-width: 0; }
.right-column { width: 400px; }
/* --- CARDS --- */
.card { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 20px; overflow: hidden; }
.content-text { padding: 15px; }
.card-header { padding: 12px 15px; font-weight: 700; text-transform: uppercase; font-size: 15px; border-bottom: 1px solid var(--border-light); background-color: #fff2f2; color: var(--header-text); border-left: 4px solid var(--primary-red); display: flex; align-items: center; gap: 10px; }
/* --- GALLERY --- */
.product-gallery { padding: 10px; }
.main-image-frame { text-align: center; margin-bottom: 10px; height: 400px; display: flex; align-items: center; justify-content: center; }
.main-image-frame img { max-height: 100%; width: auto; }
.thumbnail-list { display: flex; gap: 10px; overflow-x: auto; justify-content: center; }
.thumb { width: 60px; height: 60px; border: 1px solid #ddd; object-fit: contain; cursor: pointer; border-radius: 4px; }
.thumb.active { border: 2px solid var(--primary-red); }
/* --- TABS --- */
.tab-navigation { display: flex; border-bottom: 1px solid #ddd; background: #f8f9fa; }
.tab-btn { flex: 1; border: none; background: none; padding: 15px; font-weight: 700; color: #666; cursor: pointer; text-transform: uppercase; font-size: 14px; border-bottom: 3px solid transparent; }
.tab-btn:hover { background: #f0f0f0; color: #333; }
.tab-btn.active { color: var(--primary-red); border-bottom: 3px solid var(--primary-red); background: #fff; }
.tab-content { display: none; padding: 20px; animation: fadeIn 0.3s; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* --- DESCRIPTION --- */
.description-content { max-height: 500px; overflow: hidden; position: relative; }
.description-content.expanded { max-height: none; }
.description-content img { display: block; margin: 10px auto; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(odd) { background-color: #f8f9fa; }
.specs-table td { padding: 12px; border-bottom: 1px solid #eee; font-size: 13px; }
.specs-table td:first-child { font-weight: bold; width: 40%; color: #555; }
.btn-readmore { display: block; width: 100%; border: 1px solid var(--primary-red); color: var(--primary-red); background: #fff; padding: 10px; text-align: center; border-radius: 4px; margin-top: 15px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.btn-readmore:hover { background: #fff2f2; }
/* --- PROMO & SALE --- */
.box_saving { border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; overflow: hidden; margin: 15px 0; }
.bs_title { background: var(--gradient-sale); padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.bs_price strong { font-size: 24px; color: #fff400; margin-right: 10px; }
.bs_time { text-align: right; font-size: 12px; }
.clockv2 b { background: rgba(0,0,0,0.2); padding: 2px 4px; border-radius: 3px; margin: 0 2px; font-size: 14px; }
.bs_content { padding: 15px; }
.block__promo { border: 2px solid var(--primary-red); border-radius: 4px; padding: 10px; background-color: #fff5f5; margin-top: 10px; }
.block__promo .pr-txtb { font-weight: 900 !important; font-size: 15px; color: var(--sale-red); text-transform: uppercase; border-bottom: 1px dashed #ffb3b3; padding-bottom: 8px; margin-bottom: 10px; margin-top: 0; }
.promo-list { list-style: none !important; padding: 0; } 
.promo-list li { margin-bottom: 8px; position: relative; padding-left: 20px; font-size: 13px; color: #333; font-weight: 500; }
.promo-list li::before { content: "●"; color: var(--sale-red); position: absolute; left: 0; font-size: 10px; top: 4px; }
/* --- RIGHT COLUMN STICKY --- */
.product-info-sticky { position: sticky; top: 10px; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.product-title { font-size: 22px; font-weight: 700; margin: 0 0 10px 0; line-height: 1.3; color: #333; }
/* --- VARIATIONS --- */
.product-variations { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed #eee; }
.var-label { font-size: 13px; font-weight: 700; color: #555; margin-bottom: 8px; display: block; }
.var-options { display: flex; gap: 8px; flex-wrap: wrap; }
.var-btn { display: inline-flex; align-items: center; justify-content: center; padding: 6px 15px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; color: #333; background: #fff; cursor: pointer; transition: all 0.2s ease; text-decoration: none; min-width: 60px; }
.var-btn:hover { border-color: var(--primary-red); color: var(--primary-red); background-color: #fff9f9; }
.var-btn.active { border-color: var(--primary-red); background-color: #fff2f2; color: var(--primary-red); font-weight: bold; pointer-events: none; cursor: default; }
/* --- BUTTONS --- */
.action-buttons { margin-top: 20px; }
.btn-row { display: flex; gap: 10px; margin-bottom: 10px; }
.btn-add-cart, .btn-buy-now { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 5px; border-radius: 6px; cursor: pointer; border: none; height: 60px; }
.btn-add-cart { background: #fff; border: 2px solid var(--primary-red); color: var(--primary-red); }
.btn-add-cart:hover { background: #fff2f2; }
.btn-add-cart i { font-size: 18px; margin-bottom: 4px; }
.btn-buy-now { background: var(--gradient-sale); color: #fff; }
.btn-buy-now:hover { opacity: 0.9; }
.btn-buy-now strong { font-size: 14px; text-transform: uppercase; }
.btn-buy-now span { font-size: 10px; font-weight: normal; opacity: 0.9; }
.btn-installment { width: 100%; background: #2f80ed; color: #fff; border: none; border-radius: 6px; padding: 12px; cursor: pointer; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.btn-installment:hover { background: #1c6dd6; }
.btn-installment strong { text-transform: uppercase; font-size: 14px; }
.btn-installment span { font-size: 11px; opacity: 0.9; }
/* --- COMMITMENT BOX --- */
.commitment-detailed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px; }
.comm-item { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.comm-item img { margin-bottom: 10px; transition: transform 0.3s; }
.comm-item:hover img { transform: scale(1.1); }
.comm-item h5 { font-size: 14px; font-weight: 700; margin: 0 0 5px 0; color: var(--text-main); text-transform: uppercase; }
.comm-item p { font-size: 12px; color: #666; margin: 0; line-height: 1.4; }
/* --- RELATED PRODUCTS --- */
.related-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-top: 20px; }
.related-item { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 10px; transition: 0.3s; }
.related-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.related-item h3 { font-size: 13px; height: 36px; overflow: hidden; margin-bottom: 5px; line-height: 1.4; color: #333; }
.related-item .price { color: var(--sale-red); font-weight: bold; display: block; }
/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .product-grid { flex-direction: column; }
    .right-column { width: 100%; order: -1; }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .commitment-detailed-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .related-grid { grid-template-columns: 1fr; } 
    .btn-row { height: auto; }
    .logo img { max-height: 40px; }
}

/* --- PRODUCT HEADER ACTIONS (Compare & Specs) --- */
.box02 {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
}
.box02__right, .tab-spec {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--link-blue);
    font-weight: 500;
}
.box02__right:hover, .tab-spec:hover {
    color: var(--primary-red);
}
.box02__right i, .tab-spec i {
    font-size: 16px;
}

/* --- COMPARE BUTTON (Added) --- */
.title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 5px;
}
.btn-compare-header {
    background: #fff;
    border: 1px solid #ccc;
    color: #555;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    margin-top: 5px; /* Align slightly with text top */
    flex-shrink: 0; /* Prevent shrinking */
}
.btn-compare-header:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: #fff5f5;
}

/* --- 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; }