html, body { height:100%; overflow-x:hidden; overscroll-behavior-x:none; }
:root {
  --mf-primary: #0F766E;
  --mf-primary-contrast: #ffffff;
  --mf-bg: #f5f6f8;
  --mf-surface: #ffffff;
  --mf-border: #e5e7eb;
  --mf-text: #111827;
  --mf-text-muted: #6b7280;
  --mf-radius: 12px;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin:0;
  background:var(--mf-bg);
  color:#222;
  display:flex;
  flex-direction:column;
  overflow-x:hidden;
  touch-action: auto;
}
.site-header { background:var(--mf-surface); border-bottom:1px solid var(--mf-border); position:sticky; top:0; z-index:50; }
.header-inner { width:100%; padding:10px 24px; box-sizing:border-box; display:flex; align-items:center; gap:16px; }
.logo { display:flex; align-items:center; gap:8px; text-decoration:none; color:#111827; font-weight:600; }
.logo-mark { width:28px; height:28px; border-radius:999px; background:var(--mf-primary); color:var(--mf-primary-contrast); display:flex; align-items:center; justify-content:center; font-size:14px; }
.logo-text { font-size:18px; }
.header-bar { flex:1; display:flex; align-items:center; gap:10px; }
.location-pill { display:flex; align-items:center; gap:6px; border-radius:999px; border:1px solid #d1d5db; background:#f9fafb; padding:6px 10px; font-size:13px; cursor:pointer; min-width:210px; }
.location-icon { font-size:14px; }
.location-city { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:160px; }
.location-caret { font-size:10px; color:#6b7280; }
.header-search { flex:1; display:flex; align-items:center; gap:6px; border-radius:999px; border:1px solid #d1d5db; padding:6px 10px; background:#f9fafb; }
.header-search input { flex:1; border:none; outline:none; background:transparent; font-size:13px; }
.search-icon { font-size:13px; color:#6b7280; }
.search-suggestions { position:absolute; top:110%; left:0; right:0; background:#ffffff; border-radius:12px; box-shadow:0 10px 25px rgba(15,23,42,0.12); padding:6px 0; font-size:13px; z-index:60; max-height:260px; overflow-y:auto; }
.search-suggestion-item { padding:6px 10px; display:flex; justify-content:space-between; align-items:center; cursor:pointer; }
.search-suggestion-item:hover { background:#f3f4f6; }
.search-suggestion-type { font-size:11px; color:#6b7280; margin-left:8px; }
.header-right { display:flex; align-items:center; gap:8px; margin-left:auto; }
.icon-button { position:relative; width:34px; height:34px; border-radius:999px; border:1px solid #e5e7eb; background:#fff; display:flex; align-items:center; justify-content:center; text-decoration:none; color:#111827; font-size:16px; }
.icon-badge { position:absolute; top:-4px; right:-4px; min-width:16px; height:16px; border-radius:999px; background:#ef4444; color:#fff; font-size:10px; display:flex; align-items:center; justify-content:center; }
.btn-ghost { padding:6px 12px; border-radius:999px; border:1px solid #d1d5db; text-decoration:none; color:#111827; font-size:12px; }
.header-user { font-size:13px; color:#374151; }
.profile-menu-wrapper { position:relative; }
.profile-menu {
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  min-width:200px;
  max-width:calc(100vw - 24px);
  background:#ffffff;
  border-radius:14px;
  border:1px solid #e5e7eb;
  box-shadow:0 18px 40px rgba(15,23,42,0.18);
  padding:8px;
  font-size:13px;
  z-index:999;
  box-sizing:border-box;
  overflow:hidden;
}
.profile-menu a { display:block; padding:10px 10px; border-radius:10px; text-decoration:none; color:#111827; }
.profile-menu a:hover { background:#f3f4f6; }
.site-main { width:100%; max-width:1100px; margin:0 auto; padding:20px 24px 90px; box-sizing:border-box; touch-action:auto; }
.page-wrapper { width:100%; max-width:1100px; margin:0 auto; padding:20px 24px 90px; box-sizing:border-box; }
.section-link { font-size:13px; text-decoration:none; color:var(--mf-primary); font-weight:500; }
.section-link:hover { text-decoration:underline; }

.home-hero { margin: 6px 0 18px; }
.home-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  background: radial-gradient(1200px 500px at 10% 10%, rgba(15,118,110,0.18), transparent 60%),
              radial-gradient(900px 400px at 90% 20%, rgba(37,99,235,0.12), transparent 55%),
              linear-gradient(180deg, #ffffff, #ffffff);
  border: 1px solid var(--mf-border);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.home-hero-inner.mf-hero-visual-only {
  grid-template-columns: 1fr;
}
.home-hero-kicker { font-size:12px; color:var(--mf-text-muted); font-weight:600; letter-spacing:0.2px; }
.home-hero-content h1 { margin:8px 0 8px; font-size:32px; line-height:1.15; color:var(--mf-text); }
.home-hero-content p { margin:0 0 14px; color:#4b5563; font-size:15px; }
.home-hero-actions { display:flex; gap:10px; flex-wrap:wrap; }
.home-trust-row { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.trust-item { display:flex; align-items:center; gap:8px; background: rgba(255,255,255,0.8); border:1px solid var(--mf-border); padding:8px 10px; border-radius: 12px; font-size:13px; }
.trust-icon { width:28px; height:28px; border-radius:10px; display:flex; align-items:center; justify-content:center; background: rgba(15,118,110,0.12); }
.trust-text { color:#374151; font-weight:500; }

.home-hero-visual { width:100%; }
.home-banner-slider {
  position: relative;
  width: 100%;
  height: clamp(200px, 28vw, 320px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--mf-border);
  background: #fff;
}
.home-banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 320ms ease;
  will-change: transform;
}
.home-banner-slide {
  flex: 0 0 100%;
  display: block;
  text-decoration: none;
  color: inherit;
}
.home-banner-slide {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}
.home-banner-slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

@media (min-width: 901px) {
  .home-banner-slide img { object-fit: cover; }
}

.home-banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  background: rgba(255, 255, 255, 0.85);
  color: #111827;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.home-banner-nav.prev { left: 10px; }
.home-banner-nav.next { right: 10px; }

.home-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
}
.home-banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  background: rgba(17, 24, 39, 0.25);
  cursor: pointer;
}
.home-banner-dot.active {
  background: var(--mf-primary);
}
.home-hero-placeholder { border-radius:16px; border:1px dashed var(--mf-border); padding:18px; background: rgba(255,255,255,0.9); display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.placeholder-title { font-size:16px; font-weight:700; color:var(--mf-text); }
.placeholder-sub { font-size:13px; color:var(--mf-text-muted); }

.category-card { position:relative; }
.category-icon-fallback { width:28px; height:28px; border-radius:10px; background: rgba(15,118,110,0.12); display:flex; align-items:center; justify-content:center; }
.category-cta { margin-top:auto; font-size:12px; color:var(--mf-primary); font-weight:600; }

.service-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.service-chip { font-size:11px; padding:3px 8px; border-radius:999px; background: rgba(15,118,110,0.12); color: var(--mf-primary); font-weight:600; white-space:nowrap; }

/* Mobile home: horizontal category scroller */
.mf-hscroll {
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding: 4px 2px 2px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.mf-hscroll::-webkit-scrollbar { display:none; }

/* Custom horizontal scroller for services page */
.service-scroller {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px;
  gap: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.service-scroller::-webkit-scrollbar {
  display: none;
}

.service-scroller-item {
  flex: 0 0 auto;
  min-width: 100px;
  width: 100px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 8px;
  text-decoration: none;
  color: #111827;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-scroller-item:hover {
  border-color: var(--mf-primary);
  box-shadow: 0 0 0 1px rgba(15,118,110,0.25);
}

.service-scroller-item.active {
  border-color: var(--mf-primary);
  box-shadow: 0 0 0 1px rgba(15,118,110,0.35);
  font-weight: 500;
}

.service-scroller-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
}

.service-scroller-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.service-scroller-label {
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 100%;
}
.mf-cat-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 96px;
  text-decoration:none;
  color: var(--mf-text);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding: 14px 8px;
  border-radius: 16px;
  border: 1px solid var(--mf-border);
  background: #ffffff;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(15,23,42,0.05);
}
.mf-cat-chip img,
.mf-cat-fallback {
  width:64px;
  height:64px;
  border-radius:18px;
  background:#ffffff;
  border: 1px solid var(--mf-border);
  object-fit:cover;
  box-shadow: 0 4px 12px rgba(15,23,42,0.08);
}
.mf-cat-fallback {
  background: radial-gradient(16px 16px at 30% 30%, rgba(15,118,110,0.22), transparent 60%), #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.mf-cat-name {
  font-size:13px;
  font-weight: 500;
  color: var(--mf-text);
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:96px;
  line-height: 1.3;
}

/* Mobile-only bottom nav */
.mf-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.94);
  border-top: 1px solid var(--mf-border);
  backdrop-filter: blur(10px);
  z-index: 80;
  display:none;
}
.mf-bottom-nav-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 12px 12px;
  display:flex;
  justify-content:space-around;
  gap: 6px;
}
.mf-nav-item {
  text-decoration:none;
  color: var(--mf-text-muted);
  font-size: 11px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 6px;
  min-width: 56px;
}
.mf-nav-dot {
  width: 40px;
  height: 32px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: transparent;
  border: 1px solid transparent;
  font-size: 16px;
}
.mf-nav-item.active { color: var(--mf-primary); font-weight: 700; }
.mf-nav-item.active .mf-nav-dot {
  background: rgba(15,118,110,0.10);
  border-color: rgba(15,118,110,0.18);
}

@media (max-width: 640px) {
  .header-inner { padding: 10px 12px; }
  .logo-text { font-size: 16px; }
  .location-pill { display:none; }
  .header-search { border-radius: 14px; }
  .page-wrapper { padding: 12px 12px 92px; }

  .home-hero-inner {
    padding: 14px;
    grid-template-columns: 1fr;
  }
  .home-hero-content h1 { font-size: 22px; }

  .highlight-groups-grid { grid-template-columns: 1fr; }
  .home-steps { grid-template-columns: 1fr; }

  /* Make service cards look app-like on mobile */
  .service-card { display:flex; gap: 12px; align-items:flex-start; }
  .service-card-media { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 16px; overflow:hidden; border:1px solid var(--mf-border); background:#fff; }
  .service-card-media img { width:100%; height:100%; object-fit:cover; display:block; }
  .service-card-top { margin-top: 0; }
  .service-actions { flex-wrap: wrap; }
  .mf-bottom-nav { display:block; }

  /* Mobile horizontal scrolling for service selection */
  .mf-hscroll { display:flex; gap:14px; overflow-x:auto; padding: 6px 4px 4px; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .mf-cat-chip { flex: 0 0 auto; scroll-snap-align: start; width: 96px; padding: 14px 8px; }
  .service-scroller { display: flex; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding: 8px 4px; gap: 12px; }
  .service-scroller-item { flex: 0 0 auto; min-width: 100px; width: 100px; scroll-snap-align: start; }
}

@media (max-width: 420px) {
  .mf-bottom-nav-inner { padding: 8px 6px 10px; gap: 2px; }
  .mf-nav-item { min-width: 48px; font-size: 10px; gap: 4px; }
  .mf-nav-dot { width: 36px; height: 30px; border-radius: 12px; font-size: 15px; }
}

.home-steps { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; }
.home-step { background:#fff; border:1px solid var(--mf-border); border-radius:16px; padding:14px; }
.step-num { width:34px; height:34px; border-radius:12px; background: rgba(15,118,110,0.12); color: var(--mf-primary); font-weight:800; display:flex; align-items:center; justify-content:center; margin-bottom:10px; }
.step-title { font-size:14px; font-weight:700; color: var(--mf-text); margin-bottom:4px; }
.step-desc { font-size:13px; color: #4b5563; }

.home-cta { background:#fff; border:1px solid var(--mf-border); border-radius:18px; padding:16px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.home-cta-title { font-size:15px; font-weight:700; color: var(--mf-text); margin-bottom:2px; }
.home-cta-sub { font-size:13px; color:#4b5563; }

.highlight-groups-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.highlight-card {
  background: linear-gradient(180deg, rgba(15,118,110,0.10), rgba(255,255,255,1) 38%);
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  min-height: 220px;
}

.highlight-card:hover {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
  border-color: rgba(15,118,110,0.28);
}

.highlight-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.highlight-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--mf-text);
  letter-spacing: 0.2px;
}

.highlight-view {
  font-size: 12px;
  text-decoration: none;
  color: var(--mf-primary);
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,118,110,0.22);
  background: rgba(15,118,110,0.10);
}

.highlight-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.highlight-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 18px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: rgba(255,255,255,0.98);
  text-decoration: none;
  color: var(--mf-text);
  font-size: 13px;
  text-align: center;
}

.highlight-cat:hover {
  border-color: rgba(15,118,110,0.45);
  box-shadow: 0 0 0 2px rgba(15,118,110,0.10);
}

.highlight-cat img {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(15,118,110,0.08);
  padding: 6px;
}

.highlight-cat .dot {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: rgba(15,118,110,0.12);
  border: 1px solid rgba(15,118,110,0.22);
  display: inline-block;
}

.highlight-cat span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.highlight-empty {
  font-size: 13px;
  color: var(--mf-text-muted);
  background: rgba(255,255,255,0.7);
  border: 1px dashed var(--mf-border);
  border-radius: 16px;
  padding: 12px;
}

@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: 1fr; padding: 16px; }
  .home-hero-content h1 { font-size:26px; }
  .home-banner-slider { height: 240px; }
  .home-steps { grid-template-columns: 1fr; }
  .highlight-groups-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .home-banner-nav { display: none; }
  .home-banner-slider { height: 210px; }
  .home-cta { flex-direction: column; align-items: stretch; }
}

/* Service detail page (brand style) */
.service-detail-page {
  max-width: 1120px;
  margin: 0 auto;
}
.service-detail-header {
  margin-bottom: 16px;
}
.service-detail-breadcrumb {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}
.service-detail-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}
.service-detail-tags {
  margin-top: 6px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e5f3ff;
  font-size: 11px;
  color: #1d4ed8;
}

.hero-section { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:24px; align-items:center; margin-bottom:32px; }
.hero-content h1 { font-size:28px; margin-bottom:8px; }
.hero-content p { font-size:15px; color:#4b5563; margin-bottom:16px; }
.hero-slider { display:flex; overflow-x:auto; gap:12px; }
.hero-slide img { border-radius:12px; max-height:180px; width:auto; display:block; }

.home-section { margin-bottom:32px; }
.section-header { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:16px; padding-bottom: 8px; border-bottom: 1px solid rgba(229,231,235,0.6); }
.section-header h2, .section-header h1 { font-size:22px; font-weight: 700; margin:0; color: #111827; letter-spacing: -0.02em; }

.category-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(120px, 1fr)); gap:12px; }
.category-card { text-decoration:none; background:#fff; border-radius:12px; padding:10px; border:1px solid #e5e7eb; display:flex; flex-direction:column; align-items:flex-start; gap:6px; color:#111827; }
.category-icon { width:28px; height:28px; object-fit:contain; }
.category-name { font-size:14px; font-weight:500; }

.service-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:14px; }
.service-card { background:#fff; border-radius:12px; padding:12px; border:1px solid #e5e7eb; display:flex; flex-direction:column; gap:8px; }
.service-card-media { width:100%; height:140px; border-radius:12px; overflow:hidden; border:1px solid var(--mf-border); background:#fff; }
.service-card-media img { width:100%; height:100%; object-fit:cover; display:block; }
.service-card h3 { font-size:16px; margin:0; }
.service-desc { font-size:13px; color:#4b5563; min-height:32px; }
.service-meta { display:flex; align-items:center; justify-content:space-between; font-size:13px; }
.service-price { font-weight:600; color:#111827; }
.service-duration { color:#6b7280; }
.service-actions { display:flex; gap:8px; margin-top:4px; }
.inline-form { margin:0; }

.mf-popular-grid { margin-top: 2px; }

@media (min-width: 900px) {
  .mf-popular-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.mf-popular-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mf-popular-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--mf-border);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.mf-popular-link {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: var(--mf-text);
}

.mf-popular-media {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--mf-border);
  background: #fff;
}

.mf-popular-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mf-popular-media-ph {
  width: 100%;
  height: 100%;
  background: radial-gradient(14px 14px at 30% 30%, rgba(15,118,110,0.16), transparent 60%), #ffffff;
}

.mf-popular-body { min-width: 0; }

.mf-popular-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.mf-popular-sub {
  font-size: 12px;
  color: var(--mf-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.mf-popular-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.mf-popular-price {
  font-size: 13px;
  font-weight: 900;
  color: var(--mf-text);
}

.mf-popular-meta {
  font-size: 11px;
  color: var(--mf-text-muted);
}

.mf-popular-stats {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mf-stat {
  font-size: 11px;
  color: var(--mf-text-muted);
}

.mf-popular-save {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #111827;
  font-size: 16px;
  cursor: pointer;
  appearance: none;
  padding: 0;
}

.mf-popular-save.liked {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(255, 255, 255, 0.98);
}

.mf-popular-cta {
  padding: 0 12px 12px;
}

.mf-popular-add {
  width: 100%;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(15,118,110,0.25);
  background: rgba(15,118,110,0.10);
  color: var(--mf-primary);
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 640px) {
  .mf-popular-wrap {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 2px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .mf-popular-wrap::-webkit-scrollbar { display:none; }
  .mf-popular-card { flex: 0 0 auto; width: 320px; scroll-snap-align: start; }
}

@media (min-width: 900px) {
  .mf-popular-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Services listing (Urban-style 3-column layout) */
.services-layout {
  display:grid;
  grid-template-columns:300px minmax(0, 1fr);
  gap:20px;
  align-items:flex-start;
}
.services-left { position: sticky; top: 84px; }
.services-left-box { background:#fff; border-radius:16px; border:1px solid #e5e7eb; padding:12px; }
.services-left-title { font-size:13px; font-weight:600; margin-bottom:8px; }
.services-left-grid {
  display:flex;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  max-width: 100%;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 2px;
}
.services-left-grid::-webkit-scrollbar { display:none; }
.services-left-item {
  border-radius:14px;
  border:1px solid #e5e7eb;
  background:#ffffff;
  padding:10px 8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  font-size:12px;
  cursor:pointer;
  text-decoration:none;
  color:#111827;
  flex:0 0 auto;
  width:140px;
  min-width:140px;
  scroll-snap-align:start;
}
.services-left-item .emoji {
  width:56px;
  height:56px;
  border-radius:14px;
  background:#f3f4f6;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  overflow:hidden;
}
.services-left-item .emoji img { width:100%; height:100%; object-fit:cover; border-radius:12px; }
.services-left-item .label {
  text-align:center;
  line-height:1.2;
  font-size:11px;
  margin-top:6px;
  display:-webkit-box;
  overflow:hidden;
  text-overflow:ellipsis;
  line-clamp:2;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.services-left-item:hover { border-color:var(--mf-primary); box-shadow:0 0 0 1px rgba(15,118,110,0.25); }
.services-left-item.active { border-color:var(--mf-primary); box-shadow:0 0 0 1px rgba(15,118,110,0.35); font-weight:500; }
.mf-cat-chip:hover { 
  border-color: var(--mf-primary); 
  box-shadow: 0 0 0 2px rgba(15,118,110,0.25), 0 4px 16px rgba(15,23,42,0.12); 
  transform: translateY(-2px);
}
.mf-cat-chip.active { 
  border-color: var(--mf-primary); 
  box-shadow: 0 0 0 2px rgba(15,118,110,0.35), 0 6px 20px rgba(15,23,42,0.15); 
  font-weight: 600;
  background: rgba(15,118,110,0.03);
  transform: translateY(-2px);
}

@media (min-width: 769px) {
  .services-left-grid { display:grid; overflow:visible; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; scroll-snap-type:none; }
  .services-left-item { width:auto; min-width:0; flex:initial; scroll-snap-align:unset; }
  .mf-hscroll { display:grid; overflow:visible; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; scroll-snap-type:none; }
  .mf-cat-chip { width:auto; min-width:0; flex:initial; scroll-snap-align:unset; }
  .service-scroller { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; overflow: visible; scroll-snap-type: none; }
  .service-scroller-item { width: auto; min-width: 0; flex: initial; scroll-snap-align: unset; }
}

.services-center { background:transparent; }
.services-center-header h1 { font-size:20px; margin:0 0 4px; }
.services-center-header p { margin:0 0 10px; font-size:13px; color:#6b7280; }
.services-list { display:flex; flex-direction:column; gap:10px; }
.services-list-item { background:#fff; border-radius:18px; border:1px solid #e5e7eb; padding:14px; display:flex; justify-content:space-between; gap:14px; align-items:center; box-shadow:0 8px 18px rgba(15,23,42,0.04); flex-direction:row-reverse; }
.services-list-item:hover { border-color: rgba(15,118,110,0.28); box-shadow:0 12px 24px rgba(15,23,42,0.08); }
.services-list-info h2 { margin:0 0 4px; font-size:15px; }
.services-rating-row { display:flex; align-items:center; gap:6px; font-size:12px; color:#374151; margin:0 0 6px; }
.services-rating-row .star { color:#f59e0b; font-size:13px; line-height:1; }
.services-rating-row .rating-val { font-weight:800; color:#111827; }
.services-rating-row .rating-count { color:#6b7280; }

.services-price-row { display:flex; align-items:baseline; gap:8px; font-size:13px; margin:0 0 10px; }
.services-price-row .dot { color:#9ca3af; }

.services-list-desc { margin:0 0 10px; font-size:13px; color:#4b5563; line-height:1.35; }
.services-list-meta { display:flex; gap:10px; font-size:13px; align-items:center; margin-bottom:4px; }
.services-list-meta .price { font-weight:600; color:#111827; }
.services-list-meta .price-discount { font-weight:600; color:#111827; }
.services-list-meta .price-original { font-size:12px; color:#9ca3af; text-decoration:line-through; }
.services-list-meta .duration { color:#6b7280; }
.services-list-save { font-size:12px; color:#16a34a; margin-bottom:4px; }
.services-list-link { font-size:13px; color:var(--mf-primary); text-decoration:none; }
.services-list-right { width:200px; display:flex; flex-direction:column; align-items:stretch; gap:10px; }
.services-list-thumb { width:100%; position:relative; }
.services-list-thumb img { width:100%; max-width:200px; height:150px; border-radius:16px; object-fit:contain; display:block; border:1px solid rgba(229,231,235,0.9); background:#ffffff; }
.services-thumb-badge { position:absolute; left:10px; top:10px; padding:4px 8px; border-radius:999px; background:rgba(17,24,39,0.78); color:#fff; font-size:11px; font-weight:800; letter-spacing:0.2px; }
.services-list-actions { width:100%; display:flex; align-items:center; justify-content:center; }

.services-right { display:flex; flex-direction:column; gap:10px; }
.services-cart-box, .services-promise-box { background:#fff; border-radius:16px; border:1px solid #e5e7eb; padding:12px; font-size:13px; }
.services-cart-box .title, .services-promise-box .title { font-weight:600; margin-bottom:6px; }
.services-cart-box .empty-text { margin:0 0 6px; font-size:12px; color:#6b7280; }
.services-cart-link { font-size:12px; color:var(--mf-primary); text-decoration:none; }
.cart-mini-line { display:flex; align-items:center; justify-content:space-between; font-size:13px; margin-bottom:6px; }
.cart-mini-name { font-weight:500; color:#111827; margin-right:8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:70%; }
.cart-mini-price { font-weight:600; }
.services-cart-cta { margin-top:4px; text-align:center; }
.cart-mini-qty { display:inline-flex; align-items:center; gap:8px; padding:4px 8px; border-radius:999px; background:#f3f4f6; margin-bottom:6px; }
.cart-qty-btn { width:22px; height:22px; border-radius:999px; border:none; background:#ffffff; font-size:14px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.cart-qty-value { min-width:20px; text-align:center; font-size:13px; }
.cart-offer-strip { margin:6px 0; padding:6px 8px; border-radius:10px; background:#dcfce7; display:flex; align-items:flex-start; gap:6px; font-size:12px; color:#166534; }
.cart-offer-icon { font-size:14px; }
.cart-offer-text { flex:1; }
.services-promise-box ul { list-style:none; padding:0; margin:0; font-size:12px; color:#4b5563; }
.services-promise-box li { margin-bottom:4px; }

.btn-primary { background:var(--mf-primary); color:var(--mf-primary-contrast); border:none; border-radius:999px; padding:6px 12px; font-size:13px; text-decoration:none; display:inline-block; cursor:pointer; }
.btn-secondary { background:#e5e7eb; color:#111827; border:none; border-radius:999px; padding:6px 12px; font-size:13px; text-decoration:none; display:inline-block; cursor:pointer; }
.btn-block { width:100%; text-align:center; }
.link-danger { color:#b91c1c; text-decoration:none; font-size:13px; }

.site-footer { background:#111827; color:#e5e7eb; margin-top:40px; }
.footer-inner { max-width:1120px; margin:0 auto; padding:20px 16px; display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:16px; font-size:13px; }
.footer-col h4 { margin-top:0; margin-bottom:6px; font-size:14px; }
.footer-col ul { list-style:none; padding:0; margin:0; }
.footer-col li { margin-bottom:4px; }
.footer-col a { color:#e5e7eb; text-decoration:none; }

.cart-table { width:100%; border-collapse:collapse; margin:12px 0; background:#fff; border-radius:12px; overflow:hidden; }
.cart-table th, .cart-table td { padding:8px 10px; border-bottom:1px solid #e5e7eb; font-size:13px; }
.cart-summary { margin-top:12px; display:flex; align-items:center; justify-content:space-between; }
.cart-actions { display:flex; gap:8px; }
.cart-saved { margin-top:4px; font-size:13px; color:#16a34a; }
.cart-qty-inline { display:inline-flex; align-items:center; gap:6px; }
.cart-qty-input { width:60px; padding:4px 6px; border-radius:6px; border:1px solid #d1d5db; font-size:13px; }

.checkout-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(260px,1fr); gap:16px; }
.checkout-summary { background:#fff; border-radius:12px; padding:12px; border:1px solid #e5e7eb; font-size:13px; }
.summary-items { list-style:none; padding:0; margin:0 0 8px; }
.summary-items li { display:flex; align-items:center; justify-content:space-between; margin-bottom:4px; }
.summary-total { display:flex; align-items:center; justify-content:space-between; font-weight:600; }

.checkout-steps { display:flex; flex-direction:column; gap:10px; }
.checkout-step { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:10px 12px; }
.checkout-step-header { font-size:13px; font-weight:600; margin-bottom:6px; }
.checkout-step-body { font-size:13px; }
.checkout-booking-summary { background:#ecfdf3; border-radius:10px; border:1px solid #bbf7d0; padding:8px 10px; font-size:13px; margin-bottom:10px; }

.form-group { margin-bottom:10px; font-size:13px; }
.form-group span { display:block; margin-bottom:4px; }
.form-group input, .form-group textarea, .form-group select { width:100%; padding:6px 8px; border-radius:8px; border:1px solid #d1d5db; font-size:13px; }
.form-row { display:flex; gap:10px; }

.auth-form { background:#fff; border-radius:12px; padding:16px; border:1px solid #e5e7eb; margin-top:8px; }
.message-error { background:#fee2e2; color:#991b1b; padding:8px 10px; border-radius:8px; font-size:13px; }

@media (max-width: 1024px) {
  .services-layout { grid-template-columns:280px minmax(0,1fr); }
  .services-right { grid-column: 1 / -1; flex-direction: row; }
  .services-cart-box, .services-promise-box { flex:1; }
}

@media (max-width: 900px) {
  .header-inner { padding:10px 14px; flex-wrap:wrap; }
  .header-bar { width:100%; flex-wrap:wrap; }
  .header-right { width:100%; justify-content:flex-end; }
  .location-pill { min-width:0; width:100%; }
  .header-search { width:100%; }
  .page-wrapper { padding:14px 14px; }
  .hero-section { grid-template-columns:1fr; }
  .hero-slide img { max-height:160px; }
  .services-layout { grid-template-columns:1fr; }
  .services-left-box { order:2; }
  .services-center { order:1; }
  .services-right { order:3; flex-direction:column; }
  .services-left-grid { display:flex; gap:12px; overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; max-width: 100%; touch-action: pan-x; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 4px 2px 2px; scrollbar-width:none; -ms-overflow-style:none; }
  .services-left-grid::-webkit-scrollbar { display:none; }
  .services-left-item { width:140px !important; min-width:140px; scroll-snap-align:start; }
}

@media (max-width: 600px) {
  .logo-text { font-size:16px; }
  .header-right { gap:6px; }
  .icon-button { width:32px; height:32px; font-size:15px; }
  .profile-menu { right:0; left:auto; min-width:220px; }
  .category-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns:1fr; }
  .services-left-grid {
    display:flex;
    gap:12px;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    max-width: 100%;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 2px;
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  .services-left-grid::-webkit-scrollbar { display:none; }
  .services-left-item { flex:0 0 auto; width:140px !important; min-width:140px; scroll-snap-align:start; }
  .services-list-item { display:grid; grid-template-columns:180px minmax(0, 1fr); align-items:start; }
  .services-list-right { width:180px; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:10px; }
  .services-list-thumb { width:180px; overflow:hidden; border-radius:16px; border:1px solid rgba(229,231,235,0.9); background:#ffffff; }
  .services-list-thumb img { width:100%; max-width:180px; height:140px; object-fit:contain; background:#ffffff; display:block; border:none; }
  .services-list-actions { width:180px; display:flex; align-items:center; justify-content:flex-start; }
  .services-list-actions .btn-primary { width:100%; }
  .form-row { flex-direction:column; }
  .cart-summary { flex-direction:column; align-items:stretch; gap:10px; }
  .cart-actions { flex-direction:column; }
  .checkout-layout { grid-template-columns:1fr; }
}
.message-success { background:#dcfce7; color:#166534; padding:8px 10px; border-radius:8px; font-size:13px; }

/* My bookings */
.bookings-list { margin-top:10px; display:flex; flex-direction:column; gap:8px; }
.booking-card-link { display:block; text-decoration:none; color:inherit; }
.booking-card-link:focus { outline:none; }
.booking-card-link:focus-visible .booking-card { box-shadow:0 0 0 3px rgba(15,118,110,0.18), 0 10px 25px rgba(15,23,42,0.05); border-color: rgba(15,118,110,0.35); }
.booking-card { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:10px 12px; font-size:13px; }
.booking-card-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.booking-code { font-weight:600; }
.booking-card-right { display:flex; align-items:center; gap:8px; }
.booking-amount { display:inline-flex; align-items:center; justify-content:center; min-width:54px; height:26px; padding:0 10px; border-radius:999px; background:rgba(15,118,110,0.10); color:var(--mf-primary); font-weight:900; font-size:12px; line-height:1; }
.booking-status { font-size:12px; padding:2px 8px; border-radius:999px; }
.booking-status-pending { background:#fef3c7; color:#92400e; }
.booking-status-accepted, .booking-status-searching, .booking-status-assigned, .booking-status-in_progress { background:#dbeafe; color:#1d4ed8; }
.booking-status-completed { background:#dcfce7; color:#166534; }
.booking-status-cancelled { background:#fee2e2; color:#991b1b; }
.booking-card-body { display:flex; flex-direction:column; gap:4px; }
.booking-row { display:flex; align-items:center; justify-content:space-between; }
.booking-row .label { color:#6b7280; }
.booking-row .value { font-weight:500; }

.mf-card { background:#fff; border:1px solid #e5e7eb; border-radius:16px; box-shadow:0 10px 25px rgba(15,23,42,0.05); }
.mf-detail-hero { background:#fff; border:1px solid #e5e7eb; border-radius:18px; padding:14px; box-shadow:0 10px 25px rgba(15,23,42,0.05); }
.mf-detail-breadcrumb { font-size:12px; color:#6b7280; margin-bottom:6px; }
.mf-detail-title-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.mf-detail-title { margin:0; font-size:20px; line-height:1.15; }
.mf-pill { display:inline-flex; align-items:center; justify-content:center; padding:6px 10px; border-radius:999px; background:rgba(15,118,110,0.10); color:var(--mf-primary); font-weight:800; font-size:12px; white-space:nowrap; }
.mf-detail-hero-media { margin-top:10px; border-radius:16px; overflow:hidden; border:1px solid rgba(229,231,235,0.95); background:#fff; }
.mf-detail-hero-media img { width:100%; height:auto; max-height:220px; object-fit:contain; display:block; background:#fff; }
.mf-detail-hero-meta { margin-top:10px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.mf-rating-chip { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; background:#f3f4f6; font-size:12px; color:#111827; }
.mf-rating-chip .star { color:#f59e0b; }
.mf-rating-chip .val { font-weight:900; }
.mf-rating-chip .cnt { color:#6b7280; }

.mf-detail-grid { display:grid; grid-template-columns:1fr; gap:20px; align-items:start; margin-top:14px; }
.mf-detail-left { display:flex; flex-direction:column; gap:12px; min-width:0; }
.mf-detail-right { align-self:stretch; display:none; }

.mf-detail-section { padding:14px; }
.mf-section-title { font-size:14px; font-weight:900; color:#111827; margin-bottom:8px; }
.mf-detail-desc { font-size:14px; color:#4b5563; line-height:1.6; }

.mf-rate-card { padding:14px; }
.mf-rate-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.mf-rate-row { display:flex; align-items:baseline; gap:10px; }
.mf-rate-main { font-size:20px; font-weight:900; color:#111827; }
.mf-rate-strike { font-size:12px; color:#9ca3af; text-decoration:line-through; }
.mf-rate-save { font-size:12px; color:#16a34a; margin-top:2px; }
.mf-rate-note { font-size:12px; color:#6b7280; margin-top:4px; }
.mf-rate-actions { margin:0; }

.mf-rating-summary { display:flex; gap:14px; align-items:flex-start; }
.mf-rating-left { width:110px; }
.mf-rating-avg { font-size:32px; font-weight:900; line-height:1; color:#111827; }
.mf-rating-sub { font-size:12px; color:#6b7280; margin-top:4px; }
.mf-rating-bars { flex:1; display:flex; flex-direction:column; gap:8px; }
.mf-rating-bar { display:grid; grid-template-columns:34px 1fr 34px; gap:8px; align-items:center; }
.mf-rating-star { font-size:12px; color:#111827; font-weight:800; }
.mf-bar-track { height:8px; border-radius:999px; background:#e5e7eb; overflow:hidden; }
.mf-bar-fill { height:100%; border-radius:999px; background:linear-gradient(90deg, #fbbf24, #f59e0b); }
.mf-rating-count { font-size:12px; color:#6b7280; text-align:right; }

.mf-reviews { display:flex; flex-direction:column; gap:10px; }
.mf-review { border:1px solid rgba(229,231,235,0.95); border-radius:14px; padding:12px; background:#ffffff; }
.mf-review-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.mf-review-user { font-size:13px; font-weight:900; color:#111827; }
.mf-review-meta { display:flex; align-items:center; gap:8px; }
.mf-review-rating { font-size:12px; font-weight:900; color:#111827; background:#fef3c7; border:1px solid rgba(245,158,11,0.35); padding:3px 8px; border-radius:999px; }
.mf-review-date { font-size:12px; color:#6b7280; }
.mf-review-text { margin-top:8px; font-size:13px; color:#4b5563; line-height:1.5; }
.mf-empty { font-size:13px; color:#6b7280; }

@media (min-width: 900px) {
  .mf-detail-hero-media { background: radial-gradient(300px 220px at 25% 25%, rgba(15,118,110,0.10), transparent 60%), #ffffff; }
  .mf-detail-hero-media img { height:260px; max-height:none; object-fit:cover; }
}

.mf-booking-hero { margin: 10px 0 12px; background:#fff; border:1px solid #e5e7eb; border-radius:18px; padding:14px; box-shadow:0 10px 25px rgba(15,23,42,0.05); }
.mf-booking-hero-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.mf-booking-title { font-size:18px; font-weight:900; color:#111827; }
.mf-booking-sub { margin-top:6px; font-size:12px; color:#6b7280; }

.mf-booking-grid { display:flex; flex-direction:column; gap:12px; }
.mf-booking-card { padding:14px; }
.mf-kv { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid rgba(229,231,235,0.75); }
.mf-kv:last-child { border-bottom:none; padding-bottom:0; }
.mf-kv .k { font-size:12px; color:#6b7280; }
.mf-kv .v { font-size:13px; color:#111827; font-weight:700; text-align:right; }

.mf-booking-items { display:flex; flex-direction:column; gap:10px; }
.mf-booking-item { display:grid; grid-template-columns:52px minmax(0, 1fr) auto; gap:10px; align-items:center; padding:10px; border-radius:14px; border:1px solid rgba(229,231,235,0.9); background:#fff; }
.mf-booking-item-media { width:52px; height:52px; border-radius:14px; overflow:hidden; border:1px solid rgba(229,231,235,0.95); background:#fff; }
.mf-booking-item-media img { width:100%; height:100%; object-fit:cover; display:block; }
.mf-booking-item-ph { width:100%; height:100%; background: radial-gradient(14px 14px at 30% 30%, rgba(15,118,110,0.16), transparent 60%), #ffffff; }
.mf-booking-item-body { min-width:0; }
.mf-booking-item-title { font-size:13px; font-weight:900; color:#111827; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mf-booking-item-sub { margin-top:4px; font-size:12px; color:#6b7280; display:flex; gap:8px; flex-wrap:wrap; }
.mf-booking-item-price { font-size:13px; font-weight:900; color:#111827; }

.mf-work { font-size:13px; color:#111827; font-weight:600; line-height:1.5; }
.mf-work-lines { margin-top:2px; display:flex; flex-direction:column; gap:8px; }
.mf-work-line { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:10px; border-radius:14px; border:1px solid rgba(229,231,235,0.9); background:#ffffff; }
.mf-work-left { min-width:0; }
.mf-work-name { font-size:13px; font-weight:900; color:#111827; line-height:1.25; }
.mf-work-qty { margin-top:4px; font-size:12px; color:#6b7280; }
.mf-work-price { font-size:13px; font-weight:900; color:#111827; white-space:nowrap; }

.mf-invoice-card { padding:14px; }
.mf-invoice-btn { display:flex; align-items:center; justify-content:center; width:100%; height:44px; border-radius:16px; background:rgba(15,118,110,0.10); border:1px solid rgba(15,118,110,0.28); color:var(--mf-primary); text-decoration:none; font-weight:900; font-size:14px; }
.mf-invoice-btn:hover { background:rgba(15,118,110,0.14); }

.mf-booking-actions { display:flex; gap:10px; justify-content:flex-end; }

.service-detail-main { display:grid; grid-template-columns:minmax(0,2.2fr) minmax(260px,1fr); gap:20px; align-items:flex-start; }
.service-detail-info { font-size:14px; }
.service-detail-media { margin-bottom:12px; max-width:360px; }
.service-detail-media img { width:100%; max-height:160px; object-fit:cover; border-radius:16px; display:block; }
.service-full-desc { font-size:14px; color:#4b5563; margin:0 0 10px; line-height:1.5; }
.service-meta-list { list-style:none; padding:0; margin:0; font-size:13px; color:#374151; }
.service-meta-list li { margin-bottom:4px; }
.service-meta-list .meta-strike { margin-left:6px; font-size:12px; color:#9ca3af; text-decoration:line-through; }
.service-meta-list .meta-save { color:#16a34a; font-size:13px; }
.service-detail-sidebar { align-self:stretch; }
.price-box { background:#fff; border-radius:16px; padding:14px; border:1px solid #e5e7eb; font-size:13px; box-shadow:0 10px 25px rgba(15,23,42,0.05); }
.price-box .price { font-size:20px; font-weight:600; margin-bottom:4px; }
.price-row { display:flex; align-items:baseline; gap:8px; margin-bottom:4px; }
.price-main { font-size:20px; font-weight:600; }
.price-original { font-size:12px; color:#9ca3af; text-decoration:line-through; }
.price-save { font-size:12px; color:#16a34a; margin-bottom:6px; }
.price-box .note { font-size:12px; color:#6b7280; margin-bottom:8px; }
.detail-cart-form { margin-top:6px; display:flex; flex-direction:column; gap:8px; }
.detail-qty-label span { display:block; font-size:12px; color:#4b5563; margin-bottom:2px; }
.detail-qty-label input { width:100%; padding:6px 8px; border-radius:8px; border:1px solid #d1d5db; font-size:13px; }

.checkout-map {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  margin-top: 6px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-section { grid-template-columns:1fr; }
  .service-grid { grid-template-columns:1fr; }
  .category-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }

  /* General spacing */
  .header-inner { padding:8px 12px; }
  .page-wrapper, .site-main { padding:12px; box-sizing:border-box; }

  /* Services listing: stack and keep category scroller */
  .services-layout { grid-template-columns:1fr; gap:14px; }
  .services-left { position: static; }
  .services-left-box { padding:12px; }
  .services-left-title { margin-bottom:10px; }
  .services-left-grid {
    display:flex;
    gap:10px;
    overflow-x:scroll;
    overflow-y:hidden;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    max-width: 100%;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 2px;
    padding-left: 46px;
    padding-right: 46px;
  }
  .services-left-grid::-webkit-scrollbar { display:none; }
  .services-left-item { flex:0 0 auto; width:140px !important; min-width:140px; scroll-snap-align: start; }
  .services-left-item .emoji { width:54px; height:54px; }
  .services-center-header h1 { font-size:18px; }
  .services-list { gap:12px; }
  .services-list-item { padding:14px; border-radius:18px; }

  /* Mobile horizontal scrolling for service selection (768px breakpoint) */
  .mf-hscroll { display:flex; gap:14px; overflow-x:auto; padding: 6px 4px 4px; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .mf-cat-chip { flex: 0 0 auto; scroll-snap-align: start; width: 96px; padding: 14px 8px; }
  .service-scroller { display: flex; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding: 8px 4px; gap: 12px; }
  .service-scroller-item { flex: 0 0 auto; min-width: 100px; width: 100px; scroll-snap-align: start; }

  /* Service detail: stack columns and keep media compact */
  .checkout-layout, .service-detail-main { grid-template-columns:1fr; }
  .service-detail-page { padding-bottom:8px; }
  .service-detail-media { max-width:100%; }
  .service-detail-media img { max-height:180px; }

  .mf-detail-grid { grid-template-columns:1fr; gap:12px; }
  .mf-rating-summary { flex-direction:column; }
  .mf-rating-left { width:auto; display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
  .mf-rating-avg { font-size:28px; }

  .mf-rating-bars { width:100%; flex:0 0 auto; }
  .mf-rating-bar { width:100%; grid-template-columns:34px minmax(120px, 1fr) 34px; }
  .mf-bar-track { width:100%; min-width:120px; display:block; }
  .mf-bar-fill { display:block; }

  /* Cart page: table scrollable on small screens */
  .cart-table { display:block; width:100%; overflow-x:auto; font-size:12px; }
  .cart-table th, .cart-table td { white-space:nowrap; }
  .cart-actions { flex-direction:column; align-items:flex-start; }
  .cart-actions .btn-primary, .cart-actions .btn-secondary { width:100%; text-align:center; }

  /* Checkout summary card full-width under items */
  .checkout-summary { margin-top:12px; }
}
