/* Makkah store: ordering views (cards / quick list / large) and ordering helpers. */

/* ===== quick list: one line per item, built for repeat wholesale ordering ===== */
html[data-mk-view="list"] .araa-store .araa-store__rail,
html[data-mk-view="list"] .araa-store .araa-store__rail.araa-store__rail--grid,
html[data-mk-view="list"] .araa-store .araa-store__grid {
    display: flex; flex-direction: column; gap: 0; overflow: visible; padding: 0;
    background: #fff; border: 1px solid var(--mk-border); border-radius: 14px;
}
html[data-mk-view="list"] .araa-store .araa-store__card {
    display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(96px, auto) auto; align-items: center; column-gap: 14px;
    width: 100%; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--mk-border); border-radius: 0; box-shadow: none; transform: none; background: transparent; text-align: start;
}
html[data-mk-view="list"] .araa-store .araa-store__card:last-child { border-bottom: 0; }
html[data-mk-view="list"] .araa-store .araa-store__card:hover { background: var(--mk-tint); transform: none; box-shadow: none; }
html[data-mk-view="list"] .araa-store .araa-store__card-media { width: 52px; height: 52px; min-height: 0; aspect-ratio: auto; border-radius: 10px; border: 1px solid var(--mk-border); overflow: hidden; }
html[data-mk-view="list"] .araa-store .araa-store__card-media img { padding: 3px; }
html[data-mk-view="list"] .araa-store .araa-store__badge { display: none; }
html[data-mk-view="list"] .araa-store .araa-store__card-body { display: contents; }
html[data-mk-view="list"] .araa-store .araa-store__card h3 { grid-column: 2; margin: 0; min-height: 0; font-size: 15px; text-align: start; -webkit-line-clamp: 2; }
html[data-mk-view="list"] .araa-store .araa-store__price { grid-column: 3; margin: 0; font-size: 17px; white-space: nowrap; justify-content: flex-start; }
html[data-mk-view="list"] .araa-store .mk-unit { display: none; }
html[data-mk-view="list"] .araa-store .mk-buy { grid-column: 4; display: flex; margin: 0; gap: 8px; }
html[data-mk-view="list"] .araa-store .araa-store__arrows { display: none; }
@media (max-width: 640px) {
    html[data-mk-view="list"] .araa-store .araa-store__card { grid-template-columns: 44px minmax(0, 1fr) auto; row-gap: 6px; }
    html[data-mk-view="list"] .araa-store .araa-store__card-media { width: 44px; height: 44px; grid-row: 1 / span 2; }
    html[data-mk-view="list"] .araa-store .mk-buy { grid-column: 2 / span 2; justify-content: flex-end; }
}

/* ===== large: bigger text and touch targets ===== */
html[data-mk-view="large"] .araa-store { font-size: 18px; }
html[data-mk-view="large"] .araa-store .araa-store__card h3 { font-size: 20px; line-height: 1.5; }
html[data-mk-view="large"] .araa-store .araa-store__price { font-size: 28px; }
html[data-mk-view="large"] .araa-store .mk-buy { grid-template-columns: 1fr; }
html[data-mk-view="large"] .araa-store .mk-qty { justify-content: center; }
html[data-mk-view="large"] .araa-store .mk-qty button { width: 56px; height: 52px; font-size: 26px; }
html[data-mk-view="large"] .araa-store .mk-qty input { width: 70px; height: 52px; font-size: 21px; }
html[data-mk-view="large"] .araa-store .mk-add { min-height: 54px; font-size: 18px; }
html[data-mk-view="large"] .araa-store .araa-store__rail { grid-auto-columns: calc((100% - 18px) / 2); }
html[data-mk-view="large"] .araa-store .araa-store__rail.araa-store__rail--grid { grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
@media (max-width: 560px) { html[data-mk-view="large"] .araa-store .araa-store__rail { grid-auto-columns: 82%; } }

/* ===== sticky category strip (home) ===== */
.mk-strip { position: sticky; z-index: 30; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--mk-border); }
.mk-strip__in { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; max-width: 1280px; margin: 0 auto; }
.mk-strip__in::-webkit-scrollbar { display: none; }
.mk-strip a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--mk-border); background: #fff; color: var(--mk-pd); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.mk-strip a small { font-size: 11px; opacity: .7; }
.mk-strip a.is-active { background: var(--mk-pd); border-color: var(--mk-pd); color: #fff; }
.araa-store__category, #araa-store-latest, #araa-store-offers { scroll-margin-top: 140px; }

/* ===== minimum-order progress above the cart bar ===== */
.mk-progress { width: min(720px, 100%); margin: 0 auto 6px; padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--mk-border); box-shadow: 0 6px 18px rgba(8, 60, 54, .18); pointer-events: auto; font-size: 13px; font-weight: 700; color: #12302d; }
.mk-progress__track { height: 7px; border-radius: 99px; background: #e8eeec; overflow: hidden; margin-top: 5px; }
.mk-progress__fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--mk-pl), var(--mk-accent)); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.mk-progress.is-done { background: #ecfdf3; border-color: #a7e3bd; color: #14663b; }

/* ===== fly-to-cart + bump ===== */
.mk-fly { position: fixed; z-index: 120; width: 54px; height: 54px; border-radius: 50%; background: #fff center / 80% no-repeat; border: 3px solid var(--mk-accent); box-shadow: 0 8px 22px rgba(0, 0, 0, .25); pointer-events: none; }
.mk-bump { animation: mk-bump .45s ease; }
@keyframes mk-bump { 40% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .mk-progress__fill { transition: none; } .mk-bump { animation: none; } }

/* ===== view menu extras ===== */
.mk-theme-opt .ti { flex: none; width: 34px; text-align: center; font-size: 22px; color: var(--mk-p); }
.mk-night { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; margin-top: 6px; padding: 10px; border: 0; border-top: 1px solid var(--mk-border); background: transparent; font: inherit; font-weight: 700; font-size: 14px; color: inherit; cursor: pointer; }
.mk-night i.sw { width: 40px; height: 22px; border-radius: 99px; background: #cbd5d1; position: relative; flex: none; transition: background .2s; }
.mk-night i.sw::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; }
.mk-night[aria-pressed="true"] i.sw { background: var(--mk-p); }
.mk-night[aria-pressed="true"] i.sw::after { inset-inline-start: 21px; }

/* ===== night adjustments for the new parts ===== */
html[data-mk-theme="night"] .mk-strip { background: rgba(14, 26, 25, .95); border-color: #25403d; }
html[data-mk-theme="night"] .mk-strip a { background: #15282a; border-color: #25403d; color: #6ee7b7; }
html[data-mk-theme="night"] .mk-strip a.is-active { background: #34d399; color: #04241b; }
html[data-mk-theme="night"] .mk-progress { background: #15282a; border-color: #25403d; color: #e3efec; }
html[data-mk-theme="night"][data-mk-view="list"] .araa-store .araa-store__rail,
html[data-mk-theme="night"][data-mk-view="list"] .araa-store .araa-store__grid { background: #15282a; border-color: #25403d; }
html[data-mk-theme="night"][data-mk-view="list"] .araa-store .araa-store__card { background: transparent; border-color: #25403d; }

/* keep the header on one line on mid-size screens: icon-only view button */
@media (max-width: 1100px) { .mk-themes__btn span { display: none; } .mk-themes__btn { padding: 0 11px; } }

/* phones: header fits the screen, banner text stays readable over the artwork */
@media (max-width: 560px) {
    .araa-store .araa-store__login-btn span { display: none; }
    .araa-store .araa-store__login-btn { padding: 0 12px; min-width: 0; }
    .araa-store .araa-store__header-tools { gap: 6px; }
    .araa-store .araa-store__brand strong { font-size: 15px; }
}
@media (max-width: 760px) {
    .araa-store .araa-store__banner--makkah::after { background: linear-gradient(90deg, rgba(4, 45, 40, .62), rgba(4, 45, 40, .88)) !important; }
}

/* list thumbnails must not inherit the large card padding; night brand name stays readable */
html[data-mk-view="list"] .araa-store .araa-store__card-media img,
html[data-mk-view="list"] .araa-store .araa-store__card-media img.araa-store__ph { width: 100%; height: 100%; padding: 2px; object-fit: contain; }
html[data-mk-theme="night"] .araa-store__header strong { color: #f1f8f6 !important; }
html[data-mk-theme="night"] .araa-store__header small { color: #6ee7b7 !important; }

/* hero stage: blurred copy of the slide fills the width, the sharp artwork sits framed in the middle */
.araa-store .araa-store__hero.araa-store__hero--banners { background: var(--mk-pd) !important; overflow: hidden; }
.araa-store .araa-store__slide--banner { padding: 22px 16px 58px; isolation: isolate; overflow: hidden; }
.araa-store__slide--banner::before { content: ""; position: absolute; inset: -40px; z-index: -2; background: var(--mk-bg) center / cover no-repeat; filter: blur(28px) saturate(1.15); }
.araa-store__slide--banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 52, 45, .42), rgba(5, 52, 45, .82)); }
.araa-store .araa-store__slide--banner img { display: block; width: 100%; max-width: min(1120px, calc(min(60vh, 520px) * 1672 / 941)); height: auto; margin: 0 auto; border-radius: 18px; border: 2px solid rgba(242, 201, 76, .85); box-shadow: 0 26px 60px rgba(0, 0, 0, .45); }
.araa-store .araa-store__hero--banners .araa-store__dots { bottom: 40px; z-index: 3; }

.mk-arrow { position: absolute; top: calc(50% - 40px); z-index: 4; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); color: #fff; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.mk-arrow:hover, .mk-arrow:focus-visible { background: var(--mk-accent); color: #12302d; }
.mk-arrow--prev { right: max(14px, calc(50% - 640px)); }
.mk-arrow--next { left: max(14px, calc(50% - 640px)); }

/* floating feature bar overlapping the stage */
.mk-herobar { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; align-items: center; width: min(1080px, calc(100% - 24px)); margin: -30px auto 8px; padding: 12px 14px; background: #fff; border: 1px solid var(--mk-border); border-radius: 18px; box-shadow: 0 18px 40px rgba(8, 60, 54, .16); }
.mk-herobar__item { display: flex; align-items: center; gap: 10px; padding: 0 8px; border-inline-end: 1px solid var(--mk-border); min-width: 0; }
.mk-herobar__item:nth-of-type(3) { border-inline-end: 0; }
.mk-herobar__item .ti { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--mk-tint); color: var(--mk-p); font-size: 24px; }
.mk-herobar__item b { display: block; font-size: 15px; color: #12302d; line-height: 1.4; }
.mk-herobar__item span { display: block; font-size: 12.5px; color: #5b6b68; line-height: 1.5; }
.mk-herobar__cta { display: inline-flex; align-items: center; gap: 8px; justify-content: center; padding: 13px 24px; border-radius: 12px; background: var(--mk-accent); color: #3a2a00 !important; font-weight: 800; text-decoration: none; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.mk-herobar__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(201, 143, 0, .35); }

html[data-mk-theme="night"] .mk-herobar { background: #15282a; border-color: #25403d; }
html[data-mk-theme="night"] .mk-herobar__item { border-color: #25403d; }
html[data-mk-theme="night"] .mk-herobar__item b { color: #f1f8f6; }
html[data-mk-theme="night"] .mk-herobar__item span { color: #9fbdb7; }

@media (max-width: 760px) {
    .araa-store .araa-store__slide--banner { padding: 10px 8px 46px; }
    .araa-store .araa-store__slide--banner img { border-radius: 12px; max-width: none; }
    .araa-store .araa-store__hero--banners .araa-store__dots { bottom: 30px; }
    .mk-arrow { display: none; }
    .mk-herobar { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: -20px; padding: 10px 8px; gap: 4px; }
    .mk-herobar__item { flex-direction: column; text-align: center; gap: 4px; padding: 0 2px; }
    .mk-herobar__item .ti { width: 36px; height: 36px; font-size: 20px; }
    .mk-herobar__item b { font-size: 12px; }
    .mk-herobar__item span { display: none; }
    .mk-herobar__cta { grid-column: 1 / -1; margin-top: 6px; padding: 11px; }
}
@media (prefers-reduced-motion: reduce) { .mk-herobar__cta { transition: none; } }

/* numbered steps in the floating bar */
.mk-herobar__item .mk-step { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--mk-p); color: #fff; font-style: normal; font-weight: 800; font-size: 18px; }
@media (max-width: 760px) { .mk-herobar__item .mk-step { width: 32px; height: 32px; font-size: 15px; } }

/* ===== side cards: dark glass with a gold edge ===== */
.mk-side { display: none; }
@media (min-width: 1500px) {
    .mk-side { display: block; position: absolute; z-index: 4; top: calc(50% - 22px); width: 288px; margin-top: -190px; padding: 20px 18px 18px; border-radius: 22px; color: #fff;
        background: linear-gradient(160deg, rgba(11, 90, 82, .92), rgba(4, 38, 34, .94)); backdrop-filter: blur(14px);
        border: 1px solid transparent; box-shadow: 0 30px 60px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .12); }
    .mk-side::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
        background: linear-gradient(150deg, #ffe9a3 0%, rgba(242, 201, 76, .15) 35%, rgba(242, 201, 76, .15) 65%, #f2c94c 100%);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
    .mk-side--right { right: max(16px, calc((50% - 462px) / 2 - 154px)); animation: mk-in-r .7s cubic-bezier(.2, .8, .2, 1) both; }
    .mk-side--left { left: max(16px, calc((50% - 462px) / 2 - 154px)); animation: mk-in-l .7s cubic-bezier(.2, .8, .2, 1) .1s both; }
    @keyframes mk-in-r { from { opacity: 0; transform: translateX(40px); } }
    @keyframes mk-in-l { from { opacity: 0; transform: translateX(-40px); } }

    .mk-side__ribbon { position: absolute; top: -12px; left: 18px; padding: 3px 16px; border-radius: 99px; background: linear-gradient(90deg, #ffe28a, #f2b705); color: #3a2a00; font-size: 12.5px; font-weight: 800; box-shadow: 0 8px 18px rgba(242, 183, 5, .45); }
    .mk-side > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 19px; color: #fff !important; }
    .mk-side > h3 .ti { font-size: 24px; color: #f2c94c; }

    .mk-picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
    .mk-picks li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .09); transition: background .2s, transform .2s; }
    .mk-picks li:hover { background: rgba(255, 255, 255, .17); transform: translateY(-2px); }
    .mk-picks__img { flex: none; width: 48px; height: 48px; padding: 3px; border-radius: 12px; background: #fff; }
    .mk-picks__img img { width: 100%; height: 100%; object-fit: contain; }
    .mk-picks__info { flex: 1; min-width: 0; }
    .mk-picks__info h3 { margin: 0; font-size: 13.5px; font-weight: 700; color: #fff !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.6; }
    .mk-picks__info b { font-size: 15px; color: #ffd966; }
    .mk-picks__add { flex: none; width: 38px; height: 38px; border: 0; border-radius: 12px; background: #f2c94c; color: #3a2a00; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s; }
    .mk-picks__add:hover { transform: scale(1.1) rotate(90deg); }
    .mk-picks__add.is-done { background: #34d399; transform: none; }

    .mk-status { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
    .mk-status i { width: 11px; height: 11px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: mk-pulse 1.8s infinite; }
    .mk-status.is-closed i { background: #fbbf24; animation: none; }
    @keyframes mk-pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
    .mk-next { text-align: center; padding: 14px 10px; border-radius: 16px; background: rgba(255, 255, 255, .09); border: 1px dashed rgba(242, 201, 76, .55); }
    .mk-next span { display: block; font-size: 12.5px; opacity: .85; }
    .mk-next strong { display: block; margin-top: 2px; font-size: 27px; font-weight: 800; color: #ffd966; line-height: 1.4; }
    .mk-facts { list-style: none; margin: 12px 0 0; padding: 0; }
    .mk-facts li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; }
    .mk-facts .ti { font-size: 20px; color: #f2c94c; }

    .mk-side__btn { position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; padding: 11px; border-radius: 13px; background: linear-gradient(90deg, #ffe28a, #f2b705); color: #3a2a00 !important; font-weight: 800; text-decoration: none; }
    .mk-side__btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; left: -60px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent); transform: skewX(-20deg); animation: mk-shine 3.6s ease-in-out infinite; }
    @keyframes mk-shine { 0%, 65% { left: -60px; } 100% { left: 110%; } }

    .mk-arrow--prev { right: calc(50% - 486px); }
    .mk-arrow--next { left: calc(50% - 486px); }
}
@media (prefers-reduced-motion: reduce) { .mk-side, .mk-status i, .mk-side__btn::after { animation: none !important; } .mk-picks li, .mk-picks__add { transition: none; } }

/* خلفية موحّدة للصفحة كلها: vendor.css يثبت الطول على 100% وخلفية html تتبع وضع الجهاز */
html:root { height: auto; min-height: 100%; background: #fff; color-scheme: light; }
html body { height: auto; min-height: 100vh; }
html:root[data-mk-theme="night"] { background: #0e1a19; color-scheme: dark; }
html[data-mk-theme="night"] body { background: #0e1a19; }
