:root {
    --primary: #004aad;
    --primary-2: #0a61e8;
    --accent: #fbbf24;
    --text: #1e293b;
    --muted: #475569;
    --bg: #f8fafc;
    --dark: #0a192f;
    --card: #ffffff;
    --stroke: #e2e8f0;
    --success: #16a34a
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    scroll-behavior: smooth
}

img {
    display: block;
    max-width: 100%;
    height: auto
}

a {
    color: inherit;
    text-decoration: none
}

header {
    background: #fff;
    text-align: center;
    padding: 40px 20px 16px;
    border-bottom: 1px solid var(--stroke)
}

header img {
    width: 180px;
    height: auto;
    ;
    margin: 0 auto 14px;
    border-radius: 22px;
    border: 2px solid rgba(255, 255, 255, .9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25), 0 0 12px rgba(0, 150, 255, .25);
    transition: .4s;
    position: relative;
    overflow: hidden
}

header img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35), 0 0 18px rgba(0, 200, 255, .35)
}

header img::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .4) 50%, rgba(255, 255, 255, .05) 100%);
    transform: skewX(-25deg);
    animation: logoLightSweep 4s infinite linear;
    border-radius: inherit;
    pointer-events: none
}

@keyframes logoLightSweep {
    0% {
        left: -75%
    }

    100% {
        left: 130%
    }
}
/*Chữ màu Xanh Dương DC BATTERY */
header h2 {
    font-size: 2.9rem;
    font-weight: 900;
    letter-spacing: 1px;
    display: inline-block;
    position: relative;
    background: linear-gradient(180deg, #b3d4ff 0%, #6ea8ff 25%, #2b6fe8 60%, #0845b5 80%, #001f5c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 1px 0 #3207a0, 0 2px 0 #0a0105, 0 3px 3px rgba(0, 0, 0, .3), 0 4px 3px rgba(0, 0, 0, .4), 0 6px 6px rgba(0, 0, 0, .5);
    filter: drop-shadow(0 4px 8px rgba(240, 243, 241, 0.671))
}

header h2::after {
    content: "";
    position: absolute;
    inset: 0;
    left: -75%;
    background: linear-gradient(120deg, rgba(239, 238, 243, 0.15) 0%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, .15) 100%);
    transform: skewX(-25deg);
    animation: lightSweep 3s infinite linear;
    pointer-events: none
}

@keyframes lightSweep {
    0% {
        left: -75%
    }

    100% {
        left: 130%
    }
}

header p {
    color: var(--muted);
    font-weight: 800;
    font-size: 2.2rem;
    margin-top: 6px
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px
}

.brand {
    font-weight: 800;
    color: var(--primary)
}

.hamburger {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #0f172a;
    position: relative;
    display: block
}

.hamburger span::before,
.hamburger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: #0f172a;
    transition: .25s
}

.hamburger span::before {
    top: -6px
}

.hamburger span::after {
    top: 6px
}

.hamburger.active span {
    background: transparent
}

.hamburger.active span::before {
    top: 0;
    transform: rotate(45deg)
}

.hamburger.active span::after {
    top: 0;
    transform: rotate(-45deg)
}

nav {
    position: fixed;
    inset: 56px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--stroke);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    transform: translateY(-120%);
    transition: .25s;
    z-index: 999
}

nav.open {
    transform: translateY(0)
}

nav .links {
    display: flex;
    flex-direction: column;
    padding: 8px
}

nav a {
    display: block;
    font-weight: 700;
    color: var(--text);
    padding: 12px 14px;
    border-radius: 8px
}

nav a:hover {
    background: #eef2ff;
    color: var(--primary)
}

@media (min-width:992px) {
    .topbar {
        display: none
    }

    nav {
        position: sticky;
        transform: none;
        inset: auto;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
        padding: 12px 10px
    }

    nav .links {
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        max-width: 1120px;
        margin: auto
    }

    nav a {
        padding: 8px 10px
    }

    nav a:hover {
        background: transparent
    }

    nav a::after {
        content: "";
        display: block;
        height: 2px;
        background: var(--accent);
        width: 0;
        transition: .25s;
        margin-top: 4px
    }

    nav a:hover::after {
        width: 100%
    }
}

.hero {
    position: relative;
    max-width: 1080px;
    background: linear-gradient(135deg, var(--dark), #002d7a);
    color: #fff;
    text-align: center;
    padding: 64px 16px 80px;
    overflow: hidden
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px
}

.hero p {
    font-size: 2.2rem;
    max-width: 720px;
    margin: 0 auto 18px;
    color: #f0f2f5;
    padding: 0 8px
}

.hero .btn {
    display: inline-block;
    margin: 6px 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    transition: .25s;
    border: 2px solid var(--accent);
    color: var(--accent)
}

.hero .btn:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px)
}

section {
    max-width: 1120px;
    margin: auto;
    padding: 32px 16px
}
/* Sản Phẩm Chính */
h2.section-title {
    font-size: 1.9rem;
    color: var(--primary);
    padding-left: 12px;
    margin-bottom: 18px
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px
}

.card {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease
}

.card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 0;
    background: #fff;
    flex-shrink: 0
}

.card figcaption {
    color: #334155;
    font-size: .95rem;
    text-align: center;
    margin-bottom: 8px
}

.specs {
    font-size: .92rem;
    color: #334155;
    border-top: 1px dashed var(--stroke);
    padding-top: 10px;
    margin-top: 8px
}

.specs li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0
}

.specs b {
    color: #0f172a
}

.quote-btn,
.detail-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #0a61e8);
    color: #fff;
    cursor: pointer;
    transition: .25s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1)
}

.quote-btn:hover,
.detail-btn:hover {
    background: linear-gradient(135deg, #2563eb, #004aad);
    transform: translateY(-2px)
}


.sub-title {
    font-size: 1.2rem;
    color: #0f172a;
    font-weight: 800;
    margin: 26px 0 12px;
    padding-left: 10px;
    background: linear-gradient(90deg, #e0f2fe 0%, transparent 100%);
    border-radius: 4px
}

.drill-title {
    display: inline-flex;
    align-items: center;
    gap: 10px
}

.drill-icon {
    width: 34px;
    height: 34px;
    display: inline-block;
    animation: drillVibrate .25s infinite ease-in-out alternate;
    filter: drop-shadow(0 0 4px rgba(0, 150, 255, .4))
}

@keyframes drillVibrate {
    0% {
        transform: rotate(-3deg)
    }

    50% {
        transform: rotate(3deg)
    }

    100% {
        transform: rotate(-3deg)
    }
}

.bike-title {
    position: relative;
    overflow: hidden
}

.bike-title::before {
    content: "🚴‍";
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
    animation: bikeAcross 5s linear infinite
}

@keyframes bikeAcross {
    0% {
        left: -50px;
        transform: translateY(-50%) rotateY(0)
    }

    50% {
        left: 100%
    }

    51% {
        left: 100%;
        transform: translateY(-50%) rotateY(180deg)
    }

    100% {
        left: -50px;
        transform: translateY(-50%) rotateY(180deg)
    }
}

.fade-section {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .6s ease, transform .6s ease
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0)
}

.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    padding: 22px
}

.stat {
    text-align: center
}

.stat .num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fbbf24
}

#capacity .stat .label {
    font-size: 1.55rem;
    font-weight: 900;
    color: #fdfcfc;
    margin-top: 6px;
    letter-spacing: 0.3px
}

#capacity .stat .num {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fbbf24;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1)
}

@media (min-width:600px) {
    .stats {
        grid-template-columns: 1fr 1fr
    }
}

#contact a.link-hotline {
    display: inline-flex;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    color: #004aad;
    text-decoration: none;
    margin-top: 12px;
    gap: 8px;
    transition: all 0.2s ease
}

#contact a.link-hotline:hover {
    color: #2563eb;
    transform: scale(1.05)
}

@media (max-width:600px) {
    .chat-now {
        bottom: 80px;
        right: 10px
    }
}

.chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #3b82f6, #0a61e8);
    color: #fff;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2)
}

.chat-icon {
    width: 18px;
    height: 18px
}



#detail-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 10px
}

.popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: 20px 22px;
    width: 95%;
    max-width: 420px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 8px 32px rgba(59, 130, 246, .25);
    position: relative;
    animation: zoomIn .25s ease;
    color: #0f172a;
    text-align: center
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(.9)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

#popup-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #004aad;
    margin-bottom: 10px;
    text-transform: uppercase
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    font-size: .95rem
}

.detail-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 6px;
    text-align: left
}

.detail-table td:first-child {
    font-weight: 600;
    color: #1e293b
}

.detail-table td:last-child {
    text-align: right;
    color: #0f172a;
    font-weight: 700
}

#close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #0a61e8);
    cursor: pointer
}

.chart-section,
.datasheet-section {
    margin-top: 14px
}

.chart-section h3,
.datasheet-section h3 {
    font-size: 1rem;
    color: #004aad;
    margin-bottom: 6px
}

.datasheet-btn {
    display: inline-block;
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #0a61e8);
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700
}

.datasheet-btn:hover {
    background: linear-gradient(135deg, #2563eb, #004aad);
    transform: translateY(-1px)
}

body.modal-open {
    height: 100vh;
    overflow: hidden
}

p {
    white-space: pre-line;
    line-height: 1.8;
    font-size: 0.95rem
}

.ico-bike::before {
    content: "🚴‍♂️";
    display: inline-block;
    margin-right: 6px;
    animation: bikeMove 1.5s infinite linear
}

.ico-tool::before {
    content: "🛠️";
    display: inline-block;
    margin-right: 6px;
    animation: drillSpin 0.8s infinite linear
}

.ico-battery::before {
    content: "🔋";
    display: inline-block;
    margin-right: 6px;
    animation: blinkBattery 1.2s infinite alternate
}

@keyframes bikeMove {
    0% {
        transform: translateX(0)
    }

    50% {
        transform: translateX(3px)
    }

    100% {
        transform: translateX(0)
    }
}

@keyframes drillSpin {
    0% {
        transform: rotate(0deg)
    }

    50% {
        transform: rotate(20deg)
    }

    100% {
        transform: rotate(0deg)
    }
}

@keyframes blinkBattery {
    0% {
        opacity: 1
    }

    50% {
        opacity: 0.4
    }

    100% {
        opacity: 1
    }
}

#chart-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    height: 240px
}

#popup-chart {
    width: 100% !important;
    height: 100% !important
}

@media (max-width:600px) {
    #chart-container {
        height: 200px
    }
}

.process-section {
    position: relative;
    padding: 60px 20px;
    font-family: inherit;
    color: #111
}

.process-bg {
    background: linear-gradient(145deg, #eef2ff, #f8fafc);
    border-radius: 16px;
    padding: 60px 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
    max-width: 1120px;
    margin: auto;
    overflow: hidden
}

.section-title {
    text-align: center;
    color: #004aad;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 40px
}

.timeline {
    position: relative;
    padding-left: 30px
}

.step {
    position: relative;
    margin-bottom: 45px
}

.step .icon {
    position: absolute;
    left: -48px;
    top: 0;
    background: #004aad;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    font-size: 17px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease
}

.step:hover .icon {
    background: #00b45a;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(0, 180, 90, 0.5)
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    color: #02339c;
    margin-bottom: 6px
}

.step p {
    font-size: 16px;
    color: #000408;
    line-height: 1.6
}

@media (max-width:600px) {
    .section-title {
        font-size: 22px
    }

    .step .icon {
        width: 32px;
        height: 32px;
        line-height: 32px;
        left: -40px;
        font-size: 15px
    }

    .step h3 {
        font-size: 16px
    }
}

#contact,
.map-wrap {
    max-width: 1080px;
    width: 100%;
    margin: 40px auto;
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden
}

#contact .content {
    padding: 40px 32px
}

.map-wrap iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block
}

@media (max-width:768px) {

    #contact,
    .map-wrap {
        max-width: 100%;
        margin: 20px auto;
        border-radius: 0
    }

    #contact .content {
        padding: 24px 16px
    }

    .map-wrap iframe {
        height: 300px
    }
}

#capacity {
    max-width: 1080px;
    margin: 60px auto;
    padding: 50px 40px;
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(53, 11, 100, 0.08);
    position: relative;
    overflow: hidden
}

#capacity .section-title {
    text-align: center;
    color: var(--primary);
    padding-left: 0;
    margin-bottom: 28px
}

#capacity .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0
}

#capacity .stat {
    text-align: center
}

#capacity .stat .num {
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--accent)
}

@media (max-width:768px) {
    #capacity {
        max-width: 100%;
        padding: 36px 20px
    }

    #capacity .stats {
        padding: 28px 18px;
        gap: 20px
    }

    #capacity .stat .num {
        font-size: 1.9rem
    }
}

.intro-section {
    position: relative;
    max-width: 1080px;
    margin: 60px auto;
    padding: 80px 40px;
    border-radius: 0px;
    color: #f1efef;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06)
}

.intro-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("background-dc.webp") center/cover no-repeat;
    opacity: 2.65;
    z-index: 0
}

.intro-section .section-title {
    position: relative;
    z-index: 1;
    text-align: center
}

.intro-section h2 {
    font-size: 2rem;
    color: #07b8ee;
    font-weight: 800;
    margin-bottom: 16px
}

.intro-section p {
    font-size: 1.05rem;
    line-height: 2.0;
    max-width: 800px;
    margin: 0 auto;
    color: #f4f5f7
}

@media (max-width:768px) {
    .intro-section {
        padding: 50px 20px
    }

    .intro-section h2 {
        font-size: 1.3rem
    }

    .intro-section p {
        font-size: 0.95rem
    }
}

#mainNav {
    background: linear-gradient(135deg, #001b44, #002d7a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3)
}

#mainNav a {
    color: #e2e8f0;
    font-weight: 700;
    transition: color 0.3s ease, transform 0.2s ease
}

#mainNav a:hover {
    color: #fbbf24;
    transform: translateY(-2px)
}

#backToTop {
    position: fixed;
    bottom: 300px;
    right: 25px;
    background: linear-gradient(135deg, #004aad, #0a61e8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 998;
    transition: all 0.3s ease
}

#backToTop:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #2563eb, #004aad)
}

#capacity {
    position: relative;
    padding: 80px 20px;
    color: #0f172a;
    overflow: hidden;
    text-align: center
}

#capacity::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('background-capacity.png') center/cover no-repeat;
    filter: blur(4px) brightness(0.8);
    opacity: 0.95;
    z-index: 0;
    transition: all 0.4s ease
}

#capacity * {
    position: relative;
    z-index: 1
}

#contact {
    position: relative;
    padding: 80px 20px;
    color: #160202;
    overflow: hidden;
    text-align: center
}

#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('background-contact.jpg') center/cover no-repeat;
    filter: blur(6px) brightness(0.55);
    opacity: 0.6;
    z-index: 0;
    transition: all 0.4s ease
}

#contact * {
    position: relative;
    z-index: 1
}

@media (max-width:768px) {

    #capacity,
    #contact {
        padding: 60px 15px
    }

    #capacity::before {
        background-position: center;
        filter: blur(5px) brightness(0.9);
        opacity: 0.5
    }

    #contact::before {
        background-position: center;
        filter: blur(7px) brightness(0.6);
        opacity: 0.7
    }

    #capacity h2,
    #contact h2 {
        font-size: 1.5rem
    }

    #capacity p,
    #contact p {
        font-size: 1.5rem;
        line-height: 1.6
    }
}

.social-floating {
    position: fixed;
    right: 25px;
    bottom: 30px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    z-index: 1000
}

.zalo-button img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.3s ease
}

.zalo-button img:hover {
    transform: scale(1.1)
}

.social-sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.4s ease;
    pointer-events: none;
    position: relative;
    bottom: 10px
}

.social-floating:hover .social-sub {
    opacity: 1;
    transform: translateY(-10px);
    pointer-events: auto
}

.social-sub a img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease
}

.social-sub a img:hover {
    transform: scale(1.1)
}

.social-floating:hover .social-sub {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto
}

.social-floating:hover .social-sub a:nth-child(1) {
    transition-delay: 0.05s
}

.social-floating:hover .social-sub a:nth-child(2) {
    transition-delay: 0.15s
}

.social-floating:hover .social-sub a:nth-child(3) {
    transition-delay: 0.25s
}

@media (max-width:768px) {
    .social-floating {
        bottom: 80px;
        right: 14px
    }
}

#contact p {
    font-size: 22px;
    line-height: 2.7;
    color: #041736;
    font-weight: 500;
    margin: 6px 0
}

.phone-link {
    font-size: 20px;
    font-weight: 700;
    color: #004aad;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 74, 173, 0.05);
    padding: 10px 16px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 74, 173, 0.3);
    transition: all 0.25s ease
}

.phone-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #004aad, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3)
}

.bg-electric a.btn {
    display: inline-block;
    margin: 10px;
    padding: 12px 26px;
    font-size: 17px;
    font-weight: 600;
    color: #ffc107;
    border: 2px solid #ffc107;
    border-radius: 8px;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10
}

.bg-electric a.btn:hover {
    color: #fff;
    background: #ffc107;
    box-shadow: 0 0 18px rgba(255, 193, 7, 0.6);
    transform: translateY(-3px)
}

.bg-electric a.btn:active {
    color: #fff;
    background: #ffc107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.6);
    transform: scale(0.97)
}

@media (max-width:768px) {
    .bg-electric a.btn {
        font-size: 15px;
        padding: 10px 22px
    }
}

.menu-open .social-buttons,
.menu-open .zalo-button,
.menu-open #backToTop {
    display: none !important
}

nav.active~.zalo-button,
nav.active~.social-buttons,
nav.active~#backToTop {
    display: none !important
}

.social-floating,
#backToTop {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease
}

body.loaded .social-floating,
body.loaded #backToTop {
    visibility: visible;
    opacity: 1
}

nav.open~.social-floating,
nav.open~#backToTop {
    display: none !important
}

.social-floating {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 14px;
    z-index: 999
}

.social-sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px
}

.social-sub img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease
}

.social-sub img:hover {
    transform: scale(1.15)
}

.zalo-button img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease
}

.zalo-button img:hover {
    transform: scale(1.1)
}

#backToTop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #004aad, #2563eb);
    color: #fff;
    font-size: 22px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 998
}

#backToTop:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #2563eb, #004aad)
}

@media (max-width:768px) {
    .social-floating {
        right: 30px;
        bottom: 80px;
        gap: 10px
    }

    .social-sub img {
        width: 34px;
        height: 34px
    }

    .zalo-button img {
        width: 40px;
        height: 40px
    }

    #backToTop {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 14px;
        right: 30px
    }
}

@keyframes zaloBounce {

    0%,
    100% {
        transform: translateY(0)
    }

    25% {
        transform: translateY(-6px)
    }

    50% {
        transform: translateY(0)
    }

    75% {
        transform: translateY(-3px)
    }
}

.zalo-button {
    animation: zaloBounce 1s ease-in-out infinite;
    animation-delay: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out
}

@keyframes zaloPulse {

    0%,
    96%,
    100% {
        transform: scale(1)
    }

    97% {
        transform: scale(1.12)
    }

    98.5% {
        transform: scale(0.98)
    }

    99% {
        transform: scale(1.05)
    }
}

.zalo-button img {
    animation: zaloPulse 5s ease-in-out infinite
}

.zalo-button {
    position: relative;
    z-index: 10
}

.zalo-button::before,
.zalo-button::after,
.zalo-button .pulse-ring {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.45) 0%, rgba(0, 180, 255, 0.25) 40%, transparent 70%);
    opacity: 0;
    z-index: -1;
    animation: zaloWave 3.8s infinite ease-out
}

.zalo-button::before {
    animation-delay: 0s
}

.zalo-button::after {
    animation-delay: 1.2s
}

.zalo-button .pulse-ring {
    animation-delay: 2.4s
}

@keyframes zaloWave {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.6
    }

    60% {
        opacity: 0.3
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0
    }
}

.zalo-button img {
    animation: zaloPulse 5s ease-in-out infinite;
    position: relative;
    z-index: 5
}

.zalo-button img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.2)
}

.hero-section {
    position: relative;
    background: radial-gradient(circle at center, #001c55 0%, #000814 60%, #000 100%);
    color: white;
    text-align: center;
    padding: 80px 20px 100px;
    overflow: hidden
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 119, 255, 0.3) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0
}

.hero-section h1,
.hero-section img {
    position: relative;
    z-index: 2
}

#contact {
    position: relative;
    padding: 80px 20px;
    color: #f8fafc;
    text-align: center;
    background: url('background-contact.jpg') center center / cover no-repeat;
    background-attachment: fixed;
    border-radius: 20px;
    overflow: hidden
}

#contact::before {
    content: none
}

#contact h2 {
    font-size: 2.8rem;
    color: #f8f8fc;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.9), 0 0 20px rgba(0, 200, 255, 0.6), 0 0 40px rgba(0, 120, 255, 0.5)
}

#contact p,
#contact p strong,
#contact a {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.6), 0 0 14px rgba(0, 150, 255, 0.5);
    font-weight: 600
}

#contact a:hover {
    color: #38bdf8 !important;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.9), 0 0 20px rgba(0, 200, 255, 0.6)
}

#contact {
    background: url('background-contact.jpg') center center / cover no-repeat !important;
    background-attachment: fixed;
    border-radius: 20px
}

@media (max-width:768px) {
    #contact h2 {
        font-size: 1.4rem !important;
        text-shadow: 0 0 10px rgba(0, 200, 255, 0.6)
    }

    #contact p,
    #contact p strong,
    #contact a {
        font-size: 0.8rem !important;
        line-height: 1.4;
        color: #ffffff !important;
        text-shadow: 0 0 6px rgba(0, 180, 255, 0.4)
    }

    #contact {
        padding: 50px 10px !important;
        text-align: center
    }
}


/* ==== VIDEO FULLWIDTH + MAP BÊN DƯỚI ==== */
.video-box.fullwidth,
.map-box.below {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* Tỷ lệ chuẩn video */
.video-box.fullwidth .lazy-embed,
.map-box.below .lazy-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
}

/* Ảnh và iframe fill toàn bộ */
.video-box.fullwidth .lazy-embed img,
.video-box.fullwidth .lazy-embed iframe,
.map-box.below .lazy-embed img,
.map-box.below .lazy-embed iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Nút play video */
.lazy-embed .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 64px;
  padding: 14px 24px;
  border-radius: 50%;
  transition: background .3s;
}
.lazy-embed:hover .play {background: rgba(0,150,255,.8);}

/* Nút xem bản đồ */
.lazy-embed.map .open-map {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease;
}
.lazy-embed.map .open-map:hover {
  background: rgba(0,150,255,0.85);
  transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .lazy-embed {aspect-ratio: 16/10;}
  .lazy-embed .play {font-size: 48px;}
  .lazy-embed.map .open-map {
    font-size: 14px;
    padding: 8px 12px;
  }
}

#mainNav{ overflow:visible; }           /* tránh bị cắt */
.nav-item{ position:relative; }

.has-dropdown .dropdown{
  display:none;
  list-style:none;
  padding:6px 0;
  margin:10px 0 0;
  background:#001b44;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  position:absolute;
  top:100%;
  left:0;
  min-width:220px;
  box-shadow:0 10px 24px rgba(0,0,0,.25);
  z-index:1001;                         /* nổi lên trên các nút nổi (zalo/backToTop) */
}
.has-dropdown .dropdown li a{
  display:block;
  padding:10px 14px;
  color:#e2e8f0;
  font-weight:700;
  white-space:nowrap;
}
.has-dropdown .dropdown li a:hover{ color:#fbbf24; }

/* Mobile: dropdown hiển thị trong luồng (khỏi absolute) */
@media (max-width:991.98px){
  .has-dropdown .dropdown{
    position:static;
    min-width:auto;
    margin:6px 0 0;
    box-shadow:none;
  }
}
/* Mobile UX: menu full-width + overlay + tap targets */
@media (max-width: 991.98px){
  #mainNav{ transform: translateY(-120%); transition: .25s; }
  #mainNav.open{ transform: translateY(0); }

  /* overlay tối nền khi menu mở */
  #nav-overlay{
    position: fixed; inset: 56px 0 0 0; /* bên dưới topbar */
    background: rgba(0,0,0,.45);
    display: none; z-index: 998;
  }
  #nav-overlay.show{ display:block; }

  nav .links a{ padding:14px 16px; font-size:16px; } /* tap targets 44px */
  .has-dropdown{ position: static; }
  .has-dropdown .dropdown{
    position: static; display: none; margin: 4px 0 8px;
    background: #012158; border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px; overflow: hidden;
  }
  .has-dropdown.open .dropdown{ display:block; }
  .has-dropdown .dropdown li a{ padding:12px 16px; }
  /* mũi tên quay khi mở */
  a.dropdown-toggle::after{ content:" ▼"; margin-left:6px; transition:.2s; }
  .has-dropdown.open a.dropdown-toggle::after{ content:" ▲"; color:#fbbf24; }
}

/* Desktop giữ như hiện tại (dropdown absolute) */
@media (min-width: 992px){
  #mainNav{ overflow: visible; }
  .has-dropdown .dropdown{ position:absolute; top:100%; left:0; }
}

/* Desktop: giữ mũi tên nằm cạnh chữ, không còn gạch vàng cho mục Sản phẩm */
@media (min-width: 992px){
  nav .links a { white-space: nowrap; }   /* tránh xuống dòng */

  /* Mục Sản phẩm -> biến ::after thành mũi tên thay vì gạch */
  nav a.dropdown-toggle{
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  nav a.dropdown-toggle::after{
    content: "▼";                 /* mũi tên */
    display: inline-block;
    margin-left: 6px;
    height: auto !important;      /* vô hiệu rule gạch chân */
    width: auto !important;
    background: transparent !important;
  }
  .has-dropdown.open a.dropdown-toggle::after{
    content: "▲";
    color: #fbbf24;
  }

  /* Khi hover mục Sản phẩm, không kéo dài gạch chân */
  nav a.dropdown-toggle:hover::after{ width: auto !important; }
}
/* BẮT BUỘC: mở dropdown khi có .open cho mọi kích thước */
.has-dropdown.open .dropdown{ display:block; }
/* Căn chữ + icon vào đúng giữa nút */
.detail-btn,
.quote-btn,
.card .btn,
.card a.detail-btn,
.card a.quote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px; /* khoảng cách icon - chữ nếu có icon */
  width: 100%;
  text-align: center;
}

/* Hiển thị dropdown khi .open (áp dụng cho cả PC + mobile) */
.has-dropdown.open .dropdown { display:block; }

.p-cta {
  display: flex;
  justify-content: center;
  width: 100%;
}

.p-cta .btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 600px) {
  .p-cta .btn-primary {
    width: 100%;
    max-width: 320px;
  }
}

@media (min-width:1024px){
  .p-wrap{
    grid-template-columns: 1fr 1fr; /* cân hai cột */
    gap: 28px;
    align-items: center;
  }
  .p-gallery{ display:flex; justify-content:center; }
  .p-gallery img{ max-width:560px; width:100%; height:auto; }
  .p-info{ max-width:560px; margin:0 auto; text-align:center; }
  .p-cta{ display:flex; justify-content:center; }
}

/* Giảm size theo màn hình + bỏ bẻ chữ "anywhere" */
.p-title{
  font-size: clamp(20px, 6vw, 32px);
  line-height: 1.18;
  margin: 6px 0 10px;
  word-break: normal;         /* quan trọng: bỏ break-word */
  overflow-wrap: normal;      /* không bẻ bừa */
  text-wrap: balance;         /* chia dòng đẹp trên trình duyệt mới */
  text-wrap: wrap;    /* fallback cho trình duyệt cũ */
}

/* Giữ cụm này không tách dòng */
.p-title .nowrap{ white-space: nowrap; }

/* Màn cực nhỏ vẫn đảm bảo không tràn */
@media (max-width: 360px){
  .p-title{ font-size: clamp(18px, 6.5vw, 28px); }
}

/* Căn giữa tiêu đề và nội dung p-info */
.p-info {
  text-align: center;
}

/* Bắt buộc căn giữa tiêu đề */
.p-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 100%;
}

/* Price Box */
.price-box{
  background: #ffffff;
  border: 2px solid #0a61e8;
  border-radius: 14px;
  padding: 14px 10px;
  margin: 10px auto 12px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 5px 18px rgba(0, 60, 170, .12);
}

/* Icon */
.price-box .price-icon{
  font-size: 28px;
  margin-bottom: 4px;
}

/* Giá */
.price-main{
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}
.price-current{
  font-size: 26px;
  font-weight: 900;
  color: #0a61e8;
}
.price-old{
  font-size: 16px;
  color: #777;
  text-decoration: line-through;
}

/* Tag giảm giá */
.price-tag{
  font-size: 14px;
  font-weight: 700;
  background: #fbbf24;
  color: #000;
  padding: 6px 10px;
  border-radius: 999px;
  margin-top: 6px;
  display: inline-block;
}

/* ---------- PRICE CARD PRO ---------- */
.price-card.pro{
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 10px auto 16px;
  padding: 16px 14px 18px;
  border-radius: 16px;
  /* viền gradient */
  border: 2px solid transparent;
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(135deg, #3b82f6, #0a61e8) border-box;
  box-shadow: 0 10px 30px rgba(10, 97, 232, .18);
  overflow: hidden;
  text-align: center;
}

.price-card.pro .pc-header{
  display:flex; justify-content:center; align-items:center;
  margin-bottom: 8px;
}

.price-card.pro .coin{
  width: 46px; height: 46px;
  filter: drop-shadow(0 4px 10px rgba(255,179,0,.35));
  animation: coinFloat 2.2s ease-in-out infinite;
}
@keyframes coinFloat{
  0%,100%{ transform: translateY(0) rotate(0); }
  50%{ transform: translateY(-6px) rotate(5deg); }
}

.price-card.pro .pc-price{
  display:flex; flex-direction:column; gap:4px; align-items:center;
}
.price-card.pro .pc-price .current{
  font-size: clamp(24px, 4.6vw, 34px);
  font-weight: 900;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #3b82f6, #0a61e8);
  -webkit-background-clip:text; -webkit-text-fill-color: transparent;
}
.price-card.pro .pc-price .old{
  color:#6b7280; text-decoration: line-through; font-weight:600;
}

.price-card.pro .pc-badge{
  display:inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius:999px;
  font-weight:800;
  background:#fbbf24; color:#000;
  box-shadow: 0 4px 10px rgba(251,191,36,.35);
}

/* hover nhẹ cho cả card */
.price-card.pro:hover{ transform: translateY(-2px); transition: .2s; }

/* ---------- TIỀN RƠI ---------- */
.price-card.pro .money-rain{
  position:absolute; inset:0; pointer-events:none; overflow:hidden;
}
.price-card.pro .money-rain span{
  position:absolute; top:-20px;
  width:18px; height:18px; border-radius:50%;
  background: radial-gradient(circle at 35% 35%, #fff9c4 0 35%, #ffca28 36% 100%);
  border:1px solid #f1b000;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  animation: drop 2.6s linear infinite;
  opacity:.9;
}
/* vị trí + độ trễ ngẫu nhiên nhẹ */
.price-card.pro .money-rain span:nth-child(1){ left:8%;  animation-delay:0s;   }
.price-card.pro .money-rain span:nth-child(2){ left:22%; animation-delay:.3s;  transform:scale(.9);}
.price-card.pro .money-rain span:nth-child(3){ left:36%; animation-delay:.6s;  }
.price-card.pro .money-rain span:nth-child(4){ left:50%; animation-delay:.9s;  transform:scale(1.1);}
.price-card.pro .money-rain span:nth-child(5){ left:64%; animation-delay:1.2s; }
.price-card.pro .money-rain span:nth-child(6){ left:78%; animation-delay:1.5s; transform:scale(.85);}
.price-card.pro .money-rain span:nth-child(7){ left:14%; animation-delay:1.8s; }
.price-card.pro .money-rain span:nth-child(8){ left:42%; animation-delay:2.1s; }
.price-card.pro .money-rain span:nth-child(9){ left:58%; animation-delay:2.4s; }
.price-card.pro .money-rain span:nth-child(10){left:86%; animation-delay:2.7s; transform:scale(1.05);}

@keyframes drop{
  0%   { transform: translateY(-30px) rotate(0deg);   opacity: 0; }
  10%  { opacity: .95; }
  60%  { transform: translateY(140px) rotate(260deg); }
  100% { transform: translateY(230px) rotate(540deg); opacity: 0; }
}

/* Dark border khi nền sáng */
@media (prefers-color-scheme: dark){
  .price-card.pro{ background:
    linear-gradient(#0b1220,#0b1220) padding-box,
    linear-gradient(135deg, #3b82f6, #0a61e8) border-box;
    color:#e5e7eb;
  }
  .price-card.pro .pc-price .old{ color:#9ca3af; }
}

/* --- FORCE 1 COLUMN LAYOUT ON PC --- */
.p-wrap {
  display: block !important;
}

/* Gallery center + reduce size on PC */
.p-gallery {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.p-gallery img {
  width: 100%;
  max-width: 420px; /* chỉnh tùy ý, 380–480px ok */
  height: auto;
  border-radius: 12px;
}

/* Center info section */
.p-info {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

/* On mobile keep full image */
@media (max-width: 768px) {
  .p-gallery img {
    max-width: 100%;
    width: 100%;
  }
}

/* mới thêm - xóa đoạn này là ok */

/* Fix chữ nút iOS không căn giữa */
.btn,
button,
a.btn,
a.detail-btn{
  text-align: center !important;
  -webkit-text-size-adjust: 100% !important;
  white-space: nowrap;
}
a.detail-btn span,
a.btn span {
  display: inline-block;
  width: 100%;
}

/*mới thêm vào 8/11*/ 
/* === MOBILE: mặc định 2 cột === */
.product-grid{
  display:grid;
  gap:18px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}

/* Màn quá nhỏ thì về 1 cột (tùy chọn) */
@media (max-width:359.98px){
  .product-grid{ grid-template-columns: 1fr; }
}

/* TABLET vẫn 2 cột */
@media (min-width:600px){
  .product-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* PC: 3 cột */
@media (min-width:1024px){
  .product-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* --- Span item cuối khi tổng là số lẻ (để không bị trống) --- */
/* Áp dụng cho dải 2 cột: mobile (>=360px) và tablet */
@media (max-width:599.98px){
  .product-grid > *:nth-last-child(1):nth-child(odd){ grid-column: 1 / -1; }
}
@media (min-width:600px) and (max-width:1023.98px){
  .product-grid > *:nth-last-child(1):nth-child(odd){ grid-column: 1 / -1; }
}



/* --- Fix nút "Xem chi tiết sản phẩm" trên mobile --- */
.detail-btn{
  white-space: normal !important;   /* cho phép xuống dòng */
  word-break: break-word;           /* nếu cần thì bẻ từ */
  line-height: 1.2;                 /* chữ gọn hơn */
}

/* Tối ưu riêng cho màn nhỏ */
@media (max-width: 480px){
  .detail-btn{
    font-size: .80rem;              /* chữ nhỏ lại một chút */
    padding: 8px 10px;              /* nút thấp hơn */
    min-height: 40px;               /* đảm bảo bo góc đẹp khi 2 dòng */
  }
  .card figcaption{ font-size: .85rem; } /* tiêu đề gọn hơn */
}


.product-card h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nếu chữ vẫn tràn thì thêm font-size mobile */
@media (max-width: 480px) {
  .product-card h3 {
    font-size: 13px;
  }
}

.yt-icon {
  width: 45px;
  height: auto;
}


