:root {
    --thaco-primary: #004c8f; /* Thaco Blue */
    --thaco-primary-dark: #003666;
    --thaco-secondary: #FF6B00; /* Thaco Red */
    --thaco-secondary-dark: #E65C00;
    --thaco-light: #f8f9fa;
    --thaco-dark: #1f2937;
    --thaco-text: #374151;
    --thaco-text-light: #6b7280;
    --thaco-border: #e5e7eb;
    --thaco-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --thaco-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --thaco-radius: 6px;
    --thaco-radius-lg: 12px;
}

.dieptv_navigator_block {
    background: linear-gradient(to right, var(--thaco-primary) 0%, var(--thaco-primary-dark) 50%, var(--thaco-primary) 100%) !important;
    color: #fff;
    position: relative;
    border-bottom: 4px solid;
    border-image: linear-gradient(to right, var(--thaco-primary) 0%, var(--thaco-secondary) 50%, var(--thaco-primary) 100%) 1;
}

/* Custom Overlap Logo */
.dieptv_header_block {
    padding: 10px 0 0 0 !important;
}
/* Hiệu ứng 2 đường viền Xanh Cam chạy quanh Logo */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.dieptv_header_block .logo {
    margin-bottom: -50px !important;
    position: relative;
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px; /* Cố định chiều rộng tạo hình vuông */
    height: 140px; /* Cố định chiều cao tạo hình vuông */
    padding: 5px;
    border: 3px solid transparent; /* Độ dày viền */
    border-image: conic-gradient(from var(--angle), 
        transparent 0deg, var(--thaco-primary) 90deg, 
        transparent 180deg, var(--thaco-secondary) 270deg, transparent 360deg
    ) 1;
    animation: rotateBorderAngle 3s linear infinite;
}
.dieptv_header_block .logo img {
    max-width: 100% !important;
    max-height: 100% !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    mix-blend-mode: multiply;
}
@keyframes rotateBorderAngle {
    to { --angle: 360deg; }
}

/* Custom Search Bar & Header Flexbox */
.dieptv_header_block .container .flex .head-central {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding-left: 0 !important;
}
.dieptv_header_block .container .flex .head-right {
    flex: none !important;
}

.dieptv_header_block .search {
    width: 400px !important;
    margin: 0 20px 0 auto !important;
}
.dieptv_header_block .search input {
    border: 2px solid var(--thaco-primary) !important;
    border-radius: 30px !important;
    padding: 10px 56px 10px 20px !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.dieptv_header_block .search input:focus {
    border-color: var(--thaco-secondary) !important;
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.3), inset 0 2px 4px rgba(0,0,0,0.02);
}
.dieptv_header_block .search button {
    background: linear-gradient(135deg, var(--thaco-secondary) 0%, #e65c00 100%) !important;
    height: 36px !important;
    width: 36px !important;
    right: 6px !important;
    transform: translateY(-50%) !important;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(255, 107, 0, 0.3);
}
.dieptv_header_block .search button:hover {
    transform: translateY(-50%) scale(1.05) !important;
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.5);
}

.dieptv_navigator_block.fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    animation: slideDown 0.3s ease-in-out forwards;
}

/* Sticky Logo Inside Menu */
.dieptv_navigator_block .sticky-logo {
    display: none;
    margin-right: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.dieptv_navigator_block.fixed .sticky-logo {
    display: block;
    opacity: 1;
}
.dieptv_navigator_block.fixed .sticky-logo img {
    height: 48px !important;
    width: auto;
    filter: invert(1) grayscale(1) contrast(1000%) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    mix-blend-mode: screen;
}

.dieptv_navigator_block .menu-nav > li > a {
    padding: 18px 0px !important;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.dieptv_footer_block {
    border-top: 4px solid !important;
    border-image: linear-gradient(to right, var(--thaco-primary) 0%, var(--thaco-secondary) 50%, var(--thaco-primary) 100%) 1 !important;
}

body {
    font-family: var(--primary-Font) !important;
    color: var(--thaco-text);
    background-color: var(--thaco-light);
}

/* Typography Utility */
.text-primary { color: var(--thaco-primary) !important; }
.text-secondary { color: var(--thaco-secondary) !important; }
.bg-primary { background-color: var(--thaco-primary) !important; color: #fff; }
.bg-secondary { background-color: var(--thaco-secondary) !important; color: #fff; }

/* Buttons */
.btn-thaco-primary {
    background: var(--thaco-primary);
    color: #fff;
    border: none;
    border-radius: var(--thaco-radius);
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: inline-block;
}
.btn-thaco-primary:hover {
    background: var(--thaco-primary-dark);
    color: #fff;
    box-shadow: var(--thaco-shadow);
    transform: translateY(-2px);
}
.btn-thaco-secondary {
    background: var(--thaco-secondary);
    color: #fff;
    border: none;
    border-radius: var(--thaco-radius);
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: inline-block;
}
.btn-thaco-secondary:hover {
    background: var(--thaco-secondary-dark);
    color: #fff;
    box-shadow: var(--thaco-shadow);
    transform: translateY(-2px);
}

/* Home Banner Module */
.dieptv_banner_block .owl-banner .banner_item {
    position: relative;
}
.dieptv_banner_block .owl-banner .banner_item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    pointer-events: none;
}
.dieptv_banner_block .owl-nav button {
    background: rgba(255,255,255,0.8) !important;
    color: var(--thaco-primary) !important;
    border-radius: 50% !important;
    width: 40px; height: 40px;
    box-shadow: var(--thaco-shadow);
    transition: all 0.3s;
}
.dieptv_banner_block .owl-nav button:hover {
    background: var(--thaco-primary) !important;
    color: #fff !important;
}

/* Product Category Block (Rugged Truck Style) */
.dieptv_section_product {
    background-color: var(--thaco-light);
    padding: 60px 0;
}
.dieptv_section_product .head_block h3.title,
.dieptv_section_news .head_block h3.title,
.dieptv_section_service .head_block h3.title,
.dieptv_section_video .head_block h3.title {
    font-size: 22px;
    font-weight: 800;
    color: var(--thaco-primary);
    position: relative;
    padding-bottom: 0;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dieptv_section_product .head_block h3.title::after,
.dieptv_section_news .head_block h3.title::after,
.dieptv_section_service .head_block h3.title::after,
.dieptv_section_video .head_block h3.title::after {
    content: "";
    width: 100%;
    max-width: 680px;
    background: linear-gradient(90deg, transparent, var(--thaco-primary), var(--thaco-secondary), transparent);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -2px;
    height: 3px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.dieptv_section_product .head_block h3.title span,
.dieptv_section_news .head_block h3.title span,
.dieptv_section_service .head_block h3.title span,
.dieptv_section_video .head_block h3.title span {
    display: inline-flex;
    align-items: center;
    padding: 12px 60px;
    background: linear-gradient(135deg, var(--thaco-primary) 0%, #222 100%);
    color: #fff;
    line-height: 24px;
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    text-transform: none !important;
}

/* Product Item Loop */
.product-item-thaco {
    background: #fff;
    border-radius: var(--thaco-radius-lg);
    overflow: hidden;
    box-shadow: var(--thaco-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--thaco-border);
    margin-bottom: 30px;
    position: relative;
}
.product-item-thaco:hover {
    box-shadow: var(--thaco-shadow-lg);
    transform: translateY(-5px);
    border-color: var(--thaco-primary);
}
.product-item-thaco .img-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.product-item-thaco .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-item-thaco:hover .img-box img {
    transform: scale(1.05);
}
.product-item-thaco .truck-specs {
    display: flex;
    justify-content: space-between;
    background: var(--thaco-light);
    padding: 10px 15px;
    border-bottom: 1px solid var(--thaco-border);
    font-size: 13px;
    color: var(--thaco-text-light);
    font-weight: 600;
}
.product-item-thaco .truck-specs span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.product-item-thaco .info-box {
    padding: 20px;
}
.product-item-thaco .title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.product-item-thaco .title a {
    color: var(--thaco-text);
    text-decoration: none;
}
.product-item-thaco .title a:hover {
    color: var(--thaco-primary);
}
.product-item-thaco .price {
    font-size: 20px;
    font-weight: 800;
    color: var(--thaco-secondary);
    margin-bottom: 15px;
}
.product-item-thaco .actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.product-item-thaco .actions .btn-detail,
.seg-card .actions .btn-detail {
    flex: 1;
    text-align: center;
    padding: 8px 5px;
    background: var(--thaco-light);
    color: var(--thaco-primary);
    border: 1px solid var(--thaco-primary);
    border-radius: var(--thaco-radius);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}
.product-item-thaco .actions .btn-detail:hover,
.seg-card .actions .btn-detail:hover {
    background: var(--thaco-primary);
    color: #fff;
}
.product-item-thaco .actions .btn-quote,
.seg-card .actions .btn-quote {
    flex: 1;
    text-align: center;
    padding: 8px 5px;
    background: var(--thaco-secondary);
    color: #fff;
    border: 1px solid var(--thaco-secondary);
    border-radius: var(--thaco-radius);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}
.product-item-thaco .actions .btn-quote:hover,
.seg-card .actions .btn-quote:hover {
    background: var(--thaco-secondary-dark);
}
.product-item-thaco .actions .btn-phone,
.seg-card .actions .btn-phone,
.product-item-thaco .actions .btn-zalo,
.seg-card .actions .btn-zalo,
.product-item-thaco .actions .btn-wrap,
.seg-card .actions .btn-wrap {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--thaco-radius);
    text-decoration: none;
    transition: all 0.3s;
    color: #fff;
}
.product-item-thaco .actions .btn-phone,
.seg-card .actions .btn-phone {
    background: #28a745;
    font-size: 18px;
}
.product-item-thaco .actions .btn-phone:hover,
.seg-card .actions .btn-phone:hover {
    background: #218838;
}
.product-item-thaco .actions .btn-zalo,
.seg-card .actions .btn-zalo {
    background: #0068ff;
    font-size: 11px;
    font-weight: 700;
}
.product-item-thaco .actions .btn-zalo:hover,
.seg-card .actions .btn-zalo:hover {
    background: #005ce6;
}

/* Service Block */
.dieptv_section_service {
    background: #fff;
    padding: 60px 0;
}
.service-thaco-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--thaco-radius-lg);
    background: var(--thaco-light);
    transition: all 0.3s;
    border: 1px solid transparent;
}
.service-thaco-item:hover {
    background: #fff;
    box-shadow: var(--thaco-shadow-lg);
    border-color: var(--thaco-primary);
    transform: translateY(-5px);
}
.service-thaco-item .icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    background: var(--thaco-primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    transition: all 0.3s;
}
.service-thaco-item:hover .icon {
    background: var(--thaco-secondary);
    transform: rotateY(360deg);
}
.service-thaco-item .title {
    font-size: 18px;
    font-weight: 700;
    color: var(--thaco-primary);
    margin-bottom: 15px;
}
.service-thaco-item .desc {
    color: var(--thaco-text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* News Block */
.news-thaco-card {
    background: #fff;
    border-radius: var(--thaco-radius);
    overflow: hidden;
    box-shadow: var(--thaco-shadow);
    transition: all 0.3s;
}
.news-thaco-card:hover {
    box-shadow: var(--thaco-shadow-lg);
}
.news-thaco-card .img-box img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
}
.news-thaco-card .info-box {
    padding: 20px;
}
.news-thaco-card .date {
    font-size: 12px; color: var(--thaco-text-light); margin-bottom: 10px;
    display: flex; align-items: center; gap: 5px;
}
.news-thaco-card .title {
    font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 10px;
}
.news-thaco-card .title a { color: var(--thaco-text); text-decoration: none; }
.news-thaco-card .title a:hover { color: var(--thaco-primary); }


/* Card Dropdown Menu */
.btn-wrap { position: relative; }
.card-slide-menu {
    position: absolute;
    bottom: 45px;
    right: 0;
    transform: translateY(10px) !important;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 8px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}
.card-slide-menu::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 10px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}
.btn-wrap.has-slide-menu:hover .card-slide-menu,
.btn-wrap.has-slide-menu.active .card-slide-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) !important;
}
.card-slide-menu .menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    margin: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff !important;
    background: #28a745; /* Green for Phone */
    transition: all 0.2s;
}
.card-slide-menu .menu-item:hover {
    background: #218838;
}
.card-slide-menu .menu-item .title {
    font-size: 13px;
    line-height: normal;
    color: #fff;
    margin-left: 6px;
    margin-right: 0;
    font-weight: 500;
    transform: translateY(1px);
}
.card-slide-menu .menu-item .number {
    font-weight: 700;
    font-size: 15px;
    line-height: normal;
    color: #fff;
}
.btn-wrap.zalo-wrap .card-slide-menu .menu-item {
    background: #0068ff; /* Blue for Zalo */
}
.btn-wrap.zalo-wrap .card-slide-menu .menu-item:hover {
    background: #005ce6;
}


.seg-card .actions .btn-zalo img, .product-item-thaco .actions .btn-zalo img {
    width: 22px !important;
    height: 22px !important;
    margin: auto;
    display: block;
    border-radius: 4px;
}

/* Hieu ung anh sang quet cho nut bam */
.btn-shine-effect, .btn-khuyen-mai, .button-zalo-ring-wrap a.pps-btn-img {
    position: relative;
    overflow: hidden;
}
.btn-shine-effect::after, .btn-khuyen-mai::after, .button-zalo-ring-wrap a.pps-btn-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shineSweep 0.9s infinite;
}
@keyframes shineSweep {
    0% { left: -100%; }
    100% { left: 200%; }
}


@media (max-width: 767px) {
    html, body {
        overflow-x: hidden;
    }
}


@media (max-width: 767px) {
    body {
        width: 100%;
        position: relative;
        overflow-x: hidden;
    }
}

