/* ==========================================================================
   AlSalam Premium Layer
   1) Refined desktop look   2) Mobile "app" experience (PWA style shell)
   Loaded after style.css - Developed by ProCode (www.techprocode.com)
========================================================================== */

:root {
    --gold-grad: linear-gradient(135deg, #EAD58E 0%, #C9A84C 48%, #A8841F 100%);
    --dark-grad: linear-gradient(160deg, #2A2016 0%, #1A1510 60%, #120E0A 100%);
    --app-bar-h: 56px;
    --tab-h: 66px;
    --safe-t: env(safe-area-inset-top, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- App-only chrome is hidden on desktop ---------- */
.app-bar, .app-tabs, .app-sheet, .app-sheet__backdrop, .app-quick { display: none; }

/* The theme JS adds .fade-out to the preloader (style.css only styled .loaded) */
.preloader.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Global polish ---------- */
html { scroll-padding-top: 110px; }
body { text-rendering: optimizeLegibility; }
::selection { background: var(--color-gold); color: #1A1510; }
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; border-radius: 6px; }

.scroll-progress {
    position: fixed; top: 0; right: 0; height: 3px; width: 0;
    background: var(--gold-grad); z-index: 9999; pointer-events: none;
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.6);
}

/* Gold gradient buttons with a soft shine */
.btn { border-radius: 14px; letter-spacing: 0.1px; }
.btn--gold, .btn--primary {
    background: var(--gold-grad);
    color: #1A1510;
    border: 0;
    box-shadow: 0 6px 18px rgba(201, 168, 76, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    position: relative; overflow: hidden;
}
.btn--primary { color: #1A1510; }
.btn--gold:hover, .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(201, 168, 76, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #1A1510;
}
.btn--gold::after, .btn--primary::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 60%; right: -80%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg); transition: right 0.7s var(--ease-out); pointer-events: none;
}
.btn--gold:hover::after, .btn--primary:hover::after { right: 130%; }
.btn--secondary { backdrop-filter: blur(6px); }

/* Product call-to-action (no prices are shown on the site) */
.product-card__cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; border-radius: 14px; font-weight: 800; }
.product-card__cta-wrap .product-card__cta { margin-top: 0; }

/* Section headings */
.section-label {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 18px; border-radius: 999px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.35);
    color: var(--color-primary-dark);
    font-weight: 800; letter-spacing: 0.2px;
}
.section-label::before, .section-label::after, .text-center .section-label::before, .text-center .section-label::after { display: none !important; }
.section-title { font-weight: 900; letter-spacing: -0.2px; }
.section-title span {
    background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.showcase .section-title span, .cta .section-title span { -webkit-text-fill-color: transparent; }
.text-center .section-desc { position: relative; padding-bottom: 22px; }
.text-center .section-desc::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 64px; height: 3px; transform: translateX(-50%);
    background: var(--gold-grad); border-radius: 3px;
}

/* ==========================================================================
   DESKTOP REFINEMENTS
========================================================================== */
@media (min-width: 993px) {
    .header-top { padding: 6px 0; background: var(--dark-grad); border-bottom: 1px solid rgba(201, 168, 76, 0.18); }
    .header-main { background: rgba(253, 248, 240, 0.82); box-shadow: 0 1px 0 rgba(139, 105, 20, 0.08); }
    .site-header.scrolled .header-main { background: rgba(253, 248, 240, 0.94); box-shadow: 0 10px 34px rgba(44, 36, 24, 0.1); }
    .site-logo__icon { background: var(--gold-grad); color: #1A1510; box-shadow: 0 6px 16px rgba(201, 168, 76, 0.4); border-radius: 14px; }
    .site-logo__name { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-weight: 900; }

    .main-nav__link { border-radius: 999px; padding: 8px 16px; font-weight: 700; transition: all 0.25s ease; }
    .main-nav__link:hover { background: rgba(201, 168, 76, 0.14); color: var(--color-primary-dark); }
    .main-nav__link.active { background: rgba(201, 168, 76, 0.2); color: var(--color-primary-dark); }
    .main-nav__link::after { display: none; }

    /* Hero */
    .hero-slide__overlay {
        background:
            linear-gradient(180deg, rgba(14, 11, 8, 0.55) 0%, rgba(14, 11, 8, 0.15) 40%, rgba(14, 11, 8, 0.7) 100%),
            linear-gradient(270deg, rgba(14, 11, 8, 0.78) 0%, rgba(14, 11, 8, 0.15) 70%);
    }
    .hero-slide .hero__title { text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45); letter-spacing: -0.5px; }
    .hero-slide .hero__badge { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.22); }
    .hero--slider::after {
        content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 3; pointer-events: none;
        background: linear-gradient(180deg, transparent, var(--color-cream));
    }
    .hero-slider-pagination { z-index: 5; }
    .hero-slide .btn--secondary { color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.5); }
    .hero-slide .btn--secondary:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

    /* Features */
    .feature-card {
        border: 1px solid rgba(201, 168, 76, 0.18); border-radius: 22px;
        background: linear-gradient(180deg, #fff 0%, #FDF8F0 100%);
        transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
    }
    .feature-card:hover { transform: translateY(-8px); box-shadow: 0 22px 50px rgba(139, 105, 20, 0.15); border-color: rgba(201, 168, 76, 0.55); }
    .feature-card__icon { background: var(--gold-grad) !important; color: #1A1510 !important; box-shadow: 0 10px 22px rgba(201, 168, 76, 0.35); border-radius: 18px; }

    /* Categories */
    .category-card { border-radius: 26px; box-shadow: 0 14px 40px rgba(26, 21, 16, 0.18); transition: transform 0.5s var(--ease-out), box-shadow 0.5s; }
    .category-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(26, 21, 16, 0.28); }
    .category-card::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(233, 200, 106, 0.0); border-radius: 18px; transition: border-color 0.4s; pointer-events: none; z-index: 3; }
    .category-card:hover::after { border-color: rgba(233, 200, 106, 0.55); }

    /* Product cards */
    .product-card {
        border-radius: 22px; border: 1px solid rgba(139, 105, 20, 0.1); background: #fff;
        box-shadow: 0 6px 24px rgba(44, 36, 24, 0.07); overflow: hidden;
        transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
    }
    .product-card:hover { transform: translateY(-10px); box-shadow: 0 28px 60px rgba(44, 36, 24, 0.18); }
    .product-card__image { border-radius: 0; }
    .product-card__badge { border-radius: 999px; font-weight: 800; backdrop-filter: blur(6px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
    .product-card__badge--new { background: rgba(26, 21, 16, 0.88); color: var(--color-gold-light); }
    .product-card__badge--sale { background: linear-gradient(135deg, #D95B43, #B73A27); color: #fff; }
    .product-card__action { border-radius: 14px; backdrop-filter: blur(8px); }
    .product-card__category { color: var(--color-primary); font-weight: 800; }

    /* Showcase / testimonials / CTA */
    .showcase__item { border-radius: 22px; overflow: hidden; }
    .testimonial-card { border-radius: 24px; border: 1px solid rgba(201, 168, 76, 0.2); box-shadow: 0 12px 36px rgba(44, 36, 24, 0.08); position: relative; }
    .testimonial-card::before {
        content: '\201D'; position: absolute; top: 6px; left: 22px; font-family: 'Amiri', serif; font-size: 5.5rem; line-height: 1;
        background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: 0.55;
    }
    .cta { background: var(--dark-grad); position: relative; overflow: hidden; }
    .cta::before {
        content: ''; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
        background: radial-gradient(circle at 15% 20%, rgba(201, 168, 76, 0.22), transparent 45%), radial-gradient(circle at 85% 80%, rgba(201, 168, 76, 0.16), transparent 40%);
    }

    /* Inner pages */
    .page-header { background: var(--dark-grad); border-bottom: 1px solid rgba(201, 168, 76, 0.25); }
    .page-header__title { background: linear-gradient(135deg, #fff 30%, #EAD58E); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
    .contact-form, .about-content { border-radius: 24px; }

    /* Footer */
    .site-footer { background: var(--dark-grad); position: relative; }
    .site-footer::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--gold-grad); }
    .footer__links a { position: relative; transition: padding 0.25s ease, color 0.25s ease; }
    .footer__links a:hover { padding-right: 10px; color: var(--color-gold-light); }

    .footer__bottom { padding-left: 86px; }

    /* Floating buttons */
    .whatsapp-float__btn { background: linear-gradient(135deg, #3EE07F, #1FAF55); box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45); }
    .back-to-top { background: var(--gold-grad); color: #1A1510; border-radius: 16px; box-shadow: 0 10px 26px rgba(201, 168, 76, 0.4); }
}

/* ==========================================================================
   MOBILE "APP" EXPERIENCE  (phones & tablets in portrait)
========================================================================== */
@media (max-width: 992px) {
    :root { --header-height: 0px; }

    html { scroll-padding-top: calc(var(--app-bar-h) + var(--safe-t) + 10px); scroll-behavior: auto; }
    body {
        padding-top: calc(var(--app-bar-h) + var(--safe-t));
        padding-bottom: calc(var(--tab-h) + var(--safe-b) + 6px);
        background: #F7F1E6;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        overscroll-behavior-y: none;
        font-size: 15px;
    }
    html, body { overflow-x: clip; max-width: 100%; }
    a, button { -webkit-user-select: none; user-select: none; touch-action: manipulation; }

    /* old desktop chrome off */
    .site-header, .mobile-nav, .mobile-nav__overlay, .back-to-top, .whatsapp-float, .scroll-progress { display: none !important; }

    /* ----- Splash (first open) ----- */
    .preloader { background: var(--dark-grad); }
    .preloader__logo { font-size: 3rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; }
    .no-splash .preloader { display: none !important; }

    /* ----- Top app bar ----- */
    .app-bar {
        display: flex; align-items: center; gap: 10px;
        position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
        height: calc(var(--app-bar-h) + var(--safe-t)); padding: var(--safe-t) 14px 0;
        background: rgba(253, 248, 240, 0.88);
        -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
        border-bottom: 1px solid rgba(139, 105, 20, 0.1);
        transition: transform 0.35s var(--ease-out), box-shadow 0.3s;
    }
    .app-bar.is-scrolled { box-shadow: 0 6px 24px rgba(44, 36, 24, 0.1); }
    .app-bar.is-hidden { transform: translateY(-100%); }
    .app-bar__brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
    .app-bar__logo {
        width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
        background: var(--gold-grad); color: #1A1510; font-size: 1.05rem; box-shadow: 0 6px 14px rgba(201, 168, 76, 0.4);
    }
    .app-bar__name { font-family: var(--font-heading); font-weight: 900; font-size: 1.15rem; line-height: 1.1; color: var(--color-dark); display: flex; flex-direction: column; }
    .app-bar__name small { font-size: 0.62rem; font-weight: 600; color: var(--color-warm-gray); letter-spacing: 0.3px; }
    .app-bar__title {
        flex: 1; min-width: 0; font-size: 1.02rem; font-weight: 800; margin: 0; color: var(--color-dark);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .app-bar__actions { display: flex; gap: 8px; margin-inline-start: auto; }
    .app-bar__btn {
        width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
        background: rgba(26, 21, 16, 0.06); color: var(--color-dark); font-size: 0.95rem;
        transition: transform 0.15s, background 0.2s;
    }
    .app-bar__btn:active { transform: scale(0.9); background: rgba(201, 168, 76, 0.25); }
    .app-bar__btn--wa { background: rgba(37, 211, 102, 0.14); color: #1FAF55; font-size: 1.15rem; }
    .app-bar__back { background: transparent; font-size: 1.05rem; margin-inline-end: -4px; }

    /* ----- Bottom tab bar ----- */
    .app-tabs {
        display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
        position: fixed; bottom: 0; right: 0; left: 0; z-index: 1000;
        height: calc(var(--tab-h) + var(--safe-b)); padding: 8px 6px var(--safe-b);
        background: rgba(26, 21, 16, 0.94);
        -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
        border-radius: 26px 26px 0 0;
        box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(201, 168, 76, 0.25);
        transition: transform 0.35s var(--ease-out);
    }
    .app-tabs.is-hidden { transform: translateY(110%); }
    .app-tab { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; color: rgba(255, 255, 255, 0.55); padding: 4px 0 6px; position: relative; }
    .app-tab__icon { width: 44px; height: 30px; display: grid; place-items: center; font-size: 1.12rem; border-radius: 999px; transition: all 0.3s var(--ease-out); }
    .app-tab__label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1px; }
    .app-tab:active .app-tab__icon { transform: scale(0.88); }
    .app-tab.is-active { color: var(--color-gold-light); }
    .app-tab.is-active .app-tab__icon { background: rgba(201, 168, 76, 0.2); color: var(--color-gold); }
    .app-tab--fab { color: var(--color-gold-light); }
    .app-tab--fab .app-tab__icon {
        width: 58px; height: 58px; margin-top: -30px; font-size: 1.4rem; border-radius: 50%;
        background: var(--gold-grad); color: #1A1510;
        border: 5px solid #1A1510;
        box-shadow: 0 10px 22px rgba(201, 168, 76, 0.5);
    }
    .app-tab--fab.is-active .app-tab__icon { background: var(--gold-grad); color: #1A1510; transform: translateY(-2px); }
    .app-tab--fab .app-tab__label { margin-top: -2px; }

    /* ----- "More" bottom sheet ----- */
    .app-sheet__backdrop {
        display: block; position: fixed; inset: 0; z-index: 1100; background: rgba(10, 8, 5, 0.55);
        opacity: 0; pointer-events: none; transition: opacity 0.3s; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    }
    .app-sheet__backdrop.is-open { opacity: 1; pointer-events: auto; }
    .app-sheet {
        display: block; position: fixed; right: 0; left: 0; bottom: 0; z-index: 1110;
        max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
        padding: 10px 18px calc(22px + var(--safe-b));
        background: #FDF8F0; border-radius: 28px 28px 0 0;
        transform: translateY(105%); transition: transform 0.45s var(--ease-out);
        box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
    }
    .app-sheet.is-open { transform: translateY(0); }
    .app-sheet__handle { width: 44px; height: 5px; border-radius: 5px; background: rgba(44, 36, 24, 0.18); margin: 0 auto 14px; }
    .app-sheet__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
    .app-sheet__head strong { display: block; font-family: var(--font-heading); font-size: 1.05rem; color: var(--color-dark); }
    .app-sheet__head small { color: var(--color-warm-gray); font-size: 0.8rem; }
    .app-sheet__logo { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-grad); color: #1A1510; font-size: 1.25rem; }
    .app-sheet__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
    .app-sheet__tile {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
        padding: 16px 6px; border-radius: 18px; background: #fff; border: 1px solid rgba(139, 105, 20, 0.1);
        font-size: 0.78rem; font-weight: 700; color: var(--color-charcoal); line-height: 1.35;
        box-shadow: 0 4px 14px rgba(44, 36, 24, 0.05); transition: transform 0.15s;
    }
    .app-sheet__tile i { font-size: 1.35rem; color: var(--color-primary); }
    .app-sheet__tile:active { transform: scale(0.95); }
    .app-sheet__contact { display: grid; gap: 8px; margin-bottom: 12px; }
    .app-sheet__call {
        display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 16px;
        background: #fff; border: 1px solid rgba(139, 105, 20, 0.14); font-weight: 800; color: var(--color-charcoal);
    }
    .app-sheet__call i { color: var(--color-primary); }
    .app-sheet__call--wa { background: linear-gradient(135deg, #3EE07F, #1FAF55); color: #fff; border: 0; }
    .app-sheet__call--wa i { color: #fff; }
    .app-sheet__install {
        width: 100%; padding: 14px; border-radius: 16px; font-weight: 800; margin-bottom: 12px;
        background: var(--dark-grad); color: var(--color-gold-light); display: flex; align-items: center; justify-content: center; gap: 10px;
    }
    .app-sheet__install[hidden] { display: none; }
    .app-sheet__social { display: flex; justify-content: center; gap: 12px; margin: 6px 0 12px; }
    .app-sheet__social a { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(139, 105, 20, 0.1); color: var(--color-primary); }
    .app-sheet__credit { text-align: center; font-size: 0.74rem; color: var(--color-warm-gray); }
    .app-sheet__credit a { color: var(--color-primary); font-weight: 800; }
    body.sheet-open { overflow: hidden; }

    /* ----- Page enter animation ----- */
    @keyframes appEnter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    body > section, body > main, body > .page-header { animation: appEnter 0.45s var(--ease-out) both; }
    @view-transition { navigation: auto; }
    ::view-transition-old(root) { animation: 0.18s ease both fadeOutApp; }
    ::view-transition-new(root) { animation: 0.3s ease both appEnter; }
    @keyframes fadeOutApp { to { opacity: 0; } }

    /* ----- Common spacing & type ----- */
    .container { padding: 0 16px; }
    .section { padding: 34px 0; }
    .section-title { font-size: 1.45rem; line-height: 1.35; }
    .section-desc { font-size: 0.9rem; }
    .section-label { font-size: 0.74rem; padding: 4px 14px; }
    .text-center .section-desc { padding-bottom: 16px; }
    .btn { border-radius: 14px; }
    .btn:active { transform: scale(0.97); }

    /* ----- Hero as an inset app banner ----- */
    .hero, .hero--slider { padding: 0 !important; min-height: 0 !important; background: transparent; }
    .hero--slider { margin: 12px 12px 0; border-radius: 28px; overflow: hidden; height: min(66vh, 520px); box-shadow: 0 18px 40px rgba(26, 21, 16, 0.28); }
    .alsalam-hero-slider, .alsalam-hero-slider .swiper-wrapper, .hero-slide { height: 100% !important; min-height: 0 !important; }
    .hero-slide { align-items: flex-end; }
    .hero-slide__overlay { background: linear-gradient(180deg, rgba(14, 11, 8, 0.15) 0%, rgba(14, 11, 8, 0.35) 40%, rgba(14, 11, 8, 0.9) 100%); }
    .hero-slide__container { padding: 0 18px 46px !important; align-items: flex-end; }
    .hero-slide .hero__badge { font-size: 0.7rem; padding: 5px 12px; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.22); }
    .hero-slide .hero__title { font-size: 1.9rem !important; line-height: 1.25; margin: 10px 0 8px; }
    .hero-slide .hero__desc { font-size: 0.86rem; line-height: 1.7; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .hero-slide .hero__actions { flex-direction: row !important; align-items: center; gap: 10px; flex-wrap: nowrap; }
    .hero-slide .hero__actions .btn { padding: 11px 16px; font-size: 0.84rem; white-space: nowrap; }
    .hero-slide .hero__actions .btn--secondary { width: 46px; height: 46px; padding: 0; justify-content: center; font-size: 0; border-radius: 14px; }
    .hero-slide .hero__actions .btn--secondary i { font-size: 1.25rem; margin: 0; }
    .hero-slide__visual, .hero-slide__trust-pills, .hero-slide__pattern { display: none !important; }
    .hero-slide__container, .hero-slide__container > .hero__content { display: block !important; width: 100%; max-width: 100%; }
    .hero-slider-nav, .hero-slider-progress { display: none !important; }
    .hero-slider-pagination { bottom: 16px !important; }

    /* ----- Quick actions row ----- */
    .app-quick {
        display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 16px 12px 4px;
    }
    .app-quick__item { display: flex; flex-direction: column; align-items: center; gap: 7px; transition: transform 0.15s; }
    .app-quick__item:active { transform: scale(0.92); }
    .app-quick__icon {
        width: 54px; height: 54px; border-radius: 19px; display: grid; place-items: center; font-size: 1.25rem;
        background: #fff; color: var(--color-primary); border: 1px solid rgba(139, 105, 20, 0.12); box-shadow: 0 6px 16px rgba(44, 36, 24, 0.07);
    }
    .app-quick__item--hot .app-quick__icon { background: var(--gold-grad); color: #1A1510; border: 0; box-shadow: 0 10px 22px rgba(201, 168, 76, 0.45); }
    .app-quick__icon--wa { color: #1FAF55; background: rgba(37, 211, 102, 0.12); border-color: rgba(37, 211, 102, 0.25); }
    .app-quick__label { font-size: 0.7rem; font-weight: 800; color: var(--color-charcoal); }

    /* ----- Features: compact 2x2 tiles ----- */
    .features { background: transparent; }
    .features .section-desc { display: none; }
    .features__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; margin-top: 18px; }
    .feature-card { padding: 16px 12px; text-align: center; border-radius: 20px; background: #fff; border: 1px solid rgba(201, 168, 76, 0.18); box-shadow: 0 6px 18px rgba(44, 36, 24, 0.05); }
    .feature-card::before, .feature-card::after { display: none !important; }
    .feature-card__icon { margin: 0 auto 8px !important; width: 46px; height: 46px; font-size: 1.1rem; border-radius: 16px; background: var(--gold-grad) !important; color: #1A1510 !important; }
    .feature-card__title { font-size: 0.9rem; margin-bottom: 3px; }
    .feature-card__desc { font-size: 0.72rem; line-height: 1.5; color: var(--color-warm-gray); }

    /* ----- Categories: swipeable cards ----- */
    .categories { padding-inline: 0; background: transparent; }
    .categories__grid {
        display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        margin: 18px -16px 0; padding: 4px 16px 16px; -webkit-overflow-scrolling: touch;
    }
    .categories__grid::-webkit-scrollbar { display: none; }
    .category-card, .category-card--large { flex: 0 0 64%; height: 230px !important; border-radius: 24px; scroll-snap-align: center; box-shadow: 0 12px 26px rgba(26, 21, 16, 0.2); grid-column: auto; }
    .category-card__content { padding: 14px 16px; }
    .category-card__name { font-size: 1.1rem; margin-bottom: 4px; }
    .category-card__link { font-size: 0.78rem; }

    /* ----- 3D planner promo ----- */
    .room-planner-promo { padding: 34px 0 !important; margin: 8px 12px; border-radius: 28px; border: 0 !important; }
    .room-planner-promo__grid { gap: 18px !important; }

    /* ----- Products: 2 column app grid ----- */
    .products__header { align-items: stretch !important; text-align: center; min-width: 0; }
    .products__header > * { min-width: 0; }
    .products__filters {
        display: flex; flex-wrap: nowrap !important; justify-content: flex-start; overflow-x: auto; gap: 8px; margin: 0 -16px; padding: 4px 16px 6px; scrollbar-width: none; max-width: calc(100% + 32px);
    }
    .products__filters::-webkit-scrollbar { display: none; }
    .products__filter { flex: 0 0 auto; padding: 8px 18px; border-radius: 999px; font-size: 0.82rem; white-space: nowrap; }
    .products__filter.active { background: var(--dark-grad); color: var(--color-gold-light); border-color: transparent; }
    .products__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; margin-top: 16px; }
    .product-card { border-radius: 20px; background: #fff; border: 1px solid rgba(139, 105, 20, 0.08); box-shadow: 0 8px 22px rgba(44, 36, 24, 0.07); overflow: hidden; transition: transform 0.15s; }
    .product-card:active { transform: scale(0.97); }
    .product-card__image, .product-card .product-card__image[style] { height: 160px !important; }
    .product-card__actions { display: none !important; }
    .product-card__badges { top: 8px; right: 8px; }
    .product-card__badge { font-size: 0.62rem; padding: 3px 9px; border-radius: 999px; font-weight: 800; }
    .product-card__badge--new { background: rgba(26, 21, 16, 0.88); color: var(--color-gold-light); }
    .product-card__badge--sale { background: linear-gradient(135deg, #D95B43, #B73A27); color: #fff; }
    .product-card__body { padding: 10px 12px 12px; }
    .product-card__category { font-size: 0.66rem; color: var(--color-primary); font-weight: 800; }
    .product-card__title { font-size: 0.86rem; line-height: 1.4; margin: 3px 0 8px; min-height: 2.4em; }
    .product-card__cta { width: 100%; justify-content: center; padding: 9px 10px !important; font-size: 0.78rem !important; border-radius: 12px; margin-top: 4px; }

    /* ----- Showcase gallery: swipeable ----- */
    .showcase { padding: 34px 0; border-radius: 28px; margin: 8px 12px; }
    .showcase__grid {
        display: flex !important; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 18px -16px 0; padding: 0 16px 6px; scrollbar-width: none;
    }
    .showcase__grid::-webkit-scrollbar { display: none; }
    .showcase__item, .showcase__item:nth-child(n) { flex: 0 0 72%; height: 230px !important; border-radius: 22px; overflow: hidden; scroll-snap-align: center; grid-column: auto; }

    /* ----- Testimonials, CTA ----- */
    .testimonial-card { border-radius: 22px; }
    .cta { margin: 8px 12px 0; border-radius: 28px; padding: 34px 0; }
    .cta__actions { flex-direction: column; gap: 10px; }
    .cta__actions .btn { width: 100%; justify-content: center; }

    /* ----- Footer becomes a compact "about" card ----- */
    .site-footer { margin-top: 18px; padding: 26px 0 8px; border-radius: 28px 28px 0 0; background: var(--dark-grad); }
    .footer__grid { grid-template-columns: 1fr !important; gap: 18px !important; }
    .footer__col:nth-child(2), .footer__col:nth-child(3) { display: none; }
    .footer__bottom { font-size: 0.76rem; gap: 8px !important; padding-top: 14px; }
    .footer__bottom > div:nth-child(2) { justify-content: center; flex-wrap: wrap; }

    /* ----- Inner pages ----- */
    .page-header { padding: 18px 0 !important; background: var(--dark-grad); }
    .page-header__title { font-size: 1.35rem; }
    .breadcrumb { font-size: 0.72rem; }
    .about-hero { padding-top: 24px; }
    .contact-form { border-radius: 22px; padding: 18px; }
    .form-select, .form-textarea, .form-group input { border-radius: 14px; font-size: 16px; } /* 16px avoids iOS zoom */

    /* ----- Compact inner-page banners (the app bar already shows the page title) ----- */
    .page-banner { padding: 20px 0 22px !important; text-align: right !important; border-radius: 0 0 26px 26px; }
    .page-banner .section-label { margin-bottom: 8px !important; font-size: 0.7rem; }
    .page-banner h1 { font-size: 1.35rem !important; line-height: 1.4; margin-bottom: 6px !important; }
    .page-banner p { font-size: 0.84rem !important; line-height: 1.65 !important; margin: 0 !important; max-width: none !important; color: #D9CDB6 !important; }
    .page-banner .breadcrumb { display: none !important; }
    body main[style*="padding"] { padding-top: 22px !important; padding-bottom: 30px !important; }
    [style*="margin-bottom: 80px"], [style*="margin-bottom: 70px"] { margin-bottom: 34px !important; }
    [style*="margin-top: 80px"], [style*="margin-top: 70px"] { margin-top: 30px !important; }
    [style*="gap: 50px"] { gap: 24px !important; }
    .catalog-consultation-banner, .gallery-custom-banner, .category-consultation-banner { padding: 26px 18px !important; border-radius: 22px !important; }

    /* catalog / gallery category chips -> one swipeable row, scrolls naturally (NOT sticky) */
    .catalog-filters-bar, .gallery-filters {
        flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; gap: 8px !important;
        margin: 0 -16px 20px !important; padding: 8px 16px; scrollbar-width: none;
        position: relative !important; top: auto !important; z-index: 5 !important;
        background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    }
    .catalog-filters-bar::-webkit-scrollbar, .gallery-filters::-webkit-scrollbar { display: none; }
    .catalog-cat-btn, .gallery-filter-btn { flex: 0 0 auto; white-space: nowrap; padding: 8px 16px !important; font-size: 0.8rem !important; }
    .catalog-cat-btn.active, .gallery-filter-btn.active { background: var(--dark-grad) !important; color: var(--color-gold-light) !important; border-color: transparent !important; }

    /* ----- Room planner page ----- */
    .planner-header-bar { padding: 16px 0 14px !important; }
    .planner-header-bar h1 { font-size: 1.15rem !important; }
    .planner-header-bar p { display: none; }
    .room-planner-workspace { padding: 14px 0 30px !important; }
    #roomCanvasWrap { height: 62vh !important; min-height: 360px; }

    .product-header-banner, .page-header .breadcrumb { display: none !important; }
    .single-product-page { padding: 16px 0 30px !important; }

    /* ----- Sticky action bar (single product) ----- */
    .app-cta-bar {
        display: flex; gap: 10px; position: fixed; right: 12px; left: 12px; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); z-index: 900;
        padding: 10px; border-radius: 22px; background: rgba(26, 21, 16, 0.94); backdrop-filter: blur(16px);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    }
    .app-cta-bar .btn { flex: 1; justify-content: center; padding: 12px 10px; border-radius: 15px; font-size: 0.9rem; }
    .has-cta-bar { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 84px); }
}

/* the sticky product bar only exists on small screens */
@media (min-width: 993px) { .app-cta-bar { display: none; } }

/* Landscape phones: keep the bottom bar slim */
@media (max-width: 992px) and (max-height: 480px) {
    :root { --tab-h: 54px; --app-bar-h: 48px; }
    .app-tab__label { display: none; }
    .app-tab--fab .app-tab__icon { width: 46px; height: 46px; margin-top: -18px; }
}

/* Installed (standalone) app: no browser chrome, so tweak safe areas */
@media (display-mode: standalone) and (max-width: 992px) {
    body { user-select: none; -webkit-user-select: none; }
    input, textarea { user-select: text; -webkit-user-select: text; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
