/* MAS Signal OS — storefront shell. Mobile-first, RTL-safe, non-catalog. */
:root {
    --mas-ink: #0c0d10;
    --mas-ink-soft: #1a1c22;
    --mas-paper: #efe8dc;
    --mas-snow: #fffaf3;
    --mas-card: #fffcf7;
    --mas-signal: #e30613;
    --mas-signal-deep: #b10510;
    --mas-ember: #ff5a3c;
    --mas-ok: #0e9f78;
    --mas-wa: #25d366;
    --mas-mist: rgba(12, 13, 16, 0.08);
    --mas-line: rgba(12, 13, 16, 0.1);
    --mas-glass: rgba(255, 250, 243, 0.82);
    --mas-radius: 22px;
    --mas-radius-sm: 14px;
    --mas-shadow: 0 18px 40px -24px rgba(12, 13, 16, 0.45);
    --mas-header: 58px;
    --mas-dock: 72px;
    --mas-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --mas-font: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
    --mas-display: "Syne", "IBM Plex Sans Arabic", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body.mas-app {
    font-family: var(--mas-font) !important;
    background:
        radial-gradient(1200px 600px at 100% -10%, rgba(227, 6, 19, 0.08), transparent 55%),
        radial-gradient(900px 500px at -10% 20%, rgba(14, 159, 120, 0.06), transparent 50%),
        var(--mas-paper) !important;
    color: var(--mas-ink);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
    padding-bottom: 0;
}

body.mas-app a {
    color: inherit;
}

body.mas-app a:hover,
body.mas-app a:focus,
body.mas-app a:active {
    text-decoration: none;
}

body.mas-app ::selection {
    background: var(--mas-signal);
    color: #fff;
}

/* ─── App header ─── */
body.mas-app #header {
    background: transparent !important;
    box-shadow: none !important;
}

body.mas-app .top-bar {
    background: var(--mas-ink) !important;
    border: 0 !important;
    min-height: 36px;
}

body.mas-app .top-bar .nav-link,
body.mas-app .top-bar a {
    color: rgba(255, 250, 243, 0.72) !important;
    font-size: 12px !important;
    font-weight: 500;
    letter-spacing: 0.02em;
}

body.mas-app .main-menu {
    background: var(--mas-snow) !important;
    border-bottom: 1px solid var(--mas-line);
}

body.mas-app .nav-top .logo img {
    max-height: 46px;
    filter: none;
}

body.mas-app .top-search-bar {
    background: var(--mas-paper) !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--mas-mist);
}

body.mas-app .top-search-bar .input-search,
body.mas-app .top-search-bar .form-control {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-weight: 500;
}

body.mas-app .top-search-bar .btn-search {
    background: var(--mas-ink) !important;
    color: var(--mas-snow) !important;
    border-radius: 999px !important;
}

body.mas-app .nav-main .navbar {
    background: transparent !important;
}

body.mas-app .nav-main .nav-link {
    font-weight: 600 !important;
    font-size: 13.5px !important;
    color: var(--mas-ink) !important;
    padding: 14px 12px !important;
}

body.mas-app .nav-main .navbar > .navbar-nav > .nav-item:hover .nav-link:before {
    background: var(--mas-signal) !important;
    height: 3px !important;
    border-radius: 3px;
}

body.mas-app .label-nav-icon {
    font-size: 11px;
    font-weight: 600;
}

/* ─── Mobile chrome ─── */
@media (max-width: 991.98px) {
    body.mas-app {
        padding-bottom: calc(var(--mas-dock) + env(safe-area-inset-bottom, 0px));
    }

    body.mas-app .mobile-nav-container {
        min-height: calc(var(--mas-header) + env(safe-area-inset-top, 0px));
    }

    body.mas-app .nav-mobile-header {
        display: block;
        background: var(--mas-glass) !important;
        backdrop-filter: saturate(180%) blur(22px);
        -webkit-backdrop-filter: saturate(180%) blur(22px);
        border-bottom: 1px solid var(--mas-line);
        box-shadow: none !important;
        padding: env(safe-area-inset-top, 0px) 8px 6px !important;
    }

    body.mas-app .nav-mobile-header-container {
        display: flex !important;
        align-items: center;
        gap: 8px;
        min-height: var(--mas-header);
        padding: 0 4px;
    }

    body.mas-app .nav-mobile-header-container .menu-icon,
    body.mas-app .nav-mobile-header-container .mobile-logo,
    body.mas-app .nav-mobile-header-container .mobile-search,
    body.mas-app .nav-mobile-header-container .mobile-cart {
        display: flex !important;
        width: auto !important;
        height: auto !important;
        text-align: initial !important;
    }

    body.mas-app .nav-mobile-header-container .menu-icon a,
    body.mas-app .nav-mobile-header-container .mobile-search .search-icon,
    body.mas-app .nav-mobile-header-container .mobile-cart a {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        background: var(--mas-ink);
        color: var(--mas-snow) !important;
        padding: 0 !important;
        font-size: 18px;
        box-shadow: var(--mas-shadow);
    }

    body.mas-app .nav-mobile-header-container .mobile-search .search-icon {
        background: var(--mas-card);
        color: var(--mas-ink) !important;
        border: 1px solid var(--mas-line);
        box-shadow: none;
    }

    body.mas-app .nav-mobile-header-container .mobile-logo {
        flex: 1;
        justify-content: center;
    }

    body.mas-app .nav-mobile-header-container .mobile-logo .logo {
        max-height: 36px;
        max-width: 128px;
    }

    body.mas-app .nav-mobile-header-container .mobile-cart .notification {
        top: 2px !important;
        inset-inline-end: 2px;
        background: var(--mas-signal) !important;
        border: 2px solid var(--mas-snow);
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        font-weight: 700;
    }

    body.mas-app .mobile-search-form {
        display: block !important;
        padding: 0 10px 10px !important;
        background: transparent !important;
    }

    body.mas-app .mobile-search-form.top-search-bar {
        background: var(--mas-card) !important;
        border-radius: 18px !important;
        margin: 0 10px 10px !important;
        padding: 4px 6px !important;
        box-shadow: 0 10px 30px -20px rgba(12, 13, 16, 0.4);
    }

    body.mas-app .mobile-search-form .left {
        display: none !important;
    }

    body.mas-app .mobile-search-form .right {
        width: 100% !important;
        padding: 0 !important;
    }

    body.mas-app .mobile-search-form .input-search {
        height: 44px !important;
        border-radius: 14px !important;
        padding-inline: 16px 44px !important;
        font-size: 15px !important;
        background: transparent !important;
    }

    body.mas-app .mobile-search-form .btn-search {
        background: var(--mas-signal) !important;
        width: 38px;
        height: 38px;
        border-radius: 12px !important;
        inset-inline-end: 4px !important;
        top: 50% !important;
        transform: translateY(-50%);
        right: auto !important;
    }

    body.mas-app #wrapper,
    body.mas-app .index-wrapper {
        padding-top: 8px;
    }

    body.mas-app .container {
        padding-inline: 14px;
        max-width: 100%;
    }

    body.mas-app .section-slider {
        margin-top: 4px;
    }

    body.mas-app .index-main-slider {
        display: none !important;
    }

    body.mas-app .index-mobile-slider {
        padding: 0 14px !important;
        margin-bottom: 8px;
    }

    body.mas-app .index-mobile-slider .slider-container,
    body.mas-app .index-mobile-slider .main-slider,
    body.mas-app .index-mobile-slider .item {
        border-radius: 28px !important;
        overflow: hidden;
        min-height: 210px !important;
    }

    body.mas-app .index-mobile-slider .item {
        background-size: cover !important;
        background-position: center !important;
    }

    body.mas-app .main-slider-nav button {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(12, 13, 16, 0.55) !important;
        color: #fff !important;
        border: 0;
    }

    body.mas-app .socialfloat,
    body.mas-app .scrollup,
    body.mas-app .carousel-wrap {
        display: none !important;
    }
}

/* ─── Hero ─── */
.mas-hero {
    position: relative;
    margin: 8px 0 18px;
    padding: 22px 20px 20px;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(135deg, #14161c 0%, #0c0d10 58%, #3a0a10 140%);
    color: var(--mas-snow);
    min-height: 148px;
}

.mas-hero:before {
    content: "";
    position: absolute;
    inset: -40% auto auto 40%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.55), transparent 68%);
    pointer-events: none;
}

.mas-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -18deg,
        transparent,
        transparent 11px,
        rgba(255, 250, 243, 0.03) 11px,
        rgba(255, 250, 243, 0.03) 12px
    );
    pointer-events: none;
}

.mas-hero-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mas-ember);
    margin: 0 0 8px;
    font-family: var(--mas-display);
}

.mas-hero-kicker:before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mas-ok);
    box-shadow: 0 0 0 6px rgba(14, 159, 120, 0.22);
    animation: mas-pulse 2.2s var(--mas-ease) infinite;
}

.mas-hero-title {
    position: relative;
    z-index: 1;
    font-family: var(--mas-display);
    font-size: clamp(1.45rem, 6vw, 2.1rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 6px;
    letter-spacing: -0.03em;
}

.mas-hero-sub {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 13.5px;
    opacity: 0.78;
    max-width: 34ch;
}

.mas-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.mas-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 250, 243, 0.1);
    border: 1px solid rgba(255, 250, 243, 0.14);
    color: var(--mas-snow);
    font-size: 12px;
    font-weight: 600;
}

@keyframes mas-pulse {
    50% { box-shadow: 0 0 0 10px rgba(14, 159, 120, 0); }
}

/* ─── Story chips ─── */
.mas-stories {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    margin: 0 -2px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.mas-stories::-webkit-scrollbar {
    display: none;
}

.mas-story {
    flex: 0 0 auto;
    width: 76px;
    text-align: center;
    scroll-snap-align: start;
    color: var(--mas-ink) !important;
}

.mas-story-ring {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 6px;
    border-radius: 22px;
    background:
        conic-gradient(from 210deg, var(--mas-signal), #ff8a65, var(--mas-ok), var(--mas-signal));
    padding: 2px;
}

.mas-story-ring span,
.mas-story-ring img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: var(--mas-card);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
    color: var(--mas-signal);
    object-fit: cover;
    border: 2px solid var(--mas-paper);
}

.mas-story-name {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    max-width: 76px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Bento categories ─── */
body.mas-app .featured-categories .card-columns,
body.mas-app .mas-bento {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr;
    grid-auto-rows: 118px;
    gap: 10px;
    column-count: unset !important;
}

body.mas-app .featured-categories .card,
body.mas-app .mas-bento-tile {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 24px !important;
    overflow: hidden;
    background-color: var(--mas-ink-soft) !important;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: var(--mas-shadow);
    position: relative;
    min-height: 118px;
}

body.mas-app .featured-categories .card:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: span 2;
    min-height: 246px;
}

body.mas-app .featured-categories .card:nth-child(2),
body.mas-app .featured-categories .card:nth-child(3) {
    min-height: 118px;
}

body.mas-app .featured-categories .card:nth-child(4) {
    grid-column: 1 / -1;
}

body.mas-app .featured-categories .card:nth-child(5),
body.mas-app .featured-categories .card:nth-child(6) {
    min-height: 140px;
}

body.mas-app .featured-categories .card a {
    display: flex !important;
    align-items: flex-end;
    height: 100%;
    min-height: inherit;
    padding: 0 !important;
}

body.mas-app .featured-categories .card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(12, 13, 16, 0.82) 100%);
    pointer-events: none;
}

body.mas-app .featured-categories .card .caption {
    position: relative;
    z-index: 2;
    width: 100%;
    background: none !important;
    padding: 14px 14px 12px !important;
    text-align: start !important;
}

body.mas-app .featured-categories .card .caption span {
    display: inline-flex;
    max-width: 100%;
    background: var(--mas-snow) !important;
    color: var(--mas-ink) !important;
    border-radius: 999px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    white-space: normal !important;
    box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.7);
}

@media (min-width: 768px) {
    body.mas-app .featured-categories .card-columns,
    body.mas-app .mas-bento {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 160px;
        gap: 14px;
    }

    body.mas-app .featured-categories .card:nth-child(1) {
        grid-column: span 3;
        grid-row: span 2;
    }

    body.mas-app .featured-categories .card:nth-child(2) {
        grid-column: span 3;
    }

    body.mas-app .featured-categories .card:nth-child(3),
    body.mas-app .featured-categories .card:nth-child(4) {
        grid-column: span 1;
        grid-column: span 3;
    }

    body.mas-app .featured-categories .card:nth-child(n + 3) {
        grid-column: span 2;
    }
}

/* ─── Sections ─── */
body.mas-app .index-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

body.mas-app .section {
    margin-bottom: 28px !important;
}

body.mas-app .section-header,
body.mas-app .section > .title,
body.mas-app .section-latest-products > .title,
body.mas-app .section-blog > .title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px !important;
}

body.mas-app .mas-see-all {
    font-family: var(--mas-font);
    font-size: 13px;
    font-weight: 700;
    color: var(--mas-signal) !important;
    white-space: nowrap;
    flex-shrink: 0;
}

body.mas-app .mas-see-all-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--mas-ink);
    color: var(--mas-snow) !important;
}

body.mas-app .product-item .price,
body.mas-app .product-item .price-free {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(227, 6, 19, 0.08);
    color: var(--mas-signal) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

body.mas-app .product-item .discount-original-price {
    font-size: 11px;
    opacity: 0.55;
    margin-inline-end: 6px;
}

body.mas-app .mas-chip i {
    font-size: 15px;
}

body.mas-app .section-categories .section-header {
    margin-bottom: 10px !important;
}

@media (max-width: 991.98px) {
    body.mas-app .index-products-slider-nav {
        display: none !important;
    }

    body.mas-app .section-category-products .category-slider-container {
        overflow: visible;
    }

    body.mas-app .section-category-products .row-product.slick-initialized .slick-list {
        overflow: visible;
        padding-bottom: 4px;
    }

    body.mas-app .mas-hero br {
        display: none;
    }
}

@media (min-width: 992px) {
    body.mas-app .mas-stories {
        display: none;
    }
}

body.mas-app .section-header .title,
body.mas-app .section > .title,
body.mas-app .section-latest-products > h3.title,
body.mas-app .section-blog > h3.title,
body.mas-app .section-header .title a,
body.mas-app .section > .title a {
    font-family: var(--mas-display);
    font-size: 1.28rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    color: var(--mas-ink) !important;
    margin: 0 !important;
}

body.mas-app .title-exp {
    display: none !important;
}

body.mas-app .index-products-slider-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mas-ink) !important;
    color: var(--mas-snow) !important;
    border: 0;
    box-shadow: var(--mas-shadow);
}

/* ─── Product cards ─── */
body.mas-app .col-product {
    padding: 6px !important;
}

body.mas-app .row-product {
    margin-inline: -6px !important;
}

body.mas-app .product-item {
    background: var(--mas-card);
    border-radius: var(--mas-radius);
    overflow: hidden;
    border: 1px solid rgba(12, 13, 16, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, var(--mas-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s var(--mas-ease), box-shadow 0.35s var(--mas-ease);
}

body.mas-app .product-item:active {
    transform: scale(0.975);
}

body.mas-app .product-item .img-product-container {
    border-radius: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(227, 6, 19, 0.08), transparent 40%),
        linear-gradient(180deg, #fff 0%, #f3eee6 100%);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

body.mas-app .product-item .img-product {
    object-fit: contain;
    mix-blend-mode: multiply;
    padding: 10px;
    transition: transform 0.55s var(--mas-ease);
}

body.mas-app .product-item:hover .img-product {
    transform: scale(1.06) rotate(-1deg);
}

body.mas-app .product-item-options {
    opacity: 1 !important;
    visibility: visible !important;
    inset-inline-end: 10px;
    top: 10px;
}

body.mas-app .product-item-options .item-option {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--mas-glass) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

body.mas-app .item-wishlist-button {
    display: none !important;
}

body.mas-app .product-item .item-details {
    padding: 10px 12px 14px !important;
    text-align: start !important;
}

body.mas-app .product-item .product-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    min-height: 2.9em;
    margin: 0 0 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.mas-app .product-item .product-title a {
    color: var(--mas-ink) !important;
}

body.mas-app .product-item .product-user,
body.mas-app .product-item-rating {
    display: none !important;
}

body.mas-app .product-item .item-meta {
    margin-top: auto;
}

body.mas-app .a-meta-request-quote,
body.mas-app .item-meta .a-meta-request-quote {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--mas-ink) !important;
    color: var(--mas-snow) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-bottom: 0 !important;
}

body.mas-app .a-meta-request-quote:hover {
    background: var(--mas-signal) !important;
    color: #fff !important;
}

body.mas-app .badge-discount {
    background: var(--mas-signal) !important;
    border-radius: 10px !important;
    font-weight: 800;
}

@media (max-width: 575.98px) {
    body.mas-app .section-category-products .category-slider-container {
        margin-inline: -14px;
        padding-inline: 14px;
    }

    body.mas-app .section-category-products .slick-list {
        overflow: visible;
    }

    body.mas-app .section-category-products .col-product {
        padding-inline-end: 10px !important;
    }
}

/* ─── Blog ─── */
body.mas-app .blog-item {
    background: var(--mas-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--mas-line);
    height: 100%;
    box-shadow: var(--mas-shadow);
}

body.mas-app .blog-item-img {
    border-radius: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

body.mas-app .blog-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.05);
}

body.mas-app .blog-post-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    padding: 12px 14px 0;
    line-height: 1.45;
}

body.mas-app .blog-post-meta {
    padding: 6px 14px;
    font-size: 11px;
    opacity: 0.65;
}

body.mas-app .blog-post-description {
    padding: 0 14px 16px;
    font-size: 13px;
    color: rgba(12, 13, 16, 0.7);
}

@media (max-width: 991.98px) {
    body.mas-app .blog-slider-container .blog-slider {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    body.mas-app .blog-slider-container .blog-item,
    body.mas-app .blog-slider .slick-slide {
        flex: 0 0 82%;
        scroll-snap-align: start;
        max-width: 82%;
    }

    body.mas-app .blog-slider-nav {
        display: none;
    }
}

/* ─── Product listing ─── */
body.mas-app .nav-breadcrumb .breadcrumb {
    background: transparent;
    padding: 8px 0;
    font-size: 12px;
}

body.mas-app .product-list-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

body.mas-app .product-list-title {
    font-family: var(--mas-display);
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 1.55rem !important;
    width: 100%;
}

body.mas-app .btn-filter-products-mobile {
    border-radius: 14px !important;
    min-height: 44px;
    font-weight: 700;
    background: var(--mas-ink) !important;
    border-color: var(--mas-ink) !important;
}

body.mas-app .sort-select .custom-select {
    border-radius: 14px;
    min-height: 44px;
    border-color: var(--mas-line);
    background-color: var(--mas-card);
}

body.mas-app .product-item-filter,
body.mas-app .filter-reset,
body.mas-app .filter-list {
    background: var(--mas-card);
    border-radius: 20px;
    border: 1px solid var(--mas-line);
}

/* ─── Product details ─── */
body.mas-app .product-details-container {
    background: var(--mas-card);
    border-radius: 28px;
    padding: 12px;
    border: 1px solid var(--mas-line);
    box-shadow: var(--mas-shadow);
}

body.mas-app .product-content-details .product-title {
    font-family: var(--mas-display);
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    line-height: 1.35;
}

body.mas-app .product-content-details .meta {
    opacity: 0.7;
    font-size: 12px;
}

body.mas-app .btn-contact-seller,
body.mas-app .product-add-to-cart-container .button-container .btn,
body.mas-app .btn-md.btn-custom,
body.mas-app button.btn-custom {
    border-radius: 16px !important;
    min-height: 48px;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

body.mas-app .product-add-to-cart-container .btn-product-cart,
body.mas-app #form_request_quote .btn,
body.mas-app .button-container .btn-custom {
    background: var(--mas-signal) !important;
    border-color: var(--mas-signal) !important;
    width: 100%;
}

body.mas-app .btn-wishlist {
    border-radius: 16px;
    min-height: 44px;
}

body.mas-app .product-description .nav-tabs {
    border: 0;
    gap: 6px;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}

body.mas-app .product-description .nav-tabs .nav-link {
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--mas-card);
    color: var(--mas-ink);
    font-weight: 700;
    white-space: nowrap;
    padding: 8px 14px;
}

body.mas-app .product-description .nav-tabs .nav-link.active {
    background: var(--mas-ink) !important;
    color: var(--mas-snow) !important;
}

@media (max-width: 991.98px) {
    body.mas-app.mas-product-page .product-add-to-cart-container {
        position: sticky;
        bottom: calc(var(--mas-dock) + env(safe-area-inset-bottom, 0px) + 8px);
        z-index: 40;
        background: var(--mas-glass);
        backdrop-filter: blur(16px);
        border: 1px solid var(--mas-line);
        border-radius: 20px;
        padding: 8px;
        margin-top: 12px;
        box-shadow: 0 12px 40px -16px rgba(12, 13, 16, 0.55);
    }

    body.mas-app.mas-product-page .number-spinner {
        display: none;
    }
}

/* ─── Drawer ─── */
body.mas-app .nav-mobile {
    background: var(--mas-snow) !important;
    border-start-start-radius: 28px;
    border-end-start-radius: 28px;
    box-shadow: -20px 0 50px -24px rgba(12, 13, 16, 0.55);
}

body.mas-app .nav-mobile-inner {
    padding-top: env(safe-area-inset-top, 12px);
}

body.mas-app .mobile-nav-buttons {
    display: none !important;
}

body.mas-app .nav-mobile-links .nav-link {
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 14px 4px !important;
    border-bottom: 1px solid var(--mas-line);
}

body.mas-app .nav-mobile-footer {
    display: none;
}

.mas-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px 16px;
}

.mas-drawer-head strong {
    font-family: var(--mas-display);
    font-size: 1.2rem;
}

.mas-drawer-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 14px;
    background: var(--mas-ink);
    color: var(--mas-snow);
}

/* ─── Auth / modals ─── */
@media (max-width: 991.98px) {
    body.mas-app .modal-dialog.login-modal {
        margin: 0;
        min-height: 100%;
        display: flex;
        align-items: flex-end;
    }

    body.mas-app .login-modal .modal-content,
    body.mas-app .modal-newsletter .modal-content {
        border: 0;
        border-radius: 28px 28px 0 0;
        padding-bottom: env(safe-area-inset-bottom, 16px);
    }
}

body.mas-app .auth-box .title {
    font-family: var(--mas-display);
    font-weight: 800;
}

body.mas-app .auth-form-input,
body.mas-app .form-control {
    border-radius: 14px !important;
    min-height: 48px;
    border-color: var(--mas-line) !important;
    background: var(--mas-snow);
}

body.mas-app .btn-custom {
    background: var(--mas-signal) !important;
    border-color: var(--mas-signal) !important;
}

/* ─── Footer ─── */
body.mas-app #footer.mas-footer {
    background:
        radial-gradient(900px 420px at 50% -20%, rgba(227, 6, 19, 0.18), transparent 60%),
        linear-gradient(180deg, #121318 0%, var(--mas-ink) 100%) !important;
    color: rgba(255, 250, 243, 0.82);
    margin-top: 32px;
    border-top: 0;
    padding: 0;
    border-radius: 32px 32px 0 0;
    overflow: hidden;
}

body.mas-app .mas-footer-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    text-align: center;
}

body.mas-app .mas-footer-brand {
    margin-bottom: 18px;
}

body.mas-app .mas-footer-logo img {
    max-height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

body.mas-app .mas-footer-tagline {
    margin: 10px auto 0;
    max-width: 36ch;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 250, 243, 0.58);
}

body.mas-app .mas-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

body.mas-app .mas-footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 250, 243, 0.06);
    border: 1px solid rgba(255, 250, 243, 0.08);
    color: rgba(255, 250, 243, 0.86) !important;
    font-size: 12.5px;
    font-weight: 600;
    transition: background 0.25s var(--mas-ease), border-color 0.25s var(--mas-ease);
}

body.mas-app .mas-footer-nav a:hover {
    background: rgba(255, 250, 243, 0.12);
    border-color: rgba(255, 250, 243, 0.16);
    color: #fff !important;
}

body.mas-app .mas-footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

body.mas-app .mas-footer-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(255, 250, 243, 0.08);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
}

body.mas-app .mas-footer-chip-wa {
    background: rgba(37, 211, 102, 0.16);
    color: #b8ffd6 !important;
}

body.mas-app .mas-footer-social {
    margin-bottom: 18px;
}

body.mas-app .mas-footer-social ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.mas-app .mas-footer-social ul li {
    margin: 0;
}

body.mas-app .mas-footer-social ul li a {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 250, 243, 0.08);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: rgba(255, 250, 243, 0.88) !important;
    font-size: 17px;
    transition: transform 0.25s var(--mas-ease), background 0.25s var(--mas-ease);
}

body.mas-app .mas-footer-social ul li a:hover {
    transform: translateY(-2px);
    background: rgba(255, 250, 243, 0.14);
}

body.mas-app .mas-footer-newsletter {
    max-width: 420px;
    margin: 0 auto 18px;
}

body.mas-app .mas-footer-newsletter-label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 250, 243, 0.45);
}

body.mas-app .mas-footer-newsletter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 250, 243, 0.06);
    border: 1px solid rgba(255, 250, 243, 0.08);
}

body.mas-app .mas-footer-newsletter-input {
    flex: 1;
    min-height: 44px !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding-inline: 12px !important;
    box-shadow: none !important;
}

body.mas-app .mas-footer-newsletter-input::placeholder {
    color: rgba(255, 250, 243, 0.38);
}

body.mas-app .mas-footer-newsletter-btn {
    min-height: 44px;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--mas-signal) !important;
    color: #fff !important;
    font-weight: 700;
    white-space: nowrap;
}

body.mas-app .mas-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 250, 243, 0.08);
}

body.mas-app .mas-footer-copy {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 250, 243, 0.42);
}

body.mas-app .mas-footer-payments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    opacity: 0.72;
}

body.mas-app .mas-footer-payments img {
    height: 22px;
    width: auto;
    filter: grayscale(1) brightness(1.4);
}

body.mas-app #footer h1,
body.mas-app footer > h1 {
    display: none !important;
}

@media (max-width: 991.98px) {
    body.mas-app #footer.mas-footer {
        border-radius: 24px 24px 0 0;
        margin-bottom: 0;
    }

    body.mas-app .mas-footer-shell {
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    body.mas-app .mas-footer-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
        margin-inline: -4px;
        padding-inline: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    body.mas-app .mas-footer-nav::-webkit-scrollbar {
        display: none;
    }

    body.mas-app .mas-footer-nav a {
        flex: 0 0 auto;
    }

    body.mas-app .mas-footer-newsletter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    body.mas-app .mas-footer-newsletter-btn {
        width: 100%;
    }
}

@media (min-width: 992px) {
    body.mas-app .mas-footer-shell {
        padding: 40px 24px 24px;
    }

    body.mas-app .mas-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: start;
    }

    body.mas-app .mas-footer-copy {
        text-align: start;
    }
}

/* ─── Dock ─── */
.mas-dock {
    display: none;
}

@media (max-width: 991.98px) {
    .mas-dock {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        inset-inline: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 10050;
        height: var(--mas-dock);
        padding: 8px 6px 6px;
        border-radius: 26px;
        background: rgba(12, 13, 16, 0.92);
        color: var(--mas-snow);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: 0 18px 40px -18px rgba(12, 13, 16, 0.8);
        align-items: end;
    }

    .mas-dock a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: rgba(255, 250, 243, 0.62) !important;
        font-size: 10px;
        font-weight: 700;
        min-height: 48px;
        text-decoration: none !important;
    }

    .mas-dock a.is-active,
    .mas-dock a:active {
        color: #fff !important;
    }

    .mas-dock svg {
        width: 22px;
        height: 22px;
    }

    .mas-dock .mas-dock-wa {
        transform: translateY(-18px);
        background: linear-gradient(180deg, #3ee07a, var(--mas-wa));
        color: #073b1d !important;
        width: 58px;
        height: 58px;
        border-radius: 22px;
        margin: 0 auto;
        box-shadow: 0 12px 24px -8px rgba(37, 211, 102, 0.8);
        min-height: 58px;
        gap: 0;
        font-size: 0;
    }

    .mas-dock .mas-dock-wa svg {
        width: 28px;
        height: 28px;
        fill: #073b1d;
    }
}

/* ─── Desktop contact stack ─── */
@media (min-width: 992px) {
    body.mas-app .socialfloat {
        left: auto !important;
        right: 18px !important;
        top: auto !important;
        bottom: 28px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        background: var(--mas-ink);
        padding: 8px;
        border-radius: 22px;
        box-shadow: var(--mas-shadow);
        z-index: 9999;
    }

    body.mas-app .socialfloat .fbtn {
        width: 44px !important;
        height: 44px !important;
        border-radius: 14px;
        display: grid;
        place-items: center;
        color: #fff !important;
    }

    body.mas-app .socialfloat .fbtn.facebook {
        background: #1877f2;
    }

    body.mas-app .socialfloat .fbtn.gplus {
        background: #ff0000;
    }

    body.mas-app .socialfloat .fbtn.twitter {
        background: #0ea5e9;
    }

    body.mas-app .socialfloat .fbtn.linkedin {
        background: var(--mas-wa);
    }

    body.mas-app .socialfloat .fbtn i {
        font-size: 18px;
        line-height: 1;
    }

    body.mas-app .mas-hero {
        padding: 36px 40px;
        min-height: 220px;
        border-radius: 36px;
    }

    body.mas-app #wrapper.index-wrapper > .container,
    body.mas-app .index-wrapper > .container {
        max-width: 1240px;
    }

    body.mas-app .product-item:hover {
        transform: translateY(-6px);
    }
}

/* ─── Ads / banners ─── */
body.mas-app .row-bn img,
body.mas-app .index-banners img,
body.mas-app .bn-item img {
    border-radius: 22px;
    overflow: hidden;
}

body.mas-app .index-banners .col,
body.mas-app .index_bn_wrap {
    margin-bottom: 10px;
}

/* ─── Cookies / misc ─── */
body.mas-app .cookies-warning {
    border-radius: 18px;
    inset-inline: 12px;
    bottom: calc(var(--mas-dock) + 24px);
    background: var(--mas-ink);
    color: var(--mas-snow);
}

body.mas-app .overlay-bg,
body.mas-app #overlay_bg {
    backdrop-filter: blur(6px);
}

/* Hide leftover SEO keyword blocks in footer */
body.mas-app footer > h1 {
    display: none !important;
}
