/* ==========================================================================
   Royal Manufacture — Responsive Rules (320px to 1920px)
   ========================================================================== */

@media (max-width: 1199px) {

    .main-header.header-1 .header-full-width .container,
    .rm-footer-container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .rm-section-pad {
        padding-left: 30px;
        padding-right: 30px;
    }

    .rm-hero-left-rail {
        left: 30px;
        bottom: 45px;
    }

    .rm-hero-right-info {
        left: 50%;
    }

    .rm-hero-trending,
    .rm-hero-counter {
        right: 30px;
    }

    .rm-row2-pad {
        padding-left: 15px;
        padding-right: 15px;
    }

    .rm-col-pad-right-100,
    .rm-col-pad-left-100 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 991px) {

    /* Mobile & Tablet Header Switch */

    .main-header.header-1 {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    /* Mobile & Tablet Hero Slider: Clean Flow Layout (Zero Overlap) */
    .rm-hero-slider {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 82px 0 28px;
    }

    .rm-hero-slides {
        position: relative;
        width: 100%;
        height: auto;
    }

    .rm-hero-slide {
        position: absolute;
        inset: 0;
        pointer-events: none;
        height: auto;
    }

    .rm-hero-slide.is-active {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        pointer-events: auto;
    }

    .rm-hero-watermark {
        top: 24%;
        left: 50%;
        font-size: clamp(42px, 14vw, 96px);
    }

    .rm-hero-stage {
        flex-direction: column;
        height: auto;
        padding: 12px 20px 10px;
        gap: 18px;
    }

    .rm-hero-center-media {
        max-width: 86%;
        max-height: none;
        transform: none;
        margin: 0 auto;
    }

    .rm-hero-main-img {
        max-height: 250px;
        width: auto;
    }

    .rm-hero-right-info {
        position: static;
        left: auto;
        bottom: auto;
        text-align: center;
        max-width: 100%;
        width: 100%;
    }

    .rm-hero-title {
        font-size: clamp(28px, 6vw, 40px);
        margin-bottom: 12px;
    }

    .rm-hero-sub-row {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        margin-bottom: 14px;
    }

    .rm-hero-left-rail {
        position: static;
        top: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        margin-top: 18px;
        padding: 0 20px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .rm-hero-catalog-btn {
        writing-mode: horizontal-tb;
        font-size: 20px;
    }

    .rm-hero-thumbs {
        flex-direction: row;
        gap: 10px;
    }

    .rm-hero-thumb-btn {
        width: 68px;
        height: 46px;
    }

    .rm-hero-trending {
        display: none;
    }

    .rm-hero-counter {
        position: static;
        width: 100%;
        justify-content: flex-end;
        padding: 10px 24px 0;
    }

    .rm-hero-counter-curr {
        font-size: 42px;
    }

    /* Home Spacers & Banners Tablet/Mobile Reset */
    .rm-space-welcome {
        padding-top: 56px;
    }

    .rm-space-210,
    .rm-space-245,
    .rm-space-75,
    .rm-space-65 {
        padding-top: 32px;
    }

    .rm-heading-title-lg {
        font-size: 34px;
    }

    .gf-banner.gf-banner-style-01.has-featured,
    .gf-banner.gf-banner-style-03.has-featured,
    .gf-banner.gf-banner-style-04,
    .gf-banner-pd-left-200.gf-banner.gf-banner-style-04 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .gf-banner.gf-banner-style-01 .gf-banner-inner,
    .gf-banner.gf-banner-style-03 .gf-banner-inner,
    .gf-banner.gf-banner-style-04 .gf-banner-inner,
    .gf-banner.gf-banner-style-01 .gf-banner-content,
    .gf-banner.gf-banner-style-03 .gf-banner-content,
    .gf-banner.gf-banner-style-04 .gf-banner-content {
        position: static !important;
        padding: 16px 4px 0;
    }

    .gf-banner .banner-featured-title {
        position: static !important;
        writing-mode: horizontal-tb !important;
        transform: none !important;
        display: inline-block;
        margin-top: 8px;
        font-size: 11px;
        letter-spacing: 0.25em;
    }

    /* Inner Page Title Banners (Shop, Category, Contact, About, Policy) */
    .rm-page-title-banner {
        padding: 72px 15px 56px;
    }

    .rm-page-title-banner::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.48);
        z-index: 1;
    }

    .rm-page-title-simple {
        padding: 42px 15px 28px;
        margin-bottom: 32px;
    }

    .rm-page-title-heading {
        font-size: 32px;
    }

    .rm-footer-wrap {
        padding-top: 60px;
        padding-bottom: 36px;
    }
}

@media (max-width: 767px) {
    .rm-section-pad {
        padding-left: 15px;
        padding-right: 15px;
    }

    .rm-footer-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .sm-text-center {
        text-align: center !important;
    }

    .sm-text-center .gf-social-icon-list {
        justify-content: center;
    }

    /* Natural Proportions for Mobile Banner Images (Zero Cropping / Distortion) */
    .gf-banner .effect-bg-image {
        max-height: 380px;
        overflow: hidden;
    }

    .gf-banner .gf-banner-bg {
        min-height: 170px;
        background-size: cover !important;
        background-position: center center !important;
    }

    .gf-banner.gf-banner-style-01 .gf-banner-bg {
        height: auto !important;
        padding-bottom: 83.28% !important;
    }

    .gf-banner .banner-title {
        font-size: 24px;
    }

    .gf-banner .banner-action {
        margin-top: 12px;
    }

    /* Mobile Product Carousel & Catalog Thumbnails */
    .rm-owl-products .product-thumb {
        aspect-ratio: 4 / 3;
        max-height: 250px;
    }

    /* About & Single Product & 404 Mobile Sizing */
    .page-about .gf-banner-style-05 img {
        max-height: 290px;
        object-fit: cover;
    }

    .rm-single-gallery-main {
        padding: 14px;
    }

    .rm-single-gallery-main img {
        max-height: 280px;
    }

    .rm-single-thumb {
        width: 64px;
        height: 64px;
    }

    .error404 main section {
        min-height: 440px !important;
        padding: 36px 15px !important;
    }

    /* Search & List View Mobile */
    .search-popup-wrap {
        padding: 24px 18px;
        margin: 20px auto;
    }

    .search-popup-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-popup-form .categories {
        border-right: none;
        border-bottom: 1px solid var(--rm-border);
        padding-bottom: 8px;
    }

    .layout-list .product-item-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .layout-list .product-thumb {
        width: 100%;
    }
}

@media (max-width: 425px) {
    .rm-hero-slider {
        padding-top: 76px;
    }

    .rm-hero-main-img {
        max-height: 205px;
    }

    .rm-hero-title {
        font-size: 26px;
    }

    .rm-hero-catalog-btn {
        font-size: 18px;
    }

    .rm-hero-thumb-btn {
        width: 58px;
        height: 40px;
    }

    .rm-heading-title-lg {
        font-size: 28px;
    }

    .rm-page-title-banner {
        padding: 60px 12px 44px;
    }

    .rm-page-title-heading {
        font-size: 26px;
    }
}