/* --- Carousel --- */
.nilay-carousel-wrapper {
    position: relative;
    padding-bottom: 30px;
    direction: ltr;
}

.nilay-carousel {
    overflow: hidden;
    position: relative;
}

.nilay-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px 0;
}

.nilay-carousel-track::-webkit-scrollbar {
    display: none;
}

.nilay-carousel-item {
    flex-shrink: 0;
    box-sizing: border-box;
}

/* --- Carousel & Card Builder Responsive Columns --- */
.nilay-carousel-wrapper {
    --n-cols-effective: var(--n-cols, 3);
}

.nilay-card-carousel-wrapper {
    --n-cols-effective: var(--n-cols, 4);
}

.nilay-carousel-wrapper .nilay-carousel-item {
    box-sizing: border-box;
}

.nilay-card-carousel-wrapper .nilay-carousel-item {
    flex: 0 0 calc((100% - (var(--n-cols-effective, 4) - 1) * var(--n-gap, 20px)) / var(--n-cols-effective, 4)) !important;
    max-width: calc((100% - (var(--n-cols-effective, 4) - 1) * var(--n-gap, 20px)) / var(--n-cols-effective, 4)) !important;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .nilay-card-carousel-wrapper {
        --n-cols-effective: 3;
    }
}

@media (max-width: 900px) {
    .nilay-card-carousel-wrapper {
        --n-cols-effective: 2;
    }
}

@media (max-width: 600px) {
    .nilay-carousel-wrapper {
        --n-cols-effective: var(--n-cols-mobile, 1) !important;
    }
    .nilay-card-carousel-wrapper {
        --n-cols-effective: var(--n-cols-mobile, 1) !important;
    }
    .nilay-carousel-wrapper .nilay-prev,
    .nilay-carousel-wrapper .nilay-next,
    .nilay-card-carousel-wrapper .nilay-prev,
    .nilay-card-carousel-wrapper .nilay-next {
        width: 32px;
        height: 32px;
        font-size: 13px;
        opacity: 0.9;
    }
    .nilay-carousel-wrapper .nilay-prev,
    .nilay-card-carousel-wrapper .nilay-prev { left: 4px; }
    .nilay-carousel-wrapper .nilay-next,
    .nilay-card-carousel-wrapper .nilay-next { right: 4px; }
}

.nilay-item-inner {
    position: relative;
    height: 100%;
}

.nilay-full-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.nilay-prev,
.nilay-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: var(--n-nav-size, 40px);
    height: var(--n-nav-size, 40px);
    background: var(--n-nav-bg, #fff);
    color: var(--n-nav-color, #333);
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nilay-prev {
    left: 10px;
}

.nilay-next {
    right: 10px;
}

.nilay-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.nilay-dot {
    width: var(--n-dot-size, 10px);
    height: var(--n-dot-size, 10px);
    background: var(--n-dot-color, #ccc);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.nilay-dot.active {
    background: var(--n-dot-active, #2196F3);
    transform: scale(1.2);
}

/* --- TOC --- */
.nilay-toc-widget {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
}

.nilay-toc-title {
    margin: 0 0 10px 0;
    font-size: var(--t-title-size, 18px);
    color: var(--t-title-color, #000);
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
    display: inline-block;
}

.nilay-toc-list {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.nilay-toc-list li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 5px;
}

.nilay-toc-list li::before {
    content: '•';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--t-bullet-color, #2196F3);
    font-size: var(--t-bullet-size, 20px);
    line-height: 1;
}

.nilay-toc-list a {
    text-decoration: none;
    font-size: var(--t-item-size, 14px);
    color: var(--t-item-color, #333);
    transition: color 0.2s;
}

.nilay-toc-list a:hover {
    color: var(--t-bullet-color);
}

.nilay-toc-level-2 {
    margin-right: 0;
}

.nilay-toc-level-3 {
    margin-right: 15px;
}

/* --- Search Widget --- */
.nilay-search-wrapper {
    position: relative;
    padding: var(--s-pad);
    margin: var(--s-mar);
    border: 1px solid var(--s-border-col);
    border-radius: var(--s-radius);
    background: #fff;
    direction: rtl;
}

.nilay-search-box {
    display: flex;
    align-items: stretch;
    gap: var(--s-input-gap);
}

.nilay-search-wrapper .nilay-search-input {
    width: var(--s-input-w);
    border: none;
    background: transparent;
    padding: 0 10px;
    font-size: var(--s-input-size);
    color: var(--s-text-col) !important;
    outline: none;
    height: auto;
    font-family: inherit;
}

.nilay-search-wrapper .nilay-search-btn {
    width: var(--s-btn-w);
    background: var(--s-btn-bg) !important;
    color: var(--s-btn-text) !important;
    border: none;
    border-radius: var(--s-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: var(--s-btn-size);
    transition: all 0.3s;
    padding: 10px;
    white-space: nowrap;
}

.nilay-search-wrapper .nilay-search-btn:hover {
    background: var(--s-btn-hover) !important;
}

.nilay-search-icon {
    font-size: var(--s-icon-size);
    color: var(--s-icon-col);
}

.nilay-search-btn:hover .nilay-search-icon {
    color: var(--s-icon-hover);
}

/* --- Search Results --- */
.nilay-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--s-res-bg, #fff) !important;
    z-index: 999;
    display: none;
    margin-top: 5px;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--s-res-shadow, 0 10px 30px rgba(0, 0, 0, 0.1)) !important;
    overflow: hidden;
    border: 1px solid var(--s-res-border, #eee) !important;
    direction: rtl !important;
    text-align: right !important;
}

.nilay-search-section {
    border-bottom: 1px solid #f0f0f0;
}

.nilay-search-cat-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #444;
    transition: background 0.2s;
    justify-content: flex-start;
}

.nilay-search-cat-item:hover {
    background: #f9f9f9;
}

.nilay-search-cat-item i {
    margin-left: 10px;
    color: var(--s-cat-icon-col, #999);
    font-size: var(--s-cat-icon-size, 14px);
    order: 1;
    flex-shrink: 0;
}

.nilay-search-cat-item span {
    order: 2;
}

.nilay-search-prod-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f9f9f9;
    transition: background 0.2s;
    justify-content: flex-start;
    text-align: right;
}

.nilay-search-prod-item:hover {
    background: #f5f5f5;
}

.nilay-si-thumb {
    width: 40px;
    height: 40px;
    margin-left: 10px;
    flex-shrink: 0;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    order: 1;
}

.nilay-si-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nilay-si-info {
    flex-grow: 1;
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    order: 2;
}

.nilay-view-more-wrapper {
    padding: 10px;
    background: transparent;
    text-align: center;
}

.nilay-view-more-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    background: var(--s-vm-bg) !important;
    color: var(--s-vm-color) !important;
    font-size: var(--s-vm-size);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.nilay-view-more-btn:hover {
    background: var(--s-vm-bg-h) !important;
    color: var(--s-vm-color-h) !important;
}

.nilay-no-result {
    padding: 15px;
    text-align: center;
    color: #777;
}

/* --- Filters Widget --- */
.nilay-filter-widget {
    background: var(--nf-bg, #ffffff);
    border: 1px solid var(--nf-border, #eef2f6);
    border-radius: var(--nf-radius, 12px);
    box-shadow: var(--nf-shadow, 0 8px 24px rgba(0, 0, 0, 0.06));
    padding: var(--nf-pad, 20px);
    margin: var(--nf-mar, 20px 0);
    width: var(--nf-width, 100%);
    max-height: var(--nf-max-h, calc(100vh - 40px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    font-family: inherit;
    transition: all 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.nilay-filter-widget *,
.nilay-filter-widget *::before,
.nilay-filter-widget *::after {
    box-sizing: border-box;
}

/* Custom Scrollbar for Filter Widget (Chrome/Safari/Edge) */
.nilay-filter-widget::-webkit-scrollbar {
    width: 5px;
}

.nilay-filter-widget::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 10px;
}

.nilay-filter-widget::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.nilay-filter-widget::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Active Filter Chips Bar */
.nilay-active-chips-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.nilay-acc-header {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
    margin-bottom: 10px;
}

.nilay-acc-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 6px;
}

.nilay-acc-label i {
    color: var(--nf-accent, #2563eb);
    flex-shrink: 0;
}

.nilay-clear-all-chip {
    font-size: 12px;
    color: #ef4444;
    text-decoration: none;
    font-weight: 600;
    flex-shrink: 0;
    transition: color 0.2s;
}

.nilay-clear-all-chip:hover {
    color: #dc2626;
}

.nilay-chips-list {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 6px;
}

.nilay-filter-chip {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.nilay-filter-chip:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.nilay-chip-remove {
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

/* Filter Block Structure */
.nilay-filter-block {
    margin-bottom: 18px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fafafa;
    transition: background 0.2s, border-color 0.2s;
}

.nilay-filter-block:hover {
    background: #ffffff;
    border-color: #e2e8f0;
}

.nilay-fb-header {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.nilay-fb-title {
    font-size: var(--nf-title-size, 16px);
    color: var(--nf-title-col, #1e293b);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.4;
}

.nilay-fb-toggle {
    font-size: 13px;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.2s;
}

.nilay-filter-block:hover .nilay-fb-toggle {
    color: var(--nf-accent, #2563eb);
}

.nilay-block-collapsed .nilay-fb-toggle {
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
}

.nilay-fb-desc {
    font-size: 12px;
    color: #64748b;
    margin: 6px 0 10px 0;
}

.nilay-fb-body {
    margin-top: 12px;
}

/* Quick Search Input */
.nilay-filter-search-box {
    position: relative;
    margin-bottom: 10px;
}

.nilay-filter-search-box i {
    position: absolute;
    right: 10px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12px;
    pointer-events: none;
}

.nilay-term-search-input {
    width: 100%;
    padding: 6px 30px 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #ffffff;
    color: #334155;
    transition: border-color 0.2s;
}

.nilay-term-search-input:focus {
    border-color: var(--nf-accent, #2563eb);
}

/* Scrollable Options List */
.nilay-options-scrollable {
    max-height: 200px;
    overflow-y: auto;
    padding-left: 5px;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.nilay-options-scrollable::-webkit-scrollbar {
    width: 4px;
}

.nilay-options-scrollable::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Filter Option Rows - Firefox & Cross-Browser Fix */
.nilay-filter-option {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    padding: 6px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.nilay-filter-option:hover {
    background: #f1f5f9;
}

.nilay-filter-option input[type="checkbox"],
.nilay-filter-option input[type="radio"] {
    margin-left: 10px;
    margin-right: 0;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    flex-shrink: 0;
    -webkit-flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--nf-accent, #2563eb);
}

.nilay-filter-option .nfo-text {
    font-weight: 500;
    font-size: var(--nf-text-size, 14px);
    color: var(--nf-text-col, #334155);
    flex-grow: 1;
    min-width: 0;
    line-height: 1.4;
}

.nilay-filter-option .nfo-count {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 7px;
    border-radius: 12px;
    flex-shrink: 0;
    -webkit-flex-shrink: 0;
}

.nilay-filter-select {
    width: 100%;
    padding: 9px 30px 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: var(--nf-text-size, 14px);
    color: var(--nf-text-col, #334155);
    background-color: #ffffff;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 14px;
    transition: border-color 0.2s;
}

.nilay-filter-select:focus {
    border-color: var(--nf-accent, #2563eb);
}

/* Stock Special Option */
.nilay-stock-option {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px;
    margin: 0;
}

.nilay-stock-option .nfo-text {
    color: #166534;
    font-weight: 600;
}

/* Price Slider UI - Firefox & Cross-Browser Fix */
.nilay-price-filter {
    padding: 10px 5px 5px 5px;
}

.nilay-price-slider {
    margin-bottom: 18px;
    background: #e2e8f0;
    height: 6px;
    border-radius: 3px;
    position: relative;
}

.nilay-price-slider .ui-slider-range {
    background: var(--nf-accent, #2563eb);
    position: absolute;
    height: 100%;
    border-radius: 3px;
    top: 0;
}

.nilay-price-slider .ui-slider-handle {
    width: 18px;
    height: 18px;
    background: #ffffff;
    border: 2px solid var(--nf-accent, #2563eb);
    border-radius: 50%;
    position: absolute;
    top: 50% !important;
    -webkit-transform: translateY(-50%) !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    margin-right: -9px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease;
    touch-action: none;
}

.nilay-price-slider .ui-slider-handle:hover {
    -webkit-transform: translateY(-50%) scale(1.15) !important;
    transform: translateY(-50%) scale(1.15) !important;
}

.nilay-price-inputs {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.nilay-price-pill {
    flex: 1;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 10px;
    text-align: center;
    font-size: 12px;
    color: #475569;
}

.nilay-price-pill strong {
    color: #0f172a;
    font-size: 13px;
}

.nilay-price-pill small {
    color: #94a3b8;
    margin-right: 2px;
}

/* Filter Submit Button */
.nilay-filter-submit {
    width: 100%;
    padding: 12px;
    background: var(--nf-accent, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: all 0.25s ease;
}

.nilay-filter-submit:hover {
    background: var(--nf-accent-h, #1d4ed8);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.nilay-auto-submit .nilay-filter-submit {
    display: none !important;
}

/* --- CUSTOM CARD BUILDER STYLES --- */
.nilay-card-container {
    background-color: var(--nc-bg);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    padding: var(--nc-pad);
    box-shadow: var(--nc-shadow);
    display: flex;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    direction: rtl;
    transition: all 0.3s ease;
}

/* Layout Variations */
.nilay-layout-top {
    flex-direction: column;
}

.nilay-layout-bottom {
    flex-direction: column-reverse;
}

.nilay-layout-left {
    flex-direction: row;
    align-items: center;
}

.nilay-layout-right {
    flex-direction: row-reverse;
    align-items: center;
}

@media (max-width: 600px) {

    .nilay-layout-left,
    .nilay-layout-right {
        flex-direction: column !important;
    }

    .nilay-card-image-wrap {
        width: 100% !important;
        margin: 0 0 15px 0 !important;
    }
}

/* Image Wrapper */
.nilay-card-image-wrap {
    position: relative;
    flex-shrink: 0;
    width: var(--nc-img-w);
    padding: var(--nc-img-pad);
    box-sizing: border-box;
}

.nilay-layout-top .nilay-card-image-wrap {
    margin-bottom: var(--nc-img-mar);
    width: 100%;
}

.nilay-layout-bottom .nilay-card-image-wrap {
    margin-top: var(--nc-img-mar);
    width: 100%;
}

.nilay-layout-left .nilay-card-image-wrap {
    margin-left: var(--nc-img-mar);
}

.nilay-layout-right .nilay-card-image-wrap {
    margin-right: var(--nc-img-mar);
}

.nilay-card-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--nc-img-radius);
    object-fit: cover;
}

/* Content Wrapper */
.nilay-card-content-wrap {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Typography */
.nilay-card-title {
    margin: 0 0 10px;
    line-height: 1.4;
    text-align: var(--nc-title-align);
}

.nilay-card-title a {
    color: var(--nc-title-col);
    font-size: var(--nc-title-size);
    text-decoration: none;
    transition: opacity 0.2s;
}

.nilay-card-title a:hover {
    opacity: 0.8;
}

.nilay-card-desc {
    color: var(--nc-desc-col);
    font-size: var(--nc-desc-size);
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: var(--nc-desc-align);
}

/* Price & Meta */
.nilay-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: var(--nc-price-align);
}

/* راست = flex-start چون جهت RTL است، اما برای اطمینان بیشتر */
.nilay-card-meta[style*="right"] {
    justify-content: flex-start;
}

.nilay-card-meta[style*="left"] {
    justify-content: flex-end;
}

.nilay-card-meta[style*="center"] {
    justify-content: center;
}

.nilay-card-price {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: var(--nc-price-align);
}

.nilay-card-price del {
    opacity: 0.6;
    font-size: 0.9em;
}

.nilay-card-price .amount {
    color: var(--nc-price-col);
    font-size: var(--nc-price-size);
}

.nilay-card-price ins .amount {
    color: var(--nc-sale-col);
    font-size: var(--nc-sale-size);
}

/* Badges */
.nilay-card-badge {
    background: var(--nc-badge-bg);
    color: var(--nc-badge-col);
    font-size: var(--nc-badge-size);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    line-height: 1.2;
}

.nilay-badge-overlay {
    position: absolute;
    z-index: 2;
}

.pos-img_left {
    top: 10px;
    left: 10px;
}

.pos-img_right {
    top: 10px;
    right: 10px;
}

/* Buttons */
.nilay-card-actions {
    margin-top: auto;
    display: flex;
    justify-content: var(--nc-actions-align);
}

.nilay-card-btn {
    display: inline-block;
    background: var(--nc-btn-bg);
    color: var(--nc-btn-col);

    padding-top: var(--nc-btn-pt);
    padding-right: var(--nc-btn-pr);
    padding-bottom: var(--nc-btn-pb);
    padding-left: var(--nc-btn-pl);

    margin-top: var(--nc-btn-mt);
    margin-right: var(--nc-btn-mr);
    margin-bottom: var(--nc-btn-mb);
    margin-left: var(--nc-btn-ml);

    font-size: var(--nc-btn-fs);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    width: var(--nc-btn-w);
    box-sizing: border-box;
    line-height: 1.4;
}

.nilay-card-btn:hover {
    background: var(--nc-btn-bg-h);
    color: var(--nc-btn-col-h);
}

/* Loading state for ajax add to cart */
.nilay-card-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.nilay-card-btn.added::after {
    font-family: dashicons;
    content: "\f147";
    margin-right: 5px;
}

.nilay-cat-search-box {
    direction: rtl;
}

.nilay-cat-search-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.nilay-cat-search-results {
    margin-top: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 8px;
    background: #fff;
    display: none;
}

.nilay-cat-group {
    border-bottom: 1px solid #f5f5f5;
    padding: 8px 0;
}

.nilay-cat-group:last-child {
    border-bottom: none;
}

.nilay-cat-parent {
    font-weight: 600;
    margin-bottom: 6px;
}

.nilay-cat-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nilay-cat-children li {
    padding: 2px 0;
    font-size: 13px;
    color: #444;
}

.nilay-highlight {
    background: #fff3cd;
    color: inherit;
}

.nilay-cat-select {
    display: inline-block;
    background: #f8f9fa;
    border: 1px solid #e2e3e5;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    color: #333;
}

.nilay-cat-select:hover {
    background: #eef0f2;
}

.nilay-cat-selected {
    background: #d1e7dd !important;
    border-color: #badbcc !important;
}

.nilay-cat-actions {
    margin-top: 6px;
}

.nilay-cat-select-all {
    background: #f0f6ff;
    border: 1px solid #cfe2ff;
    color: #0b5ed7;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 5px;
}

.nilay-cat-select-all:hover {
    background: #e2edff;
}

.nilay-cat-select-children {
    background: #eef9f1;
    border: 1px solid #cdebd6;
    color: #198754;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 5px;
}

.nilay-cat-select-children:hover {
    background: #e1f4e8;
}

.nilay-cat-clear-all {
    background: #fff5f5;
    border: 1px solid #f1c2c4;
    color: #b02a37;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.nilay-cat-clear-all:hover {
    background: #ffe9ea;
}

.nilay-inline-cat-search-wrap {
    margin: 8px 0;
}

.nilay-inline-cat-search {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* --- TICKET SYSTEM BUTTONS --- */
.nilay-ticket-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    border: none;
    border-radius: 8px;
    /* Rounded corners */
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: normal;
}

.nilay-ticket-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nilay-btn-primary {
    background-color: #2196F3;
    color: #fff !important;
}

.nilay-btn-primary:hover {
    background-color: #1976D2;
    color: #fff !important;
}

.nilay-btn-secondary {
    background-color: #f0f0f0;
    color: #333 !important;
    border: 1px solid #ccc;
}

.nilay-btn-secondary:hover {
    background-color: #e0e0e0;
    color: #000 !important;
}

.nilay-btn-small {
    padding: 5px 10px;
    font-size: 12px;
    background-color: #2196F3;
    color: #fff !important;
    border-radius: 4px;
}

.nilay-btn-small:hover {
    background-color: #1976D2;
}

/* --- Admin Panel General Styles --- */
.nilay-admin-panel {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.nilay-section-title {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
    color: #1d2327;
}

/* Flex Grid System for Admin */
.nilay-flex-row,
.nilay-flex-row-2,
.nilay-flex-row-3,
.nilay-flex-row-4 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.nilay-flex-row>div,
.nilay-flex-row-2>div,
.nilay-flex-row-3>div,
.nilay-flex-row-4>div {
    flex: 1;
    min-width: 200px;
}

/* Specific Columns */
.nilay-flex-row-2>div {
    flex-basis: calc(50% - 20px);
}

.nilay-flex-row-3>div {
    flex-basis: calc(33.33% - 20px);
}

.nilay-flex-row-4>div {
    flex-basis: calc(25% - 20px);
}

/* Form Elements Spacing & Polish */
.nilay-admin-panel label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3338;
    line-height: 1.4;
}

.nilay-admin-panel input[type="text"],
.nilay-admin-panel input[type="number"],
.nilay-admin-panel input[type="email"],
.nilay-admin-panel input[type="password"],
.nilay-admin-panel input[type="url"] {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    height: 40px;
    line-height: 1.3;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    padding: 0 12px;
    transition: all 0.2s;
}

.nilay-admin-panel select {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    height: 40px;
    line-height: 1.3;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    padding: 0 12px;
    padding-left: 36px !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 12px center !important;
    background-size: 14px 14px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer;
    transition: all 0.2s;
}

.nilay-admin-panel input:focus,
.nilay-admin-panel select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.nilay-admin-panel textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 1.5;
}

/* Color Picker Alignment */
.nilay-admin-panel input[type="color"] {
    height: 40px;
    width: 60px;
    padding: 4px;
    cursor: pointer;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    vertical-align: middle;
}

/* Fix for WP List Table Filters */
.tablenav .actions select {
    max-width: 200px;
    margin-left: 5px;
    margin-right: 5px;
}

/* Card Builder Specifics */
.nilay-admin-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 20px;
    margin-top: 20px;
    border-radius: 4px;
}

/* --- Utilities --- */
.nilay-mt-5 {
    margin-top: 5px !important;
}

.nilay-mt-10 {
    margin-top: 10px !important;
}

.nilay-mb-5 {
    margin-bottom: 5px !important;
}

.nilay-mb-10 {
    margin-bottom: 10px !important;
}

/* --- WP List Table Fixes (Critical) --- */
/* Override generic input width for standard WP filters */
.tablenav .actions select,
.tablenav .actions input[type="submit"],
.tablenav .actions .button {
    width: auto !important;
    display: inline-block !important;
    margin: 0 5px !important;
    /* Ensure separation */
    vertical-align: middle;
    height: 30px !important;
    /* Standard WP height */
    line-height: 28px !important;
}

/* Fix specifically for date picker dropdowns if they use different classes */
.tablenav .alignleft.actions select {
    margin-right: 5px;
    margin-left: 5px;
}

/* ==========================================================================
   NILAY HEADER & MEGA MENU BUILDER (BARGHCHI STORE STYLE)
   ========================================================================== */
.nilay-custom-header {
    width: 100%;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    font-family: inherit;
    position: relative;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.nilay-custom-header *,
.nilay-custom-header *::before,
.nilay-custom-header *::after {
    box-sizing: border-box;
}

.nilay-sticky-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.nilay-hdr-container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 1. TOP BAR --- */
.nilay-hdr-topbar {
    font-size: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.nilay-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.nilay-topbar-notice {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}
.nilay-topbar-notice .nilay-hdr-icon {
    display: flex;
    align-items: center;
    color: var(--hdr-primary, #1d72b8);
}
.nilay-topbar-contact {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}
.nilay-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease, color 0.2s ease;
}
.nilay-topbar-link:hover {
    color: var(--hdr-primary, #1d72b8);
    opacity: 0.85;
}

/* --- 2. MAIN HEADER ROW --- */
.nilay-hdr-mainbar {
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}
.nilay-custom-header button {
    box-sizing: border-box;
    font-family: inherit;
}
.nilay-mainbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.nilay-hdr-right-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.nilay-hdr-mobile-toggle {
    display: none !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    color: #1e293b !important;
    padding: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    align-items: center;
    justify-content: center;
}

/* Logo Box */
.nilay-hdr-logo-box {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nilay-hdr-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.nilay-hdr-logo img {
    display: block;
    height: auto;
    max-height: 52px;
    object-fit: contain;
}
.nilay-hdr-logo-text {
    display: flex;
    flex-direction: column;
}
.nilay-logo-brand {
    font-size: 24px;
    font-weight: 800;
    color: var(--hdr-primary, #1d72b8);
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.nilay-logo-sub {
    font-size: 11.5px;
    color: #d97706;
    font-weight: 700;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

/* Search Box */
.nilay-hdr-search-box {
    flex: 1;
    max-width: 620px;
    margin: 0 16px;
    position: relative;
}
.nilay-hdr-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 50px !important;
    padding: 3px 6px 3px 14px !important;
    height: 46px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease;
}
.nilay-hdr-search-form:focus-within {
    border-color: var(--hdr-primary, #1d72b8) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(29, 114, 184, 0.12) !important;
}
.nilay-search-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 10px 0 8px !important;
    margin: 0 !important;
    cursor: pointer !important;
    color: #94a3b8 !important;
    width: auto !important;
    height: 100% !important;
    min-width: unset !important;
    line-height: 1 !important;
    border-left: 1px solid #e2e8f0 !important;
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.nilay-hdr-search-form:focus-within .nilay-search-submit,
.nilay-search-submit:hover {
    color: var(--hdr-primary, #1d72b8) !important;
}
.nilay-search-submit svg {
    stroke: currentColor !important;
    display: block;
}
.nilay-search-input {
    flex: 1 !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 0 12px !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
    outline: none !important;
    box-shadow: none !important;
    height: 100% !important;
    line-height: normal !important;
}
.nilay-search-input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Live Search Suggestions Dropdown */
.nilay-search-live-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-height: 380px;
    overflow-y: auto;
    display: none;
    padding: 6px 0;
}
.nilay-search-live-results.active {
    display: block;
}
.nilay-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}
.nilay-search-item:last-child {
    border-bottom: none;
}
.nilay-search-item:hover {
    background: #f8fafc;
}
.nilay-search-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.nilay-search-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}
.nilay-search-title {
    font-size: 13px;
    color: #1e293b;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nilay-search-price {
    font-size: 12px;
    color: #16a34a;
    font-weight: 700;
}
.nilay-search-loading,
.nilay-search-empty {
    padding: 14px 18px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

/* Promo Badge / Campaign Center */
.nilay-hdr-promo-badge {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nilay-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 6px 14px;
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nilay-promo-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 114, 184, 0.12);
}
.nilay-promo-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}
.nilay-promo-texts {
    display: flex;
    flex-direction: column;
}
.nilay-promo-tag {
    font-size: 12px;
    color: var(--hdr-primary, #1d72b8);
    font-weight: 800;
    line-height: 1.2;
}
.nilay-promo-title {
    font-size: 11px;
    color: #64748b;
}

/* User Actions (Cart / Wishlist / Account) */
.nilay-hdr-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.nilay-hdr-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.nilay-hdr-action-btn:hover {
    border-color: var(--hdr-primary, #1d72b8);
    color: var(--hdr-primary, #1d72b8);
    background: #ffffff;
}
.nilay-action-icon-only {
    padding: 8px 10px;
}
.nilay-cart-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.nilay-cart-counter {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}

/* --- 3. NAVBAR & MEGA MENU BAR --- */
.nilay-hdr-navbar {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    position: relative;
    z-index: 99;
}
.nilay-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nilay-nav-right-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Mega Menu Trigger & Wrapper */
.nilay-megamenu-wrapper {
    position: relative;
}
.nilay-megamenu-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #1e293b !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    transition: color 0.2s ease !important;
    border-radius: 0 !important;
}
.nilay-megamenu-trigger:hover,
.nilay-megamenu-wrapper:hover .nilay-megamenu-trigger,
.nilay-megamenu-wrapper.open .nilay-megamenu-trigger {
    color: var(--hdr-primary, #1d72b8) !important;
}
.nilay-megamenu-trigger svg {
    color: inherit !important;
    stroke: currentColor !important;
}
.nilay-nav-divider {
    color: #cbd5e1 !important;
    font-weight: 300 !important;
    user-select: none !important;
}

/* Mega Menu Flyout Dropdown (Barghchi 2-Column Pane) */
.nilay-megamenu-flyout {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 980px;
    max-width: 95vw;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 2px solid var(--hdr-primary, #1d72b8);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}
.nilay-megamenu-wrapper:hover .nilay-megamenu-flyout,
.nilay-megamenu-wrapper.open .nilay-megamenu-flyout {
    display: block;
}
.nilay-megamenu-grid {
    display: flex;
    min-height: 440px;
}

/* Mega Menu Sidebar (Right) */
.nilay-mega-sidebar {
    width: 230px;
    background: #f8fafc;
    border-left: 1px solid #f1f5f9;
    padding: 10px 0;
    flex-shrink: 0;
}
.nilay-mega-parent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nilay-mega-parent-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    color: #475569;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s ease;
    border-right: 3px solid transparent;
}
.nilay-mega-parent-item:hover a,
.nilay-mega-parent-item.active a {
    background: #ffffff;
    color: var(--hdr-primary, #1d72b8);
    font-weight: 700;
    border-right-color: var(--hdr-primary, #1d72b8);
}
.nilay-cat-thumb-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}
.nilay-cat-default-icon {
    display: flex;
    align-items: center;
    color: #94a3b8;
}

/* Mega Menu Content (Left Pane) */
.nilay-mega-content {
    flex: 1;
    padding: 24px;
    background: #ffffff;
    max-height: 500px;
    overflow-y: auto;
}
.nilay-mega-panel {
    display: none;
}
.nilay-mega-panel.active {
    display: block;
}
.nilay-mega-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 20px;
}
.nilay-mega-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nilay-mega-col-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.15s ease;
}
.nilay-mega-col-title:hover {
    color: var(--hdr-primary, #1d72b8);
}
.nilay-col-bar {
    color: var(--hdr-primary, #1d72b8);
    font-weight: 900;
    font-size: 16px;
}
.nilay-mega-child-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.nilay-mega-child-list a {
    font-size: 12.5px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
    display: inline-block;
}
.nilay-mega-child-list a:hover {
    color: var(--hdr-primary, #1d72b8);
    transform: translateX(-3px);
}
.nilay-mega-empty {
    padding: 20px;
    color: #64748b;
    font-size: 13.5px;
}

/* Standard Main Nav Links */
.nilay-hdr-mainmenu {
    display: flex;
    align-items: center;
}
.nilay-nav-links-list {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nilay-nav-links-list li {
    position: relative;
}
.nilay-nav-links-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 6px;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.nilay-nav-links-list a:hover {
    color: var(--hdr-primary, #1d72b8);
}
.nilay-menu-icon {
    font-size: 14px;
}
.nilay-nav-links-list .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    list-style: none;
    display: none;
    z-index: 1000;
}
.nilay-nav-links-list li:hover > .sub-menu {
    display: block;
}
.nilay-nav-links-list .sub-menu li a {
    padding: 8px 16px;
    font-size: 13px;
    color: #334155;
    display: block;
}
.nilay-nav-links-list .sub-menu li a:hover {
    background: #f8fafc;
    color: var(--hdr-primary, #1d72b8);
}

/* CTA Buttons */
.nilay-nav-left-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nilay-btn-cta-outline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    border: 1.5px solid var(--hdr-primary, #1d72b8) !important;
    color: var(--hdr-primary, #1d72b8) !important;
    background: transparent !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}
.nilay-btn-cta-outline:hover {
    background: var(--hdr-primary, #1d72b8) !important;
    color: #ffffff !important;
}
.nilay-btn-cta-outline svg {
    color: inherit !important;
    stroke: currentColor !important;
    flex-shrink: 0;
}
.nilay-btn-cta-outline:hover svg {
    stroke: #ffffff !important;
}
.nilay-btn-cta-solid {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: var(--hdr-primary, #1d72b8) !important;
    color: #ffffff !important;
    border: 1.5px solid var(--hdr-primary, #1d72b8) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    box-shadow: 0 2px 6px rgba(29, 114, 184, 0.25) !important;
    transition: all 0.2s ease !important;
}
.nilay-btn-cta-solid:hover {
    background: var(--hdr-primary-hover, #155d97) !important;
    border-color: var(--hdr-primary-hover, #155d97) !important;
    color: #ffffff !important;
}
.nilay-btn-cta-solid *,
.nilay-btn-cta-solid span {
    color: #ffffff !important;
}
.nilay-btn-cta-solid svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    flex-shrink: 0;
}

/* --- 4. MOBILE OFF-CANVAS DRAWER --- */
.nilay-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.3s ease;
    direction: rtl;
    text-align: right;
}
.nilay-mobile-drawer.active {
    pointer-events: auto;
    visibility: visible;
}
.nilay-mobile-drawer .nilay-drawer-overlay,
.nilay-mobile-drawer .nilay-mobile-drawer-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.6) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
    z-index: 1 !important;
}
.nilay-mobile-drawer.active .nilay-drawer-overlay,
.nilay-mobile-drawer.active .nilay-mobile-drawer-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}
.nilay-mobile-drawer .nilay-drawer-panel,
.nilay-mobile-drawer .nilay-mobile-drawer-panel,
.nilay-drawer-panel {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 320px !important;
    max-width: 85vw !important;
    height: 100% !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    box-shadow: -6px 0 25px rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateX(100%) !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}
.nilay-mobile-drawer.active .nilay-drawer-panel,
.nilay-mobile-drawer.active .nilay-mobile-drawer-panel {
    transform: translateX(0) !important;
}
.nilay-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.nilay-drawer-logo .nilay-logo-brand {
    font-size: 20px;
    font-weight: 800;
    color: var(--hdr-primary, #1d72b8);
}
.nilay-mobile-drawer .nilay-drawer-close,
.nilay-mobile-drawer-close {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    color: #1e293b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}
.nilay-mobile-drawer .nilay-drawer-close svg,
.nilay-mobile-drawer-close svg {
    stroke: #1e293b !important;
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.5 !important;
    display: block !important;
    transition: stroke 0.2s ease !important;
}
.nilay-mobile-drawer .nilay-drawer-close:hover,
.nilay-mobile-drawer-close:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #ef4444 !important;
    transform: rotate(90deg) !important;
}
.nilay-mobile-drawer .nilay-drawer-close:hover svg,
.nilay-mobile-drawer-close:hover svg {
    stroke: #ef4444 !important;
}
.nilay-drawer-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.nilay-dtab-btn {
    flex: 1;
    padding: 12px 10px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    box-shadow: none !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
}
.nilay-dtab-btn.active {
    background: #ffffff !important;
    color: var(--hdr-primary, #1d72b8) !important;
    border-bottom-color: var(--hdr-primary, #1d72b8) !important;
}
.nilay-dtab-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: none;
}
.nilay-dtab-content.active {
    display: block;
}

/* Accordion for categories */
.nilay-mcat-accordion {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nilay-mcat-item {
    border-bottom: 1px solid #f1f5f9;
}
.nilay-mcat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
}
.nilay-mcat-head a {
    color: #1e293b;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
}
.nilay-mcat-toggle {
    background: #f1f5f9 !important;
    border: none !important;
    box-shadow: none !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #475569 !important;
    line-height: 1 !important;
    padding: 0 !important;
    transition: background 0.15s ease;
}
.nilay-mcat-toggle:hover {
    background: #e2e8f0 !important;
}
.nilay-mcat-sub {
    list-style: none;
    margin: 0;
    padding: 0 12px 10px 0;
    display: none;
}
.nilay-mcat-sub.open {
    display: block;
}
.nilay-mcat-subgroup {
    padding: 6px 0;
}
.nilay-subgroup-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}
.nilay-mcat-leaves {
    list-style: none;
    margin: 0;
    padding: 0 8px 0 0;
}
.nilay-mcat-leaves li {
    padding: 3px 0;
}
.nilay-mcat-leaves a {
    font-size: 12.5px;
    color: #64748b;
    text-decoration: none;
}

/* Drawer Menu List */
.nilay-drawer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nilay-drawer-nav-list li a {
    display: block;
    padding: 11px 6px;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #f8fafc;
}
.nilay-drawer-nav-list li a:hover {
    color: var(--hdr-primary, #1d72b8);
}
.nilay-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 991px) {
    .nilay-hdr-topbar {
        display: none !important;
    }
    .nilay-hdr-promo-badge {
        display: none !important;
    }
    .nilay-hdr-navbar {
        display: none !important;
    }
    .nilay-hdr-mainbar {
        padding: 10px 0 !important;
    }
    .nilay-mainbar-inner {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }
    .nilay-hdr-right-group {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        flex-shrink: 0 !important;
    }
    .nilay-hdr-mobile-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        background: #f8fafc !important;
        border: 1.5px solid #e2e8f0 !important;
        border-radius: 8px !important;
        color: #1e293b !important;
        padding: 0 !important;
        cursor: pointer !important;
        box-shadow: none !important;
        flex-shrink: 0 !important;
    }
    .nilay-hdr-mobile-toggle:hover {
        background: #f1f5f9 !important;
        color: var(--hdr-primary, #1d72b8) !important;
    }
    .nilay-hdr-logo img {
        max-height: 38px !important;
        max-width: 140px !important;
    }
    .nilay-logo-brand {
        font-size: 18px !important;
    }
    .nilay-logo-sub {
        font-size: 10px !important;
    }
    .nilay-hdr-user-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }
    .nilay-action-label {
        display: none !important;
    }
    .nilay-hdr-action-btn {
        padding: 0 !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 8px !important;
        justify-content: center !important;
        min-width: unset !important;
    }
    .nilay-cart-counter {
        top: -6px !important;
        left: -6px !important;
        min-width: 16px !important;
        height: 16px !important;
        font-size: 10px !important;
        padding: 0 3px !important;
    }
    .nilay-hdr-search-box {
        order: 3 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 6px 0 0 0 !important;
    }
    .nilay-hdr-search-form {
        height: 42px !important;
        padding: 2px 4px 2px 10px !important;
    }
    .nilay-search-input {
        font-size: 13px !important;
        padding: 0 8px !important;
    }
}

/* ==========================================================================
   NILAY AJAX LIVE SEARCH (CATEGORIES & VIEW ALL RESULTS)
   ========================================================================== */
.nilay-search-live-results {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    z-index: 9999;
    display: none;
    max-height: 480px;
    overflow-y: auto;
}
.nilay-search-live-results.active {
    display: block;
    animation: nilaySearchFadeIn 0.2s ease-out;
}
@keyframes nilaySearchFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.nilay-search-section {
    padding: 8px 0;
}
.nilay-search-section-title {
    padding: 6px 14px;
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.3px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}
.nilay-search-cats-section {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}
.nilay-search-cats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px 2px;
}
.nilay-search-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}
.nilay-search-cat-pill:hover {
    background: var(--hdr-primary, #1d72b8);
    border-color: var(--hdr-primary, #1d72b8);
    color: #ffffff;
}
.nilay-search-cat-pill:hover .nilay-cat-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
.nilay-cat-badge {
    font-size: 10.5px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 1px 5px;
}
.nilay-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.nilay-search-item:last-child {
    border-bottom: none;
}
.nilay-search-item:hover {
    background: #f1f5f9;
}
.nilay-search-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}
.nilay-search-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.nilay-search-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nilay-search-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--hdr-primary, #1d72b8);
}
.nilay-search-footer {
    padding: 10px 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}
.nilay-search-all-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 9px 16px !important;
    background: var(--hdr-primary, #1d72b8) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
}
.nilay-search-all-btn:hover {
    background: var(--hdr-primary-hover, #155d97) !important;
    transform: translateY(-1px) !important;
}
.nilay-search-all-btn svg {
    flex-shrink: 0 !important;
    display: block !important;
}
.nilay-search-loading,
.nilay-search-empty {
    padding: 22px 16px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* ==========================================================================
   NILAY AJAX MINI CART DRAWER (OFF-CANVAS)
   ========================================================================== */
.nilay-cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.3s;
}
.nilay-cart-drawer.active {
    visibility: visible;
    pointer-events: auto;
}
.nilay-cart-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nilay-cart-drawer.active .nilay-cart-drawer-overlay {
    opacity: 1;
}
.nilay-cart-drawer-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 390px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    z-index: 2;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
/* حالت باز شدن از چپ */
.nilay-drawer-pos-left .nilay-cart-drawer-panel {
    left: 0;
    transform: translateX(-100%);
}
.nilay-drawer-pos-left.active .nilay-cart-drawer-panel {
    transform: translateX(0);
}
/* حالت باز شدن از راست */
.nilay-drawer-pos-right .nilay-cart-drawer-panel {
    right: 0;
    transform: translateX(100%);
}
.nilay-drawer-pos-right.active .nilay-cart-drawer-panel {
    transform: translateX(0);
}

/* هدر سایدبار سبد خرید */
.nilay-cart-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.nilay-cdrawer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}
.nilay-cdrawer-title svg {
    color: var(--hdr-primary, #1d72b8);
}
.nilay-cdrawer-badge {
    background: var(--hdr-primary, #1d72b8) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    padding: 0 7px !important;
    min-width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}
.nilay-cart-drawer-close {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}
.nilay-cart-drawer-close:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-color: #fca5a5 !important;
}
.nilay-cart-drawer-close svg {
    width: 14px !important;
    height: 14px !important;
    stroke: currentColor !important;
    display: block !important;
    margin: auto !important;
    flex-shrink: 0 !important;
}

/* بدنه و اقلام سبد خرید */
.nilay-cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
}
.nilay-cdrawer-items-list {
    display: flex;
    flex-direction: column;
}
.nilay-cdrawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 6px;
    border-bottom: 1px solid #f1f5f9;
    transition: opacity 0.2s, background 0.2s;
    position: relative;
}
.nilay-cdrawer-item:last-child {
    border-bottom: none;
}
.nilay-cdrawer-thumb {
    width: 62px;
    height: 62px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8fafc;
}
.nilay-cdrawer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nilay-cdrawer-details {
    flex: 1;
    min-width: 0;
}
.nilay-cdrawer-name {
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}
.nilay-cdrawer-name a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.15s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nilay-cdrawer-name a:hover {
    color: var(--hdr-primary, #1d72b8);
}
.nilay-cdrawer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}
.nilay-cdrawer-price {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--hdr-primary, #1d72b8);
}
.nilay-cdrawer-price del {
    color: #94a3b8;
    font-weight: normal;
    font-size: 11px;
    margin-left: 4px;
}
.nilay-cdrawer-price ins {
    text-decoration: none;
}
.nilay-cdrawer-qty-box {
    font-size: 11.5px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
}
.nilay-cdrawer-remove-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #94a3b8 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}
.nilay-cdrawer-remove-btn:hover {
    color: #ef4444 !important;
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
}
.nilay-cdrawer-remove-btn svg {
    width: 14px !important;
    height: 14px !important;
    stroke: currentColor !important;
    display: block !important;
    margin: auto !important;
    flex-shrink: 0 !important;
}

/* فوتر سایدبار سبد خرید */
.nilay-cdrawer-footer {
    padding: 16px 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.04);
}
.nilay-cdrawer-subtotal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 14.5px;
}
.nilay-cdrawer-subtotal-label {
    font-weight: 600;
    color: #475569;
}
.nilay-cdrawer-subtotal-val {
    font-weight: 800;
    font-size: 16px;
    color: #0f172a;
}
.nilay-cdrawer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nilay-btn-cdrawer-cart,
.nilay-btn-cdrawer-checkout {
    display: block;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.nilay-btn-cdrawer-cart {
    background: #f8fafc;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
}
.nilay-btn-cdrawer-cart:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}
.nilay-btn-cdrawer-checkout {
    background: var(--hdr-primary, #1d72b8);
    color: #ffffff !important;
    border: 1px solid var(--hdr-primary, #1d72b8);
}
.nilay-btn-cdrawer-checkout:hover {
    background: var(--hdr-primary-hover, #155d97);
    border-color: var(--hdr-primary-hover, #155d97);
}

/* حالت سبد خرید خالی */
.nilay-cart-empty {
    text-align: center;
    padding: 40px 16px;
}
.nilay-cart-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nilay-cart-empty h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}
.nilay-cart-empty p {
    margin: 0 0 18px 0;
    font-size: 13px;
    color: #64748b;
}
.nilay-btn-cart-shop {
    display: inline-block;
    padding: 9px 20px;
    background: var(--hdr-primary, #1d72b8);
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
}
.nilay-btn-cart-shop:hover {
    background: var(--hdr-primary-hover, #155d97);
}

/* ==========================================================================
   NILAY SUPPORT & EXPERT CONTACT DRAWER (MODULE: mod_support_drawer)
   ========================================================================== */
body.nilay-drawer-active {
    overflow: hidden !important;
}

.nilay-support-drawer-scope {
    position: static !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: visible !important;
    font-family: inherit;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    pointer-events: none !important;
}
.nilay-support-drawer-scope * {
    box-sizing: border-box;
}

/* 1. Floating Action Button (FAB) */
.nilay-support-fab {
    position: fixed !important;
    bottom: var(--nilay-fab-offset-y, 24px) !important;
    z-index: 9999999 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    padding: 12px 20px;
    background: var(--nilay-fab-bg, #0284c7);
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px;
    box-shadow: 0 10px 25px -4px rgba(2, 132, 199, 0.4), 0 6px 12px -2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none !important;
    pointer-events: auto !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}
.nilay-support-fab * {
    pointer-events: none !important;
}
.nilay-support-fab.nilay-fab-bottom-left {
    left: var(--nilay-fab-offset-x, 24px);
    right: auto;
}
.nilay-support-fab.nilay-fab-bottom-right {
    right: var(--nilay-fab-offset-x, 24px);
    left: auto;
}
.nilay-support-fab:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px -4px rgba(2, 132, 199, 0.5), 0 8px 16px -2px rgba(0, 0, 0, 0.12);
}
.nilay-support-fab:active {
    transform: translateY(-1px) scale(0.99);
}
.nilay-fab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}
.nilay-fab-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}
.nilay-fab-text {
    white-space: nowrap;
}

/* FAB Icon Only Mode */
.nilay-support-fab.nilay-fab-icon-only {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
    gap: 0 !important;
}
.nilay-support-fab.nilay-fab-icon-only .nilay-fab-icon {
    width: 26px !important;
    height: 26px !important;
}
.nilay-support-fab.nilay-fab-icon-only.has-pulse::before {
    border-radius: 50% !important;
}

/* FAB Pulse Animation */
.nilay-support-fab.has-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50px;
    background: inherit;
    opacity: 0.5;
    z-index: -1;
    animation: nilay-fab-pulse 2.2s infinite cubic-bezier(0.24, 0, 0.38, 1);
    pointer-events: none !important;
}
@keyframes nilay-fab-pulse {
    0% {
        transform: scale(0.96);
        opacity: 0.6;
    }
    70% {
        transform: scale(1.22);
        opacity: 0;
    }
    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

/* 2. Backdrop Overlay */
#nilay-support-overlay,
.nilay-support-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000000 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transition: opacity 0.18s cubic-bezier(0, 0, 0.2, 1), visibility 0.18s;
}
#nilay-support-overlay.is-active,
.nilay-support-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
}

/* 3. Off-Canvas Drawer Container */
.nilay-support-drawer {
    position: fixed !important;
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.3) !important;
    overflow: hidden !important;
    display: block !important;
    box-sizing: border-box !important;
    transition: transform 0.18s cubic-bezier(0, 0, 0.2, 1), opacity 0.18s ease, visibility 0.18s !important;
}

/* Closed State: completely inert and hidden, never captures clicks */
.nilay-support-drawer:not(.is-open) {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}
.nilay-support-drawer:not(.is-open) * {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Open State */
.nilay-support-drawer.is-open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 10000001 !important;
}
.nilay-support-drawer.is-open * {
    pointer-events: auto;
}

/* Compact Mode (Exact fit to content boxes with rounded corners, no dead bottom space) */
.nilay-support-drawer.nilay-drawer-compact {
    top: auto !important;
    bottom: var(--nilay-fab-offset-y, 24px) !important;
    width: 385px !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    max-height: calc(100vh - 48px) !important;
    border-radius: 24px !important;
    box-shadow: 0 16px 48px -6px rgba(15, 23, 42, 0.28) !important;
    overflow: hidden !important;
}
.nilay-support-drawer.nilay-drawer-compact.nilay-drawer-right {
    right: var(--nilay-fab-offset-x, 24px) !important;
    left: auto !important;
    transform: translateY(20px) scale(0.96) !important;
}
.nilay-support-drawer.nilay-drawer-compact.nilay-drawer-left {
    left: var(--nilay-fab-offset-x, 24px) !important;
    right: auto !important;
    transform: translateY(20px) scale(0.96) !important;
}
.nilay-support-drawer.nilay-drawer-compact.is-open {
    transform: translateY(0) scale(1) !important;
}

.nilay-support-drawer.nilay-drawer-compact .nilay-drawer-slider {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
}
.nilay-support-drawer.nilay-drawer-compact .nilay-step-1 {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: calc(100vh - 48px) !important;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
}
.nilay-support-drawer.nilay-drawer-compact .nilay-step-2 {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Full Height Mode */
.nilay-support-drawer:not(.nilay-drawer-compact) {
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    width: 400px !important;
    max-width: 92vw !important;
    border-radius: 0 !important;
}
.nilay-support-drawer:not(.nilay-drawer-compact).nilay-drawer-right {
    right: 0 !important;
    left: auto !important;
    transform: translateX(100%) !important;
}
.nilay-support-drawer:not(.nilay-drawer-compact).nilay-drawer-left {
    left: 0 !important;
    right: auto !important;
    transform: translateX(-100%) !important;
}
.nilay-support-drawer:not(.nilay-drawer-compact).is-open {
    transform: translateX(0) !important;
}

@media (max-width: 480px) {
    .nilay-support-drawer.nilay-drawer-compact {
        bottom: 12px !important;
        right: 12px !important;
        left: 12px !important;
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 24px) !important;
        border-radius: 20px !important;
    }
}
@media (max-height: 520px) {
    .nilay-support-drawer.nilay-drawer-compact .nilay-step-1 {
        overflow-y: auto !important;
    }
}

/* 4. Multi-Step Navigation Engine (Base Rules) */
.nilay-drawer-slider {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #f8fafc !important;
}
.nilay-drawer-step {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.28s !important;
    will-change: transform, opacity;
}

/* State-based Step Visibility & Navigation ONLY when Drawer is Open */
.nilay-support-drawer.is-open[data-step="1"] .nilay-step-1,
.nilay-support-drawer.is-open:not(.step-2-active) .nilay-step-1 {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 2 !important;
}
.nilay-support-drawer.is-open[data-step="1"] .nilay-step-2,
.nilay-support-drawer.is-open:not(.step-2-active) .nilay-step-2 {
    transform: translateX(-100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.nilay-support-drawer.is-open[data-step="2"] .nilay-step-1,
.nilay-support-drawer.is-open.step-2-active .nilay-step-1 {
    transform: translateX(100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 1 !important;
}
.nilay-support-drawer.is-open[data-step="2"] .nilay-step-2,
.nilay-support-drawer.is-open.step-2-active .nilay-step-2 {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 2 !important;
}

/* 5. Curved Brand Hero Banner */
.nilay-drawer-hero {
    position: relative;
    padding: 14px 16px 0 16px !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0284c7 100%);
    color: #ffffff;
    text-align: center;
    flex-shrink: 0;
}
.nilay-hero-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px !important;
}
.nilay-support-drawer .nilay-drawer-close,
.nilay-support-drawer .nilay-drawer-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.16) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 !important;
    line-height: 1;
}
.nilay-support-drawer .nilay-drawer-close {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    margin-right: auto; /* aligns close to left/corner in RTL */
}
.nilay-support-drawer .nilay-drawer-close:hover {
    background: rgba(239, 68, 68, 0.85) !important;
    border-color: rgba(239, 68, 68, 1) !important;
    transform: rotate(90deg);
}
.nilay-drawer-back {
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    gap: 4px;
    margin-left: auto;
}
.nilay-drawer-back:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    transform: translateX(2px);
}
.nilay-hero-brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 0 6px 0 !important;
}
.nilay-hero-logo {
    max-height: 40px !important;
    max-width: 140px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
    margin: 0 auto 6px auto !important;
    border: none !important;
    box-shadow: none !important;
}
.nilay-hero-title-text {
    font-size: 16px !important;
    font-weight: 800;
    margin-bottom: 6px !important;
    letter-spacing: -0.02em;
}
.nilay-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px !important;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    font-size: 11px !important;
    font-weight: 500;
    color: #f1f5f9;
    margin-bottom: 6px !important;
    line-height: 1.3;
}
.nilay-hero-phone-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 800;
    direction: ltr;
    margin-top: 1px !important;
    transition: transform 0.2s;
}
.nilay-hero-phone-cta:hover {
    transform: scale(1.05);
}
.nilay-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px !important;
    height: 24px !important;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}
.nilay-hero-curve {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: 6px !important;
}
.nilay-hero-curve svg {
    display: block;
    width: calc(100% + 2px);
    height: 20px !important;
}

/* 6. Drawer Content Body & Cards */
.nilay-drawer-body {
    padding: 12px 14px 16px 14px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px !important;
}
.nilay-drawer-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px !important;
    padding: 14px 15px !important;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.nilay-drawer-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.08);
}
.nilay-card-title {
    margin: 0 0 4px 0 !important;
    font-size: 14px !important;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35 !important;
}
.nilay-card-desc {
    margin: 0;
    font-size: 12px !important;
    color: #64748b;
    line-height: 1.45 !important;
}
.nilay-card-footer {
    margin-top: 10px !important;
}
.nilay-card-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    width: 100%;
    padding: 9px 14px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box !important;
    line-height: 1.35 !important;
}
.nilay-btn-outline {
    background: #ffffff;
    color: #0284c7 !important;
    border: 1.5px solid #0284c7 !important;
}
.nilay-btn-outline:hover {
    background: #0284c7;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.nilay-btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}
.nilay-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}
.nilay-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Avatars Stack Preview */
.nilay-avatars-stack {
    display: flex;
    align-items: center;
    margin-top: 14px;
    direction: rtl;
}
.nilay-avatar-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-left: -10px;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nilay-avatar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nilay-avatar-initial {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}
.nilay-avatar-more {
    background: #0284c7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

/* 7. Step 2 Experts List */
.nilay-experts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nilay-expert-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}
.nilay-expert-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
}
.nilay-expert-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nilay-expert-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #f1f5f9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nilay-expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nilay-expert-meta {
    flex: 1;
    overflow: hidden;
}
.nilay-expert-name {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.nilay-expert-role {
    margin: 0;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.45;
}
.nilay-expert-channels-bar {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.nilay-channels-label {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
}
.nilay-channels-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nilay-channel-pill {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.nilay-channel-pill svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* Specific Channel Brand Styles */
.nilay-channel-pill.channel-whatsapp {
    background: #dcfce7;
    color: #16a34a;
}
.nilay-channel-pill.channel-whatsapp:hover {
    background: #25D366;
    color: #ffffff;
    transform: scale(1.14);
}
.nilay-channel-pill.channel-bale {
    background: #e0f2fe;
    color: #0284c7;
}
.nilay-channel-pill.channel-bale:hover {
    background: #00A859;
    color: #ffffff;
    transform: scale(1.14);
}
.nilay-channel-pill.channel-eitaa {
    background: #ffedd5;
    color: #ea580c;
}
.nilay-channel-pill.channel-eitaa:hover {
    background: #E76F26;
    color: #ffffff;
    transform: scale(1.14);
}
.nilay-channel-pill.channel-telegram {
    background: #e0f2fe;
    color: #0284c7;
}
.nilay-channel-pill.channel-telegram:hover {
    background: #229ED9;
    color: #ffffff;
    transform: scale(1.14);
}
.nilay-channel-pill.channel-rubika {
    background: #f3e8ff;
    color: #9333ea;
}
.nilay-channel-pill.channel-rubika:hover {
    background: #8B3A8B;
    color: #ffffff;
    transform: scale(1.14);
}
.nilay-channel-pill.channel-call {
    background: #f1f5f9;
    color: #0284c7;
}
.nilay-channel-pill.channel-call:hover {
    background: #0284c7;
    color: #ffffff;
    transform: scale(1.14);
}
.nilay-channel-pill.channel-custom {
    background: #f1f5f9;
    color: #475569;
}
.nilay-channel-pill.channel-custom:hover {
    background: #334155;
    color: #ffffff;
    transform: scale(1.14);
}

@media (max-width: 480px) {
    .nilay-support-drawer {
        width: 100vw;
        max-width: 100vw;
    }
    .nilay-support-fab {
        bottom: 16px;
        padding: 10px 16px;
        font-size: 12.5px;
    }
    .nilay-support-fab.nilay-fab-bottom-left {
        left: 16px;
    }
    .nilay-support-fab.nilay-fab-bottom-right {
        right: 16px;
    }
}

/* ==========================================================================
   NILAY CARD BUILDER - PRESET STYLES & RESPONSIVE GRID SYSTEM
   ========================================================================== */

/* --- Grid Container --- */
.nilay-card-grid {
    display: grid;
    gap: 20px;
    direction: rtl;
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}

.nilay-grid-item,
.nilay-preset-card-item {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* SMART COLUMN LAYOUT: Fluid and responsive across all device sizes */
.nilay-grid-cols-smart {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

@media (min-width: 1400px) {
    .nilay-grid-cols-smart {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1100px) and (max-width: 1399px) {
    .nilay-grid-cols-smart {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (min-width: 800px) and (max-width: 1099px) {
    .nilay-grid-cols-smart {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 480px) and (max-width: 799px) {
    .nilay-grid-cols-smart {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

@media (max-width: 479px) {
    .nilay-grid-cols-smart {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 330px) {
    .nilay-grid-cols-smart {
        grid-template-columns: 1fr !important;
    }
}

/* Fixed Columns */
.nilay-grid-cols-1 { grid-template-columns: 1fr; }
.nilay-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nilay-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nilay-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nilay-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nilay-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 1200px) {
    .nilay-grid-cols-5,
    .nilay-grid-cols-6 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .nilay-grid-cols-4,
    .nilay-grid-cols-5,
    .nilay-grid-cols-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .nilay-grid-cols-3,
    .nilay-grid-cols-4,
    .nilay-grid-cols-5,
    .nilay-grid-cols-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 479px) {
    .nilay-grid-cols-2,
    .nilay-grid-cols-3,
    .nilay-grid-cols-4,
    .nilay-grid-cols-5,
    .nilay-grid-cols-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 330px) {
    .nilay-card-grid {
        grid-template-columns: 1fr !important;
    }
}

/* کارت‌های افقی در موبایل */
@media (max-width: 640px) {
    .nilay-card-grid .nilay-pc-shop-4,
    .nilay-card-grid .nilay-pc-blog-5 {
        width: 100% !important;
    }
}

.nilay-preset-single-wrap {
    max-width: 360px;
    margin: 15px auto;
    width: 100%;
    box-sizing: border-box;
}

.nilay-grid-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    min-width: 0 !important;
}

/* --- Base Preset Card --- */
.nilay-preset-card-item {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    overflow: hidden;
    box-sizing: border-box;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    direction: rtl;
    text-align: right;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.nilay-preset-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

/* 6. پدینگ ۳ درصدی برای تصاویر کارت‌ها */
.nilay-pc-thumb-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 3% !important;
    box-sizing: border-box !important;
}

.nilay-pc-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.nilay-preset-card-item:hover .nilay-pc-thumb-wrap img {
    transform: scale(1.04);
}

.nilay-pc-thumb-wrap.soft {
    background: #f1f5f9;
}

/* Common Body */
.nilay-pc-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
}

@media (max-width: 520px) {
    .nilay-pc-body {
        padding: 10px 12px 14px;
    }
}

/* 1. استانداردسازی سایز فونت عنوان در کارت‌ها */
.nilay-preset-card-item .nilay-pc-title,
.nilay-preset-card-item h4.nilay-pc-title {
    margin: 0 0 8px 0 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    color: #1e293b !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 38px;
}

.nilay-preset-card-item .nilay-pc-title a,
.nilay-preset-card-item h4.nilay-pc-title a {
    color: #1e293b !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    transition: color 0.2s ease;
}

.nilay-preset-card-item .nilay-pc-title a:hover,
.nilay-preset-card-item h4.nilay-pc-title a:hover {
    color: #2563eb !important;
}

@media (max-width: 520px) {
    .nilay-preset-card-item .nilay-pc-title,
    .nilay-preset-card-item h4.nilay-pc-title,
    .nilay-preset-card-item .nilay-pc-title a,
    .nilay-preset-card-item h4.nilay-pc-title a {
        font-size: 12.5px !important;
        line-height: 1.4 !important;
        height: 35px;
    }
}

.nilay-pc-excerpt {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Common Pricing Box */
.nilay-pc-price-box {
    margin-top: auto;
    padding-top: 8px;
    font-size: 13.5px;
    color: #1e293b;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.nilay-pc-price-box del {
    color: #94a3b8;
    font-size: 12px;
}

.nilay-pc-price-box ins {
    text-decoration: none;
    color: #ef4444;
    font-weight: 700;
}

.nilay-pc-price-box .amount {
    font-weight: 700;
    color: #0f172a;
}

/* 7. اصلاح رنگ‌بندی و خوانایی دکمه‌ها (High Contrast & Theme Overrides Reset) */
.nilay-preset-card-item .nilay-pc-btn-block,
.nilay-preset-card-item a.nilay-pc-btn-block {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 6px 8px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-decoration: none !important;
    margin-top: 10px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2) !important;
}

.nilay-preset-card-item .nilay-pc-btn-block:hover,
.nilay-preset-card-item a.nilay-pc-btn-block:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.nilay-preset-card-item .nilay-pc-btn-outline,
.nilay-preset-card-item a.nilay-pc-btn-outline {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    border: 1.5px solid #2563eb !important;
    color: #2563eb !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    margin-top: 10px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

.nilay-preset-card-item .nilay-pc-btn-outline:hover,
.nilay-preset-card-item a.nilay-pc-btn-outline:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

/* ==========================================================================
   ۱. سبک‌های کارت فروشگاهی (SHOP 1 - 5)
   ========================================================================== */

/* --- Shop 1: مینیمال مدرن --- */
.nilay-pc-shop-1 .nilay-pc-badge-sale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.nilay-pc-shop-1 .nilay-pc-floating-btn,
.nilay-pc-shop-1 a.nilay-pc-floating-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2563eb !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.nilay-pc-shop-1 .nilay-pc-floating-btn:hover,
.nil-pc-shop-1 a.nilay-pc-floating-btn:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    transform: scale(1.1);
}

.nilay-pc-shop-1 .nilay-pc-floating-btn .dashicons {
    font-size: 17px;
    width: 17px;
    height: 17px;
    color: #ffffff !important;
}

/* --- Shop 2: کادر حاشیه‌دار الگانت با نشانگر انبار --- */
.nilay-pc-shop-2 {
    border-color: #e2e8f0;
}

.nilay-pc-shop-2 .nilay-pc-top-bar {
    padding: 8px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 11.5px;
    background: #fafafa;
}

.nilay-stock-status.in {
    color: #16a34a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nilay-stock-status.out {
    color: #ef4444;
    font-weight: 600;
}

.nilay-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    animation: nilay-pulse 1.8s infinite;
}

@keyframes nilay-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.nilay-pc-shop-2 .nilay-disc-tag {
    background: #fee2e2;
    color: #ef4444;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

/* --- Shop 3: ویترین لوکس سایه‌دار با ستاره --- */
.nilay-pc-shop-3 .nilay-pc-thumb-wrap.elevated {
    margin: 3%;
    width: calc(100% - 6%);
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.nilay-pc-shop-3 .nilay-pc-ribbon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

.nilay-pc-stars {
    color: #f59e0b;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

/* --- Shop 4: افقی فشرده (Horizontal) --- */
.nilay-pc-shop-4 {
    flex-direction: row !important;
    align-items: center;
    padding: 8px 10px;
}

.nilay-pc-shop-4 .nilay-pc-side-thumb {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    padding: 3% !important;
    box-sizing: border-box !important;
}

.nilay-pc-shop-4 .nilay-pc-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.nilay-pc-shop-4 .nilay-pc-side-body {
    flex: 1;
    padding-right: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nilay-pc-shop-4 .nilay-pc-btn-mini,
.nilay-pc-shop-4 a.nilay-pc-btn-mini {
    align-self: flex-start !important;
    margin-top: 6px !important;
    padding: 5px 12px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
}

.nilay-pc-shop-4 .nilay-pc-btn-mini:hover,
.nilay-pc-shop-4 a.nilay-pc-btn-mini:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

/* --- Shop 5: مدرن با نوار گرادیانتی و سود --- */
.nilay-pc-shop-5 {
    border-top: none;
}

.nilay-gradient-bar {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #2563eb, #8b5cf6, #ec4899);
}

.nilay-glass-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(239, 68, 68, 0.9);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    z-index: 2;
}

.nilay-profit-pill {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
    margin: 4px 0 6px;
}

.nilay-pc-btn-gradient,
.nilay-preset-card-item a.nilay-pc-btn-gradient {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 9px 12px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    margin-top: 10px !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.2s !important;
}

.nilay-pc-btn-gradient:hover,
.nilay-preset-card-item a.nilay-pc-btn-gradient:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.35) !important;
}

/* ==========================================================================
   ۲. سبک‌های کارت وبلاگ (BLOG 1 - 5)
   ========================================================================== */

/* --- Blog 1: مجله‌ای استاندارد --- */
.nilay-pc-blog-1 .nilay-cat-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    z-index: 2;
}

.nilay-meta-row {
    font-size: 11.5px;
    color: #94a3b8;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nilay-read-more-link,
.nilay-preset-card-item a.nilay-read-more-link {
    margin-top: auto !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: transform 0.2s !important;
}

.nilay-read-more-link:hover,
.nilay-preset-card-item a.nilay-read-more-link:hover {
    color: #1d4ed8 !important;
    transform: translateX(-4px) !important;
}

/* --- Blog 2: کارت تصویری اورلی (Hero Overlay) --- */
.nilay-pc-blog-2 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 290px;
    position: relative;
    border: none !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* لایه پوششی تیره سراسری برای تضمین کنتراست حتی در تصاویر با نور زیاد */
.nilay-pc-blog-2::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    z-index: 1;
    transition: background 0.3s ease;
}

.nilay-pc-blog-2:hover::before {
    background: rgba(15, 23, 42, 0.48);
}

.nilay-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

/* لایه گرادیانت فوق‌العاده خوانا و عمیق در پایین کارت زیر متن‌ها */
.nilay-hero-overlay-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.05) 0%,
        rgba(15, 23, 42, 0.32) 30%,
        rgba(15, 23, 42, 0.82) 62%,
        rgba(15, 23, 42, 0.96) 85%,
        rgba(15, 23, 42, 0.99) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 18px 18px;
    box-sizing: border-box;
    z-index: 2;
    pointer-events: none;
}

/* نشان دسته با کنتراست بالا و کاملاً خوانا */
.nilay-glass-cat {
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    margin-bottom: 8px !important;
    width: fit-content !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    z-index: 4;
}

/* عنوان کاملاً شفاف و سفید با سایه متنی قوی */
.nilay-pc-blog-2 .nilay-pc-title,
.nilay-pc-blog-2 h4.nilay-pc-title {
    margin: 0 0 10px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95), 0 1px 2px rgba(0, 0, 0, 0.9) !important;
    height: auto !important;
    max-height: 50px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    z-index: 4;
}

.nilay-pc-blog-2 .nilay-pc-title a,
.nilay-pc-blog-2 h4.nilay-pc-title a {
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95), 0 1px 2px rgba(0, 0, 0, 0.9) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, text-shadow 0.2s ease !important;
}

/* جلوگیری از تیره شدن متن عنوان روی هاور و ایجاد جلوه نئونی/روشن جذاب */
.nilay-pc-blog-2:hover .nilay-pc-title a,
.nilay-pc-blog-2 .nilay-pc-title a:hover,
.nilay-pc-blog-2:hover h4.nilay-pc-title a {
    color: #38bdf8 !important;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.65), 0 2px 5px rgba(0, 0, 0, 0.95) !important;
}

/* تاریخ و آیکون با کنتراست کامل */
.nilay-date-white {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95) !important;
    z-index: 4;
}

.nilay-date-white .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    color: #38bdf8 !important;
}

@media (max-width: 520px) {
    .nilay-pc-blog-2 {
        min-height: 250px;
    }
    .nilay-pc-blog-2 .nilay-pc-title,
    .nilay-pc-blog-2 h4.nilay-pc-title,
    .nilay-pc-blog-2 .nilay-pc-title a,
    .nilay-pc-blog-2 h4.nilay-pc-title a {
        font-size: 13.5px !important;
        line-height: 1.5 !important;
    }
}

/* --- Blog 3: کلاسیک با نوار متای پیشرفته و آواتار --- */
.nilay-author-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    margin-top: auto;
}

.nilay-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.nilay-author-name {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.nilay-date-left {
    margin-right: auto;
    font-size: 11.5px;
    color: #94a3b8;
}

/* --- Blog 4: مینیمال خطی --- */
.nilay-tag-accent {
    color: #2563eb;
    font-weight: 700;
    font-size: 11.5px;
    display: inline-block;
    margin-bottom: 4px;
}

.nilay-divider-line {
    height: 1px;
    background: #f1f5f9;
    margin: 10px 0;
}

.nilay-arrow-link,
.nilay-preset-card-item a.nilay-arrow-link {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    display: inline-block !important;
}

.nilay-arrow-link:hover,
.nilay-preset-card-item a.nilay-arrow-link:hover {
    color: #2563eb !important;
    transform: translateX(-4px) !important;
}

/* --- Blog 5: افقی دو ستونه وبلاگ --- */
.nilay-pc-blog-5 {
    flex-direction: row !important;
}

.nilay-pc-blog-5 .nilay-pc-side-thumb {
    width: 38%;
    min-height: 130px;
    flex-shrink: 0;
    padding: 3% !important;
    box-sizing: border-box !important;
}

.nilay-pc-blog-5 .nilay-pc-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.nilay-pc-blog-5 .nilay-pc-side-body {
    width: 62%;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
}

.nilay-cat-tag {
    font-size: 11px;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 4px;
}

.nilay-date-small {
    margin-top: auto;
    font-size: 11px;
    color: #94a3b8;
}

/* ==========================================================================
   ۳. سبک‌های کارت سایر پست‌تایپ‌ها (CPT 1 - 5)
   ========================================================================== */

/* --- CPT 1: کارت پروژه --- */
.nilay-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #10b981;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    z-index: 2;
}

/* --- CPT 2: کارت خدمات مدرن --- */
.nilay-service-icon-header {
    padding: 16px 16px 4px;
    display: flex;
    justify-content: center;
}

.nilay-service-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    background: #eff6ff;
    padding: 8px;
}

.nilay-pc-cpt-2 .nilay-pc-body {
    text-align: center;
    align-items: center;
}

/* --- CPT 3: کارت نمونه‌کار خلاقانه (Reveal on Hover) --- */
.nilay-portfolio-thumb-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 240px;
    overflow: hidden;
    padding: 3% !important;
    box-sizing: border-box !important;
}

.nilay-portfolio-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.nilay-glass-reveal-layer {
    position: absolute;
    inset: 3%;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    border-radius: 8px;
}

.nilay-preset-card-item:hover .nilay-glass-reveal-layer {
    opacity: 1;
}

.nilay-pc-title-white {
    color: #ffffff !important;
    font-size: 15px !important;
    margin: 0 0 8px 0 !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 1px 2px rgba(0, 0, 0, 0.9) !important;
}

.nilay-portfolio-cta {
    color: #38bdf8 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95) !important;
}

/* --- CPT 4: کارت دوره آموزشی --- */
.nilay-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: transform 0.2s;
}

.nilay-preset-card-item:hover .nilay-play-badge {
    transform: translate(-50%, -50%) scale(1.1);
}

.nilay-play-badge .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.nilay-course-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.nilay-course-price {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
}

.nilay-course-price del {
    font-size: 11.5px;
    color: #94a3b8;
    margin-right: 4px;
}

.nilay-course-price ins {
    text-decoration: none;
    color: #ef4444;
}

.nilay-course-btn,
.nilay-preset-card-item a.nilay-course-btn {
    background: #2563eb !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
}

.nilay-course-btn:hover,
.nilay-preset-card-item a.nilay-course-btn:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

/* --- CPT 5: کارت شرکتی / تیم --- */
.nilay-pc-cpt-5 .nilay-pc-body {
    align-items: flex-start;
}

/* ==========================================================================
   فروشگاه و آرشیو محصولات (Nilay Shop Archive & Price Table)
   طراحی فوق‌العاده مینیمال، منظم و ایزوله در برابر استایل‌های تهاجمی قالب
   ========================================================================== */
.nilay-shop-archive-root {
    direction: rtl;
    text-align: right;
    font-family: IRANSans, Vazirmatn, Segoe UI, Tahoma, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    padding: 10px 0 40px 0;
}

.nilay-shop-archive-root * {
    box-sizing: border-box;
}

/* ایزوله‌سازی فراگیر برای خنثی‌کردن استایل‌های دکمه، لیست و فونت قالب */
.nilay-shop-archive-root button,
.nilay-shop-archive-root input[type="button"],
.nilay-shop-archive-root .nilay-shop-sidebar button {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-size: 12px !important;
    line-height: normal !important;
    color: inherit !important;
    cursor: pointer !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    width: auto;
    height: auto;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 0 !important;
}

.nilay-shop-archive-root ul,
.nilay-shop-archive-root ol,
.nilay-shop-archive-root li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* مسیر راهنما (Breadcrumbs) */
.nilay-shop-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 14px;
    padding: 2px 0;
}
.nilay-shop-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}
.nilay-shop-breadcrumb a:hover {
    color: #2563eb;
}
.nilay-bc-sep {
    color: #cbd5e1;
    font-size: 11px;
}
.nilay-bc-current {
    color: #0f172a;
    font-weight: 600;
}

/* ساختار دو ستونه: سایدبار فیلترها + محتوای اصلی */
.nilay-shop-layout {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
    align-items: flex-start;
}

.nilay-shop-main {
    flex: 1;
    min-width: 0;
}

.nilay-shop-sidebar {
    width: 270px;
    flex-shrink: 0;
}

/* نوار بالای فروشگاه (Topbar: عنوان، تاریخ و دکمه‌های خروجی) */
.nilay-shop-topbar {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* باکس مجزای تولبار فروشگاه (مدل نمایش و تب‌های مرتب‌سازی در زیر دسته‌بندی‌ها) */
.nilay-shop-toolbar-box {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.nilay-topbar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* سوییچر حالت نمایش (محصولات / لیست قیمت) */
.nilay-view-switcher {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    background: #f1f5f9 !important;
    padding: 3px !important;
    border-radius: 8px !important;
	margin-bottom: 10px !important;
    border: 1px solid #e2e8f0 !important;
}
.nilay-switcher-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    padding: 0 5px 0 2px;
}
.nilay-view-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}
.nilay-view-btn svg {
    stroke: currentColor;
    width: 14px;
    height: 14px;
}
.nilay-view-btn:hover {
    color: #0f172a !important;
}
.nilay-view-btn.active {
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

/* تب‌های مرتب‌سازی */
.nilay-sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nilay-sort-icon-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
}
.nilay-sort-icon-wrap svg {
    width: 13px;
    height: 13px;
}
.nilay-sort-pills {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.nilay-sort-pill {
    display: inline-flex !important;
    align-items: center !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}
.nilay-sort-pill:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
	padding: 5px !important;
	border-radius: 5px !important;

}
.nilay-sort-pill.active {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-color: #bfdbfe !important;
    font-weight: 700 !important;
}

/* عنوان، تاریخ و دکمه‌های خروجی در نوار بالا */
.nilay-topbar-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.nilay-archive-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.nilay-archive-h1 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
}
.nilay-archive-date {
    font-size: 11px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 500;
}

.nilay-export-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nilay-export-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-left: 2px;
}
.nilay-export-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    padding: 0 !important;
}
.nilay-export-btn svg {
    width: 14px;
    height: 14px;
}
.nilay-export-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1 !important;
}
.nilay-export-excel:hover {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
}
.nilay-export-pdf:hover {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
}
.nilay-export-print:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

/* کانتینر محصولات و اسپینر لودینگ ایجکس */
.nilay-products-view-container {
    position: relative;
    min-height: 200px;
}
.nilay-view-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(1.5px);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.nilay-spinner-ring {
    width: 32px;
    height: 32px;
    border: 2.5px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: nilaySpinRing 0.75s linear infinite;
}
@keyframes nilaySpinRing {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   حالت ۱: جدول لیست قیمت (Price Table Mode)
   ========================================================================== */
.nilay-table-responsive {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.nilay-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: right;
}
.nilay-price-table thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.nilay-price-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}
.nilay-price-table tbody tr:hover {
    background: #f8fafc;
}
.nilay-price-table tbody tr:last-child {
    border-bottom: none;
}
.nilay-price-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

.nilay-col-cb {
    width: 36px;
    text-align: center;
}
.nilay-col-title {
    min-width: 220px;
}
.nilay-prod-table-link {
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.45;
    transition: color 0.15s ease;
}
.nilay-prod-table-link:hover {
    color: #2563eb;
}

.nilay-col-brand {
    width: 90px;
    text-align: center;
}
.nilay-brand-table-logo {
    max-height: 20px;
    max-width: 60px;
    object-fit: contain;
    filter: grayscale(30%);
}
.nilay-brand-table-name {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
}

.nilay-col-price {
    min-width: 130px;
    white-space: nowrap;
}
.nilay-price-amount {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
}
.nilay-price-unit {
    font-size: 10.5px;
    color: #64748b;
    margin-right: 3px;
}
.nilay-price-call {
    font-size: 12px;
    font-weight: 600;
    color: #d97706;
}

.nilay-col-stock {
    width: 80px;
    text-align: center;
    white-space: nowrap;
}
.nilay-stock-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
}
.nilay-stock-pill.in-stock {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.nilay-stock-pill.out-of-stock {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.nilay-col-action {
    width: 90px;
    text-align: center;
    white-space: nowrap;
}
.nilay-btn-action-cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 5px 12px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}
.nilay-btn-action-cart:hover {
    background: #1d4ed8 !important;
}
.nilay-btn-action-inquiry {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-radius: 6px !important;
    padding: 5px 12px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}
.nilay-btn-action-inquiry:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.nilay-col-proforma {
    width: 100px;
    text-align: center;
    white-space: nowrap;
}
.nilay-btn-proforma-outline {
    display: inline-block !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
    background: #eff6ff !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}
.nilay-btn-proforma-outline:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* چک‌باکس‌های سفارشی جدول و فیلترها */
.nilay-checkbox-label {
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
    position: relative !important;
    user-select: none !important;
    width: auto !important;
}
.nilay-checkbox-label input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
}
.nilay-cb-custom {
    width: 16px !important;
    height: 16px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    display: inline-block !important;
    position: relative !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0 !important;
}
.nilay-checkbox-label input[type="checkbox"]:checked ~ .nilay-cb-custom {
    background: #2563eb !important;
    border-color: #2563eb !important;
}
.nilay-checkbox-label input[type="checkbox"]:checked ~ .nilay-cb-custom::after {
    content: '' !important;
    position: absolute !important;
    left: 4.5px !important;
    top: 2px !important;
    width: 3.5px !important;
    height: 7px !important;
    border: solid #ffffff !important;
    border-width: 0 1.8px 1.8px 0 !important;
    transform: rotate(45deg) !important;
}

/* ==========================================================================
   حالت ۲: نمایش کارتی محصولات (Grid Mode)
   ========================================================================== */
.nilay-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 1200px) {
    .nilay-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 860px) {
    .nilay-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 520px) {
    .nilay-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

.nilay-product-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.18s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.nilay-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.nilay-pcard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 22px;
    margin-bottom: 8px;
}
.nilay-pcard-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 700;
}
.nilay-pcard-badge svg {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
}
.nilay-pcard-badge.badge-sale {
    background: #fef2f2;
    color: #ef4444;
}
.nilay-pcard-badge.badge-featured {
    background: #eff6ff;
    color: #2563eb;
}
.nilay-pcard-badge.badge-new {
    background: #ecfdf5;
    color: #10b981;
}
.nilay-pcard-badge.badge-hot {
    background: #fff7ed;
    color: #ea580c;
}
.nilay-pcard-badge.badge-eco {
    background: #f0fdf4;
    color: #16a34a;
}
.nilay-pcard-badge.badge-cheap {
    background: #e0f2fe;
    color: #0284c7;
}

.nilay-btn-wishlist {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.15s ease !important;
}
.nilay-btn-wishlist svg {
    width: 15px;
    height: 15px;
}
.nilay-btn-wishlist:hover {
    color: #ef4444 !important;
    background: #fef2f2 !important;
    transform: scale(1.1) !important;
}

.nilay-pcard-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: #f8fafc;
    margin-bottom: 10px;
}
.nilay-pcard-thumb img {
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    transition: transform 0.25s ease;
}
.nilay-product-card:hover .nilay-pcard-thumb img {
    transform: scale(1.04);
}
.nilay-pcard-watermark {
    display: none !important;
}

.nilay-pcard-brand {
    min-height: 18px;
    margin-bottom: 4px;
}
.nilay-pcard-brand img {
    max-height: 16px;
    max-width: 55px;
    object-fit: contain;
    filter: grayscale(40%);
}
.nilay-pcard-brand span {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.nilay-pcard-title {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}
.nilay-pcard-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.15s ease;
}
.nilay-pcard-title a:hover {
    color: #2563eb;
}

.nilay-pcard-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid #f8fafc;
}
.nilay-price-main {
    display: flex;
    flex-direction: column;
}
.nilay-reg-price {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: 1px;
}
.nilay-sale-price-line {
    display: flex;
    align-items: baseline;
    gap: 3px;
}
.nilay-amount {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}
.nilay-unit {
    font-size: 10.5px;
    color: #64748b;
}
.nilay-price-call-text {
    font-size: 12px;
    font-weight: 700;
    color: #d97706;
}
.nilay-discount-pill {
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 9999px;
}

/* صفحه‌بندی مدرن شماره‌دار */
.nilay-pagination-wrapper {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}
.nilay-pagination-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    padding: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.nilay-page-num {
    min-width: 30px !important;
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    padding: 0 !important;
}
.nilay-page-num:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}
.nilay-page-num.active {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-color: #2563eb !important;
}

/* بخش توضیحات دسته‌بندی ووکامرس در زیر محصولات */
.nilay-cat-description-box {
    margin-top: 24px;
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.nilay-cat-desc-content {
    font-size: 12.5px;
    line-height: 1.8;
    color: #475569;
}
.nilay-cat-desc-content p {
    margin: 0 0 8px 0;
}
.nilay-cat-desc-content p:last-child {
    margin-bottom: 0;
}
.nilay-cat-desc-content h2,
.nilay-cat-desc-content h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 12px 0 6px 0;
}

/* استپر فرآیند ۵ مرحله‌ای خرید سازمانی */
.nilay-shop-stepper-box {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.nilay-stepper-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.nilay-step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 90px;
}
.nilay-step-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}
.nilay-step-icon-circle svg {
    width: 18px;
    height: 18px;
}
.nilay-step-node:hover .nilay-step-icon-circle {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: scale(1.05);
}
.nilay-step-title {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}
.nilay-step-desc {
    font-size: 10.5px;
    color: #64748b;
    line-height: 1.4;
}
.nilay-step-divider {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #cbd5e1;
    flex-shrink: 0;
    margin-bottom: 20px;
}
.nilay-divider-line {
    width: 18px;
    height: 1px;
    background: #e2e8f0;
}
.nilay-stepper-cta-row {
    margin-top: 16px;
    text-align: center;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.nilay-btn-proforma-cta {
    display: inline-block !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    padding: 8px 22px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}
.nilay-btn-proforma-cta:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px) !important;
}

/* ==========================================================================
   سایدبار: ویجت گفتگوی فروش و آکاردئون فیلترها
   ========================================================================== */
.nilay-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* ویجت گفتگوی کارشناس فروش */
.nilay-sales-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}
.nilay-sales-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.nilay-sales-avatar-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
.nilay-sales-avatar-img,
.nilay-sales-avatar-default {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e2e8f0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}
.nilay-sales-online-dot {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 9px;
    height: 9px;
    background: #10b981;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
}
.nilay-sales-text {
    flex: 1;
    min-width: 0;
}
.nilay-sales-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
    line-height: 1.3;
}
.nilay-sales-sub {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
}

.nilay-sales-actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
}
.nilay-btn-sales-chat,
.nilay-btn-sales-list {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    transition: all 0.15s ease !important;
    flex: 1 !important;
    line-height: 1.4 !important;
}
.nilay-btn-sales-chat {
    background: #10b981 !important;
    color: #ffffff !important;
}
.nilay-btn-sales-chat:hover {
    background: #059669 !important;
    color: #ffffff !important;
}
.nilay-btn-sales-list {
    background: #0284c7 !important;
    color: #ffffff !important;
}
.nilay-btn-sales-list:hover {
    background: #0369a1 !important;
    color: #ffffff !important;
}

/* استایل‌های اختصاصی درخواستی کاربر برای شورت‌کد فروشگاه */
.nilay-shop-archive-root button.nilay-filter-acc-header {
    font-size: 12px !important;
}

.nilay-shop-archive-root button.nilay-view-btn.active {
    padding: 6px !important;
    border-radius: 5px !important;
    margin: 2px !important;
	font-size: 12px !important
}

.nilay-shop-archive-root button.nilay-sort-pill.active {
    padding: 5px !important;
    border-radius: 5px !important;
    margin: 2px !important;
}

/* ==========================================================================
   باکس مدرن زیردسته‌ها (Subcategories Grid Card)
   ========================================================================== */
.nilay-subcats-container {
    margin-bottom: 14px;
}
.nilay-subcats-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.nilay-subcats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}
.nilay-subcats-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}
.nilay-subcats-title svg {
    color: #2563eb;
}
.nilay-subcats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}
.nilay-subcat-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 8px;
    text-decoration: none !important;
    transition: all 0.18s ease;
}
.nilay-subcat-card:hover {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}
.nilay-subcat-card.active {
    background: #eff6ff;
    border-color: #2563eb;
}
.nilay-subcat-img-wrap {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.nilay-subcat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nilay-subcat-placeholder-icon {
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nilay-subcat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.nilay-subcat-name {
    font-size: 11.5px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.nilay-subcat-card:hover .nilay-subcat-name,
.nilay-subcat-card.active .nilay-subcat-name {
    color: #2563eb;
}
.nilay-subcat-count {
    font-size: 9.5px;
    color: #94a3b8;
    margin-top: 2px;
    line-height: 1;
}

/* هدر فیلترها و برچسب‌های فعال */
.nilay-filters-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
    margin-bottom: 8px;
}
.nilay-filters-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nilay-filters-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}
.nilay-btn-reset-filters {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ef4444 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: opacity 0.15s !important;
}
.nilay-btn-reset-filters:hover {
    opacity: 0.75 !important;
    text-decoration: underline !important;
}

/* تگ‌های فیلترهای فعال */
.nilay-active-filters-wrap {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
}
.nilay-active-filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.nilay-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
    border-radius: 9999px;
    padding: 2px 7px 2px 5px;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.3;
}
.nilay-active-tag-remove {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s !important;
}
.nilay-active-tag-remove:hover {
    color: #ef4444 !important;
}

/* آکاردئون فیلتر */
.nilay-filter-accordion {
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 0;
}
.nilay-filter-accordion:last-child {
    border-bottom: none;
}
.nilay-shop-sidebar .nilay-filter-acc-header,
.nilay-filter-acc-header {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    padding: 5px 0 !important;
    min-height: unset !important;
    line-height: 1.4 !important;
    text-align: right !important;
    transition: color 0.15s ease !important;
}
.nilay-shop-sidebar .nilay-filter-acc-header:hover,
.nilay-filter-acc-header:hover {
    color: #2563eb !important;
    background: transparent !important;
}
.nilay-filter-acc-header svg {
    transition: transform 0.2s ease;
    color: #94a3b8 !important;
    flex-shrink: 0;
}
.nilay-filter-accordion.open .nilay-filter-acc-header svg {
    transform: rotate(180deg);
    color: #2563eb !important;
}
.nilay-filter-acc-content {
    padding-top: 8px;
}
.nilay-filter-accordion:not(.open) > .nilay-filter-acc-content {
    display: none;
}

/* درخت سلسله‌مراتبی دسته‌بندی‌ها (Hierarchical Category Tree) */
.nilay-cat-tree-wrap {
    max-height: 240px;
    overflow-y: auto;
    padding-left: 2px;
}
.nilay-cat-tree-wrap::-webkit-scrollbar {
    width: 3px;
}
.nilay-cat-tree-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.nilay-cat-tree-wrap ul,
.nilay-cat-tree-wrap li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.nilay-cat-node.root-all {
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #e2e8f0;
}
.nilay-cat-node.root-all .nilay-cat-link {
    display: flex !important;
    align-items: center !important;
    gap: 6px;
    padding: 4px 6px !important;
    border-radius: 5px;
    color: #1e293b !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    transition: all 0.15s ease;
}
.nilay-cat-node.root-all .nilay-cat-link:hover,
.nilay-cat-node.root-all .nilay-cat-link.active {
    background: #eff6ff !important;
    color: #2563eb !important;
}
.nilay-cat-bullet {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.nilay-cat-level {
    margin: 0 !important;
    padding: 0 !important;
}
.nilay-cat-depth-2 {
    padding-right: 14px !important;
    position: relative;
    border-right: 1.5px solid #e2e8f0;
    margin-right: 8px !important;
}
.nilay-cat-depth-3 {
    padding-right: 12px !important;
    position: relative;
    border-right: 1.5px solid #e2e8f0;
    margin-right: 6px !important;
}
.nilay-cat-depth-4 {
    padding-right: 10px !important;
    border-right: 1.5px solid #e2e8f0;
    margin-right: 5px !important;
}

.nilay-cat-item {
    margin: 1px 0 !important;
}
.nilay-cat-row {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 5px;
    border-radius: 5px;
    transition: background 0.15s ease;
}
.nilay-cat-row:hover {
    background: #f8fafc;
}
.nilay-cat-row.active {
    background: #eff6ff;
}
.nilay-cat-toggle-btn {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #64748b !important;
    cursor: pointer !important;
    padding: 0 !important;
    border-radius: 3px !important;
    transition: transform 0.2s ease, color 0.15s ease !important;
    flex-shrink: 0 !important;
}
.nilay-cat-toggle-btn:hover {
    color: #1e293b !important;
    background: #e2e8f0 !important;
}
.nilay-cat-toggle-btn svg {
    transform: rotate(90deg);
    transition: transform 0.2s ease;
    width: 11px;
    height: 11px;
}
.nilay-cat-toggle-btn.is-open svg {
    transform: rotate(0deg);
}
.nilay-cat-spacer {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-block;
}
.nilay-cat-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 1 !important;
    min-width: 0 !important;
    text-decoration: none !important;
    color: #334155 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    transition: color 0.15s ease !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
.nilay-cat-link:hover {
    color: #2563eb !important;
}
.nilay-cat-row.active .nilay-cat-link,
.nilay-cat-link.active {
    color: #2563eb !important;
    font-weight: 700 !important;
}
.nilay-cat-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nilay-cat-count {
    font-size: 10px;
    color: #94a3b8;
    margin-right: 4px;
    font-weight: 400;
}
.nilay-cat-row.active .nilay-cat-count {
    color: #3b82f6;
    font-weight: 600;
}
.nilay-cat-sub-wrap {
    overflow: hidden;
}

/* ایزوله‌سازی سایدبار و چک‌باکس‌ها از استایل دکمه‌های قالب */
.nilay-shop-sidebar .nilay-filter-list li,
.nilay-filter-list li {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 3px 0 !important;
    margin: 0 !important;
}
.nilay-shop-sidebar .nilay-checkbox-label,
.nilay-checkbox-label {
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    width: 100% !important;
}

/* باکس جستجوی زنده برندها */
.nilay-brand-search-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 5px 8px;
    margin-bottom: 8px;
}
.nilay-brand-search-box svg {
    color: #94a3b8;
    flex-shrink: 0;
}
.nilay-brand-search-input {
    border: none !important;
    background: transparent !important;
    font-size: 11px !important;
    font-family: inherit !important;
    color: #1e293b !important;
    width: 100% !important;
    outline: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: unset !important;
}

/* لیست چک‌باکس‌ها */
.nilay-filter-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 160px;
    overflow-y: auto;
}
.nilay-filter-list::-webkit-scrollbar {
    width: 3px;
}
.nilay-filter-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.nilay-filter-item {
    padding: 3px 0 !important;
}
.nilay-filter-checkbox {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    cursor: pointer !important;
    accent-color: #2563eb !important;
    flex-shrink: 0;
}
.nilay-filter-name {
    font-size: 11.5px !important;
    color: #334155 !important;
    margin-right: 6px !important;
    flex: 1 !important;
}
.nilay-filter-count {
    font-size: 10px !important;
    color: #94a3b8 !important;
}

/* تاگل‌های سوئیچی سایدبار */
.nilay-filter-toggles-block {
    padding-top: 6px;
}
.nilay-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f8fafc;
}
.nilay-toggle-label {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

/* پیام عدم وجود کالا */
.nilay-no-products {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 36px 20px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

/* ==========================================================================
   حساب کاربری هوشمند ووکامرس (Nilay WooCommerce My Account)
   ۳ استایل اختصاصی
   ========================================================================== */
.nilay-account-wrapper {
    direction: rtl;
    text-align: right;
    font-family: IRANSans, Vazirmatn, Segoe UI, Tahoma, sans-serif;
    color: #1e293b;
    width: 100%;
    margin: 0 auto;
    padding: 10px 0 50px 0;
}

/* ایزوله‌سازی محتوای پیش‌فرض ووکامرس برای جلوگیری از تداخل استایل‌های قالب */
.nilay-account-wrapper .woocommerce {
    width: 100%;
}
.nilay-account-wrapper .woocommerce-MyAccount-navigation {
    display: none !important;
}
.nilay-account-wrapper .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* --- استایل ۱: Modern Hero Sidebar --- */
.nilay-acc-s1-layout {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
}
.nilay-acc-s1-sidebar {
    width: 300px;
    flex-shrink: 0;
}
.nilay-acc-s1-hero {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.nilay-acc-avatar-ring {
    width: 86px;
    height: 86px;
    margin: 0 auto 12px auto;
    border-radius: 50%;
    border: 3px solid #2563eb;
    padding: 3px;
    background: #ffffff;
}
.nilay-acc-avatar-ring img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nilay-acc-name {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}
.nilay-acc-phone {
    font-size: 12px;
    color: #64748b;
    display: block;
    margin-bottom: 16px;
}
.nilay-acc-mini-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 10px;
    border: 1px solid #f1f5f9;
}
.nilay-stat-item {
    display: flex;
    flex-direction: column;
}
.nilay-stat-val {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}
.nilay-stat-val small {
    font-size: 10.5px;
    color: #64748b;
}
.nilay-stat-lbl {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}
.nilay-stat-divider {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
}

.nilay-acc-s1-nav {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.nilay-acc-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nilay-acc-nav-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 9px;
    color: #334155;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.18s ease;
}
.nilay-acc-nav-item a:hover {
    background: #f8fafc;
    color: #0f172a;
}
.nilay-acc-nav-item.active a {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
}
.nilay-acc-icon {
    margin-left: 10px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}
.nilay-acc-text {
    flex: 1;
}
.nilay-acc-arr {
    color: #94a3b8;
    transition: transform 0.2s;
}
.nilay-acc-nav-item.active .nilay-acc-arr {
    color: #2563eb;
}

.nilay-acc-s1-content {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* --- استایل ۲: Floating Curved Dashboard --- */
.nilay-acc-s2-layout {
    width: 100%;
}
.nilay-acc-s2-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    border-radius: 18px;
    padding: 30px;
    color: #ffffff;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}
.nilay-s2-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.nilay-s2-user-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nilay-s2-avatar img {
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.nilay-s2-welcome {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
}
.nilay-s2-sub {
    font-size: 12.5px;
    color: #bfdbfe;
    margin: 0;
}
.nilay-s2-stat-cards {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nilay-s2-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.nilay-s2-icon {
    font-size: 20px;
}
.nilay-s2-card-val {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}
.nilay-s2-card-lbl {
    font-size: 11px;
    color: #e0f2fe;
}

.nilay-acc-s2-body {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
}
.nilay-acc-s2-nav {
    width: 260px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.nilay-s2-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 9px;
    color: #334155;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.18s ease;
    margin-bottom: 2px;
}
.nilay-s2-nav-link:hover {
    background: #f8fafc;
    color: #0f172a;
}
.nilay-s2-nav-link.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
}
.nilay-acc-s2-content-card {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* --- استایل ۳: Minimal Clean Grid --- */
.nilay-acc-s3-layout {
    width: 100%;
}
.nilay-acc-s3-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.nilay-s3-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nilay-s3-user-info img {
    border-radius: 50%;
}
.nilay-s3-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}
.nilay-s3-badge {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
}
.nilay-btn-s3-logout {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #ef4444;
    border: 1px solid #fecaca;
    background: #fef2f2;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.18s;
}
.nilay-btn-s3-logout:hover {
    background: #ef4444;
    color: #ffffff;
}

.nilay-acc-s3-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.nilay-s3-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.18s;
}
.nilay-s3-tab-item:hover {
    background: #ffffff;
    color: #0f172a;
}
.nilay-s3-tab-item.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.nilay-acc-s3-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* پنل محتوای ایجکس حساب کاربری و انیمیشن لودینگ */
.nilay-account-content-pane {
    position: relative !important;
    min-height: 240px !important;
}
.nilay-acc-loading-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(2px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 50 !important;
    border-radius: inherit !important;
}
.nilay-acc-loading-overlay .nilay-spinner-ring {
    width: 38px;
    height: 38px;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: nilaySpin 0.75s linear infinite;
}

/* چیدمان تک‌آمار در صورت غیرفعال بودن کیف پول */
.nilay-acc-mini-stats.nilay-stats-single {
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
}
.nilay-acc-mini-stats.nilay-stats-single .nilay-stat-item {
    width: 100% !important;
}

/* ریسپانسیو جداول سفارشات و فرم‌های حساب کاربری */
.nilay-account-wrapper .woocommerce-orders-table,
.nilay-account-wrapper .shop_table,
.nilay-account-wrapper table.my_account_orders {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-collapse: collapse !important;
}
.nilay-account-wrapper .woocommerce-form-row {
    width: 100% !important;
}

/* فرم ورود و ثبت‌نام کاربران مهمان */
.nilay-auth-card-wrap {
    display: flex;
    justify-content: center;
    padding: 30px 10px;
    direction: rtl;
    font-family: IRANSans, Vazirmatn, Segoe UI, Tahoma, sans-serif;
}
.nilay-auth-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.nilay-auth-tabs {
    display: flex;
    gap: 6px;
    background: #f8fafc;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}
.nilay-auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}
.nilay-auth-tab.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* ریسپانسیو برای موبایل و تبلت (تمامی ۳ استایل حساب کاربری) */
@media (max-width: 992px) {
    .nilay-shop-layout {
        flex-direction: column;
    }
    .nilay-shop-sidebar {
        width: 100%;
    }
    .nilay-stepper-track {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nilay-step-divider {
        display: none;
    }
    .nilay-step-node {
        min-width: 140px;
        margin-bottom: 14px;
    }

    /* استایل ۱ در موبایل/تبلت */
    .nilay-acc-s1-layout {
        flex-direction: column !important;
        gap: 16px !important;
    }
    .nilay-acc-s1-sidebar {
        width: 100% !important;
    }
    .nilay-acc-s1-content {
        width: 100% !important;
        padding: 20px 16px !important;
    }

    /* استایل ۲ در موبایل/تبلت */
    .nilay-acc-s2-body {
        flex-direction: column !important;
        gap: 16px !important;
    }
    .nilay-acc-s2-nav {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
        gap: 6px !important;
    }
    .nilay-acc-s2-content-card {
        width: 100% !important;
        padding: 20px 16px !important;
    }
}

@media (max-width: 768px) {
    /* استایل ۳ در موبایل: تب‌های سوایپی افقی لمسی */
    .nilay-acc-s3-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        text-align: center !important;
    }
    .nilay-s3-user-info {
        justify-content: center !important;
    }
    .nilay-s3-logout {
        text-align: center !important;
    }
    .nilay-btn-s3-logout {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
    .nilay-acc-s3-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding: 6px !important;
        gap: 6px !important;
    }
    .nilay-acc-s3-tabs::-webkit-scrollbar {
        display: none !important;
    }
    .nilay-s3-tab-item {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 8px 14px !important;
        font-size: 12.5px !important;
    }
    .nilay-acc-s3-content {
        padding: 18px 14px !important;
    }
}

@media (max-width: 768px) {
    /* ساختار کلی چیدمان فروشگاه در موبایل و تبلت */
    .nilay-shop-archive-root .nilay-shop-layout {
        flex-direction: column !important;
        gap: 16px !important;
    }
    .nilay-shop-archive-root .nilay-shop-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .nilay-shop-archive-root .nilay-shop-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* نوار بالای صفحه و باکس کنترل‌ها در موبایل */
    .nilay-shop-archive-root .nilay-shop-topbar,
    .nilay-shop-archive-root .nilay-shop-toolbar-box {
        padding: 10px 12px !important;
        margin-bottom: 12px !important;
        border-radius: 10px !important;
    }
    .nilay-shop-archive-root .nilay-topbar-controls {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .nilay-shop-archive-root .nilay-view-switcher {
        width: 100% !important;
        display: flex !important;
        padding: 3px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }
    .nilay-shop-archive-root .nilay-switcher-label {
        display: none !important;
    }
    .nilay-shop-archive-root .nilay-view-btn {
        flex: 1 !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 7px 8px !important;
        font-size: 11.5px !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
    }
    .nilay-shop-archive-root .nilay-sort-bar {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        overflow: hidden !important;
    }
    .nilay-shop-archive-root .nilay-sort-icon-wrap {
        flex-shrink: 0 !important;
        font-size: 11px !important;
        gap: 3px !important;
    }
    .nilay-shop-archive-root .nilay-sort-pills {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 4px !important;
        width: 100% !important;
        padding: 2px 0 4px 0 !important;
    }
    .nilay-shop-archive-root .nilay-sort-pills::-webkit-scrollbar {
        display: none !important;
    }
    .nilay-shop-archive-root .nilay-sort-pill {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 11px !important;
        padding: 4px 9px !important;
        border-radius: 6px !important;
    }

    /* ردیف عنوان، تاریخ و خروجی‌ها */
    .nilay-shop-archive-root .nilay-topbar-header-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .nilay-shop-archive-root .nilay-archive-title-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 6px !important;
    }
    .nilay-shop-archive-root .nilay-archive-h1 {
        font-size: 13.5px !important;
        line-height: 1.35 !important;
    }
    .nilay-shop-archive-root .nilay-archive-date {
        font-size: 10px !important;
        padding: 2px 6px !important;
        white-space: nowrap !important;
    }
    .nilay-shop-archive-root .nilay-export-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: 100% !important;
        gap: 5px !important;
    }
    .nilay-shop-archive-root .nilay-export-label {
        font-size: 10.5px !important;
    }
    .nilay-shop-archive-root .nilay-export-btn {
        width: 28px !important;
        height: 28px !important;
    }

    /* گرید محصولات دو ستونه الزامی و منظم در موبایل */
    .nilay-shop-archive-root .nilay-products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .nilay-shop-archive-root .nilay-product-card {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 8px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        float: none !important;
        margin: 0 !important;
    }
    .nilay-shop-archive-root .nilay-pcard-header {
        min-height: 18px !important;
        margin-bottom: 4px !important;
    }
    .nilay-shop-archive-root .nilay-pcard-badge {
        font-size: 9px !important;
        padding: 1px 5px !important;
    }
    .nilay-shop-archive-root .nilay-btn-wishlist {
        width: 20px !important;
        height: 20px !important;
    }
    .nilay-shop-archive-root .nilay-btn-wishlist svg {
        width: 13px !important;
        height: 13px !important;
    }
    .nilay-shop-archive-root .nilay-pcard-thumb {
        aspect-ratio: 1 / 1 !important;
        margin-bottom: 6px !important;
        border-radius: 6px !important;
    }
    .nilay-shop-archive-root .nilay-pcard-thumb img {
        max-width: 90% !important;
        max-height: 90% !important;
        object-fit: contain !important;
    }
    .nilay-shop-archive-root .nilay-pcard-brand {
        min-height: 14px !important;
        margin-bottom: 2px !important;
    }
    .nilay-shop-archive-root .nilay-pcard-brand img {
        max-height: 12px !important;
        max-width: 42px !important;
    }
    .nilay-shop-archive-root .nilay-pcard-brand span {
        font-size: 9.5px !important;
    }
    .nilay-shop-archive-root .nilay-pcard-title {
        font-size: 11px !important;
        line-height: 1.35 !important;
        min-height: 30px !important;
        max-height: 30px !important;
        margin: 0 0 6px 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .nilay-shop-archive-root .nilay-pcard-price-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
        padding-top: 6px !important;
        border-top: 1px solid #f1f5f9 !important;
        width: 100% !important;
    }
    .nilay-shop-archive-root .nilay-price-main {
        width: 100% !important;
    }
    .nilay-shop-archive-root .nilay-reg-price {
        font-size: 9.5px !important;
    }
    .nilay-shop-archive-root .nilay-sale-price-line {
        display: flex !important;
        align-items: baseline !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 2px !important;
    }
    .nilay-shop-archive-root .nilay-amount {
        font-size: 11.5px !important;
        font-weight: 800 !important;
    }
    .nilay-shop-archive-root .nilay-unit {
        font-size: 9px !important;
    }
    .nilay-shop-archive-root .nilay-discount-pill {
        font-size: 8.5px !important;
        padding: 1px 4px !important;
    }
    .nilay-shop-archive-root .nilay-price-call-text {
        font-size: 10.5px !important;
        font-weight: 700 !important;
    }

    /* باکس زیردسته‌ها در موبایل */
    .nilay-shop-archive-root .nilay-subcats-wrapper {
        padding: 8px 10px !important;
        margin-bottom: 10px !important;
    }
    .nilay-shop-archive-root .nilay-subcats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    .nilay-shop-archive-root .nilay-subcat-card {
        padding: 5px 6px !important;
        gap: 6px !important;
        border-radius: 6px !important;
    }
    .nilay-shop-archive-root .nilay-subcat-img-wrap {
        width: 26px !important;
        height: 26px !important;
    }
    .nilay-shop-archive-root .nilay-subcat-name {
        font-size: 10px !important;
    }
    .nilay-shop-archive-root .nilay-subcat-count {
        font-size: 8.5px !important;
    }

    /* جدول لیست قیمت در حالت موبایل (سوایپ افقی نرم) */
    .nilay-shop-archive-root .nilay-table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 8px !important;
    }
    .nilay-shop-archive-root .nilay-price-table {
        min-width: 600px !important;
    }

    /* استپر خرید سازمانی در موبایل */
    .nilay-shop-archive-root .nilay-shop-stepper-box {
        padding: 14px 12px !important;
        margin-top: 16px !important;
    }
    .nilay-shop-archive-root .nilay-stepper-track {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px 8px !important;
        justify-content: stretch !important;
    }
    .nilay-shop-archive-root .nilay-step-divider {
        display: none !important;
    }
    .nilay-shop-archive-root .nilay-step-node {
        min-width: 0 !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    .nilay-shop-archive-root .nilay-step-icon-circle {
        width: 32px !important;
        height: 32px !important;
        margin-bottom: 4px !important;
    }
    .nilay-shop-archive-root .nilay-step-icon-circle svg {
        width: 15px !important;
        height: 15px !important;
    }
    .nilay-shop-archive-root .nilay-step-title {
        font-size: 10.5px !important;
    }
    .nilay-shop-archive-root .nilay-step-desc {
        font-size: 9px !important;
    }

    /* سایدبار و ویجت‌ها در موبایل */
    .nilay-shop-archive-root .nilay-sales-actions {
        flex-direction: row !important;
        gap: 6px !important;
    }
    .nilay-shop-archive-root .nilay-btn-sales-chat,
    .nilay-shop-archive-root .nilay-btn-sales-list {
        font-size: 10px !important;
        padding: 6px 8px !important;
    }
    .nilay-shop-archive-root .nilay-filter-acc-header {
        font-size: 11.5px !important;
        padding: 8px 10px !important;
    }
    .nilay-shop-archive-root .nilay-pagination-wrapper {
        margin-top: 16px !important;
    }
    .nilay-shop-archive-root .nilay-page-num {
        min-width: 28px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }

    /* استایل ۲ بنر و آمار در صفحه کوچک موبایل */
    .nilay-s2-banner {
        padding: 20px 16px !important;
        border-radius: 14px !important;
        margin-bottom: 16px !important;
    }
    .nilay-s2-banner-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }
    .nilay-s2-stat-cards {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
        gap: 8px !important;
    }
    .nilay-s2-card {
        width: 100% !important;
    }
    .nilay-acc-s2-nav {
        grid-template-columns: 1fr !important;
    }
}

/* بهینه‌سازی چاپ و خروجی PDF لیست قیمت */
@media print {
    body * {
        visibility: hidden;
    }
    .nilay-shop-archive-root,
    .nilay-shop-archive-root * {
        visibility: visible;
    }
    .nilay-shop-archive-root {
        position: absolute;
        right: 0;
        top: 0;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    .nilay-shop-sidebar,
    .nilay-topbar-controls,
    .nilay-export-actions,
    .nilay-pagination-wrapper,
    .nilay-shop-stepper-box,
    .nilay-col-cb,
    .nilay-col-action,
    .nilay-col-proforma,
    .nilay-btn-wishlist {
        display: none !important;
    }
    .nilay-shop-layout {
        display: block !important;
    }
    .nilay-shop-topbar {
        border: none !important;
        box-shadow: none !important;
        padding: 0 0 15px 0 !important;
        margin-bottom: 10px !important;
    }
    .nilay-price-table {
        border: 1px solid #cbd5e1 !important;
    }
    .nilay-price-table th,
    .nilay-price-table td {
        border: 1px solid #e2e8f0 !important;
        color: #0f172a !important;
    }
}

/* ==========================================================================
   NILAY SINGLE PRODUCT SHORTCODE [nilay_product]
   سبک‌های سه‌گانه و بخش‌های جامع صفحه تک محصول (برقچی / مدرن / B2B)
   ========================================================================== */

.nilay-single-product-root {
    direction: rtl !important;
    text-align: right !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    color: #1e293b !important;
    max-width: 1400px !important;
    margin: 0 auto 50px auto !important;
    padding: 15px !important;
    line-height: 1.6 !important;
}

.nilay-single-product-root *,
.nilay-single-product-root *::before,
.nilay-single-product-root *::after {
    box-sizing: border-box !important;
}

/* ۱. مسیر راهنما (Breadcrumbs) */
.nilay-prod-breadcrumb-wrap {
    width: 100% !important;
    margin-bottom: 22px !important;
}
.nilay-prod-breadcrumb,
.nilay-prod-breadcrumbs {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: #64748b !important;
}
.nilay-prod-breadcrumb a,
.nilay-prod-breadcrumbs a {
    color: #64748b !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.15s ease !important;
}
.nilay-prod-breadcrumb a:hover,
.nilay-prod-breadcrumbs a:hover {
    color: #2563eb !important;
}
.nilay-bc-sep,
.nilay-prod-breadcrumbs .sep {
    color: #cbd5e1 !important;
    font-size: 12px !important;
}
.nilay-bc-current,
.nilay-prod-breadcrumbs .current {
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* ۲. بخش هیرو اصلی صفحه محصول (۳ ستونه گالری | جزئیات | سایدبار خرید) */
.nilay-prod-hero-wrap {
    width: 100% !important;
    margin-bottom: 30px !important;
}
.nilay-prod-hero-grid {
    display: grid !important;
    grid-template-columns: 360px 1fr 340px !important;
    gap: 20px !important;
    align-items: start !important;
    width: 100% !important;
}
.nilay-prod-hero-col {
    min-width: 0 !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ستون ۱: گالری تصاویر محصول */
.nilay-prod-gallery-col {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}
.nilay-prod-gallery-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
}
.nilay-prod-main-img-wrap {
    position: relative !important;
    width: 100% !important;
    height: 360px !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}
.nilay-prod-main-img {
    max-width: 90% !important;
    max-height: 90% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}
.nilay-prod-main-img:hover {
    transform: scale(1.04) !important;
}

/* لوگوی برند روی تصویر اصلی */
.nilay-prod-brand-watermark {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
    max-width: 80px !important;
    max-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
}
.nilay-prod-brand-watermark img {
    max-width: 100% !important;
    max-height: 28px !important;
    object-fit: contain !important;
}

/* ابزارهای شناور کالا (سمت چپ تصویر) */
.nilay-prod-floating-tools {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    z-index: 5 !important;
}
.nilay-prod-tool-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
}
.nilay-prod-tool-btn:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    transform: scale(1.08) !important;
}
.nilay-prod-tool-btn.active {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}

/* تامب‌نیل‌های گالری */
.nilay-prod-thumbs-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    padding: 2px 0 !important;
}
.nilay-prod-thumbs-track {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}
.nilay-prod-thumb-item {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    padding: 3px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}
.nilay-prod-thumb-item.active {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
}
.nilay-prod-thumb-item img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

/* ستون ۲: متادیتا، عناوین، ویژگی‌ها و بنر مشاوره */
.nilay-prod-info-col {
    background: transparent !important;
    padding: 0 4px !important;
}
.nilay-prod-meta-top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}
.nilay-prod-sku-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 3px 10px !important;
    font-size: 12px !important;
    color: #475569 !important;
}
.nilay-sku-val {
    font-weight: 700 !important;
    color: #0f172a !important;
    direction: ltr !important;
}
.nilay-prod-print-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 3px 10px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    cursor: pointer !important;
}
.nilay-prod-print-btn:hover {
    background: #f8fafc !important;
    color: #2563eb !important;
}
.nilay-prod-h1,
.nilay-prod-main-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
}
.nilay-prod-subtitle-en {
    font-size: 13.5px !important;
    color: #64748b !important;
    font-family: inherit !important;
    margin-bottom: 14px !important;
    direction: ltr !important;
    text-align: right !important;
}
.nilay-prod-rating-stock-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    padding-bottom: 14px !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
.nilay-prod-rating-box {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
}
.nilay-star-filled {
    color: #f59e0b !important;
}
.nilay-rating-num {
    font-weight: 700 !important;
    color: #0f172a !important;
}
.nilay-review-count-link {
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 12px !important;
}
.nilay-stock-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 3px 10px !important;
    border-radius: 9999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}
.nilay-stock-pill.in-stock {
    background: #dcfce7 !important;
    color: #15803d !important;
}
.nilay-stock-pill.out-of-stock {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}
.nilay-stock-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: currentColor !important;
}
.nilay-prod-brand-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 12.5px !important;
    color: #64748b !important;
}
.nilay-brand-val {
    color: #0f172a !important;
    font-weight: 700 !important;
}
.nilay-quick-spec-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    margin-bottom: 14px !important;
}
.nilay-prod-highlights-box {
    margin-bottom: 18px !important;
}
.nilay-highlights-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin: 0 0 10px 0 !important;
}
.nilay-highlights-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
.nilay-highlights-list li {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: #475569 !important;
}
.nilay-hl-bullet {
    width: 6px !important;
    height: 6px !important;
    background: #2563eb !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}
.nilay-prod-mid-promo-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    margin-top: 14px !important;
}
.nilay-mb-title {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #1e40af !important;
    display: block !important;
}
.nilay-mb-sub {
    font-size: 11.5px !important;
    color: #3b82f6 !important;
    display: block !important;
}
.nilay-mb-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* ستون ۳: سایدبار خرید چسبان (Sticky Buy Box) */
.nilay-prod-buy-col {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
}

.nilay-prod-buy-box,
.nilay-prod-buy-sidebar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 18px 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    position: sticky !important;
    top: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.nilay-buy-box-guarantees {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding-bottom: 14px !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
.nilay-bb-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 12px !important;
    color: #64748b !important;
}
.nilay-bb-item svg {
    flex-shrink: 0 !important;
}

.nilay-buy-price-section {
    margin-bottom: 18px !important;
    text-align: left !important;
    direction: ltr !important;
}
.nilay-price-regular-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 4px !important;
}
.nilay-reg-price {
    text-decoration: line-through !important;
    color: #94a3b8 !important;
    font-size: 14px !important;
}
.nilay-discount-pill {
    background: #ef4444 !important;
    color: #ffffff !important;
    padding: 2px 8px !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}
.nilay-price-current-row {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
}
.nilay-price-val {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
}
.nilay-price-unit {
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 600 !important;
}
.nilay-price-call {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #2563eb !important;
    direction: rtl !important;
    text-align: right !important;
    display: block !important;
}

/* ردیف استپر و دکمه افزودن به سبد خرید (بدون سرریز در تمام ۳ سبک) */
.nilay-buy-actions-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.nilay-stepper-cart-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.nilay-quantity-stepper {
    display: inline-flex !important;
    align-items: center !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    height: 42px !important;
    flex: 0 0 84px !important;
    width: 84px !important;
    min-width: 84px !important;
    box-sizing: border-box !important;
}
.nilay-stepper-btn {
    width: 25px !important;
    height: 100% !important;
    background: #f8fafc !important;
    border: none !important;
    color: #1e293b !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex-shrink: 0 !important;
}
.nilay-stepper-btn:hover {
    background: #e2e8f0 !important;
}
.nilay-stepper-input {
    width: 34px !important;
    height: 100% !important;
    border: none !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    -moz-appearance: textfield !important;
}
.nilay-stepper-input::-webkit-outer-spin-button,
.nilay-stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.nilay-btn-add-to-cart,
.nilay-prod-add-to-cart-btn,
.nilay-btn-primary-action {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 42px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 8px !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
}
.nilay-btn-add-to-cart span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: inline-block !important;
}
.nilay-btn-add-to-cart svg {
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
}
.nilay-btn-add-to-cart:hover,
.nilay-prod-add-to-cart-btn:hover,
.nilay-btn-primary-action:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.38) !important;
    color: #ffffff !important;
}

.nilay-btn-proforma-action,
.nilay-prod-proforma-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    background: #ffffff !important;
    border: 1.5px solid #2563eb !important;
    border-radius: 8px !important;
    color: #2563eb !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin-bottom: 14px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}
.nilay-btn-proforma-action svg {
    flex-shrink: 0 !important;
}
.nilay-btn-proforma-action:hover,
.nilay-prod-proforma-btn:hover {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.nilay-b2b-inquiry-box,
.nilay-prod-b2b-box {
    background: #fefce8 !important;
    border: 1px dashed #facc15 !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.nilay-b2b-content {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 12px !important;
    color: #854d0e !important;
    margin-bottom: 6px !important;
}
.nilay-b2b-icon {
    flex-shrink: 0 !important;
}
.nilay-b2b-link {
    display: block !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #a16207 !important;
    text-decoration: underline !important;
    text-align: left !important;
}

/* ویجت کارشناس فروش */
.nilay-sales-expert-widget,
.nilay-prod-expert-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.nilay-se-header,
.nilay-prod-expert-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}
.nilay-se-avatar-wrap {
    flex-shrink: 0 !important;
}
.nilay-se-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #2563eb !important;
}
.nilay-se-avatar-placeholder {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #e0f2fe !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.nilay-se-info {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}
.nilay-se-greeting {
    font-size: 11px !important;
    color: #64748b !important;
}
.nilay-se-name {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.nilay-se-role {
    font-size: 11.5px !important;
    color: #2563eb !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.nilay-se-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.nilay-se-btn {
    min-width: 0 !important;
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 6px 6px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}
.nilay-se-btn span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.nilay-se-btn svg {
    flex-shrink: 0 !important;
}
.se-btn-whatsapp {
    background: #16a34a !important;
    color: #ffffff !important;
}
.se-btn-whatsapp:hover {
    background: #15803d !important;
    color: #ffffff !important;
}
.se-btn-call {
    background: #2563eb !important;
    color: #ffffff !important;
}
.se-btn-call:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

/* ۳. نوار ۵ گانه مزایای اعتماد (Trust Badges) */
.nilay-prod-trust-bar-wrap {
    width: 100% !important;
    margin: 24px 0 !important;
}
.nilay-prod-trust-bar {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}
.nilay-trust-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}
.nilay-ti-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.nilay-ti-text {
    display: flex !important;
    flex-direction: column !important;
}
.nilay-ti-text strong {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}
.nilay-ti-text span {
    font-size: 11.5px !important;
    color: #64748b !important;
}

/* ۴. نوار تب‌های چسبان ناوبری بخش‌های صفحه */
.nilay-prod-sticky-nav-wrap {
    position: sticky !important;
    top: 0 !important;
    z-index: 90 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(8px) !important;
    border-bottom: 2px solid #e2e8f0 !important;
    margin-bottom: 28px !important;
    padding: 0 10px !important;
}
.nilay-prod-tabs-nav {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
}
.nilay-pnav-item {
    display: inline-flex !important;
    align-items: center !important;
    padding: 14px 4px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-decoration: none !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -2px !important;
    transition: all 0.2s ease !important;
}
.nilay-pnav-item:hover {
    color: #2563eb !important;
}
.nilay-pnav-item.active {
    color: #2563eb !important;
    border-bottom-color: #2563eb !important;
}

/* ۵. بخش‌ها و کارت‌های محتوایی */
.nilay-prod-content-sections {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
}
.nilay-prod-section {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    scroll-margin-top: 80px !important;
}
.nilay-section-header,
.nilay-prod-section-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-bottom: 14px !important;
    margin-bottom: 20px !important;
    border-bottom: 1.5px solid #f1f5f9 !important;
}
.nilay-sec-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.nilay-sec-title,
.nilay-prod-section-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
}

/* تب ۵-۱: جدول مشخصات فنی */
.nilay-specs-table-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
}
.nilay-specs-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 6px !important;
}
.nilay-specs-table tr {
    background: #f8fafc !important;
    border-radius: 8px !important;
    transition: background 0.15s ease !important;
}
.nilay-specs-table tr:hover {
    background: #f1f5f9 !important;
}
.nilay-specs-table th,
.nilay-spec-label {
    width: 220px !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    text-align: right !important;
    border-radius: 0 8px 8px 0 !important;
}
.nilay-specs-table td,
.nilay-spec-val {
    padding: 12px 16px !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    border-radius: 8px 0 0 8px !important;
}

/* تب ۵-۲: نقد و بررسی */
.nilay-review-content {
    font-size: 14.5px !important;
    line-height: 1.8 !important;
    color: #334155 !important;
}
.nilay-review-content p {
    margin-bottom: 14px !important;
}

/* تب ۵-۳: محصولات مرتبط */
.nilay-related-grid,
.nilay-prod-related-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
}
.nilay-related-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.nilay-related-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06) !important;
}
.nilay-rc-img-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 180px !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
}
.nilay-rc-img-link img {
    max-width: 85% !important;
    max-height: 85% !important;
    object-fit: contain !important;
    transition: transform 0.25s ease !important;
}
.nilay-related-card:hover .nilay-rc-img-link img {
    transform: scale(1.06) !important;
}
.nilay-rc-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
.nilay-rc-brand {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    text-transform: uppercase !important;
}
.nilay-rc-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    min-height: 40px !important;
}
.nilay-rc-title a {
    color: #1e293b !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.nilay-rc-title a:hover {
    color: #2563eb !important;
}
.nilay-rc-price {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid #f1f5f9 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    text-align: left !important;
    direction: ltr !important;
}

/* تب ۵-۴: دیدگاه‌ها و نظرات خریداران */
.nilay-comments-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}
.nilay-comments-summary-card {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
}
.nilay-cs-score {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
}
.nilay-cs-big {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
}
.nilay-cs-out {
    font-size: 13px !important;
    color: #64748b !important;
}
.nilay-cs-stars {
    color: #f59e0b !important;
    font-size: 18px !important;
    letter-spacing: 2px !important;
}
.nilay-cs-buyer-recommend {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: #166534 !important;
    background: #dcfce7 !important;
    padding: 4px 12px !important;
    border-radius: 9999px !important;
}
.nilay-comments-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}
.nilay-comment-card,
.nilay-prod-comment-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 16px !important;
}
.nilay-comm-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 10px !important;
}
.nilay-comm-author {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.nilay-comm-avatar img {
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
}
.nilay-comm-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: block !important;
}
.nilay-comm-date {
    font-size: 11px !important;
    color: #94a3b8 !important;
    display: block !important;
}
.nilay-buyer-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #16a34a !important;
    background: #dcfce7 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
}
.nilay-comm-body {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
}
.nilay-official-reply-box {
    margin-top: 12px !important;
    background: #eff6ff !important;
    border-right: 3px solid #2563eb !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 10px 14px !important;
}
.nilay-reply-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 6px !important;
}
.nilay-reply-badge {
    font-size: 11.5px !important;
    font-weight: 800 !important;
    color: #1e40af !important;
}
.nilay-reply-date {
    font-size: 10.5px !important;
    color: #60a5fa !important;
}
.nilay-reply-content {
    font-size: 13px !important;
    color: #1e3a8a !important;
    line-height: 1.5 !important;
}

/* تب ۵-۵: پرسش و پاسخ کاربران */
.nilay-qa-action-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}
.nilay-qa-desc {
    font-size: 13.5px !important;
    color: #475569 !important;
    margin: 0 !important;
}
.nilay-btn-submit-qa {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}
.nilay-qa-form-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 16px !important;
    margin-bottom: 20px !important;
}
.nilay-qa-form-row {
    margin-bottom: 12px !important;
}
.nilay-qa-form-row label {
    display: block !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 4px !important;
}
.nilay-qa-form-footer {
    display: flex !important;
    gap: 10px !important;
}
.nilay-qa-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}
.nilay-qa-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 16px !important;
}
.nilay-qa-q-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
}
.nilay-qa-q-badge {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
}
.nilay-qa-q-title {
    font-size: 13.5px !important;
    color: #0f172a !important;
}
.nilay-qa-a-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding-right: 10px !important;
}
.nilay-qa-a-badge {
    background: #dcfce7 !important;
    color: #166534 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
}
.nilay-qa-a-text {
    font-size: 13px !important;
    color: #475569 !important;
    line-height: 1.6 !important;
}

/* ==========================================================================
   ۳ سبک طراحی صفحه محصول (Preset Styles)
   ========================================================================== */

/* استایل ۱: برقچی / نیلای استاندارد (پیش‌فرض) */
.nilay-prod-style-style1 {
    /* استاندارد تمیز مطابق سیستم طراحی نیلای */
}

/* استایل ۲: مدرن منحنی و کارت‌های شناور (Modern Curved Floating) */
.nilay-prod-style-style2 .nilay-prod-gallery-col,
.nilay-prod-style-style2 .nilay-prod-buy-box,
.nilay-prod-style-style2 .nilay-prod-buy-sidebar,
.nilay-prod-style-style2 .nilay-prod-trust-bar,
.nilay-prod-style-style2 .nilay-prod-section,
.nilay-prod-style-style2 .nilay-sales-expert-widget,
.nilay-prod-style-style2 .nilay-related-card {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02) !important;
}
.nilay-prod-style-style2 .nilay-prod-main-img-wrap {
    border-radius: 16px !important;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}
.nilay-prod-style-style2 .nilay-quantity-stepper {
    border-radius: 9999px !important;
}
.nilay-prod-style-style2 .nilay-btn-add-to-cart,
.nilay-prod-style-style2 .nilay-prod-add-to-cart-btn,
.nilay-prod-style-style2 .nilay-btn-proforma-action,
.nilay-prod-style-style2 .nilay-prod-proforma-btn,
.nilay-prod-style-style2 .nilay-mb-btn,
.nilay-prod-style-style2 .nilay-se-btn {
    border-radius: 9999px !important;
}
.nilay-prod-style-style2 .nilay-prod-sticky-nav-wrap {
    border-radius: 16px !important;
    margin-bottom: 24px !important;
    padding: 4px 16px !important;
    border: 1px solid #f1f5f9 !important;
}

/* استایل ۳: کاتالوگ صنعتی و B2B شرکتی (Enterprise B2B Catalog) */
.nilay-prod-style-style3 .nilay-prod-gallery-col,
.nilay-prod-style-style3 .nilay-prod-buy-box,
.nilay-prod-style-style3 .nilay-prod-buy-sidebar,
.nilay-prod-style-style3 .nilay-prod-trust-bar,
.nilay-prod-style-style3 .nilay-prod-section,
.nilay-prod-style-style3 .nilay-sales-expert-widget,
.nilay-prod-style-style3 .nilay-related-card {
    border-radius: 6px !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: none !important;
}
.nilay-prod-style-style3 .nilay-section-header,
.nilay-prod-style-style3 .nilay-prod-section-header {
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 12px 18px !important;
    border-radius: 4px 4px 0 0 !important;
    margin: -24px -24px 20px -24px !important;
}
.nilay-prod-style-style3 .nilay-sec-title,
.nilay-prod-style-style3 .nilay-prod-section-title {
    color: #ffffff !important;
}
.nilay-prod-style-style3 .nilay-specs-table th,
.nilay-prod-style-style3 .nilay-spec-label {
    background: #0f172a !important;
    color: #ffffff !important;
    border-radius: 0 !important;
}
.nilay-prod-style-style3 .nilay-quantity-stepper {
    border-radius: 4px !important;
}
.nilay-prod-style-style3 .nilay-btn-add-to-cart,
.nilay-prod-style-style3 .nilay-prod-add-to-cart-btn {
    background: #0f172a !important;
    border-radius: 4px !important;
}
.nilay-prod-style-style3 .nilay-btn-add-to-cart:hover,
.nilay-prod-style-style3 .nilay-prod-add-to-cart-btn:hover {
    background: #1e293b !important;
}
.nilay-prod-style-style3 .nilay-btn-proforma-action,
.nilay-prod-style-style3 .nilay-prod-proforma-btn {
    border-radius: 4px !important;
    border-color: #0f172a !important;
    color: #0f172a !important;
}

/* ==========================================================================
   ریسپانسیو موبایل و تبلت صفحه محصول
   ========================================================================== */

@media (max-width: 1150px) {
    .nilay-prod-hero-grid {
        grid-template-columns: 320px 1fr 310px !important;
        gap: 14px !important;
    }
    .nilay-prod-trust-bar {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .nilay-related-grid,
    .nilay-prod-related-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .nilay-prod-hero-grid {
        grid-template-columns: 100% !important;
        gap: 20px !important;
    }
    .nilay-prod-gallery-col {
        max-width: 480px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
    .nilay-prod-buy-box,
    .nilay-prod-buy-sidebar {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .nilay-prod-trust-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .nilay-related-grid,
    .nilay-prod-related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .nilay-specs-table th,
    .nilay-spec-label {
        width: 140px !important;
    }
}

@media (max-width: 576px) {
    .nilay-single-product-root {
        padding: 10px 8px !important;
    }
    .nilay-prod-h1,
    .nilay-prod-main-title {
        font-size: 17px !important;
    }
    .nilay-prod-trust-bar {
        grid-template-columns: 1fr !important;
    }
    .nilay-related-grid,
    .nilay-prod-related-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    .nilay-related-card {
        padding: 10px !important;
    }
    .nilay-rc-img-link {
        height: 120px !important;
    }
    .nilay-rc-title {
        font-size: 12px !important;
        min-height: 32px !important;
    }
    .nilay-rc-price {
        font-size: 12.5px !important;
    }
    .nilay-specs-table,
    .nilay-specs-table tbody,
    .nilay-specs-table tr,
    .nilay-specs-table th,
    .nilay-specs-table td {
        display: block !important;
        width: 100% !important;
    }
    .nilay-spec-label {
        background: #f1f5f9 !important;
        padding: 8px 12px !important;
    }
    .nilay-spec-val {
        padding: 6px 12px 12px 12px !important;
    }
    .nilay-prod-mid-promo-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .nilay-mb-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    .nilay-stepper-cart-row {
        gap: 6px !important;
    }
    .nilay-quantity-stepper {
        flex: 0 0 78px !important;
        width: 78px !important;
        min-width: 78px !important;
    }
    .nilay-stepper-btn {
        width: 22px !important;
    }
    .nilay-stepper-input {
        width: 34px !important;
        font-size: 13px !important;
    }
    .nilay-btn-add-to-cart {
        font-size: 12px !important;
        padding: 0 6px !important;
    }
}
