﻿/* NAWAH — glass refinement, loaded AFTER site.css */
html, body { max-width:100%; overflow-x:clip; }
body > main, .hero, .marquee, .menu-section, .closing, .site-footer {
  width:100%; max-width:100%;
}
.site-header, .site-header.is-scrolled, .site-header.menu-open {
  background:rgba(30,42,32,.70);
  -webkit-backdrop-filter:blur(20px) saturate(150%);
  backdrop-filter:blur(20px) saturate(150%);
  border-bottom:1px solid rgba(255,255,255,.13);
}
.product-search {
  background:rgba(255,255,255,.56);
  border:1px solid rgba(255,255,255,.80);
  border-radius:18px;
  box-shadow:0 6px 24px rgba(35,48,37,.06);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.cat {
  background:rgba(255,255,255,.55);
  border:1px solid rgba(92,107,87,.18);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  box-shadow:0 3px 12px rgba(25,33,25,.04);
}
.cat.active,.cat:hover {
  background:rgba(47,65,48,.94);
  border-color:rgba(255,255,255,.18);
  color:#fff;
}
.menu-section #productGrid > article.card {
  background:rgba(255,255,255,.62);
  border:1px solid rgba(255,255,255,.84);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 10px 36px rgba(42,55,43,.075);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.menu-section #productGrid > article.card[hidden] { display:none!important; }
.menu-section #productGrid .card-frame { overflow:hidden; }
.menu-section #productGrid .card-information { padding:18px; }
.menu-section #productGrid .card-name { color:#263b30; }
.menu-section #productGrid .card-footer { border-color:rgba(89,105,86,.15); }
.sheet-panel {
  background:rgba(249,248,243,.97);
  border:1px solid rgba(255,255,255,.72);
  border-radius:24px;
  -webkit-backdrop-filter:blur(24px);
  backdrop-filter:blur(24px);
}
@media (max-width:720px) {
  .site-header, .site-header.is-scrolled, .site-header.menu-open {
    height:68px;
    padding-inline:16px;
  }
  .hero {
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:100svh;
    height:auto;
    padding:88px 18px 45px;
    text-align:center;
    gap:0;
  }
  .hero-visual {
    order:1;
    width:100%;
    height:clamp(200px,58vw,250px);
    min-height:0;
    max-height:none;
    margin-bottom:13px;
    flex:0 0 auto;
  }
  .hero-logo {width:clamp(154px,45vw,188px);max-width:60%;}
  .orbit-one {width:clamp(198px,57vw,245px);height:clamp(198px,57vw,245px);}
  .orbit-two {width:clamp(225px,69vw,290px);height:clamp(225px,69vw,290px);}
  .visual-halo {width:250px;height:250px;}
  .float-two, .scroll-cue, .hero-index {display:none!important;}
  .float-one {right:0;top:2%;font-size:8px;}
  .hero-content {order:2;flex:none;width:100%;max-width:430px;margin:0 auto!important;}
  .hero-intro {justify-content:center;font-size:8px;letter-spacing:1.1px;gap:8px;white-space:nowrap;}
  .hero-intro .line {width:16px;flex:0 0 16px;}
  .hero-kicker {font-size:12px;margin:14px 0 8px;}
  .hero-title {font-size:clamp(34px,9.5vw,46px);line-height:1.3;letter-spacing:-1px;}
  .hero-description {font-size:12px;line-height:1.95;margin:14px auto 21px;max-width:330px;}
  .hero-actions {display:flex;justify-content:center;gap:11px;flex-wrap:wrap;}
  .hero-actions .button-gold {min-height:45px;border-radius:12px;gap:12px;padding:11px 15px;}
  .hero-actions .button-ghost {
    padding:10px 15px;
    border:1px solid rgba(255,255,255,.25);
    border-radius:12px;
    background:rgba(255,255,255,.08);
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
  }
  .hero-signature {margin-top:21px;text-align:center;letter-spacing:1px;}
  .section-wrap {width:calc(100% - 30px);}
  .story {padding-block:65px;gap:30px;}
  .story-art {height:300px;max-width:420px;border-radius:22px;overflow:hidden;transform:none;}
  .story-art-stamp {left:5px;top:9px;}
  .menu-section {padding:65px 0 80px;}
  .menu-heading {margin-bottom:25px;}
  .menu-tools {gap:14px;margin-bottom:25px;}
  .product-search {height:54px;width:100%;padding-inline:14px;}
  .product-search input {font-size:16px;min-width:0;}
  .cat-strip {width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;}
  .cat-strip-inner {justify-content:flex-start;gap:8px;padding-block:2px 7px;}
  .cat {white-space:nowrap;min-height:44px;padding:9px 16px;display:inline-flex;align-items:center;}
  .menu-section #productGrid {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:13px!important;
    width:100%;
    min-width:0;
  }
  .menu-section #productGrid > article.card {
    display:grid!important;
    grid-template-columns:112px minmax(0,1fr)!important;
    min-height:145px;
    width:100%!important;
    min-width:0;
    transform:none!important;
    border-radius:18px;
  }
  .menu-section #productGrid > article.card[hidden] {display:none!important;}
  .menu-section #productGrid .card-frame {
    width:112px!important;
    height:100%!important;
    min-height:145px;
    border-radius:0;
  }
  .menu-section #productGrid .card-frame img {
    width:100%!important;
    height:100%!important;
    object-fit:cover;
    transform:none!important;
  }
  .menu-section #productGrid .card-information {
    min-width:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:12px 13px!important;
  }
  .menu-section #productGrid .card-overlay {display:none!important;}
  .menu-section #productGrid .card-name {font-size:16px!important;line-height:1.5;margin:4px 0;overflow-wrap:anywhere;}
  .menu-section #productGrid .card-desc {font-size:11px;line-height:1.65;min-height:0;max-height:39px;overflow:hidden;}
  .menu-section #productGrid .card-footer {margin-top:8px;padding-top:8px;gap:6px;min-width:0;}
  .menu-section #productGrid .card-price {font-size:11px;white-space:normal;}
  .menu-section #productGrid .card-price strong {font-size:18px!important;}
  .menu-section #productGrid .card-add {width:36px;height:36px;flex:0 0 36px;}
  .sheet-panel {
    top:auto;left:0;right:0;bottom:0;
    width:100%;max-width:none;max-height:88dvh;
    display:flex;flex-direction:column;
    border-radius:24px 24px 0 0;
    transform:translateY(105%);
    opacity:1;
    overflow-y:auto;
    padding-bottom:env(safe-area-inset-bottom,0px);
    transition:transform .32s cubic-bezier(.22,1,.36,1);
  }
  .sheet.is-open .sheet-panel {transform:translateY(0);opacity:1;}
  .sheet-media {height:190px;min-height:190px;flex:0 0 auto;}
  .sheet-body {padding:20px 22px 28px;}
  .sheet-close {min-width:44px;min-height:44px;border-radius:50%;}
}
@media (max-width:360px) {
  .menu-section #productGrid > article.card {grid-template-columns:100px minmax(0,1fr)!important;}
  .menu-section #productGrid .card-frame {width:100px!important;}
  .menu-section #productGrid .card-information {padding:10px 11px!important;}
  .hero {padding-inline:14px;}
}
@media (prefers-reduced-motion: reduce) {
  .sheet-panel, .cat, .menu-section #productGrid .card-frame img {transition:none!important;animation:none!important;}
}

/* ==========================================
   NAWAH - STICKY GLASS MENU
   Search + Categories
========================================== */

#products .menu-tools {
    position: sticky;
    top: 77px;
    z-index: 45;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;

    padding: 13px;
    margin: 0 auto 30px;

    background: rgba(247, 243, 236, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 22px;

    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);

    box-shadow:
        0 12px 35px rgba(34, 40, 32, 0.09),
        inset 0 1px 0 rgba(255,255,255,.7);

    transition: background .3s ease, box-shadow .3s ease;
}

#products .product-search {
    width: min(520px, 100%);
    margin-inline: auto;
    border-radius: 15px;
    background: rgba(255,255,255,.65);
    border-color: rgba(180,175,157,.45);
}

#products .cat-strip {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#products .cat-strip::-webkit-scrollbar {
    display: none;
}

#products .cat-strip-inner {
    justify-content: center;
    gap: 10px;
}

#products .cat {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 720px) {
    #products .menu-tools {
        top: 68px;
        gap: 9px;
        padding: 9px;
        margin-bottom: 22px;
        border-radius: 18px;
    }

    #products .product-search {
        height: 45px;
        width: 100%;
        padding-inline: 12px;
    }

    #products .product-search input {
        font-size: 14px;
    }

    #products .cat-strip-inner {
        justify-content: flex-start;
        gap: 8px;
    }

    #products .cat {
        padding: 9px 16px;
    }
}

/* ==========================================
   NAWAH - DEVELOPER GLASS CREDIT
========================================== */

body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

.developer-credit {
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    direction: ltr;
}

.developer-credit summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid #607063;
    border-radius: 999px;
    color: #f4f0e8;
    background: #26382d;
    font: 500 .82rem/1.3 'IBM Plex Sans Arabic', system-ui, sans-serif;
    cursor: pointer;
    white-space: nowrap;
}

.developer-credit summary::-webkit-details-marker { display: none; }
.developer-credit summary:hover, .developer-credit[open] summary { background: #354b39; }
.developer-credit summary:focus-visible { outline: 2px solid #e2bd88; outline-offset: 3px; }
.developer-credit summary strong { color: #e2bd88; font: inherit; font-weight: 700; letter-spacing: 0; }

.developer-credit-caret {
    width: 7px;
    height: 7px;
    border-block-start: 1.5px solid currentColor;
    border-inline-end: 1.5px solid currentColor;
    transform: translateY(2px) rotate(-45deg);
}

.developer-credit[open] .developer-credit-caret { transform: translateY(-2px) rotate(135deg); }

.developer-card {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 13px);
    transform: translate(-50%, 10px);

    width: min(330px, calc(100vw - 28px));
    padding: 20px;

    direction: rtl;
    text-align: right;

    color: #29352b;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 23px;

    box-shadow:
        0 22px 65px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.25);

    -webkit-backdrop-filter: blur(26px) saturate(180%);
    backdrop-filter: blur(26px) saturate(180%);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: .35s cubic-bezier(.22,1,.36,1);
}

.developer-credit[open] .developer-card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.developer-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: ltr;

    color: #a58a65;
    font: 10px Georgia, serif;
    letter-spacing: 1.4px;
}

.developer-card-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #e9e5dc;
    color: #384436;
    font-size: 21px;
    cursor: pointer;
}

.developer-card-content {
    padding: 17px 0;
}

.developer-label {
    font: 9px Georgia, serif;
    color: #a58a65;
    letter-spacing: 2px;
}

.developer-card-content h3 {
    font-size: 23px;
    margin: 8px 0;
    color: #344333;
}

.developer-card-content p {
    font-size: 12px;
    color: #85877c;
    margin: 0;
}

.developer-contact {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px;
    margin-top: 9px;

    border: 1px solid rgba(100,110,90,.15);
    border-radius: 14px;

    background: rgba(255,255,255,.6);
    transition: .25s ease;
}

.developer-contact:hover {
    background: white;
    transform: translateY(-2px);
    border-color: #c5a780;
}

.developer-contact-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 12px;

    color: white;
    background: #315d43;
    font-weight: bold;
    direction: ltr;
}

.instagram-icon {
    background: linear-gradient(135deg,#feda75,#d62976,#962fbf);
    font-size: 23px;
}

.developer-contact-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    direction: ltr;
    text-align: left;
}

.developer-contact-text strong {
    font-size: 12px;
    color: #344333;
}

.developer-contact-text small {
    font-size: 11px;
    color: #85877c;
}

.developer-arrow {
    color: #b39770;
    font-size: 19px;
}

.developer-card-footer {
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid #e4e0d6;

    text-align: center;
    direction: ltr;

    font: 9px Georgia, serif;
    letter-spacing: 1.5px;
    color: #a58a65;
}

/* Official-style social media brand icons */

.developer-contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    padding: 8px;
}

.developer-contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.whatsapp-icon {
    background: #25D366 !important;
    border-radius: 50%;
    padding: 7px;
}

.instagram-icon {
    background: linear-gradient(
        45deg,
        #feda75 0%,
        #fa7e1e 25%,
        #d62976 55%,
        #962fbf 80%,
        #4f5bd5 100%
    ) !important;
    border-radius: 12px;
    padding: 7px;
}

/* Mobile Story Artwork Fix */
@media (max-width: 720px) {

    .story-art-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 22px 12px;
    }

    .story-art-inner img {
        width: min(58%, 190px);
        height: auto;
        flex: 0 0 auto;
        position: relative;
        z-index: 2;
        margin: 0 auto;
    }

    .story-art-label {
        position: relative;
        inset: auto;
        width: 100%;
        text-align: center;
        z-index: 3;
        margin-top: 0;
        color: #f0e7d7;
    }

    .story-art-label span {
        font-size: 20px;
        letter-spacing: 5px;
        margin-bottom: 5px;
    }

    .story-art-label small {
        display: block;
        font-size: 10px;
        letter-spacing: 1.5px;
    }
}

/* NAWAH - Premium Glass Developer Card Readability Fix */

/* Developer popup */
.developer-card {
    background: linear-gradient(
        135deg,
        rgba(250, 248, 242, 0.97),
        rgba(239, 243, 235, 0.96)
    ) !important;

    color: #26382c !important;

    border: 1px solid rgba(255,255,255,.85) !important;

    box-shadow:
        0 25px 70px rgba(24, 37, 28, .22),
        inset 0 1px 0 rgba(255,255,255,.95) !important;

    -webkit-backdrop-filter: blur(30px) saturate(145%);
    backdrop-filter: blur(30px) saturate(145%);

    isolation: isolate;
}

/* Make all popup text readable */
.developer-card *:not(svg):not(path) {
    color: #293a2e !important;
    text-shadow: none !important;
}

/* Gold decorative labels */
.developer-card .section-kicker,
.developer-card .developer-label,
.developer-card .developer-footer {
    color: #98764b !important;
}

/* Developer name */
.developer-card h1,
.developer-card h2,
.developer-card h3 {
    color: #26382c !important;
    font-weight: 700;
}

/* Developer description */
.developer-card p,
.developer-card small {
    color: #687467 !important;
}

/* WhatsApp and Instagram contact cards */
.developer-card a {
    background: rgba(255,255,255,.91) !important;
    border: 1px solid rgba(54,75,57,.12) !important;
    border-radius: 16px;
    color: #26382c !important;
    box-shadow: 0 5px 18px rgba(0,0,0,.045);
}

@media(max-width:720px) {
    .developer-card {
        background: rgba(249,247,240,.98) !important;
        -webkit-backdrop-filter: blur(26px);
        backdrop-filter: blur(26px);
    }
}

/* =====================================
   NAWAH - Apple Style Popup Animation
===================================== */

.developer-credit {
    isolation: isolate;
    z-index: 9999;
}

/* Blurred background */
.developer-credit::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(22, 32, 25, .22);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .4s ease,
        backdrop-filter .4s ease,
        visibility .4s ease;
}

.developer-credit[open]::before {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

/* Popup initial state */
.developer-credit .developer-card {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translate(-50%, 18px) scale(.93);
    transform-origin: center bottom;

    transition:
        opacity .25s ease,
        transform .42s cubic-bezier(.16, 1, .3, 1),
        visibility .42s;

    will-change: transform, opacity;
}




/* Smooth close button */
.developer-card button {
    transition:
        transform .25s ease,
        background .25s ease;
}

.developer-card button:hover {
    transform: rotate(90deg);
}

/* Reduce animation for accessibility */
@media (prefers-reduced-motion: reduce) {
    .developer-credit *,
    .developer-credit::before {
        animation: none !important;
        transition: none !important;
    }
}

/* =====================================
   NAWAH - Universal Apple Popup System
===================================== */

/* Developer popup */
.developer-credit[open] .developer-card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Developer animation */
.developer-credit .developer-card.nawah-apple-enter {
    animation: nawahDeveloperIn .52s
        cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes nawahDeveloperIn {
    0% {
        opacity: 0;
        transform: translate(-50%, 22px) scale(.90);
        filter: blur(8px);
    }
    65% {
        opacity: 1;
        transform: translate(-50%, -3px) scale(1.015);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
        filter: blur(0);
    }
}

/* Product popup backdrop */
.sheet-backdrop {
    background: rgba(19, 29, 22, .48);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
}

/* Product popup animation */
.sheet .sheet-panel.nawah-apple-enter {
    animation: nawahProductIn .52s
        cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes nawahProductIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -43%) scale(.90);
        filter: blur(9px);
    }
    65% {
        opacity: 1;
        transform: translate(-50%, -51%) scale(1.015);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nawah-apple-enter {
        animation: none !important;
    }
}

/* =========================================
   NAWAH - MOBILE PRODUCT POPUP FIX
   Apple Style - Responsive Centered Modal
========================================= */

@media (max-width: 720px) {

    /* Full screen popup container */
    .sheet {
        position: fixed;
        inset: 0;
        display: grid;
        place-items: center;
        padding: 14px;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Center product card correctly */
    .sheet .sheet-panel {
        position: relative !important;

        inset: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        width: min(420px, calc(100vw - 28px)) !important;
        max-width: 100%;

        max-height: calc(100dvh - 28px);

        margin: 0;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 190px auto;

        overflow-y: auto;
        overflow-x: hidden;

        border-radius: 24px;

        transform: scale(.96);
        background: rgba(249, 247, 240, .98);

        box-shadow:
            0 25px 80px rgba(0,0,0,.25),
            inset 0 1px 0 rgba(255,255,255,.8);
    }

    .sheet.is-open .sheet-panel {
        transform: scale(1);
    }

    /* Apple animation - mobile */
    .sheet .sheet-panel.nawah-apple-enter {
        animation: nawahProductMobileIn .48s
            cubic-bezier(.16, 1, .3, 1) both;
    }

    @keyframes nawahProductMobileIn {
        0% {
            opacity: 0;
            transform: scale(.90);
            filter: blur(8px);
        }

        65% {
            opacity: 1;
            transform: scale(1.015);
            filter: blur(0);
        }

        100% {
            opacity: 1;
            transform: scale(1);
            filter: blur(0);
        }
    }

    /* Product image */
    .sheet-media {
        width: 100%;
        height: 190px;
        min-height: 0;
        overflow: hidden;
    }

    .sheet-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Product information */
    .sheet-body {
        width: 100%;
        min-width: 0;
        padding: 22px 20px 25px;
        box-sizing: border-box;
    }

    .sheet-body h3 {
        font-size: 24px;
        margin: 10px 0;
    }

    .sheet-body p {
        font-size: 13px;
        line-height: 1.9;
    }

    .sheet-price {
        margin-top: 16px;
        padding-top: 14px;
    }

    .sheet-price strong {
        font-size: 29px;
    }

    /* Close button */
    .sheet-close {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 10;
    }
}


/* =========================================================
   NAWAH CUSTOMER UX v1
   Search clarity, category counts, sticky glass toolbar,
   accessible empty state and return-to-top control.
========================================================= */
#products { scroll-margin-top: 92px; }

#products .menu-tools {
    top: calc(76px + env(safe-area-inset-top, 0px));
    width: 100%;
    max-width: 1180px;
    padding: 12px;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.76);
    background: rgba(247, 246, 239, .88);
    box-shadow: 0 14px 38px rgba(34,40,32,.12), inset 0 1px 0 rgba(255,255,255,.88);
}

#products .product-search { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; }
#products .product-search-icon { flex: 0 0 auto; line-height: 1; font-size: 27px; }
#products .product-search input { min-width: 0; }

#products .search-clear {
    flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center;
    padding: 0; border: 1px solid rgba(76,91,72,.13); border-radius: 50%;
    background: rgba(255,255,255,.78); color: #40503d; font-size: 23px; line-height: 1;
    cursor: pointer; transition: transform .2s ease, background .2s ease;
}
#products .search-clear:hover { background: #fff; transform: scale(1.06); }
#products .search-clear[hidden] { display: none !important; }

#products .menu-filter-meta {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding-inline: 5px; min-height: 18px;
}
#products .product-results-count { color: #40503d; font-size: 11px; font-weight: 700; }
#products .menu-filter-hint { color: #818779; font-size: 10px; }

#products .cat { display: inline-flex; align-items: center; gap: 8px; }
#products .cat-count {
    min-width: 21px; height: 21px; display: inline-grid; place-items: center;
    padding-inline: 5px; border-radius: 999px; background: rgba(66,82,62,.09);
    color: #53614f; font-size: 10px; line-height: 1; font-variant-numeric: tabular-nums;
}
#products .cat.active .cat-count, #products .cat:hover .cat-count {
    background: rgba(255,255,255,.18); color: #fff;
}

.menu-empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; max-width: 520px; margin: 28px auto 8px; padding: 30px 22px;
    border: 1px solid rgba(255,255,255,.82); border-radius: 24px;
    background: rgba(255,255,255,.58); color: #66715f; text-align: center;
    box-shadow: 0 12px 32px rgba(39,52,39,.06);
}
.menu-empty-state[hidden] { display: none !important; }
.menu-empty-icon {
    width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
    background: rgba(72,91,68,.09); color: #71806b; font-size: 30px;
}
.menu-empty-state .menu-empty { margin: 0; padding: 0; line-height: 1.8; }
.menu-reset-button {
    min-height: 42px; padding: 9px 18px; border: 1px solid rgba(255,255,255,.75);
    border-radius: 999px; background: #344332; color: #fff; font: inherit; font-size: 12px;
    cursor: pointer; box-shadow: 0 6px 18px rgba(34,48,34,.12);
    transition: transform .2s ease, background .2s ease;
}
.menu-reset-button:hover { background: #45563f; transform: translateY(-1px); }
.menu-reset-button[hidden] { display: none !important; }

.back-to-top {
    position: fixed; left: 18px; bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    z-index: 70; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
    border: 1px solid rgba(255,255,255,.68); border-radius: 50%;
    background: rgba(42,57,43,.86); color: #fff;
    box-shadow: 0 8px 24px rgba(20,31,22,.2), inset 0 1px 0 rgba(255,255,255,.2);
    -webkit-backdrop-filter: blur(18px) saturate(145%); backdrop-filter: blur(18px) saturate(145%);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(9px) scale(.94);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease; cursor: pointer;
}
.back-to-top svg { width: 19px; height: 19px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.back-to-top:focus-visible, .menu-reset-button:focus-visible, .search-clear:focus-visible {
    outline: 2px solid #b89970; outline-offset: 3px;
}

@media (max-width: 720px) {
    #products { scroll-margin-top: 76px; }
    #products .menu-tools {
        top: calc(68px + env(safe-area-inset-top, 0px)); padding: 9px; gap: 8px;
        border-radius: 18px; margin-bottom: 20px;
    }
    #products .menu-filter-meta { padding-inline: 3px; }
    #products .product-results-count { font-size: 10px; }
    #products .menu-filter-hint { font-size: 9px; }
    #products .cat-count { min-width: 19px; height: 19px; font-size: 9px; }
    .menu-empty-state { margin-top: 20px; padding: 25px 17px; }
    .back-to-top {
        left: 13px; bottom: calc(86px + env(safe-area-inset-bottom, 0px));
        width: 42px; height: 42px;
    }
}
@media (prefers-reduced-motion: reduce) {
    #products .search-clear, .menu-reset-button, .back-to-top { transition: none !important; }
}


/* ==========================================
   NAWAH - Matching Apple-style popup exits
   The close motion mirrors the existing entrance.
========================================== */

.sheet.is-closing .sheet-backdrop {
  opacity: 0 !important;
  -webkit-backdrop-filter: blur(0) saturate(100%);
  backdrop-filter: blur(0) saturate(100%);
}

.sheet.is-closing .sheet-panel {
  pointer-events: none;
}

.sheet .sheet-panel.nawah-apple-exit {
  animation: nawahProductOut .36s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes nawahProductOut {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -43%) scale(.90);
    filter: blur(8px);
  }
}

.developer-credit .developer-card.nawah-apple-exit {
  pointer-events: none;
  animation: nawahDeveloperOut .36s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes nawahDeveloperOut {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 18px) scale(.93);
    filter: blur(8px);
  }
}

@media (max-width: 720px) {
  .sheet .sheet-panel.nawah-apple-exit {
    animation: nawahProductMobileOut .36s cubic-bezier(.16, 1, .3, 1) both;
  }

  @keyframes nawahProductMobileOut {
    0% {
      opacity: 1;
      transform: scale(1);
      filter: blur(0);
    }
    100% {
      opacity: 0;
      transform: scale(.90);
      filter: blur(8px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .sheet .sheet-panel.nawah-apple-exit,
  .developer-credit .developer-card.nawah-apple-exit {
    animation: none !important;
  }
}
