.rm-home {
    --rm-navy: #070a3d;
    --rm-red: #e71f3d;
    --rm-ink: #11152f;
    --rm-muted: #687086;
    --rm-line: #e5e8f0;
    --rm-surface: #f5f6fa;
    color: var(--rm-ink);
    background: #fff;
}

.rm-home-hero {
    position: relative;
    overflow: hidden;
    background: #eef0f5;
}
.rm-home-hero .u-slick {
    margin: 0;
}
.rm-home-hero-slide {
    position: relative;
}
.rm-home-hero-slide picture,
.rm-home-hero-slide img {
    display: block;
    width: 100%;
}
.rm-home-hero-slide img {
    height: auto;
    object-fit: cover;
}
.rm-home-hero-content {
    position: absolute;
    right: 0;
    bottom: 48px;
    left: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    flex-direction: column;
    pointer-events: none;
}
.rm-home-hero-content p {
    max-width: 430px;
    margin: 0 0 12px;
    color: #fff;
    font-size: 18px;
    text-align: right;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .65);
}
.rm-home-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 10px;
    color: #fff !important;
    background: var(--rm-red);
    font-weight: 700;
    pointer-events: auto;
    transition: transform .18s ease, background .18s ease;
}
.rm-home-primary-button:hover {
    background: #c91631;
    transform: translateY(-1px);
}

.rm-home-surface {
    padding: 30px 0 42px;
    background: var(--rm-surface);
}
.rm-home-section {
    margin-bottom: 30px;
    padding: 28px;
    border: 1px solid var(--rm-line);
    border-radius: 18px;
    background: #fff;
}
.rm-home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.rm-home-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--rm-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.rm-home-section-heading h2,
.rm-featured-offer h2 {
    margin: 0;
    color: var(--rm-ink);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
}
.rm-home-section-heading p {
    margin: 7px 0 0;
    color: var(--rm-muted);
    font-size: 15px;
}

.rm-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.rm-highlight-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    min-height: 116px;
    overflow: hidden;
    border: 1px solid var(--rm-line);
    border-radius: 14px;
    color: var(--rm-ink);
    background: #fff;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.rm-highlight-card:hover {
    border-color: #cdd2df;
    color: var(--rm-ink);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10, 15, 45, .08);
}
.rm-highlight-image {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 10px;
    background: #fafbfc;
}
.rm-highlight-image img {
    width: 100%;
    height: 90px;
    object-fit: contain;
}
.rm-highlight-copy {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    min-width: 0;
    padding: 12px;
}
.rm-highlight-copy small {
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 3px;
    color: var(--rm-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rm-highlight-copy strong {
    font-size: 14px;
    line-height: 1.25;
}
.rm-highlight-copy > span {
    margin-top: 9px;
    color: var(--rm-red);
    font-size: 12px;
    font-weight: 700;
}

.rm-featured-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 230px;
    margin-bottom: 30px;
    overflow: hidden;
    padding: 26px 42px;
    border-radius: 18px;
    background: linear-gradient(120deg, #070a3d 0%, #12175c 65%, #242c79 100%);
}
.rm-featured-offer h2,
.rm-featured-offer-copy > a,
.rm-featured-offer-copy > strong {
    color: #fff;
}
.rm-featured-offer-copy > a {
    display: block;
    max-width: 620px;
    margin: 10px 0;
    font-size: 18px;
    line-height: 1.35;
}
.rm-featured-offer-copy > strong {
    font-size: 26px;
}
.rm-featured-offer-image {
    display: flex;
    flex: 0 0 210px;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 190px;
    margin-left: 28px;
    border-radius: 16px;
    background: #fff;
}
.rm-featured-offer-image img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.rm-home-products {
    padding-bottom: 24px;
}
.rm-home-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: -4px 0 24px;
    padding: 4px 0 5px;
    scrollbar-width: thin;
}
.rm-home-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid var(--rm-line);
    border-radius: 999px;
    color: #3f465a;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.rm-home-tab:hover,
.rm-home-tab.active {
    border-color: var(--rm-navy);
    color: #fff;
    background: var(--rm-navy);
}
.rm-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.rm-product-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--rm-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.rm-product-card:hover {
    border-color: #ccd1dd;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(10, 15, 45, .08);
}
.rm-product-card-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 14px;
    background: #fff;
}
.rm-product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.rm-new-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--rm-red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}
.rm-product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0 15px 15px;
}
.rm-product-stock {
    display: inline-flex;
    align-items: center;
    margin-bottom: 7px;
    color: #098b68;
    font-size: 11px;
    font-weight: 700;
}
.rm-product-stock i {
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #13b889;
}
.rm-product-card h3 {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}
.rm-product-card h3 a {
    color: var(--rm-ink);
}
.rm-product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f1f5;
}
.rm-product-card-footer strong {
    color: var(--rm-ink);
    font-size: 16px;
    white-space: nowrap;
}
.rm-product-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--rm-navy);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.rm-product-add i {
    margin-right: 6px;
}
.rm-product-add:hover {
    background: var(--rm-red);
}
.rm-home-view-all {
    margin-top: 20px;
    text-align: center;
}
.rm-home-view-all a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 17px;
    border: 1px solid var(--rm-line);
    border-radius: 10px;
    color: var(--rm-navy);
    font-size: 13px;
    font-weight: 800;
}
.rm-home-view-all i {
    margin-left: 8px;
}

.rm-home-wide-banner {
    display: block;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 18px;
    background: #fff;
}
.rm-home-wide-banner img {
    display: block;
    width: 100%;
    height: auto;
}
.rm-service-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--rm-line);
    border-radius: 18px;
    background: #fff;
}
.rm-service-item {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 22px 18px;
    border-right: 1px solid var(--rm-line);
}
.rm-service-item:last-child {
    border-right: 0;
}
.rm-service-item > i {
    flex: 0 0 40px;
    width: 40px;
    color: var(--rm-red);
    font-size: 24px;
    text-align: center;
}
.rm-service-item span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    margin-left: 10px;
}
.rm-service-item strong {
    color: var(--rm-ink);
    font-size: 14px;
}
.rm-service-item small {
    margin-top: 3px;
    color: var(--rm-muted);
    font-size: 11px;
    line-height: 1.35;
}

@media (max-width: 1199px) {
    .rm-highlight-grid,
    .rm-service-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rm-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .rm-service-item:nth-child(2) {
        border-right: 0;
    }
    .rm-service-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--rm-line);
    }
}

@media (max-width: 767px) {
    .rm-home-hero-content {
        bottom: 24px;
        align-items: flex-end;
    }
    .rm-home-hero-content p {
        display: none;
    }
    .rm-home-primary-button {
        min-height: 38px;
        padding: 8px 14px;
        border-radius: 8px;
        font-size: 12px;
    }
    .rm-home-surface {
        padding: 16px 0 28px;
    }
    .rm-home-section {
        margin-bottom: 16px;
        padding: 18px 12px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }
    .rm-home-section-heading {
        margin-bottom: 16px;
    }
    .rm-home-section-heading h2,
    .rm-featured-offer h2 {
        font-size: 22px;
    }
    .rm-home-section-heading p {
        font-size: 13px;
        line-height: 1.4;
    }
    .rm-highlight-grid {
        gap: 8px;
    }
    .rm-highlight-card {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }
    .rm-highlight-image {
        width: 100%;
        height: 105px;
        align-self: auto;
    }
    .rm-highlight-image img {
        height: 88px;
    }
    .rm-highlight-copy {
        width: 100%;
        padding: 10px;
    }
    .rm-highlight-copy small {
        display: none;
    }
    .rm-highlight-copy strong {
        min-height: 35px;
        font-size: 12px;
    }
    .rm-highlight-copy > span {
        margin-top: 6px;
        font-size: 11px;
    }
    .rm-featured-offer {
        min-height: 180px;
        margin: 0 0 16px;
        padding: 20px;
        border-radius: 0;
    }
    .rm-featured-offer-copy > a {
        font-size: 14px;
    }
    .rm-featured-offer-copy > strong {
        font-size: 20px;
    }
    .rm-featured-offer-image {
        flex-basis: 110px;
        width: 110px;
        height: 120px;
        margin-left: 12px;
    }
    .rm-featured-offer-image img {
        width: 100px;
        height: 100px;
    }
    .rm-home-tabs {
        margin-right: -12px;
        margin-left: -12px;
        padding-right: 12px;
        padding-left: 12px;
        scrollbar-width: none;
    }
    .rm-home-tabs::-webkit-scrollbar {
        display: none;
    }
    .rm-home-tab {
        min-height: 37px;
        padding: 8px 12px;
        font-size: 11px;
    }
    .rm-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .rm-product-card-image {
        padding: 8px;
    }
    .rm-new-badge {
        top: 7px;
        left: 7px;
        padding: 4px 6px;
        font-size: 8px;
    }
    .rm-product-card-body {
        padding: 0 9px 10px;
    }
    .rm-product-card h3 {
        margin-bottom: 10px;
        font-size: 12px;
        line-height: 1.35;
    }
    .rm-product-card-footer {
        align-items: flex-end;
        flex-direction: column;
    }
    .rm-product-card-footer strong {
        align-self: flex-start;
        font-size: 14px;
    }
    .rm-product-add {
        width: 100%;
        min-height: 34px;
        padding: 7px;
        font-size: 11px;
    }
    .rm-home-wide-banner {
        margin: 0 0 16px;
        border-radius: 0;
    }
    .rm-service-strip {
        margin: 0 12px;
        grid-template-columns: minmax(0, 1fr);
        border-radius: 14px;
    }
    .rm-service-item,
    .rm-service-item:nth-child(2) {
        padding: 15px 14px;
        border-right: 0;
        border-bottom: 1px solid var(--rm-line);
    }
    .rm-service-item:last-child {
        border-bottom: 0;
    }
}
