:root {
    --yellow: #f5c400;
    --yellow-dark: #d8aa00;
    --yellow-light: #fff4bd;

    --black: #101010;
    --dark: #1a1a1a;
    --gray-dark: #363636;
    --gray: #727272;
    --gray-light: #f2f2ef;

    --white: #ffffff;
    --border: #e2dfd4;

    --radius-small: 12px;
    --radius-medium: 20px;
    --radius-large: 30px;

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--gray-light);
    color: var(--black);
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-feature-settings: "ss01", "tnum";
    line-height: 1.9;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    width:
        min(1180px, calc(100% - 32px));

    margin-inline:
        auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background:
        rgba(16, 16, 16, 0.97);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;

    gap: 12px;

    color:
        var(--white);
}

.brand-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius:
        15px;

    background:
        var(--yellow);

    color:
        var(--black);

    font-size:
        1.45rem;

    font-weight:
        900;
}

.brand-text strong,
.brand-text small {
    display: block;
}

.brand-text strong {
    font-size:
        1.15rem;
}

.brand-text small {
    color:
        #bdbdbd;

    font-size:
        0.75rem;
}

.main-nav {
    display: flex;
    align-items: center;

    gap: 25px;

    color:
        #dddddd;

    font-size:
        0.92rem;
}

.main-nav a {
    transition:
        color 0.2s ease;
}

.main-nav a:hover {
    color:
        var(--yellow);
}

/* Hero */

.hero {
    padding:
        80px 0 65px;

    color:
        var(--white);

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(245, 196, 0, 0.22),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #090909,
            #252525
        );
}

.hero-grid {
    display:
        grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(280px, 0.6fr);

    gap:
        36px;

    align-items:
        center;
}

.hero-label {
    display:
        inline-flex;

    padding:
        6px 13px;

    border:
        1px solid rgba(245, 196, 0, 0.4);

    border-radius:
        999px;

    color:
        var(--yellow);

    font-size:
        0.85rem;

    font-weight:
        800;
}

.hero h1 {
    max-width:
        760px;

    margin:
        18px 0 10px;

    font-size:
        clamp(2.1rem, 5vw, 4.4rem);

    line-height:
        1.3;
}

.hero p {
    max-width:
        760px;

    margin:
        0;

    color:
        #d0d0d0;

    font-size:
        1.05rem;
}

.search-box {
    max-width:
        760px;

    display:
        flex;

    gap:
        9px;

    margin-top:
        28px;
}

.search-box input {
    width:
        100%;

    min-height:
        55px;

    padding:
        10px 18px;

    border:
        1px solid transparent;

    border-radius:
        15px;

    outline:
        none;
}

.search-box input:focus {
    border-color:
        var(--yellow);
}

.search-box button {
    min-width:
        120px;

    padding:
        10px 20px;

    border:
        0;

    border-radius:
        15px;

    background:
        var(--yellow);

    color:
        var(--black);

    font-weight:
        900;

    cursor:
        pointer;
}

.rate-card {
    min-height:
        310px;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        center;

    padding:
        30px;

    border-radius:
        var(--radius-large);

    background:
        var(--yellow);

    color:
        var(--black);

    box-shadow:
        var(--shadow);
}

.rate-title {
    font-weight:
        800;
}

.rate-value {
    margin-top:
        5px;

    font-size:
        clamp(2.4rem, 6vw, 4.2rem);

    line-height:
        1.3;
}

.rate-unit {
    font-weight:
        800;
}

.rate-update {
    margin-top:
        24px;

    padding-top:
        18px;

    border-top:
        1px solid rgba(0, 0, 0, 0.18);

    font-size:
        0.82rem;
}

/* Sections */

.features,
.coming-soon {
    padding:
        65px 0;
}

.section-title {
    margin-bottom:
        28px;
}

.section-title span {
    color:
        #937500;

    font-weight:
        800;
}

.section-title h2 {
    margin:
        4px 0 0;

    font-size:
        clamp(1.7rem, 3vw, 2.5rem);
}

.feature-grid {
    display:
        grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        20px;
}

.feature-card {
    padding:
        28px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-medium);

    background:
        var(--white);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.04);
}

.feature-number {
    color:
        var(--yellow-dark);

    font-size:
        1.4rem;

    font-weight:
        900;
}

.feature-card h3 {
    margin:
        10px 0 5px;
}

.feature-card p {
    margin:
        0;

    color:
        var(--gray);
}

.coming-soon {
    padding-top:
        0;
}

.coming-box {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        25px;

    padding:
        34px;

    border-radius:
        var(--radius-large);

    background:
        var(--black);

    color:
        var(--white);
}

.coming-box span {
    color:
        var(--yellow);

    font-weight:
        800;
}

.coming-box h2 {
    margin:
        5px 0;
}

.coming-box p {
    max-width:
        750px;

    margin:
        0;

    color:
        #cfcfcf;
}

.status-badge {
    flex:
        0 0 auto;

    padding:
        10px 17px;

    border-radius:
        999px;

    background:
        var(--yellow);

    color:
        var(--black);

    font-weight:
        900;
}

/* Footer */

.site-footer {
    padding:
        35px 0;

    background:
        var(--black);

    color:
        #cccccc;
}

.footer-inner {
    display:
        flex;

    justify-content:
        space-between;

    gap:
        30px;
}

.footer-inner strong {
    color:
        var(--yellow);

    font-size:
        1.25rem;
}

.footer-inner p {
    margin:
        3px 0 0;
}

.disclaimer {
    max-width:
        500px;

    font-size:
        0.84rem;

    text-align:
        left;
}

/* Tablet */

@media (max-width: 900px) {

    .header-inner {
        padding:
            15px 0;

        flex-direction:
            column;

        align-items:
            flex-start;
    }

    .main-nav {
        width:
            100%;

        overflow-x:
            auto;

        padding-bottom:
            4px;
    }

    .hero-grid {
        grid-template-columns:
            1fr;
    }

    .rate-card {
        min-height:
            auto;
    }

    .feature-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 600px) {

    .container {
        width:
            min(100% - 20px, 1180px);
    }

    .brand-text small {
        display:
            none;
    }

    .main-nav {
        gap:
            18px;

        white-space:
            nowrap;

        font-size:
            0.84rem;
    }

    .hero {
        padding:
            48px 0 38px;
    }

    .hero h1 {
        font-size:
            2.15rem;
    }

    .search-box {
        flex-direction:
            column;
    }

    .search-box button {
        width:
            100%;
    }

    .feature-grid {
        grid-template-columns:
            1fr;
    }

    .coming-box,
    .footer-inner {
        flex-direction:
            column;

        align-items:
            flex-start;
    }

    .disclaimer {
        text-align:
            right;
    }
}
.search-page {
    min-height: calc(100vh - 82px);
    padding: 55px 0 80px;
}

.search-page-header {
    padding: 35px;
    border-radius: 28px;
    background: var(--black);
    color: var(--white);
}

.search-page-header h1 {
    margin: 10px 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.search-results {
    margin-top: 28px;
}

.search-result-summary {
    margin-bottom: 18px;
    color: var(--gray);
}

.search-product-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.search-product-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;

    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;

    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.search-product-image {
    min-height: 170px;

    display: grid;
    place-items: center;

    overflow: hidden;
    border-radius: 17px;
    background: #f4f4ef;
    color: var(--gray);

    font-size: 0.75rem;
}

.search-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-product-content h2 {
    margin: 5px 0 0;
    font-size: 1.15rem;
}

.search-product-content p {
    margin: 7px 0;
    color: var(--gray);
}

.product-code {
    color: #8b7000;
    font-size: 0.78rem;
    font-weight: 800;
}

.product-en-name {
    direction: ltr;
    text-align: right;
}

.match-reason {
    margin-top: 12px;
    padding: 9px 12px;

    border-radius: 12px;
    background: var(--yellow-light);

    color: #6f5900;
    font-size: 0.78rem;
}

.match-reason span {
    margin-right: 5px;
}

.search-product-footer {
    margin-top: 15px;
    padding-top: 13px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 1.05rem;
}

.empty-search-result {
    padding: 55px 20px;
    border: 1px dashed var(--border);
    border-radius: 22px;

    background: var(--white);
    color: var(--gray);
    text-align: center;
}

.empty-search-result h2 {
    margin: 0;
    color: var(--black);
}

@media (max-width: 900px) {
    .search-product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .search-page {
        padding-top: 20px;
    }

    .search-page-header {
        padding: 22px 16px;
    }

    .search-product-card {
        grid-template-columns: 100px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .search-product-image {
        min-height: 130px;
    }

    .search-product-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
.product-detail-page {
    padding: 30px 0 80px;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 20px;
    color: var(--gray);
    font-size: 0.85rem;
}

.product-breadcrumb a:hover {
    color: var(--yellow-dark);
}

.product-hero {
    display: grid;
    grid-template-columns:
        minmax(300px, 0.8fr)
        minmax(0, 1.2fr);

    gap: 35px;
    padding: 35px;

    border: 1px solid var(--border);
    border-radius: 30px;

    background: var(--white);
    box-shadow: var(--shadow);
}

.product-main-image {
    min-height: 460px;

    display: grid;
    place-items: center;

    overflow: hidden;
    border-radius: 24px;

    background: #f4f4ef;
    color: var(--gray);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: contain;
}

.product-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-code-badge,
.product-category-badge {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.product-code-badge {
    background: var(--yellow-light);
    color: #725b00;
}

.product-category-badge {
    background: #ecece7;
    color: var(--gray-dark);
}

.product-main-info h1 {
    margin: 15px 0 3px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.4;
}

.product-main-en {
    margin: 0;
    direction: ltr;
    text-align: right;
    color: var(--gray);
}

.product-lead {
    margin: 18px 0;
    color: var(--gray-dark);
}

.product-price-box {
    margin-top: 22px;
    padding: 22px;

    display: flex;
    flex-direction: column;

    border-radius: 20px;
    background: var(--black);
    color: var(--white);
}

.product-price-box span {
    color: var(--yellow);
    font-size: 0.85rem;
    font-weight: 800;
}

.product-price-box strong {
    font-size: clamp(2rem, 4vw, 3rem);
}

.product-price-box small {
    color: #bdbdbd;
}

.product-summary-grid {
    margin-top: 18px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.product-summary-grid > div {
    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 14px;
}

.product-summary-grid span,
.product-summary-grid strong {
    display: block;
}

.product-summary-grid span {
    color: var(--gray);
    font-size: 0.78rem;
}

.available-text {
    color: #258143;
}

.product-content-grid {
    margin-top: 24px;

    display: grid;
    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(280px, 0.6fr);

    gap: 20px;
}

.product-content-card,
.product-side-card,
.product-info-section {
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: var(--white);
}

.product-content-card h2,
.product-side-card h2,
.product-info-section h2 {
    margin-top: 0;
}

.rich-product-text,
.product-info-section {
    color: var(--gray-dark);
}

.product-data-list {
    margin: 0;
}

.product-data-list > div {
    padding: 12px 0;

    display: flex;
    justify-content: space-between;
    gap: 15px;

    border-bottom: 1px solid var(--border);
}

.product-data-list > div:last-child {
    border-bottom: 0;
}

.product-data-list dt {
    color: var(--gray);
}

.product-data-list dd {
    margin: 0;
    font-weight: 800;
}

.product-sections-grid {
    margin-top: 20px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.warning-section {
    border-color: #ead8a1;
    background: #fffdf4;
}

.product-history-section,
.related-products-section {
    margin-top: 55px;
}

.product-history-table-wrap {
    overflow-x: auto;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: var(--white);
}

.product-history-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

.product-history-table th,
.product-history-table td {
    padding: 15px 18px;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.product-history-table th {
    background: #f6f6f2;
}

.related-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.related-product-card {
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--white);
    transition: transform 0.2s ease;
}

.related-product-card:hover {
    transform: translateY(-3px);
}

.related-product-image {
    height: 190px;

    display: grid;
    place-items: center;

    overflow: hidden;
    border-radius: 14px;
    background: #f4f4ef;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.related-product-card h3 {
    margin: 12px 0 4px;
    font-size: 0.95rem;
}

.independent-notice {
    margin-top: 40px;
    padding: 18px;

    border-radius: 16px;
    background: #e9e9e4;
    color: var(--gray);

    font-size: 0.8rem;
    text-align: center;
}

.product-detail-link {
    display: inline-flex;
    padding: 6px 12px;

    border-radius: 10px;
    background: var(--yellow);
    color: var(--black);

    font-size: 0.78rem;
    font-weight: 800;
}

@media (max-width: 900px) {
    .product-hero,
    .product-content-grid {
        grid-template-columns: 1fr;
    }

    .related-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-main-image {
        min-height: 350px;
    }
}

@media (max-width: 600px) {
    .product-detail-page {
        padding-top: 15px;
    }

    .product-hero {
        padding: 16px;
        gap: 20px;
    }

    .product-main-image {
        min-height: 280px;
    }

    .product-summary-grid,
    .product-sections-grid,
    .related-product-grid {
        grid-template-columns: 1fr;
    }

    .product-main-info h1 {
        font-size: 2rem;
    }
}
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn/Vazirmatn-Regular.d36dddb25c10.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn/Vazirmatn-Medium.baa9fb268a89.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn/Vazirmatn-SemiBold.6f3ddf0993e1.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn/Vazirmatn-Bold.7bc70596b4eb.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
.product-price-box strong,
.product-price,
.rate-value,
.product-history-table td,
.product-summary-grid strong,
.product-data-list dd {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    letter-spacing: -0.02em;
}

.product-price-box strong {
    font-weight: 700;
}

.product-main-info h1,
.section-title h2,
.search-product-content h2 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

.product-main-en,
.product-en-name {
    font-family: Inter, Arial, sans-serif;
    letter-spacing: 0;
}
.nutrition-section {
    margin-top: 55px;
}

.nutrition-card {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.nutrition-summary {
    padding: 18px 22px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    border-bottom: 1px solid var(--border);
    background: #f7f7f2;
}

.nutrition-summary > div {
    padding: 13px 15px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--white);
}

.nutrition-summary span,
.nutrition-summary strong {
    display: block;
}

.nutrition-summary span {
    color: var(--gray);
    font-size: 0.78rem;
}

.nutrition-reference-note {
    padding: 14px 22px;

    border-bottom: 1px solid var(--border);

    color: var(--gray-dark);
    font-size: 0.88rem;
}

.nutrition-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.nutrition-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

.nutrition-table th,
.nutrition-table td {
    padding: 15px 18px;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.nutrition-table th {
    background: var(--black);
    color: var(--white);
    font-size: 0.82rem;
}

.nutrition-table td strong {
    display: block;
}

.nutrition-table td small {
    display: block;
    margin-top: 3px;
    color: var(--gray);
}

.nutrition-highlighted {
    background: #fff9d8;
}

.nutrition-footnote {
    padding: 17px 22px;

    background: #f7f7f2;
    color: var(--gray);

    font-size: 0.82rem;
    line-height: 1.9;
}

.nutrition-footnote p {
    margin: 0;
}

@media (max-width: 650px) {
    .nutrition-summary {
        grid-template-columns: 1fr;
    }

    .nutrition-card {
        border-radius: 16px;
    }

    .nutrition-table th,
    .nutrition-table td {
        padding: 12px;
    }
}
.nutrition-empty-row {
    padding: 28px !important;
    color: var(--gray);
    text-align: center !important;
}
.rate-card {
    position: relative;
    overflow: hidden;
}

.rate-value {
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
}

.rate-value-empty {
    letter-spacing: 0;
}

.rate-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 24px;
    margin-top: 12px;
    font-size: 0.88rem;
    font-weight: 800;
}

.rate-change-up {
    color: #18653b;
}

.rate-change-down {
    color: #9e2020;
}

.rate-change-unchanged {
    color: #4e4e45;
}

.rate-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    font-size: 0.82rem;
    font-weight: 700;
}

.rate-status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
}

.rate-status-dot.is-valid {
    background: #178642;
    box-shadow: 0 0 0 4px rgba(23, 134, 66, 0.13);
}

.rate-status-dot.is-stale {
    background: #b54b21;
    box-shadow: 0 0 0 4px rgba(181, 75, 33, 0.13);
}

.rate-update {
    display: grid;
    gap: 5px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(20, 20, 20, 0.16);
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.8;
}

.rate-update span {
    color: rgba(20, 20, 20, 0.65);
}

.rate-update strong {
    font-weight: 800;
}
