/*
Theme Name: NEXWEB
Description: Theme giao diện tùy chỉnh dành riêng cho nền tảng NexAgri.
Author: NexSpace Team
Template: flatsome
Version: 2.6.1
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
input[type="date"],
textarea,
select {
    border-radius: 10px !important;
}

/* ══════════════════════════════════════════════════
   PRODUCT PAGE STYLES
   ══════════════════════════════════════════════════ */

.bd10 img,
.bd10 .box-image {
    border-radius: 10px;
}

.mgoop p {
    margin-bottom: 0 !important;
}

td,
th {
    border-bottom: 1px solid #e9e4e4;
    font-size: .9em;
    line-height: 1.3;
    padding: .5em;
    text-align: left;
}

:root {
    --nex-primary: #16a34a;
    --nex-primary-dark: #15803d;
    --nex-primary-light: #dcfce7;
    --nex-accent: #f59e0b;
    --nex-dark: #0f172a;
    --nex-text: #334155;
    --nex-text-light: #64748b;
    --nex-border: #e2e8f0;
    --nex-bg: #f8fafc;
    --nex-white: #ffffff;
    --nex-radius: 16px;
    --nex-radius-sm: 10px;
    --nex-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --nex-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
    --nex-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nex-max-width: 1200px;
}

.nex-product-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--nex-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.nex-container {
    max-width: var(--nex-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Breadcrumb ─── */
.nex-breadcrumb {
    background: var(--nex-bg);
    border-bottom: 1px solid var(--nex-border);
    padding: 14px 0;
    font-size: 13px;
}

.nex-breadcrumb a {
    color: var(--nex-text-light);
    text-decoration: none;
    transition: color var(--nex-transition);
}

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

.nex-bc-sep {
    margin: 0 8px;
    color: #cbd5e1;
}

.nex-bc-current {
    color: var(--nex-dark);
    font-weight: 600;
}

/* ─── Hero Section ─── */
.nex-product-hero {
    padding: 48px 0;
    background: var(--nex-white);
}

.nex-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Gallery */
.nex-gallery-wrap {
    position: relative;
}

.nex-gallery-main {
    border-radius: var(--nex-radius);
    overflow: hidden;
    background: var(--nex-bg);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--nex-border);
}

.nex-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.nex-gallery-main.nex-no-image .dashicons {
    font-size: 64px;
    color: #cbd5e1;
}

.nex-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.nex-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--nex-radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--nex-transition);
    opacity: 0.6;
}

.nex-thumb:hover,
.nex-thumb.is-active {
    border-color: var(--nex-primary);
    opacity: 1;
    transform: scale(1.05);
}

.nex-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.nex-product-cat {
    display: inline-block;
    background: var(--nex-primary-light);
    color: var(--nex-primary-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 10px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    transition: all var(--nex-transition);
}

.nex-product-cat:hover {
    background: var(--nex-primary);
    color: var(--nex-white);
}

.nex-product-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--nex-dark);
    line-height: 1.3;
    margin: 0 0 12px;
}

.nex-stock {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.nex-in-stock {
    color: var(--nex-primary);
}

.nex-out-stock {
    color: #ef4444;
}

/* Price */
.nex-price-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7, #fef9c3);
    border-radius: var(--nex-radius-sm);
    border: 1px solid #fde68a;
}

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

.nex-price-original {
    font-size: 18px;
    color: #94a3b8;
    text-decoration: line-through;
}

.nex-price-badge {
    background: #dc2626;
    color: var(--nex-white);
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 10px;
    animation: nex-pulse 2s ease-in-out infinite;
}

@keyframes nex-pulse {

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

    50% {
        transform: scale(1.08);
    }
}

/* Excerpt */
.nex-product-excerpt {
    color: var(--nex-text-light);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.nex-product-excerpt p {
    margin: 0;
}

/* Mini highlights */
.nex-mini-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.nex-mini-highlights li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--nex-dark);
    padding: 8px 12px;
    background: var(--nex-bg);
    border-radius: 10px;
    border: 1px solid var(--nex-border);
}

.nex-mini-hl-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

/* CTA */
.nex-product-cta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.nex-btn-primary,
.nex-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--nex-radius-sm);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--nex-transition);
    cursor: pointer;
    border: none;
}

.nex-btn-primary {
    background: linear-gradient(135deg, var(--nex-primary), var(--nex-primary-dark));
    color: var(--nex-white);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.nex-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.4);
    color: var(--nex-white);
}

.nex-btn-secondary {
    background: var(--nex-white);
    color: var(--nex-primary);
    border: 2px solid var(--nex-primary);
}

.nex-btn-secondary:hover {
    background: var(--nex-primary-light);
    transform: translateY(-2px);
    color: var(--nex-primary-dark);
}

/* ─── Sections Common ─── */
.nex-section {
    padding: 64px 0;
}

.nex-section:nth-child(even) {
    background: var(--nex-bg);
}

.nex-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    color: var(--nex-dark);
    margin-bottom: 36px;
    text-align: center;
    justify-content: center;
}

.nex-heading-icon {
    font-size: 28px;
}

/* ─── Highlights Grid ─── */
.nex-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.nex-highlight-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--nex-white);
    border-radius: var(--nex-radius);
    border: 1px solid var(--nex-border);
    transition: all var(--nex-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nex-highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nex-shadow);
    border-color: var(--nex-primary);
}

.nex-hl-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--nex-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px;
}

.nex-hl-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nex-hl-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--nex-dark);
}

/* ─── Feature Section (Zigzag) ─── */
.nex-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
}

.nex-feature-row:last-child {
    margin-bottom: 0;
}

.nex-feature-row.nex-feature-reverse .nex-feature-media {
    order: 2;
}

.nex-feature-row.nex-feature-reverse .nex-feature-content {
    order: 1;
}

.nex-feature-media {
    border-radius: var(--nex-radius);
    overflow: hidden;
    background: var(--nex-bg);
    border: 1px solid var(--nex-border);
    aspect-ratio: 4/3;
}

.nex-feature-media img,
.nex-feature-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nex-feature-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nex-feature-placeholder .dashicons {
    font-size: 48px;
    color: #cbd5e1;
}

.nex-feature-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--nex-dark);
    margin: 0 0 12px;
    position: relative;
    padding-left: 18px;
}

.nex-feature-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--nex-primary), var(--nex-accent));
    border-radius: 10px;
}

.nex-feature-text {
    font-size: 15px;
    color: var(--nex-text-light);
    line-height: 1.8;
    margin: 0;
}

/* ─── Specs Accordion ─── */
.nex-specs-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.nex-spec-group-card {
    margin-bottom: 12px;
    border-radius: var(--nex-radius-sm);
    overflow: hidden;
    border: 1px solid var(--nex-border);
    background: var(--nex-white);
}

.nex-spec-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--nex-white);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: var(--nex-dark);
    transition: all var(--nex-transition);
    font-family: inherit;
}

.nex-spec-group-toggle:hover {
    background: var(--nex-bg);
}

.nex-spec-group-toggle .nex-chevron {
    transition: transform var(--nex-transition);
}

.nex-spec-group-toggle.is-open .nex-chevron {
    transform: rotate(180deg);
}

.nex-spec-group-toggle.is-open {
    background: var(--nex-primary-light);
    color: var(--nex-primary-dark);
}

.nex-spec-group-body {
    display: none;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

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

.nex-spec-table tr {
    border-top: 1px solid var(--nex-border);
}

.nex-spec-table td {
    padding: 14px 24px;
    font-size: 14px;
}

.nex-spec-name {
    font-weight: 600;
    color: var(--nex-dark);
    width: 40%;
    background: #fafbfc;
}

.nex-spec-desc {
    color: var(--nex-text);
}

/* ─── FAQ Accordion ─── */
.nex-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.nex-faq-item {
    margin-bottom: 12px;
    border-radius: var(--nex-radius-sm);
    overflow: hidden;
    border: 1px solid var(--nex-border);
    background: var(--nex-white);
}

.nex-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--nex-white);
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--nex-dark);
    text-align: left;
    transition: all var(--nex-transition);
    font-family: inherit;
    gap: 16px;
}

.nex-faq-question:hover {
    background: var(--nex-bg);
}

.nex-faq-question .nex-chevron {
    transition: transform var(--nex-transition);
    flex-shrink: 0;
}

.nex-faq-question.is-open .nex-chevron {
    transform: rotate(180deg);
}

.nex-faq-question.is-open {
    background: var(--nex-primary-light);
    color: var(--nex-primary-dark);
}

.nex-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.nex-faq-answer p {
    padding: 0 24px 20px;
    margin: 0;
    color: var(--nex-text-light);
    font-size: 14px;
    line-height: 1.8;
}

/* ─── Promo Card ─── */
.nex-promo-section {
    background: linear-gradient(160deg, #ecfdf5 0%, #f0fdf4 50%, #fefce8 100%) !important;
}

.nex-promo-card {
    background: var(--nex-white);
    border-radius: var(--nex-radius);
    padding: 48px;
    box-shadow: var(--nex-shadow-lg);
    border: 2px solid var(--nex-primary-light);
    position: relative;
    overflow: hidden;
}

.nex-promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--nex-primary), var(--nex-accent));
}

.nex-promo-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--nex-dark);
    margin: 0 0 24px;
    text-align: center;
}

.nex-promo-content {
    font-size: 15px;
    line-height: 1.8;
}

.nex-promo-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--nex-dark);
    margin: 24px 0 12px;
}

.nex-promo-content h3:first-child {
    margin-top: 0;
}

.nex-promo-content ul {
    padding-left: 0;
    list-style: none;
}

.nex-promo-content li {
    padding: 8px 0 8px 24px;
    position: relative;
    border-bottom: 1px solid var(--nex-border);
}

.nex-promo-content li:last-child {
    border-bottom: none;
}

.nex-promo-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--nex-primary);
    font-weight: 700;
}

/* ─── Description ─── */
.nex-content-wrap {
    max-width: 800px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.9;
}

.nex-content-wrap h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--nex-dark);
    margin: 32px 0 16px;
}

.nex-content-wrap h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--nex-dark);
    margin: 24px 0 12px;
}

.nex-content-wrap p {
    margin-bottom: 16px;
}

.nex-content-wrap img {
    border-radius: var(--nex-radius-sm);
    max-width: 100%;
    height: auto;
}

/* ─── Related Products ─── */
.nex-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.nex-related-card {
    background: var(--nex-white);
    border-radius: var(--nex-radius);
    overflow: hidden;
    border: 1px solid var(--nex-border);
    text-decoration: none;
    transition: all var(--nex-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nex-related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--nex-shadow);
    border-color: var(--nex-primary);
}

.nex-related-img {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--nex-bg);
}

.nex-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--nex-transition);
}

.nex-related-card:hover .nex-related-img img {
    transform: scale(1.05);
}

.nex-related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nex-related-placeholder .dashicons {
    font-size: 40px;
    color: #cbd5e1;
}

.nex-related-body {
    padding: 16px;
}

.nex-related-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--nex-dark);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nex-related-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nex-rp-sale {
    font-size: 16px;
    font-weight: 800;
    color: #dc2626;
}

.nex-rp-orig {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

/* ─── Fade-in Animation ─── */
.nex-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.nex-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─── */
@media only screen and (max-width: 48em) {
    .nex-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nex-product-title {
        font-size: 22px;
    }

    .nex-price-sale {
        font-size: 22px;
    }

    .nex-product-cta {
        flex-direction: column;
    }

    .nex-btn-primary,
    .nex-btn-secondary {
        justify-content: center;
        width: 100%;
    }

    .nex-highlights-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .nex-highlight-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 10px;
    }

    .nex-feature-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nex-feature-row.nex-feature-reverse .nex-feature-media {
        order: 0;
    }

    .nex-feature-row.nex-feature-reverse .nex-feature-content {
        order: 0;
    }

    .nex-section-heading {
        font-size: 20px;
    }

    .nex-section {
        padding: 40px 0;
    }

    .nex-spec-group-toggle,
    .nex-faq-question {
        padding: 14px 18px;
        font-size: 14px;
    }

    .nex-spec-table td {
        padding: 10px 18px;
        font-size: 13px;
    }

    .nex-promo-card {
        padding: 24px;
    }

    .nex-promo-title {
        font-size: 20px;
    }

    .nex-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .nex-mini-highlights {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 30em) {
    .nex-highlights-grid {
        grid-template-columns: 1fr;
    }

    .nex-highlight-card {
        flex-direction: row;
        text-align: left;
    }
}

/* --- CSS Extracted natively from single-product.php --- */

.nxp * {
    box-sizing: border-box;
}

section.nxp-sec.alttop {
    background: #366b01ff;
}

.nxp {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: #1e293b;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.nxp img {
    max-width: 100%;
    height: auto;
}



.nxp-bc {
    background: #f1f5f98c;
    padding: 8px 0;
    font-size: 13px;
}

.nxp-bc a {
    color: #64748b;
    text-decoration: none;
}

.nxp-bc a:hover {
    color: #16a34a;
}

.nxp-bc .sep {
    margin: 0 8px;
    color: #cbd5e1;
}

.nxp-bc .cur {
    color: #0f172a;
    font-weight: 600;
}


.nxp-hero {
    background: #ffffff;
    color: #0f172a;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.nxp-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.nxp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.nxp-hero-gallery {
    position: relative;
}

.nxp-hero-main {
    overflow: hidden;
    aspect-ratio: 4/3;
    border-radius: 10px;
    display: block;
    width: 100%;
    position: relative;
}

.nxp-hero-main img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: opacity .25s ease;
    mix-blend-mode: darken;
    border-radius: 10px;
}

.nxp-zoom-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgb(255 255 255 / 33%);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #334155;
    transition: all .2s;
    z-index: 10;
    margin: 0;
}

.nxp-zoom-btn:hover {
    background: #fff;
    transform: scale(1.05);
    color: #5b9027;
}

.nxp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}

.nxp-lightbox.show {
    opacity: 1;
    visibility: visible;
}

.nxp-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nxp-lb-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.nxp-lb-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.nxp-hero-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.nxp-thumb {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: .6;
    transition: all .3s ease;
    background: #f8fafc;
}

.nxp-thumb.act,
.nxp-thumb:hover {
    border-color: #16a34a;
    opacity: 1;
    transform: scale(1.08);
}

.nxp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: darken;
}


.nxp-hero-info .nxp-cat {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 16px;
    text-decoration: none;
    border: 1px solid #bbf7d0;
}

.nxp-hero-info .nxp-cat:hover {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.nxp-hero-info h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 16px;
    color: #0f172a;
}

.nxp-stock {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.nxp-stock.out {
    color: #ef4444;
}


.nxp-price {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nxp-price .sale {
    font-size: 30px;
    font-weight: 900;
    color: #ea580c;
}

.nxp-price .orig {
    font-size: 17px;
    color: #94a3b8;
    text-decoration: line-through;
}


@keyframes nxpulse {

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

    50% {
        transform: scale(1.1)
    }
}

.nxp-excerpt {
    color: #475569;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.8;
}

.nxp-excerpt p {
    margin: 0;
}


.nxp-minihl {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.nxp-minihl li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.nxp-minihl li img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}


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

.nxp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 32px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    transition: all .3s ease;
    font-family: inherit;
}

.nxp-btn-p {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
}

.nxp-btn-p:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.5);
    color: #fff !important;
}

.nxp-btn-s {
    background: #f1f5f9;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

.nxp-btn-s:hover {
    border-color: #94a3b8 !important;
    background: #e2e8f0;
    color: #0f172a !important;
    transform: translateY(-3px);
}

.nxp-btn svg {
    flex-shrink: 0;
}


.nxp-sec {
    padding: 70px 0;
}

.nxp-sec-head {
    text-align: center;
    margin-bottom: 48px;
}

.nxp-sec-head p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}


.nxp-sec-hl {
    background-color: #5b9027;
    padding: 56px 0;
}

.nxp-sec-hl .nxp-sec-head h2 {
    color: #fff;
}

.nxp-hl-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin: 0 auto;
    max-width: 1200px;
}

.nxp-hl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 14px;
    padding: 12px;
    transition: all .3s ease;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.nxp-hl-card:hover {
    transform: translateY(-6px);
}

.nxp-hl-ic {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nxp-hl-ic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nxp-hl-text {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    display: block;
}

@media (max-width: 1024px) {
    .nxp-hl-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .nxp-hl-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}


.nxp-feat {
    padding: 48px 0;
}

.nxp-feat:nth-child(odd) {
    background: #fff;
}

.nxp-feat:nth-child(even) {
    background: #f8fafc;
}

.nxp-feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.nxp-feat.rev .nxp-feat-img {
    order: 2;
}

.nxp-feat.rev .nxp-feat-body {
    order: 1;
}

.nxp-feat-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nxp-feat-img {
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    aspect-ratio: 4/3;
}

.nxp-feat-img img,
.nxp-feat-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.nxp-feat:hover .nxp-feat-img img,
.nxp-feat:hover .nxp-feat-img video {
    transform: scale(1.03);
}

.nxp-feat-body h2 {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
    position: relative;
}

.nxp-feat-body p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.9;
    margin: 0;
}


.nxp-sec-specs {
    background-color: #f6f6f6;
    padding: 40px 0;
}

.nxp-sec-specs .nxp-sec-head h2 {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 40px;
}

.nxp-specs-acc {
    margin: 0 auto;
    border-bottom: 1px solid #e2e8f0;
}

.nxp-sg {
    border-top: 1px solid #e2e8f0;
}

.nxp-sg-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    font-family: inherit;
    transition: color .3s ease;
    margin-bottom: 0;
    line-height: 1;
    text-transform: none;
}

.nxp-sg-btn.open,
.nxp-sg-btn:hover {
    color: #408100;
}

.nxp-sg-btn.open .nxp-sg-icon::before,
.nxp-sg-btn.open .nxp-sg-icon::after,
.nxp-sg-btn:hover .nxp-sg-icon::before,
.nxp-sg-btn:hover .nxp-sg-icon::after {
    background: #408100;
}

.nxp-sg-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.nxp-sg-icon::before,
.nxp-sg-icon::after {
    content: '';
    position: absolute;
    background: #111;
    transition: transform .3s ease;
}

.nxp-sg-icon::before {
    top: 6px;
    left: 0;
    width: 14px;
    height: 2px;
}

.nxp-sg-icon::after {
    top: 0;
    left: 6px;
    width: 2px;
    height: 14px;
}

.nxp-sg-btn.open .nxp-sg-icon::after {
    transform: scaleY(0);
}

.nxp-sg-body {
    display: none;
    overflow: hidden;
    padding-bottom: 24px;
}

.nxp-sg-body table {
    width: 100%;
    border-collapse: collapse;
}

.nxp-sg-body tr {
    border-top: 1px solid #f1f5f9;
}

.nxp-sg-body tr:first-child {
    border-top: none;
}

.nxp-sg-body td {
    padding: 10px;
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    border: 1px solid #ddd;
}

.nxp-sg-body td:first-child {
    font-weight: 600;
    color: #0f172a;
    width: 40%;
    background: #eee;
}


.nxp-sec-faq {
    max-width: 1200px;
    margin: 0 auto;
}

.nxp-faq-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: stretch;
}

.nxp-faq-left {
    position: sticky;
    top: 120px;
    background-color: #f2f7ef;
    padding: 32px;
    border-radius: 10px;
    border: 1px solid #e1ecdb;
}

.nxp-faq-left h2 {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    line-height: 1.3;
    margin: 0 0 16px 0;
}

.nxp-btn-consult {
    display: inline-block;
    background-color: #5b9027;
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all .3s ease;
    box-shadow: 0 4px 12px rgba(91, 144, 39, 0.25);
    margin-top: 8px;
}

.nxp-btn-consult:hover {
    background-color: #4a751f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(91, 144, 39, 0.35);
    color: #fff;
}

.nxp-faqs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nxp-faq {
    border-radius: 10px;
    overflow: hidden;
    background: #f4f5f5;
}

.nxp-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    text-align: left;
    transition: background .3s ease;
    font-family: inherit;
    margin: 0;
    text-transform: none;
    line-height: 1.4;
}

.nxp-faq-q.open,
.nxp-faq-q:hover {
    color: #408100;
    background: #e5e7eb;
}

.nxp-faq-q.open .nxp-acc-ic::before,
.nxp-faq-q.open .nxp-acc-ic::after,
.nxp-faq-q:hover .nxp-acc-ic::before,
.nxp-faq-q:hover .nxp-acc-ic::after {
    background: #408100;
}

.nxp-faq-q .nxp-acc-ic {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.nxp-faq-q .nxp-acc-ic::before,
.nxp-faq-q .nxp-acc-ic::after {
    content: '';
    position: absolute;
    background: #111;
    transition: transform .3s ease;
}

.nxp-faq-q .nxp-acc-ic::before {
    top: 6px;
    left: 0;
    width: 14px;
    height: 2px;
}

.nxp-faq-q .nxp-acc-ic::after {
    top: 0;
    left: 6px;
    width: 2px;
    height: 14px;
}

.nxp-faq-q.open .nxp-acc-ic::after {
    transform: scaleY(0);
}

.nxp-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.nxp-faq-a p {
    padding: 4px 24px 24px;
    margin: 0;
    color: #475569;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .nxp-faq-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nxp-faq-left {
        position: static;
    }

    .nxp-faq-left h2 {
        font-size: 28px;
    }
}


.nxp-promo-bg {
    background: linear-gradient(160deg, #ecfdf5, #f0fdf4 50%, #fefce8 100%) !important;
}

.nxp-promo {
    background: #fff;
    border-radius: 10px;
    padding: 48px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
    border: 2px solid #dcfce7;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.nxp-promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #16a34a, #f59e0b);
}

.nxp-promo h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 24px;
    text-align: center;
}

.nxp-promo h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 24px 0 12px;
}

.nxp-promo h3:first-child {
    margin-top: 0;
}

.nxp-promo ul {
    padding-left: 0;
    list-style: none;
}

.nxp-promo li {
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
}

.nxp-promo li:last-child {
    border-bottom: none;
}

.nxp-promo li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
}


.nxp-desc {
    margin: 0 auto;
    line-height: 1.9;
}

.nxp-desc h2 {
    font-size: 30px;
    font-weight: 700;
}

.nxp-desc img {
    border-radius: 10px;
}


.nxp-rel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.nxp-rel-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    text-decoration: none !important;
    transition: all .3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nxp-rel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.nxp-rel-cover {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8fafc;
}

.nxp-rel-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.nxp-rel-card:hover .nxp-rel-cover img {
    transform: scale(1.06);
}

.nxp-rel-body {
    padding: 16px;
}

.nxp-rel-body h3 {
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nxp-rel-pr {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nxp-rel-pr .s {
    font-size: 16px;
    font-weight: 800;
    color: #dc2626;
}

.nxp-rel-pr .o {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}


.nxp-fi {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.nxp-fi.vis {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 768px) {
    .nxp-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .nxp-hero-info h1 {
        font-size: 24px !important;
    }

    .nxp-price .sale {
        font-size: 24px !important;
    }

    .nxp-cta {
        flex-direction: column;
    }

    .nxp-btn {
        justify-content: center;
        width: 100%;
    }

    .nxp-minihl {
        grid-template-columns: 1fr !important;
    }

    .nxp-hl-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .nxp-hl-card {
        flex-direction: column;
        text-align: center;
        padding: 18px !important;
        gap: 10px !important;
    }

    .nxp-feat {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }

    .nxp-feat.rev .nxp-feat-img,
    .nxp-feat.rev .nxp-feat-body {
        order: 0 !important;
    }

    .nxp-feat-img {
        aspect-ratio: 16/9;
    }

    .nxp-feat-body {
        padding: 28px 20px !important;
    }

    .nxp-feat-body h2 {
        font-size: 30px !important;
    }

    .nxp-sec {
        padding: 48px 0 !important;
    }

    .nxp-sec-head h2 {
        font-size: 22px !important;
    }

    .nxp-promo {
        padding: 24px !important;
    }

    .nxp-rel-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    .nxp-tab-btn,
    .nxp-faq-q {
        padding: 14px 18px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .nxp-hl-grid {
        grid-template-columns: 1fr !important;
    }

    .nxp-hl-card {
        flex-direction: row !important;
        text-align: left !important;
    }
}

#nxp-f-slider::-webkit-scrollbar {
    display: none;
}

.nxp-slider-btn:hover {
    background: #f1f5f9 !important;
}

@media (max-width: 1024px) {
    .nxp-f-slider>a {
        flex: 0 0 calc(40% - 15px) !important;
    }
}

@media (max-width: 768px) {
    .nxp-f-slider>a {
        flex: 0 0 calc(65% - 15px) !important;
    }
}

.nxp-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1) !important;
}

.nxp-promo-card:hover .nxp-promo-thumb img {
    transform: scale(1.05);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- CSS Extracted natively from single.php --- */

/* Full Width Breadcrumb */
.nxp-sg-bc {
    background: #f1f5f9;
    padding: 8px 0;
}

.nxp-sg-bc .container {
    font-size: 14px;
    color: #64748b;
}

.nxp-sg-bc a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.nxp-sg-bc a:hover {
    color: #15803d;
}

.nxp-sg-bc .sep {
    margin: 0 10px;
    color: #cbd5e1;
}

/* Single Post Layout */
.nxp-single-page {
    padding: 30px 0 40px;
    background: #f8fafc;
}

/* Layout Grid */
.nxp-sg-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
}

/* Left Content */
.nxp-sg-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nxp-single-title {
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 20px;
}

.nxp-single-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #64748b;
    font-size: 14px;
    padding-bottom: 25px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
    flex-wrap: wrap;
}

.nxp-single-meta>span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nxp-single-meta .author {
    font-weight: 600;
    color: #334155;
}

.nxp-sg-thumb {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.nxp-sg-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.nxp-article-body {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}

.nxp-article-body h2,
.nxp-article-body h3 {
    color: #0f172a;
    font-weight: 800;
    margin: 30px 0 15px;
}

.nxp-article-body h2 {
    font-size: 26px;
}

.nxp-article-body h3 {
    font-size: 22px;
}

.nxp-article-body p {
    margin-bottom: 20px;
}

.nxp-article-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.nxp-article-body li {
    margin-bottom: 10px;
}

.nxp-article-body blockquote {
    font-style: italic;
    color: #16a34a;
    font-size: 19px;
    line-height: 1.6;
    border-left: 4px solid #16a34a;
    padding: 20px;
    margin: 30px 0;
    background: #f0fdf4;
    border-radius: 0 10px 10px 0;
}

/* Right Sidebar */
.nxp-sg-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nxp-widget {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nxp-wd-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.nxp-wd-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #16a34a;
}

/* Categories List Widget */
.nxp-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nxp-cat-list li {
    margin-bottom: 0;
    border-bottom: 1px dashed #f1f5f9;
}

.nxp-cat-list li:last-child {
    border-bottom: none;
}

.nxp-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nxp-cat-list a:hover {
    color: #16a34a;
}

.nxp-cat-list .count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Featured Posts Widget */
.nxp-wd-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nxp-wd-post {
    display: flex;
    gap: 15px;
    text-decoration: none;
    align-items: center;
}

.nxp-wd-post:hover .nxp-wd-p-title {
    color: #16a34a;
}

.nxp-wd-p-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    background: #e2e8f0;
    flex-shrink: 0;
}

.nxp-wd-p-info {
    display: flex;
    flex-direction: column;
}

.nxp-wd-p-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.nxp-wd-p-date {
    font-size: 12px;
    color: #94a3b8;
}

/* Related Posts Bottom Section */
.nxp-rel-wrapper {
    margin-top: 30px;
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
}

.nxp-rel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.nxp-rel-head h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.nxp-rel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.nxp-rel-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
    color: inherit;
}

.nxp-rel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.nxp-rel-card-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: #e2e8f0;
}

.nxp-rel-card-body {
    padding: 20px;
}

.nxp-rel-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nxp-rel-card-date {
    font-size: 13px;
    color: #94a3b8;
}

@media (max-width: 1024px) {
    .nxp-sg-layout {
        grid-template-columns: 1fr;
    }

    .nxp-sg-content {
        padding: 30px 20px;
    }

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

@media (max-width: 640px) {
    .nxp-rel-grid {
        grid-template-columns: 1fr;
    }

    .nxp-single-title {
        font-size: 28px;
    }
}

.nxp-rel-slider::-webkit-scrollbar {
    display: none;
}

/* --- CSS Extracted natively from category.php --- */

/* Global Category Layout */
.nxp-cat-hero {
    background: linear-gradient(135deg, rgb(22 163 74 / 60%) 0%, rgb(21 128 61 / 69%) 100%), url(https://nongnghiep.nexspace.vn/wp-content/themes/nexweb/cat-hero-bg.png) center / cover no-repeat;
    background-attachment: fixed;
    padding: 80px 0;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.nxp-cat-hero h1 {
    color: #fff !important;
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 15px;
}

.nxp-cat-hero .nxp-cat-desc {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.nxp-bc-light {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.nxp-bc-light a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.nxp-bc-light a:hover {
    text-decoration: underline;
}

.nxp-bc-light .sep {
    margin: 0 10px;
}

/* Featured Posts Layout */
.nxp-feat-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.nxp-feat-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease;
}

.nxp-feat-card:hover {
    transform: translateY(-5px);
}

.nxp-feat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.nxp-feat-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.nxp-feat-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
}

.nxp-badge {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nxp-feat-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.4;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nxp-feat-card.large {
    min-height: 480px;
}

.nxp-feat-card.large .nxp-feat-title {
    font-size: 32px;
    -webkit-line-clamp: 3;
}

.nxp-feat-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 30px;
}

.nxp-feat-card.small {
    min-height: 225px;
}

.nxp-feat-card.small .nxp-feat-content {
    padding: 20px;
}

.nxp-feat-card.small .nxp-feat-title {
    font-size: 18px;
}

/* Main Archive Grid */
.nxp-archive-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

.nxp-archive-head h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    position: relative;
}

.nxp-archive-head h2::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    height: 2px;
    width: 60px;
    background: #16a34a;
}

.nxp-post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.nxp-post-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.nxp-post-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.nxp-post-thumb {
    width: 100%;
    height: 200px;
    position: relative;
    background: #e2e8f0;
    overflow: hidden;
}

.nxp-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nxp-post-card:hover .nxp-post-thumb img {
    transform: scale(1.05);
}

.nxp-post-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nxp-post-meta {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nxp-post-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nxp-post-excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.nxp-read-more {
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.nxp-read-more svg {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.nxp-post-card:hover .nxp-read-more svg {
    transform: translateX(4px);
}

/* Pagination */
.nxp-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 80px;
}

.nxp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nxp-pagination .page-numbers:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.nxp-pagination .page-numbers.current {
    background: #16a34a;
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .nxp-feat-grid {
        grid-template-columns: 1fr;
    }

    .nxp-feat-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        gap: 20px;
    }

    .nxp-feat-card.large {
        min-height: 380px;
    }

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

@media (max-width: 768px) {
    .nxp-post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .nxp-feat-side {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nxp-post-grid {
        grid-template-columns: 1fr;
    }

    .nxp-feat-card.large {
        min-height: 300px;
    }
}

/* --- Extracted Inline Styles from single-product.php --- */
.nxp-form-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nxp-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    background: #fff;
    outline: none;
    transition: border-color 0.3s;
}

textarea.nxp-input {
    resize: vertical;
}

.nxp-input:focus {
    border-color: #16a34a;
}

.nxp-submit-wrap {
    text-align: center;
    margin-top: 8px;
}

.nxp-submit-btn {
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    margin: 0;
    padding: 12px 24px;
}

.nxp-submit-btn:hover {
    background: #15803d;
}

.nxp-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.nxp-modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    padding: 32px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nxp-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    margin: 0;
    transition: color 0.2s;
}

.nxp-close-btn:hover {
    color: #ef4444;
}

.nxp-center-title {
    font-size: 28px;
    text-align: center;
    margin: 0 0 8px 0;
}

.nxp-center-desc {
    text-align: center;
    color: #64748b;
    margin-bottom: 24px;
}

.nxp-f-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0;
    padding: 10px 0 24px 0;
}

.nxp-f-slider::-webkit-scrollbar {
    display: none;
}

.nxp-f-slider>.nxp-fi {
    flex: 0 0 calc(28.57% - 20px);
    scroll-snap-align: start;
    min-width: 260px;
}

/* ══════════════════════════════════════════════════
   NEXPRODUCTS UX ELEMENT
   ══════════════════════════════════════════════════ */
.nxp-ux-feat-products {
    margin-bottom: 50px;
}

.nxp-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.nxp-section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin: 0;
}

.nxp-section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #16a34a;
    border-radius: 3px;
}

.nxp-fp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.nxp-fp-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

/* Overlay Card Base */
.nxp-fp-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    background: #0f172a;
}

.nxp-fp-card.large {
    height: 100%;
}

.nxp-fp-card.small {
    aspect-ratio: 1 / 1;
    height: auto;
}

.nxp-fp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Image Layer */
.nxp-fp-thumb {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.nxp-fp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.nxp-fp-card:hover .nxp-fp-thumb img {
    transform: scale(1.05);
    opacity: 1;
}

.nxp-blank-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #cbd5e1;
    background: #334155;
}

/* Badges */
.nxp-fp-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ef4444;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 3;
}

.nxp-fp-badge.small {
    top: 12px;
    left: 12px;
    font-size: 11px;
    padding: 3px 8px;
}

/* Overlay Content Layer (Shade) */
.nxp-fp-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 25px 25px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.nxp-fp-card.small .nxp-fp-info {
    padding: 40px 15px 15px;
}

/* Typography */
.nxp-fp-title {
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.nxp-fp-card.small .nxp-fp-title {
    font-size: 15px;
    margin: 0 0 6px;
    font-weight: 600;
}

.nxp-fp-price {
    font-size: 18px;
    font-weight: 800;
    color: #5b9027;
    transition: color 0.2s ease;
}

.nxp-fp-card:hover .nxp-fp-price {
    color: #ff5722;
}

.nxp-fp-price del {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
}

.nxp-fp-card.small .nxp-fp-price {
    font-size: 15px;
}

.nxp-fp-card.small .nxp-fp-price del {
    font-size: 12px;
}

/* Hide the old button */
.nxp-fp-btn {
    display: none;
}

@media (max-width: 1024px) {
    .nxp-fp-layout {
        grid-template-columns: 1fr !important;
    }

    .nxp-fp-card.large {
        height: 350px !important;
    }
}

@media (max-width: 640px) {
    .nxp-fp-right {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .nxp-fp-card.small {
        aspect-ratio: auto !important;
        width: 100% !important;
        height: 280px !important;
    }

    .nxp-fp-card.large {
        height: 280px !important;
    }
}