/* ==========================================================================
   NT Product Description Builder — Frontend Styles
   ========================================================================== */

.nt-product-desc {
    font-family: inherit;
    line-height: 1.65;
    color: inherit;
    max-width: 100%;
}

.nt-product-desc *,
.nt-product-desc *::before,
.nt-product-desc *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   1. ICON GRID
   ========================================================================== */
.nt-icon-grid {
    display: grid;
    grid-template-columns: repeat(var(--nt-icon-cols, 2), 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 640px) {
    .nt-icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nt-icon-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.nt-icon-block {
    padding: 18px 16px;
    border: 1px solid var(--nt-bd-clr, #e8e8e8);
    border-radius: 10px;
    background: #fafafa;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nt-icon-block:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

/* Text alignment modifiers */
.nt-icon-grid--align-left  .nt-icon-block { text-align: left; }
.nt-icon-grid--align-center .nt-icon-block { text-align: center; }
.nt-icon-grid--align-right  .nt-icon-block { text-align: right; }

/* Image wrapper alignment via flexbox */
.nt-icon-block__img {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.nt-icon-grid--align-center .nt-icon-block__img { justify-content: center; }
.nt-icon-grid--align-right  .nt-icon-block__img { justify-content: flex-end; }

.nt-icon-block__img img {
    display: block;
    width: var(--nt-icon-w, auto);
    height: var(--nt-icon-h, 90px);
    max-width: var(--nt-icon-w, 100%);
    max-height: var(--nt-icon-h, 90px);
    object-fit: contain;
    flex-shrink: 0;
}

.nt-icon-block__title {
    font-size: 0.95em;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}

.nt-icon-block__desc {
    font-size: 0.875em;
    color: #555;
    line-height: 1.55;
}

/* ==========================================================================
   Section background modifier
   ========================================================================== */
.nt-section--bg-white {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

/* Optional accent border via --nt-bd-clr (set as inline style on the section).
   Uses box-shadow so it doesn't affect layout or padding. */
.nt-main-text,
.nt-benefits,
.nt-features {
    box-shadow: -4px 0 0 0 var(--nt-bd-clr, transparent);
}

/* Add padding for sections that have none by default */
.nt-icon-grid.nt-section--bg-white,
.nt-main-text.nt-section--bg-white,
.nt-features.nt-section--bg-white {
    padding: 24px 28px;
}

@media (max-width: 600px) {
    .nt-icon-grid.nt-section--bg-white,
    .nt-main-text.nt-section--bg-white,
    .nt-features.nt-section--bg-white {
        padding: 18px 16px;
    }
}

/* ==========================================================================
   2. MAIN TEXT
   ========================================================================== */
.nt-main-text {
    margin-bottom: 36px;
    line-height: 1.75;
}

.nt-main-text p {
    margin-bottom: 1.1em;
}

.nt-main-text p:last-child {
    margin-bottom: 0;
}

/* Headings */
.nt-main-text h1,
.nt-main-text h2,
.nt-main-text h3,
.nt-main-text h4,
.nt-main-text h5,
.nt-main-text h6 {
    font-weight: 700;
    line-height: 1.35;
    margin: 1.3em 0 0.5em;
}

.nt-main-text h1 { font-size: 1.6em; }
.nt-main-text h2 { font-size: 1.4em; }
.nt-main-text h3 { font-size: 1.2em; }
.nt-main-text h4 { font-size: 1.05em; }
.nt-main-text h5,
.nt-main-text h6 { font-size: 1em; }

/* Lists */
.nt-main-text ul,
.nt-main-text ol {
    margin: 0 0 1.1em;
    padding-left: 1.75em;
}

.nt-main-text ul { list-style: disc; }
.nt-main-text ol { list-style: decimal; }

.nt-main-text li {
    margin-bottom: 0.4em;
    line-height: 1.65;
}

.nt-main-text ul ul,
.nt-main-text ol ol,
.nt-main-text ul ol,
.nt-main-text ol ul {
    margin: 0.3em 0 0.3em 0;
}

/* Links */
.nt-main-text a {
    color: #0073aa;
    text-decoration: underline;
}

.nt-main-text a:hover { color: #005b8b; }

/* Inline formatting */
.nt-main-text strong,
.nt-main-text b { font-weight: 700; }

.nt-main-text em,
.nt-main-text i { font-style: italic; }

.nt-main-text u { text-decoration: underline; }
.nt-main-text s,
.nt-main-text del { text-decoration: line-through; }

/* Blockquote */
.nt-main-text blockquote {
    margin: 1.2em 0;
    padding: 10px 20px;
    border-left: 4px solid #d1d5db;
    background: #f9fafb;
    color: #555;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}

/* Horizontal rule */
.nt-main-text hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 1.5em 0;
}

/* TinyMCE text-align (applied as inline style on <p> or <div>) */
.nt-main-text [style*="text-align: center"],
.nt-main-text [style*="text-align:center"] { text-align: center; }
.nt-main-text [style*="text-align: right"],
.nt-main-text [style*="text-align:right"]  { text-align: right; }
.nt-main-text [style*="text-align: justify"],
.nt-main-text [style*="text-align:justify"] { text-align: justify; }

/* Preserve indentation from TinyMCE indent button (margin-left on <p>) */
.nt-main-text [style*="margin-left"] { display: block; }

/* ==========================================================================
   3. CENTER IMAGE
   ========================================================================== */
.nt-center-img {
    text-align: center; /* default */
    margin: 36px auto;
    padding: 28px 32px;
    background: #fff;
    border-radius: 10px;
}

/* Alignment modifiers (applied when bg is NOT enabled) */
.nt-center-img--align-left   { text-align: left; }
.nt-center-img--align-right  { text-align: right; }
/* --align-center uses the default text-align: center above */

/* White background: full-width box inside the description container */
.nt-center-img--bg {
    text-align: center !important;
    padding: 28px 32px;
    background: #f8f9fa;
    border-radius: 10px;
}

.nt-center-img img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: inline-block;
}

.nt-lightbox-trigger {
    cursor: zoom-in;
    display: inline-block;
    line-height: 0;
}

/* ==========================================================================
   4. BENEFITS — two columns
   ========================================================================== */
.nt-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin: 36px 0;
    padding: 28px 32px;
    background: #f8f9fa;
    border-radius: 10px;
}

@media (max-width: 640px) {
    .nt-benefits {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 24px;
    }
}

.nt-col-title {
    margin: 0 0 12px;
    font-size: 1em;
}

.nt-benefits ul {
    list-style: disc;
    margin: 0;
    padding-left: 22px;
}

.nt-benefits ul li {
    margin-bottom: 6px;
    line-height: 1.55;
}

/* ==========================================================================
   5. FEATURE SECTIONS
   ========================================================================== */
.nt-features {
    margin: 36px 0;
}

.nt-feature {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e8e8e8;
}

.nt-feature:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.nt-feature__title {
    font-size: 1.05em;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.4;
}

.nt-feature__content {
    line-height: 1.75;
}

.nt-feature__content p {
    margin-bottom: 1em;
}

.nt-feature__content p:last-child {
    margin-bottom: 0;
}

.nt-feature__link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.875em;
    color: #0073aa;
    word-break: break-all;
    text-decoration: underline;
}

.nt-feature__link:hover {
    color: #005b8b;
}

.nt-feature__img {
    margin-top: 20px;
    text-align: center;
}

.nt-feature__img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: inline-block;
}

/* ==========================================================================
   6. TECHNICAL SPECS
   ========================================================================== */
.nt-specs {
    margin: 36px 0;
    padding: 24px 28px;
    background: #f8f9fa;
    border-left: 4px solid var(--nt-bd-clr, var(--pbmit-yoge-secondary-color, #0073aa));
    border-radius: 0 10px 10px 0;
}

.nt-specs__title {
    margin: 0 0 14px;
    font-size: 1em;
}

.nt-specs ul {
    list-style: disc;
    margin: 0 0 16px;
    padding-left: 22px;
}

.nt-specs ul li {
    margin-bottom: 5px;
    line-height: 1.55;
}

.nt-specs__warranty {
    font-style: italic;
    color: #666;
    margin: 12px 0 0;
    font-size: 0.9em;
}

/* ==========================================================================
   RESPONSIVE — small screens catch-all
   ========================================================================== */
@media (max-width: 600px) {
    .nt-benefits,
    .nt-specs {
        padding: 18px 16px;
    }

    .nt-icon-block {
        padding: 14px 12px;
    }
}

/* ==========================================================================
   7. FEATURE CONTENT — rich text typography
   ========================================================================== */
.nt-feature__content ul,
.nt-feature__content ol {
    margin: 0 0 1em;
    padding-left: 22px;
}

.nt-feature__content ul { list-style: disc; }
.nt-feature__content ol { list-style: decimal; }

.nt-feature__content li {
    margin-bottom: 5px;
    line-height: 1.65;
}

.nt-feature__content strong,
.nt-feature__content b { font-weight: 700; }

.nt-feature__content em,
.nt-feature__content i { font-style: italic; }

.nt-feature__content a {
    color: #0073aa;
    text-decoration: underline;
}

.nt-feature__content a:hover { color: #005b8b; }

.nt-feature__content h2,
.nt-feature__content h3,
.nt-feature__content h4,
.nt-feature__content h5 {
    font-weight: 700;
    margin: 1.1em 0 0.5em;
    line-height: 1.4;
}

/* ==========================================================================
   8. LIGHTBOX
   ========================================================================== */
.nt-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nt-lightbox-overlay[hidden] { display: none; }

.nt-lightbox-overlay__bg {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
}

.nt-lightbox-img {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
    z-index: 1;
    pointer-events: none;
}

.nt-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
    z-index: 2;
}

.nt-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.1);
}
