/* =====================================================
   Product Meta Info — کارتی و ریسپانسیو
   ===================================================== */
.product-meta-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ffc20e;
    direction: rtl;
}

.pmi-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    padding: 10px 14px;
    transition: .2s;
    min-width: 0;
}
.pmi-card:hover {
    border-color: #ffc20e;
    background: #fffdf5;
    box-shadow: 0 2px 8px rgba(255, 194, 14, 0.1);
}

.pmi-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
    line-height: 1;
}

.pmi-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    min-width: 0;
    transition: color .15s;
}
.pmi-value:hover {
    color: #b45309;
}

.pmi-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.pmi-icon {
    font-size: 15px;
    color: #ffc20e;
    flex-shrink: 0;
    transition: transform .2s;
}
.pmi-value:hover .pmi-icon {
    transform: rotate(8deg) scale(1.1);
}

.pmi-brand-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f8fafc;
    padding: 3px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform .2s;
}
.pmi-value:hover .pmi-brand-img {
    transform: scale(1.06);
}

/* =====================================================
   موبایل
   ===================================================== */
@media (max-width: 576px) {
    .product-meta-info {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 14px;
        padding-bottom: 14px;
    }

    .pmi-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .pmi-label {
        font-size: 11.5px;
        color: #64748b;
        flex-shrink: 0;
        margin: 0;
    }

    .pmi-value {
        font-size: 13px;
        flex: 1;
        justify-content: flex-end;
        text-align: left;
        min-width: 0;
    }

    .pmi-text {
        text-align: left;
    }

    .pmi-brand-img {
        width: 28px;
        height: 28px;
    }

    .pmi-icon {
        font-size: 14px;
    }
}

/* =====================================================
   موبایل خیلی کوچک
   ===================================================== */
@media (max-width: 360px) {
    .pmi-card {
        padding: 9px 10px;
    }
    .pmi-value {
        font-size: 12.5px;
    }
    .pmi-brand-img {
        width: 24px;
        height: 24px;
    }
}

/* =====================================================
   حالت تک‌ستونه در تبلت عمودی
   ===================================================== */
@media (max-width: 768px) {
    .product-meta-info {
        grid-template-columns: 1fr;
    }
}

.meta-toggle-buttons {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.meta-show-more-btn, .meta-show-less-btn {
    background: #f8f9fa;
    border: 2px solid #ffc20e;
    color: #121212;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}
.meta-show-more-btn:hover, .meta-show-less-btn:hover {
    background: #e9ecef;
    color: #212529;
    transform: translateY(-1px);
}
.meta-chip.hidden {
    display: none;
}
.meta-show-more-btn.hidden, .meta-show-less-btn.hidden {
    display: none;
}
.modern-tabs-wrapper {
    background: #f4f4f4;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
}

.modern-tab-nav {
    display: flex;
    background: #d4d4d4;
    padding: 4px;
    gap: 12px;
    position: relative;
}

.modern-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 24px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    direction: rtl;
}

.modern-tab-btn:hover {
    color: #000000;
}

.modern-tab-btn.active {
    background: linear-gradient(135deg, #ffc20e 0%, #ffcd3c 100%);
    color: #000000;
}

.modern-tab-btn.active i {
    color: #000000;
}

.modern-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, #ffc20e, #ffcd3c);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 194, 14, 0.4);
}

.modern-tab-content {
    padding: 32px 40px;
    background: #ebebeb;
}

.modern-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.modern-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* لیست ویژگی‌ها */
.attr-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.attr-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #d0d0d0;
}

.attr-item:last-child {
    border-bottom: none;
}

.attr-key {
    font-weight: 600;
    color: #000000;
    font-size: 1.5rem;
}

.attr-value {
    color: #515151;
    font-weight: 400;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .modern-tab-nav {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }

    .modern-tab-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .modern-tab-content {
        padding: 24px 20px;
    }

    .modern-tab-indicator {
        left: 12px;
        right: 12px;
    }
}

/* محتوای مودال - فارسی راست‌چین */
.tooltip-description {
    direction: rtl;
    text-align: right;
    line-height: 2;
    color: #333;
    font-size: 0.92rem;
}

/* عنوان هر بخش */
.tooltip-description .td-section-title {
    font-weight: 700;
    color: #000000;
    margin: 18px 0 6px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #f0c040;
}

/* پاراگراف معمولی */
.tooltip-description .td-paragraph {
    margin-bottom: 10px;
    color: #444;
}

/* لیست بولت‌ها */
.tooltip-description .td-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 14px 0;
}

.tooltip-description .td-list li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 7px;
    line-height: 1.9;
    color: #333;
}

.tooltip-description .td-list li::before {
    content: '●';
    position: absolute;
    right: 0;
    color: #f0c040;
    font-size: 0.6rem;
    top: 8px;
}

.tooltip-description .td-list li strong {
    color: #000000;
    font-weight: 700;
}

.cross-ref-section{
    direction:rtl;background:#fff;border:1px solid #eef0f4;border-radius:18px;
    padding:24px;margin:40px 0;box-shadow:0 10px 40px -18px rgba(40,33,10,.18);
}
.cross-ref-head-bar{
    display:flex;align-items:center;justify-content:space-between;
    gap:16px;margin-bottom:18px;flex-wrap:wrap;
}
.cr-title{display:flex;align-items:center;gap:14px;}
.cr-title-icon{
    width:48px;height:48px;border-radius:14px;display:flex;align-items:center;
    justify-content:center;font-size:20px;color:#3d2f00;flex-shrink:0;
    background:linear-gradient(135deg,#ffc20e,#ff9f0a);
    box-shadow:0 8px 18px -6px rgba(255,194,14,.7);
}
.cr-title h3{margin:0;font-size:18px;font-weight:700;color:#111827;}
.cr-title p{margin:2px 0 0;font-size:12.5px;color:#8a93a6;}
.cr-count{
    background:#fff5d6;color:#8a6500;font-weight:700;font-size:13px;
    padding:6px 14px;border-radius:999px;white-space:nowrap;
}
.cross-ref-search{position:relative;margin-bottom:18px;}
.cross-ref-search i{
    position:absolute;right:16px;top:50%;transform:translateY(-50%);
    color:#9aa3b2;font-size:15px;
}
.cr-search-input{
    width:100%;height:46px;border:1.5px solid #eef0f4;border-radius:12px;
    background:#fafbfc;padding:0 44px 0 16px;font-family:inherit;font-size:14px;
    color:#111827;transition:.2s;
}
.cr-search-input:focus{
    outline:none;border-color:#ffc20e;background:#fff;
    box-shadow:0 0 0 4px rgba(255,194,14,.18);
}
.cross-ref-list{border:1px solid #f0f1f5;border-radius:14px;overflow:hidden;}
.cr-row{
    display:grid;grid-template-columns:1.6fr 1.4fr 1fr 90px;align-items:center;
    gap:10px;padding:14px 18px;border-bottom:1px solid #f3f4f8;transition:.18s;
}
.cr-row:last-child{border-bottom:none;}
.cr-row-head{
    background:#f9fafb;font-size:12px;font-weight:700;color:#9aa3b2;
    padding-top:11px;padding-bottom:11px;
}
.cr-row:not(.cr-row-head):hover{background:#fffdf5;}
.cr-row.is-oem{
    background:linear-gradient(90deg,rgba(255,194,14,.14),transparent 60%);
    border-right:3px solid #ffc20e;
}
.cr-col-brand{display:flex;align-items:center;gap:10px;}
.cr-brand-logo{
    width:34px;height:34px;border-radius:9px;flex-shrink:0;
    display:flex;align-items:center;justify-content:center;font-weight:800;
    font-size:14px;color:#475569;background:#eef1f6;
}
.cr-brand-name{font-weight:600;font-size:14px;color:#1f2937;}
.cr-oem-badge{
    font-size:10px;font-weight:800;color:#8a6500;background:#fff5d6;
    padding:2px 7px;border-radius:6px;letter-spacing:.5px;
}
.cr-code-text{
    font-family:'Courier New',monospace;font-weight:700;font-size:14px;
    color:#111827;background:#f4f5f8;padding:4px 10px;border-radius:7px;
    display:inline-block;letter-spacing:.5px;
}
.cr-badge{
    display:inline-flex;align-items:center;gap:5px;font-size:12.5px;
    font-weight:700;padding:5px 12px;border-radius:999px;
}
.cr-badge-in{color:#0f9d58;background:#e7f7ee;}
.cr-badge-ref{color:#8a93a6;background:#f1f2f5;}
.cr-col-action{display:flex;align-items:center;gap:8px;justify-content:flex-end;}
.cr-btn{
    width:34px;height:34px;border-radius:9px;border:none;cursor:pointer;
    display:flex;align-items:center;justify-content:center;font-size:14px;
    transition:.18s;text-decoration:none;
}
.cr-btn svg{width:15px;height:15px;}
.cr-btn-copy{background:#f1f2f5;color:#64748b;}
.cr-btn-copy:hover{background:#fff5d6;color:#8a6500;transform:translateY(-2px);}
.cr-btn-copy.copied{background:#e7f7ee;color:#0f9d58;}
.cr-btn-view{
    background:linear-gradient(135deg,#ffc20e,#ff9f0a);color:#3d2f00;
    box-shadow:0 6px 14px -5px rgba(255,194,14,.75);
}
.cr-btn-view:hover{transform:translateY(-2px);}
.cross-ref-note{
    display:flex;align-items:center;gap:8px;margin-top:16px;font-size:12.5px;
    color:#8a93a6;background:#fafbfc;border:1px dashed #e6e8ee;
    border-radius:11px;padding:11px 14px;line-height:1.8;
}
.cross-ref-note i{color:#c2c8d4;}
@media (max-width:600px){
    .cr-row{grid-template-columns:1.4fr 1fr 78px;}
    .cr-col-status{display:none;}
    .cr-row-head .cr-col-status{display:none;}
    .cr-title p{display:none;}
}
