/*
 * فروشگاه اینترنتی آفیس
 * Product Content — Unified CSS
 *
 * Phase: migration from product-level Simple CSS
 * Scope: product description/content blocks
 *
 * Unified wrapper:
 *   .ol-product-content
 *
 * This file intentionally does NOT change:
 * - WooCommerce product card / price / add-to-cart UI
 * - Flatsome product layout
 * - product-specific colors/branding
 * - page/category styles
 *
 * The old Simple CSS remains active during this migration.
 */

/* =========================================================
   01. PRODUCT CONTENT BASE
   ========================================================= */

.ol-product-content{
    direction:rtl;
    font-size:16px;
    line-height:2.05;
    color:#111827;
}

.ol-product-content,
.ol-product-content *{
    box-sizing:border-box;
}

.ol-product-content p{
    margin:0 0 14px;
}

.ol-product-content a{
    text-decoration:underline;
    text-underline-offset:2px;
    font-weight:650;
}

.ol-product-content ul,
.ol-product-content ol{
    margin:0 0 14px;
    padding-right:18px;
}

.ol-product-content li{
    margin:0 0 8px;
}

.ol-product-content img{
    max-width:100%;
    height:auto;
}

/* =========================================================
   02. HEADINGS
   ========================================================= */

.ol-product-content h2{
    margin:30px 0 12px;
    padding:10px 14px;
    background:#f7f9fc;
    border-right:4px solid #2563eb;
    border-radius:12px;
    line-height:1.7;
}

.ol-product-content h3{
    margin:0 0 8px;
    line-height:1.8;
}

/* =========================================================
   03. KICKER / BADGE / SHORT DESCRIPTION
   ========================================================= */

.ol-product-content .ol-kicker{
    margin:0 0 12px;
    font-weight:650;
    color:#0f172a;
}

.ol-product-content .ol-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:2px 10px;
    margin-left:8px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
    background:#eef2ff;
    border:1px solid rgba(37,99,235,.22);
    color:#1e3a8a;
    white-space:nowrap;
}

.ol-product-shortdesc{
    direction:rtl;
    font-size:15px;
    line-height:2;
    color:#111827;
    margin:0 0 20px;
}

.ol-product-shortdesc,
.ol-product-shortdesc *{
    box-sizing:border-box;
}

.ol-product-shortdesc ul{
    margin:10px 0 12px;
    padding-right:20px;
}

.ol-product-shortdesc li{
    margin:0 0 6px;
}

.ol-product-shortdesc strong{
    font-weight:800;
}

.ol-product-shortdesc .ol-product-note{
    margin-top:14px;
}

/* =========================================================
   04. NOTE BOXES
   ========================================================= */

.ol-product-content .ol-product-note,
.ol-product-content .ol-product-note--copilot{
    margin:14px 0;
    padding:14px 14px;
    padding-right:46px;
    border-radius:14px;
    border:1px solid rgba(0,0,0,.10);
    line-height:2;
    color:#111827;
    background:#fff7d6;
    box-shadow:0 10px 24px rgba(17,24,39,.07);
    position:relative;
}

.ol-product-content .ol-product-note::before,
.ol-product-content .ol-product-note--copilot::before{
    content:"!";
    position:absolute;
    right:14px;
    top:14px;
    width:22px;
    height:22px;
    border-radius:999px;
    display:grid;
    place-items:center;
    font-weight:900;
    font-size:14px;
    line-height:1;
    color:#111827;
    background:rgba(17,24,39,.08);
    border:1px solid rgba(17,24,39,.10);
}

.ol-product-content .ol-product-note{
    border-right:6px solid rgba(234,179,8,.70);
}

.ol-product-content .ol-product-note--copilot{
    background:#fff1db;
    border-color:rgba(245,158,11,.40);
    box-shadow:0 10px 26px rgba(245,158,11,.14);
    border-right:6px solid rgba(245,158,11,.75);
}

.ol-product-content .ol-product-note--copilot::before{
    background:rgba(245,158,11,.20);
    border-color:rgba(245,158,11,.35);
}

.ol-product-content .ol-product-note p,
.ol-product-content .ol-product-note ul,
.ol-product-content .ol-product-note ol,
.ol-product-content .ol-product-note--copilot p,
.ol-product-content .ol-product-note--copilot ul,
.ol-product-content .ol-product-note--copilot ol{
    margin:0 0 10px;
}

.ol-product-content .ol-product-note > :last-child,
.ol-product-content .ol-product-note--copilot > :last-child{
    margin-bottom:0;
}

/* =========================================================
   05. TABLE WRAPPER
   ========================================================= */

.ol-product-content .ol-product-table-wrap{
    margin:14px 0 20px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    border-radius:14px;
    border:1px solid rgba(15,23,42,.10);
    background:#fff;
    box-shadow:0 8px 22px rgba(15,23,42,.06);
}

/* =========================================================
   06. UNIFIED PRODUCT TABLE
   ========================================================= */

.ol-product-content table.ol-product-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    direction:rtl;
    table-layout:auto;
    min-width:680px;
    background:#fff;
    font-size:15px;
}

.ol-product-content table.ol-product-table th,
.ol-product-content table.ol-product-table td{
    word-break:normal;
    overflow-wrap:anywhere;
}

.ol-product-content table.ol-product-table thead th{
    padding:14px 12px;
    background:linear-gradient(135deg,#eef4ff,#f8fafc);
    font-weight:900;
    color:#0f172a !important;
    border-bottom:1px solid rgba(15,23,42,.10);
    text-align:center;
    vertical-align:middle;
    white-space:nowrap;
}

.ol-product-content table.ol-product-table thead th:first-child{
    text-align:right;
}

.ol-product-content table.ol-product-table tbody th,
.ol-product-content table.ol-product-table tbody td{
    padding:12px 12px;
    vertical-align:top;
    line-height:2;
}

.ol-product-content table.ol-product-table tbody th{
    text-align:right;
    font-weight:800;
    color:#0f172a;
    background:#f8fafc;
    border-bottom:1px solid rgba(15,23,42,.08);
    white-space:nowrap;
}

.ol-product-content table.ol-product-table tbody td{
    border-bottom:1px solid rgba(15,23,42,.08);
    text-align:center;
}

.ol-product-content table.ol-product-table tbody tr:nth-child(even) td{
    background:rgba(15,23,42,.015);
}

.ol-product-content table.ol-product-table tbody tr:hover td{
    background:rgba(37,99,235,.045);
}

.ol-product-content table.ol-product-table tbody tr:last-child > *{
    border-bottom:0;
}

/* =========================================================
   07. COMPARISON TABLE
   ========================================================= */

.ol-product-content table.ol-product-table--compare{
    border:1px solid #e5e7eb;
    border-radius:14px;
    overflow:hidden;
}

.ol-product-content table.ol-product-table--compare thead th{
    padding:14px 10px;
    border-bottom:1px solid #e5e7eb;
}

.ol-product-content table.ol-product-table--compare tbody td{
    padding:13px 10px;
    border-bottom:1px solid #eef0f4;
    border-left:1px solid #eef0f4;
    vertical-align:middle;
}

.ol-product-content table.ol-product-table--compare tr > *:last-child{
    border-left:0;
}

.ol-product-content table.ol-product-table--compare tbody td:first-child{
    text-align:right;
    background:#f8fafc;
    font-weight:700;
    border-left:1px solid #eef0f4;
    white-space:nowrap;
}

.ol-product-content table.ol-product-table--compare tbody tr:nth-child(even) td{
    background:#fcfcfd;
}

.ol-product-content table.ol-product-table--compare tbody tr:hover td{
    background:rgba(37,99,235,.045);
}

.ol-product-content table.ol-product-table--compare tbody tr:last-child > *{
    border-bottom:0;
}

/* Optional highlighted comparison column */
.ol-product-content table.ol-product-table--compare tbody td:last-child{
    background:rgba(37,99,235,.025);
}

.ol-product-content table.ol-product-table--compare tbody tr:nth-child(even) td:last-child{
    background:rgba(37,99,235,.035);
}

.ol-product-content table.ol-product-table--compare tbody tr:hover td:last-child{
    background:rgba(37,99,235,.075);
}

.ol-product-content table.ol-product-table--compare thead th:last-child{
    background:linear-gradient(135deg,#eaf2ff,#f1f5ff);
    color:#1d4ed8 !important;
}

/* =========================================================
   08. OPTIONAL LICENSE / PRODUCT COLUMN MODIFIERS
   ========================================================= */

.ol-product-content table.ol-product-table--compare thead th.col-once{
    background:#fff4c2;
}

.ol-product-content table.ol-product-table--compare thead th.col-oem{
    background:#e7f8ee;
    outline:2px solid #22c55e;
    outline-offset:-2px;
}

.ol-product-content table.ol-product-table--compare thead th.col-retail{
    background:#eaf2ff;
}

/* =========================================================
   09. YES / NO STATUS
   ========================================================= */

.ol-product-content .ol-product-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:25px;
    height:25px;
    margin-left:6px;
    border-radius:50%;
    font-size:15px;
    font-weight:900;
    line-height:1;
    vertical-align:middle;
    flex:0 0 25px;
}

.ol-product-content .ol-product-status--yes{
    color:#059669;
    background:#ecfdf5;
    border:1px solid rgba(5,150,105,.20);
}

.ol-product-content .ol-product-status--no{
    color:#dc2626;
    background:#fef2f2;
    border:1px solid rgba(220,38,38,.18);
}

/* =========================================================
   10. CHECK / DASH
   ========================================================= */

.ol-product-content .ol-product-check,
.ol-product-content .ol-product-dash{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    padding:0 !important;
    margin:0 6px !important;
    border-radius:50% !important;
    font-family:Arial,sans-serif !important;
    font-size:17px !important;
    font-weight:900 !important;
    line-height:1 !important;
    vertical-align:middle !important;
    box-sizing:border-box !important;
}

.ol-product-content .ol-product-check{
    color:#059669 !important;
    background:#ecfdf5 !important;
    border:1px solid #a7f3d0 !important;
}

.ol-product-content .ol-product-dash{
    color:#ef4444 !important;
    background:#fff1f2 !important;
    border:1px solid #fecaca !important;
}

.ol-product-content table.ol-product-table--compare td .ol-product-check,
.ol-product-content table.ol-product-table--compare td .ol-product-dash{
    flex:0 0 30px !important;
}

.ol-product-content table.ol-product-table--compare tbody td{
    text-align:center !important;
    vertical-align:middle !important;
}

/* =========================================================
   11. HIGHLIGHT TEXT / PRICE ROW
   ========================================================= */

.ol-product-content .ol-product-highlight{
    font-weight:850;
    color:#1d4ed8;
}

.ol-product-content table.ol-product-table .price-row td,
.ol-product-content table.ol-product-table tr.ol-product-price-row td{
    font-weight:900;
    font-size:16px;
}

/* =========================================================
   12. FAQ
   ========================================================= */

.ol-product-content .ol-product-faq{
    margin-top:12px;
}

.ol-product-content .ol-product-faq details{
    border:1px solid rgba(15,23,42,.10);
    border-radius:14px;
    background:#fff;
    margin:10px 0;
    overflow:hidden;
    transition:box-shadow .2s ease,border-color .2s ease;
}

.ol-product-content .ol-product-faq details:hover{
    border-color:rgba(37,99,235,.22);
    box-shadow:0 6px 20px rgba(15,23,42,.055);
}

.ol-product-content .ol-product-faq details[open]{
    border-color:rgba(37,99,235,.18);
    box-shadow:0 8px 24px rgba(15,23,42,.06);
}

.ol-product-content .ol-product-faq summary{
    cursor:pointer;
    list-style:none;
    padding:12px 14px;
    padding-right:44px;
    font-weight:850;
    position:relative;
    background:#fbfdff;
    outline:none;
    transition:background .2s ease,color .2s ease;
}

.ol-product-content .ol-product-faq summary::-webkit-details-marker{
    display:none;
}

.ol-product-content .ol-product-faq summary::before{
    content:"+";
    position:absolute;
    right:14px;
    top:11px;
    width:24px;
    height:24px;
    border-radius:10px;
    display:grid;
    place-items:center;
    font-weight:900;
    background:#eef2ff;
    border:1px solid rgba(37,99,235,.18);
    color:#1e3a8a;
}

.ol-product-content .ol-product-faq summary:focus{
    box-shadow:0 0 0 3px rgba(37,99,235,.18);
}

.ol-product-content .ol-product-faq details[open] summary{
    background:#f7f9fc;
    color:#1d4ed8;
}

.ol-product-content .ol-product-faq details[open] summary::before{
    content:"−";
}

.ol-product-content .ol-product-faq__content{
    padding:12px 14px 14px;
    border-top:1px solid rgba(15,23,42,.08);
}

.ol-product-content .ol-product-faq__content p:last-child{
    margin-bottom:0;
}

/* =========================================================
   13. TRUST BAR
   ========================================================= */

.ol-product-content .ol-product-trust{
    --ol-trust-border:#e8e8e8;
    --ol-trust-icon:#1683c5;
    --ol-trust-text:#333;
    --ol-trust-bg:#fff;

    width:calc(100% - 40px);
    max-width:1480px;
    margin:0 auto 28px;
    padding:10px 8px;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    align-items:center;
    background:var(--ol-trust-bg);
    border-top:1px solid var(--ol-trust-border);
    border-bottom:1px solid var(--ol-trust-border);
    box-sizing:border-box;
}

.ol-product-content .ol-product-trust__item{
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:4px 14px;
    color:var(--ol-trust-text);
    text-align:center;
    line-height:1.7;
    box-sizing:border-box;
}

.ol-product-content .ol-product-trust__item + .ol-product-trust__item{
    border-right:1px solid var(--ol-trust-border);
}

.ol-product-content .ol-product-trust__icon{
    width:31px;
    height:31px;
    flex:0 0 31px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--ol-trust-icon);
}

.ol-product-content .ol-product-trust__icon svg{
    width:25px;
    height:25px;
    display:block;
}

.ol-product-content .ol-product-trust__text{
    font-size:14px;
    font-weight:500;
    white-space:nowrap;
}

/* =========================================================
   14. BOTTOM TRUST BAR
   ========================================================= */

.ol-product-content .ol-product-trust--bottom{
    --ol-bottom-border:#e5e5e5;
    --ol-bottom-icon:#1683c5;
    --ol-bottom-text:#333;
    --ol-bottom-bg:#fafafa;

    width:calc(100% - 40px);
    max-width:1480px;
    margin:30px auto 0;
    padding:14px 8px;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    align-items:stretch;
    background:var(--ol-bottom-bg);
    border-top:1px solid var(--ol-bottom-border);
    border-bottom:1px solid var(--ol-bottom-border);
    box-sizing:border-box;
}

.ol-product-content .ol-product-trust--bottom .ol-product-trust__item{
    color:var(--ol-bottom-text);
}

.ol-product-content .ol-product-trust--bottom .ol-product-trust__item + .ol-product-trust__item{
    border-right:1px solid var(--ol-bottom-border);
}

.ol-product-content .ol-product-trust__text strong{
    font-weight:700;
}

/* =========================================================
   15. MOBILE / TABLET
   ========================================================= */

@media (max-width:849px){

    .ol-product-content .ol-product-trust,
    .ol-product-content .ol-product-trust--bottom{
        width:calc(100% - 30px);
        grid-template-columns:repeat(3,1fr);
        row-gap:8px;
        padding:10px 6px;
    }

    .ol-product-content .ol-product-trust__item{
        padding:5px 8px;
    }

    .ol-product-content .ol-product-trust__text{
        font-size:13px;
        white-space:normal;
    }

    .ol-product-content .ol-product-trust--bottom .ol-product-trust__text{
        font-size:13px;
    }
}

@media (max-width:768px){

    .ol-product-content h2{
        padding:10px 12px;
    }

    .ol-product-content table.ol-product-table{
        font-size:14px;
    }

    .ol-product-content table.ol-product-table th,
    .ol-product-content table.ol-product-table td{
        padding:10px 8px;
    }
}

@media (max-width:549px){

    .ol-product-content{
        font-size:15px;
    }

    .ol-product-content h2{
        margin-top:24px;
        padding:9px 12px;
        border-radius:10px;
    }

    .ol-product-content .ol-product-table-wrap{
        border-radius:12px;
    }

    .ol-product-content table.ol-product-table{
        min-width:640px;
    }

    .ol-product-content .ol-product-note,
    .ol-product-content .ol-product-note--copilot{
        padding:12px 12px;
        padding-right:44px;
        border-radius:12px;
    }

    .ol-product-content .ol-product-note::before,
    .ol-product-content .ol-product-note--copilot::before{
        right:12px;
        top:12px;
    }

    .ol-product-content table.ol-product-table tbody th,
    .ol-product-content table.ol-product-table tbody td{
        padding:10px;
    }

    .ol-product-content .ol-product-check,
    .ol-product-content .ol-product-dash{
        width:27px !important;
        height:27px !important;
        min-width:27px !important;
        font-size:15px !important;
        margin:0 5px !important;
    }

    .ol-product-content .ol-product-trust,
    .ol-product-content .ol-product-trust--bottom{
        width:calc(100% - 20px);
        grid-template-columns:repeat(2,1fr);
        padding:8px 4px;
    }

    .ol-product-content .ol-product-trust__item{
        min-height:42px;
        gap:6px;
        padding:5px 6px;
    }

    .ol-product-content .ol-product-trust__item + .ol-product-trust__item{
        border-right:1px solid var(--ol-trust-border,#e8e8e8);
    }

    .ol-product-content .ol-product-trust--bottom .ol-product-trust__item + .ol-product-trust__item{
        border-right:1px solid var(--ol-bottom-border,#e5e5e5);
    }

    .ol-product-content .ol-product-trust__item:nth-child(odd){
        border-right:none;
    }

    .ol-product-content .ol-product-trust--bottom .ol-product-trust__item:nth-child(odd){
        border-right:none;
    }

    .ol-product-content .ol-product-trust__icon{
        width:27px;
        height:27px;
        flex-basis:27px;
    }

    .ol-product-content .ol-product-trust__icon svg{
        width:22px;
        height:22px;
    }

    .ol-product-content .ol-product-trust__text{
        font-size:12px;
        line-height:1.6;
        white-space:normal;
    }

    .ol-product-content .ol-product-trust--bottom .ol-product-trust__text{
        font-size:11.5px;
        line-height:1.6;
    }

    .ol-product-content .ol-product-trust__item:last-child{
        grid-column:1 / -1;
    }

    .ol-product-content .ol-product-trust--bottom .ol-product-trust__item:last-child{
        grid-column:1 / -1;
    }
}
