

/* ===============================
   کانتینر اصلی
================================ */

.custom-size-guide-container {
    background: #ffffff;
    border: 1px solid rgba(153, 118, 86, 0.15);
    border-radius: 10px;
    padding: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    direction: rtl;
}


/* ===============================
   عنوان بخش‌ها
================================ */

.size-table-title {
    display: table;
    margin: 0 auto 12px;
    padding-bottom: 6px;

    font-size: 16px;
    font-weight: 700;

    color: #0c8052;

    text-align: center;

    border-bottom: 2px solid #D2B48C;
}


/* ===============================
   راهنمای سایز ۱، ۲، ۳ و فری
================================ */

.general-size-section {
    margin-bottom: 25px;
}


.general-size-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 8px;
}


.general-size-item {
    position: relative;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    min-height: 68px;

    padding: 10px 5px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fdfbf7 100%
        );

    border:
        1px solid
        rgba(153, 118, 86, 0.20);

    border-radius: 9px;

    text-align: center;

    overflow: hidden;

    box-sizing: border-box;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


/* خط بالای کارت */
.general-size-item::before {

    content: "";

    position: absolute;

    top: 0;
    right: 0;
    left: 0;

    height: 3px;

    background: #0c8052;
}


/* کارت فری سایز */
.free-size-item {
    background:
        linear-gradient(
            145deg,
            rgba(12, 128, 82, 0.035),
            rgba(210, 180, 140, 0.08)
        );

    border-color:
        rgba(12, 128, 82, 0.20);
}


.general-size-item:hover {

    transform:
        translateY(-1px);

    border-color:
        rgba(12, 128, 82, 0.30);

    box-shadow:
        0 5px 15px
        rgba(0, 0, 0, 0.04);
}


.general-size-name {

    display: block;

    margin-bottom: 2px;

    color: #0c8052;

    font-size: 15px;

    font-weight: 800;

    line-height: 1.5;
}


.general-size-range {

    display: block;

    color: #666666;

    font-size: 11.5px;

    font-weight: 500;

    line-height: 1.5;

    white-space: nowrap;
}


/* ===============================
   بخش جدول‌ها
================================ */

.size-table-section {

    margin-bottom: 25px;
}


.table-scroll-wrapper {

    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}


/* ===============================
   جدول
================================ */

.size-guide-table {

    width: 100%;

    border-collapse: collapse;

    margin: 5px 0;

    text-align: center;
}


.size-guide-table th {

    background-color:
        rgb(153, 118, 86);

    color: #ffffff;

    padding: 12px;

    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;
}


.size-guide-table th:first-child {

    border-top-right-radius: 6px;
}


.size-guide-table th:last-child {

    border-top-left-radius: 6px;
}


.size-guide-table td {

    padding: 12px;

    border-bottom:
        1px solid #f0f0f0;

    color: #222222;

    font-size: 14px;

    white-space: nowrap;
}


.size-guide-table tbody tr:nth-child(even) {

    background-color:
        rgba(210, 180, 140, 0.08);
}


.size-guide-table tbody tr:hover {

    background-color:
        rgba(12, 128, 82, 0.04);

    transition:
        background-color 0.2s ease;
}


/* ===============================
   اندازه‌های ثابت
================================ */

.fixed-specs-section {

    background: #fdfbf7;

    border:
        1px solid
        rgba(210, 180, 140, 0.25);

    border-radius: 8px;

    padding: 8px 16px;

    margin-bottom: 20px;
}


.spec-row {

    display: table;

    width: 100%;

    padding: 10px 0;

    border-bottom:
        1px solid
        rgba(210, 180, 140, 0.15);
}


.spec-row:last-child {

    border-bottom: none;
}


.spec-label {

    display: table-cell;

    text-align: right;

    font-size: 14px;

    font-weight: bold;

    color: #333333;
}


.spec-value {

    display: table-cell;

    text-align: left;

    font-size: 14px;

    color: #666666;
}


/* ===============================
   هشدار
================================ */

.size-guide-alert {

    margin-top: 15px;

    padding-top: 10px;

    border-top:
        1px dashed
        rgba(153, 118, 86, 0.2);

    text-align: center;

    color: #d9381e;

    font-size: 13px;

    font-weight: bold;
}


/* ===============================
   تبلت
================================ */

@media (max-width: 900px) {

    .general-size-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ===============================
   موبایل
================================ */

@media (max-width: 767px) {

    .custom-size-guide-container {

        padding: 14px 10px;

        border-radius: 8px;
    }


    .size-table-title {

        margin-bottom: 9px;

        font-size: 14px;
    }


    .general-size-section {

        margin-bottom: 20px;
    }


    .general-size-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 6px;
    }


    .general-size-item {

        min-height: 57px;

        padding: 7px 4px;

        border-radius: 7px;
    }


    .general-size-item::before {

        height: 2px;
    }


    .general-size-name {

        margin-bottom: 0;

        font-size: 13px;
    }


    .general-size-range {

        font-size: 10.5px;
    }


    .size-table-section {

        margin-bottom: 20px;
    }


    .size-guide-table th {

        padding: 9px 6px;

        font-size: 12px;
    }


    .size-guide-table td {

        padding: 9px 6px;

        font-size: 12px;
    }


    .fixed-specs-section {

        padding: 5px 11px;

        margin-bottom: 15px;
    }


    .spec-row {

        padding: 8px 0;
    }


    .spec-label,
    .spec-value {

        font-size: 12px;
    }


    .size-guide-alert {

        margin-top: 10px;

        padding-top: 9px;

        font-size: 11.5px;
    }

}


/* ===============================
   گوشی‌های خیلی کوچک
================================ */

@media (max-width: 360px) {

    .general-size-grid {

        gap: 5px;
    }


    .general-size-item {

        min-height: 54px;
    }


    .general-size-name {

        font-size: 12px;
    }


    .general-size-range {

        font-size: 9.5px;
    }

}

