/* Dalmia Orbit × Ice-Indigo Unified Design System 2026 (Zero !important, WCAG AA Verified) */
:root {
  --orb-bg: #F6F8FF;
  --orb-surface: #FFFFFF;
  --orb-surface-2: #EEF3FF;
  --orb-ink: #0B132B;
  --orb-muted: #3E4C6E;
  --orb-border: rgba(63, 81, 181, 0.16);
  --orb-primary: #2B3A9E;
  --orb-violet: #6D28D9;
  --orb-cyan: #007A99;
  --orb-cyan-bright: #00CFE8;
  --orb-gold: #92600A;
  --orb-wa: #12803E;
  --orb-shadow: 0 14px 36px rgba(16, 29, 79, 0.08);
  --orb-glow: radial-gradient(circle at 18% 12%, rgba(109, 40, 217, 0.10), transparent 44%),
              radial-gradient(circle at 84% 18%, rgba(0, 207, 232, 0.13), transparent 46%);
}

html[data-theme="dark"],
html[data-dc-theme="dark"] {
  --orb-bg: #070A26;
  --orb-surface: #0F153A;
  --orb-surface-2: #172052;
  --orb-ink: #F8FAFF;
  --orb-muted: #C4D0F0;
  --orb-border: rgba(147, 60, 255, 0.30);
  --orb-primary: #38BDF8;
  --orb-violet: #B784FF;
  --orb-cyan: #22D3EE;
  --orb-cyan-bright: #16DDFF;
  --orb-gold: #F3CE85;
  --orb-wa: #15803D;
  --orb-shadow: 0 18px 44px rgba(0, 0, 0, 0.48);
  --orb-glow: radial-gradient(circle at 16% 12%, rgba(147, 60, 255, 0.24), transparent 46%),
              radial-gradient(circle at 84% 18%, rgba(22, 221, 255, 0.18), transparent 48%);
}

body.orb-unified-page {
  background-color: var(--orb-bg);
  background-image: var(--orb-glow);
  background-attachment: fixed;
  color: var(--orb-ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
}

/* Unified Sitewide Top Header (Replaces 7 inconsistent legacy headers) */
.orb-global-hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--orb-surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--orb-border);
}

.orb-global-hdr__in {
  max-width: 1260px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.orb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--orb-ink);
  min-height: 40px;
}

.orb-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}

.orb-brand__t {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.orb-brand__t strong {
  font-size: 1rem;
  font-weight: 800;
}

.orb-brand__t small {
  font-size: 0.8125rem;
  color: var(--orb-muted);
}

.orb-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.orb-nav a {
  color: var(--orb-ink);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 999px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.orb-nav a:hover {
  background: var(--orb-surface-2);
}

.orb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.orb-pill-btn {
  appearance: none;
  border: 1px solid var(--orb-border);
  background: var(--orb-surface);
  color: var(--orb-ink);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  min-width: 36px;
}

.orb-pill-btn--wa,
html body.orb-unified-page a.orb-pill-btn--wa {
  background: #12803E;
  color: #FFFFFF !important;
  border-color: transparent;
}

.orb-pill-btn--call,
html body.orb-unified-page a.orb-pill-btn--call {
  background: linear-gradient(135deg, #1E2A78, #5B21B6);
  color: #FFFFFF !important;
  border-color: transparent;
}

html[data-theme="dark"] .orb-pill-btn--call,
html[data-dc-theme="dark"] .orb-pill-btn--call,
html[data-theme="dark"] body.orb-unified-page a.orb-pill-btn--call,
html[data-dc-theme="dark"] body.orb-unified-page a.orb-pill-btn--call {
  background: linear-gradient(135deg, #0284C7, #6D28D9);
  color: #FFFFFF !important;
}

html body.orb-unified-page a.orb-btn--primary,
html body.orb-unified-page a.orb-btn--wa {
  color: #FFFFFF !important;
}

.orb-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  background: #5B21B6;
  color: #FFFFFF;
}

/* Orbit Showcase Band & Product + Spec Carousel */
.orb-band {
  max-width: 1240px;
  margin: 28px auto;
  padding: 26px 22px;
  background: var(--orb-surface);
  border: 1px solid var(--orb-border);
  border-radius: 24px;
  box-shadow: var(--orb-shadow);
  position: relative;
  overflow: hidden;
}

.orb-band__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.orb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orb-violet);
  margin-bottom: 6px;
}

.orb-band__title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--orb-ink);
  margin: 0;
}

.orb-band__title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  color: var(--orb-violet);
}

.orb-band__sub {
  font-size: 0.9375rem;
  color: var(--orb-muted);
  margin: 6px 0 0;
  max-width: 68ch;
}

.orb-ctrl-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.orb-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 14px;
  scrollbar-width: thin;
}

.orb-tab {
  appearance: none;
  border: 1px solid var(--orb-border);
  background: var(--orb-surface-2);
  color: var(--orb-ink);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 36px;
}

.orb-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #1E2A78, #6D28D9);
  color: #FFFFFF;
  border-color: transparent;
}

.orb-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(292px, 332px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 14px;
}

.orb-prod-card {
  scroll-snap-align: start;
  background: var(--orb-surface);
  border: 1px solid var(--orb-border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(16, 29, 79, 0.06);
}

.orb-prod-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--orb-surface-2);
  overflow: hidden;
}

.orb-prod-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.orb-prod-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(7, 10, 38, 0.86);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.orb-prod-card__illus {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.84);
  color: #F8FAFC;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.orb-prod-card__body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.orb-prod-card__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--orb-muted);
  text-transform: uppercase;
}

.orb-prod-card__brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: 4px;
  padding: 2px;
}

.orb-prod-card__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--orb-ink);
  margin: 0;
}

.orb-prod-card__sub {
  font-size: 0.8125rem;
  color: var(--orb-muted);
  margin: 0;
}

.orb-spec-list {
  list-style: none;
  padding: 10px 12px;
  margin: 0;
  background: var(--orb-surface-2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8125rem;
  color: var(--orb-ink);
}

.orb-spec-list li::before {
  content: "• ";
  color: var(--orb-violet);
  font-weight: 900;
}

.orb-prod-card__foot {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 6px;
}

.orb-btn {
  appearance: none;
  border: 1px solid var(--orb-border);
  background: var(--orb-surface-2);
  color: var(--orb-ink);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 11px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
}

.orb-btn--primary {
  background: linear-gradient(135deg, #1E2A78, #6D28D9);
  color: #FFFFFF;
  border-color: transparent;
}

.orb-btn--wa {
  grid-column: 1 / -1;
  background: #12803E;
  color: #FFFFFF;
  border-color: transparent;
}

/* TIA 24-Outfit & Care-Robot Showcase Cards */
.orb-tia-hero-card {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: var(--orb-surface-2);
  border: 1px solid var(--orb-border);
  border-radius: 20px;
  margin: 18px auto;
  max-width: 1240px;
}

.orb-tia-hero-card__img {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #070A26;
}

.orb-tia-hero-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.orb-tia-outfit-card {
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--orb-ink);
  background: var(--orb-surface);
  border: 1px solid var(--orb-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.orb-tia-outfit-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.orb-tia-outfit-card__meta {
  padding: 10px 12px;
}

.orb-tia-outfit-card__meta strong {
  display: block;
  font-size: 0.875rem;
}

.orb-tia-outfit-card__meta span {
  font-size: 0.8125rem;
  color: var(--orb-muted);
}

details:not([open]) > *:not(summary) {
  display: none;
}

/* EMI + Pincode Interactive Grid */
.orb-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.orb-tool-box {
  background: var(--orb-surface-2);
  border: 1px solid var(--orb-border);
  border-radius: 18px;
  padding: 18px;
}

.orb-tool-box h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--orb-ink);
}

.orb-input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.orb-input {
  flex: 1;
  min-width: 120px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--orb-border);
  background: var(--orb-surface);
  color: var(--orb-ink);
  font-family: inherit;
  font-size: 0.875rem;
  min-height: 40px;
}

.orb-result-note {
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--orb-ink);
  background: var(--orb-surface);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--orb-border);
}

/* Rich Attachment Drawer inside Forms */
.orb-rich-drawer {
  margin-top: 10px;
  border: 1px dashed var(--orb-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--orb-surface-2);
}

.orb-rich-drawer summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--orb-violet);
  min-height: 28px;
  display: flex;
  align-items: center;
}

.orb-rich-drawer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

/* Layout Repairs for Broken Legacy Pages (/membership 3-col clip, /cart overlap, duplicate headers) */
body.orb-unified-page > header:not(.orb-global-hdr),
body.orb-unified-page .dp-topbar,
body.orb-unified-page .dp-header,
body.orb-unified-page .dp-catbar,
body.orb-unified-page .ra-floating-toggle,
body.orb-unified-page .skip-link:not(.skip) {
  display: none;
}

body.orb-unified-page main h1 {
  overflow-wrap: break-word;
  word-break: normal;
  min-width: 0;
}

body.orb-unified-page [data-page-path="/membership"] main section:first-of-type,
body.orb-unified-page .dp-membership-hero,
body.orb-unified-page main > section:first-child > div[style*="grid-template-columns"] {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

body.orb-unified-page button {
  margin: 4px;
}

/* Unified Mobile Bottom Dock */
.orb-mobile-dock {
  display: none;
}

@media (max-width: 820px) {
  .orb-nav {
    display: none;
  }
  .orb-tia-hero-card {
    grid-template-columns: 1fr;
  }
  .orb-mobile-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 95;
    background: var(--orb-surface);
    border: 1px solid var(--orb-border);
    border-radius: 999px;
    box-shadow: var(--orb-shadow);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px;
    gap: 4px;
  }
  .orb-mobile-dock a {
    text-align: center;
    text-decoration: none;
    color: var(--orb-ink);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 4px;
    border-radius: 999px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .orb-mobile-dock a.orb-dock-wa {
    background: #12803E;
    color: #FFFFFF;
  }
  body.orb-unified-page {
    padding-bottom: 76px;
  }
}
