/* /100rfs/all — vintage layout aligned with main 100RFS page */
.rfs-all-page {
    direction: rtl;
    text-align: right;
}

.rfs-all-hero {
    padding: 108px 0 40px;
    background: linear-gradient(135deg, #f4f0e9 0%, #efe9d7 100%);
    border-bottom: 2px solid #222;
    text-align: right;
    direction: rtl;
}

.rfs-all-hero-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800 !important;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.45;
    text-align: right;
    direction: rtl;
    text-transform: none;
    font-family: "AnjomanMax", sans-serif;
}

.rfs-all-hero > .auto-container > p {
    color: #555;
    font-size: 17px;
    line-height: 1.9;
    max-width: 720px;
}

.rfs-all-hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 100%;
}

.rfs-all-hero-desc {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: #555;
    font-size: 17px;
    line-height: 1.9;
    max-width: 720px;
}

.rfs-all-view-all-btn {
    flex-shrink: 0;
    padding: 7px 18px !important;
    font-size: 13px !important;
    line-height: 1.2;
    white-space: nowrap;
}

.rfs-all-view-all-btn .btn-wrap {
    float: none !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
}

.rfs-all-view-all-btn .btn-wrap .text-one,
.rfs-all-view-all-btn .btn-wrap .text-two {
    height: auto !important;
    line-height: 1.2 !important;
    font-size: 13px !important;
}

.rfs-all-search {
    margin-top: 32px;
    padding: 20px;
    background: #f4f0e9;
    border: 2px solid #222;
    border-radius: 5px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.08);
    direction: rtl;
    text-align: right;
}

.rfs-all-search-grid {
    --rfs-search-control-height: 48px;
    --rfs-search-label-offset: 28px;
    display: grid;
    grid-template-columns: minmax(120px, 168px) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.rfs-all-search-grid--full {
    grid-template-columns: minmax(120px, 168px) minmax(0, 1fr) minmax(0, 1fr) auto;
}

.rfs-all-search-grid--dual {
    grid-template-columns: minmax(120px, 168px) minmax(0, 1fr) auto;
}

.rfs-all-search-grid--single {
    grid-template-columns: minmax(120px, 168px) auto;
}

.rfs-all-search-field--action {
    padding-top: var(--rfs-search-label-offset);
}

.rfs-all-search label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #222;
    margin-bottom: 6px;
    white-space: nowrap;
}

.rfs-all-search input,
.rfs-all-search select {
    width: 100%;
    height: var(--rfs-search-control-height);
    padding: 0 10px;
    border: 2px solid #222;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    direction: rtl;
    text-align: right;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    min-width: 0;
}

.rfs-all-search select {
    text-overflow: ellipsis;
}

.rfs-all-search .theme-btn.btn-style-one.rfs-all-search-submit {
    width: 100%;
    min-width: 88px;
    height: var(--rfs-search-control-height);
    padding: 0 16px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.rfs-all-search .theme-btn.btn-style-one.rfs-all-search-submit .btn-wrap {
    float: none !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
}

.rfs-all-search .theme-btn.btn-style-one.rfs-all-search-submit .btn-wrap .text-one,
.rfs-all-search .theme-btn.btn-style-one.rfs-all-search-submit .btn-wrap .text-two {
    height: auto !important;
    line-height: 1.2 !important;
    font-size: 14px !important;
}

.rfs-all-search input:focus,
.rfs-all-search select:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 3px 3px 0 rgba(226, 79, 53, 0.2);
}

.rfs-all-search-btn {
    display: none;
}

.rfs-all-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    align-items: center;
}

.rfs-all-clear-filters-btn {
    padding: 7px 18px !important;
    font-size: 13px !important;
}

.rfs-all-clear-filters-btn .btn-wrap {
    float: none !important;
    min-height: 0 !important;
    height: auto !important;
}

.rfs-all-clear-filters-btn .btn-wrap .text-one,
.rfs-all-clear-filters-btn .btn-wrap .text-two {
    height: auto !important;
    font-size: 13px !important;
}

.rfs-all-count {
    padding-top: 24px;
    color: #555;
    font-size: 15px;
    font-weight: 700;
}

.rfs-all-section {
    padding: 56px 0 80px;
    background: #fff;
}

.rfs-all-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    direction: rtl;
}

.rfs-all-page .rfs-sample-card__img {
    margin-bottom: 8px;
}

.rfs-all-page .rfs-sample-card__id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: auto;
    margin: 0 0 8px;
    padding: 6px 14px;
    line-height: 1.25;
    font-size: 19px;
    min-height: 34px;
    background: #fff;
    border: 2px solid var(--main-color);
    border-radius: 4px;
    box-shadow: 2px 2px 0 rgba(226, 79, 53, 0.15);
    flex: 0 0 auto;
}

.rfs-all-page .rfs-sample-card__title {
    margin: 0 0 12px;
    line-height: 1.45;
    font-weight: 800;
    flex: 0 1 auto;
}

.rfs-all-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 20px;
    color: #555;
    background: #f4f0e9;
    border: 2px dashed #999;
    border-radius: 5px;
}

@media (max-width: 1100px) {
    .rfs-all-hero-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .rfs-all-view-all-btn {
        align-self: flex-start;
    }

    .rfs-all-search-grid,
    .rfs-all-search-grid--full,
    .rfs-all-search-grid--dual,
    .rfs-all-search-grid--single {
        grid-template-columns: 1fr;
    }

    .rfs-all-search-field--action {
        padding-top: 0;
    }
}
