:root {
    --color-primary: #ED3237;
    --color-accent: #FF6846;
    --color-heading: #14213D;
    --color-bg: #FFF7F1;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-muted: #666666;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --container-max: 1260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { color: var(--color-heading); font-weight: 700; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container-max); }

.top-bar {
    background: var(--color-heading);
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: #fff; }
.top-right { display: flex; gap: 16px; }

.site-header { padding: 18px 0; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.logo img { max-height: 60px; }

.search-form .input-group { border: 2px solid var(--color-primary); border-radius: 30px; overflow: hidden; }
.search-form .form-select, .search-form .form-control { border: none; box-shadow: none; }
.search-form .btn-search { background: var(--color-primary); color: #fff; border: none; padding: 0 20px; }
.search-form .btn-search:hover { background: var(--color-accent); }

.header-right { gap: 12px; }
.header-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--color-heading);
}
.header-icon:hover { background: var(--color-primary); color: #fff; }
.cart-icon .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav { background: var(--color-primary); }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-menu li { position: relative; }
.nav-menu li a {
    display: block;
    padding: 14px 16px;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-menu li a:hover { background: rgba(0,0,0,0.1); color: #fff; }
.has-dropdown:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu {
    position: absolute;
    left: 0;
    top: 100%;
    width: 700px;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 999;
}
.mega-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    color: var(--color-text);
    border-radius: 8px;
}
.mega-item:hover { background: var(--color-bg); color: var(--color-primary); }

.hero-banner {
    background: linear-gradient(110deg, #FFF7F1 0%, #fff 60%, #FFF7F1 100%);
    padding: 60px 0;
    overflow: hidden;
}
.hero-banner .banner-content { padding-right: 30px; }
.hero-banner .subtitle {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.hero-banner h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 20px; }
.hero-banner p { color: var(--color-muted); font-size: 1.1rem; margin-bottom: 20px; }
.banner-benefits { list-style: none; padding: 0; margin-bottom: 28px; }
.banner-benefits li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.banner-benefits i { color: var(--color-primary); font-size: 1.2rem; }
.banner-img { max-height: 450px; margin: auto; }

.btn-primary, .btn-buy {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border: none;
    color: #fff;
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover, .btn-buy:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(237,50,55,0.3); }
.btn-outline-primary { border-color: var(--color-primary); color: var(--color-primary); border-radius: 30px; }
.btn-outline-primary:hover { background: var(--color-primary); color: #fff; }

.service-bar { background: var(--color-bg); }
.service-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    color: var(--color-heading);
}
.service-item i { font-size: 1.6rem; color: var(--color-primary); }

.section { padding: 60px 0; }
.section-subtitle {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.section-title { font-size: 2rem; margin-bottom: 16px; }
.bg-primary-gradient { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); }

.list-check { list-style: none; padding: 0; }
.list-check li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.list-check li::before {
    content: '\F26B';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.product-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.product-image-wrapper { position: relative; overflow: hidden; padding-top: 100%; background: var(--color-bg); }
.product-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-image img { transform: scale(1.08); }
.product-image-wrapper .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 20px;
}
.product-actions {
    position: absolute;
    right: -50px;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: right 0.25s;
    z-index: 3;
}
.product-card:hover .product-actions { right: 12px; }
.product-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--color-heading);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.product-actions button:hover { background: var(--color-primary); color: #fff; }
.product-info { padding: 16px; }
.product-title { font-size: 1rem; margin-bottom: 8px; font-weight: 600; }
.product-title a { color: var(--color-heading); }
.product-title a:hover { color: var(--color-primary); }
.product-prices { display: flex; align-items: center; gap: 10px; }
.sale-price { color: var(--color-primary); font-weight: 700; font-size: 1.1rem; }
.old-price { text-decoration: line-through; color: #999; font-size: 0.9rem; }

.guide-card, .reason-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.25s;
    height: 100%;
}
.guide-card:hover, .reason-card:hover { transform: translateY(-5px); }
.guide-card i { font-size: 2.2rem; color: var(--color-primary); margin-bottom: 12px; }
.reason-card i { font-size: 2rem; color: var(--color-primary); margin-bottom: 10px; }

.news-card { color: var(--color-text); }
.news-card img { border-radius: var(--border-radius); margin-bottom: 12px; }
.news-card h5 { color: var(--color-heading); transition: color 0.2s; }
.news-card:hover h5 { color: var(--color-primary); }
.news-featured { position: relative; display: block; border-radius: var(--border-radius); overflow: hidden; }
.news-featured img { width: 100%; height: 420px; object-fit: cover; }
.news-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}
.news-featured-content h3 { color: #fff; }
.news-small img { height: 130px; object-fit: cover; width: 100%; margin-bottom: 8px; }

.review-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    height: 100%;
}
.reviewer { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.site-footer {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    padding: 60px 0 20px;
}
.site-footer h5 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; }
.site-footer a { color: rgba(255,255,255,0.9); }
.site-footer a:hover { color: #fff; }
.footer-desc { opacity: 0.9; margin: 16px 0; }
.footer-info p { margin-bottom: 8px; }
.footer-links li { margin-bottom: 8px; }
.footer-subscribe .btn-light { color: var(--color-primary); }
.footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}
.footer-social a:hover { background: #fff; color: var(--color-primary); }

.fixed-buttons {
    position: fixed;
    right: 16px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}
.fixed-buttons a, .fixed-buttons button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 1.2rem;
}
.btn-call { background: #28a745; }
.btn-zalo { background: #0068FF; }
.btn-top { background: var(--color-heading); cursor: pointer; }

.page-banner { background: var(--color-bg); padding: 40px 0; margin-bottom: 20px; }
.page-banner h1 { margin: 0; }

.filter-box, .benefit-box, .cart-summary { background: #fff; box-shadow: var(--shadow); }

.size-option span, .color-option span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.size-option input:checked + span, .color-option input:checked + span {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.fixed-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 10px;
    gap: 8px;
}
.fixed-bottom-bar .btn { flex: 1; border-radius: 8px; padding: 10px; font-weight: 600; }
.fixed-bottom-bar .btn-call { background: #28a745; color: #fff; }
.fixed-bottom-bar .btn-add-cart { background: var(--color-heading); color: #fff; }
.fixed-bottom-bar .btn-buy { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: #fff; }

.alert { border-radius: 10px; }
.table > :not(caption) > * > * { vertical-align: middle; }
.breadcrumb-item + .breadcrumb-item::before { color: inherit; }
.object-fit-cover { object-fit: cover; }

@media (max-width: 991px) {
    .hero-banner h1 { font-size: 2rem; }
    .section-title { font-size: 1.5rem; }
    .mega-menu { display: none; }
    .main-nav { display: none; }
}

@media (max-width: 767px) {
    .hero-banner { padding: 40px 0; }
    .hero-banner h1 { font-size: 1.6rem; }
    .section { padding: 40px 0; }
    .service-item { font-size: 0.85rem; }
    .news-featured img { height: 280px; }
    .site-footer { padding: 40px 0 20px; }
    .fixed-buttons { right: 10px; bottom: 80px; }
}
