/* ===================================================
   NDDT Custom Styles - Extracted from inline CSS
   Plugin: NDDT SEO Fixes
   =================================================== */

/* Product Card Attributes */
ul.list-pro {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 !important;
    margin-top: 10px !important;
    list-style: none !important;
    box-sizing: border-box !important;
}
ul.list-pro li {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    flex: 1 !important;
}
ul.list-pro li:first-child {
    justify-content: flex-start !important;
}
ul.list-pro li:nth-child(2) {
    justify-content: center !important;
}
ul.list-pro li:last-child {
    justify-content: flex-end !important;
}

/* Price Display */
.gia-ban {
    padding: 6px 12px 6px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}
.gia-ban .left {
    color: #1a6e3a !important;
    flex-shrink: 0;
}
.gia-ban .left .gia-label {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #1a6e3a !important;
}
.gia-ban .left span:not(.gia-label) {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #d32f2f !important;
}

/* View Count */
.nddt-view-count {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #888 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.nddt-view-count svg {
    color: #999;
    flex-shrink: 0;
}
.nddt-view-count span {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #888 !important;
}

/* Section Title */
.div-title-home {
    padding: 8px 0 8px 18px;
    border-left: 4px solid #1a6e3a;
    margin-bottom: 10px;
}
.div-title-home p {
    font-size: 13px !important;
    color: #1a6e3a !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2px !important;
}
.div-title-home h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #222 !important;
    letter-spacing: 1px;
    margin: 0 !important;
    line-height: 1.2 !important;
    background: linear-gradient(135deg, #1a6e3a 0%, #2a9d5c 50%, #1a6e3a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Banner Full Width */
#section_1480909809,
.section-tim-kiem {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Banner Height */
#banner-1759085012,
#banner-1759085012 .banner-inner,
#banner-1101671428,
#banner-1101671428 .banner-inner,
.section-tim-kiem .banner,
.section-tim-kiem .banner-inner {
    min-height: 400px !important;
    height: 400px !important;
}
#banner-1759085012 .banner-bg,
#banner-1101671428 .banner-bg,
.section-tim-kiem .banner-bg {
    min-height: 400px !important;
    height: 400px !important;
}
.section-tim-kiem .section-content,
#section_1480909809 .section-content {
    min-height: 400px !important;
}

/* NDDT Search Filter Bar */
.nddt-filter-bar {
    width: 100%;
    max-width: 960px;
    margin: 15px auto 0;
    padding: 0;
    box-sizing: border-box;
}
.nddt-filter-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.nddt-filter-item {
    flex: 1;
    position: relative;
    border-right: 1px solid #e0e0e0;
}
.nddt-filter-item:last-child {
    border-right: none;
}
.nddt-filter-item input {
    width: 100%;
    height: 50px;
    padding: 10px 15px;
    border: none;
    outline: none;
    background: #ffffff;
    font-size: 14px;
    box-shadow: none;
}
.nddt-filter-item select {
    width: 100%;
    height: 50px;
    padding: 10px 35px 10px 15px;
    border: none;
    outline: none;
    background: #ffffff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    box-sizing: border-box;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
.nddt-filter-btn-wrap {
    flex: 0 0 auto;
    min-width: 130px;
}
.nddt-filter-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    padding: 10px 20px;
    background-color: #1a6e3a;
    color: #ffffff;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
    margin: 0;
    border-radius: 0;
}

/* Random Products Marquee */
.nddt-random-products {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    padding: 0;
    margin-bottom: -15px;
    max-height: 320px !important;
}
.nddt-random-products .nddt-rp-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a6e3a;
    margin: 0 0 14px 0;
    text-align: left;
    padding-left: 22px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-left: 4px solid #1a6e3a;
    line-height: 1.3;
    background: linear-gradient(135deg, #1a6e3a 0%, #2a9d5c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nddt-random-products .nddt-rp-track {
    display: flex;
    gap: 16px;
    animation: nddt-scroll 20s linear infinite;
    width: max-content;
}
.nddt-random-products:hover .nddt-rp-track {
    animation-play-state: paused;
}
@keyframes nddt-scroll {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
.nddt-random-products .nddt-rp-card {
    flex: 0 0 220px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.nddt-random-products .nddt-rp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.nddt-random-products .nddt-rp-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}
.nddt-random-products .nddt-rp-info {
    padding: 8px 10px 10px;
}
.nddt-random-products .nddt-rp-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 4px;
}
.nddt-random-products .nddt-rp-price {
    font-size: 13px;
    font-weight: 700;
    color: #1a6e3a;
    margin: 0;
}
.nddt-rp-card:empty { display: none !important; }

/* Badge "BÁN GẤP" */
.box-image:has(.badge-container) { overflow: visible !important; }
.slider-wrapper .flickity-viewport { overflow: hidden !important; padding: 30px !important; margin: -30px !important; }
.badge-container {
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
.onsale.nddt-ban-gap-badge {
    background: linear-gradient(135deg, rgba(255,0,0,0.7), rgba(160,0,0,0.7)) !important;
    color: #ffff00 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 55px !important;
    height: 55px !important;
    line-height: 55px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4), inset 0 0 5px rgba(255,255,255,0.4) !important;
    border: 2px dashed #ffff00 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99 !important;
    transform: rotate(-15deg) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    animation: pulse-gap 1.5s infinite !important;
}
@keyframes pulse-gap {
    0% { transform: rotate(-15deg) scale(0.95); box-shadow: 0 0 0 0 rgba(255,0,0, 0.7); }
    70% { transform: rotate(-15deg) scale(1.05); box-shadow: 0 0 0 10px rgba(255,0,0, 0); }
    100% { transform: rotate(-15deg) scale(0.95); box-shadow: 0 0 0 0 rgba(255,0,0, 0); }
}

/* Fixed Section */
.nddt-fixed-section .section-content > p, .nddt-fixed-section .row > p {
    display: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.nddt-fixed-section .div-title-home h2 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    position: relative;
    top: 5px;
}
.nddt-title-row-bg {
    position: relative;
    padding-top: 15px !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
}
.nddt-title-row-bg > .col {
    padding-bottom: 0 !important;
}
.nddt-title-row-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-color: inherit;
    z-index: -1;
}

/* SEO H1 - visually hidden but accessible */
.nddt-seo-h1 {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ===================================================
   Mobile Responsive
   =================================================== */
@media (max-width: 849px) {
    .nddt-filter-bar { max-width: 95%; margin-top: 12px; }
    .nddt-filter-row { flex-wrap: wrap; border-radius: 8px; }
    .nddt-filter-item.nddt-filter-keyword {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    .nddt-filter-item:nth-child(2) {
        flex: 1 1 50%;
        border-right: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
    }
    .nddt-filter-item:nth-child(3) {
        flex: 1 1 50%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    .nddt-filter-item:nth-child(4) {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: none;
    }
    .nddt-filter-btn-wrap {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .nddt-filter-search-btn {
        border-radius: 0 0 8px 8px;
    }
    .nddt-random-products .nddt-rp-card { flex: 0 0 200px; }
    .nddt-random-products .nddt-rp-track { gap: 12px; animation-duration: 15s; }
}

@media (max-width: 767px) {
    .gia-ban .left .gia-label { font-size: 16px !important; }
    .gia-ban .left span:not(.gia-label) { font-size: 16px !important; }
    .nddt-view-count { font-size: 11px !important; }
    .nddt-view-count span { font-size: 11px !important; }
    .nddt-random-products { max-height: 320px !important; overflow: hidden !important; }
}

@media (max-width: 549px) {
    .div-title-home h2 { font-size: 22px !important; }
    .div-title-home p { font-size: 11px !important; letter-spacing: 1.5px; }
    .div-title-home { padding-left: 12px; border-left-width: 3px; }

    /* Mobile Banner */
    #banner-1759085012,
    #banner-1759085012 .banner-inner,
    #banner-1101671428,
    #banner-1101671428 .banner-inner,
    .section-tim-kiem .banner,
    .section-tim-kiem .banner-inner {
        min-height: 240px !important;
        height: 240px !important;
    }
    #banner-1759085012 .banner-bg,
    #banner-1101671428 .banner-bg,
    .section-tim-kiem .banner-bg {
        min-height: 240px !important;
        height: 240px !important;
    }
    .section-tim-kiem .section-content,
    #section_1480909809 .section-content {
        min-height: 240px !important;
    }
    .section-tim-kiem .banner,
    .section-tim-kiem .banner.has-hover {
        padding-top: 240px !important;
        overflow: hidden !important;
    }
    .section-tim-kiem {
        background-color: #ffffff !important;
        background: #ffffff !important;
    }
    .section-tim-kiem > .bg.section-bg,
    .section-tim-kiem > .section-bg {
        display: none !important;
    }
    .section-tim-kiem .section-content {
        background-color: #ffffff !important;
    }
    .section-tim-kiem .banner .overlay,
    .section-tim-kiem .video-overlay {
        background-color: transparent !important;
    }
    .section-tim-kiem .banner-inner {
        overflow: hidden !important;
    }

    /* Mobile Filter */
    .nddt-filter-bar { max-width: 92%; margin-top: 10px; }
    .nddt-filter-row { flex-wrap: wrap; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
    .nddt-filter-item.nddt-filter-keyword {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    .nddt-filter-item.nddt-filter-keyword input {
        height: 48px;
        font-size: 15px;
        padding: 10px 15px;
    }
    .nddt-filter-item:nth-child(2) {
        flex: 1 1 50%;
        border-right: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
    }
    .nddt-filter-item:nth-child(3) {
        flex: 1 1 50%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    .nddt-filter-item:nth-child(4) {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: none;
    }
    .nddt-filter-item select {
        height: 48px;
        font-size: 14px;
        padding: 10px 35px 10px 15px;
    }
    .nddt-filter-btn-wrap {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .nddt-filter-search-btn {
        height: 50px;
        font-size: 16px;
        font-weight: 700;
        border-radius: 0 0 10px 10px;
        letter-spacing: 0.5px;
    }

    /* Mobile Random Products */
    .nddt-random-products { margin-bottom: 12px; }
    .nddt-random-products .nddt-rp-card { flex: 0 0 160px; }
    .nddt-random-products .nddt-rp-track { gap: 10px; animation-duration: 12s; }
    .nddt-random-products .nddt-rp-name { font-size: 12px; }
    .nddt-random-products .nddt-rp-price { font-size: 12px; }
    .nddt-random-products .nddt-rp-info { padding: 6px 8px 8px; }
    .nddt-random-products .nddt-rp-title { padding-left: 16px; font-size: 16px; border-left-width: 3px; }
}
