/* Naqshat ordering flow: product, cart, checkout, confirmation.
   Tenant-scoped through body.nq-storefront; no shared-store selectors. */

/* ── One fixed bar at a time on phones ─────────────────────────────── */
@media (max-width: 1199px) {
    body.nq-storefront.nq-mobile-product .nq-bottom-nav { display: none !important; }
    /* Owner request 2026-11-12: keep the bottom menu on checkout; the confirm bar sits above it. */
    body.nq-storefront.nq-checkout-page .chk-footer { bottom: var(--nq-bottom-nav-h, 92px) !important; }
    body.nq-storefront.nq-checkout-page { padding-bottom: calc(var(--nq-bottom-nav-h, 92px) + 150px) !important; }

    body.nq-storefront.nq-mobile-product .tf-sticky-btn-atc {
        top: auto !important;
        bottom: 0 !important;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: #fff;
    }
    body.nq-storefront.nq-mobile-product {
        padding-bottom: calc(var(--nq-product-atc-height, 66px) + 14px + env(safe-area-inset-bottom, 0px)) !important;
    }
    body.nq-storefront.nq-mobile-product .tf-sticky-btn-atc .tf-btn { font-size: 16px; min-height: 48px; border-radius: 10px; }
    body.nq-storefront.nq-mobile-product .tf-sticky-btn-atc .wg-quantity { height: 48px; border-radius: 10px; }
    body.nq-storefront.nq-mobile-product.naqshat-mobile-toolbar .wa-float,
    body.nq-storefront.nq-checkout-page .wa-float {
        top: auto !important;
        bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    }
    body.nq-storefront.nq-checkout-page.naqshat-mobile-toolbar,
    body.nq-storefront.nq-checkout-page { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ── Product page ──────────────────────────────────────────────────── */
body.nq-storefront .nq-assurance {
    list-style: none; margin: 16px 0 0; padding: 0;
    border: 1px solid var(--nq-line); border-radius: 12px; background: #fff; overflow: hidden;
}
body.nq-storefront .nq-assurance li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.5; color: var(--nq-ink); }
body.nq-storefront .nq-assurance li + li { border-top: 1px solid var(--nq-line); }
body.nq-storefront .nq-assurance .icon { font-size: 22px; color: #b08750; flex-shrink: 0; }
body.nq-storefront .nq-assurance a { color: inherit; text-decoration: underline; text-decoration-color: #b9c3a4; text-underline-offset: 4px; }
body.nq-storefront .nq-assurance small { display: block; font-size: 13px; color: #867664; }

@media (max-width: 767px) { body.nq-storefront .nq-product-layout .nq-assurance { order: 6; margin: 4px 0 0; } }

/* Long descriptions stay readable in the display face. */
body.nq-storefront .nq-product-layout .ck-content,
body.nq-storefront .nq-product-layout .product-description,
body.nq-storefront .tf-product-info-desc { font-size: 16px; line-height: 1.95; color: #3d4633; letter-spacing: 0; }
body.nq-storefront .option-value-card.selected { border-color: var(--nq-ink) !important; box-shadow: inset 0 0 0 1px var(--nq-ink); background: #f6f1ea; }

/* ── Home trust strip ──────────────────────────────────────────────── */
body.nq-storefront .nq-trust { margin: 6px auto 26px; }
body.nq-storefront .nq-trust ul {
    list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
body.nq-storefront .nq-trust li a,
body.nq-storefront .nq-trust li > span {
    display: flex; align-items: center; gap: 12px; height: 100%;
    background: #fff; border: 1px solid var(--nq-line); border-radius: 12px; padding: 14px 16px; color: var(--nq-ink);
}
body.nq-storefront .nq-trust .icon { font-size: 26px; color: #b08750; flex-shrink: 0; }
body.nq-storefront .nq-trust b { display: block; font-weight: 400; font-size: 17px; line-height: 1.4; }
body.nq-storefront .nq-trust small { display: block; font-size: 13px; line-height: 1.5; color: #867664; }
@media (max-width: 991px) {
    body.nq-storefront .nq-trust ul { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    body.nq-storefront .nq-trust li a, body.nq-storefront .nq-trust li > span { padding: 11px 10px; gap: 9px; border-radius: 10px; }
    body.nq-storefront .nq-trust .icon { font-size: 22px; }
    body.nq-storefront .nq-trust b { font-size: 15px; }
    body.nq-storefront .nq-trust small { font-size: 12px; }
}

/* ── Cart drawer and cart page ─────────────────────────────────────── */
body.nq-storefront #shoppingCart img,
body.nq-storefront .tf-page-cart img { background: #f1eae2; border-radius: 8px; object-fit: cover; }
@media (max-width: 767px) {
    /* The success toast must not sit on the drawer title and close button. */
    body.nq-storefront .swal2-container.swal2-top,
    body.nq-storefront .swal2-container.swal2-top-end,
    body.nq-storefront .swal2-container.swal2-top-start {
        top: auto !important; bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
        inset-inline: 0 !important; width: 100% !important; justify-content: center; pointer-events: none;
    }
    body.nq-storefront .swal2-toast { border-radius: 12px !important; box-shadow: 0 8px 28px #25271926 !important; }
    body.nq-storefront .tf-page-title, body.nq-storefront .page-title { padding-block: 14px 10px !important; }
    body.nq-storefront .tf-page-title .heading, body.nq-storefront .page-title .heading { font-size: 26px !important; }
}

/* ── Checkout ──────────────────────────────────────────────────────── */
body.nq-storefront .chk-footer { border-top-color: var(--nq-line); padding-bottom: env(safe-area-inset-bottom, 0px) !important; }
body.nq-storefront .chk-footer__btn { min-height: 52px; border-radius: 12px; font-size: 18px; background: var(--nq-ink); }
body.nq-storefront .chk-delivery-label { color: var(--nq-ink); font-size: 15px; }
body.nq-storefront .chk-delivery-sub { color: #867664; font-size: 13px; }
body.nq-storefront #do-asap-label { color: var(--nq-ink); }
body.nq-storefront .chk-delivery-option.selected { border-color: var(--nq-ink); background: #f6f1ea; }
body.nq-storefront .chk-section-header { font-size: 15px; color: #867664; }
body.nq-storefront .chk-add-addr-form input,
body.nq-storefront .chk-add-addr-form select,
body.nq-storefront .chk-add-addr-form textarea { font-size: 16px !important; } /* stops iOS zoom on focus */
body.nq-storefront .nq-addr-more {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
    margin: 2px 0 12px; padding: 11px 14px; border: 1px dashed #c9cfbb; border-radius: 10px;
    background: #fbfbf8; color: #4b5540; font: inherit; font-size: 15px; text-align: start;
}
body.nq-storefront .nq-addr-more::after { content: '+'; font-size: 20px; line-height: 1; }
body.nq-storefront .nq-addr-more[aria-expanded="true"]::after { content: '–'; }
body.nq-storefront .nq-addr-optional[hidden] { display: none !important; }
body.nq-storefront .nq-addr-solo { grid-template-columns: 1fr !important; }
body.nq-storefront .nq-ship-hint { font-size: 13px; color: #867664; }
body.nq-storefront .nq-cod-note {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 6px 16px 0; font-size: 13px; color: #867664; background: #fff;
}
body.nq-storefront .nq-cod-note .icon { font-size: 17px; color: #b08750; }

/* ── Confirmation / tracking: brand colours instead of the platform default red ── */
body.nq-storefront .nq-confirm-hero { background: linear-gradient(160deg, #252719 0%, #3a3c2b 100%) !important; }
body.nq-storefront footer a[href^="tel:"] > span:first-child,
body.nq-storefront footer a[href^="tel:"] > div:first-child { background: #3a3c2b !important; }

/* ── Empty states: brand tint instead of the platform pink, no emoji tips ── */
body.nq-storefront #page-cart-empty svg circle:first-child { fill: #f1eae2; }
body.nq-storefront .srch-empty-tips { display: none; }

/* Tracking detail icons: brand tint instead of the platform pink. */
body.nq-storefront [style*="#FFF0F2"] { background: #f1eae2 !important; }

/* ── Checkout: one governorate-and-area picker in a bottom sheet (owner request 2026-11-20) ── */
body.nq-storefront .nq-area-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px;
    padding: 12px 14px; border: 1.5px solid #e0e0e0; border-radius: 10px; background: #fff; color: #9a9a9a;
    font: inherit; font-size: 16px; text-align: start; cursor: pointer;
}
body.nq-storefront .nq-area-trigger.has-value { color: var(--nq-ink); }
body.nq-storefront .nq-area-trigger:focus-visible { outline: 2px solid var(--nq-ink); outline-offset: 2px; }
body.nq-storefront .nq-area-field input.chk-input-error ~ .nq-area-trigger { border-color: #e53935; box-shadow: 0 0 0 3px rgba(229,57,53,.12); }
body.nq-area-open { overflow: hidden; }
.nq-area-sheet { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: flex-end; justify-content: center; background: rgba(15,22,4,0); transition: background .18s ease; }
.nq-area-sheet[hidden] { display: none; }
.nq-area-sheet.is-open { background: rgba(15,22,4,.5); }
.nq-area-sheet__panel {
    display: flex; flex-direction: column; width: 100%; max-width: 560px; height: 80vh; height: 80dvh;
    background: #fff; border-radius: 22px 22px 0 0; transform: translateY(100%); transition: transform .2s ease;
    padding-bottom: env(safe-area-inset-bottom, 0px); overflow: hidden;
}
.nq-area-sheet.is-open .nq-area-sheet__panel { transform: none; }
.nq-area-sheet__head { flex: none; padding: 8px 16px 12px; border-bottom: 1px solid #ecebe4; background: #fff; }
.nq-area-sheet__grip { display: block; width: 42px; height: 4px; margin: 0 auto 10px; border-radius: 4px; background: #d9d8d0; }
.nq-area-sheet__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.nq-area-sheet__bar strong { font-size: 19px; font-weight: 400; color: #252719; }
.nq-area-sheet__close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 50%; background: #eeede7; color: #252719; line-height: 0; cursor: pointer; }
.nq-area-sheet__close svg { display: block; }
.nq-area-sheet__search {
    width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid #dcdbd2; border-radius: 12px; background: #f8f6f1;
    font: inherit; font-size: 17px; color: #252719; text-align: start; -webkit-appearance: none; appearance: none;
}
.nq-area-sheet__search::placeholder { color: #8a917c; text-align: start; }
.nq-area-sheet__search::-webkit-search-cancel-button { -webkit-appearance: none; }
.nq-area-sheet__search:focus { outline: none; border-color: #252719; background: #fff; }
.nq-area-sheet__list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.nq-area-group__head {
    position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin: 0;
    padding: 10px 16px; background: #f3ede6; border-bottom: 1px solid #e6dccf; color: #252719; font-size: 18px; font-weight: 400;
}
.nq-area-group__head small { min-width: 28px; padding: 1px 8px; border-radius: 20px; background: #fff; color: #867664; font-size: 13px; text-align: center; }
.nq-area-option {
    display: block; width: 100%; min-height: 52px; padding: 13px 20px; border: 0; border-bottom: 1px solid #f1f0ea;
    background: #fff; color: #3a3c2b; font: inherit; font-size: 17px; text-align: start; cursor: pointer;
}
.nq-area-option[hidden], .nq-area-group[hidden], .nq-area-sheet__list[hidden] { display: none; }
.nq-area-option:hover, .nq-area-option:focus-visible { background: #f8f6f1; outline: none; }
.nq-area-option.is-selected { background: #f6f1ea; color: #252719; box-shadow: inset 4px 0 0 #cdbdae; }
[dir="rtl"] .nq-area-option.is-selected { box-shadow: inset -4px 0 0 #cdbdae; }
.nq-area-sheet__empty { flex: 1; margin: 0; padding: 36px 20px; color: #867664; font-size: 16px; text-align: center; }
.nq-area-sheet__foot { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid #e6dccf; background: #faf7f2; }
.nq-area-sheet__foot[hidden] { display: none; }
.nq-area-sheet__foot p { flex: 1; margin: 0; color: #3a3c2b; font-size: 14px; line-height: 1.6; }
.nq-area-sheet__foot button { flex: none; min-height: 44px; padding: 0 20px; border: 0; border-radius: 10px; background: #252719; color: #fff; font: inherit; font-size: 16px; cursor: pointer; }
@media (min-width: 768px) {
    .nq-area-sheet { align-items: center; }
    .nq-area-sheet__panel { height: min(80vh, 720px); border-radius: 22px; }
    .nq-area-sheet__grip { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nq-area-sheet, .nq-area-sheet__panel { transition: none; } }

/* ── Product page: custom canvas size and frame add-on (owner request 2026-11-20) ── */
body.nq-storefront .nq-custom-size-label, body.nq-storefront .nq-frame-label { margin: 0; cursor: pointer; }
body.nq-storefront .nq-custom-size-label:focus-visible .option-value-card,
body.nq-storefront .nq-frame-label:focus-visible .option-value-card { outline: 2px solid var(--nq-ink); outline-offset: 2px; }
body.nq-storefront .nq-custom-size-label { flex: 1 1 0; min-width: 0; }
body.nq-storefront .nq-custom-size-label .option-value-card { border-style: dashed; height: 100%; }
body.nq-storefront .nq-custom-size-label .option-value-card.selected { border-style: solid; }
body.nq-storefront .nq-custom-size-panel { margin-top: 10px; padding: 12px; border: 1px solid #e0d5c8; border-radius: 12px; background: #faf7f2; }
body.nq-storefront .nq-custom-size-fields { display: flex; align-items: flex-end; gap: 10px; }
body.nq-storefront .nq-custom-size-fields label { flex: 1; margin: 0; }
body.nq-storefront .nq-custom-size-fields label span { display: block; margin-bottom: 4px; color: #867664; font-size: 14px; }
body.nq-storefront .nq-custom-size-fields input {
    width: 100%; height: 50px; padding: 0 12px; border: 1.5px solid #cfd6c2; border-radius: 10px; background: #fff;
    color: var(--nq-ink); font-size: 18px; text-align: center; -moz-appearance: textfield; appearance: textfield;
}
body.nq-storefront .nq-custom-size-fields input::-webkit-outer-spin-button,
body.nq-storefront .nq-custom-size-fields input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.nq-storefront .nq-custom-size-fields input:focus { outline: none; border-color: var(--nq-ink); }
body.nq-storefront .nq-custom-size-x { padding-bottom: 12px; color: #867664; font-size: 20px; }
body.nq-storefront .nq-custom-size-hint { margin: 9px 0 0; color: #867664; font-size: 14px; line-height: 1.6; }
body.nq-storefront .nq-custom-size-hint.is-error { color: #c62828; }
body.nq-storefront .nq-frame-group { margin-top: 14px; }
body.nq-storefront .nq-frame-values { display: flex; gap: 7px; }
body.nq-storefront .nq-frame-label { flex: 1 1 0; min-width: 0; }
body.nq-storefront .nq-frame-label .option-value-card { min-height: 56px; }
