.nds-home-main {
    width: 100%;
    overflow: hidden;
    background: #fff;
}

.nds-home-main * { box-sizing: border-box; }
.nds-home-main img { display: block; max-width: 100%; }

.nds-hero {
    position: relative;
    padding: 88px 0 82px;
    background:
        radial-gradient(circle at 12% 20%, rgba(37,99,235,.10), transparent 31%),
        radial-gradient(circle at 90% 18%, rgba(14,165,233,.09), transparent 28%),
        linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
}

.nds-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(148,163,184,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.055) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.nds-hero .nds-container { position: relative; z-index: 1; }

.nds-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
    align-items: center;
    gap: 70px;
}

.nds-hero-content { min-width: 0; }

.nds-eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 10px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: rgba(239,246,255,.95);
    color: #2563eb;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nds-hero-content h1 {
    max-width: 690px;
    margin: 0;
    color: #0f172a;
    font-size: clamp(42px, 5.2vw, 68px);
    line-height: .99;
    letter-spacing: -.055em;
    font-weight: 880;
}

.nds-hero-content h1 span { color: #2563eb; }

.nds-hero-content > p {
    max-width: 640px;
    margin: 23px 0 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}

.nds-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.nds-primary-button,
.nds-secondary-button {
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 820;
    transition: transform .2s ease, box-shadow .2s ease;
}

.nds-primary-button {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 14px 30px rgba(37,99,235,.23);
}

.nds-primary-button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px rgba(37,99,235,.27); }
.nds-secondary-button { border: 1px solid #dce4ee; background: #fff; color: #0f172a; }
.nds-secondary-button:hover { color: #2563eb; border-color: #bfdbfe; transform: translateY(-2px); }

.nds-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-top: 28px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.nds-hero-points span { white-space: nowrap; }

.nds-hero-visual { min-width: 0; }

.nds-preview-panel {
    width: 100%;
    padding: 17px;
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 24px;
    background: rgba(255,255,255,.91);
    box-shadow: 0 28px 80px rgba(15,23,42,.13);
}

.nds-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

.nds-preview-heading small, .nds-preview-heading strong { display: block; }
.nds-preview-heading small { margin-bottom: 3px; color: #94a3b8; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.nds-preview-heading strong { color: #0f172a; font-size: 13px; }
.nds-preview-heading > span { padding: 5px 8px; border-radius: 999px; background: #eff6ff; color: #2563eb; font-size: 9px; font-weight: 800; }

.nds-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.nds-preview-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e6ebf2;
    border-radius: 15px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(15,23,42,.055);
    transition: transform .2s ease, box-shadow .2s ease;
}

.nds-preview-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,23,42,.10); }
.nds-preview-image { height: 150px; overflow: hidden; display: grid; place-items: center; background: #eef3f8; }
.nds-preview-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.nds-preview-placeholder { color: #2563eb; font-size: 22px; font-weight: 900; }
.nds-preview-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; }
.nds-preview-info strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.nds-preview-info span { flex: 0 0 auto; padding: 4px 6px; border-radius: 999px; background: #0f172a; color: #fff; font-size: 8px; font-weight: 850; }

.nds-stats-section { position: relative; z-index: 2; margin-top: -28px; }
.nds-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; border: 1px solid #e6ebf2; border-radius: 18px; background: #fff; box-shadow: 0 16px 45px rgba(15,23,42,.08); }
.nds-stats-grid > div { position: relative; padding: 22px 16px; text-align: center; }
.nds-stats-grid > div:not(:last-child)::after { content:''; position:absolute; top:18px; right:0; bottom:18px; width:1px; background:#edf2f7; }
.nds-stats-grid strong, .nds-stats-grid span { display: block; }
.nds-stats-grid strong { color:#0f172a; font-size:22px; letter-spacing:-.03em; }
.nds-stats-grid span { margin-top:3px; color:#94a3b8; font-size:10px; font-weight:700; }

.nds-home-section { padding: 88px 0; }
.nds-home-section-soft { background: #f7f9fc; }
.nds-section-heading { max-width: 680px; margin: 0 auto 39px; text-align: center; }
.nds-section-heading > span { display:block; margin-bottom:9px; color:#2563eb; font-size:10px; font-weight:850; letter-spacing:.09em; text-transform:uppercase; }
.nds-section-heading h2 { margin:0; color:#0f172a; font-size:clamp(30px,4vw,46px); line-height:1.08; letter-spacing:-.045em; }
.nds-section-heading p { margin:14px auto 0; color:#64748b; font-size:13px; line-height:1.8; }

.nds-ajax-products,
.nds-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* Supports the existing HTML returned by load_uitemplete_products.php without Bootstrap/app.css. */
.nds-ajax-products > * { min-width: 0; display: flex; margin: 0 !important; padding: 0 !important; width: auto !important; max-width: none !important; }
.nds-ajax-products > * > a { width: 100% !important; color: inherit !important; text-decoration: none !important; }
.nds-site .d-none { display: none !important; }

.pro-card {
    width: 100% !important;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e6ebf2 !important;
    border-radius: 17px !important;
    background: #fff !important;
    box-shadow: 0 7px 24px rgba(15,23,42,.055) !important;
    transition: .22s ease;
}

.pro-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(15,23,42,.10) !important; }
.pro-img-wrap { position: relative !important; height: 225px !important; min-height: 225px !important; overflow: hidden !important; display: grid !important; place-items: center !important; background: #eef3f8 !important; }
.pro-img { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: cover !important; transition: transform .3s ease; }
.pro-card:hover .pro-img { transform: scale(1.025); }
.pro-card .p-4 { padding: 17px !important; }
.pro-card h5 { margin: 0 !important; color: #0f172a !important; font-size: 14px !important; line-height: 1.35 !important; }
.pro-card p { color: #64748b !important; font-size: 11px !important; line-height: 1.65 !important; }
.price-pill { flex: 0 0 auto; padding: 5px 8px !important; border-radius: 999px !important; background: #0f172a !important; color: #fff !important; font-size: 9px !important; font-weight: 850 !important; white-space: nowrap; }
.image-loader { position: absolute !important; inset: 0 !important; z-index: 2; display: grid !important; place-items: center !important; background: #eef3f8; }
.spinner-border { width: 28px !important; height: 28px !important; border: 3px solid #cbd5e1 !important; border-top-color: #2563eb !important; border-radius: 50% !important; animation: nds-spin .8s linear infinite; }
@keyframes nds-spin { to { transform: rotate(360deg); } }

.nds-load-more-area { margin-top: 32px; text-align: center; }
.nds-load-more { min-width: 140px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 11px; background: #0f172a; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(15,23,42,.13); }
.nds-load-more:hover { background: #2563eb; }
.nds-load-more:disabled { opacity: .65; cursor: wait; }
.nds-empty-message { color:#64748b; font-size:13px; }

.nds-category-list { display: grid; gap: 38px; }
.nds-category-block { padding: 24px; border: 1px solid #e6ebf2; border-radius: 20px; background: #fff; }
.nds-category-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:19px; }
.nds-category-head h3 { margin:0; color:#0f172a; font-size:24px; letter-spacing:-.03em; }
.nds-category-head p { margin:5px 0 0; color:#94a3b8; font-size:11px; }
.nds-category-head > a { color:#2563eb; font-size:11px; font-weight:800; white-space:nowrap; }

.nds-product-card { min-width:0; overflow:hidden; display:flex; flex-direction:column; border:1px solid #e6ebf2; border-radius:16px; background:#fff; color:#0f172a; box-shadow:0 7px 22px rgba(15,23,42,.05); transition:.22s ease; }
.nds-product-card:hover { color:#0f172a; transform:translateY(-4px); box-shadow:0 17px 34px rgba(15,23,42,.10); }
.nds-product-image { height:210px; display:grid; place-items:center; overflow:hidden; background:#eef3f8; }
.nds-product-image img { width:100% !important; height:100% !important; object-fit:cover !important; transition:transform .3s ease; }
.nds-product-card:hover .nds-product-image img { transform:scale(1.025); }
.nds-product-placeholder { color:#2563eb; font-size:13px; font-weight:850; }
.nds-product-body { flex:1; padding:16px; }
.nds-product-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.nds-product-title-row h4 { min-width:0; margin:0; color:#0f172a; font-size:13px; line-height:1.4; }
.nds-product-title-row span { flex:0 0 auto; padding:5px 7px; border-radius:999px; background:#0f172a; color:#fff; font-size:8px; font-weight:850; }
.nds-product-body p { margin:11px 0 0; color:#64748b; font-size:10px; line-height:1.7; }

.nds-benefit-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.nds-benefit-grid article { padding:27px; border:1px solid #e6ebf2; border-radius:18px; background:#fff; box-shadow:0 8px 28px rgba(15,23,42,.05); }
.nds-benefit-grid article > span { width:38px; height:38px; display:grid; place-items:center; border-radius:10px; background:#eff6ff; color:#2563eb; font-size:10px; font-weight:900; }
.nds-benefit-grid h3 { margin:18px 0 9px; color:#0f172a; font-size:16px; }
.nds-benefit-grid p { margin:0; color:#64748b; font-size:11px; line-height:1.8; }

.nds-bottom-cta { padding: 0 0 88px; }
.nds-bottom-cta-card { display:flex; align-items:center; justify-content:space-between; gap:34px; padding:40px 44px; overflow:hidden; border-radius:22px; background:radial-gradient(circle at 12% 10%, rgba(96,165,250,.28), transparent 35%), linear-gradient(135deg,#0f172a,#172554); color:#fff; box-shadow:0 24px 60px rgba(15,23,42,.18); }
.nds-bottom-cta-card > div { max-width:680px; }
.nds-bottom-cta-card span { color:#93c5fd; font-size:10px; font-weight:850; text-transform:uppercase; letter-spacing:.08em; }
.nds-bottom-cta-card h2 { margin:8px 0 9px; font-size:clamp(28px,4vw,42px); line-height:1.05; letter-spacing:-.045em; }
.nds-bottom-cta-card p { margin:0; color:#cbd5e1; font-size:12px; line-height:1.75; }
.nds-bottom-cta-card > a { flex:0 0 auto; display:inline-flex; min-height:47px; align-items:center; justify-content:center; padding:0 18px; border-radius:11px; background:#fff; color:#0f172a; font-size:12px; font-weight:850; }

@media (max-width: 980px) {
    .nds-hero { padding-top: 64px; }
    .nds-hero-grid { grid-template-columns: 1fr; gap: 42px; }
    .nds-hero-content { text-align: center; }
    .nds-hero-content h1, .nds-hero-content > p { margin-left: auto; margin-right: auto; }
    .nds-hero-buttons, .nds-hero-points { justify-content: center; }
    .nds-hero-visual { max-width: 680px; width: 100%; margin: 0 auto; }
    .nds-ajax-products, .nds-products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .nds-benefit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .nds-hero { padding: 52px 0 66px; }
    .nds-hero-content h1 { font-size: clamp(38px, 13vw, 54px); }
    .nds-hero-content > p { font-size: 14px; }
    .nds-hero-buttons { flex-direction: column; }
    .nds-primary-button, .nds-secondary-button { width: 100%; }
    .nds-hero-points { display: grid; gap: 9px; }
    .nds-preview-panel { padding: 12px; border-radius: 18px; }
    .nds-preview-image { height: 120px; }
    .nds-preview-info strong { font-size: 9px; }
    .nds-stats-grid { grid-template-columns: repeat(2,1fr); }
    .nds-stats-grid > div:nth-child(2)::after { display:none; }
    .nds-stats-grid > div:nth-child(-n+2) { border-bottom:1px solid #edf2f7; }
    .nds-home-section { padding: 66px 0; }
    .nds-ajax-products, .nds-products-grid { grid-template-columns: 1fr; }
    .pro-img-wrap, .nds-product-image { height: 230px !important; min-height: 230px !important; }
    .nds-category-block { padding: 15px; }
    .nds-category-head { align-items:flex-start; flex-direction:column; }
    .nds-bottom-cta { padding-bottom:66px; }
    .nds-bottom-cta-card { padding:30px 24px; align-items:flex-start; flex-direction:column; }
    .nds-bottom-cta-card > a { width:100%; }
}