@font-face {
  font-family: Manrope;
  src: url('/assets/Manrope-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #102F4F;
  --navy2: #071A2B;
  --gold: #C4A267;
  --gold-dark: #7C6029;
  --ink: #14283C;
  --muted: #526477;
  --line: #D4DDE5;
  --surface: #fff;
  --wash: #F2F5F8;
  --green: #17604A;
  --blue: #245D81;
  --red: #A23235;
  --shadow: none;
}

html { scroll-padding-top: 88px; }
body { font-family: Manrope, Arial, sans-serif; font-synthesis: none; }
h1, h2, h3, .serif { font-family: Manrope, Arial, sans-serif; }
h1, h2, h3 { text-wrap: balance; }
h1 { letter-spacing: -.025em; }
h2 { letter-spacing: -.02em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
table, .product-price, .stat-card strong, .coverage-stat strong { font-variant-numeric: tabular-nums; }
.container { max-width: 1296px; padding-inline: 48px; }

.site-header {
  height: 88px;
  padding-inline: max(48px, calc((100vw - 1200px) / 2));
  color: var(--navy);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; font-family: Manrope, Arial, sans-serif; color: var(--navy); }
.brand img { display: block; width: 100%; height: auto; flex: none; }
.brand-header { width: 190px; flex: none; overflow: hidden; }
.brand-header img { width: 222px; max-width: none; margin-left: -18px; }
.site-nav { gap: 24px; font-size: .86rem; font-weight: 600; }
.header-actions { gap: 17px; font-size: .84rem; font-weight: 600; }
.header-search { color: var(--ink); border-color: var(--line); width: 175px; }
.header-search::placeholder { color: var(--muted); }
.cart-count { background: var(--navy); color: #fff; }

.hero {
  min-height: 610px;
  grid-template-columns: 54% 46%;
  background: var(--navy2);
}
.hero-copy { padding: 80px 40px 76px max(48px, calc((100vw - 1200px) / 2)); }
.hero-kicker, .section-kicker {
  display: block;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.hero-kicker { color: var(--gold); margin-bottom: 25px; }
.hero h1 { font-size: clamp(66px, 7.1vw, 112px); line-height: .99; letter-spacing: -.03em; margin-bottom: 26px; }
.hero h1 span { color: var(--gold); }
.hero p { color: #E4EBF1; font-size: 18px; line-height: 1.65; max-width: 500px; }
.hero-actions { margin-top: 28px; }
.hero-photo {
  position: relative;
  min-height: 610px;
  border-left: 1px solid rgba(255,255,255,.16);
  background-image: url('/assets/maldives-collection.png');
  background-position: center 54%;
}
.hero-photo-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 9px;
  color: #fff;
  background: rgba(7,26,43,.86);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .08em;
}
.button { border-radius: 6px; min-height: 48px; transition: background-color 160ms ease-out, border-color 160ms ease-out; }
.button:hover { transform: none; }
.button-primary, .button-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.button-primary:hover, .button-dark:hover { background: var(--navy2); border-color: var(--navy2); }
.hero .button-primary { background: #fff; border-color: #fff; color: var(--navy); }
.hero .button-primary:hover { background: var(--wash); border-color: var(--wash); }
.button-light { color: var(--navy); border-color: #718397; }
.button-outline { border-color: #fff; }
.button-outline:hover { background: rgba(255,255,255,.1); }

.shop { padding-top: 48px; padding-bottom: 96px; }
.category-tabs button.active:after { background: var(--gold); }
.section-heading { margin-block: 40px 24px; }
.section-heading h2 { font-size: clamp(34px, 3.6vw, 48px); font-weight: 600; color: var(--navy); }
.product-card, .panel, .stat-card, .simple-card, .driver-card, .modal { border-radius: 0; box-shadow: none; }
.product-card { border-color: var(--line); }
.product-card:hover { transform: none; border-color: #718397; box-shadow: none; }
.product-image { background: var(--wash); }
.product-image img { object-fit: contain; padding: 14px; }
.product-image.no-photo { background: var(--wash); color: var(--navy); font-family: Manrope, Arial, sans-serif; }
.product-image.no-photo strong { font-family: Manrope, Arial, sans-serif; }
.product-image.no-photo small { color: var(--muted); }
.product-body h3 { font-weight: 600; }
.product-price strong { color: var(--navy); }
.product-actions button { font-size: .78rem; }
.price-note { max-width: 900px; line-height: 1.6; }

.wholesale-band { position: relative; overflow: hidden; background: var(--navy); padding-block: 88px; }
.wholesale-band::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -140px;
  width: 360px;
  height: 270px;
  background: url('/assets/trade-lanes.svg') center / contain no-repeat;
  opacity: .18;
  pointer-events: none;
}
.wholesale-inner { position: relative; z-index: 1; }
.section-kicker { color: var(--gold); margin-bottom: 18px; }
.wholesale-band h2 { color: #fff; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; font-weight: 600; }
.wholesale-band .button-primary { background: #fff; border-color: #fff; color: var(--navy); }
.wholesale-band .button-primary:hover { background: var(--wash); border-color: var(--wash); }
.wholesale-details { border-color: #718397; }
.wholesale-details div { border-color: #718397; }
.site-footer { background: var(--navy2); }
.brand-footer { width: 206px; height: 72px; padding: 6px 8px; background: #fff; overflow: hidden; }
.brand-footer img { width: 222px; max-width: none; margin-left: -18px; }
.footer-inner small { display: block; margin-top: 10px; color: #D4DDE5; }

.simple-page, .app-layout { background: var(--wash); }
.simple-page { min-height: calc(100vh - 88px); }
.simple-card { border-top: 4px solid var(--navy); }
.simple-card h1 { font-size: clamp(32px, 4vw, 48px); color: var(--navy); }
.field input, .field select, .field textarea, .search-input, select { border-color: #718397; border-radius: 6px; }
.field input:focus, .field select:focus, .field textarea:focus, .search-input:focus { outline-color: var(--navy); }
.notice { background: #FFF3D4; border-color: #D4B774; color: #805800; border-radius: 6px; }
.success { background: #EAF4EE; border-color: #9BC8AD; color: #17604A; }
.status { border-radius: 999px; }
.status-requested, .status-confirmed, .status-no_product { background: #FFF3D4; color: #805800; }
.status-picking, .status-ready, .status-out_for_delivery, .status-prospect { background: #EAF2F8; color: #245D81; }
.status-delivered, .status-stocked { background: #EAF4EE; color: #17604A; }
.status-failed, .status-cancelled { background: #FCEEEF; color: #A23235; }

.sidebar { background: var(--navy2); }
.brand-sidebar { display: inline-flex; width: 206px; height: 66px; padding: 5px 8px; background: #fff; margin: 0 12px 8px; overflow: hidden; }
.brand-sidebar img { width: 222px; max-width: none; margin-left: -18px; }
.sidebar-sub { color: #BBCBD8; }
.side-nav button { border-radius: 6px; }
.side-nav button:hover, .side-nav button.active { background: var(--navy); color: #fff; }
.ops-head h1 { font-family: Manrope, Arial, sans-serif; font-weight: 700; color: var(--navy); }
.panel h2, .driver-card h2, .modal-header h2 { font-family: Manrope, Arial, sans-serif; }
.mini-row, .scope-switch, .table-action, .map-filters button, .map-controls, .outlet-row { border-radius: 6px; }
.map-panel { border-radius: 0; }
.map-panel .map-viewport.mapboxgl-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-marker.no_product { background: #805800; }
.map-marker.prospect { background: #245D81; }
.map-marker.stocked { background: #17604A; }
.map-filters button.active { background: var(--navy); border-color: var(--navy); }
.map-viewport.mapbox-active .map-tiles,
.map-viewport.mapbox-active .map-markers { display: none; }
.mapbox-outlet-marker { width: 27px; height: 27px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px #0006; cursor: pointer; }
.mapbox-outlet-marker::after { content: ''; position: absolute; width: 7px; height: 7px; top: 7px; left: 7px; border-radius: 50%; background: #fff; }
.mapbox-outlet-marker.stocked { background: #17604A; }
.mapbox-outlet-marker.no_product { background: #805800; }
.mapbox-outlet-marker.prospect { background: #245D81; }
.mapbox-outlet-marker:focus-visible { outline: 3px solid #102F4F; outline-offset: 3px; }
.outlet-row:hover, .outlet-row.selected { background: var(--wash); }
#toast { background: var(--navy2); border-radius: 6px; }

/* Operations decision views */
.insight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.insight-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 20px 22px 22px; }
.insight-card-label { display: block; color: var(--muted); font-size: 12px; line-height: 18px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.insight-card-value { display: block; margin: 12px 0 5px; color: var(--navy); font-size: clamp(26px, 2.5vw, 36px); line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.insight-card-note { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ops-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.ops-section-grid > * { min-width: 0; }
.due-list { display: grid; gap: 0; }
.due-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; font-size: 13px; line-height: 1.5; }
.due-row:hover { background: var(--wash); }
.due-row:last-child { border-bottom: 0; }
.due-row strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.due-row small { display: block; color: var(--muted); }
.due-row > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
.metric-flag, .trend-chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 9px; font-size: 11px; line-height: 16px; font-weight: 700; white-space: nowrap; }
.metric-flag, .metric-flag.neutral, .trend-chip, .trend-chip.neutral { color: #245D81; background: #EAF2F8; }
.metric-flag.positive, .trend-chip.positive { color: #17604A; background: #EAF4EE; }
.metric-flag.negative, .trend-chip.negative { color: #A23235; background: #FCEEEF; }
.form-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; font-weight: 400; }
.detail-section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.detail-section h3 { margin-bottom: 10px; color: var(--navy); }
.detail-section > strong { display: block; color: var(--navy); font-size: 14px; }
.detail-section p { margin: 9px 0; line-height: 1.5; }
.panel .due-list:empty::after { content: 'Nothing due yet.'; color: var(--muted); font-size: 13px; }

@media (max-width: 1100px) {
  .site-header { padding-inline: 28px; }
  .hero-copy { padding-left: 48px; }
  .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  html { scroll-padding-top: 72px; }
  .site-header { height: 72px; }
  .site-nav { top: 72px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(7,26,43,.07); }
  .site-nav a { color: var(--navy); }
  .brand-header { width: 190px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 64px 28px 56px; }
  .hero h1 { font-size: clamp(62px, 10vw, 92px); }
  .hero-photo { min-height: 390px; border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .simple-page { min-height: calc(100vh - 72px); }
  .container { padding-inline: 28px; }
  .brand-sidebar { width: 190px; margin: 0; }
  .ops-section-grid { grid-template-columns: 1fr; }
}
@media (max-width: 550px) {
  .site-header { padding-inline: 20px; }
  .brand-header { width: 190px; }
  .hero-copy { padding: 56px 20px 48px; }
  .hero h1 { font-size: clamp(52px, 13vw, 72px); }
  .hero p { font-size: 16px; }
  .hero-photo { min-height: 300px; }
  .container { padding-inline: 20px; }
  .product-image { min-height: 215px; }
  .product-image img { padding: 8px; }
  .brand-sidebar { width: 190px; }
  .insight-grid { gap: 8px; }
  .insight-card { padding: 14px; }
  .insight-card-value { font-size: 23px; }
  .due-row { grid-template-columns: 1fr; gap: 4px; }
  .due-row > :last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
