/* ۱. مخفی کردن بخش بالایی پیش‌فرض وودمارت در صفحه محصول */
.single-product .product-image-summary-wrap,
.single-product .product-image-summary { display: none !important; }

/* ۲. نوار بردکرامپ تمیز */
.niko-top-nav-bar { display: flex !important; align-items: center !important; justify-content: flex-start !important; margin-bottom: 16px !important; padding: 4px 6px !important; }
.niko-breadcrumb-bar { font-size: 13.5px !important; color: #666 !important; line-height: 1.6 !important; }
.niko-breadcrumb-bar a { color: #666 !important; text-decoration: none !important; transition: color 0.2s !important; }
.niko-breadcrumb-bar a:hover { color: #0a2fbf !important; }
.niko-bc-sep { margin: 0 7px !important; color: #aaa !important; }
.niko-bc-current { color: #0a2fbf !important; font-weight: 600 !important; }

/* ۳. چیدمان ۳ ستونه صفحه محصول */
.niko-outer-container { width: 100% !important; max-width: var(--niko-max-width, 1360px) !important; margin: 14px auto 35px auto !important; padding: 0 15px !important; box-sizing: border-box !important; }
.niko-product-hero-wrapper {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
    align-items: stretch !important; justify-content: space-between !important;
    gap: var(--niko-col-gap, 24px) !important; background: #ffffff !important;
    border-radius: 16px !important; padding: var(--niko-box-padding, 24px) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05) !important; width: 100% !important;
    box-sizing: border-box !important; position: relative !important;
}

/* ستون ۱: گالری تصویر */
.niko-section-gallery { flex: 0 0 var(--niko-gallery-w, 33%) !important; max-width: var(--niko-gallery-w, 33%) !important; width: var(--niko-gallery-w, 33%) !important; box-sizing: border-box !important; position: relative !important; }
.niko-gallery-box { border: 1px solid #edf1f5 !important; border-radius: 14px !important; padding: 16px !important; background: #fff !important; height: 100% !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; }
.niko-main-image-wrap { width: 100% !important; display: flex !important; align-items: center !important; justify-content: center !important; }
.niko-main-product-img { max-width: 100% !important; max-height: 360px !important; width: auto !important; height: auto !important; object-fit: contain !important; border-radius: 8px !important; }
.niko-thumbs-row { display: flex !important; gap: 8px !important; margin-top: 14px !important; justify-content: center !important; flex-wrap: wrap !important; }
.niko-thumb-item { width: 56px !important; height: 56px !important; border: 2px solid #eee !important; border-radius: 8px !important; overflow: hidden !important; cursor: pointer !important; padding: 2px !important; }
.niko-thumb-item.active, .niko-thumb-item:hover { border-color: #0a2fbf !important; }
.niko-thumb-item img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

/* ستون ۲: جزئیات محصول و کنترل کامل فاصله خطوط توضیحات کوتاه */
.niko-section-details { flex: 1 1 auto !important; min-width: 0 !important; display: flex !important; flex-direction: column !important; justify-content: space-between !important; padding: 4px var(--niko-details-pad, 12px) !important; box-sizing: border-box !important; }
.niko-product-title { font-size: var(--niko-title-fs, 21px) !important; font-weight: 700 !important; color: #1a1a1a !important; margin: 0 0 12px 0 !important; line-height: 1.5 !important; }
.niko-product-meta { display: flex !important; flex-wrap: wrap !important; gap: 20px !important; font-size: var(--niko-meta-fs, 13px) !important; color: #666 !important; margin-bottom: 14px !important; }
.niko-divider { border: 0 !important; border-top: 2px solid #222 !important; width: 75% !important; margin: 0 0 18px 0 !important; }

.niko-short-description,
.niko-short-description p,
.niko-short-description span,
.niko-short-description li {
    font-size: var(--niko-short-fs, 14px) !important;
    line-height: var(--niko-short-lh, 1.9) !important;
    color: #333 !important;
}
.niko-short-description p {
    margin-bottom: var(--niko-short-gap, 8px) !important;
}
.niko-short-description ul {
    padding-right: 18px !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}
.niko-short-description li {
    margin-bottom: var(--niko-short-gap, 8px) !important;
}
.niko-short-description li:last-child {
    margin-bottom: 0 !important;
}

.niko-policy-links { display: flex !important; justify-content: space-around !important; margin-top: 24px !important; padding-top: 12px !important; }
.niko-policy-links a { color: #0a2fbf !important; font-weight: 600 !important; font-size: var(--niko-policy-fs, 14px) !important; text-decoration: none !important; }
.niko-policy-links a:hover { text-decoration: underline !important; }

/* ستون ۳: باکس طوسی خرید و دکمه‌های راهنمای فنی و بروشور */
.niko-section-buybox { flex: 0 0 var(--niko-buybox-w, 310px) !important; max-width: var(--niko-buybox-w, 310px) !important; width: var(--niko-buybox-w, 310px) !important; display: flex !important; flex-direction: column !important; justify-content: space-between !important; gap: 14px !important; box-sizing: border-box !important; position: relative !important; }
.niko-buy-box { background-color: #e6ecf2 !important; border-radius: 16px !important; padding: var(--niko-buybox-pad, 20px) !important; flex-grow: 1 !important; display: flex !important; flex-direction: column !important; justify-content: space-between !important; }
.niko-buy-box-header { color: #0a2fbf !important; font-weight: 700 !important; font-size: calc(var(--niko-trust-fs, 14px) + 1px) !important; margin-bottom: 14px !important; }
.niko-trust-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.niko-trust-list li { display: flex !important; align-items: center !important; gap: 10px !important; font-size: var(--niko-trust-fs, 14px) !important; color: #2c3e50 !important; margin-bottom: var(--niko-trust-gap, 12px) !important; font-weight: 500 !important; line-height: 1.4 !important; }
.niko-trust-list li:last-child { margin-bottom: 0 !important; }
.niko-icon { display: flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; }
.niko-icon svg { width: var(--niko-trust-icon, 20px) !important; height: var(--niko-trust-icon, 20px) !important; }

.niko-price-wrap { text-align: center !important; margin: var(--niko-price-mv, 16px) 0 !important; }
.niko-price-wrap .price,
.niko-price-wrap .price span,
.niko-price-wrap .woocommerce-Price-amount { font-size: var(--niko-price-fs, 22px) !important; font-weight: 800 !important; color: #0a2fbf !important; }
.niko-price-wrap .woocommerce-Price-amount bdi { display: inline-flex !important; flex-direction: row-reverse !important; align-items: baseline !important; justify-content: center !important; gap: 6px !important; }

.niko-cart-wrap form.cart { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; margin: 0 !important; }
.niko-cart-wrap .quantity input.qty, .niko-cart-wrap .quantity .plus, .niko-cart-wrap .quantity .minus { height: var(--niko-btn-h, 44px) !important; }
.niko-cart-wrap .single_add_to_cart_button {
    flex: 1 !important; background-color: #0a2fbf !important; color: #ffffff !important;
    border-radius: 8px !important; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.22) !important;
    font-weight: 600 !important; height: var(--niko-btn-h, 44px) !important;
    font-size: var(--niko-btn-fs, 15px) !important; line-height: 1 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 0 14px !important; transition: background-color 0.25s ease, box-shadow 0.25s ease !important;
}
.niko-cart-wrap .single_add_to_cart_button:hover { background-color: #2a50e0 !important; color: #ffffff !important; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18) !important; }

.niko-docs-box {
    background-color: #e6ecf2 !important; border-radius: 16px !important;
    padding: 14px var(--niko-buybox-pad, 20px) !important; display: flex !important;
    justify-content: space-between !important; gap: 12px !important;
}
.niko-doc-btn {
    flex: 1 !important; background-color: #0a2fbf !important; color: #ffffff !important;
    text-align: center !important; height: var(--niko-doc-h, 42px) !important;
    font-size: var(--niko-doc-fs, 15px) !important; display: flex !important;
    align-items: center !important; justify-content: center !important;
    border-radius: 8px !important; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.22) !important;
    font-weight: 600 !important; text-decoration: none !important;
    transition: background-color 0.25s ease, box-shadow 0.25s ease !important;
    white-space: nowrap !important; padding: 0 12px !important;
}
.niko-doc-btn:hover { background-color: #2a50e0 !important; color: #ffffff !important; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18) !important; }

/* ۴. استایل برگه‌های تکی و مقالات وبلاگ بدون المنتور */
.niko-clean-page .page-title, .niko-clean-blog-post .page-title { display: none !important; }
.niko-page-card, .niko-blog-card {
    background: #ffffff !important; border-radius: 16px !important; padding: 32px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important; max-width: var(--niko-page-w, 1200px) !important;
    margin: 0 auto 40px auto !important; line-height: 1.95 !important; color: #2c3e50 !important;
}
.niko-blog-card { max-width: var(--niko-blog-w, 1140px) !important; }
.niko-page-h1, .niko-blog-h1 { font-size: 24px !important; font-weight: 800 !important; color: #0a2fbf !important; margin: 0 0 18px 0 !important; padding-bottom: 14px !important; border-bottom: 2px solid #edf1f5 !important; }
.niko-blog-meta { font-size: 13px !important; color: #777 !important; margin-bottom: 20px !important; }
.niko-page-body p, .niko-blog-body p { margin-bottom: 16px !important; font-size: var(--niko-page-fs, 15px) !important; }

/* ۵. ابزار تنظیم زنده با موس + پنل قابل جابجایی */
.niko-drag-handle {
    position: absolute; top: 50%; left: -14px; transform: translateY(-50%);
    width: 26px; height: 48px; background: #0a2fbf; color: #fff; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; cursor: ew-resize;
    font-weight: bold; font-size: 14px; z-index: 9999; box-shadow: 0 2px 8px rgba(10,47,191,0.4); user-select: none;
}
.niko-drag-handle.niko-handle-right { left: auto; right: -14px; }
#niko-live-customizer-toggle {
    position: fixed; bottom: 24px; left: 24px; background: #0a2fbf; color: #fff;
    border: none; border-radius: 50px; padding: 12px 20px; font-size: 14px; font-weight: 700;
    cursor: pointer; z-index: 999999; box-shadow: 0 6px 20px rgba(10,47,191,0.4); font-family: inherit;
}
#niko-live-customizer-panel {
    position: fixed; top: 90px; right: 30px; width: 365px; background: #fff;
    border: 2px solid #0a2fbf; border-radius: 16px; z-index: 999999;
    box-shadow: 0 14px 40px rgba(0,0,0,0.25); direction: rtl; text-align: right;
    display: none; font-family: inherit; overflow: hidden;
}
#niko-panel-drag-header {
    background: #0a2fbf; color: #ffffff; padding: 12px 16px; font-size: 14px; font-weight: 700;
    cursor: move; display: flex; justify-content: space-between; align-items: center; user-select: none;
}
#niko-panel-drag-header small { font-weight: 400; font-size: 11px; opacity: 0.85; }
#niko-panel-scroll-body { padding: 14px 16px; max-height: 72vh; overflow-y: auto; }
.niko-panel-group-title { background: #f0f4f9; color: #0a2fbf; font-weight: 700; font-size: 12.5px; padding: 6px 10px; border-radius: 6px; margin: 12px 0 8px 0; }
.niko-slider-row { margin-bottom: 12px; }
.niko-slider-row label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: #333; margin-bottom: 5px; }
.niko-range-control { display: flex; flex-direction: row; direction: ltr; align-items: center; gap: 8px; }
.niko-step-btn {
    width: 14px; height: 14px; padding: 0; border: 1px solid #cbd5e1; background: #f1f5f9;
    color: #0a2fbf; border-radius: 4px; font-size: 11px; font-weight: 800; line-height: 1;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.niko-step-btn:hover { background: #0a2fbf; color: #ffffff; border-color: #0a2fbf; }
.niko-range-control input[type="range"] { flex: 1; cursor: pointer; accent-color: #0a2fbf; height: 5px; margin: 0; }
.niko-slider-row input[type="text"] { width: 100%; padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 12.5px; }
#niko-save-live-btn { width: 100%; background: #0a2fbf; color: #fff; border: none; border-radius: 8px; padding: 11px; font-weight: 700; font-size: 14px; cursor: pointer; margin-top: 10px; }
#niko-save-live-btn:hover { background: #2a50e0; }
#niko-save-status { text-align: center; font-size: 12.5px; margin-top: 8px; font-weight: 600; color: #0a8754; }

@media (max-width: 991px) {
    .niko-product-hero-wrapper { flex-direction: column !important; flex-wrap: wrap !important; }
    .niko-section-gallery, .niko-section-details, .niko-section-buybox { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
    .niko-drag-handle { display: none !important; }
}
