* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #b30000;
    --primary-dark: #7b0000;
    --secondary: #ffcc00;
    --dark: #1f1f1f;
    --text: #222;
    --muted: #666;
    --bg: #f6f6f6;
    --white: #ffffff;
    --border: #e5e5e5;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 0.2px;

    background-color: #f5f5f5;
    background-image: url("/static/website/images/bg-automotive.png");

    background-repeat: repeat;          /* QUAN TRỌNG */
    background-size: 600px auto;        /* nhỏ lại để thấy pattern */

    color: #690909;                        /* sửa lại màu chữ */
    line-height: 1.5;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.80);
    z-index: -1;
}
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}
.site-title {
    font-size: 15px!important;
}
.menu-link {
    font-weight: 600;
}

.product-info h3 {
    font-weight: 600;
}

.product-price {
    font-weight: 700;
}

.hero-content h1 {
    font-weight: 800;
}

.hero-content p {
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 1200px;
    max-width: 95%;
    margin: 0 auto;
}

.topbar {
    background: var(--primary-dark);
    color: var(--white);
    font-size: 14px;
}

.topbar-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-right a {
    color: var(--secondary);
    font-weight: 700;
}

.header-main {
    background: #efefed;
    color: var(--white);
    padding: 16px 0;
}

.header-main-inner {
    display: grid;
    grid-template-columns: 240px 1fr 260px;
    gap: 20px;
    align-items: center;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 800;
    font-size: 24px;
}

.logo-badge {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--secondary);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.search-box {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 15px;
}

.search-box button {
    border: none;
    background: var(--secondary);
    color: var(--dark);
    font-weight: 700;
    padding: 0 22px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.header-action-item {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 110px;
    text-align: center;
}

.action-label {
    display: block;
    font-size: 12px;
    opacity: 0.9;
}

.main-nav {
    background: var(--dark);
    color: var(--white);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 52px;
    flex-wrap: wrap;
}

.nav-link {
    font-weight: 600;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
}

.hero-banner {
    background: linear-gradient(135deg, #7c0000, #ca0000);
    color: var(--white);
    padding: 42px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 30px;
    align-items: center;
}

.hero-subtitle {
    color: var(--secondary);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-text p {
    margin-bottom: 18px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-outline,
.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
    padding: 12px 24px;
}

.btn-outline {
    border: 1px solid var(--white);
    color: var(--white);
    padding: 12px 24px;
}

.btn-small {
    background: var(--primary);
    color: var(--white);
    padding: 9px 14px;
    font-size: 14px;
}

.hero-image-placeholder,
.promo-placeholder,
.news-placeholder,
.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ececec;
    color: #555;
    text-align: center;
}

.hero-image-placeholder {
    min-height: 360px;
    border-radius: 14px;
    font-weight: 700;
}

.section-block {
    padding: 15px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 26px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
}

.section-title.light h2 {
    color: #b30000;
}

.product-grid,
.category-grid,
.promo-grid,
.news-grid,
.testimonial-grid,
.brand-grid,
.footer-grid {
    display: grid;
    gap: 20px;
}

.four-cols,
.category-grid,
.brand-grid {
    grid-template-columns: repeat(4, 1fr);
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-thumb {
    padding: 12px;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.product-thumb img {
    max-height: 100%;
    object-fit: contain;
}

.no-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: #f0f0f0;
    font-weight: 600;
}

.product-info {
    padding: 14px;
    
}

.product-info h3 {
    font-size: 16px;
    min-height: 48px;
    margin-bottom: 8px;
}

.product-code {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.product-price {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 10px;
}

.category-block {
    background: #fffdf5;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.category-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.dark-block {
    background: #FFE998;
}

.promo-grid {
    grid-template-columns: repeat(2, 1fr);
}

.promo-placeholder {
    min-height: 220px;
    border-radius: 12px;
    font-weight: 700;
}

.news-grid,
.testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
}

.news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.news-placeholder {
    min-height: 220px;
}

.news-card h3 {
    padding: 14px;
    min-height: 76px;
    font-size: 16px;
}

.news-card a {
    display: inline-block;
    margin: 14px 14px 14px;
    color: var(--primary);
    font-weight: 700;
}

.testimonial-block {
    background: #fafafa;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.testimonial-card p {
    margin-bottom: 10px;
}

.brand-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
}

.site-footer {
    background: var(--primary-dark);
    color: var(--white);
    margin-top: 24px;
}

.footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    padding: 42px 0;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 12px;
}

.footer-col p,
.footer-col a {
    color: #f5f5f5;
    margin-bottom: 8px;
    display: block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 0;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .header-main-inner {
        grid-template-columns: 1fr;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .hero-grid,
    .four-cols,
    .category-grid,
    .brand-grid,
    .promo-grid,
    .news-grid,
    .testimonial-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-text h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .topbar-inner,
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
    }

    .hero-grid,
    .four-cols,
    .category-grid,
    .brand-grid,
    .promo-grid,
    .news-grid,
    .testimonial-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .search-box {
        width: 100%;
    }
}

.header-main {
    background: #d9d9d9;
    padding: 14px 0;
}

.header-main-inner {
    display: grid;
    grid-template-columns: 220px 1fr 140px;
    gap: 20px;
    align-items: center;
}

.logo a {
    display: inline-flex;
    align-items: center;
}

.logo img {
    max-height: 62px;
    width: auto;
    object-fit: contain;
    display: block;
}

.search-box {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 40px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 15px;
    color: #555;
}

.search-box button {
    border: none;
    background: #f2c200;
    color: #111;
    font-weight: 700;
    padding: 0 20px;
    cursor: pointer;
    min-width: 62px;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #222;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-weight: 600;
    min-height: 40px;
}

.cart-btn:hover {
    background: #f8f8f8;
}

.cart-icon {
    font-size: 20px;
    line-height: 1;
}

.cart-text {
    font-size: 14px;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #c40000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-search-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    min-height: 48px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.ai-search-box:focus-within {
    border-color: #d4af37;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.18);
}

.ai-search-icon {
    width: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

.ai-search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 10px 0 0;
    font-size: 15px;
    color: #222;
    background: transparent;
}

.ai-search-box input::placeholder {
    color: #8a8a8a;
}

.ai-search-btn {
    border: none;
    margin: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f4c400, #ffdf6b);
    color: #1f1f1f;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(244, 196, 0, 0.28);
}

.ai-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7b0000;
    display: inline-block;
}

.ai-search-suggest {
    font-size: 13px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ai-search-suggest a {
    background: #f5f5f5;
    padding: 6px 10px;
    border-radius: 999px;
    color: #444;
}

.ai-search-suggest a:hover {
    background: #ececec;
}

.main-nav {
    background: #7b0000;
    position: relative;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 3px solid #f0c400;
}

.nav-inner {
    position: relative;
    overflow: visible;
    display: flex;
    justify-content: center;
}


.hero-slider {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    background: #111;
}

.hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(80, 0, 0, 0.75) 0%,
        rgba(80, 0, 0, 0.55) 35%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
    max-width: 1200px;
}

.hero-content h1,
.hero-content h2 {
    font-size: 52px;
    line-height: 1.15;
    max-width: 760px;
    margin-bottom: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-content p {
    max-width: 650px;
    font-size: 20px;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: #ffcc00;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: 0.2s ease;
}

.hero-nav:hover {
    background: rgba(255, 204, 0, 0.9);
    color: #111;
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: 0.2s ease;
}

.hero-dot.active,
.hero-dot:hover {
    background: #ffcc00;
}

@media (max-width: 1200px) {
    .hero-slider {
        height: 500px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 420px;
    }

    .hero-content {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 28px;
        max-width: 95%;
    }

    .hero-content p {
        font-size: 15px;
        max-width: 95%;
    }

    .hero-nav {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}
.product-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.btn-detail,
.btn-cart {
    min-width: 120px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s ease;
}

.btn-detail {
    background: #c40000;
    color: #fff;
}

.btn-detail:hover {
    background: #a80000;
}

.btn-cart {
    background: #f2c200;
    color: #111;
}

.btn-cart:hover {
    background: #ddb100;
}

.btn-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.category-block {
    background: #f7eba2;
}

.category-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 30px;
    padding: 10px;
}

.category-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4a4a4a;
    min-height: 70px;
    transition: 0.2s ease;
    background-color: white;
    border-radius: 10px;
}

.category-list-item:hover {
    transform: translateX(4px);
    color: #b30000;
}

.category-thumb {
    width: 40px;
    height: 40px;
    min-width: 38px;
    border-radius: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: #fff;
    line-height: 1;

}

.category-name {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 400;
    margin-top: 5px;
}

@media (max-width: 1200px) {
    .category-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 18px;
    }

    .category-name {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .category-list-grid {
        grid-template-columns: 1fr;
    }
}
.site-footer.footer-contact {
    position: relative;
    overflow: hidden;
    color: #fff;
    background-color: #7b0000;
    background-image: url("/static/website/images/footer-bg-blueprint.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(123, 0, 0, 0.82);
    z-index: 1;
}

.footer-contact-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.2fr;
    gap: 40px;
    padding: 52px 0 40px;
}

.footer-contact-col h3,
.footer-contact-col h4 {
    color: #fff;
    margin-bottom: 16px;
    font-weight: 800;
}
/* ===== CATEGORY BLOCK - HOME ===== */

.category-block {
    padding: 28px 0;
    background: #f6f6f6;
}

.category-block .section-title {
    margin-bottom: 18px;
    text-align: center;
}

.category-block .section-title h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 800;
    color: #1f1f1f;
}

.category-list-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.category-list-item {
    display: grid;
    grid-template-columns: 55px 1fr 40px;
    align-items: center;
    min-height: 80px;
    padding: 10px 0 10px 14px;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: #202124;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.035);
    overflow: hidden;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.category-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.11);
    border-color: rgba(255, 102, 0, 0.3);
}

.category-thumb {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6a00;
    font-size: 30px;
    flex-shrink: 0;
}

.category-thumb::before {
    content: "";
    position: absolute;
    inset: 3px;
    background: #fff;

    clip-path: polygon(
        25% 4%,
        75% 4%,
        100% 50%,
        75% 96%,
        25% 96%,
        0 50%
    );
    z-index: 0;
}

.category-thumb img {
    position: relative;
    z-index: 1;
    width: 43px;
    height: 43px;
    object-fit: contain;
    display: block;
}

.category-name {
    padding: 0 12px;
    font-size: 16px;
    line-height: 1.28;
    font-weight: 700;
    color: #202124;
}

.category-list-item::after {
    content: "›";
    height: 44px;
    border-left: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6a00;
    font-size: 34px;
    line-height: 1;
    font-weight: 300;
    transition: transform 0.18s ease;
}

.category-list-item:hover::after {
    transform: translateX(3px);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1199px) {
    .category-list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .category-block {
        padding: 20px 0;
    }

    .category-block .section-title h2 {
        font-size: 22px;
    }

    .category-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .category-list-item {
        grid-template-columns: 58px 1fr 34px;
        min-height: 68px;
        padding: 8px 0 8px 8px;
        border-radius: 7px;
    }

    .category-thumb {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .category-thumb img {
        width: 34px;
        height: 34px;
    }

    .category-name {
        padding: 0 7px;
        font-size: 13px;
    }

    .category-list-item::after {
        height: 36px;
        font-size: 26px;
    }
}

@media (max-width: 420px) {
    .category-list-grid {
        grid-template-columns: 1fr;
    }
}
.footer-contact-col h3 {
    font-size: 24px;
    text-transform: uppercase;
}

.footer-contact-col h4 {
    font-size: 22px;
    text-transform: uppercase;
}

.footer-contact-col p {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.7;
    color: #fff;
}

.footer-contact-col strong {
    color: #fff;
    font-weight: 700;
}

.footer-hotline {
    font-size: 22px;
    line-height: 1.6;
    margin-top: 10px;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 16px 0;
    text-align: center;
    background: rgba(90, 0, 0, 0.35);
}

.footer-bottom p {
    margin: 0;
    color: #fff;
    font-size: 15px;
}

@media (max-width: 1100px) {
    .footer-contact-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 42px 0 32px;
    }

    .footer-contact-col h3 {
        font-size: 22px;
    }

    .footer-contact-col h4 {
        font-size: 20px;
    }

    .footer-contact-col p {
        font-size: 16px;
    }

    .footer-hotline {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .footer-contact-inner {
        gap: 20px;
    }

    .footer-contact-col h3 {
        font-size: 20px;
    }

    .footer-contact-col h4 {
        font-size: 18px;
    }

    .footer-contact-col p {
        font-size: 15px;
        line-height: 1.65;
    }

    .footer-hotline {
        font-size: 18px;
    }
}

.support-section.support-pro {
    padding: 48px 0;
    background:
        linear-gradient(135deg, rgba(132, 8, 8, 0.96), rgba(182, 18, 18, 0.94)),
        url("/static/website/images/footer-bg-blueprint.jpg") center center / cover no-repeat;
}

.support-shell {
    display: grid;
    grid-template-columns: 300px 1fr;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.support-sidebar {
    background: linear-gradient(180deg, #c91f25 0%, #a80f14 100%);
    padding: 24px 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.support-sidebar-head {
    margin-bottom: 8px;
}

.support-mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 204, 0, 0.18);
    color: #ffdf6b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.support-sidebar-head h2 {
    font-size: 28px;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 10px;
    font-weight: 800;
}

.support-tab-item {
    border: 0;
    background: transparent;
    color: #fff;
    padding: 14px 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
}

.support-tab-item:hover,
.support-tab-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffdd57;
    transform: translateX(4px);
}

.support-tab-icon {
    width: 22px;
    min-width: 22px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.support-tab-text {
    line-height: 1.35;
}

.support-sidebar-hotline {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffcc00, #f4b400);
    color: #6f0000;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.support-sidebar-hotline span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.support-sidebar-hotline a {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #7b0000;
}

.support-content {
    background: rgba(248, 248, 248, 0.98);
    padding: 24px;
    min-height: 360px;
}

.support-panel {
    display: none;
    animation: supportFade 0.25s ease;
}

.support-panel.active {
    display: block;
}

@keyframes supportFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.support-panel-head {
    margin-bottom: 18px;
}

.support-panel-head h3 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.2;
    color: #1f1f1f;
    font-weight: 800;
}

.support-panel-head p {
    margin: 0;
    color: #6a6a6a;
    font-size: 15px;
    line-height: 1.6;
}

.support-grid {
    display: grid;
    gap: 14px;
}

.support-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-grid-1 {
    grid-template-columns: minmax(0, 360px);
}

.support-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.support-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.3;
    color: #343434;
    font-weight: 700;
}

.support-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.support-meta a {
    font-size: 18px;
    font-weight: 700;
    color: #636363;
    transition: color 0.2s ease;
}

.support-meta a:hover {
    color: #b30000;
}

.support-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e7f6ff, #d5efff);
    color: #0894ff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

@media (max-width: 1100px) {
    .support-shell {
        grid-template-columns: 1fr;
    }

    .support-content {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .support-section.support-pro {
        padding: 36px 0;
    }

    .support-sidebar-head h2 {
        font-size: 24px;
    }

    .support-sidebar-hotline a {
        font-size: 24px;
    }

    .support-panel-head h3 {
        font-size: 24px;
    }

    .support-grid-2,
    .support-grid-1 {
        grid-template-columns: 1fr;
    }

    .support-card strong {
        font-size: 20px;
    }

    .support-meta a {
        font-size: 16px;
    }
}
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.cart-drawer.open {
    display: block;
}

.cart-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.cart-drawer-panel {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(1600px, 96vw);
    max-height: 80vh;
    background: #fff;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #b30000;
    color: #fff;
}

.cart-drawer-header h3 {
    margin: 0;
    font-size: 24px;
}

.cart-close-btn {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.cart-drawer-body {
    padding: 18px 20px;
    overflow: auto;
}

.cart-table-wrap {
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.cart-table th,
.cart-table td {
    border: 1px solid #e3e3e3;
    padding: 10px 12px;
    text-align: center;
    vertical-align: top;
    font-size: 14px;
}

.cart-table th {
    background: #f3f3f3;
    font-weight: 700;
}

.cart-table td:nth-child(2) {
    text-align: left;
    min-width: 280px;
}

.cart-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.cart-qty-input {
    width: 64px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
}

.cart-remove-btn {
    background: #c40000;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
}

.cart-drawer-footer {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid #e8e8e8;
    background: #fafafa;
}

.cart-total-box {
    font-size: 18px;
}

.cart-pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f2c200;
    color: #111;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 18px;
}

.cart-empty {
    text-align: center !important;
    color: #777;
    padding: 30px !important;
}

.price-sale {
    color: #e60023;
    font-size: 20px;
    font-weight: 700;
    margin-right: 8px;
}

.price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}

.product-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.product-thumb {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.product-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.06);
}

.product-badges {
    position: absolute;
    top: 50px;
    right: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.discount-badge,
.hot-badge,
.stock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.discount-badge {
    background: linear-gradient(135deg, #ff4d4f, #d70018);
    color: #fff;
}

.hot-badge {
    background: linear-gradient(135deg, #ff8a00, #ff5a00);
    color: #fff;
}

.stock-badge.in-stock {
    background: #e8fff0;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.stock-badge.out-stock {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.quick-view {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    z-index: 3;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.9);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.product-card:hover .quick-view {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.product-info {
    padding: 14px 14px 16px;
}

.product-info h3 {
    font-size: 16px;
    line-height: 1.45;
    min-height: 46px;
    margin-bottom: 8px;
    height: 70px;
}

.product-code {
    font-size: 13px;
    color: #777;
    margin: 4px 0;
    height: 25px;
}

.product-price-wrap {
    margin-top: 10px;
    margin-bottom: 14px;
    
}

.product-price {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.price-normal,
.price-sale {
    color: #d70018;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.price-old {
    color: #9a9a9a;
    text-decoration: line-through;
    font-weight: 500;
}

.price-contact {
    color: #ff6a00;
    
    font-weight: 700;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-detail:hover,
.btn-cart:hover {
    transform: translateY(-1px);
}

.btn-cart-icon {
    display: inline-flex;
    align-items: center;
    
}

.search-hero-bar {
    background: transparent;
    padding: 8px 0 0;
}

.search-hero-bar .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-search-form {
    width: 100%;
    max-width: 690px;
    margin: 0 auto;
}

.ai-search-box {
    display: flex;
    align-items: center;
    height: 42px;
    background: #fff;
    border: 1.5px solid #d8b11e;
    border-radius: 999px;
    padding: 0 8px 0 14px;
    box-sizing: border-box;
}

.ai-search-icon {
    color: #7a7a7a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex: 0 0 auto;
}

.ai-search-icon svg {
    width: 15px;
    height: 15px;
}

.ai-search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    padding: 0;
}

.ai-search-input::placeholder {
    color: #8a8a8a;
}

.ai-search-btn {
    flex: 0 0 auto;
    height: 30px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background: #f2c300;
    color: #2f2200;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    white-space: nowrap;
}

.ai-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b0000;
    display: inline-block;
}

.ai-search-suggest {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    padding-left: 4px;
    font-size: 12px;
    color: #888;
    line-height: 1.2;
}

.suggest-label {
    color: #8a8a8a;
    margin-right: 2px;
}

.suggest-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 12px;
    border-radius: 999px;
    background: #ececec;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}

.suggest-chip:hover {
    background: #e2e2e2;
    color: #222;
}

.ai-search-form,
.ai-search-form * {
    box-sizing: border-box;
}

.ai-search-form button,
.ai-search-form input {
    font-family: inherit;
}
.ai-search-form {
    position: relative;
}

.search-live-box {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    display: none;
}

.search-live-box.active {
    display: block;
}

.search-live-head {
    padding: 10px 14px 0;
}

.search-live-keywords {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.search-live-keywords strong {
    color: #444;
}

.search-live-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 14px 12px;
    border-bottom: 1px solid #f1f1f1;
}

.search-live-suggestion {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #444;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.search-live-list {
    max-height: 420px;
    overflow-y: auto;
}

.search-live-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: #222;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s ease;
}

.search-live-item:last-child {
    border-bottom: none;
}

.search-live-item:hover {
    background: #fafafa;
}

.search-live-thumb {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-live-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-live-noimage {
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 6px;
}

.search-live-info {
    min-width: 0;
    flex: 1;
}

.search-live-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    color: #222;
}

.search-live-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
}

.search-live-price {
    font-size: 15px;
    font-weight: 800;
    color: #d70018;
}

.search-live-stock {
    font-size: 12px;
    margin-top: 4px;
    color: #15803d;
}

.search-live-stock.out {
    color: #be123c;
}

.search-live-empty {
    padding: 16px;
    font-size: 14px;
    color: #666;
}

.search-live-footer {
    padding: 10px 14px;
    background: #fafafa;
    border-top: 1px solid #f1f1f1;
    text-align: center;
}

.search-live-footer a {
    font-size: 14px;
    font-weight: 700;
    color: #b8860b;
    text-decoration: none;
}
.search-pagination-wrap {
    display: flex;
    justify-content: center;
    margin: 30px 0 40px;
}

.search-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-pagination li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-pagination li a,
.search-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #7a0d0d;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-pagination li a:hover {
    background: #c40000;
    color: #fff;
    border-color: #c40000;
}

.search-pagination li.active span,
.search-pagination li.active a {
    background: #c40000;
    color: #fff;
    border-color: #c40000;
}

.search-pagination li.disabled span {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f3f3f3;
    color: #888;
}

@media (max-width: 768px) {
    .search-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-pagination li a,
    .search-pagination li span {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 14px;
    }
}
.brand-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.brand-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: brandScroll 200s linear infinite;
}

.brand-marquee:hover .brand-track {
    animation-play-state: paused;
}

.brand-item {
    min-width: 220px;
    height: 88px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand-logo {
    max-width: 140px;
    max-height: 48px;
    object-fit: contain;
    display: block;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #7d0000;
    text-transform: uppercase;
}

@keyframes brandScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}





.product-breadcrumb {
    margin: 8px 0 22px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.6;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: #7a7a7a;
}

.breadcrumb-item:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #b9b9b9;
}

.breadcrumb-item a {
    color: #8b2a2a;
    text-decoration: none;
    transition: color 0.18s ease;
}

.breadcrumb-item a:hover {
    color: #b10000;
    text-decoration: underline;
}

.breadcrumb-item.is-current {
    color: #4b4b4b;
    font-weight: 600;
}

@media (max-width: 767px) {
    .product-breadcrumb {
        margin: 6px 0 16px;
    }

    .breadcrumb-list {
        font-size: 14px;
        gap: 6px;
    }

    .breadcrumb-item:not(:last-child)::after {
        margin-left: 6px;
    }
}
.product-btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #f3c300;
    color: #3b0000;
    border: none;
    cursor: pointer;
}

.product-btn-cart:hover {
    background: #dfb400;
}

.product-cta-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}
/* GIỎ HÀNG – quan trọng thứ 2 */
.product-btn-cart {
    background: #ffffff;
    color: #b10000;
    border: 2px solid #b10000;
}

.product-btn-cart:hover {
    background: #b10000;
    color: #fff;
}

/* ZALO – phụ */
.product-btn-secondary {
    background: #8b0000;
    color: #fff;
}

.product-btn-secondary:hover {
    background: #6e0000;
}
@media (max-width: 768px) {
    .product-cta-row {
        grid-template-columns: 1fr;
    }
}
.product-cta-row {
    
    grid-template-columns: 3fr 1fr;
    gap: 12px;
}

.product-btn-primary {
    grid-column: span 2;
}
/* ==============================
   MAIN NAV / MENU / MEGA MENU
   ============================== */

.main-nav {
    position: relative;
    z-index: 1200;
    background: linear-gradient(180deg, #8b0000 0%, #740000 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 3px solid #f0c400;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    position: relative;
    overflow: visible;
}

.menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    min-height: 56px;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    width: 100%;
}

.menu-item {
    position: relative;
    flex: 0 0 auto;
}

.menu-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 22px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.menu-link::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 3px;
    background: transparent;
    transition: background 0.2s ease;
}

.menu-item:hover > .menu-link,
.menu-item.active > .menu-link,
.menu-item:focus-within > .menu-link {
    background: #f0c400;
    color: #1f1f1f;
}

.menu-item:hover > .menu-link::after,
.menu-item.active > .menu-link::after,
.menu-item:focus-within > .menu-link::after {
    background: #ffffff;
}

/* ===== DROPDOWN CHUNG ===== */

.menu-item.has-mega {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 940px;
    background: #c91f25;
    border-top: 3px solid #f0c400;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    z-index: 9999;
}

.menu-item.has-mega:hover > .mega-menu,
.menu-item.has-mega:focus-within > .mega-menu {
    display: block;
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mega-col {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.mega-col:last-child {
    border-right: none;
}

.mega-col a {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 16px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    transition: background 0.2s ease, color 0.2s ease;
}

.mega-col a:hover {
    background: #f0c400;
    color: #1f1f1f;
}

/* ===== MEGA MENU NHÀ SẢN XUẤT ===== */

.menu-item.mega-brand {
    position: relative;
}

.mega-menu-brand-table {
    left: 50%;
    transform: translateX(-50%);
    width: min(1280px, calc(100vw - 40px));
    min-width: 1100px;
    max-width: 1280px;
}

.mega-menu-brand-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
}

.mega-brand-link {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    text-decoration: none;
    background: #d71920;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.2s ease, color 0.2s ease;
    word-break: break-word;
}

.mega-brand-link:nth-child(5n) {
    border-right: none;
}

.mega-brand-link:hover,
.mega-brand-link:focus {
    background: #f2c400;
    color: #3b0000;
    outline: none;
}

/* ===== GIỮ CHO DROPDOWN KHÔNG BỊ CHẶN ===== */

.header,
.header-main,
.main-nav,
.nav-inner,
.menu,
.menu-item {
    overflow: visible;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1199px) {
    .menu-link {
        padding: 0 18px;
        font-size: 14px;
    }

    .mega-menu {
        min-width: 820px;
    }

    .mega-menu-brand-table {
        min-width: 920px;
        width: min(1100px, calc(100vw - 24px));
    }

    .mega-menu-brand-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mega-brand-link:nth-child(5n) {
        border-right: 1px solid rgba(255, 255, 255, 0.18);
    }

    .mega-brand-link:nth-child(4n) {
        border-right: none;
    }
}

@media (max-width: 991px) {
    .menu {
        flex-wrap: wrap;
        min-height: auto;
    }

    .menu-link {
        min-height: 50px;
        padding: 0 16px;
    }

    .mega-menu {
        min-width: 700px;
    }

    .mega-menu-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mega-menu-brand-table {
        min-width: 760px;
        width: min(900px, calc(100vw - 20px));
    }

    .mega-menu-brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mega-brand-link:nth-child(4n) {
        border-right: 1px solid rgba(255, 255, 255, 0.18);
    }

    .mega-brand-link:nth-child(3n) {
        border-right: none;
    }
}

@media (max-width: 767px) {
    .nav-inner {
        padding: 0;
    }

    .menu {
        flex-direction: column;
        align-items: stretch;
    }

    .menu-item {
        width: 100%;
    }

    .menu-link {
        justify-content: flex-start;
        padding: 0 16px;
        min-height: 48px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .menu-link::after {
        display: none;
    }

    .mega-menu,
    .mega-menu-brand-table {
        position: static;
        display: none;
        min-width: 100%;
        width: 100%;
        max-width: 100%;
        transform: none;
        box-shadow: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .menu-item.has-mega:hover > .mega-menu,
    .menu-item.has-mega:focus-within > .mega-menu {
        display: block;
    }

    .mega-menu-inner,
    .mega-menu-brand-grid {
        grid-template-columns: 1fr;
    }

    .mega-col,
    .mega-brand-link {
        border-right: none;
    }

    .mega-col a,
    .mega-brand-link {
        min-height: 48px;
        padding: 12px 16px;
    }
}

/* ===== MOBILE MENU CLEAN ===== */

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: #f0c400;
    color: #1f1f1f;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.mobile-nav-head {
    display: none;
}

.mobile-nav-overlay {
    display: none;
}

@media (max-width: 768px) {
    .header-main-inner {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .header-row-top {

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .logo img {
        max-height: 42px;
        width: auto;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    .search-hero-bar,
    .ai-search-form,
    .ai-search-box {
        width: 100%;
    }

    .header-right {
        display: flex;
        justify-content: flex-end;
    }

    .cart-btn {
        min-height: 42px;
        padding: 8px 12px;
    }

    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.38);
        z-index: 1998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
        display: block;
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 25%;
        max-width: 86vw;
        height: 100vh;
        background: #8b0000;
        z-index: 1999;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        overflow-y: auto;
        border-bottom: none;
        box-shadow: 12px 0 28px rgba(0, 0, 0, 0.22);
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .mobile-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 16px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 18px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .mobile-nav-close {
        width: 36px;
        height: 36px;
        border: none;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .nav-inner {
        padding: 8px 0 18px;
    }

    .menu {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .menu-item {
        width: 100%;
    }

    .menu-link {
        min-height: 50px;
        justify-content: flex-start;
        padding: 0 16px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .menu-link::after {
        display: none;
    }

    .menu-item.active > .menu-link,
    .menu-item:hover > .menu-link,
    .menu-item:focus-within > .menu-link {
        background: rgba(240, 196, 0, 0.12);
        color: #ffdf57;
    }

    .mega-menu,
    .mega-menu-brand-table {
        position: static;
        display: none;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        transform: none;
        box-shadow: none;
        border-top: 0;
        background: #a30000;
    }

    .menu-item.open > .mega-menu,
    .menu-item.open > .mega-menu-brand-table {
        display: block;
    }

    .mega-menu-inner,
    .mega-menu-brand-grid {
        display: grid;
        grid-template-columns: 1fr !important;
    }

    .mega-col {
        border-right: none;
    }

    .mega-col a,
    .mega-brand-link {
        min-height: 44px;
        padding: 10px 18px 10px 28px;
        font-size: 14px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: transparent;
    }

    .mega-col a:hover,
    .mega-brand-link:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }
}

.cart-table td:nth-child(4) {
    text-align: left;
}
.support-section.support-clean {
    padding: 32px 0;
    background: #f7f8fa;
}

.support-clean .container {
    max-width: 1180px;
}

.support-wrap {
    background: #ffffff;
    border: 1px solid #eceff3;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.support-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.support-heading h2 {
    margin: 8px 0 6px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
    color: #111827;
}

.support-heading p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
}

.support-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff1f2;
    color: #c1121f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.support-hotline {
    min-width: 220px;
    padding: 14px 16px;
    border-radius: 16px;
    text-decoration: none;
    background: #111827;
    color: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.support-hotline:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.16);
}

.support-hotline span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.72);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.support-hotline strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
}

.support-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf0f4;
}

.support-tab-btn {
    appearance: none;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.support-tab-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.support-tab-btn.active {
    background: #c1121f;
    border-color: #c1121f;
    color: #fff;
    box-shadow: 0 8px 18px rgba(193, 18, 31, 0.18);
}

.support-panel {
    display: none;
}

.support-panel.active {
    display: block;
}

.support-panel-head {
    margin-bottom: 14px;
}

.support-panel-head h3 {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
}

.support-panel-head p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.support-list {
    display: grid;
    gap: 12px;
}

.support-list-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-list-1 {
    grid-template-columns: 1fr;
}

.support-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #edf0f4;
    border-radius: 16px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.support-item:hover {
    border-color: #e2e8f0;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    transform: translateY(-1px);
}

.support-person strong {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
}

.support-person span {
    display: block;
    font-size: 13px;
    color: #6b7280;
}

.support-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.support-zalo,
.support-phone {
    text-decoration: none;
    white-space: nowrap;
    font-weight: 700;
    transition: all .2s ease;
}

.support-zalo {
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf4ff;
    color: #0a84ff;
    font-size: 13px;
}

.support-zalo:hover {
    background: #d9ecff;
}

.support-phone {
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #111827;
    border: 1px solid #e5e7eb;
    font-size: 15px;
}

.support-phone:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

@media (max-width: 991px) {
    .support-top {
        flex-direction: column;
    }

    .support-hotline {
        width: 100%;
        min-width: 0;
    }

    .support-list-2 {
        grid-template-columns: 1fr;
    }

    .support-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .support-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .support-wrap {
        padding: 16px;
        border-radius: 16px;
    }

    .support-heading h2 {
        font-size: 24px;
    }

    .support-panel-head h3 {
        font-size: 18px;
    }

    .support-tab-btn {
        height: 38px;
        padding: 0 14px;
        font-size: 13px;
    }

    .support-phone {
        font-size: 14px;
    }
}
@media (max-width: 767px) {
    .support-section.support-clean {
        padding: 20px 0;
        overflow-x: hidden;
    }

    .support-clean .container {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        overflow-x: hidden;
    }

    .support-wrap {
        width: 100%;
        max-width: 100%;
        padding: 14px;
        border-radius: 14px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .support-top {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .support-heading,
    .support-content,
    .support-panel,
    .support-item,
    .support-person,
    .support-actions {
        min-width: 0;
    }

    .support-hotline {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 12px 14px;
        border-radius: 12px;
        box-sizing: border-box;
    }

    .support-hotline strong {
        font-size: 20px;
    }

    .support-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        margin-bottom: 16px;
        padding-bottom: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .support-tabs::-webkit-scrollbar {
        display: none;
    }

    .support-tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        height: 36px;
        padding: 0 12px;
        font-size: 12px;
    }

    .support-panel-head h3 {
        font-size: 17px;
    }

    .support-panel-head p {
        font-size: 13px;
    }

    .support-list,
    .support-list-1,
    .support-list-2 {
        grid-template-columns: 1fr;
    }

    .support-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }

    .support-person {
        width: 100%;
    }

    .support-person strong {
        font-size: 16px;
    }

    .support-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .support-zalo,
    .support-phone {
        max-width: 100%;
        box-sizing: border-box;
    }

    .support-phone {
        font-size: 14px;
        padding: 0 12px;
    }
}

/* Khối header chính */
.site-header {
    position: relative;
    z-index: 1000;
}

/* Khu vực chứa search */
.search-hero-bar {
    position: relative;
    z-index: 1200;
}

/* Form search */
.ai-search-form {
    position: relative;
    z-index: 1300;
}

/* Box input search */
.ai-search-box {
    position: relative;
    z-index: 1301;
}

/* Dropdown live search */
.search-live-box {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    z-index: 9999;

    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    max-height: 520px;
    overflow-y: auto;
}

/* Thanh menu phải thấp hơn dropdown */
.main-nav {
    position: relative;
    z-index: 100;
}

.header-auth-box {
    position: relative;
    z-index: 20;
}

.header-auth-link {
    display: inline-block;
    padding: 10px 16px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.header-auth-link:hover {
    color: #ffd200;
}

.header-auth-btn {
    background: transparent;
    border: none;
}
/* =========================
   PORTAL LOGIN PAGE
========================= */
.portal-login-page {
    position: relative;
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.9)),
        url("/static/website/images/bg-pattern.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.portal-login-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.portal-login-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
}

.portal-login-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 38px 34px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(179, 0, 0, 0.08);
}

.portal-login-header {
    margin-bottom: 26px;
    text-align: center;
}

.portal-login-header h1 {
    margin: 0 0 10px;
    font-size: 36px;
    line-height: 1.25;
    font-weight: 800;
    color: #7f0000;
}

.portal-login-header p {
    margin: 0;
    font-size: 15px;
    color: #6d6d6d;
}

.portal-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.portal-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portal-form-group label {
    font-size: 15px;
    font-weight: 700;
    color: #7a2b2b;
}

.portal-login-form input[type="text"],
.portal-login-form input[type="password"],
.portal-login-form input[type="email"] {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    color: #222;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.portal-login-form input[type="text"]:focus,
.portal-login-form input[type="password"]:focus,
.portal-login-form input[type="email"]:focus {
    border-color: #c40000;
    box-shadow: 0 0 0 4px rgba(196, 0, 0, 0.10);
}

.portal-login-form input::placeholder {
    color: #999999;
}

.portal-login-btn {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #b30000 0%, #d30000 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 24px rgba(179, 0, 0, 0.22);
    margin-top: 6px;
}

.portal-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(179, 0, 0, 0.28);
}

.portal-login-btn:active {
    transform: translateY(0);
}

.portal-alert-group {
    margin-bottom: 16px;
}

.portal-alert {
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff5d9;
    color: #8a6500;
    border: 1px solid #f0d98a;
    font-size: 14px;
}

.portal-alert-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff1f1;
    color: #b30000;
    border: 1px solid #f3b0b0;
    font-size: 14px;
}

.portal-field-error {
    font-size: 13px;
    color: #c40000;
    margin-top: 2px;
}

@media (max-width: 767px) {
    .portal-login-page {
        padding: 30px 16px;
    }

    .portal-login-card {
        padding: 26px 20px;
        border-radius: 16px;
    }

    .portal-login-header h1 {
        font-size: 28px;
    }

    .portal-login-header p {
        font-size: 14px;
    }

    .portal-login-form input[type="text"],
    .portal-login-form input[type="password"],
    .portal-login-form input[type="email"] {
        height: 48px;
    }

    .portal-login-btn {
        height: 50px;
    }
}

/* ===== HEADER MAIN LAYOUT ===== */
.header-main {
    background: #d9d9d9;
    padding: 18px 0 14px;
    position: relative;
}

.header-main-inner {
    position: relative;
}

.header-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 240px;
    align-items: start;
    gap: 26px;
}

.header-col-logo {
    display: flex;
    align-items: center;
    min-height: 120px;
}

.logo a {
    display: inline-flex;
    align-items: center;
}

.logo img {
    max-width: 190px;
    height: auto;
    display: block;
}

.header-col-search {
    min-width: 0;
}

.search-hero-bar {
    width: 100%;
}

.ai-search-form {
    width: 100%;
}

.ai-search-box {
    position: relative;
    display: flex;
    align-items: center;
    height: 54px;
    border: 2px solid #d3a400;
    border-radius: 30px;
    background: #ffffff;
    overflow: hidden;
    padding: 0 10px 0 16px;
}

.ai-search-icon {
    width: 22px;
    height: 22px;
    color: #7d7d7d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 10px;
}

.ai-search-icon svg {
    width: 20px;
    height: 20px;
}

.ai-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    height: 100%;
    font-size: 16px;
    color: #333;
    min-width: 0;
}

.ai-search-input::placeholder {
    color: #8a8a8a;
}

.ai-search-btn {
    height: 40px;
    padding: 0 22px;
    border: none;
    border-radius: 22px;
    background: linear-gradient(90deg, #f2bf00 0%, #ffd100 100%);
    color: #5b0000;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(179, 0, 0, 0.10);
}

.ai-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8d0000;
    display: inline-block;
}

.ai-search-suggest {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.suggest-label {
    font-size: 14px;
    color: #8f8f8f;
    margin-right: 2px;
}

.suggest-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #efefef;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    line-height: 1;
    transition: all 0.2s ease;
}

.suggest-chip:hover {
    background: #ffffff;
    color: #9b0000;
}

/* ===== HEADER ACTIONS ===== */
.header-col-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 120px;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 6px;
}

.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    background: #ffffff;
    color: #222;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.cart-btn:hover {
    transform: translateY(-1px);
    color: #9b0000;
}

.cart-icon {
    font-size: 20px;
    line-height: 1;
}

.cart-text {
    font-size: 15px;
    line-height: 1;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #c60000;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.header-auth-form {
    margin: 0;
}

.header-auth-link {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-auth-primary {
    background: linear-gradient(90deg, #b30000 0%, #cf0000 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(179, 0, 0, 0.18);
    border: none;
}

.header-auth-primary:hover {
    transform: translateY(-1px);
    color: #fff;
}

.header-auth-outline {
    background: #ffffff;
    color: #8f0000;
    border: 1px solid rgba(143, 0, 0, 0.18);
}

button.header-auth-outline {
    appearance: none;
}

.header-auth-outline:hover {
    color: #b30000;
    background: #fff8f8;
}

/* ===== MOBILE ===== */
.menu-toggle {
    display: none;
}

@media (max-width: 1199px) {
    .header-grid {
        grid-template-columns: 200px minmax(0, 1fr) 220px;
        gap: 18px;
    }

    .logo img {
        max-width: 160px;
    }

    .ai-search-btn {
        padding: 0 16px;
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .header-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .header-col-logo,
    .header-col-search,
    .header-col-actions {
        min-height: auto;
    }

    .header-col-logo {
        justify-content: center;
    }

    .header-col-actions {
        justify-content: center;
    }

    .header-actions {
        justify-content: center;
        width: 100%;
        padding-top: 0;
    }

    .menu-toggle {
        display: inline-flex;
        position: absolute;
        top: 8px;
        right: 0;
        width: 42px;
        height: 42px;
        border: none;
        border-radius: 10px;
        align-items: center;
        justify-content: center;
        background: #b30000;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
    }
}

@media (max-width: 767px) {
    .header-main {
        padding: 16px 0 12px;
    }

    .ai-search-box {
        height: auto;
        min-height: 52px;
        padding: 6px 8px 6px 14px;
    }

    .ai-search-input {
        font-size: 14px;
    }

    .ai-search-btn {
        height: 38px;
        padding: 0 14px;
        font-size: 13px;
    }

    .suggest-chip {
        font-size: 13px;
        padding: 7px 12px;
    }

    .cart-btn,
    .header-auth-link {
        min-height: 44px;
        padding: 0 16px;
        font-size: 14px;
    }

    .cart-text {
        font-size: 14px;
    }
}

/* ===== VIMET HEADER FIX ===== */
.vimet-header-main {
    background: #d9d9d9;
    padding: 22px 0 18px;
}

.vimet-header-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.vimet-header-left {
    width: 220px;
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 12px;
}

.vimet-header-left .logo img {
    max-width: 180px;
    height: auto;
    display: block;
}

.vimet-header-center {
    flex: 1 1 auto;
    min-width: 0;
}

.vimet-search-form {
    width: 100%;
}

.vimet-search-box {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    border: 2px solid #d8a700;
    border-radius: 30px;
    background: #fff;
    padding: 6px 8px 6px 16px;
    box-sizing: border-box;
}

.vimet-search-icon {
    width: 22px;
    height: 22px;
    color: #7c7c7c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    margin-right: 10px;
}

.vimet-search-icon svg {
    width: 20px;
    height: 20px;
}

.vimet-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 40px;
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
    font-size: 16px;
    color: #333;
    padding: 0 10px 0 0;
    display: block;
}

.vimet-search-input::placeholder {
    color: #8d8d8d;
}

.vimet-search-btn {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 22px;
    border: none;
    border-radius: 22px;
    background: linear-gradient(90deg, #f2bf00 0%, #ffd100 100%);
    color: #6d0000;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.vimet-ai-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #970000;
    display: inline-block;
}

.vimet-search-suggest {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.vimet-suggest-label {
    color: #8f8f8f;
    font-size: 14px;
    line-height: 1.2;
    flex: 0 0 auto;
}

.vimet-suggest-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #efefef;
    color: #666;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.vimet-suggest-chip:hover {
    color: #980000;
    background: #fff;
}

.vimet-header-right {
    width: 230px;
    flex: 0 0 230px;
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
}

.vimet-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.vimet-header-actions .cart-btn {
    position: relative;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border-radius: 12px;
    background: #fff;
    color: #222;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.vimet-header-actions .cart-text {
    font-size: 15px;
    line-height: 1;
}

.vimet-login-btn,
.vimet-logout-btn {
    min-width: 130px;
    min-height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #b30000 0%, #d00000 100%);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(179,0,0,0.20);
}

.vimet-login-btn:hover,
.vimet-logout-btn:hover {
    color: #fff;
    transform: translateY(-1px);
}

.vimet-logout-form {
    margin: 0;
}

/* override trường hợp CSS cũ phá layout */
.vimet-header-main .search-hero-bar,
.vimet-header-main .ai-search-form,
.vimet-header-main .ai-search-suggest,
.vimet-header-main .search-live-box {
    width: 100%;
}

.vimet-header-main .ai-search-suggest {
    display: none !important;
}

/* dùng bộ suggest mới */
.vimet-header-main .vimet-search-suggest {
    display: flex !important;
}

@media (max-width: 1199px) {
    .vimet-header-left {
        width: 180px;
        flex-basis: 180px;
    }

    .vimet-header-right {
        width: 200px;
        flex-basis: 200px;
    }

    .vimet-header-left .logo img {
        max-width: 150px;
    }
}

@media (max-width: 991px) {
    .vimet-header-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .vimet-header-left,
    .vimet-header-right {
        width: 100%;
        flex: 1 1 auto;
        justify-content: center;
        padding-top: 0;
    }

    .vimet-header-left {
        align-items: center;
        justify-content: center;
    }

    .vimet-header-actions {
        align-items: center;
    }
}

@media (max-width: 767px) {
    .vimet-header-main {
        padding: 16px 0 14px;
    }

    .vimet-search-box {
        min-height: 52px;
        padding: 6px 8px 6px 12px;
    }

    .vimet-search-btn {
        padding: 0 14px;
        font-size: 13px;
    }

    .vimet-search-input {
        font-size: 14px;
    }

    .vimet-suggest-chip {
        font-size: 13px;
        padding: 7px 12px;
    }

    .vimet-login-btn,
    .vimet-logout-btn {
        min-width: 120px;
        min-height: 44px;
        font-size: 14px;
    }
}

.cart-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.cart-checkout-btn,
.cart-export-btn {
    min-width: 140px;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
}

.cart-checkout-btn {
    background: #b30000;
    color: #fff;
}

.cart-checkout-btn:hover {
    color: #fff;
    background: #980000;
}

.cart-export-btn {
    background: #f3c400;
    color: #222;
}
.checkout-page {
    background: #f6f6f6;
    padding: 36px 0 60px;
}

.checkout-container {
    max-width: 1320px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.checkout-card {
    background: #fff;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.checkout-title {
    margin: 0 0 8px;
    font-size: 30px;
    color: #8f0000;
    font-weight: 800;
}

.checkout-subtitle {
    margin: 0 0 24px;
    color: #6d6d6d;
    font-size: 15px;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.checkout-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-group label {
    font-weight: 700;
    color: #5f1c1c;
    font-size: 14px;
}

.checkout-group-full {
    grid-column: 1 / -1;
}

.checkout-input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    box-sizing: border-box;
}

.checkout-textarea {
    padding-top: 12px;
    min-height: 110px;
    resize: vertical;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.checkout-back-btn,
.checkout-submit-btn {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.checkout-back-btn {
    background: #f2f2f2;
    color: #333;
}

.checkout-submit-btn {
    background: linear-gradient(90deg, #b30000 0%, #d10000 100%);
    color: #fff;
}

.checkout-summary-title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 800;
    color: #8f0000;
}

.checkout-summary-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.checkout-summary-name {
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.checkout-summary-meta,
.checkout-summary-qty {
    font-size: 14px;
    color: #777;
}

.checkout-summary-price {
    font-weight: 800;
    color: #8f0000;
    white-space: nowrap;
}

.checkout-total {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.checkout-total strong {
    color: #b30000;
    font-size: 24px;
}

.checkout-alert-error {
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff1f1;
    border: 1px solid #f3b0b0;
    color: #b30000;
    margin-bottom: 18px;
}

.confirm-block h3 {
    margin-top: 0;
    color: #8f0000;
}

@media (max-width: 991px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-form-grid {
        grid-template-columns: 1fr;
    }

    .checkout-actions {
        flex-direction: column;
    }
}
/* =========================
   VIMET CHECKOUT REDESIGN
========================= */
.vimet-checkout-page {
    background:
        radial-gradient(circle at top right, rgba(179, 0, 0, 0.04), transparent 24%),
        linear-gradient(180deg, #f8f8f8 0%, #f2f2f2 100%);
    padding: 42px 0 70px;
}

.vimet-checkout-container {
    max-width: 1320px;
}

.vimet-checkout-topbar {
    margin-bottom: 24px;
}

.vimet-checkout-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
}

.vimet-checkout-breadcrumb a {
    color: #8f0000;
    text-decoration: none;
    font-weight: 600;
}

.vimet-checkout-topbar h1 {
    margin: 0 0 8px;
    font-size: 38px;
    line-height: 1.15;
    color: #8f0000;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.vimet-checkout-topbar p {
    margin: 0;
    font-size: 16px;
    color: #666;
    max-width: 760px;
    line-height: 1.65;
}

.vimet-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.95fr);
    gap: 26px;
    align-items: start;
}

.vimet-checkout-card,
.vimet-summary-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(143, 0, 0, 0.06);
}

.vimet-checkout-card {
    padding: 30px;
}

.vimet-summary-card {
    padding: 26px 26px 24px;
    position: sticky;
    top: 20px;
}

.vimet-checkout-card-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ededed;
}

.vimet-checkout-card-head h2 {
    margin: 0 0 6px;
    font-size: 24px;
    color: #7e0000;
    font-weight: 800;
}

.vimet-checkout-card-head p {
    margin: 0;
    color: #7c7c7c;
    font-size: 14px;
    line-height: 1.6;
}

.vimet-checkout-step-badge {
    min-width: 104px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(179, 0, 0, 0.08);
    color: #9b0000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.vimet-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 18px;
}

.vimet-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vimet-field-full {
    grid-column: 1 / -1;
}

.vimet-field label {
    font-size: 15px;
    font-weight: 800;
    color: #652020;
    letter-spacing: 0.1px;
}

.vimet-field input,
.vimet-field select,
.vimet-field textarea {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #d8d8d8;
    border-radius: 14px;
    background: #fff;
    box-sizing: border-box;
    font-size: 15px;
    color: #222;
    transition: all 0.22s ease;
    outline: none;
}

.vimet-field textarea {
    min-height: 122px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
    line-height: 1.6;
}

.vimet-field input::placeholder,
.vimet-field textarea::placeholder {
    color: #9a9a9a;
}

.vimet-field input:focus,
.vimet-field select:focus,
.vimet-field textarea:focus {
    border-color: #b30000;
    box-shadow: 0 0 0 4px rgba(179, 0, 0, 0.08);
}

.vimet-field-error {
    font-size: 13px;
    color: #c20000;
}

.vimet-form-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
}

.vimet-form-alert-error {
    background: #fff1f1;
    color: #b30000;
    border: 1px solid #f1b6b6;
}

.vimet-checkout-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.vimet-checkout-back-btn,
.vimet-checkout-submit-btn {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    transition: all 0.22s ease;
    border: none;
    cursor: pointer;
}

.vimet-checkout-back-btn {
    background: #efefef;
    color: #333;
}

.vimet-checkout-back-btn:hover {
    background: #e4e4e4;
    color: #111;
}

.vimet-checkout-submit-btn {
    background: linear-gradient(90deg, #a90000 0%, #d10000 100%);
    color: #fff;
    box-shadow: 0 14px 26px rgba(179, 0, 0, 0.18);
}

.vimet-checkout-submit-btn:hover {
    transform: translateY(-1px);
    color: #fff;
}

.vimet-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.vimet-summary-head h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #8f0000;
}

.vimet-summary-head span {
    font-size: 13px;
    color: #777;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.vimet-summary-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vimet-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}

.vimet-summary-left {
    display: flex;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.vimet-summary-thumb {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f3f3;
    border: 1px solid #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 70px;
}

.vimet-summary-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.vimet-summary-thumb-empty {
    font-size: 14px;
    font-weight: 800;
    color: #999;
}

.vimet-summary-info {
    min-width: 0;
}

.vimet-summary-name {
    font-size: 18px;
    line-height: 1.45;
    font-weight: 800;
    color: #222;
    margin-bottom: 8px;
}

.vimet-summary-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: #7a7a7a;
    margin-bottom: 8px;
}

.vimet-summary-qty {
    font-size: 14px;
    color: #666;
}

.vimet-summary-price {
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 800;
    color: #a60000;
    white-space: nowrap;
    padding-top: 2px;
}

.vimet-summary-divider {
    height: 1px;
    background: #ececec;
    margin: 10px 0 16px;
}

.vimet-summary-row,
.vimet-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.vimet-summary-row {
    font-size: 15px;
    color: #666;
    margin-bottom: 12px;
}

.vimet-summary-row strong {
    color: #333;
}

.vimet-summary-total {
    margin-top: 14px;
    padding-top: 18px;
    border-top: 2px dashed #e3d4d4;
}

.vimet-summary-total span {
    font-size: 18px;
    font-weight: 800;
    color: #7f0000;
}

.vimet-summary-total strong {
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    color: #b10000;
    letter-spacing: -0.5px;
}

.vimet-summary-note {
    margin-top: 18px;
    padding: 14px 15px;
    border-radius: 14px;
    background: #fff7e6;
    color: #8a6200;
    font-size: 14px;
    line-height: 1.65;
    border: 1px solid #f2ddb1;
}

@media (max-width: 1199px) {
    .vimet-checkout-topbar h1 {
        font-size: 34px;
    }

    .vimet-summary-total strong {
        font-size: 30px;
    }
}

@media (max-width: 991px) {
    .vimet-checkout-layout {
        grid-template-columns: 1fr;
    }

    .vimet-summary-card {
        position: static;
    }

    .vimet-checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .vimet-checkout-page {
        padding: 24px 0 44px;
    }

    .vimet-checkout-topbar h1 {
        font-size: 28px;
    }

    .vimet-checkout-topbar p {
        font-size: 14px;
    }

    .vimet-checkout-card,
    .vimet-summary-card {
        padding: 18px;
        border-radius: 18px;
    }

    .vimet-checkout-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .vimet-checkout-actions {
        flex-direction: column;
    }

    .vimet-checkout-back-btn,
    .vimet-checkout-submit-btn {
        width: 100%;
    }

    .vimet-summary-item {
        flex-direction: column;
    }

    .vimet-summary-price {
        padding-top: 0;
    }

    .vimet-summary-total strong {
        font-size: 28px;
    }
}
.checkout-success-page {
    min-height: 70vh;
    padding: 50px 0 70px;
    background: linear-gradient(180deg, #fafafa 0%, #f2f2f2 100%);
    display: flex;
    align-items: center;
}

.checkout-success-container {
    max-width: 900px;
}

.checkout-success-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    padding: 42px 36px;
    text-align: center;
    border: 1px solid rgba(179, 0, 0, 0.08);
}

.checkout-success-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea44b, #39c56f);
    color: #fff;
    font-size: 38px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    box-shadow: 0 14px 26px rgba(14, 164, 75, 0.22);
}

.checkout-success-card h1 {
    margin: 0 0 14px;
    font-size: 38px;
    color: #8f0000;
    font-weight: 800;
}

.checkout-success-text {
    max-width: 680px;
    margin: 0 auto 18px;
    color: #666;
    font-size: 17px;
    line-height: 1.8;
}

.checkout-success-order-code {
    display: inline-block;
    margin: 10px 0 16px;
    padding: 14px 18px;
    background: #fff8e8;
    border: 1px solid #f2dc9d;
    border-radius: 14px;
    color: #7a5600;
    font-size: 17px;
}

.checkout-success-order-code strong {
    color: #b30000;
    font-size: 20px;
}

.checkout-success-note {
    color: #777;
    font-size: 14px;
    margin-bottom: 28px;
}

.checkout-success-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.checkout-success-home-btn,
.checkout-success-shop-btn {
    min-width: 180px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: all 0.2s ease;
}

.checkout-success-home-btn {
    background: linear-gradient(90deg, #b30000 0%, #d10000 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(179, 0, 0, 0.18);
}

.checkout-success-home-btn:hover {
    color: #fff;
    transform: translateY(-1px);
}

.checkout-success-shop-btn {
    background: #f1f1f1;
    color: #333;
}

.checkout-success-shop-btn:hover {
    background: #e6e6e6;
    color: #111;
}

@media (max-width: 767px) {
    .checkout-success-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .checkout-success-card h1 {
        font-size: 28px;
    }

    .checkout-success-text {
        font-size: 15px;
    }

    .checkout-success-actions {
        flex-direction: column;
    }

    .checkout-success-home-btn,
    .checkout-success-shop-btn {
        width: 100%;
    }
}
body,
input,
select,
textarea,
button,
a {
    font-family: 'Montserrat', sans-serif;
}

.cart-btn,
.cart-btn * ,
.vimet-login-btn,
.vimet-logout-btn,
.cart-checkout-btn,
.cart-export-btn,
.ai-search-btn,
button {
    font-family: 'Montserrat', sans-serif !important;
}

.vimet-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.vimet-header-actions,
.vimet-auth-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
}

.vimet-inline-btn,
.vimet-logout-form {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0;
}

.vimet-inline-btn {
    position: relative;
    min-width: 52px;
    height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5dede;
    color: #7a0000;
    text-decoration: none;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.vimet-inline-btn-danger {
    background: #b30000;
    color: #fff;
    border-color: #b30000;
}

.vimet-inline-icon {
    font-size: 18px;
    line-height: 1;
}

.vimet-inline-text {
    font-size: 14px;
    font-weight: 700;
    color: inherit;
}

.vimet-logout-form {
    margin: 0;
}

.vimet-logout-form button {
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #d40000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.portal-message-wrap {
    margin-bottom: 16px;
}

.portal-message {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.portal-message-success {
    background: #eefaf0;
    border: 1px solid #b9e3c0;
    color: #1d6b2a;
}

.portal-welcome-box {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #fff7f7;
    border: 1px solid #f1d4d4;
    color: #8b0000;
    font-size: 22px;
    font-weight: 700;
}

.catalogue-pdf-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    background: #f7f7f7;
}

.catalogue-pdf-embed {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.catalogue-pdf-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
    background: #fff;
    color: #555;
}

/* =========================
   CLEAN MAIN NAV
========================= */
.main-nav {
    background: linear-gradient(180deg, #8b0000 0%, #740000 100%);
    border-bottom: 3px solid #f0c400;
    position: relative;
    z-index: 100;
}

.nav-inner {
    width: 100%;
}

.menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    min-height: 56px;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 22px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.menu-item:hover > .menu-link,
.menu-item.active > .menu-link {
    background: #f0c400;
    color: #1f1f1f;
}

/* desktop mega menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 920px;
    background: #c91f25;
    display: none;
    z-index: 9999;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.has-mega:hover > .mega-menu {
    display: block;
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.mega-col a,
.mega-brand-link {
    display: block;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}

.mega-col a:hover,
.mega-brand-link:hover {
    background: #f0c400;
    color: #1f1f1f;
}

/* ===== MOBILE MENU SLIDE LEFT ===== */
.mobile-menu-toggle {
    display: none;
}

.mobile-nav-overlay {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: inline-flex !important;
        width: 48px !important;
        height: 48px !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: #980000 !important;
        color: #fff !important;
        font-size: 28px !important;
        line-height: 1 !important;
        cursor: pointer !important;
        margin: 12px 0 !important;
        padding: 0 !important;
        position: relative !important;
        z-index: 2101 !important;
    }

    .mobile-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.38);
        opacity: 0;
        visibility: hidden;
        transition: all 0.28s ease;
        z-index: 2098;
    }

    .mobile-nav-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    .main-nav {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 82vw !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: #980000 !important;
        z-index: 2099 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.28s ease !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-shadow: 12px 0 28px rgba(0, 0, 0, 0.22) !important;
        border-bottom: none !important;
        padding-top: 10px !important;
    }

    .main-nav.open {
        transform: translateX(0) !important;
    }

    .main-nav .nav-inner {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .main-nav .menu {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        min-height: auto !important;
        width: 100% !important;
    }

    .main-nav .menu-item {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-nav .menu-link {
        display: block !important;
        width: 100% !important;
        color: #fff !important;
        background: transparent !important;
        padding: 15px 18px !important;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.10) !important;
        box-sizing: border-box !important;
        text-align: left !important;
        font-weight: 700 !important;
        min-height: 0 !important;
    }

    .main-nav .menu-item.active > .menu-link {
        background: rgba(255,255,255,0.10) !important;
        color: #ffd54a !important;
    }

    /* mobile: tắt mega menu để đỡ lỗi */
    .main-nav .mega-menu,
    .main-nav .mega-menu-brand-table {
        display: none !important;
    }

    .main-nav .has-mega > .menu-link::after {
        content: " ▸";
        float: right;
    }
}
@media (max-width: 768px) {
    body.mobile-menu-open .mobile-menu-toggle {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}
@media (max-width: 768px) {
    .mobile-header-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px 10px;
        background: #efefef;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-decoration: none;
        flex: 1;
        min-width: 0;
    }

    .mobile-logo img {
        max-width: 130px;
        height: auto;
        display: block;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
        width: 48px !important;
        height: 48px !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: #980000 !important;
        color: #fff !important;
        font-size: 28px !important;
        line-height: 1 !important;
        cursor: pointer !important;
        padding: 0 !important;
        flex: 0 0 48px;
    }
}
@media (max-width: 768px) {
    .vimet-header-left .logo,
    .vimet-header-left .site-logo,
    .desktop-logo {
        display: none !important;
    }
}
.image-upload-row {
    width: 100%;
}

.image-upload-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.image-upload-row input[type="file"] {
    width: 100%;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    padding: 5px;
    box-sizing: border-box;
    background: #fff;
    font-size: 12px;
}

.image-remove-row {
    margin-top: 4px;
    font-size: 13px;
}

/* ================================
   NEWS PAGE - PUBLIC WEBSITE
================================ */

.news-page {
    padding: 55px 0 70px;
    background: #fff;
}

.news-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.news-page .section-title {
    text-align: center;
    margin-bottom: 28px;
}

.news-page .section-title h1,
.news-page .section-title h2 {
    color: #8b0000;
    font-size: 38px;
    line-height: 1.25;
    font-weight: 800;
    margin: 0 0 10px;
}

.news-page .section-title p {
    color: #8b0000;
    font-size: 18px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 760px;
}

/* Bộ lọc tin tức */
.news-filter {
    max-width: 760px;
    margin: 0 auto 36px;
    display: grid;
    grid-template-columns: 1fr 210px 120px;
    gap: 10px;
}

.news-filter input,
.news-filter select {
    width: 100%;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    padding: 0 13px;
    font-size: 15px;
    outline: none;
}

.news-filter input:focus,
.news-filter select:focus {
    border-color: #9b0000;
    box-shadow: 0 0 0 3px rgba(155, 0, 0, 0.08);
}

.news-filter button {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: #9b0000;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.news-filter button:hover {
    background: #ffcc00;
    color: #8b0000;
}

/* Grid bài viết */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: 0.25s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.news-card > a {
    display: block;
    overflow: hidden;
}

.news-card img,
.news-placeholder {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
}

.news-card img {
    transition: 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-placeholder {
    background: #f2f2f2;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.news-card-content {
    padding: 18px 18px 20px;
}

.news-meta {
    color: #9b0000;
    font-size: 14px;
    margin-bottom: 9px;
    font-weight: 600;
}

.news-card h2,
.news-card h3 {
    font-size: 21px;
    line-height: 1.4;
    margin: 0 0 10px;
    font-weight: 800;
}

.news-card h2 a,
.news-card h3 a {
    color: #222;
    text-decoration: none;
}

.news-card h2 a:hover,
.news-card h3 a:hover {
    color: #9b0000;
}

.news-card p {
    color: #555;
    font-size: 15px;
    line-height: 1.65;
    margin: 0 15px 15px;
}

.news-more,
.news-link {
    display: inline-block;
    color: #9b0000;
    font-weight: 800;
    text-decoration: none;
}

.news-more:hover,
.news-link:hover {
    color: #ffcc00;
}

/* Không có tin */
.news-empty {
    grid-column: 1 / -1;
    background: #fff;
    color: #9b0000;
    text-align: center;
    padding: 26px 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 17px;
}

/* Phân trang */
.pagination {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 6px;
    background: #fff;
    color: #8b0000;
    border: 1px solid #ddd;
    text-decoration: none;
    font-weight: 700;
}

.pagination a:hover {
    background: #9b0000;
    color: #fff;
    border-color: #9b0000;
}

/* ================================
   NEWS DETAIL
================================ */

.news-detail-page {
    padding: 55px 0 70px;
    background: #fff;
}

.news-detail-wrap,
.news-detail-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
}

.news-article {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.news-breadcrumb {
    color: #777;
    font-size: 14px;
    margin-bottom: 16px;
}

.news-breadcrumb a {
    color: #9b0000;
    text-decoration: none;
    font-weight: 700;
}

.news-article h1 {
    color: #8b0000;
    font-size: 38px;
    line-height: 1.3;
    margin: 0 0 12px;
    font-weight: 800;
}

.news-desc {
    color: #444;
    font-size: 18px;
    line-height: 1.7;
    margin: 18px 0 22px;
    font-weight: 500;
}

.news-cover {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 10px;
    margin: 8px 0 25px;
}

.news-content {
    color: #333;
    font-size: 17px;
    line-height: 1.85;
}

.news-content h2,
.news-content h3,
.news-content h4 {
    color: #8b0000;
    line-height: 1.35;
    margin: 30px 0 14px;
    font-weight: 800;
}

.news-content p {
    margin: 0 0 16px;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.news-content ul,
.news-content ol {
    margin: 0 0 18px 22px;
}

.news-content li {
    margin-bottom: 8px;
}

.back-news {
    display: inline-block;
    margin-top: 25px;
    color: #9b0000;
    font-weight: 800;
    text-decoration: none;
}

.back-news:hover {
    color: #ffcc00;
}

/* Sidebar chi tiết */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-side-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.news-side-card h2 {
    color: #8b0000;
    font-size: 22px;
    margin: 0 0 14px;
    font-weight: 800;
}

.related-item {
    display: block;
    padding: 13px 0;
    border-top: 1px solid #eee;
    text-decoration: none;
}

.related-item:first-of-type {
    border-top: 0;
}

.related-title {
    color: #222;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
}

.related-item:hover .related-title {
    color: #9b0000;
}

.related-date {
    color: #888;
    font-size: 13px;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-filter {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-page .section-title h1,
    .news-page .section-title h2,
    .news-article h1 {
        font-size: 32px;
    }
}

@media (max-width: 575px) {
    .news-page,
    .news-detail-page {
        padding: 38px 0 50px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-page .section-title h1,
    .news-page .section-title h2,
    .news-article h1 {
        font-size: 28px;
    }

    .news-page .section-title p {
        font-size: 16px;
    }

    .news-card img,
    .news-placeholder {
        height: 210px;
    }

    .news-article {
        padding: 22px;
    }
}
.footer-visitor-counter {
    margin-top: 14px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
}

.footer-counter-label {
    opacity: 0.9;
}

.footer-counter-number {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.footer-social-box {
    margin-top: 18px;
}

.footer-social-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social-link:hover {
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
    opacity: 0.92;
}

.footer-social-facebook {
    background: #1877f2;
}

.footer-social-zalo {
    background: #0068ff;
}

.footer-social-youtube {
    background: #ff0000;
}

.footer-social-tiktok {
    background: #111111;
}

@media (max-width: 768px) {
    .footer-visitor-counter {
        width: 100%;
        justify-content: center;
    }

    .footer-social-links {
        gap: 10px;
    }

    .footer-social-link {
        flex: 1 1 calc(50% - 10px);
    }
}
/* FIX LỆCH PHẦN TIN TỨC TRANG CHỦ */

.news-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Khi chỉ có 1 tin: căn giữa card */
.news-grid:has(.news-card:only-child) {
    grid-template-columns: minmax(280px, 388px);
    justify-content: center;
}

/* Khi chỉ có 2 tin: căn giữa 2 card */
.news-grid:has(.news-card:first-child:nth-last-child(2)) {
    grid-template-columns: repeat(2, minmax(280px, 388px));
    justify-content: center;
}

/* Card phải full theo cột */
.news-card {
    width: 100%;
}


.news-image {
    width: 100%;
    height: 225px;
    object-fit: cover;
}

/* Nút xem tất cả căn giữa theo card */
.view-all-news {
    
    margin: 18px auto 0;
    padding: 0 15px;
    text-align: left;
}

/* Mobile */
@media (max-width: 576px) {
    .news-grid {
        padding: 0 15px;
    }

    .news-grid:has(.news-card:only-child),
    .news-grid:has(.news-card:first-child:nth-last-child(2)) {
        grid-template-columns: 1fr;
    }

    .view-all-news {
        max-width: 100%;
        text-align: center;
    }

    .news-image {
        height: auto;
        aspect-ratio: 16 / 10;
    }
}
/* FIX NÚT XEM TẤT CẢ TIN TỨC BỊ LỆCH */

.view-all-news {
    
    margin: 18px auto 0 !important;
    padding: 0 !important;
    text-align: right !important;
}

.view-all-news a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 700;
}

/* Nếu muốn nút nằm chính giữa luôn thì dùng đoạn này thay cho text-align:left */
.view-all-news.center {
    text-align: center !important;
}

.cart-product-description {
    min-width: 420px;
    max-width: 520px;
    vertical-align: top;
    color: #8d4a4a;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

.cart-product-description strong {
    display: block;
    margin-bottom: 8px;
    color: #7d1d1d;
    font-size: 16px;
    font-weight: 700;
}

.cart-desc-text {
    line-height: 1.65;
    white-space: normal;
}
.product-spec-box {
    color: #4b4b4b;
    font-size: 16px;
    line-height: 1.75;
    word-break: break-word;
}

.product-spec-box p {
    margin: 0 0 12px;
}

.product-spec-box br {
    line-height: 1.8;
}

.product-spec-box ul,
.product-spec-box ol {
    margin: 10px 0 10px 22px;
    padding: 0;
}

.product-spec-box li {
    margin-bottom: 6px;
}

.product-spec-box strong,
.product-spec-box b {
    color: #7b1113;
    font-weight: 800;
}
/* =========================
   PREMIUM CHECKOUT REDESIGN
========================= */

.pro-checkout-page {
    background:
        radial-gradient(circle at top left, rgba(176, 0, 0, 0.08), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f6f7f9 42%, #f3f4f6 100%);
    padding: 42px 0 80px;
}

.pro-checkout-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 18px;
}

.pro-checkout-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: end;
    margin-bottom: 30px;
}

.pro-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: #8a8f98;
    font-size: 14px;
}

.pro-breadcrumb a {
    color: #9a0000;
    font-weight: 700;
    text-decoration: none;
}

.pro-checkout-hero h1 {
    margin: 0;
    color: #141414;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1.2px;
}

.pro-checkout-hero p {
    max-width: 690px;
    margin: 14px 0 0;
    color: #656b76;
    font-size: 16px;
    line-height: 1.7;
}

.pro-hotline-box {
    background: #141414;
    color: #fff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 20px 50px rgba(20, 20, 20, 0.18);
}

.pro-hotline-box span {
    display: block;
    color: #c9cbd1;
    font-size: 13px;
    margin-bottom: 6px;
}

.pro-hotline-box strong {
    display: block;
    font-size: 25px;
    line-height: 1.1;
    color: #fff;
}

.pro-hotline-box small {
    display: block;
    margin-top: 9px;
    color: #aeb3bc;
    font-size: 13px;
    line-height: 1.45;
}

.pro-checkout-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
    align-items: start;
}

.pro-form-panel,
.pro-order-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #eceef2;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.pro-form-panel {
    padding: 34px;
}

.pro-order-card {
    padding: 26px;
    position: sticky;
    top: 20px;
}

.pro-panel-head,
.pro-order-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid #edf0f4;
}

.pro-eyebrow {
    display: inline-block;
    color: #a00000;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 8px;
}

.pro-panel-head h2,
.pro-order-head h3 {
    margin: 0;
    color: #161616;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.pro-step-badge,
.pro-order-head > span {
    flex: 0 0 auto;
    background: #fff1f1;
    color: #a00000;
    border: 1px solid #ffd6d6;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 850;
}

.pro-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 19px;
}

.pro-field {
    min-width: 0;
}

.pro-field-full {
    grid-column: 1 / -1;
}

.pro-field label {
    display: block;
    margin-bottom: 8px;
    color: #252a31;
    font-size: 14px;
    font-weight: 800;
}

.pro-field label b {
    color: #b00000;
}

.pro-field input,
.pro-field select,
.pro-field textarea {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    background: #fafafa;
    border: 1px solid #dfe3ea;
    border-radius: 15px;
    color: #151515;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: 0.18s ease;
}

.pro-field textarea {
    min-height: 126px;
    padding-top: 14px;
    padding-bottom: 14px;
    line-height: 1.6;
    resize: vertical;
}

.pro-field input:hover,
.pro-field select:hover,
.pro-field textarea:hover {
    background: #fff;
    border-color: #c9ced8;
}

.pro-field input:focus,
.pro-field select:focus,
.pro-field textarea:focus {
    background: #fff;
    border-color: #9a0000;
    box-shadow: 0 0 0 5px rgba(154, 0, 0, 0.08);
}

.pro-error {
    display: block;
    margin-top: 7px;
    color: #b00000;
    font-size: 13px;
}

.pro-alert-error {
    background: #fff2f2;
    border: 1px solid #ffd1d1;
    color: #a00000;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.pro-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #edf0f4;
}

.pro-btn-secondary,
.pro-btn-primary {
    height: 54px;
    padding: 0 24px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: 0.18s ease;
}

.pro-btn-secondary {
    background: #f1f3f6;
    color: #303640;
}

.pro-btn-secondary:hover {
    background: #e5e8ee;
    color: #111827;
}

.pro-btn-primary {
    min-width: 210px;
    background: #a00000;
    color: #fff;
    box-shadow: 0 16px 30px rgba(160, 0, 0, 0.23);
}

.pro-btn-primary:hover {
    background: #850000;
    transform: translateY(-1px);
}

.pro-order-list {
    max-height: 490px;
    overflow: auto;
    padding-right: 5px;
}

.pro-order-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 15px;
    padding: 17px 0;
    border-bottom: 1px solid #edf0f4;
}

.pro-order-item:first-child {
    padding-top: 0;
}

.pro-order-img {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #edf0f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pro-order-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pro-order-img em {
    color: #9aa1ad;
    font-style: normal;
    font-weight: 900;
}

.pro-order-info {
    min-width: 0;
}

.pro-order-info h4 {
    margin: 0 0 8px;
    color: #151515;
    font-size: 15.5px;
    line-height: 1.35;
    font-weight: 900;
}

.pro-order-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #737b88;
    font-size: 13px;
    margin-bottom: 11px;
}

.pro-order-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #737b88;
    font-size: 13px;
}

.pro-order-line strong {
    color: #a00000;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.pro-price-box {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #edf0f4;
    border-radius: 22px;
}

.pro-price-box > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: #5f6875;
    font-size: 14px;
}

.pro-price-box > div + div {
    margin-top: 12px;
}

.pro-price-box strong {
    color: #151515;
    font-weight: 900;
    text-align: right;
}

.pro-price-box .pro-grand-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #cfd5df;
    align-items: flex-end;
}

.pro-grand-total span {
    color: #151515;
    font-size: 16px;
    font-weight: 900;
}

.pro-grand-total strong {
    color: #a00000;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.pro-order-note {
    margin-top: 16px;
    padding: 14px 16px;
    background: #fff8ea;
    border: 1px solid #ffdf9a;
    border-radius: 18px;
    color: #725000;
    font-size: 13.5px;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .pro-checkout-hero,
    .pro-checkout-shell {
        grid-template-columns: 1fr;
    }

    .pro-order-card {
        position: static;
    }

    .pro-order-list {
        max-height: none;
    }
}

@media (max-width: 760px) {
    .pro-checkout-page {
        padding: 24px 0 54px;
    }

    .pro-checkout-hero h1 {
        font-size: 31px;
    }

    .pro-form-panel,
    .pro-order-card {
        padding: 20px;
        border-radius: 22px;
    }

    .pro-panel-head,
    .pro-order-head,
    .pro-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .pro-form-grid {
        grid-template-columns: 1fr;
    }

    .pro-btn-secondary,
    .pro-btn-primary {
        width: 100%;
    }

    .pro-order-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .pro-grand-total {
        flex-direction: column;
        align-items: flex-start !important;
    }
}
/* =========================================================
   VIMET - EXPORT PDF CUSTOMER INFO PAGE
   Clean professional redesign
========================================================= */

.quote-pdf-page {
    min-height: 100vh;
    padding: 42px 0 78px;
    background:
        radial-gradient(circle at 12% 0%, rgba(160, 0, 0, 0.08), transparent 28%),
        radial-gradient(circle at 88% 10%, rgba(17, 24, 39, 0.04), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f7f8fa 48%, #f3f4f6 100%);
}

.quote-pdf-container {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.quote-pdf-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 26px;
    align-items: end;
    margin-bottom: 30px;
}

.quote-pdf-heading {
    min-width: 0;
}

.quote-pdf-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: #8a919e;
    font-size: 14px;
}

.quote-pdf-breadcrumb a {
    color: #9d0000;
    font-weight: 750;
    text-decoration: none;
}

.quote-pdf-breadcrumb a:hover {
    text-decoration: underline;
}

.quote-pdf-heading h1 {
    margin: 0;
    color: #151515;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1px;
}

.quote-pdf-heading p {
    max-width: 720px;
    margin: 13px 0 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.7;
}

.quote-pdf-hotline {
    background: #151515;
    color: #ffffff;
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 22px 52px rgba(17, 24, 39, 0.18);
}

.quote-pdf-hotline span {
    display: block;
    color: #d0d5dd;
    font-size: 13px;
    margin-bottom: 6px;
}

.quote-pdf-hotline strong {
    display: block;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 900;
}

.quote-pdf-hotline small {
    display: block;
    margin-top: 9px;
    color: #aeb4bf;
    font-size: 13px;
    line-height: 1.5;
}

.quote-pdf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 28px;
    align-items: start;
}

.quote-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #e8ecf2;
    border-radius: 28px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
}

.quote-form-card {
    padding: 34px;
}

.quote-summary-card {
    padding: 26px;
    position: sticky;
    top: 20px;
}

.quote-card-title,
.quote-summary-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 24px;
    margin-bottom: 26px;
    border-bottom: 1px solid #edf1f5;
}

.quote-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #a00000;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.quote-card-title h2,
.quote-summary-title h3 {
    margin: 0;
    color: #171717;
    font-size: 26px;
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.quote-card-title p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.65;
}

.quote-step {
    min-width: 112px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #fff4f4;
    border: 1px solid #ffd7d7;
    color: #a00000;
    text-align: right;
}

.quote-step strong {
    display: block;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}

.quote-step span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 750;
}

.quote-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 19px;
}

.quote-field {
    min-width: 0;
}

.quote-field-full {
    grid-column: 1 / -1;
}

.quote-field label {
    display: block;
    margin-bottom: 8px;
    color: #2b3037;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 850;
}

.quote-field input,
.quote-field select,
.quote-field textarea {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #dde3ea;
    border-radius: 16px;
    background: #fafbfc;
    color: #111827;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.quote-field textarea {
    min-height: 122px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
}

.quote-field input:hover,
.quote-field select:hover,
.quote-field textarea:hover {
    background: #ffffff;
    border-color: #cfd6df;
}

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
    background: #ffffff;
    border-color: #9d0000;
    box-shadow: 0 0 0 4px rgba(157, 0, 0, 0.08);
}

.quote-field input::placeholder,
.quote-field textarea::placeholder {
    color: #a0a7b3;
}

.quote-error {
    margin-top: 6px;
    color: #c00000;
    font-size: 13px;
    line-height: 1.4;
}

.quote-info-box {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-top: 24px;
    padding: 15px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e8ecf2;
    color: #5f6875;
}

.quote-info-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #a00000;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    flex: 0 0 26px;
}

.quote-info-box strong {
    display: block;
    margin-bottom: 2px;
    color: #1f2937;
    font-size: 14px;
}

.quote-info-box p {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
}

.quote-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #edf1f5;
}

.quote-btn {
    min-height: 54px;
    padding: 0 24px;
    border-radius: 16px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.quote-btn-secondary {
    background: #f3f4f6;
    color: #303846;
}

.quote-btn-secondary:hover {
    background: #e7ebf0;
    color: #111827;
}

.quote-btn-primary {
    min-width: 210px;
    background: #a40000;
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(164, 0, 0, 0.22);
}

.quote-btn-primary:hover {
    background: #890000;
    color: #ffffff;
    transform: translateY(-1px);
}

.quote-count {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #667085;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 850;
}

.quote-product-list {
    max-height: 480px;
    overflow: auto;
    padding-right: 4px;
}

.quote-product-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    padding: 17px 0;
    border-bottom: 1px solid #edf1f5;
}

.quote-product-item:first-child {
    padding-top: 0;
}

.quote-product-image {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #edf1f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.quote-product-image span {
    color: #98a2b3;
    font-size: 13px;
    font-weight: 900;
}

.quote-product-info {
    min-width: 0;
}

.quote-product-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.quote-product-top h4 {
    margin: 0;
    color: #161616;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 850;
}

.quote-product-price {
    color: #a40000;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 900;
    white-space: nowrap;
    text-align: right;
}

.quote-product-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #7b8593;
    font-size: 13px;
    line-height: 1.5;
}

.quote-empty {
    padding: 18px;
    text-align: center;
    color: #667085;
    background: #f8fafc;
    border-radius: 16px;
    font-size: 14px;
}

.quote-total-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid #edf1f5;
}

.quote-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: #677180;
    font-size: 14px;
    line-height: 1.4;
}

.quote-total-row + .quote-total-row {
    margin-top: 12px;
}

.quote-total-row strong {
    color: #111827;
    font-weight: 900;
    text-align: right;
}

.quote-total-final {
    margin-top: 16px !important;
    padding-top: 16px;
    border-top: 1px dashed #cfd5df;
}

.quote-total-final span {
    color: #1f2937;
    font-size: 16px;
    font-weight: 900;
}

.quote-total-final strong {
    color: #a40000;
    font-size: 25px;
    line-height: 1.12;
    letter-spacing: -0.5px;
}

.quote-contact-note {
    margin-top: 16px;
    padding: 14px 15px;
    border-radius: 18px;
    background: #fff8ea;
    border: 1px solid #ffe1a3;
    color: #7a5800;
    font-size: 13.5px;
    line-height: 1.6;
}

.quote-contact-note strong {
    color: #5f4200;
}

@media (max-width: 1100px) {
    .quote-pdf-header,
    .quote-pdf-layout {
        grid-template-columns: 1fr;
    }

    .quote-pdf-hotline {
        width: 100%;
    }

    .quote-summary-card {
        position: static;
    }

    .quote-product-list {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .quote-pdf-page {
        padding: 26px 0 54px;
    }

    .quote-pdf-container {
        width: min(100% - 24px, 1240px);
    }

    .quote-pdf-heading h1 {
        font-size: 31px;
    }

    .quote-pdf-heading p {
        font-size: 15px;
    }

    .quote-form-card,
    .quote-summary-card {
        padding: 20px;
        border-radius: 22px;
    }

    .quote-card-title,
    .quote-summary-title,
    .quote-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .quote-step {
        text-align: left;
    }

    .quote-form-grid {
        grid-template-columns: 1fr;
    }

    .quote-btn {
        width: 100%;
    }

    .quote-product-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .quote-product-price {
        text-align: left;
        white-space: normal;
    }

    .quote-total-final {
        align-items: flex-start;
        flex-direction: column;
    }

    .quote-total-final strong {
        text-align: left;
        font-size: 23px;
    }
}

.product-spec-content {
    white-space: normal;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.85;
}

.product-spec-content br {
    display: block;
    content: "";
    margin-bottom: 6px;
}

.product-spec-content p {
    margin: 0 0 10px;
}


.product-spec-content {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.85;
}

.product-spec-content p {
    margin: 0 0 12px;
}

.product-spec-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 18px auto;
    border-radius: 12px;
}

/* Ảnh trong phần thông số kỹ thuật / mô tả sản phẩm */
.product-spec-content img,
.product-spec-box img,
.product-content-body img {
    max-width: 100%;
    width: auto !important;
    height: auto !important;
    max-height: 520px;
    display: block;
    margin: 18px auto;
    object-fit: contain;
    border-radius: 12px;
}

/* Chặn ảnh float left/right do CKEditor tự thêm */
.product-spec-content img,
.product-spec-box img,
.product-content-body img {
    float: none !important;
    clear: both;
}

/* Không cho nội dung mô tả tràn ra ngoài card */
.product-spec-content,
.product-spec-box,
.product-content-body {
    overflow: hidden;
}

/* Nếu ảnh quá rộng thì vẫn nằm gọn trong khung */
.product-content-card {
    overflow: hidden;
}

.product-spec-content {
    line-height: 1.8;
    font-size: 15px;
    color: #444;
}

.spec-formatted-content {
    white-space: pre-line;
}

.spec-formatted-content p {
    margin-bottom: 10px;
}

.spec-formatted-content ul,
.spec-formatted-content ol {
    padding-left: 22px;
    margin: 10px 0;
}

.spec-formatted-content li {
    margin-bottom: 6px;
}

.spec-formatted-content strong {
    color: #8b0000;
    font-weight: 700;
}

.product-spec-box {
    max-height: none;
    overflow: visible;
    word-break: break-word;
}