/* Mauh corporate B2B visual system */
:root {
  --fm-ink: #10243e;
  --fm-muted: #617083;
  --fm-cream: #f3f6f9;
  --fm-paper: #ffffff;
  --fm-leaf: #1f5eff;
  --fm-sage: #8ba7cb;
  --fm-line: #d9e1ea;
  --fm-shadow: 0 18px 50px rgba(16, 36, 62, .11);
  --fm-radius: 12px;
  --fm-blue: #1f5eff;
  --fm-navy: #0b1f33;
}

body {
  background: #f3f6f9;
  color: var(--fm-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #d9e1ea;
  box-shadow: 0 1px 8px rgba(16, 36, 62, .04);
}
.site-header-inner { height: 72px; }
.site-brand { gap: 11px; }
.site-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(145deg, #173b68, #0b1f33);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  font: 800 18px/1 Inter, "Segoe UI", sans-serif;
}
.site-brand-name {
  color: #10243e;
  font: 800 20px/1 Inter, "Segoe UI", sans-serif;
  letter-spacing: -.02em;
}
.site-nav { gap: 4px; }
.site-nav a {
  border-radius: 7px;
  color: #34465d;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
}
.site-nav a:hover { background: #edf3fb; color: #1f5eff; }
.fm-cart-count { background: #1f5eff; }

.fm-shell { padding-top: 42px; }
.fm-eyebrow {
  color: #3972c7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  margin-bottom: 12px;
}

.fm-hero {
  min-height: 390px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  padding: 60px 64px;
  background:
    linear-gradient(90deg, rgba(11,31,51,.98) 0%, rgba(15,44,76,.95) 54%, rgba(23,73,127,.78) 100%),
    repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(255,255,255,.045) 80px),
    repeating-linear-gradient(0deg, transparent 0, transparent 79px, rgba(255,255,255,.035) 80px);
  box-shadow: 0 20px 48px rgba(11, 31, 51, .16);
}
.fm-hero:before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: 6%;
  top: 50%;
  border: 1px solid rgba(118, 174, 237, .22);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 55px rgba(80, 144, 218, .045), 0 0 0 110px rgba(80, 144, 218, .025);
}
.fm-hero:after {
  right: 13%;
  top: 22%;
  width: 160px;
  height: 160px;
  border: 0;
  border-radius: 18px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(69,135,213,.32), rgba(255,255,255,.025));
}
.fm-hero .fm-eyebrow { color: #82b5f5; position: relative; z-index: 2; }
.fm-hero h1,
.fm-collection-intro h1,
.fm-page-head h1 {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.03;
}
.fm-hero h1 { color: #fff; font-size: clamp(46px, 6.4vw, 76px); max-width: 720px; position: relative; z-index: 2; }
.fm-hero p { color: #c4d3e3; font-size: 16px; line-height: 1.7; margin-top: 22px; position: relative; z-index: 2; }

.fm-home-search { margin-top: -25px; max-width: 760px; }
.fm-search-bar {
  border: 1px solid #d3dce7;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(16,36,62,.09);
  padding: 7px 8px 7px 15px;
}
.fm-search-bar input { color: #10243e; }
.fm-search-bar input::placeholder { color: #8896a7; }
.fm-search-bar button,
.fm-add,
.fm-button {
  background: #1f5eff;
  border-radius: 7px;
  box-shadow: 0 5px 12px rgba(31,94,255,.16);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.fm-search-bar button:hover,
.fm-add:hover,
.fm-button:hover { background: #174bcf; box-shadow: 0 7px 16px rgba(31,94,255,.22); transform: translateY(-1px); }

.fm-section-head { padding: 68px 0 25px; }
.fm-section-head h2 { color: #10243e; font: 750 clamp(30px,4vw,44px)/1.1 Inter, "Segoe UI", sans-serif; letter-spacing: -.035em; }
.fm-section-head p { color: #6b788a; }
.fm-collection-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.fm-collection-card {
  min-height: 390px;
  border: 1px solid rgba(16,36,62,.12);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(16,36,62,.08);
}
.fm-collection-card img { filter: saturate(.78) contrast(1.04); }
.fm-collection-card:hover img { transform: scale(1.04); }
.fm-collection-overlay { padding: 92px 24px 24px; background: linear-gradient(transparent, rgba(7,25,43,.91)); }
.fm-collection-overlay small { color: #a9c8ee; font-size: 10px; }
.fm-collection-overlay strong { font: 750 27px/1.15 Inter, "Segoe UI", sans-serif; letter-spacing: -.025em; margin: 8px 0 16px; }
.fm-collection-overlay em { color: #d5e5f6; }
.fm-collection-mark { font-family: Inter, sans-serif; font-weight: 800; }

.fm-breadcrumb { margin-bottom: 38px; }
.fm-breadcrumb a { color: #1f5eff; font-weight: 700; }
.fm-collection-page { padding-top: 26px; }
.fm-collection-page .fm-breadcrumb { margin-bottom: 18px; }
.fm-collection-page .fm-live-search { margin-bottom: 14px; }
/* ===== Collection page: compact product cards ===== */
.fm-collection-page .fm-product-grid { gap: 12px; }
.fm-collection-page .fm-product-card { border-radius: 0; box-shadow: 0 4px 14px rgba(16,36,62,.05); }
.fm-collection-page .fm-product-info { padding: 10px 12px 12px; }
.fm-collection-page .fm-product-info h3 { font-size: 13px; margin-bottom: 2px; }
.fm-collection-page .fm-product-info p { font-size: 10px; margin-bottom: 7px; }
.fm-collection-page .fm-qty { height: 34px; grid-template-columns: 30px 34px 30px; border-radius: 6px; }
.fm-collection-page .fm-qty button { font-size: 14px; }
.fm-collection-page .fm-add { height: 34px; font-size: 11px; }
.fm-collection-page .fm-detail-badge { right: 9px; bottom: 9px; padding: 4px 7px; font-size: 9px; }
.fm-collection-page .fm-zoom-icon { right: 9px; top: 9px; width: 27px; height: 27px; }
.fm-collection-intro,
.fm-page-head { max-width: 760px; margin-bottom: 40px; }
.fm-collection-intro h1,
.fm-page-head h1 { color: #10243e; font-size: clamp(42px, 6vw,66px); }
.fm-collection-intro p,
.fm-page-head p { color: #667589; font-size: 16px; }
.fm-filter-row a { border-color: #d3dce7; border-radius: 7px; background: #fff; color: #43546a; font-weight: 700; }
.fm-filter-row a.active { background: #10243e; border-color: #10243e; }

.fm-product-grid { gap: 16px; }
.fm-product-card {
  border-color: #d8e0e9;
  border-radius: 0;
  box-shadow: 0 5px 18px rgba(16,36,62,.055);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.fm-product-card:hover { border-color: #b8c8dc; box-shadow: 0 12px 26px rgba(16,36,62,.10); transform: translateY(-2px); }
.fm-product-image { aspect-ratio: 4/4.4; background: #edf1f5; }
.fm-product-image img { filter: saturate(.88); }
.fm-detail-badge { border-radius: 5px; background: rgba(11,31,51,.88); color: #fff; letter-spacing: .04em; right: 12px; left: auto; }
.fm-zoom-icon { border-radius: 6px; color: #1f5eff; }
.fm-product-info { padding: 13px 16px 14px; }
.fm-product-info h3 { color: #152b47; font-size: 14px; margin: 0 0 3px; }
.fm-product-info p { color: #758396; font-weight: 700; font-size: 11px; margin: 0 0 10px; }
.fm-qty { border-color: #cfd8e3; border-radius: 7px; }
.fm-qty button:hover { background: #edf3fb; color: #1f5eff; }
.fm-add { font-size: 12px; }
.fm-product-card.fm-direct-qty .fm-pick-row { justify-content: center; }

.fm-modal { background: rgba(4,14,25,.84); backdrop-filter: blur(5px); }
.fm-modal-panel { border-radius: 12px; background: #fff; }
.fm-modal-stage { border-radius: 8px; background: #edf1f5; }
.fm-modal-close,
.fm-modal-arrow { background: rgba(11,31,51,.9); color: #fff; }
.fm-modal-thumbs button { border-radius: 5px; }
.fm-modal-thumbs button.active { border-color: #1f5eff; }
.fm-modal-counter { background: rgba(11,31,51,.88); border-radius: 5px; }

.fm-empty { border-color: #c6d1dd; border-radius: 10px; background: #fff; }
.fm-empty h3 { color: #10243e; font: 750 27px/1.2 Inter, "Segoe UI", sans-serif; }
.fm-cart-row,
.fm-form-card,
.fm-history-card { border-color: #d8e0e9; border-radius: 10px; box-shadow: 0 5px 18px rgba(16,36,62,.045); }
.fm-cart-thumb { border-radius: 7px; background: #edf1f5; }
.fm-form-card h2 { color: #10243e; font: 750 28px/1.2 Inter, "Segoe UI", sans-serif; letter-spacing: -.025em; }
.fm-form-card input,
.fm-gate input { border-color: #cbd6e2; border-radius: 6px; }
.fm-form-card input:focus,
.fm-gate input:focus { border-color: #1f5eff; box-shadow: 0 0 0 3px rgba(31,94,255,.1); outline: 0; }
.fm-notice.is-success { background: #e7f5ed; color: #17643a; }
.fm-notice.is-error { background: #fbeaea; color: #9a3030; }

.site-footer { background: #0b1f33; border-top: 0; color: #aebdcd; padding: 36px 16px; }
.site-footer-inner { color: #aebdcd; }
.fm-mobile-nav { background: rgba(255,255,255,.98); border-top-color: #d8e0e9; box-shadow: 0 -6px 20px rgba(16,36,62,.08); }
.fm-mobile-nav a { color: #667589; }
.fm-mobile-nav a:hover { color: #1f5eff; }

.fm-gate-body { background: linear-gradient(135deg,#0b1f33,#184678); }
.fm-gate { border: 1px solid rgba(255,255,255,.22); border-radius: 12px; }
.fm-gate-mark { border-radius: 8px; background: #10243e; font-family: Inter, sans-serif; font-weight: 800; }
.fm-gate h1 { font: 750 43px/1.08 Inter, "Segoe UI", sans-serif; letter-spacing: -.04em; }

@media (max-width: 900px) {
  .fm-collection-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fm-hero { min-height: 370px; padding: 46px; }
}

@media (max-width: 640px) {
  body { background: #f3f6f9; }
  .site-header-inner { height: 62px; }
  .site-brand-mark { width: 34px; height: 34px; border-radius: 7px; }
  .site-brand-name { font-size: 17px; }
  .fm-shell { padding-top: 24px; }
  .fm-collection-page { padding-top: 8px; }
  .fm-collection-page .fm-breadcrumb { margin-bottom: 10px; }
  .fm-collection-page .fm-live-search { margin-bottom: 10px; }
  .fm-hero { min-height: 360px; border-radius: 10px; padding: 32px 22px; }
  .fm-hero:before { height: 190px; width: 190px; right: -45px; top: 30%; }
  .fm-hero:after { height: 90px; width: 90px; right: 6%; top: 17%; }
  .fm-hero h1 { font-size: 42px; max-width: 300px; }
  .fm-hero p { font-size: 14px; line-height: 1.6; }
  .fm-home-search { margin-top: -19px; }
  .fm-search-bar { border-radius: 8px; }
  .fm-section-head { padding-top: 52px; }
  .fm-section-head h2 { font-size: 32px; }
  .fm-collection-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .fm-collection-card { aspect-ratio: 4 / 5; min-height: 0; border-radius: 9px; }
  .fm-collection-overlay { padding: 30px 14px 14px; }
  .fm-collection-overlay strong { font-size: 16px; margin-bottom: 8px; }
  .fm-collection-overlay em { font-size: 10px; }
  .fm-collection-intro h1,
  .fm-page-head h1 { font-size: 40px; }
  .fm-product-grid { gap: 9px; }
  .fm-product-card { border-radius: 0; }
  .fm-product-info { padding: 9px 10px 11px; }
  .fm-product-info h3 { font-size: 12px; line-height: 1.35; margin-bottom: 2px; }
  .fm-product-info p { font-size: 10px; margin-bottom: 8px; }
  .fm-collection-page .fm-product-grid { gap: 8px; }
  .fm-collection-page .fm-product-info { padding: 8px 9px 10px; }
  .fm-collection-page .fm-product-info p { margin-bottom: 6px; }
  .fm-collection-page .fm-qty { width: 100%; height: 34px; grid-template-columns: 1fr 38px 1fr; }
  .fm-collection-page .fm-add { width: 100%; margin-top: 6px; }
  .fm-modal-panel { border-radius: 10px 10px 0 0; }
  .fm-modal-stage { border-radius: 6px; }
  .fm-form-card { padding: 22px; }
  .fm-cart-actions { background: rgba(243,246,249,.96); }
}
