
/* =========================
   BASE RESET
========================= */

.mcs-results-wrapper {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.mcs-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =========================
   HEADER
========================= */

.mcs-results-header {
    width: 100%;
    margin-bottom: 10px;
}

.mcs-results-count {
    text-align: right;
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* =========================
   EMPTY STATE
========================= */

.mcs-empty {
    text-align: center;
    padding: 30px;
    color: #666;
}

/* =========================
   CARD SYSTEM
========================= */

.mcs-result-item {
    width: 100%;
}

.mcs-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.mcs-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.mcs-card-inner {
    display: flex;
    flex-direction: column;
}

/* =========================
   IMAGE
========================= */

.mcs-card-image {
    flex: 0 0 100%;
    max-width: 100%;
}

.mcs-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* =========================
   CONTENT
========================= */

.mcs-card-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.mcs-title {
    font-size: 20px;
    margin: 0 0 10px;
    line-height: 1.3;
}

.mcs-title a {
    text-decoration: none;
    color: #111;
}

.mcs-title a:hover {
    text-decoration: underline;
}

/* =========================
   SPECS
========================= */

.mcs-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 16px 0;
}

.mcs-spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
}

/* =========================
   FOOTER
========================= */

.mcs-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* PRICE = 50% WIDTH (as requested) */
.mcs-price {
    font-weight: 700;
    font-size: 18px;
    color: #111;
    width: 50%;
}

/* actions container */
.mcs-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

/* =========================
   BUTTONS
========================= */

.mcs-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: 0.2s ease;
    text-align: center;
}

.mcs-btn-primary {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.mcs-btn-primary:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
}

.mcs-btn-secondary {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

.mcs-btn-secondary:hover {
    background: #5c636a;
}

/* =========================
   FORM
========================= */

.mcs-form {
    width: 100%;
    margin: 10px 0;
}

.mcs-form-fields-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.mcs-field {
    width: calc(50% - 5px);
    box-sizing: border-box;
}

.mcs-label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

.mcs-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border 0.2s ease;
}

.mcs-form-actions {
    margin: 15px 0;
    display: flex;
    flex-direction: row;
    justify-content: end;
    gap: 5px;
}

/* =========================
   PAGINATION
========================= */

.mcs-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.mcs-pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
}

.mcs-page-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
}

.mcs-page-link:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

.mcs-page-item.is-active .mcs-page-link {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    pointer-events: none;
}

/* =========================
   MEDIA QUERIES
========================= */

/* Desktop layout for card */
@media (min-width: 992px) {

    .mcs-card {
        flex-direction: row;
    }

    .mcs-card-image {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* tablet form layout */
@media (min-width: 768px) {

    .mcs-card-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .mcs-actions {
        justify-content: flex-end;
    }
}

/* mobile adjustments */
@media (max-width: 767px) {

    .mcs-btn {
        width: 100%;
    }
}

/* pagination mobile wrap */
@media (max-width: 480px) {
    .mcs-pagination-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .mcs-page-link {
        padding: 8px 10px;
        font-size: 13px;
    }
}