:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-2: #EEF1F5;
  --text: #1C2333;
  --muted: #667085;
  --border: #E3E7EE;
  --accent: #2B3990;
  --accent-dark: #1F2A6E;
  --accent-soft: rgba(43,57,144,0.08);
  --accent2: #1E9E6B;
  --accent2-dark: #167A54;
  --accent2-soft: rgba(30,158,107,0.10);
  --danger: #C0392B;
  --danger-soft: rgba(192,57,43,0.08);
  --star: #E3A33E;
  --footer-bg: #1B2350;
  --footer-text: #EDEFF7;
  --footer-muted: #9BA3C7;
  --footer-border: #333B72;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: 15px;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; margin: 0; font-weight: 600; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; }

.mz-shell { max-width: 1360px; margin: 0 auto; padding: 0 0px; }

/* ---------- Announcement bar ---------- */
.mz-announce { background: var(--accent); color: #EDEFF7; text-align: center; padding: 9px 16px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.mz-announce span { color: #8FE6C3; font-weight: 700; }

/* ---------- Section divider ---------- */
.mz-divider { display: flex; align-items: center; gap: 14px; margin: 0 0 48px; }
.mz-divider::before, .mz-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent); }
.mz-divider-mark { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--accent2); flex-shrink: 0; }

/* ---------- Header ---------- */
.mz-header { background: var(--surface); border-bottom: 1px solid var(--border); width: 100%; position: sticky; top: 0; z-index: 50; transition: box-shadow 0.25s ease, background 0.25s ease; }
.mz-header.is-scrolled { box-shadow: 0 12px 28px rgba(20,26,48,0.10); background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); }
.mz-header-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0px; max-width: 1360px; margin: 0 auto; }
.mz-logo { display: flex; align-items: center; height: 44px; text-decoration: none; }
.mz-logo img { height: 100%; width: auto; display: block; }
.mz-nav-links { display: flex; align-items: center; gap: 32px; flex: 1; justify-content: center; }
.mz-nav-links a { font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.mz-nav-links a:hover, .mz-nav-links a.active { color: var(--accent); }

/* ---------- Category dropdown menu ---------- */
.mz-nav-item { position: relative; }
/* top:100% with no margin/gap is deliberate: any gap here is a CSS-hover dead zone - the
   mouse leaving .mz-nav-item's box before reaching .mz-dropdown drops the :hover state and
   the menu closes before it can be reached. */
/* No overflow/max-height here on purpose: setting overflow-y alone makes overflow-x compute
   to auto too (not stay visible) per the CSS spec, which clips any .mz-dropdown-sub flyout
   positioned outside this box via left:100% - that was hiding every child submenu. */
.mz-nav-item > .mz-dropdown { display: none; position: absolute; top: 100%; left: -14px; margin-top: 0; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 20px 40px rgba(20,26,48,0.14); min-width: 240px; z-index: 60; padding: 8px 0; }
.mz-nav-item:hover > .mz-dropdown { display: block; }
/* The account icon sits at the far right of the header, not near the left nav like Shop -
   anchor its dropdown from the right edge instead, or it overflows off the viewport. */
.mz-account-item { position: relative; }
.mz-account-item > .mz-dropdown.mz-account-dropdown { left: auto; right: -14px; min-width: 190px; }
.mz-dropdown-logout { display: flex; width: 100%; align-items: center; padding: 9px 20px; font-size: 13px; font-weight: 600; color: var(--danger); background: none; border: none; text-align: left; cursor: pointer; font-family: 'Manrope', sans-serif; }
.mz-dropdown-logout:hover { background: var(--surface-2); }
.mz-dropdown, .mz-dropdown-sub { list-style: none; margin: 0; padding: 8px 0; }
.mz-dropdown li, .mz-dropdown-sub li { position: relative; }
.mz-dropdown > li > a, .mz-dropdown-sub > li > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 20px; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; }
.mz-dropdown > li > a:hover, .mz-dropdown-sub > li > a:hover { background: var(--surface-2); color: var(--accent); }
.mz-dropdown li.has-children > a::after { content: '\203A'; color: var(--muted); font-weight: 700; }
/* Same flush-with-no-gap rule applies here: left:100% with no margin keeps the submenu
   touching its parent <li> so hover carries over when moving the mouse sideways into it. */
/* Same reason: no overflow-y here either, so a 3rd-level flyout nested inside this one
   (e.g. Qur'an & Tafseer > Urdu Tarmuma & Tafseer) doesn't get clipped in turn. */
.mz-dropdown-sub { display: none; position: absolute; top: -9px; left: 100%; margin-left: 0; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 20px 40px rgba(20,26,48,0.14); min-width: 220px; }
.mz-dropdown li.has-children:hover > .mz-dropdown-sub { display: block; }
@media (max-width: 900px) { .mz-nav-item > .mz-dropdown { display: none !important; } }
.mz-search { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); padding: 9px 14px; width: 240px; }
.mz-search input { border: none; background: transparent; outline: none; font-size: 13.5px; color: var(--text); width: 100%; font-family: 'Manrope', sans-serif; }
.mz-search input::placeholder { color: var(--muted); }
.mz-search-suggestions { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 16px 36px rgba(20,26,48,0.14); z-index: 40; max-height: 280px; overflow-y: auto; }
.mz-suggestion-item { padding: 10px 14px; font-size: 13px; color: var(--text); cursor: pointer; }
.mz-suggestion-item:hover { background: var(--surface-2); color: var(--accent); }
.mz-header-actions { display: flex; align-items: center; gap: 20px; }
.mz-icon-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: var(--text); }
.mz-icon-btn:hover { color: var(--accent); }
.mz-cart-badge { position: absolute; top: -8px; right: -10px; background: var(--accent2); color: #fff; font-size: 10px; font-weight: 700; line-height: 1; padding: 3px 5px; border-radius: 999px; min-width: 15px; text-align: center; }
.mz-hamburger { display: none; background: none; border: none; padding: 0; font: inherit; }
@media (max-width: 900px) {
  .mz-nav-links { display: none; }
  .mz-search { width: 0; padding: 0; border: none; overflow: hidden; }
  .mz-hamburger { display: flex; }
  .mz-header-bar { padding: 12px 18px; gap: 14px; }
}

/* ---------- Mobile nav drawer ---------- */
body.mz-no-scroll { overflow: hidden; }
.mz-mobile-nav { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.mz-mobile-nav.is-open { visibility: visible; pointer-events: auto; }
.mz-mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(15,19,45,0.55); opacity: 0; transition: opacity 0.25s ease; }
.mz-mobile-nav.is-open .mz-mobile-nav-backdrop { opacity: 1; }
.mz-mobile-nav-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); background: var(--surface); box-shadow: -20px 0 50px rgba(15,19,45,0.25); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; }
.mz-mobile-nav.is-open .mz-mobile-nav-panel { transform: translateX(0); }
.mz-mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.mz-mobile-nav-head .mz-logo { height: 34px; }
.mz-mobile-nav-close { background: none; border: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.mz-mobile-search { display: flex; align-items: center; gap: 8px; margin: 16px 18px; background: var(--surface-2); border: 1px solid var(--border); padding: 9px 14px; }
.mz-mobile-search input { flex: 1; border: none; background: transparent; outline: none; font-size: 14px; color: var(--text); font-family: 'Manrope', sans-serif; }
.mz-mobile-search button { background: none; border: none; color: var(--muted); cursor: pointer; display: flex; padding: 0; }
.mz-mobile-links { display: flex; flex-direction: column; padding: 4px 0 24px; }
.mz-mobile-links > a { padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.mz-mobile-links > a.active { color: var(--accent); }
.mz-mobile-links .mz-mobile-cart-count { color: var(--accent); font-weight: 700; }
.mz-mobile-logout { display: block; width: 100%; text-align: left; padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--danger); background: none; border: none; border-bottom: 1px solid var(--border); cursor: pointer; font-family: 'Manrope', sans-serif; }
.mz-mobile-shop { border-bottom: 1px solid var(--border); }
.mz-mobile-shop > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.mz-mobile-shop > summary::-webkit-details-marker { display: none; }
.mz-mobile-shop > summary::after { content: '\2304'; color: var(--muted); font-size: 13px; transition: transform 0.2s ease; }
.mz-mobile-shop[open] > summary::after { transform: rotate(180deg); }
.mz-mobile-shop > summary a { font-size: 11.5px; font-weight: 600; color: var(--accent); text-decoration: none; margin-right: auto; margin-left: 8px; }
.mz-mobile-cat-list { list-style: none; margin: 0; padding: 0 0 8px 18px; background: var(--surface-2); }
.mz-mobile-cat-list a { display: block; padding: 11px 18px; font-size: 13.5px; color: var(--text); text-decoration: none; }
.mz-mobile-cat-list details summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 0; }
.mz-mobile-cat-list details summary::-webkit-details-marker { display: none; }
.mz-mobile-cat-list details summary::after { content: '\2304'; color: var(--muted); font-size: 12px; padding: 11px 18px; }
.mz-mobile-cat-list details summary a { flex: 1; }
.mz-mobile-cat-list details[open] > summary::after { transform: rotate(180deg); }
.mz-mobile-cat-list ul { padding-left: 16px; }
@media (min-width: 901px) { .mz-mobile-nav { display: none; } }

/* ---------- Footer ---------- */
.mz-footer { background: var(--footer-bg); color: var(--footer-text); width: 100%; }
.mz-footer-top { display: flex; flex-wrap: wrap; gap: 48px; max-width: 1360px; margin: 0 auto; padding: 64px 32px 44px; }
.mz-footer-brand { flex: 1 1 260px; max-width: 320px; }
.mz-footer-logo-wrap { display: inline-block; background: #fff; padding: 8px 14px; margin: 0 0 16px; line-height: 0; }
.mz-footer-logo { height: 32px; display: block; }
.mz-footer-blurb { font-size: 13.5px; line-height: 1.7; color: var(--footer-muted); margin: 0 0 20px; }
.mz-footer-col { flex: 1 1 150px; }
.mz-footer-col h4 { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--footer-text); margin: 0 0 18px; }
.mz-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.mz-footer-col a { font-size: 13.5px; color: var(--footer-muted); text-decoration: none; }
.mz-footer-col a:hover { color: #8FE6C3; }
.mz-footer-address-col { flex: 1 1 240px; }
.mz-footer-address-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; color: var(--footer-muted); }
.mz-footer-address-row svg { flex-shrink: 0; margin-top: 2px; color: #8FE6C3; }
.mz-footer-address-row p { margin: 0; font-size: 13.5px; line-height: 1.6; }
.mz-footer-social-col .mz-social { display: flex; flex-direction: column; gap: 11px; }
.mz-footer-social-col .mz-social a { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--footer-muted); text-decoration: none; }
.mz-footer-social-col .mz-social a svg { flex-shrink: 0; }
.mz-footer-social-col .mz-social a:hover { color: #8FE6C3; }
.mz-footer-bottom { border-top: 1px solid var(--footer-border); padding: 20px 32px; max-width: 1360px; margin: 0 auto; font-size: 12px; color: var(--footer-muted); letter-spacing: 0.02em; text-align: center; }
.mz-footer-bottom a { color: var(--footer-muted); }
.mz-footer-bottom a:hover { color: #8FE6C3; }
@media (max-width: 640px) {
  .mz-footer-top { padding: 44px 20px 30px; gap: 32px; }
  .mz-footer-bottom { padding: 18px 20px; justify-content: center; text-align: center; }
}

/* ---------- Book card ---------- */
.mz-card { background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.mz-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 24px 44px rgba(20,26,48,0.14); }
.mz-card-cover { position: relative; width: 100%; aspect-ratio: 2 / 3; display: flex; align-items: flex-end; padding: 14px; background-size: cover; background-position: center; overflow: hidden; transition: transform 0.5s ease; background-color: var(--surface-2); }
.mz-card:hover .mz-card-cover { transform: scale(1.07); }
.mz-card-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.72) 100%); }
.mz-card-cover-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 13.5px; line-height: 1.3; color: rgba(255,255,255,0.96); position: relative; z-index: 1; }
.mz-card-badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; padding: 4px 9px; text-transform: uppercase; z-index: 2; }
.mz-card-out { position: absolute; top: 10px; right: 10px; background: rgba(20,24,40,0.82); color: #fff; font-size: 10px; font-weight: 600; padding: 4px 8px; z-index: 2; }
.mz-card-view { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; text-align: center; padding: 10px 0; background: rgba(20,24,40,0.82); border: 1px solid var(--accent2); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease; }
.mz-card:hover .mz-card-view { opacity: 1; transform: translateY(0); }
.mz-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mz-card-title { font-size: 14.5px; font-weight: 600; color: var(--text); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; font-family: 'Playfair Display', Georgia, serif; }
.mz-card-title:hover { color: var(--accent); }
.mz-card-author { font-size: 12px; color: var(--muted); margin: 0 0 10px; letter-spacing: 0.02em; }
.mz-card-prices { display: flex; align-items: baseline; gap: 8px; margin-top: auto; margin-bottom: 12px; }
.mz-card-price { font-size: 16px; font-weight: 700; color: var(--accent); }
.mz-card-mrp { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.mz-card-btn { background: transparent; color: var(--accent); border: 1px solid var(--accent); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 0; width: 100%; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.mz-card-btn:hover { background: var(--accent); color: #fff; }
.mz-card-btn:disabled { background: transparent; color: var(--muted); border-color: var(--border); cursor: not-allowed; }

/* ---------- Shared page bits ---------- */
.mz-crumb { font-size: 12px; color: var(--muted); padding: 24px 0 8px; letter-spacing: 0.02em; }
.mz-crumb a { color: var(--muted); text-decoration: none; }
.mz-section { padding-bottom: 68px; }
.mz-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 16px; }
.mz-section-head h2 { font-size: 28px; font-weight: 600; }
.mz-viewall { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.mz-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.mz-grid-item { min-height: 360px; }
.mz-chips { display: flex; flex-wrap: wrap; gap: 28px; padding: 44px 0 52px; }
.mz-chip { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 0 4px; border-bottom: 1px solid transparent; text-decoration: none; display: inline-block; }
.mz-chip:hover { color: var(--text); }
.mz-chip.mz-chip-active { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 1100px) { .mz-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 760px) { .mz-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .mz-shell { padding: 0 18px; } }
@media (max-width: 420px) { .mz-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .mz-grid-item { min-height: 0; } }

/* ---------- Home hero (full-bleed, brand navy) ---------- */
.mz-hero-full { width: 100%; background: linear-gradient(155deg, #232C64 0%, #1B2350 55%, #161C42 100%); position: relative; overflow: hidden; }
.mz-hero-full::before { content: ''; position: absolute; top: -20%; right: -8%; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(30,158,107,0.22) 0%, rgba(30,158,107,0) 68%); pointer-events: none; }
.mz-hero-full::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #8FE6C3 20%, #8FE6C3 80%, transparent); opacity: 0.4; }
.mz-hero-full-inner { max-width: 1360px; margin: 0 auto; padding: 96px 32px 100px; display: flex; align-items: center; gap: 72px; position: relative; z-index: 2; }
.mz-hero-copy { flex: 1 1 440px; }
.mz-hero-kicker { display: flex; align-items: center; gap: 12px; color: #8FE6C3; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 22px; }
.mz-hero-kicker::before { content: ''; width: 28px; height: 1px; background: #8FE6C3; }
.mz-hero-copy h1 { color: #FFFFFF; font-size: 54px; line-height: 1.08; font-weight: 600; margin-bottom: 22px; max-width: 520px; }
.mz-hero-copy h1 em { font-style: italic; color: #8FE6C3; }
.mz-hero-copy p { color: #C7CCE8; font-size: 16px; line-height: 1.75; max-width: 430px; margin-bottom: 36px; }
.mz-hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.mz-btn-primary { display: inline-block; background: transparent; border: 1px solid #8FE6C3; color: #8FE6C3; font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 17px 36px; text-decoration: none; transition: background 0.2s ease, color 0.2s ease; }
.mz-btn-primary:hover { background: #8FE6C3; color: #1B2350; }
.mz-hero-link { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #FFFFFF; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 3px; }
.mz-hero-link:hover { color: #8FE6C3; border-color: #8FE6C3; }
/* Plain edge-to-edge banner slider: the uploaded images are already complete promo graphics
   (title/price/branding baked in), so this is just the raw slides at their native ~2.7:1
   ratio - no text or dark scrim layered on top, matching the legacy nivo-slider. */
.mz-hero-slider { width: 100%; max-width: 1360px; margin: 0 auto; position: relative; aspect-ratio: 1681 / 620; max-height: 68vh; overflow: hidden; background: #12152E; margin-top:20px; }
.mz-hero-slides { position: relative; width: 100%; height: 100%; }
.mz-hero-slide { position: absolute; inset: 0; display: block; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.mz-hero-slide.active { opacity: 1; }
.mz-hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(15,19,45,0.42); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; transition: background 0.2s ease; }
.mz-hero-arrow:hover { background: rgba(15,19,45,0.7); }
.mz-hero-arrow-prev { left: 18px; }
.mz-hero-arrow-next { right: 18px; }
.mz-hero-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.mz-hero-dot { width: 9px; height: 9px; padding: 0; border: 1px solid rgba(255,255,255,0.8); border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.mz-hero-dot:hover { transform: scale(1.15); }
.mz-hero-dot.active { background: #8FE6C3; border-color: #8FE6C3; }
@media (max-width: 760px) {
    .mz-hero-full-inner { flex-direction: column; padding: 56px 22px 60px; gap: 48px; }
    .mz-hero-copy h1 { font-size: 34px; }
    .mz-hero-full::before { width: 380px; height: 380px; }
    .mz-hero-slider { aspect-ratio: 4 / 3; max-height: 50vh; }
    .mz-hero-arrow { width: 36px; height: 36px; font-size: 20px; }
}

.mz-tabs { display: flex; gap: 8px; margin-bottom: 30px; }
.mz-tab { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 4px; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; }
.mz-tab.mz-tab-active { color: var(--accent); border-bottom-color: var(--accent); }
.mz-tab-sep { width: 20px; }

.mz-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.mz-cat-tile { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 12px; background: var(--surface); text-decoration: none; color: var(--text); transition: background 0.2s ease; }
.mz-cat-tile:hover { background: var(--surface-2); }
.mz-cat-icon { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); border: 1px solid var(--accent); }
.mz-cat-tile span { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 1100px) { .mz-cats { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 520px) { .mz-cats { grid-template-columns: repeat(2, minmax(0,1fr)); } .mz-cat-tile { padding: 24px 10px; } }

/* ---------- Promo banners ---------- */
.mz-promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.mz-promo-card { position: relative;  overflow: hidden; border: 1px solid var(--border); display: block; }
.mz-promo-card img { width: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.mz-promo-card:hover img { transform: scale(1.06); }
.mz-promo-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.5) 100%); pointer-events: none; }

.mz-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 44px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mz-trust-item { display: flex; align-items: flex-start; gap: 16px; }
.mz-trust-item svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.mz-trust-item h3 { font-size: 14px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; font-family: 'Manrope', sans-serif; margin-bottom: 5px; color: var(--text); }
.mz-trust-item p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }
@media (max-width: 760px) { .mz-trust { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Product listing ---------- */
.mz-pl-head { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.mz-pl-head h1 { font-size: 32px; font-weight: 600; }
.mz-pl-count { font-size: 12.5px; color: var(--muted); margin-top: 8px; letter-spacing: 0.02em; }
.mz-pl-body { display: flex; gap: 40px; padding-bottom: 68px; align-items: flex-start; }
.mz-sidebar { width: 250px; flex-shrink: 0; }
.mz-sidebar-toggle { display: none; }
.mz-filter-group { padding: 22px 0; border-bottom: 1px solid var(--border); }
.mz-filter-group h3 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; color: var(--text); font-family: 'Manrope', sans-serif; }
.mz-check-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); padding: 7px 0; text-decoration: none; }
.mz-check-row:hover { color: var(--accent); }
.mz-main { flex: 1; min-width: 0; }
.mz-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.mz-results-note { font-size: 13px; color: var(--muted); }
.mz-sort { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 9px 16px; font-size: 12.5px; font-weight: 500; }
.mz-pl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mz-empty-note { padding: 48px 0; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .mz-pl-body { flex-direction: column; gap: 20px; }
  .mz-sidebar { width: 100%; border: 1px solid var(--border); background: var(--surface); }
  .mz-sidebar:not([open]) { padding-bottom: 0; }
  .mz-sidebar-toggle { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text); cursor: pointer; list-style: none; }
  .mz-sidebar-toggle::-webkit-details-marker { display: none; }
  .mz-sidebar-toggle::after { content: '\2304'; color: var(--muted); font-size: 14px; }
  .mz-sidebar[open] .mz-sidebar-toggle::after { transform: rotate(180deg); }
  .mz-sidebar .mz-filter-group { padding: 18px; border-top: 1px solid var(--border); margin: 0; }
  .mz-pl-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 480px) { .mz-pl-grid { grid-template-columns: 1fr; } }

/* ---------- Product detail ---------- */
.mz-pd-shell { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.mz-pd-top { display: flex; gap: 64px; padding: 32px 0 60px; align-items: flex-start; }
.mz-pd-gallery { width: 340px; flex-shrink: 0; }
.mz-pd-cover { width: 100%; aspect-ratio: 2/3; background-size: cover; background-position: center; border: 1px solid var(--border); background-color: var(--surface-2); }
.mz-pd-info { flex: 1; min-width: 0; }
.mz-pd-title { font-size: 30px; line-height: 1.28; letter-spacing: -0.01em; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.mz-pd-meta { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin-bottom: 16px; }
.mz-pd-meta b { color: var(--text); font-weight: 600; }
.mz-price-block { display: flex; align-items: baseline; gap: 14px; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.mz-pd-price { font-size: 30px; font-weight: 700; color: var(--accent); font-family: 'Manrope', sans-serif; }
.mz-pd-mrp { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.mz-pd-discount { font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent2); background: var(--accent2-soft); padding: 5px 10px; }
.mz-buy-row { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.mz-qty { display: flex; align-items: center; border: 1px solid var(--border); }
.mz-qty button { width: 38px; height: 46px; background: var(--surface); border: none; font-size: 16px; color: var(--text); cursor: pointer; }
.mz-qty input { width: 46px; text-align: center; font-size: 14.5px; font-weight: 600; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--surface); color: var(--text); }
.mz-btn-cart { flex: 1; background: var(--accent); color: #fff; border: 1px solid var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; height: 46px; cursor: pointer; min-width: 180px; transition: background 0.2s ease; }
.mz-btn-cart:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.mz-highlights { display: flex; flex-direction: column; gap: 11px; }
.mz-highlight-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.mz-highlight-row svg { color: var(--accent2); flex-shrink: 0; }
.mz-pd-section { padding-bottom: 50px; border-bottom: 1px solid var(--border); margin-bottom: 50px; }
.mz-pd-section h2 { font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--text); margin-bottom: 18px; }
.mz-pd-desc { font-size: 15px; line-height: 1.85; color: var(--text); max-width: 720px; white-space: pre-line; }
.mz-review-summary { display: flex; align-items: center; gap: 24px; margin-bottom: 30px; }
.mz-review-score { font-family: 'Playfair Display', serif; font-size: 46px; font-weight: 600; color: var(--accent); }
.mz-review-list { display: flex; flex-direction: column; gap: 24px; max-width: 720px; }
.mz-review-item { display: flex; flex-direction: column; gap: 6px; }
.mz-review-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mz-review-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.mz-review-date { font-size: 12px; color: var(--muted); }
.mz-review-text { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.mz-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.mz-related-item { min-height: 360px; }
.mz-stars { display: flex; gap: 2px; }
@media (max-width: 860px) { .mz-pd-top { flex-direction: column; gap: 30px; } .mz-pd-gallery { width: 220px; margin: 0 auto; } .mz-related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .mz-pd-shell { padding: 0 18px; } }
@media (max-width: 420px) { .mz-related-grid { grid-template-columns: 1fr; } .mz-pd-title { font-size: 26px; } }

/* ---------- Cart ---------- */
.mz-cart-shell { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.mz-cart-head { padding: 28px 0 8px; }
.mz-cart-head h1 { font-size: 30px; font-weight: 600; }
.mz-cart-sub { font-size: 13px; color: var(--muted); margin-top: 8px; }
.mz-cart-body { display: flex; gap: 44px; padding: 26px 0 76px; align-items: flex-start; }
.mz-cart-items { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mz-cart-cols { display: flex; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.mz-col-product { flex: 1; }
.mz-col-fixed { width: 130px; text-align: center; }
.mz-cart-row { display: flex; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--border); }
.mz-cart-product { flex: 1; display: flex; gap: 18px; align-items: center; min-width: 0; }
.mz-cart-thumb { width: 64px; aspect-ratio: 2/3; flex-shrink: 0; background-size: cover; background-position: center; border: 1px solid var(--border); background-color: var(--surface-2); }
.mz-cart-product-info { min-width: 0; }
.mz-cart-title { font-size: 14.5px; font-weight: 600; margin: 0 0 4px; font-family: 'Playfair Display', serif; }
.mz-cart-author { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.mz-cart-remove { display: flex; align-items: center; gap: 5px; font-size: 11.5px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); cursor: pointer; background: none; border: none; padding: 0; }
.mz-cart-remove:hover { color: var(--danger); }
.mz-col-fixed .mz-qty { margin: 0 auto; width: fit-content; }
.mz-col-fixed .mz-qty button { width: 28px; height: 32px; font-size: 14px; }
.mz-col-fixed .mz-qty input { width: 32px; }
.mz-cart-price { font-size: 14px; font-weight: 500; text-align: center; color: var(--muted); }
.mz-cart-linetotal { font-size: 14.5px; font-weight: 700; text-align: center; color: var(--accent); }
.mz-continue { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); margin-top: 24px; text-decoration: none; }
.mz-summary { width: 340px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); padding: 28px; }
.mz-summary h2 { font-size: 19px; font-weight: 600; margin: 0 0 22px; }
.mz-summary-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); padding: 9px 0; }
.mz-summary-row.mz-discount-row { color: var(--accent2); }
.mz-summary-row.mz-total-row { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 18px; font-size: 17px; font-weight: 700; color: var(--accent); }
.mz-btn-checkout { width: 100%; background: var(--accent); color: #fff; border: 1px solid var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; height: 48px; cursor: pointer; margin-bottom: 16px; transition: background 0.2s ease; }
.mz-btn-checkout:hover { background: var(--accent-dark); }
.mz-btn-checkout:disabled { background: transparent; color: var(--muted); border-color: var(--border); cursor: not-allowed; }
.mz-secure-note { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); justify-content: center; letter-spacing: 0.02em; }
.mz-cart-empty { padding: 68px 0; text-align: center; }
.mz-cart-empty p { color: var(--muted); margin-bottom: 22px; }
.mz-co-summary { width: 320px; flex-shrink: 0; }
@media (max-width: 700px) { .mz-co-summary { width: 100%; } }
@media (max-width: 860px) { .mz-cart-body { flex-direction: column; } .mz-summary { width: 100%; } .mz-cart-shell { padding: 0 18px; } }
@media (max-width: 600px) {
  .mz-cart-cols { display: none; }
  .mz-cart-row { flex-wrap: wrap; gap: 10px 0; }
  .mz-cart-product { flex: 1 1 100%; }
  .mz-col-fixed { width: auto; flex: 1 1 auto; text-align: left; }
  .mz-col-fixed .mz-qty { margin: 0; }
  .mz-cart-price, .mz-cart-linetotal { text-align: left; }
}

/* ---------- Auth forms (login/register/account) ---------- */
.mz-auth-wrap { max-width: 420px; margin: 0 auto; padding: 60px 20px 84px; }
.mz-auth-wrap h1 { font-size: 28px; font-weight: 600; margin-bottom: 10px; }
.mz-auth-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 30px; }
.mz-field { margin-bottom: 18px; }
.mz-field label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
.mz-field input, .mz-field select, .mz-field textarea { width: 100%; border: 1px solid var(--border); background: var(--surface); padding: 12px 13px; font-size: 14px; font-family: 'Manrope', sans-serif; color: var(--text); outline: none; }
.mz-field input:focus, .mz-field select:focus, .mz-field textarea:focus { border-color: var(--accent); }
.mz-field-error { color: var(--danger); font-size: 12px; margin-top: 4px; }
.mz-btn-block { width: 100%; background: var(--accent); color: #fff; border: 1px solid var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; height: 48px; cursor: pointer; margin-top: 8px; transition: background 0.2s ease; }
.mz-btn-block:hover { background: var(--accent-dark); }
.mz-auth-alt { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 22px; }
.mz-alert { padding: 13px 16px; font-size: 13.5px; margin-bottom: 22px; border: 1px solid; background: var(--surface); }
.mz-alert-error { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.mz-alert-success { border-color: var(--accent2); color: var(--accent2-dark); background: var(--accent2-soft); }

/* ---------- Generic content page ---------- */
.mz-page-body { padding: 44px 0 76px; max-width: 860px; }
.mz-page-body h1 { font-size: 32px; font-weight: 600; margin-bottom: 22px; }
.mz-page-body p { line-height: 1.8; color: var(--muted); margin-bottom: 16px; }

/* ---------- Account page ---------- */
.mz-account-shell { max-width: 1100px; margin: 0 auto; padding: 0 32px 76px; }
.mz-account-head { padding: 28px 0 8px; }
.mz-account-head h1 { font-size: 30px; font-weight: 600; }
.mz-account-head-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.mz-account-quicklinks { display: flex; align-items: center; gap: 20px; }
.mz-account-quicklinks a { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.mz-account-quicklinks a:hover { color: var(--accent-dark); }
.mz-account-logout { background: none; border: none; padding: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--danger); cursor: pointer; font-family: 'Manrope', sans-serif; }
.mz-account-logout:hover { text-decoration: underline; }
.mz-account-section { padding: 38px 0; border-top: 1px solid var(--border); }
.mz-account-section:first-of-type { border-top: none; }
.mz-account-section h2 { font-size: 19px; font-weight: 600; margin-bottom: 20px; }
.mz-account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .mz-account-grid { grid-template-columns: 1fr; } .mz-account-shell { padding: 0 18px 60px; } }
.mz-order-empty { color: var(--muted); font-size: 13.5px; padding: 12px 0; }
.mz-order-card { border: 1px solid var(--border); background: var(--surface); margin-bottom: 22px; }
.mz-order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mz-order-head-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.mz-order-head-meta b { color: var(--text); }
.mz-order-status { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 11px; background: var(--accent2-soft); color: var(--accent2-dark); }
.mz-order-status.mz-status-cancelled { background: var(--danger-soft); color: var(--danger); }
.mz-order-progress { height: 3px; background: var(--border); margin: 0 18px; position: relative; top: -1px; }
.mz-order-progress-bar { height: 100%; background: var(--accent); }
.mz-order-line { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.mz-order-line:last-of-type { border-bottom: none; }
.mz-order-line-thumb { width: 44px; aspect-ratio: 2/3; flex-shrink: 0; background-size: cover; background-position: center; border: 1px solid var(--border); background-color: var(--surface-2); }
.mz-order-line-info { flex: 1; min-width: 0; font-size: 13.5px; }
.mz-order-line-info p { margin: 0; }
.mz-order-line-meta { font-size: 12px; color: var(--muted); margin-top: 3px !important; }
.mz-order-line-price { font-size: 13.5px; font-weight: 600; white-space: nowrap; color: var(--accent); }
.mz-order-txn { display: flex; align-items: center; gap: 8px; padding: 15px 18px; flex-wrap: wrap; }
.mz-order-txn input { border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 9px 10px; font-size: 13px; flex: 1; min-width: 180px; }
.mz-order-txn button { background: var(--accent); color: #fff; border: none; padding: 9px 18px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; }
