/* ============================================================
   MOHIR QO'LLAR — Premium landing (home) styles
   Ported from the approved design (MohirQollar.dc.html).
   Self-contained: this page does NOT load Bootstrap/app.css.
   ============================================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --accent: #06b6d4;
    --secondary: #f59e0b;
    --ink: #0b1220;
    --muted: #64748b;
    --surface: #ffffff;
    --surface-2: #f6f8fc;
    --border: #e6ebf3;
    --glass: rgba(255, 255, 255, .72);
    --glass-strong: rgba(255, 255, 255, .86);
    --shadow-s: 0 1px 2px rgba(11, 18, 32, .06), 0 4px 12px rgba(11, 18, 32, .05);
    --shadow-m: 0 2px 6px rgba(11, 18, 32, .06), 0 14px 34px rgba(11, 18, 32, .09);
    --shadow-l: 0 4px 10px rgba(11, 18, 32, .07), 0 30px 70px rgba(11, 18, 32, .14);
    --ring: rgba(37, 99, 235, .35);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
    --ink: #eef3fb;
    --muted: #94a3b8;
    --surface: #0b1220;
    --surface-2: #0f172a;
    --border: #1e293b;
    --glass: rgba(15, 23, 42, .66);
    --glass-strong: rgba(15, 23, 42, .86);
    --shadow-s: 0 1px 2px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .35);
    --shadow-m: 0 2px 6px rgba(0, 0, 0, .5), 0 14px 34px rgba(0, 0, 0, .45);
    --shadow-l: 0 4px 10px rgba(0, 0, 0, .5), 0 30px 70px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: Inter, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 8px; }
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

@keyframes mq-sheen { 0% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(320%) skewX(-18deg); } }
@keyframes mq-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes mq-drift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(3%, -4%, 0) scale(1.08); } }

/* ---------- shell ---------- */
.mq-root { min-height: 100vh; background: var(--surface); color: var(--ink); }
.mq-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 120;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 18px rgba(6, 182, 212, .55); transition: width .12s linear;
}

/* ---------- nav ---------- */
.mq-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 110;
    backdrop-filter: blur(6px) saturate(140%); -webkit-backdrop-filter: blur(6px) saturate(140%);
    background: transparent; border-bottom: 1px solid transparent;
    transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease), box-shadow .4s var(--ease);
}
.mq-nav-inner { max-width: 1240px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 18px; }
.mq-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: 0 0 auto; }
.mq-logo {
    width: 34px; height: 34px; border-radius: 11px; overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
    letter-spacing: -.02em; box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}
.mq-logo img { width: 100%; height: 100%; object-fit: cover; }
.mq-brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.035em; color: var(--ink); }

.mq-navlinks { display: none; list-style: none; margin: 0; padding: 0; gap: 6px; flex: 1 1 auto; justify-content: center; }
.mq-link {
    position: relative; display: inline-block; padding: 10px 14px; border-radius: 10px;
    font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.mq-link:hover { color: var(--primary); }
.mq-underline {
    position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.mq-link:hover .mq-underline, .mq-link.is-active .mq-underline { transform: scaleX(1); }

.mq-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mq-search {
    display: none; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border); min-width: 210px;
    transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.mq-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.mq-search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 14px; }
.mq-iconbtn {
    position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px;
    border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; color: var(--ink);
    transition: transform .4s var(--ease), background .3s var(--ease);
}
.mq-iconbtn:hover { transform: translateY(-2px); color: var(--primary); }
.mq-cart-badge {
    position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 99px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
    font-size: 11.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(37, 99, 235, .4);
}
.mq-btn {
    height: 42px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer; color: #fff;
    font-size: 14.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 8px 22px rgba(37, 99, 235, .35); transition: box-shadow .4s var(--ease); white-space: nowrap;
}
.mq-btn:hover { box-shadow: 0 14px 30px rgba(37, 99, 235, .45); color: #fff; }
.mq-avatar-btn { width: 42px; height: 42px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); flex: 0 0 auto; }
.mq-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- hero ---------- */
.mq-hero { position: relative; overflow: hidden; padding: 150px 20px 96px; isolation: isolate; }
.mq-hero-bg {
    position: absolute; inset: 0; z-index: -3;
    background:
        radial-gradient(120% 90% at 50% -10%, rgba(96, 165, 250, .28), transparent 60%),
        radial-gradient(80% 60% at 85% 10%, rgba(6, 182, 212, .22), transparent 65%),
        linear-gradient(180deg, var(--surface-2), var(--surface) 70%);
}
.mq-aurora {
    position: absolute; z-index: -2; left: 50%; top: 32%; width: min(1000px, 120vw); height: min(1000px, 120vw);
    margin-left: -50%; margin-top: -50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(37, 99, 235, .30), rgba(6, 182, 212, .16) 45%, transparent 72%);
    filter: blur(30px); transition: transform .9s var(--ease); animation: mq-drift 16s ease-in-out infinite;
}
.mq-hero-grid {
    position: absolute; inset: 0; z-index: -2; opacity: .5;
    background-image: linear-gradient(rgba(100, 116, 139, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(100, 116, 139, .14) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(70% 55% at 50% 30%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000, transparent 75%);
}
.mq-orb {
    position: absolute; z-index: -1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4);
    backdrop-filter: blur(8px); animation: mq-float 11s ease-in-out infinite;
}
.mq-orb.o1 { left: 6%; top: 22%; width: 170px; height: 170px; background: linear-gradient(140deg, rgba(255, 255, 255, .55), rgba(96, 165, 250, .35)); box-shadow: inset 0 12px 30px rgba(255, 255, 255, .35), 0 30px 60px rgba(37, 99, 235, .18); }
.mq-orb.o2 { right: 8%; top: 16%; width: 110px; height: 110px; background: linear-gradient(140deg, rgba(255, 255, 255, .5), rgba(6, 182, 212, .35)); box-shadow: inset 0 10px 24px rgba(255, 255, 255, .35), 0 24px 50px rgba(6, 182, 212, .2); animation-duration: 9s; animation-delay: .8s; }
.mq-orb.o3 { right: 18%; bottom: 8%; width: 210px; height: 210px; background: linear-gradient(140deg, rgba(255, 255, 255, .4), rgba(37, 99, 235, .28)); box-shadow: inset 0 14px 34px rgba(255, 255, 255, .3), 0 34px 70px rgba(37, 99, 235, .2); animation-duration: 13s; animation-delay: .4s; }

.mq-hero-inner { max-width: 960px; margin: 0 auto; text-align: center; position: relative; }
.mq-eyebrow {
    display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
    background: var(--glass-strong); border: 1px solid var(--border); box-shadow: var(--shadow-s);
    font-size: 13.5px; font-weight: 600; color: var(--muted); backdrop-filter: blur(12px);
}
.mq-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(6, 182, 212, .18); }
.mq-title { margin: 24px 0 0; font-size: clamp(38px, 7.4vw, 80px); line-height: 1.03; letter-spacing: -.045em; font-weight: 800; }
.mq-title .grad { background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mq-sub { margin: 22px auto 0; max-width: 620px; font-size: clamp(16px, 2.1vw, 20px); line-height: 1.6; color: var(--muted); }
.mq-cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.mq-cta {
    display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 30px; border-radius: 999px;
    color: #fff; font-weight: 650; font-size: 16.5px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 12px 34px rgba(37, 99, 235, .4); transition: box-shadow .5s var(--ease);
}
.mq-cta:hover { box-shadow: 0 20px 44px rgba(37, 99, 235, .5); color: #fff; }
.mq-cta-ghost {
    display: inline-flex; align-items: center; height: 56px; padding: 0 30px; border-radius: 999px;
    font-weight: 650; font-size: 16.5px; color: var(--ink); background: var(--glass-strong);
    border: 1px solid var(--border); backdrop-filter: blur(12px); box-shadow: var(--shadow-s);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.mq-cta-ghost:hover { box-shadow: var(--shadow-m); color: var(--ink); transform: translateY(-2px); }

.mq-stats {
    margin: 64px auto 0; max-width: 760px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    padding: 22px; border-radius: 24px; background: var(--glass); border: 1px solid var(--border);
    backdrop-filter: blur(16px); box-shadow: var(--shadow-m);
}
.mq-stat { text-align: center; padding: 6px; }
.mq-stat.mid { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.mq-stat-num { font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; letter-spacing: -.04em; }
.mq-stat-lbl { margin-top: 4px; font-size: 13.5px; font-weight: 500; color: var(--muted); }

/* ---------- generic section ---------- */
.mq-section { padding: 96px 20px 0; }
.mq-container { max-width: 1240px; margin: 0 auto; }
.mq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mq-head-center { text-align: center; max-width: 620px; margin: 0 auto; }
.mq-kicker { font-size: 13.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.mq-h2 { margin: 10px 0 0; font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -.04em; font-weight: 800; }
.mq-head-center .mq-sub2 { margin: 12px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.mq-all { font-weight: 600; font-size: 15px; }

/* ---------- features ---------- */
.mq-features { padding: 0 20px; }
.mq-features-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mq-feature {
    display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px;
    background: var(--surface-2); border: 1px solid var(--border);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.mq-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.mq-feature-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; }
.mq-feature-ico.blue { background: rgba(37, 99, 235, .1); color: var(--primary); }
.mq-feature-ico.cyan { background: rgba(6, 182, 212, .12); color: var(--accent); }
.mq-feature-t { font-weight: 650; font-size: 15.5px; }
.mq-feature-d { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- categories scroller ---------- */
.mq-scroller {
    margin-top: 32px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
    gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px;
}
.mq-cat {
    scroll-snap-align: start; padding: 26px 22px 24px; border-radius: 22px; background: var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow-s); color: var(--ink); display: block;
    transition: box-shadow .5s var(--ease), background .5s var(--ease); transform-style: preserve-3d;
}
.mq-cat:hover { box-shadow: var(--shadow-l); background: var(--surface-2); color: var(--ink); }
.mq-cat-ico { font-size: 34px; line-height: 1; }
.mq-cat-name { margin-top: 16px; font-weight: 700; font-size: 17.5px; letter-spacing: -.02em; }
.mq-cat-count { margin-top: 5px; font-size: 13.5px; color: var(--muted); }
.mq-cat-bar { margin-top: 16px; height: 3px; width: 44px; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* ---------- products grid ---------- */
.mq-products { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.mq-product {
    position: relative; border-radius: 24px; overflow: hidden; background: var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow-s);
    transition: box-shadow .5s var(--ease); transform-style: preserve-3d;
}
.mq-product:hover { box-shadow: var(--shadow-l); }
.mq-product-link { color: var(--ink); display: block; }
.mq-product-link:hover { color: var(--ink); }
.mq-product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.mq-product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mq-product:hover .mq-product-media img { transform: scale(1.07); }
.mq-badge {
    position: absolute; top: 12px; left: 12px; padding: 6px 11px; border-radius: 999px; font-size: 12.5px;
    font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 6px 16px rgba(37, 99, 235, .35); z-index: 2;
}
.mq-wish {
    position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 14px; z-index: 3;
    border: 1px solid var(--border); background: var(--glass-strong); backdrop-filter: blur(10px); cursor: pointer;
    display: grid; place-items: center; color: var(--ink); transition: transform .4s var(--ease), color .3s var(--ease);
}
.mq-wish:hover, .mq-wish.is-active { transform: scale(1.08); color: #ef4444; }
.mq-product-body { padding: 16px 18px 20px; }
.mq-product-cat { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mq-product-name { margin: 6px 0 0; font-size: 16.5px; font-weight: 650; letter-spacing: -.02em; line-height: 1.32; }
.mq-rating { margin-top: 10px; display: flex; align-items: center; gap: 7px; }
.mq-stars { color: var(--secondary); font-size: 14px; letter-spacing: 1px; }
.mq-rating-txt { font-size: 13px; color: var(--muted); }
.mq-price-row { margin-top: 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mq-price { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.mq-oldprice { font-size: 14px; color: var(--muted); text-decoration: line-through; }

/* ---------- promo ---------- */
.mq-promo {
    max-width: 1240px; margin: 0 auto; position: relative; overflow: hidden; border-radius: 28px;
    padding: clamp(34px, 5vw, 62px); background: linear-gradient(120deg, var(--primary), var(--accent));
    box-shadow: 0 30px 70px rgba(37, 99, 235, .35);
}
.mq-promo-sheen { position: absolute; top: -30%; left: 0; width: 26%; height: 160%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent); animation: mq-sheen 4.6s var(--ease) infinite; pointer-events: none; }
.mq-promo-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.mq-promo-txt { color: #fff; max-width: 620px; }
.mq-promo-kicker { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.mq-promo-h { margin: 12px 0 0; font-size: clamp(30px, 5.4vw, 54px); letter-spacing: -.045em; font-weight: 900; line-height: 1.04; }
.mq-promo-p { margin: 14px 0 0; font-size: 17px; line-height: 1.6; opacity: .92; }
.mq-promo-cta { display: inline-flex; align-items: center; height: 56px; padding: 0 30px; border-radius: 999px; background: #fff; color: var(--primary-dark); font-weight: 700; font-size: 16.5px; box-shadow: 0 14px 34px rgba(0, 0, 0, .18); transition: transform .5s var(--ease); }
.mq-promo-cta:hover { transform: translateY(-2px); color: var(--primary-dark); }

/* ---------- artisans ---------- */
.mq-artisans { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.mq-artisan {
    text-align: center; padding: 28px 20px 26px; border-radius: 24px; background: var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow-s); color: var(--ink);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease); display: block;
}
.mq-artisan:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); color: var(--ink); }
.mq-artisan-ava { width: 92px; height: 92px; margin: 0 auto; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.mq-artisan-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); }
.mq-artisan-name { margin-top: 16px; font-weight: 700; font-size: 16.5px; letter-spacing: -.02em; }
.mq-artisan-shop { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.mq-artisan-rating { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.mq-artisan-rating .star { color: var(--secondary); }

/* ---------- steps ---------- */
.mq-steps { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.mq-step { padding: 32px 28px; border-radius: 24px; background: var(--surface-2); border: 1px solid var(--border); transition: transform .5s var(--ease); }
.mq-step:hover { transform: translateY(-5px); }
.mq-step-num { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px; box-shadow: 0 10px 24px rgba(37, 99, 235, .32); }
.mq-step-num.n1 { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.mq-step-num.n2 { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.mq-step-num.n3 { background: linear-gradient(135deg, var(--accent), var(--primary-light)); }
.mq-step-t { margin: 20px 0 0; font-size: 21px; font-weight: 750; letter-spacing: -.03em; }
.mq-step-d { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* ---------- reviews ---------- */
.mq-review-nav { display: flex; gap: 10px; }
.mq-review-btn { width: 46px; height: 46px; border-radius: 15px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: transform .4s var(--ease); }
.mq-review-btn:hover { transform: translateY(-2px); color: var(--primary); }
.mq-review-view { margin-top: 30px; overflow: hidden; border-radius: 26px; }
.mq-review-track { display: flex; transition: transform .8s var(--ease); }
.mq-review { flex: 0 0 100%; margin: 0; padding: clamp(28px, 4vw, 48px); background: var(--surface-2); border: 1px solid var(--border); border-radius: 26px; }
.mq-review-stars { color: var(--secondary); font-size: 17px; letter-spacing: 2px; }
.mq-review-quote { margin: 18px 0 0; font-size: clamp(18px, 2.4vw, 26px); line-height: 1.5; letter-spacing: -.025em; font-weight: 550; }
.mq-review-cap { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.mq-review-cap img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); }
.mq-review-name { font-weight: 650; font-size: 15.5px; }
.mq-review-city { font-size: 13.5px; color: var(--muted); }
.mq-dots { margin-top: 18px; display: flex; justify-content: center; gap: 8px; }
.mq-dot { width: 8px; height: 8px; border-radius: 99px; border: 0; cursor: pointer; background: var(--border); transition: width .5s var(--ease), background .5s var(--ease); }
.mq-dot.is-active { width: 26px; background: var(--primary); }

/* ---------- newsletter ---------- */
.mq-news { max-width: 1240px; margin: 0 auto; text-align: center; padding: clamp(40px, 6vw, 72px) 24px; border-radius: 28px; background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow-s); }
.mq-news-h { margin: 0; font-size: clamp(26px, 4vw, 42px); letter-spacing: -.04em; font-weight: 800; }
.mq-news-p { margin: 12px auto 0; max-width: 520px; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.mq-news-form { margin: 28px auto 0; max-width: 520px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.mq-input { flex: 1 1 240px; height: 54px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); outline: none; font-size: 16px; }
.mq-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.mq-news-btn { height: 54px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer; color: #fff; font-weight: 650; font-size: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: 0 12px 30px rgba(37, 99, 235, .35); }
.mq-news-msg { margin-top: 14px; font-size: 13.5px; color: var(--muted); min-height: 20px; }

/* ---------- footer ---------- */
.mq-footer { margin-top: 96px; padding: 64px 20px 32px; background: var(--surface-2); border-top: 1px solid var(--border); }
.mq-foot-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 36px; }
.mq-foot-brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.035em; color: var(--ink); }
.mq-foot-p { margin: 14px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); max-width: 280px; }
.mq-social { margin-top: 18px; display: flex; gap: 10px; }
.mq-social a { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--ink); }
.mq-social a:hover { color: var(--primary); }
.mq-foot-t { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.mq-foot-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.mq-foot-list a { color: var(--muted); }
.mq-foot-list a:hover { color: var(--primary); }
.mq-foot-bottom { max-width: 1240px; margin: 44px auto 0; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.mq-lang { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.mq-lang span { padding: 6px 14px; border-radius: 999px; }
.mq-lang .on { background: var(--primary); color: #fff; font-weight: 600; }

/* ---------- back to top ---------- */
.mq-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 100; width: 50px; height: 50px; border-radius: 17px;
    border: 1px solid var(--border); background: var(--glass-strong); backdrop-filter: blur(12px);
    box-shadow: var(--shadow-m); cursor: pointer; display: grid; place-items: center; color: var(--ink);
    opacity: 0; transform: translateY(16px); pointer-events: none;
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.mq-top.is-on { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- reveal ---------- */
[data-mq-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-mq-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (min-width: 700px) { .mq-search { display: flex; } }
@media (min-width: 1024px) { .mq-navlinks { display: flex; } }

/* --- tablet & down --- */
@media (max-width: 640px) {
    .mq-hero { padding: 120px 16px 64px; }
    .mq-section { padding: 64px 16px 0; }
    .mq-features { padding: 0 16px; }
    .mq-stats { margin-top: 44px; padding: 16px; gap: 6px; border-radius: 20px; }
    .mq-stat.mid { padding-left: 4px; padding-right: 4px; }
    .mq-cta, .mq-cta-ghost { height: 52px; font-size: 15.5px; padding: 0 24px; }
    .mq-cta-row { gap: 10px; }
    .mq-orb.o1 { width: 120px; height: 120px; left: -3%; }
    .mq-orb.o2 { width: 84px; height: 84px; }
    .mq-orb.o3 { width: 130px; height: 130px; right: -4%; }
    .mq-promo { border-radius: 22px; }
    .mq-promo-cta { width: 100%; justify-content: center; }
    .mq-footer { padding: 48px 16px 28px; }
}

/* --- small phones (<=380px): keep CTAs full-width, avoid any overflow --- */
@media (max-width: 380px) {
    .mq-brand-name { display: none; }
    .mq-cta, .mq-cta-ghost { width: 100%; justify-content: center; }
    .mq-stat-num { font-size: 22px; }
    .mq-stat-lbl { font-size: 12px; }
    .mq-products { grid-template-columns: 1fr; }
}

/* Nav actions never wrap or overflow on narrow screens */
@media (max-width: 460px) {
    .mq-nav-inner { gap: 8px; padding: 10px 14px; }
    .mq-actions { gap: 6px; }
    .mq-iconbtn, .mq-avatar-btn { width: 40px; height: 40px; }
    .mq-btn { padding: 0 16px; height: 40px; }
    /* hide the wishlist icon on the tightest layouts to protect the primary CTA */
    .mq-actions .mq-hide-xs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    [data-mq-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   IMAGE-RICH LUXURY LAYER — scroll-driven imagery & animations
   ============================================================ */

/* Ken Burns keyframes */
@keyframes mq-kenburns { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.12) translate(-1.5%, -1.5%); } }

/* ---------- Category cards with imagery ---------- */
.mq-cat.mq-cat-photo {
    position: relative; overflow: hidden; padding: 0; min-height: 230px;
    display: flex; align-items: flex-end; color: #fff; border: 1px solid var(--border);
}
.mq-cat-photo .mq-cat-bgimg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transform: scale(1.02); transition: transform 1.1s var(--ease); z-index: 0;
}
.mq-cat-photo:hover .mq-cat-bgimg { transform: scale(1.12); }
.mq-cat-photo::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(11,18,32,.05) 0%, rgba(11,18,32,.35) 55%, rgba(11,18,32,.82) 100%),
                linear-gradient(120deg, rgba(37,99,235,.35), rgba(6,182,212,.15));
}
.mq-cat-photo .mq-cat-body { position: relative; z-index: 2; padding: 22px; width: 100%; }
.mq-cat-photo .mq-cat-ico { filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.mq-cat-photo .mq-cat-name { color: #fff; margin-top: 12px; }
.mq-cat-photo .mq-cat-count { color: rgba(255,255,255,.82); }
.mq-cat-photo .mq-cat-bar { background: linear-gradient(90deg, #fff, rgba(255,255,255,.4)); }

/* ---------- Showcase marquee (art-gallery) ---------- */
.mq-showcase { padding-top: 96px; overflow: hidden; }
.mq-marquee { position: relative; display: flex; gap: 18px; width: max-content; margin-top: 26px; will-change: transform; }
.mq-marquee.row-a { animation: mq-marq-l 46s linear infinite; }
.mq-marquee.row-b { animation: mq-marq-r 52s linear infinite; margin-top: 18px; }
.mq-showcase:hover .mq-marquee { animation-play-state: paused; }
@keyframes mq-marq-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mq-marq-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.mq-shot {
    position: relative; flex: 0 0 auto; width: clamp(200px, 24vw, 320px); aspect-ratio: 4 / 5;
    border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-m); border: 1px solid var(--border);
}
.mq-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mq-shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,18,32,.5)); opacity: 0; transition: opacity .5s var(--ease); }
.mq-shot:hover img { transform: scale(1.08); }
.mq-shot:hover::after { opacity: 1; }
.mq-shot .mq-shot-cap { position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff; font-weight: 600; font-size: .85rem; opacity: 0; transform: translateY(8px); transition: .5s var(--ease); }
.mq-shot:hover .mq-shot-cap { opacity: 1; transform: none; }

/* ---------- Editorial parallax band ---------- */
.mq-editorial {
    position: relative; margin-top: 96px; min-height: 78vh; display: grid; place-items: center;
    overflow: hidden; isolation: isolate;
}
.mq-editorial-img {
    position: absolute; inset: -20% 0; z-index: -2; background-size: cover; background-position: center;
    will-change: transform; transform: scale(1.16);
}
.mq-editorial::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(11,18,32,.55), rgba(11,18,32,.72)),
                linear-gradient(120deg, rgba(37,99,235,.45), rgba(6,182,212,.25));
}
.mq-editorial-inner { max-width: 760px; text-align: center; color: #fff; padding: 40px 24px; }
.mq-editorial-kicker { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.mq-editorial-title { margin: 16px 0 0; font-size: clamp(30px, 5.5vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1.06; text-wrap: balance; }
.mq-editorial-sub { margin: 18px auto 0; max-width: 560px; font-size: clamp(15px, 2vw, 19px); line-height: 1.6; opacity: .92; }
.mq-editorial .mq-cta { margin-top: 28px; }

/* ---------- generic scroll-driven helpers (JS sets --p 0..1) ---------- */
[data-parallax] { will-change: transform; }
.mq-clip-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); }
.mq-clip-reveal.is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
    .mq-marquee { animation: none !important; }
    .mq-editorial-img, .mq-cat-photo .mq-cat-bgimg { animation: none !important; }
    .mq-clip-reveal { clip-path: none !important; }
}
@media (max-width: 640px) {
    .mq-editorial { min-height: 62vh; }
    .mq-cat.mq-cat-photo { min-height: 200px; }
}

/* ============================================================
   SHARED HEADER EXTRAS — mobile drawer, hamburger, solid nav
   (used by home + the public layout so all pages match)
   ============================================================ */
.mq-nav.is-solid {
    background: var(--glass-strong);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.mq-burger {
    display: none; width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--ink); cursor: pointer; place-items: center;
    transition: transform .4s var(--ease); flex: 0 0 auto;
}
.mq-burger:hover { transform: translateY(-2px); color: var(--primary); }
@media (max-width: 1023px) { .mq-burger { display: grid; } }

.mq-scrim {
    position: fixed; inset: 0; z-index: 190; background: rgba(2, 6, 23, .5);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.mq-scrim.open { opacity: 1; pointer-events: auto; }
.mq-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(330px, 86vw); z-index: 200;
    background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-l);
    transform: translateX(105%); transition: transform .45s var(--ease);
    padding: 74px 20px 28px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.mq-drawer.open { transform: none; }
.mq-drawer-brand { display: flex; align-items: center; gap: 10px; position: absolute; top: 20px; left: 20px; }
.mq-drawer-close {
    position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); cursor: pointer;
    display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
}
.mq-dlink {
    display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 13px;
    font-weight: 600; font-size: 1rem; color: var(--ink); transition: var(--transition);
}
.mq-dlink:hover, .mq-dlink.is-active { background: var(--surface-2); color: var(--primary); }
.mq-drawer-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 8px; }

/* ============================================================
   HERO VIDEO BACKGROUND (muted, looping) + readable veil
   ============================================================ */
.mq-hero.has-video {
    background: url('/img/home/hero.jpg') center/cover no-repeat; /* poster fallback (reduced-motion / no video) */
}
.mq-hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -5;
    transform: scale(1.03); animation: mq-kenburns 30s ease-in-out infinite alternate;
}
/* Over a video we drop the opaque mesh base and keep only soft brand glows */
.mq-hero.has-video .mq-hero-bg {
    background:
        radial-gradient(120% 90% at 50% -10%, rgba(96, 165, 250, .20), transparent 60%),
        radial-gradient(80% 60% at 85% 10%, rgba(6, 182, 212, .16), transparent 65%);
}
.mq-hero-veil {
    position: absolute; inset: 0; z-index: -4;
    background:
        linear-gradient(180deg, rgba(246, 248, 252, .60), rgba(246, 248, 252, .80) 72%),
        linear-gradient(120deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .08));
}
[data-theme="dark"] .mq-hero-veil {
    background:
        linear-gradient(180deg, rgba(11, 18, 32, .58), rgba(11, 18, 32, .82) 72%),
        linear-gradient(120deg, rgba(37, 99, 235, .26), rgba(6, 182, 212, .15));
}
@media (prefers-reduced-motion: reduce) {
    .mq-hero-video { display: none; }
}

/* Hero trust-stats stay comfortable on the smallest phones */
@media (max-width: 380px) {
    .mq-stats { padding: 14px 10px; gap: 4px; }
    .mq-stat.mid { padding-left: 4px; padding-right: 4px; }
    .mq-stat-num { font-size: 1.15rem; }
}

/* ============================================================
   HERO ORNAMENTAL NAQSH ACCENTS (replace glass orbs)
   wrapper floats + carries scroll-parallax; inner svg slowly spins
   ============================================================ */
.mq-naqsh { position: absolute; z-index: -1; pointer-events: none; color: var(--primary); opacity: .22; }
[data-theme="dark"] .mq-naqsh { color: var(--accent); opacity: .3; }
.mq-naqsh-svg { width: 100%; height: 100%; display: block; animation: mq-spin 90s linear infinite; }
@keyframes mq-spin { to { transform: rotate(360deg); } }

.mq-naqsh.n1 { left: 3%; top: 14%; width: 250px; height: 250px; animation: mq-float 12s ease-in-out infinite; }
.mq-naqsh.n2 { right: 8%; top: 12%; width: 140px; height: 140px; color: var(--accent); opacity: .26; animation: mq-float 9s ease-in-out infinite .7s; }
.mq-naqsh.n2 .mq-naqsh-svg { animation-duration: 70s; animation-direction: reverse; }
.mq-naqsh.n3 { right: 10%; bottom: 4%; width: 300px; height: 300px; animation: mq-float 14s ease-in-out infinite .4s; }
.mq-naqsh.n3 .mq-naqsh-svg { animation-duration: 120s; }

@media (max-width: 640px) {
    .mq-naqsh.n1 { width: 150px; height: 150px; left: -4%; }
    .mq-naqsh.n2 { width: 90px; height: 90px; }
    .mq-naqsh.n3 { width: 170px; height: 170px; right: -6%; }
}
@media (prefers-reduced-motion: reduce) {
    .mq-naqsh, .mq-naqsh-svg { animation: none !important; }
}

/* ============================================================
   FIX: reveal `.is-in { transform:none }` was equal-specificity but
   later in source than component :hover rules, cancelling hover lift.
   Higher-specificity (.class.is-in:hover) restores + enriches hover.
   Also add breathing room below the hero for the feature strip.
   ============================================================ */
.mq-features { margin-top: clamp(22px, 4vw, 46px); }

.mq-feature { cursor: default; }
.mq-feature .mq-feature-ico { transition: transform .4s var(--ease), background .4s var(--ease); }
.mq-feature.is-in:hover, .mq-feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-l);
    border-color: rgba(37, 99, 235, .4);
    background: var(--surface);
}
.mq-feature:hover .mq-feature-ico { transform: scale(1.12) rotate(-5deg); }

.mq-artisan.is-in:hover, .mq-artisan:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.mq-step.is-in:hover, .mq-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }

/* ============================================================
   MOBILE BOTTOM TABS (public + home) — replaces the hamburger
   drawer on < 1024px so mobile matches the rest of the app.
   ============================================================ */
.mq-tabbar { display: none; }

@media (max-width: 1023px) {
    /* bottom tabs replace the hamburger menu on mobile */
    .mq-burger { display: none !important; }

    .mq-tabbar {
        position: fixed; left: 12px; right: 12px; bottom: 10px; z-index: 120;
        display: flex; justify-content: space-around; gap: 2px;
        background: var(--glass-strong); border: 1px solid var(--border);
        border-radius: 22px; box-shadow: var(--shadow-l);
        backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
        padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
    }
    .mq-tab {
        flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
        text-decoration: none; color: var(--muted); font-size: .62rem; font-weight: 600;
        padding: 4px 2px; position: relative; transition: color .25s var(--ease);
    }
    .mq-tab-ico { display: grid; place-items: center; transition: transform .3s var(--ease); }
    .mq-tab-ico svg { width: 22px; height: 22px; }
    .mq-tab-lbl { line-height: 1.1; white-space: nowrap; }
    .mq-tab:hover, .mq-tab.is-active { color: var(--primary); }
    .mq-tab.is-active .mq-tab-ico { transform: translateY(-2px); }
    .mq-tab.is-active::before {
        content: ''; position: absolute; top: -8px; width: 22px; height: 3px; border-radius: 0 0 4px 4px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
    }

    /* clear the tab bar so content/footer isn't hidden behind it */
    body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 360px) {
    .mq-tab { font-size: .58rem; padding: 4px 1px; }
    .mq-tab-ico svg { width: 20px; height: 20px; }
    .mq-tabbar { left: 6px; right: 6px; padding-left: 2px; padding-right: 2px; }
}
