/* UNIMART Service Discovery — clean, lightweight discovery UI
   Brand: orange #f68b1e · slate #2c3e50 · white professional shell */
.sd-wrap {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0.85rem 1rem 3rem;
  box-sizing: border-box;
}

/* Auth services surfaces — drop global chrome noise */
body.sd-auth .partners-section,
body.sd-auth .footer,
body.sd-auth .dm-fab {
  display: none !important;
}

.sd-hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.sd-hero--compact {
  text-align: left;
  padding: 0.65rem 0 0.35rem;
}

.sd-hero__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--unimart-text-muted);
  margin: 0 0 0.2rem;
}

.sd-hero__eyebrow span { color: var(--unimart-orange); font-weight: 700; }

.sd-hero__title {
  font-size: clamp(1.28rem, 4vw, 1.55rem);
  font-weight: 700;
  color: var(--unimart-text);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.sd-hero__sub { display: none; }

.sd-hero__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.sd-hero__toolbar--flush {
  margin-top: 0;
}

.sd-section--empty {
  padding: 1.5rem 0 2rem;
}

.sd-section__head h2 {
  font-family: var(--unimart-font-display, "Fraunces", Georgia, serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--unimart-slate, #2c3e50);
}

.sd-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 560px;
  margin: 0 auto 1rem;
  background: #fff;
  border: 1px solid var(--unimart-border);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.sd-search--toolbar {
  flex: 1 1 12rem;
  margin: 0;
  min-width: 0;
  max-width: none;
}

.sd-search__icon { color: var(--unimart-text-muted); }

.sd-search__input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 0.92rem;
  outline: none;
  min-width: 0;
}

.sd-search__btn {
  border: 0;
  background: var(--unimart-slate);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.sd-search__btn:hover { background: var(--unimart-orange); }

.sd-btn--offer {
  flex: 0 0 auto;
  white-space: nowrap;
  align-self: center;
}

.sd-hero__actions { display: none; }

.sd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.sd-btn--primary { background: var(--unimart-orange); color: #fff; }
.sd-btn--primary:hover { background: var(--unimart-orange-deep); color: #fff; }
.sd-btn--ghost { background: #fff; border-color: var(--unimart-border); color: var(--unimart-slate); }
.sd-btn--ghost:hover { border-color: rgba(246, 139, 30, 0.4); background: rgba(246, 139, 30, 0.06); }
.sd-btn--wa { background: #25d366; color: #fff; }
.sd-btn--block { width: 100%; justify-content: center; }

/* Moments hero — sideways sliding showcase */
.sd-moments {
  margin: 0.35rem -1rem 1.1rem;
  position: relative;
}

.sd-moments__track {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  padding: 0.15rem 1rem 0.55rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sd-moments__track::-webkit-scrollbar { display: none; }

.sd-moment {
  flex: 0 0 min(62vw, 13.5rem);
  scroll-snap-align: center;
  text-decoration: none;
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sd-moment.is-active {
  transform: scale(1.02);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.sd-moment__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--unimart-slate, #2c3e50);
}

.sd-moment__media img,
.sd-moment__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sd-moment__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(145deg, #2c3e50, #3d5166);
}

.sd-moment__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(12, 18, 28, 0.88) 100%);
  pointer-events: none;
}

.sd-moment__badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 1;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--unimart-orange);
  color: #fff;
}

.sd-moment__copy {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.75rem;
  z-index: 1;
}

.sd-moment__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sd-moment__meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffd7a8;
}

.sd-moments__dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.15rem 0 0;
}

.sd-moments__dot {
  width: 0.4rem;
  height: 0.4rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(44, 62, 80, 0.22);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.sd-moments__dot.is-active {
  width: 1.1rem;
  background: var(--unimart-orange);
}

.sd-section { margin-top: 1.5rem; }
.sd-section--cats { margin-top: 0.35rem; }

.sd-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.sd-section__head h2 { font-size: 1.05rem; font-weight: 600; color: var(--unimart-text); margin: 0; }
.sd-section__head a { color: var(--unimart-orange); font-weight: 600; font-size: 0.85rem; text-decoration: none; }
.sd-section__head a:hover { color: var(--unimart-orange-deep); }

.sd-category-rail {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.sd-category-rail::-webkit-scrollbar { display: none; }

.sd-category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sd-category-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--unimart-border);
  text-decoration: none;
  color: var(--unimart-slate);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sd-category-chip i { color: var(--unimart-orange); }

.sd-category-chip:hover {
  background: rgba(246, 139, 30, 0.08);
  border-color: rgba(246, 139, 30, 0.4);
  color: var(--unimart-orange-deep);
}

@media (min-width: 768px) {
  .sd-moment { flex-basis: 14.5rem; }
  .sd-moments { margin-left: 0; margin-right: 0; }
  .sd-moments__track {
    padding-left: 0;
    padding-right: 0;
    scroll-padding-inline: 0;
  }
}

.sd-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0.75rem;
}

.sd-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.sd-card {
  background: #fff;
  border: 1px solid var(--unimart-border);
  border-radius: var(--unimart-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sd-card:hover {
  border-color: rgba(246, 139, 30, 0.35);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.sd-card__link { text-decoration: none; color: inherit; flex: 1; }

.sd-card__media {
  aspect-ratio: 16/10;
  background: var(--unimart-bg-muted);
  position: relative;
  overflow: hidden;
}

.sd-card__media img,
.sd-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sd-badge--reel {
  left: auto;
  right: 0.45rem;
  background: rgba(15, 23, 42, 0.72);
}

.sd-card__media-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--unimart-text-muted);
}

.sd-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--unimart-orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.sd-card__body { padding: 0.55rem 0.6rem 0.65rem; }

.sd-card__title { font-size: 0.95rem; font-weight: 600; color: var(--unimart-text); margin: 0 0 0.25rem; line-height: 1.3; }

.sd-card__provider { font-size: 0.8rem; color: var(--unimart-text-muted); margin: 0 0 0.5rem; }

.sd-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--unimart-text-muted);
}

.sd-card__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem;
  background: rgba(37, 211, 102, 0.08);
  color: var(--unimart-success);
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid var(--unimart-border);
  font-size: 0.85rem;
  transition: background 0.15s;
}

.sd-card__wa:hover { background: rgba(37, 211, 102, 0.14); }

.sd-provider-card {
  background: #fff;
  border: 1px solid var(--unimart-border);
  border-radius: var(--unimart-radius);
  padding: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sd-provider-card:hover {
  border-color: rgba(246, 139, 30, 0.35);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.sd-provider-card__link {
  display: flex;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.sd-provider-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--unimart-bg-muted);
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--unimart-text-muted);
}

.sd-provider-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.sd-provider-card__body h3 { margin: 0 0 0.25rem; font-size: 0.95rem; color: var(--unimart-text); }

.sd-provider-card__body p { margin: 0; font-size: 0.8rem; color: var(--unimart-text-muted); }

.sd-provider-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--unimart-text-muted);
}

.sd-provider-card__meta i { color: var(--unimart-orange); font-size: 0.7rem; }

.sd-provider-type {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--unimart-orange);
}

.sd-verified { color: var(--unimart-success); font-size: 0.85em; }

.sd-browse-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .sd-browse-layout { grid-template-columns: 1fr; }
}

.sd-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 1rem;
}

.sd-toolbar__select {
  flex: 1 1 140px;
  max-width: 220px;
  border: 1px solid var(--unimart-border);
  border-radius: var(--unimart-radius-sm);
  padding: 0.45rem 0.55rem;
  font-size: 0.875rem;
  background: #fff;
  color: var(--unimart-slate);
}

.sd-toolbar__clear {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--unimart-text-muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
}

.sd-toolbar__clear:hover { color: var(--unimart-orange); }

.sd-filters {
  background: #fff;
  border: 1px solid var(--unimart-border);
  border-radius: var(--unimart-radius);
  padding: 1rem;
  height: fit-content;
}

.sd-filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0.75rem 0 0.25rem;
  color: var(--unimart-text-muted);
}

.sd-filter-select {
  width: 100%;
  border: 1px solid var(--unimart-border);
  border-radius: var(--unimart-radius-sm);
  padding: 0.4rem;
  font-size: 0.85rem;
}

.sd-filter-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.sd-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--unimart-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.sd-back:hover { color: var(--unimart-orange); }

.sd-profile-hero {
  border-radius: 20px;
  background: linear-gradient(135deg, var(--unimart-slate), #1e293b);
  color: #fff;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  background-size: cover;
  background-position: center;
}

.sd-profile-hero__inner { display: flex; gap: 1rem; align-items: center; }

.sd-profile-hero__avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255,255,255,0.15);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 1.5rem;
  font-weight: 700;
}

.sd-profile-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }

.sd-profile-tagline { opacity: 0.85; margin: 0.25rem 0; }

.sd-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.sd-profile-grid, .sd-service-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .sd-profile-grid, .sd-service-layout { grid-template-columns: 1fr; }
}

.sd-panel {
  background: #fff;
  border: 1px solid var(--unimart-border);
  border-radius: var(--unimart-radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.sd-panel--muted { background: var(--unimart-bg-muted); }

.sd-panel h2 { font-size: 1rem; font-weight: 600; color: var(--unimart-text); margin: 0 0 0.65rem; }

.sd-sticky-cta { position: sticky; top: 1rem; }

.sd-placeholder { color: var(--unimart-text-muted); font-size: 0.875rem; margin: 0; }

.sd-price { font-size: 1.35rem; font-weight: 700; color: var(--unimart-orange); margin: 0 0 0.5rem; }

.sd-wa-stack { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }

.sd-wa-note { font-size: 0.75rem; color: var(--unimart-text-muted); margin-top: 0.75rem; }

.sd-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--unimart-text-muted);
}

.sd-empty i { font-size: 2rem; margin-bottom: 0.5rem; color: var(--unimart-orange); opacity: 0.6; }

.sd-reasons { list-style: none; padding: 0; margin: 0; }

.sd-reasons li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
}

.sd-reasons i { color: var(--unimart-success); margin-top: 0.15rem; }

.sd-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.sd-portfolio-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

.sd-portfolio-item figcaption { font-size: 0.75rem; margin-top: 0.25rem; }

.sd-service-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.sd-service-hero {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--unimart-slate, #2c3e50);
  aspect-ratio: 16 / 10;
  max-height: 52vh;
}

.sd-service-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sd-service-cover--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.45);
}

.sd-service-reels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
  margin: 0.65rem 0 0;
}

.sd-service-reel {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  border-radius: 12px;
  background: #111;
  display: block;
}

.sd-service-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--unimart-orange);
  margin: 0;
}

.sd-owner-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--unimart-radius);
  background: linear-gradient(135deg, #fff7ed, #fff);
  border: 1px solid rgba(246, 139, 30, 0.25);
}

.sd-owner-banner p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--unimart-orange-deep);
}

.sd-empty .sd-btn {
  margin-top: 0.75rem;
}

/* Laptop / desktop — capped shell (hub-desktop reinforces with !important) */
@media (min-width: 768px) {
  .sd-wrap {
    max-width: min(96vw, 1280px);
  }

  .sd-search--toolbar {
    max-width: 36rem;
  }
}

@media (min-width: 1100px) {
  .sd-wrap {
    max-width: min(96vw, 1600px);
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1400px) {
  .sd-wrap {
    max-width: min(96vw, 1680px);
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}
