/* =============================================================
   Home — Price list section with product tabs (Figma 539-1932)
   Scoped to .sf-price only.
   ============================================================= */

.sf-price {
    background: #ffffff;
    padding-top: 40px;
    margin-bottom: 64px;
}

.sf-price .sf-price-head {
    margin-bottom: 34px;
}

.sf-price .sf-price-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    color: #282828;
}

.sf-price .sf-price-sub {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #8c8c8c;
}

.sf-price-inner {
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "tabs more"
        "table table";
    align-items: end;
    column-gap: 16px;
    row-gap: 0;
}

/* ---------------- Tabs ---------------- */
.sf-price-tabs {
    grid-area: tabs;
    display: flex;
    align-items: stretch;
    gap: 10px;
    direction: rtl;
    max-width: 100%;
}

.sf-price-tab {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: #FFFDF2;
    box-shadow: -2px -2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px 5px 0 0;
    color: #535353;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    flex: 0 0 auto;
    height: 56px;
    min-width: 96px;
    padding: 0 22px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.sf-price-tab:hover {
    background: #FFF8D9;
}

.sf-price-tab.is-active {
    background: #FFD400;
    color: #141414;
    font-weight: 700;
}

/* ---------------- More button ---------------- */
.sf-price-more {
    grid-area: more;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 50px;
    max-height: 50px;
    padding: 0 16px;
    border: 1px solid #141414;
    background: #ffffff;
    color: #141414;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    margin-bottom: 14px;
    transition: background .2s ease, color .2s ease;
}

.sf-price-more i {
    font-size: 13px;
}

.sf-price-more:hover {
    background: #141414;
    color: #FFD400;
}

/* ---------------- Table ---------------- */
.sf-price-tablewrap {
    grid-area: table;
    overflow-x: auto;
}

.sf-price-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    direction: rtl;
    margin: 0;
}

.sf-price-table thead th {
    background: #FFD400;
    color: #535353;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    vertical-align: middle;
    padding: 17px 12px !important;
    white-space: nowrap;
    border: 0;
}

.sf-price-table tbody td {
    background: transparent;
    color: #535353;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    padding: 18px 12px !important;
    white-space: nowrap;
    border: 0;
    border-bottom: 1px solid #efefef;
}

.sf-price-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

.sf-price-table tbody tr:hover td {
    background: #fff8d9;
}

.sf-price-table .sf-price-change {
    font-weight: 700;
    direction: ltr;
}

.sf-price-table .sf-price-change i {
    color: #16a34a;
    font-size: 12px;
    margin-inline-end: 4px;
}

.sf-price-table .sf-price-change.is-down i {
    color: #e11d48;
}

.sf-price-table .sf-price-change.is-flat i {
    color: #9ca3af;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px) {
    .sf-price .sf-price-title {
        font-size: 25px;
    }

    .sf-price-tab {
        min-width: 80px;
        height: 50px;
        padding: 0 16px;
        font-size: 14px;
    }

    .sf-price-more {
        font-size: 14px;
    }
}

@media (max-width: 767.98px) {
    .sf-price-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .sf-price-tabs {
        order: 1;
        width: 100%;
        overflow-x: auto;
        justify-content: center;
    }

    .sf-price-tablewrap {
        order: 2;
    }

    .sf-price-more {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 16px;
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .sf-price {
        padding-top: 20px;
    }

    .sf-price .sf-price-head {
        margin-bottom: 34px;
    }

    .sf-price .sf-price-title {
        font-size: 21px;
    }

    .sf-price .sf-price-sub {
        font-size: 12.5px;
    }

    .sf-price-tab {
        flex: 0 0 auto;
        min-width: 70px;
        height: 46px;
        padding: 0 14px;
        font-size: 13px;
    }

    .sf-price-more {
        font-size: 13px;
    }

    .sf-price-table thead th {
        font-size: 13px;
        padding: 12px 8px !important;
    }

    .sf-price-table tbody td {
        font-size: 12.5px;
        padding: 13px 8px !important;
    }
}
