.rstm-container,
.rstm-ebay,
.rstm-inzerce-intro,
.rstm-filter,
.rstm-results-count {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    font-family: Arial, sans-serif;
}

.rstm-inzerce-intro {
    margin-top: 30px;
    margin-bottom: 22px;
    padding: 0 20px;
}

.rstm-inzerce-intro h1 {
    margin-bottom: 14px;
    color: #111827;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
}

.rstm-inzerce-intro p {
    max-width: 900px;
    color: #374151;
    line-height: 1.7;
    font-size: 17px;
    margin-bottom: 12px;
}

.rstm-inzerce-note {
    padding: 14px 18px;
    background: #f8faf8;
    border-left: 5px solid #7a8d1c;
    border-radius: 12px;
    font-size: 16px;
}

.rstm-filter {
    margin-bottom: 20px;
    padding: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.rstm-filter input,
.rstm-filter select {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    min-height: 48px;
    font-size: 15px;
    background: #fff;
    color: #111827;
}

.rstm-filter input {
    min-width: 280px;
    flex: 1;
}

.rstm-results-count {
    padding: 0 20px;
    margin-bottom: 14px;
    font-size: 15px;
    color: #4b5563;
}

.rstm-ebay {
    margin-top: 8px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.rstm-item {
    display: grid;
    grid-template-columns: 165px 1fr 200px;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
    transition: background 0.2s ease;
}

.rstm-item:hover {
    background: #fafbf8;
}

.rstm-left a {
    display: block;
    width: 160px;
    height: 160px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.rstm-left img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    display: block;
    background: #f3f4f6;
}

.rstm-noimg {
    width: 100%;
    height: 100%;
    min-height: 160px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #6b7280;
}

.rstm-info {
    display: flex;
    flex-direction: column;
}

.rstm-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}

.rstm-badge,
.rstm-section {
    display: inline-block;
    padding: 7px 13px;
    background: #eef2dd;
    color: #556214;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.rstm-date {
    font-size: 13px;
    color: #6b7280;
}

.rstm-title {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
}

.rstm-title a {
    text-decoration: none;
    color: #111827;
}

.rstm-title a:hover,
.rstm-back:hover {
    color: #7a8d1c;
}

.rstm-desc {
    font-size: 16px;
    color: #374151;
    margin-bottom: 14px;
    line-height: 1.75;
}

.rstm-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rstm-meta-row {
    font-size: 14px;
    color: #4b5563;
}

.rstm-meta-label {
    font-weight: 700;
    color: #111827;
}

.rstm-side {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.rstm-price {
    font-size: 32px;
    font-weight: 700;
    color: #7a8d1c;
    margin-bottom: 16px;
    line-height: 1.1;
}

.rstm-price-mobile {
    display: none;
}

.rstm-btn {
    border: 0;
    background: #7a8d1c;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
}

.rstm-btn:hover {
    background: #667618;
}

.rstm-btn-light {
    background: #eef0e4;
    color: #374151 !important;
}

.rstm-empty {
    padding: 40px;
    text-align: center;
    color: #6b7280;
    font-size: 17px;
}

.rstm-detail {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.rstm-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f3f4f6;
    border-radius: 10px;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: 0.2s;
    margin-bottom: 18px;
}

.rstm-back:hover {
    background: #e5e7eb;
}

.rstm-detail-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.rstm-detail-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.rstm-detail-title {
    font-size: 36px;
    margin: 8px 0 24px;
    color: #111827;
    line-height: 1.05;
    font-weight: 700;
    overflow-wrap: break-word;
}

.rstm-detail-image,
.rstm-detail-noimg {
    width: 100%;
    height: 420px;

    object-fit: contain;
    object-position: center;

    border-radius: 14px;
    border: 1px solid #e5e7eb;

    background: #f3f4f6;
}

.rstm-detail-right {
    align-self: start;
}


.rstm-detail-price {
    font-size: 44px;
    font-weight: 700;
    color: #7a8d1c;
    margin-bottom: 24px;
    line-height: 1.05;
}

.rstm-contact-box h3 {
    font-size: 26px;
    margin-bottom: 18px;
    color: #111827;
    line-height: 1.2;
}

.rstm-contact-row {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.rstm-contact-row:last-child {
    border-bottom: 0;
}

.rstm-contact-label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rstm-contact-value,
.rstm-contact-value a {
    font-size: 18px;
    color: #111827;
    line-height: 1.45;
    overflow-wrap: break-word;
    word-break: break-word;
    text-decoration: none;
}

.rstm-contact-value a:hover {
    color: #7a8d1c;
}

.rstm-detail-desc { font-size: 18px; line-height: 1.75; color: #374151; margin-top: 18px; width: 100%; max-width: 100%; overflow-wrap: anywhere; word-break: normal; }

@media (max-width: 900px) {

    .rstm-item {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .rstm-left a {
        width: 100%;
        height: 240px;
    }

    .rstm-side {
        align-items: flex-start;
        text-align: left;
    }

    .rstm-price {
        display: none;
    }

    .rstm-price-mobile {
        display: block;
        font-size: 28px;
        font-weight: 700;
        color: #7a8d1c;
        margin-bottom: 14px;
    }

    .rstm-detail-main {
        grid-template-columns: 1fr;
    }

    .rstm-filter input {
        min-width: 100%;
    }

    .rstm-title {
        font-size: 24px;
    }

    .rstm-detail-title {
        font-size: 36px;
    }

    .rstm-detail-price {
        font-size: 36px;
    }

    .rstm-contact-box h3 {
        font-size: 24px;
    }

    .rstm-contact-value {
        font-size: 17px;
    }

    .rstm-detail-desc {
        font-size: 17px;
    }

    .rstm-detail-image,
    .rstm-detail-noimg {
        min-height: 240px;
    }

    .rstm-inzerce-intro h1 {
        font-size: 32px;
    }

    .rstm-inzerce-intro p {
        font-size: 16px;
    }

    .rstm-back {
        width: 100%;
        justify-content: center;
    }
}