/* اساس: متغیرهای رنگ/تم، فونت، ریست، دکمه، فرم، کارت، جدول، تب، مودال‌ها و ... */
@font-face {
    font-family: Vazirmatn;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/Vazir-FD-WOL.woff2) format("woff2")
}

@font-face {
    font-family: Vazirmatn;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/Vazir-Medium-FD-WOL.woff2) format("woff2")
}

@font-face {
    font-family: Vazirmatn;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/Vazir-Bold-FD-WOL.woff2) format("woff2")
}

:root {
    --bg: #f3f5f8;
    --card: #fff;
    --text: #18212f;
    --muted: #667388;
    --line: #e0e5ec;
    --pri: #c8102e;
    --pri-d: #9d0c24;
    --pri-soft: #fde8ec;
    --dark: #111827;
    --dark2: #1f2937;
    --ok: #16a34a;
    --warn: #f59e0b;
    --sh: 0 2px 10px rgba(17,24,39,.07);
    --r: 10px
}

[data-theme=dark] {
    --bg: #0d1218;
    --card: #161d27;
    --text: #e7ecf3;
    --muted: #92a0b3;
    --line: #273140;
    --pri-soft: #3a1019;
    --dark: #05080c;
    --dark2: #0f151d;
    --sh: 0 2px 10px rgba(0,0,0,.4)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Vazirmatn,Tahoma,sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.9;
    font-size: 15px;
    transition: background .2s,color .2s;
    text-align: justify;
}

a, a:any-link, a:hover, a:focus, a:active, a:visited {
    color: inherit;
    text-decoration: none !important
}

h1, h2, h3, h4 {
    margin: 0 0 10px;
    line-height: 1.5
}

img {
    max-width: 100%
}

.wrap {
    max-width: 1240px;
    margin: auto;
    padding: 0 16px
}

main.wrap {
    padding-top: 24px;
    min-height: 55vh
}

.btn {
    background: var(--pri);
    color: #fff;
    border: 0;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: .15s
}

    .btn:hover {
        background: var(--pri-d)
    }

    .btn.ghost {
        background: transparent;
        color: var(--text);
        border: 1px solid var(--line)
    }

        .btn.ghost:hover {
            border-color: var(--pri);
            color: var(--pri)
        }

    .btn.sm {
        padding: 3px 12px;
        font-size: 13px
    }

    .btn.block {
        width: 100%;
        justify-content: center
    }

    .btn.lg {
        padding: 12px 30px;
        font-size: 16px
    }

input, select, textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    border-radius: 8px;
    font: inherit;
    margin: 4px 0 12px;
    outline: 0
}

    input:focus, select:focus, textarea:focus {
        border-color: var(--pri);
        box-shadow: 0 0 0 3px var(--pri-soft)
    }

label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500
}

input[type=checkbox], input[type=radio] {
    width: auto;
    margin: 0 0 0 6px
}

.logo {
    font-weight: 700;
    font-size: 26px;
    color: var(--pri);
    letter-spacing: .5px;
    line-height: 1.2;
    white-space: nowrap
}

    .logo small {
        display: block;
        font-size: 10px;
        color: var(--muted);
        font-weight: 400;
        letter-spacing: 0
    }

.ic {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    background: var(--card);
    color: var(--text);
    font-size: 18px
}

    .ic:hover {
        border-color: var(--pri)
    }

    .ic .badge {
        position: absolute;
        top: -6px;
        left: -6px
    }

.badge {
    background: var(--pri);
    color: #fff;
    border-radius: 10px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    font-size: 11px;
    display: inline-grid;
    place-items: center;
    line-height: 1
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 16px;
    box-shadow: var(--sh)
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(235px,1fr));
    gap: 16px;
    margin: 16px 0
}

.price {
    color: var(--pri);
    font-weight: 700;
    font-size: 17px
}

.sku {
    color: var(--muted);
    font-size: 12px
}

.row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.crumbs {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px
}

    .crumbs a:hover {
        color: var(--pri)
    }

.tbl {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--r)
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card)
}

th, td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    text-align: right;
    white-space: nowrap
}

th {
    background: var(--bg);
    font-size: 13px;
    color: var(--muted)
}

tr:hover td {
    background: var(--pri-soft)
}

.tabs {
    display: flex;
    border-bottom: 2px solid var(--line);
    margin: 20px 0 14px;
    gap: 4px
}

    .tabs button {
        padding: 8px 20px;
        border: 0;
        background: none;
        color: var(--muted);
        cursor: pointer;
        font: inherit;
        font-weight: 500;
        border-bottom: 3px solid transparent;
        margin-bottom: -2px
    }

    .tabs .on {
        color: var(--pri);
        border-color: var(--pri)
    }

.qty {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 8px
}

    .qty button {
        border: 0;
        background: none;
        color: var(--text);
        width: 30px;
        cursor: pointer;
        font-size: 16px
    }

    .qty span {
        min-width: 30px;
        text-align: center
    }

.toast {
    position: fixed;
    bottom: 22px;
    left: 22px;
    background: var(--ok);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 99;
    box-shadow: var(--sh)
}

@media(max-width:900px) {
    .two {
        grid-template-columns: 1fr
    }
}
