@charset "UTF-8";

/* ==========================================
   BANNER
   ========================================== */
.rw-mower-guide-banner {
    max-width: 800px;
    margin: 0 auto 20px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    position: relative;
    overflow: hidden;
}

.rw-mower-guide-banner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #5fbb2e;
}

.rw-mower-guide-banner::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(95, 187, 46, 0.02) 100%);
    pointer-events: none;
}

.rw-mower-guide-banner__content {
    display: flex;
    align-items: center;
    padding: 14px 0;
    gap: 17px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.rw-mower-guide-banner__logo {
    flex-shrink: 0;
    padding-left: 32px;
}

.rw-mower-guide-banner__logo img {
    height: 74px;
    width: auto;
    display: block;
}

.rw-mower-guide-banner__text {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.rw-mower-guide-banner__text strong {
    display: block;
    font-size: 17px;
    font-weight: 580;
    color: #1a1a1a;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
    line-height: 1.35;
}

.rw-mower-guide-banner__text span {
    font-size: 13px;
    color: #666;
    line-height: 1.45;
    font-weight: 400;
}

.rw-mower-guide-banner__btn-wrapper {
    padding-right: 32px;
}

.rw-mower-guide-banner__btn {
    padding: 12px 32px;
    background: #5fbb2e;
    color: #fff !important;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: 0.2px;
    flex-shrink: 0;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    display: inline-block;
}

.rw-mower-guide-banner__btn:hover {
    background: #53ad28;
    color: #fff !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.rw-mower-guide-banner__btn:active {
    background: #489521;
    color: #fff !important;
}

.rw-mower-guide-banner__btn:visited,
.rw-mower-guide-banner__btn:focus {
    color: #fff !important;
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none;
}

/* ==========================================
   GUIDE CONTAINER
   ========================================== */
.mg-guide-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.mg-header {
    text-align: center;
    margin-bottom: 40px;
}

.mg-main-title {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    line-height: 1.3;
    font-weight: 500;
}

.mg-main-subtitle {
    font-size: 15px;
    color: #666;
    font-weight: 400;
    line-height: 1.5;
}

/* ==========================================
   PROGRESS BAR
   ========================================== */
.mg-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto 45px;
}

.mg-progress-track {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.mg-progress-fill {
    height: 100%;
    background: #5fbb2e;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.mg-progress-text {
    font-size: 15px;
    color: #888;
    font-weight: 600;
    white-space: nowrap;
    min-width: 36px;
    text-align: center;
}

.mg-progress-divider {
    margin: 0 2px;
    color: #ccc;
}

/* ==========================================
   QUESTION STEPS
   ========================================== */
.mg-step {
    display: none;
}

.mg-step.active {
    display: block;
}

.mg-step.active .mg-question-title,
.mg-step.active .mg-question-hint,
.mg-step.active .mg-cards-grid {
    animation: mgFadeIn 0.4s ease forwards;
}

@keyframes mgFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mg-question-title {
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    line-height: 1.35;
}

.mg-question-hint {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-bottom: 28px;
    font-weight: 400;
    transition: all 0.3s ease;
}

/* ==========================================
   CARDS GRID
   ========================================== */
.mg-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 0 auto;
}

.mg-cards-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

/* ==========================================
   CARD – IMAGE BACKGROUND + OVERLAY
   ========================================== */
.mg-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    min-height: 250px;
    background-color: #3a6b24;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}

.mg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.mg-card.selected {
    border-color: #5fbb2e;
    box-shadow: 0 8px 24px rgba(95, 187, 46, 0.3);
}

.mg-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.25) 40%,
        rgba(0, 0, 0, 0.65) 100%
    );
    transition: all 0.3s ease;
    z-index: 1;
}

.mg-card:hover .mg-card-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.04) 0%,
        rgba(0, 0, 0, 0.18) 40%,
        rgba(0, 0, 0, 0.58) 100%
    );
}

.mg-card.selected .mg-card-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.04) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

/* ==========================================
   CHECKMARK CIRCLE
   ========================================== */
.mg-card-check {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.15);
    z-index: 3;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.mg-card:hover .mg-card-check {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.25);
}

.mg-card.selected .mg-card-check {
    background: #5fbb2e;
    border-color: #5fbb2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.mg-card-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: translate(-50%, -58%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mg-card.selected .mg-card-check::after {
    opacity: 1;
}

/* ==========================================
   CARD CONTENT
   ========================================== */
.mg-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 18px;
    z-index: 2;
}

.mg-card-title {
    font-size: 17px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.1px;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.mg-card-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
    font-weight: 350;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* ==========================================
   NAVIGATION BUTTONS
   ========================================== */
.mg-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0 30px;
}

.mg-btn {
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.1px;
    min-width: 140px;
    font-family: inherit;
}

.mg-btn-back {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.mg-btn-back:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.mg-btn-next {
    background: #5fbb2e;
    color: white;
}

.mg-btn-next:hover {
    background: #4ea825;
    box-shadow: 0 2px 8px rgba(95, 187, 46, 0.3);
}

.mg-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================
   RESULTS SECTION (wider container)
   ========================================== */
.mg-results-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   BRAND FILTER
   ========================================== */
.rw-brand-filter-section {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.rw-brand-filter-title {
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.2px;
}

.rw-brand-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.rw-brand-filter-item {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #495057;
}

.rw-brand-filter-item:hover {
    border-color: #5fbb2e;
    color: #5fbb2e;
    box-shadow: 0 2px 8px rgba(95, 187, 46, 0.1);
}

.rw-brand-filter-item.active {
    background: #5fbb2e;
    color: white;
    border-color: #5fbb2e;
    box-shadow: 0 3px 10px rgba(95, 187, 46, 0.2);
}

/* ==========================================
   PRODUCT CONTAINER
   ========================================== */
.rw-product-set-container {
    position: relative;
    min-height: 400px;
    margin: 30px 0;
    max-width: 1400px;
}

.rw-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.rw-loading-spinner::after {
    content: "";
    display: block;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #5fbb2e;
    border-radius: 50%;
    animation: rw-spinner-rotate 1s linear infinite;
}

.rw-loading-text {
    color: #666;
    font-size: 14px;
    text-align: center;
}

@keyframes rw-spinner-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rw-productContainer {
    display: flex;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.5s ease-in;
    width: 100%;
}

.rw-productContainer.loaded {
    opacity: 1;
}

.rw-productContainer > div {
    width: 33.333%;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in, transform 0.5s ease-out;
}

.rw-productContainer.loaded > div {
    opacity: 1;
    transform: translateY(0);
}

.rw-productContainer .c-products__item {
    width: 100% !important;
    max-width: none !important;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.rw-productContainer .c-products__inner {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rw-productContainer .c-products__info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rw-productContainer .c-products__bottom {
    margin-top: auto;
    border-top: 1px dotted #c7c7c8;
    padding-top: 10px;
}

.rw-productContainer .c-products__name {
    flex-grow: 0;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 20px;
}

.rw-productContainer .c-products__description {
    flex-grow: 1;
    overflow: visible;
}

/* ==========================================
   PAGINATION
   ========================================== */
.rw-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 8px;
}

.rw-pagination-button {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    color: #333;
}

.rw-pagination-button:hover {
    background-color: #e8e8e8;
}

.rw-pagination-button.active {
    background-color: #5fbb2e;
    color: white;
    border-color: #5fbb2e;
}

.rw-pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================
   NO RESULTS & SMART SUGGESTIONS
   ========================================== */
.mg-no-results {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 44px 24px;
}

.mg-no-results__icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.mg-no-results__title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0 0 6px;
    line-height: 1.4;
}

.mg-no-results__desc {
    font-size: 14px;
    color: #888;
    font-weight: 400;
    margin: 0 0 28px;
    line-height: 1.6;
}

.mg-no-results__restart {
    margin-top: 28px;
}

.mg-no-results__restart button {
    background: none;
    border: none;
    color: #5fbb2e;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    text-decoration: underline;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.mg-no-results__restart button:hover {
    color: #4a9e1e;
}

.mg-suggest-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #999;
    font-size: 13px;
    font-weight: 400;
    padding: 16px 0;
}

.mg-suggest-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e9ecef;
    border-top-color: #5fbb2e;
    border-radius: 50%;
    animation: rw-spinner-rotate 0.8s linear infinite;
}

.mg-suggest-text {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    margin: 0 0 18px;
    line-height: 1.7;
}

.mg-suggest-link {
    background: none;
    border: none;
    color: #5fbb2e;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    font-weight: 400;
    text-decoration: underline;
    padding: 0;
}

.mg-suggest-link:hover {
    color: #4a9e1e;
}

.mg-suggest-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 14px;
}

.mg-suggest-btn {
    position: relative;
    padding: 11px 22px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #444;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1.4;
}

.mg-suggest-btn:hover {
    border-color: #5fbb2e;
    color: #3a8c1a;
    box-shadow: 0 2px 10px rgba(95, 187, 46, 0.1);
    transform: translateY(-1px);
}

.mg-suggest-btn--recommended {
    border-color: #5fbb2e;
    background: #fafdf7;
    color: #3a8c1a;
    font-weight: 450;
    padding-top: 24px;
}

.mg-suggest-btn--recommended:hover {
    background: #f3f9ec;
    box-shadow: 0 3px 14px rgba(95, 187, 46, 0.14);
}

.mg-suggest-badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: #5fbb2e;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.mg-suggest-btn--all {
    border-color: transparent;
    background: none;
    color: #5fbb2e;
    text-decoration: underline;
    padding: 8px 14px;
    margin-top: 4px;
    font-weight: 400;
    box-shadow: none;
}

.mg-suggest-btn--all:hover {
    color: #4a9e1e;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1200px) {
    .rw-productContainer > div {
        width: 33.333%;
    }
}

@media (max-width: 950px) {
    .mg-cards-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .rw-productContainer > div {
        width: 50%;
    }
    .rw-brand-filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 820px) {
    .rw-mower-guide-banner {
        margin: 0 10px 20px;
    }
}

@media (max-width: 768px) {
    .rw-mower-guide-banner__content {
        flex-direction: column;
        padding: 18px 28px;
        gap: 14px;
        text-align: center;
    }

    .rw-mower-guide-banner__logo {
        padding-left: 0;
    }

    .rw-mower-guide-banner__logo img {
        height: 50px;
    }

    .rw-mower-guide-banner__text {
        padding-right: 0;
    }

    .rw-mower-guide-banner__btn-wrapper {
        padding-right: 0;
        width: auto;
        display: flex;
        justify-content: center;
    }

    .rw-mower-guide-banner__btn {
        width: auto;
        padding: 13px 32px;
        text-align: center;
    }

    .rw-mower-guide-banner__text strong {
        font-size: 16px;
    }

    .rw-mower-guide-banner__text span {
        font-size: 12px;
    }

    .mg-main-title {
        font-size: 22px;
    }

    .mg-question-title {
        font-size: 20px;
    }

    .mg-cards-grid {
        grid-template-columns: 1fr;
    }

    .mg-cards-grid--3col {
        grid-template-columns: 1fr;
    }

    .mg-card {
        min-height: 180px;
    }

    .mg-nav-buttons {
        flex-direction: column-reverse;
        gap: 10px;
    }

    

    .rw-brand-filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mg-suggest-buttons {
        flex-direction: column;
        align-items: center;
    }

    .mg-suggest-btn {
        width: 100%;
        max-width: 280px;
    }

    .mg-no-results {
        padding: 32px 16px;
    }

    .mg-no-results__title {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .rw-productContainer > div {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rw-mower-guide-banner {
        margin: 0 5px 20px;
    }

    .rw-mower-guide-banner__content {
        padding: 16px 24px;
    }

    .rw-mower-guide-banner__logo img {
        height: 46px;
    }

    .rw-mower-guide-banner__text strong {
        font-size: 15px;
    }

    .rw-mower-guide-banner__text span {
        font-size: 11px;
    }

    .mg-card {
        min-height: 160px;
    }

    .mg-card-title {
        font-size: 15px;
    }

    .mg-card-desc {
        font-size: 12px;
    }

    .mg-card-content {
        padding: 16px 14px;
    }
}