:root {
    --green: #1a7a3c;
    --green-dark: #115a2b;
    --green-light: #22a050;
    --green-ultra: #27ae60;
    --red: #c0392b;
    --gold: #f39c12;
    --dark: #0d1b2a;
    --dark-2: #1a2b3c;
    --dark-3: #243447;
    --gray-light: #f5f7fa;
    --gray-mid: #e4e8ee;
    --text-dark: #1a2535;
    --text-mid: #4a5568;
    --text-light: #7a8899;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --radius: 12px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background: #fff;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* TOPBAR */
.topbar {
    background: var(--green-dark);
    color: #b8f0cc;
    font-size: 12.5px;
    padding: 7px 0;
}

.topbar a {
    color: #b8f0cc;
    text-decoration: none;
}

.topbar a:hover {
    color: white;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e2ebe5;
    box-shadow: 0 4px 24px rgb(20 65 35 / 6%);
}

.navbar .nav-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 74px;
}

.navbar .nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    text-decoration: none;
}

.navbar .nav-logo img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.navbar .nav-logo-name {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: .4px;
    color: var(--green-dark);
}

.navbar .nav-logo-slogan {
    margin-top: 4px;
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #64756a;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar .nav-links>li {
    margin: 0;
    padding: 0;
}

.navbar .nav-links>li>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #37483e;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s;
}

.navbar .nav-links>li>a:hover,
.navbar .nav-links>li>a.active {
    background: #edf7f0;
    color: var(--green-dark);
}

.navbar a:focus-visible,
.navbar button:focus-visible {
    outline: 3px solid #58a974;
    outline-offset: 3px;
}

.navbar .nav-links a.btn-nav-cart {
    margin-left: 6px;
    background: #edf7f0;
    border-color: #d6e9dc;
    color: var(--green-dark);
    font-weight: 700;
}

.navbar .nav-links a.btn-nav-cart:hover,
.navbar .nav-links a.btn-nav-cart.active {
    background: #deefe3;
    border-color: #b7d9c2;
}

.navbar .nav-links svg {
    flex-shrink: 0;
}

.navbar .cart-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dbe7df;
    color: #42584a;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    transform: none;
}

.navbar .cart-badge-has {
    background: var(--green);
    color: #fff;
}

.navbar .nav-links a.btn-nav-login {
    margin-left: 6px;
    border-color: #dce5df;
}

.navbar .nav-links a.btn-nav-login:hover,
.navbar .nav-links a.btn-nav-login.active {
    border-color: var(--green);
    background: #edf7f0;
}

.navbar .nav-links a.btn-nav-register,
.navbar .nav-links a.btn-nav-admin {
    padding-inline: 14px;
    background: var(--green);
    color: #fff;
    font-weight: 700;
}

.navbar .nav-links a.btn-nav-register:hover,
.navbar .nav-links a.btn-nav-register.active,
.navbar .nav-links a.btn-nav-admin:hover {
    background: var(--green-dark);
    color: #fff;
}

.navbar .nav-links a.nav-auth-link {
    background: #f3f6f4;
}

.navbar .nav-user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e4eee7;
    font-size: 14px;
}

.navbar .nav-mobile-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #dce7df;
    border-radius: 12px;
    background: #f4f9f5;
    cursor: pointer;
}

.navbar .nav-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--green-dark);
    transition: transform .2s, opacity .2s;
}

.navbar .nav-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar .nav-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.navbar .nav-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1199px) {
    .navbar .nav-inner {
        min-height: 74px;
        padding: 10px 20px;
    }

    .navbar .nav-mobile-toggle {
        display: flex;
    }

    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        max-height: calc(100vh - 160px);
        max-height: calc(100dvh - 160px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 12px;
        background: #fff;
        border: 1px solid #e2ebe5;
        border-radius: 16px;
        box-shadow: 0 16px 40px rgb(20 65 35 / 14%);
    }

    .navbar .nav-links.is-open {
        display: flex;
    }

    .navbar .nav-links>li {
        width: 100%;
    }

    .navbar .nav-links>li>a {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        min-height: 46px;
        margin: 0;
        padding: 12px 14px;
        font-size: 14px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .navbar .nav-links a.btn-nav-cart {
        margin: 6px 0 0;
    }

    .navbar .cart-badge {
        margin-left: auto;
        flex-shrink: 0;
    }

    .navbar .nav-links a.btn-nav-login {
        margin: 0;
    }

    .navbar .nav-links a.btn-nav-register,
    .navbar .nav-links a.btn-nav-admin {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar .nav-inner {
        min-height: 70px;
        padding: 10px 14px;
        gap: 10px;
    }

    .navbar .nav-logo {
        min-width: 0;
        flex-shrink: 1;
        gap: 8px;
    }

    .navbar .nav-logo img {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }

    .navbar .nav-logo-name {
        font-size: 14px;
    }

    .navbar .nav-logo-slogan {
        max-width: 175px;
        font-size: 8px;
        letter-spacing: 0;
    }

    .navbar .nav-links {
        left: 10px;
        right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .navbar .nav-links>li>a,
    .navbar .nav-mobile-toggle span {
        transition: none;
    }
}


/* HERO */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 45%, var(--dark-3) 100%);
    position: relative;
    overflow: hidden;
    padding: 90px 24px 80px;
    min-height: 540px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 122, 60, 0.22) 0%, transparent 70%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.10) 0%, transparent 70%);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #4ade80;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 22px;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 1.6s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: 0.4;
        transform: scale(1.4)
    }
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: white;
    line-height: 1.08;
    margin-bottom: 22px;
}

.hero h1 .accent {
    color: #4ade80;
}

.hero-desc {
    color: #8aa0b8;
    font-size: 15.5px;
    line-height: 1.75;
    margin-bottom: 36px;
}

.hero-desc strong {
    color: #c8dce8;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--green-light), var(--green-dark));
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 8px 28px rgba(26, 122, 60, 0.45);
    transition: all 0.3s;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(26, 122, 60, 0.55);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: all 0.3s;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-stats {
    display: flex;
    gap: 36px;
}

.stat-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: white;
}

.stat-num em {
    color: #4ade80;
    font-style: normal;
}

.stat-lbl {
    font-size: 12px;
    color: #5a7090;
    margin-top: 3px;
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.hero-logo-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    backdrop-filter: blur(12px);
}

.hero-logo-box img {
    width: 200px;
    filter: drop-shadow(0 10px 40px rgba(74, 222, 128, 0.3));
}

.hero-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #a0b8cc;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 20px;
}

/* SECTION */
.section {
    padding: 88px 24px;
}

.section-alt {
    background: var(--gray-light);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-hd {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(26, 122, 60, 0.09);
    color: var(--green);
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    border: 1px solid rgba(26, 122, 60, 0.18);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 13px;
}

.section-title .green {
    color: var(--green);
}

.section-sub {
    color: var(--text-light);
    font-size: 15.5px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

.divider {
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--green), #4ade80);
    border-radius: 2px;
    margin: 20px auto 0;
}

/* CATEGORIES */
.cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cat-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}

.cat-card:hover {
    transform: translateY(-7px);
    border-color: var(--green);
    box-shadow: 0 18px 50px rgba(26, 122, 60, 0.14);
}

.cat-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, rgba(26, 122, 60, 0.08), rgba(26, 122, 60, 0.14));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    transition: all 0.3s;
}

.cat-card:hover .cat-icon {
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
}

.cat-name {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.cat-count {
    font-size: 12px;
    color: var(--text-light);
}

/* PRODUCTS */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--gray-mid);
}

.product-card:hover {
    transform: translateY(-9px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 122, 60, 0.22);
}

.product-img-area {
    height: 196px;
    background: linear-gradient(135deg, #f0f4f8, #e4eaf0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    position: relative;
}

.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-hot {
    background: #e74c3c;
    color: white;
}

.badge-new {
    background: var(--green);
    color: white;
}

.badge-pop {
    background: var(--gold);
    color: #1a2535;
}

.product-body {
    padding: 20px;
}

.product-cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 7px;
}

.product-name {
    font-weight: 700;
    font-size: 15.5px;
    color: var(--text-dark);
    margin-bottom: 9px;
    line-height: 1.4;
}

.product-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--gray-mid);
}

.product-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 17px;
    color: var(--green-dark);
}

.btn-order {
    background: var(--green);
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.22s;
    text-decoration: none;
    font-family: inherit;
}

.btn-order:hover {
    background: var(--green-dark);
    transform: scale(1.05);
}

/* OIL SECTION */
.oil-section {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2b3c 100%);
}

.oil-section .section-title {
    color: white;
}

.oil-section .section-sub {
    color: #6a8090;
}

.oil-section .section-tag {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.25);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 44px;
}

.brand-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s;
}

.brand-card:hover {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.35);
    transform: translateY(-5px);
}

.brand-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: white;
    letter-spacing: 0.5px;
}

.brand-nm {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.brand-org {
    font-size: 11px;
    color: #5a7080;
}

.oil-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.oil-type {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s;
}

.oil-type:hover {
    background: rgba(74, 222, 128, 0.07);
    border-color: rgba(74, 222, 128, 0.28);
}

.oil-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.oil-nm {
    font-weight: 700;
    font-size: 13.5px;
    color: white;
    margin-bottom: 3px;
}

.oil-desc {
    font-size: 12px;
    color: #5a7080;
    line-height: 1.5;
}

/* WHY */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    text-align: center;
    padding: 34px 22px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1.5px solid transparent;
}

.why-card:hover {
    border-color: var(--green);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 74px;
    height: 74px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(26, 122, 60, 0.28);
}

.why-title {
    font-weight: 700;
    font-size: 15.5px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.why-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.65;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: white;
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    box-shadow: 0 20px 60px rgba(26, 122, 60, 0.32);
}

.contact-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.3;
}

.contact-info>p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 32px;
}

.c-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.c-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.c-label {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.58);
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.c-val {
    font-weight: 600;
    font-size: 14.5px;
}

.c-val a {
    color: white;
    text-decoration: none;
}

.c-val a:hover {
    text-decoration: underline;
}

.bank-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 22px;
}

.bank-label {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.58);
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.bank-acc {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 2.5px;
}

.bank-name {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
}

.contact-form {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-mid);
}

.contact-form h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.fg {
    margin-bottom: 17px;
}

.fg label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 7px;
}

.fg input,
.fg textarea,
.fg select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-mid);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--gray-light);
    outline: none;
    transition: all 0.22s;
}

.fg input:focus,
.fg textarea:focus,
.fg select:focus {
    border-color: var(--green);
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 122, 60, 0.09);
}

.fg textarea {
    resize: vertical;
    min-height: 108px;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--green-light), var(--green-dark));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all 0.3s;
    box-shadow: 0 6px 24px rgba(26, 122, 60, 0.28);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(26, 122, 60, 0.42);
}

/* FOOTER */
.footer {
    background: #0d1b2a;
    color: white;
    padding: 64px 24px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 13px;
    color: #4a6070;
    line-height: 1.75;
    margin-bottom: 20px;
}

.footer-phones {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.f-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #4ade80;
    text-decoration: none;
}

.f-phone:hover {
    color: white;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: white;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--green-dark);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 9px;
}

.footer-col ul li a {
    color: #4a6070;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a:hover {
    color: #4ade80;
    padding-left: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p,
.footer-tax {
    font-size: 12px;
    color: #2a3a4a;
}

/* FLOATING */
.float-btns {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
    text-decoration: none;
    transition: all 0.28s;
}

.float-btn:hover {
    transform: scale(1.14) translateY(-2px);
}

.f-phone-btn {
    background: linear-gradient(135deg, #27ae60, #145a32);
}

.f-zalo-btn {
    background: linear-gradient(135deg, #0068ff, #0040cc);
}

.f-chat-btn {
    background: linear-gradient(135deg, #f39c12, #d68910);
}

.float-label {
    position: absolute;
    right: 62px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.float-btn:hover .float-label {
    opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-right {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .oil-types {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 26px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 48px 16px;
    }

    .section {
        padding: 56px 16px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.page-alert {
    padding: 16px;
    margin: 20px auto;
    max-width: 1152px;
    border-radius: 8px;
    background: #edf7ee
}

.page-alert.error {
    background: #fff0ec;
    color: #963d20
}

.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px
}

.filter-bar input,
.filter-bar select {
    padding: 12px;
    border: 1px solid #ccd5d0;
    border-radius: 8px;
    font: inherit
}

.filter-bar input {
    flex: 1;
    min-width: 180px
}

.pagination {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 32px 0
}

.empty-state {
    padding: 32px;
    border: 1px dashed #c5d7cb;
    border-radius: 12px;
    text-align: center
}

.product-img-area img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

/* HERO ORDER BTN */
.btn-hero-order {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white !important;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.4);
    transition: all 0.3s;
}

.btn-hero-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(217, 119, 6, 0.55);
}

/* FLOATING HERO BADGES */
.hero-card-banner {
    position: relative;
    text-align: center;
}

.hero-main-img {
    max-width: 320px;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.35));
}

.hero-badges-floating {
    position: relative;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    text-align: left;
    max-width: 280px;
    margin: 0 auto;
}

.floating-item .icon {
    font-size: 22px;
}

.floating-item strong {
    display: block;
    font-size: 13.5px;
    color: #1e293b;
}

.floating-item small {
    color: #64748b;
    font-size: 11.5px;
}

/* CATEGORIES GRID HOME */
.categories-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.category-card-home {
    background: white;
    border: 1px solid var(--gray-mid);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.25s;
}

.category-card-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--green);
}

.category-icon-box {
    font-size: 28px;
    width: 52px;
    height: 52px;
    background: #f0fdf4;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-info-home h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.category-info-home span {
    font-size: 12.5px;
    color: var(--text-light);
}

/* OIL HIGHLIGHT SECTION */
.oil-banner-box {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 20px;
    padding: 48px 40px;
    color: white;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.text-amber {
    color: #fbbf24;
}

.text-gray-300 {
    color: #cbd5e1;
}

.text-white {
    color: #ffffff;
}

.oil-brands-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 22px 0;
}

.oil-brand-tag {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
}

.oil-cta-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-oil-primary {
    background: #f59e0b;
    color: #1e293b;
    font-weight: 800;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-oil-primary:hover {
    background: #d97706;
    color: white;
}

.btn-oil-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
}

.oil-sample-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.oil-sample-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    transition: transform 0.2s;
}

.oil-sample-card:hover {
    transform: translateY(-3px);
}

.oil-sample-card img {
    height: 90px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.oil-sample-info h5 a {
    color: white;
    font-size: 12.5px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.oil-price-tag {
    font-size: 13px;
    font-weight: 700;
    color: #fbbf24;
    margin: 6px 0;
}

.btn-quick-add {
    background: #22c55e;
    color: white;
    border: none;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
}

.btn-quick-add:hover {
    background: #16a34a;
}

/* FEATURES GRID */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: white;
    border: 1px solid var(--gray-mid);
    border-radius: 14px;
    padding: 26px 20px;
    text-align: center;
    transition: all 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ORDER CTA BANNER */
.order-cta-banner {
    padding-top: 10px;
}

.cta-inner-box {
    background: linear-gradient(135deg, var(--green-dark), #0d4420);
    border-radius: 18px;
    padding: 38px 40px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.cta-text h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.cta-text p {
    color: #bbf7d0;
    max-width: 600px;
    font-size: 14.5px;
}

.cta-action {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-cta-white {
    background: white;
    color: var(--green-dark);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.btn-cta-outline {
    border: 2px solid white;
    color: white;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

/* PRODUCT CARD ENHANCEMENTS */
.product-card {
    background: white;
    border: 1px solid var(--gray-mid);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--green-light);
}

.product-img-area {
    position: relative;
    height: 190px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.product-sku-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.75);
    color: white;
    font-size: 11px;
    font-family: monospace;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-cat {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.product-name {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.product-name a {
    color: var(--text-dark);
    text-decoration: none;
}

.product-name a:hover {
    color: var(--green);
}

.product-desc {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.product-pricing {
    display: flex;
    flex-direction: column;
}

.product-price {
    font-size: 16px;
    font-weight: 800;
    color: #dc2626;
}

.product-unit {
    font-size: 12px;
    color: var(--text-light);
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-cart {
    background: #f0fdf4;
    color: var(--green);
    border: 1px solid #bbf7d0;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-add-cart:hover {
    background: var(--green);
    color: white;
}

.btn-detail-link {
    font-size: 12.5px;
    color: var(--text-mid);
    text-decoration: none;
    padding: 7px 10px;
}

.btn-detail-link:hover {
    color: var(--green);
    text-decoration: underline;
}

/* PRODUCT DETAIL PAGE */
.product-detail-page {
    padding: 30px 0 60px;
    background: #fafafa;
}

.breadcrumb {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #1e293b;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--green);
}

.product-detail-wrapper {
    background: white;
    border-radius: 16px;
    padding: 36px;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
    border: 1px solid var(--gray-mid);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.main-image-container {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    position: relative;
    text-align: center;
}

.main-image-container img {
    max-height: 360px;
    width: 100%;
    object-fit: contain;
}

.detail-category-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--green);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.detail-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-mid);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-separator {
    color: #cbd5e1;
}

.text-green {
    color: #16a34a !important;
    font-weight: 600;
}

.detail-price-box {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-left: 4px solid #dc2626;
}

.detail-price {
    font-size: 28px;
    font-weight: 900;
    color: #dc2626;
}

.detail-unit-note {
    font-size: 13px;
    color: var(--text-mid);
    margin-top: 4px;
}

.quantity-control-group {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.qty-input-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
}

.qty-input-wrap button {
    background: #f1f5f9;
    color: #334155;
    border: none;
    width: 38px;
    height: 38px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.qty-input-wrap input {
    width: 54px;
    height: 38px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}

.unit-indicator {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-mid);
}

.detail-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.btn-detail-add-cart {
    background: var(--green);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
    transition: all 0.25s;
}

.btn-detail-add-cart:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.btn-detail-call {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-detail-call:hover {
    background: #e2e8f0;
}

.detail-perks {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.perk-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
}

.perk-icon {
    font-size: 18px;
}

.detail-description-card,
.related-products-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--gray-mid);
    margin-bottom: 30px;
}

.detail-description-card h2,
.related-products-card h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* CART PAGE */
.cart-page,
.checkout-page,
.order-success-page {
    padding: 40px 0 70px;
    background: #f8fafc;
}

.page-title-area {
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.page-subtitle {
    color: var(--text-mid);
    font-size: 14.5px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: flex-start;
}

.cart-items-box {
    background: white;
    border: 1px solid var(--gray-mid);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.cart-table th {
    background: #f8fafc;
    font-size: 12.5px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.cart-prod-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-thumb {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.cart-item-name {
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
}

.cart-item-name:hover {
    color: var(--green);
}

.cart-price {
    font-weight: 600;
    color: #475569;
}

.cart-subtotal {
    font-weight: 800;
    color: #dc2626;
    font-size: 15px;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}

.qty-stepper button {
    background: #f1f5f9;
    border: none;
    width: 30px;
    height: 32px;
    font-weight: bold;
    cursor: pointer;
}

.qty-stepper input {
    width: 44px;
    height: 32px;
    border: none;
    text-align: center;
    font-weight: 700;
}

.btn-remove-item {
    background: none;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
}

.btn-remove-item:hover {
    color: #dc2626;
}

.cart-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edf2f7;
}

.btn-update-cart {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.btn-continue-shopping {
    color: var(--green);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.cart-summary-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-card {
    background: white;
    border: 1px solid var(--gray-mid);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.summary-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 14px 0;
}

.total-row {
    font-size: 16px;
    font-weight: 800;
}

.total-amount {
    font-size: 22px;
    color: #dc2626;
    font-weight: 900;
}

.summary-note {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
    margin-top: 12px;
    line-height: 1.5;
}

.btn-checkout-now {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15.5px;
    text-decoration: none;
    margin-top: 20px;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
    transition: all 0.25s;
}

.btn-checkout-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.5);
}

.btn-clear-cart {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 12.5px;
    cursor: pointer;
    text-decoration: underline;
}

.support-hotline-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 20px;
}

.support-hotline-card h4 {
    font-size: 14px;
    color: var(--green-dark);
    margin-bottom: 6px;
}

.support-hotline-card p {
    font-size: 12.5px;
    color: #475569;
    margin-bottom: 10px;
}

.hotline-link {
    display: block;
    font-weight: 800;
    color: var(--green);
    font-size: 15px;
    text-decoration: none;
    margin-bottom: 4px;
}

.empty-cart-view {
    background: white;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.empty-cart-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.empty-cart-view h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.empty-cart-view p {
    color: var(--text-mid);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.empty-cart-btns {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* CHECKOUT PAGE */
.checkout-form-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
    align-items: flex-start;
}

.checkout-card {
    background: white;
    border: 1px solid var(--gray-mid);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.card-title {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
    color: var(--text-dark);
}

.type-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.type-option-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: all 0.2s;
}

.type-option-card:has(input:checked) {
    border-color: var(--green);
    background: #f0fdf4;
}

.type-content .type-name {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 3px;
}

.type-content .type-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.checkout-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.checkout-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.checkout-item-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-title {
    font-weight: 700;
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 2px;
}

.checkout-item-meta {
    font-size: 12px;
    color: #64748b;
}

.checkout-item-subtotal {
    font-weight: 700;
    color: #dc2626;
    font-size: 13.5px;
    margin-left: auto;
}

.checkout-total-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.checkout-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 10px 0;
}

.final-total-row {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 0;
}

.final-total-amount {
    font-size: 22px;
    color: #dc2626;
    font-weight: 900;
}

.payment-method-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.payment-method-note p {
    font-size: 12.5px;
    color: #1e40af;
    margin-top: 2px;
}

.btn-submit-order {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: white;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
    transition: all 0.25s;
}

.btn-submit-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(22, 163, 74, 0.55);
}

.back-to-cart-link {
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
}

.back-to-cart-link:hover {
    color: var(--green);
    text-decoration: underline;
}

/* ORDER SUCCESS PAGE */
.success-card {
    max-width: 780px;
    margin: 0 auto;
    background: white;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-mid);
}

.success-header {
    text-align: center;
    margin-bottom: 30px;
}

.success-icon-badge {
    width: 68px;
    height: 68px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto 16px;
}

.success-header h1 {
    font-size: 26px;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 6px;
}

.success-lead {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 18px;
}

.order-code-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
}

.highlight-code {
    font-weight: 900;
    color: #b45309;
    font-size: 16px;
    font-family: monospace;
}

.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.info-block {
    background: #f8fafc;
    border-radius: 10px;
    padding: 18px;
    font-size: 13.5px;
    border: 1px solid #e2e8f0;
}

.info-block h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
}

.info-block p {
    margin-bottom: 8px;
    color: #475569;
}

.customer-type-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.pill-retail {
    background: #e2e8f0;
    color: #334155;
}

.pill-fixed {
    background: #ede9fe;
    color: #6b21a8;
}

.status-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.hotline-reminder-box {
    margin-top: 14px;
    background: white;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.hotline-reminder-box a {
    color: var(--green);
    font-weight: bold;
    text-decoration: none;
}

.order-items-table-card {
    margin-bottom: 28px;
}

.order-items-table-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.success-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.success-table th,
.success-table td {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
}

.success-table th {
    background: #f1f5f9;
    font-weight: 700;
}

.success-grand-total {
    font-size: 16px;
    color: #dc2626;
}

.words-total-cell {
    background: #fafafa;
    font-size: 13px;
}

.next-steps-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 28px;
    font-size: 13.5px;
}

.next-steps-banner h4 {
    color: var(--green-dark);
    margin-bottom: 8px;
}

.next-steps-banner ol {
    padding-left: 20px;
    color: #334155;
}

.next-steps-banner li {
    margin-bottom: 6px;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* RESPONSIVE ADDITIONS */
@media (max-width: 900px) {
    .categories-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .oil-banner-box {
        grid-template-columns: 1fr;
    }

    .cart-layout,
    .checkout-form-layout,
    .product-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .categories-grid-home {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .type-options-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-wrapper {
        padding: 20px;
    }

    .success-card {
        padding: 24px 16px;
    }

}

/* THANH TÌM KIẾM VÀ LỌC DANH MỤC */
.catalog-filter-card {
    margin-bottom: 32px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e2ebe5;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(20, 65, 35, 0.06);
}

.catalog-filter-card .catalog-filter-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Ô tìm kiếm */
.catalog-filter-card .filter-input-search {
    display: flex;
    align-items: center;
    flex: 1 1 300px;
    min-width: 0;
    height: 48px;
    gap: 10px;
    padding: 0 15px;
    background: #f7faf8;
    border: 1px solid #dce5df;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.catalog-filter-card .filter-input-search svg {
    flex-shrink: 0;
    color: var(--green);
}

.catalog-filter-card .filter-input-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
    color: var(--text-dark);
    font: inherit;
    font-size: 14px;
}

.catalog-filter-card .filter-input-search input::placeholder {
    color: #748278;
}

.catalog-filter-card .filter-input-search:focus-within {
    background: #fff;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(26, 122, 60, 0.12);
}

/* Chọn danh mục */
.catalog-filter-card .filter-select-cat {
    flex: 0 1 280px;
    min-width: 0;
}

.catalog-filter-card .filter-select-cat select {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 12px;
    border: 1px solid #dce5df;
    border-radius: 10px;
    background: #f7faf8;
    color: var(--text-dark);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.catalog-filter-card .filter-select-cat select:focus {
    outline: none;
    background: #fff;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(26, 122, 60, 0.12);
}

/* Nút tìm kiếm */
.catalog-filter-card .catalog-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s;
}

.catalog-filter-card .catalog-search-btn:hover {
    background: var(--green-dark);
}

/* Nút xóa lọc */
.catalog-filter-card .btn-clear-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #dce5df;
    border-radius: 10px;
    background: #fff;
    color: var(--text-mid);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.catalog-filter-card .btn-clear-filter:hover {
    background: #fff1f0;
    border-color: #f1c9c5;
    color: var(--red);
}

.catalog-filter-card .catalog-search-btn:focus-visible,
.catalog-filter-card .btn-clear-filter:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 3px;
}

/* Máy tính bảng */
@media (max-width: 900px) {
    .catalog-filter-card .filter-input-search {
        flex-basis: 100%;
    }

    .catalog-filter-card .filter-select-cat {
        flex: 1 1 220px;
    }
}

/* Điện thoại */
@media (max-width: 600px) {
    .catalog-filter-card {
        padding: 14px;
        border-radius: 12px;
    }

    .catalog-filter-card .catalog-filter-form {
        gap: 10px;
    }

    .catalog-filter-card .filter-select-cat {
        flex: 1 1 100%;
    }

    .catalog-filter-card .filter-input-search input,
    .catalog-filter-card .filter-select-cat select {
        font-size: 16px;
    }

    .catalog-filter-card .catalog-search-btn {
        flex: 1;
    }
}

/* TOPBAR DESKTOP & THÔNG TIN LIÊN HỆ MOBILE */
.topbar-desktop .topbar-item svg,
.contact-mobile .topbar-item svg {
    flex-shrink: 0;
}

.topbar-phone-links {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.topbar-phone-links a {
    white-space: nowrap;
}

/* Mặc định: ẩn phần liên hệ phía trên footer */
.contact-mobile {
    display: none;
}

/* Cùng breakpoint với navbar */
@media (max-width: 1199px) {
    /* Ẩn topbar đầu trang */
    .topbar.topbar-desktop {
        display: none;
    }

    /* Hiện thông tin ngay trên footer */
    .contact-mobile {
        display: block;
        padding: 24px;
        background: #edf7f0;
        border-top: 1px solid #d6e9dc;
    }

    .contact-mobile .contact-mobile-title {
        max-width: 1200px;
        margin: 0 auto 14px;
        color: var(--green-dark);
        font-size: 16px;
        font-weight: 800;
        line-height: 1.5;
    }

    .contact-mobile .topbar-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
    }

    .contact-mobile .topbar-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        min-width: 0;
        color: #42584a;
        font-size: 13px;
        line-height: 1.7;
    }

    .contact-mobile .topbar-item svg {
        margin-top: 3px;
        color: var(--green);
    }

    .contact-mobile .topbar-phone {
        align-items: center;
    }

    .contact-mobile .topbar-phone svg {
        margin-top: 0;
    }

    .contact-mobile .topbar-phone-links {
        min-width: 0;
    }

    .contact-mobile .topbar-phone-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        color: var(--green-dark);
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
    }

    .contact-mobile .topbar-phone-links a:hover {
        text-decoration: underline;
    }

    .contact-mobile a:focus-visible {
        outline: 2px solid var(--green);
        outline-offset: 3px;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .contact-mobile {
        padding: 22px 16px;
    }
}

/* HOMEPAGE: PRODUCT FIRST */
.home-catalog .home-new-products { padding: 28px 24px 32px; }
.home-catalog .home-products-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.home-catalog .home-products-heading h1 { font-size: 28px; line-height: 1.3; color: var(--green-dark); margin: 0 0 5px; }
.home-catalog .home-products-heading p { font-size: 14px; color: var(--text-mid); }
.home-catalog .home-all-products { color: var(--green-dark); font-size: 14px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.home-catalog .home-category-links { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 14px; }
.home-catalog .home-category-links a { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; padding: 8px 14px; border: 1px solid #dce5df; border-radius: 999px; background: #fff; color: var(--text-dark); text-decoration: none; font-size: 13px; font-weight: 600; }
.home-catalog .home-category-links a:hover,
.home-catalog .home-category-links .home-category-all { background: #edf7f0; border-color: #bddbc7; color: var(--green-dark); }
.home-catalog .home-new-products .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.home-catalog .home-new-products .product-card { min-width: 0; }
.home-catalog .home-new-products .product-name { overflow-wrap: anywhere; }
.home-catalog .home-new-products .product-price { font-size: 15px; }
.home-catalog .home-new-products .product-foot { align-items: flex-start; }
.home-catalog .home-new-products .btn-order { min-height: 44px; justify-content: center; }
.home-catalog .home-browse-more { text-align: center; margin-top: 20px; }
.home-catalog .home-browse-more a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid #bddbc7; border-radius: 10px; color: var(--green-dark); font-size: 14px; font-weight: 700; text-decoration: none; background: #edf7f0; }
.home-catalog .home-compact-banner { padding: 22px 24px; background: var(--green-dark); color: #fff; }
.home-catalog .home-banner-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.home-catalog .home-banner-inner h2 { font-size: 22px; margin-bottom: 5px; }
.home-catalog .home-banner-inner p { font-size: 14px; line-height: 1.6; color: #e0efe5; }
.home-catalog .home-banner-inner > a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid #a6cbb3; border-radius: 10px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; }
.home-catalog .home-all-products:focus-visible,
.home-catalog .home-category-links a:focus-visible,
.home-catalog .home-browse-more a:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.home-catalog .home-banner-inner > a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 1024px) {
    .home-catalog .home-new-products .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .home-catalog .home-new-products { padding: 18px 12px 24px; }
    .home-catalog .home-products-heading { gap: 4px 10px; margin-bottom: 8px; }
    .home-catalog .home-products-heading h1 { font-size: 21px; }
    .home-catalog .home-products-heading p { font-size: 12px; }
    .home-catalog .home-all-products { font-size: 12px; }
    .home-catalog .home-category-links { margin-bottom: 8px; }
    .home-catalog .home-new-products .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .home-catalog .home-new-products .product-card { border-radius: 12px; box-shadow: 0 2px 8px rgb(0 0 0 / 4%); }
    /* Mobile: toi da 4 san pham = 2 hang x 2 cot. */
    .home-catalog .home-new-products .products-grid > .product-card:nth-child(n + 5) { display: none; }
    .home-catalog .home-new-products .product-unit { font-size: 10px; }
    .home-catalog .home-browse-more { margin-top: 12px; }
    .home-catalog .home-new-products .product-card:hover { transform: none; }
    .home-catalog .home-new-products .product-img-area { height: 110px; padding: 8px; }
    .home-catalog .home-new-products .product-body { padding: 8px; }
    .home-catalog .home-new-products .product-name { font-size: 12px; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
    .home-catalog .home-new-products .product-cat { font-size: 9px; letter-spacing: 0; margin-bottom: 4px; }
    .home-catalog .home-new-products .product-desc { display: none; }
    .home-catalog .home-new-products .product-foot { flex-direction: column; gap: 6px; padding-top: 6px; }
    .home-catalog .home-new-products .product-price { font-size: 12px; overflow-wrap: anywhere; }
    .home-catalog .home-new-products .product-foot form,
    .home-catalog .home-new-products .btn-order { width: 100%; }
    .home-catalog .home-new-products .btn-order { padding: 8px 6px; font-size: 12px; }
    .home-catalog .home-new-products .product-sku-badge { max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
    .home-catalog .home-compact-banner { padding: 18px 16px; }
    .home-catalog .home-banner-inner h2 { font-size: 19px; }
    .home-catalog .home-banner-inner p { font-size: 13px; }
}

/* ==========================================================================
   CONTAINER & TIÊU ĐỀ TRANG
   ========================================================================== */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.page-title-area {
    margin-bottom: 28px;
    padding-top: 10px;
}

.page-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--green-dark, #14532d);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.page-subtitle {
    font-size: 14.5px;
    color: var(--text-mid, #64748b);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   PHÂN HỆ XÁC THỰC KHÁCH HÀNG (ĐĂNG NHẬP / ĐĂNG KÝ)
   ========================================================================== */
.auth-page-client {
    min-height: 70vh;
    padding: 50px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
}

.auth-page-client,
.auth-page-client * {
    box-sizing: border-box;
}

.auth-card-client {
    width: 100%;
    max-width: 480px;
    padding: 36px 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(16, 83, 43, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.auth-card-client.auth-card-register {
    max-width: 560px;
}

.auth-header-client {
    margin-bottom: 28px;
    text-align: center;
}

.auth-header-client h1 {
    margin: 0 0 8px;
    color: #14532d;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
}

.auth-header-client p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.auth-form-client .form-group-client {
    margin-bottom: 20px;
}

.form-group-client {
    margin-bottom: 18px;
}

.form-group-client > label {
    display: block;
    margin-bottom: 6px;
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 600;
}

.form-control-client {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
    font-size: 14.5px;
    transition: all 0.2s ease;
}

.form-control-client:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.form-control-client::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

.text-danger {
    color: #dc2626;
}

.error-msg {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #dc2626;
    font-weight: 500;
}

.form-group-client-row {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 13.5px;
    cursor: pointer;
}

.checkbox-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #16a34a;
    cursor: pointer;
}

.btn-auth-submit {
    display: inline-block;
    width: 100%;
    min-height: 46px;
    padding: 12px 20px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
    transition: all 0.2s ease;
    text-align: center;
}

.btn-auth-submit:hover {
    background: linear-gradient(135deg, #15803d, #14532d);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
    transform: translateY(-1px);
}

.btn-auth-submit:active {
    transform: translateY(0);
}

.auth-footer-client {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.auth-footer-client p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.auth-footer-client a {
    color: #16a34a;
    font-weight: 700;
    text-decoration: none;
}

.auth-footer-client a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   PHÂN HỆ TÀI KHOẢN KHÁCH HÀNG (TRANG HỒ SƠ & LỊCH SỬ ĐƠN HÀNG)
   ========================================================================== */
.account-page {
    padding: 36px 0 60px;
    background: #f8fafc;
    min-height: 75vh;
}

.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar tài khoản */
.account-sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.account-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px;
}

.user-avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.25);
}

.user-meta-info h3 {
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px;
    line-height: 1.3;
}

.user-meta-info p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    word-break: break-all;
}

.account-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.account-nav-item .icon {
    font-size: 16px;
}

.account-nav-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.account-nav-item.active {
    background: #f0fdf4;
    color: #15803d;
    font-weight: 700;
    border-left: 3px solid #16a34a;
}

.account-nav-item.text-accent {
    color: #c2410c;
    background: #fff7ed;
    border-left: 3px solid #ea580c;
    font-weight: 700;
    margin-top: 4px;
}

.btn-account-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-account-logout:hover {
    background: #ffe4e6;
    color: #be123c;
    border-color: #fda4af;
}

/* Nội dung chính thẻ tài khoản */
.account-content {
    min-width: 0;
}

.account-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.account-card-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.account-card-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.account-card-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.password-change-section {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px dashed #cbd5e1;
}

.password-change-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

/* Danh sách đơn hàng trong tài khoản khách */
.orders-list-client {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.order-item-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 14px;
}

.order-code {
    font-size: 15px;
    color: #0f172a;
}

.order-date {
    font-size: 13px;
    color: #64748b;
    margin-left: 6px;
}

.order-badges {
    display: flex;
    gap: 8px;
}

.order-item-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.order-summary-row {
    font-size: 14px;
    color: #334155;
}

.order-total {
    font-size: 17px;
    font-weight: 800;
    color: #dc2626;
    margin-left: 8px;
}

.btn-view-order {
    display: inline-block;
    padding: 8px 18px;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-view-order:hover {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}

.empty-orders-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-orders-state p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 18px;
}

/* ==========================================================================
   RESPONSIVE CHO PHÂN HỆ TÀI KHOẢN & XÁC THỰC
   ========================================================================== */
@media (max-width: 900px) {
    .account-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .account-page {
        padding: 24px 0 40px;
    }

    .account-card {
        padding: 20px 16px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-page-client {
        padding: 28px 14px;
    }

    .auth-card-client {
        padding: 26px 20px;
    }

    .auth-header-client h1 {
        font-size: 22px;
    }

    .order-item-body {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   UTILITY & PHÂN HỆ CHI TIẾT ĐƠN HÀNG KHÁCH HÀNG (CUSTOMER PORTAL)
   ========================================================================== */
.text-muted {
    color: #64748b !important;
}

.text-accent {
    color: #dc2626 !important;
}

.font-bold {
    font-weight: 700 !important;
}

/* SKU Badge dùng chung cho Giỏ hàng, Toa hàng & Chi tiết */
.badge-sku {
    display: inline-block;
    font-family: monospace;
    font-size: 12px;
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    font-weight: 600;
}

/* Ghi đè position absolute của .badge khi nằm trong phân hệ tài khoản/đơn hàng */
.account-card .badge,
.order-badges .badge,
.account-card-header .badge {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.4;
}

/* Các nhãn trạng thái đơn hàng & thanh toán */
.badge-status-new {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-status-received {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.badge-status-processing {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.badge-status-completed {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-status-cancelled {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.badge-payment-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-payment-paid {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-retail {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.badge-fixed {
    background: #ede9fe;
    color: #6b21a8;
    border: 1px solid #ddd6fe;
}

/* Danh sách tóm tắt các món trong toa hàng (customer/orders) */
.order-items-preview {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 10px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #e2e8f0;
}

.item-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    gap: 12px;
}

.item-preview-row .item-name {
    flex: 1;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-preview-row .item-qty {
    flex-shrink: 0;
    color: #64748b;
    font-size: 13px;
}

.item-preview-row .item-subtotal {
    flex-shrink: 0;
    color: #0f172a;
}

.order-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.btn-order-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-order-detail-link:hover {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}

/* Bảng chi tiết toa hàng khách */
.table-client-order {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table-client-order th,
.table-client-order td {
    padding: 12px 10px;
    vertical-align: middle;
}

/* Khối thanh toán VietQR & hủy đơn */
.vietqr-payment-card {
    transition: box-shadow 0.2s ease;
}

.vietqr-payment-card:hover {
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.12);
}

.customer-cancel-box {
    transition: border-color 0.2s;
}
