/* ============================================================
   Design tokens
   ============================================================ */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-alt: #f4f2ef;
  --text: #21262c;
  --muted: #6b7280;
  --muted-soft: #9aa1ac;
  --border: #e7e5e2;
  --border-strong: #d9d6d1;

  --ink: #21262c;
  --ink-hover: #10141a;

  /* Brand palette, from the Sree Designers Hardware logo. */
  --coral: #de5b48;
  --coral-hover: #c94a38;
  --coral-soft: #fdece8;
  --navy: #2c3a4c;
  --navy-soft: #eef1f4;

  /* Every existing rule in this file that already reads var(--accent*) picks
     up the brand coral automatically through this alias - no need to touch
     each one individually. */
  --accent: var(--coral);
  --accent-hover: var(--coral-hover);
  --accent-soft: var(--coral-soft);

  --danger: #c0362c;
  --danger-bg: #fdf1f0;
  --warn: #9a6221;
  --warn-bg: #fdf6ec;
  --success: #146c43;
  --success-bg: #eef8f1;

  --radius-sm: 6px;
  --radius: 9px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(33, 38, 44, 0.05);
  --shadow-md: 0 2px 8px rgba(33, 38, 44, 0.06), 0 1px 2px rgba(33, 38, 44, 0.04);
  --shadow-lg: 0 16px 40px rgba(33, 38, 44, 0.1), 0 2px 6px rgba(33, 38, 44, 0.05);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font);
  letter-spacing: -0.01em;
}

/* ============================================================
   App header / nav
   ============================================================ */

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0);
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.55rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.5rem max(1rem, env(safe-area-inset-right, 0px)) 0.4rem max(1rem, env(safe-area-inset-left, 0px));
}

.app-header .brand-mark {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.app-header .user-badge {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.app-header .app-tabs {
  grid-column: 1 / -1;
  grid-row: 2;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.app-header .brand-mark-icon {
  height: 1.45rem;
  width: auto;
  flex-shrink: 0;
  display: flex;
}

.brand-mark-icon {
  height: 1.9rem;
  width: auto;
  flex-shrink: 0;
  display: flex;
}

.brand-mark-icon img {
  height: 100%;
  width: auto;
  display: block;
}

.app-header .brand-wordmark-img {
  height: 1.05rem;
  width: auto;
  max-width: min(42vw, 9.5rem);
  object-fit: contain;
  object-position: left center;
}

header h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-right, 0px)) 3rem max(1rem, env(safe-area-inset-left, 0px));
}

.tabs {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.app-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: none;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.app-tabs::-webkit-scrollbar {
  display: none;
}

.app-tabs .tab {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
  padding: 0.65rem 0.3rem;
  font-size: 0.78rem;
  border-bottom: none;
  border-radius: 0;
  white-space: nowrap;
  position: relative;
  color: var(--muted);
}

.app-tabs .tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
}

.app-tabs .tab.active {
  color: var(--coral);
  background: var(--surface);
  font-weight: 700;
  box-shadow: inset 0 2px 0 var(--coral);
}

.tab-label-short {
  display: none;
}

.tab {
  width: auto;
  background: transparent;
  color: var(--muted);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.5rem 0.1rem;
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.tab:hover {
  color: var(--text);
  background: transparent;
}

.tab.active {
  background: transparent;
  color: var(--text);
  border-bottom-color: var(--coral);
}

.app-tabs .tab.active {
  border-bottom-color: transparent;
}

.app-tabs .cart-badge {
  margin-left: 0.1rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  font-size: 0.62rem;
}

@media (min-width: 768px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    row-gap: 0;
    padding: 0.85rem 1.5rem;
    column-gap: 1.5rem;
  }

  .app-header .brand-mark {
    grid-column: 1;
    grid-row: 1;
  }

  .app-header .app-tabs {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    border-top: none;
    background: transparent;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    overflow: visible;
  }

  .app-header .app-tabs .tab {
    flex: 0 1 auto;
    min-width: 0;
    padding: 0.5rem 0.1rem;
    font-size: 0.88rem;
    border-bottom: 2px solid transparent;
    box-shadow: none;
    background: transparent;
  }

  .app-header .app-tabs .tab:hover {
    background: transparent;
  }

  .app-header .app-tabs .tab.active {
    box-shadow: none;
    border-bottom-color: var(--coral);
    background: transparent;
  }

  .app-header .user-badge {
    grid-column: 3;
    grid-row: 1;
  }

  .app-header .brand-wordmark-img {
    height: 1.5rem;
    max-width: none;
  }

  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 480px) {
  #tab-quotation .tab-label-full {
    display: none;
  }

  #tab-quotation .tab-label-short {
    display: inline;
  }

  .app-header .brand-wordmark-img {
    height: 0.95rem;
    max-width: 34vw;
  }

  .app-tabs .tab {
    padding: 0.6rem 0.2rem;
    font-size: 0.74rem;
    gap: 0.2rem;
  }
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.subnav {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.subtab {
  width: auto;
  background: transparent;
  color: var(--muted);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.6rem 0.2rem;
  margin-right: 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.subtab.active {
  background: transparent;
  color: var(--text);
  border-bottom-color: var(--ink);
}

.subpanel {
  display: none;
}

.subpanel.active {
  display: block;
}

/* ============================================================
   Base form controls
   ============================================================ */

label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

input,
select,
button {
  width: 100%;
  font: inherit;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  padding: 0.65rem 0.8rem;
  color: var(--text);
  background: var(--surface);
}

input::placeholder {
  color: var(--muted-soft);
}

input:focus,
select:focus,
button:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

button {
  background: var(--coral);
  color: #fff;
  border: 1px solid var(--coral);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.06s ease, box-shadow 0.12s ease;
}

button:hover {
  background: var(--coral-hover);
  border-color: var(--coral-hover);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

button.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

button.secondary:hover {
  background: var(--surface-alt);
}

/* ============================================================
   Search panel
   ============================================================ */

.search-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 1rem;
}

.search-form {
  display: block;
}

.search-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.search-pill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.3rem 0.3rem 0.3rem 0.85rem;
  min-height: 2.6rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-pill:focus-within {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-soft);
}

.search-pill input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.875rem;
  padding: 0.4rem 0;
  color: var(--text);
  box-shadow: none;
  width: auto;
}

.search-pill input[type="search"]::placeholder {
  color: var(--muted-soft);
}

.search-pill input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-pill-btn {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #f0a07a 0%, #de5b48 55%, #d14a6a 100%);
  box-shadow: 0 2px 8px rgba(222, 91, 72, 0.35);
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.search-pill-btn:hover {
  filter: brightness(1.05);
  transform: scale(1.03);
  background: linear-gradient(135deg, #f0a07a 0%, #de5b48 55%, #d14a6a 100%);
  border-color: transparent;
  color: #fff;
}

.search-pill-btn:active {
  transform: scale(0.97);
}

.search-pill-btn:focus-visible {
  border-color: transparent;
  box-shadow: 0 0 0 3px var(--coral-soft);
}

.filters-cta {
  flex-shrink: 0;
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 2.25rem;
  padding: 0 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  font-size: 0.8125rem;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.filters-cta:hover {
  border-color: var(--border-strong);
  background: var(--surface-alt);
  color: var(--text);
}

.filters-cta:focus-visible {
  border-color: var(--coral);
  box-shadow: 0 0 0 2px var(--coral-soft);
}

.filters-cta-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Filters popup (Myntra-style) */
.filters-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 20, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 1rem;
}

.filters-overlay[hidden] {
  display: none !important;
}

.filters-sheet {
  width: min(560px, 100%);
  max-height: min(640px, 88vh);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.filters-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.filters-sheet-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.filters-clear-all {
  width: auto;
  border: none;
  background: transparent;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0;
  cursor: pointer;
  box-shadow: none;
}

.filters-clear-all:hover,
.filters-clear-all:focus-visible {
  color: var(--coral-hover);
  background: transparent;
  border: none;
  box-shadow: none;
}

.filters-sheet-body {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.filters-nav {
  background: #f6f5f3;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.filters-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.95rem 0.85rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  box-shadow: none;
}

.filters-nav-item:hover,
.filters-nav-item:focus-visible {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  border-color: transparent;
  border-left-color: transparent;
  box-shadow: none;
}

.filters-nav-item.active,
.filters-nav-item.active:hover {
  background: var(--surface);
  font-weight: 700;
  color: var(--text);
  border-left-color: var(--coral);
}

.filters-nav-count:empty {
  display: none;
}

.filters-nav-count:not(:empty) {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.filters-options {
  overflow-y: auto;
  background: var(--surface);
  padding: 0.25rem 0;
}

.filters-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: none;
  border-bottom: 1px solid #f0eeeb;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

.filters-option:hover,
.filters-option:focus-visible {
  background: #faf9f7;
  color: var(--text);
  border-color: transparent;
  border-bottom-color: #f0eeeb;
  box-shadow: none;
}

.filters-option-check {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: var(--surface);
}

.filters-option.selected .filters-option-check {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.filters-option-check svg {
  width: 12px;
  height: 12px;
}

.filters-option-label {
  flex: 1;
  min-width: 0;
}

.filters-empty {
  padding: 1.5rem 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.filters-sheet-footer {
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.filters-apply-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.filters-apply-btn:hover {
  background: var(--coral-hover);
}

.brand-strip {
  margin: 1.25rem 0 0;
}

.brand-strip-track {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  /* Room so chip borders / active outlines aren't clipped by the scrollport */
  padding: 4px 4px 12px;
  margin: 0 -4px;
  scrollbar-width: thin;
}

.brand-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 3.75rem;
  padding: 0.3rem 0.9rem;
  --chip-bg: var(--surface);
  background: var(--chip-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.brand-chip img {
  height: 100%;
  width: auto;
  max-width: 128px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.brand-chip:hover,
.brand-chip:active,
.brand-chip:focus-visible,
.brand-chip.active:hover {
  background: var(--chip-bg);
  box-shadow: none;
  transform: none;
}

.brand-chip:hover {
  border-color: var(--border-strong);
}

.brand-chip:focus-visible {
  border-color: var(--coral);
  outline: 2px solid var(--coral-soft);
  outline-offset: 2px;
}

.brand-chip.active,
.brand-chip.active:hover {
  border-color: var(--coral);
  outline: none;
}

/* Each logo file's own background colour (see shared.js SUPPLIER_LOGO_BG),
   so the chip reads as a filled brand tile instead of a small logo floating
   in a mismatched white box. Suppliers not listed have a transparent logo
   file and keep the default white chip background. */
.brand-chip[data-supplier="Yale"] { --chip-bg: #ffda03; }
.brand-chip[data-supplier="Ebco"] { --chip-bg: #084888; }
.brand-chip[data-supplier="Artysan"] { --chip-bg: #000000; }
.brand-chip[data-supplier="Atcraft"] { --chip-bg: #000008; }
.brand-chip[data-supplier="Aura"] { --chip-bg: #202020; }
.brand-chip[data-supplier="Brassage"] { --chip-bg: #f8f8f8; }
.brand-chip[data-supplier="Clubwell"] { --chip-bg: #f8f8f8; }
.brand-chip[data-supplier="Coburn"] { --chip-bg: #f8f8f8; }
.brand-chip[data-supplier="Fab Product"] { --chip-bg: #f8f8f8; }
.brand-chip[data-supplier="Fiamarc"] { --chip-bg: #f8f8f8; }
.brand-chip[data-supplier="Glitters"] { --chip-bg: #000000; }
.brand-chip[data-supplier="Mantara"] { --chip-bg: #082830; }
.brand-chip[data-supplier="OMNI"] { --chip-bg: #f8f8f8; }
.brand-chip[data-supplier="Patta"] { --chip-bg: #003868; }
.brand-chip[data-supplier="Prime Touch"] { --chip-bg: #f8f8f8; }
.brand-chip[data-supplier="Sparkle"] { --chip-bg: #f8f8f8; }
.brand-chip[data-supplier="STARRS"] { --chip-bg: #88b828; }
.brand-chip[data-supplier="Bigfoot"] { --chip-bg: #000000; }
.brand-chip[data-supplier="TACO"] { --chip-bg: #080808; }
.brand-chip[data-supplier="SAP"] { --chip-bg: #a8a8a8; }
.brand-chip[data-supplier="Hettich"] { --chip-bg: #e8e8e8; }
.brand-chip[data-supplier="Jolly Amrapali"] { --chip-bg: #d0c8c0; }

@media (max-width: 640px) {
  .search-panel {
    margin-top: 0.75rem;
  }

  .search-toolbar {
    gap: 0.4rem;
  }

  .search-pill {
    min-height: 2.6rem;
    padding-left: 0.75rem;
  }

  .search-pill-btn {
    width: 2.35rem;
    height: 2.35rem;
  }

  .search-pill input[type="search"] {
    font-size: 1rem; /* 16px avoids iOS zoom on focus */
    padding: 0.35rem 0;
  }

  .filters-cta {
    height: 2.6rem;
    width: 2.6rem;
    padding: 0;
    position: relative;
  }

  .filters-cta-label {
    display: none;
  }

  .filters-cta-count {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.2rem;
    font-size: 0.65rem;
  }

  .filters-sheet {
    width: 100%;
    max-height: 92vh;
  }

  .filters-sheet-body {
    grid-template-columns: 7.5rem 1fr;
  }
}

.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.25rem 0.25rem;
  color: var(--muted-soft);
  font-size: 0.82rem;
}

.stats-bar strong {
  color: var(--text);
  font-weight: 700;
  margin-right: 0.3rem;
}

.results-meta {
  margin: 0 0.25rem 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 0.9rem;
}

/* ============================================================
   Product card
   ============================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.card-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.card-avatar-logo {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.12rem;
  box-sizing: border-box;
  overflow: hidden;
}

.card-avatar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-head-text {
  flex: 1;
  min-width: 0;
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.item-name {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge.low {
  background: var(--warn-bg);
  color: var(--warn);
}

.badge.high {
  background: var(--success-bg);
  color: var(--success);
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.brand-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.category-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.card-fields {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
  margin-bottom: 0.85rem;
}

.card-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0;
}

.card-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.card-field-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}

.card-field-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
  max-width: 70%;
}

.card-field-controls .size-dropdown {
  min-width: 0;
  max-width: none;
  flex-shrink: 1;
}

.finish-dropdown,
.size-dropdown,
.size-unit-dropdown,
.color-dropdown,
.finish-name-dropdown {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  max-width: 60%;
  width: auto;
}

.size-unit-dropdown {
  max-width: 6rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.card-notes {
  margin-bottom: 0.85rem;
}

.card-notes-static,
.card-notes-dynamic {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.card-notes-static:last-child,
.card-notes-dynamic:last-child {
  margin-bottom: 0;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pdf-link {
  width: auto;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pdf-link:hover {
  color: var(--text);
  background: transparent;
}

.card-price-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.resolved-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.card-actions .add-to-cart-btn {
  width: auto;
  border-radius: 999px;
  padding: 0.6rem 1.35rem;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.35rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}

.tab.active .cart-badge {
  background: var(--accent);
}

.empty,
.error {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  color: var(--muted);
}

.error {
  border-style: solid;
  border-color: #eecac6;
  background: var(--danger-bg);
  color: var(--danger);
}

/* ============================================================
   Quotation tab
   ============================================================ */

.quotation-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.quotation-section h2 {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  font-weight: 700;
}

.party-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.party-forms > div {
  display: grid;
  gap: 0.75rem;
}

.party-forms > div > strong {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}

.address-block {
  display: grid;
  gap: 0.6rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.address-block-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-soft);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: none;
  color: var(--text);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
}

.voucher-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

#cart-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cart-table {
  width: 100%;
  min-width: 1260px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.cart-table th,
.cart-table td {
  text-align: left;
  padding: 0.6rem 0.45rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

/* Item / Select Finish / Finish - the columns most prone to cramming into
   a few narrow characters per line (e.g. "SS Brush, Antique, IBM") when the
   table's min-width above gets distributed evenly across every column. */
.cart-table th:nth-child(2),
.cart-table td:nth-child(2) {
  min-width: 170px;
}

.cart-table th:nth-child(5),
.cart-table td:nth-child(5),
.cart-table th:nth-child(6),
.cart-table td:nth-child(6) {
  min-width: 150px;
}

.cart-table th:nth-child(8),
.cart-table td:nth-child(8) {
  min-width: 165px;
}

.cart-table th {
  color: var(--muted-soft);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-table input {
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
}

.cart-table .qty-input,
.cart-table .disc-input,
.cart-table .gst-select {
  width: 4.2rem;
}

.cart-table .gst-custom-input {
  width: 4.2rem;
  margin-top: 0.35rem;
}

.cart-table .hsn-input {
  width: 5.2rem;
}

.cart-table .rate-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  white-space: nowrap;
}

.cart-table .rate-edit-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.cart-table .rate-edit-checkbox {
  cursor: pointer;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  accent-color: var(--coral, #e2664a);
}

.cart-table .rate-edit-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--coral, #de5b48);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cart-table .rate-cell .price-input {
  width: 6.5rem;
}

.cart-table .pf-input {
  width: 8rem;
}

.cart-table .pf-row td {
  color: var(--muted-soft);
}

.cart-table .amount-cell {
  font-weight: 700;
  white-space: nowrap;
}

#add-manual-item-btn {
  margin-top: 0.85rem;
  width: auto;
}

.manual-item-form {
  margin-top: 0.85rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.manual-item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 0.7fr 0.7fr;
  gap: 0.75rem;
}

.manual-item-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.manual-item-actions button {
  width: auto;
  padding: 0.55rem 1rem;
}

@media (max-width: 900px) {
  .manual-item-row {
    grid-template-columns: 1fr 1fr;
  }
}

.cart-table .total-row td {
  font-weight: 700;
  border-top: 2px solid var(--border-strong);
  border-bottom: none;
}

#history-filter {
  margin-bottom: 1rem;
}

.history-table {
  margin-top: 0.5rem;
}

.history-actions {
  display: flex;
  gap: 0.4rem;
  white-space: nowrap;
}

.history-actions button {
  width: auto;
}

#history-load-more {
  width: auto;
  margin-top: 1rem;
}

.remove-item-btn {
  width: auto;
  background: transparent;
  color: var(--danger);
  border-color: transparent;
  padding: 0.3rem 0.5rem;
}

.remove-item-btn:hover {
  background: var(--danger-bg);
}

/* Printable invoice sheet — mirrors the shop's real Tally-style proforma invoice:
   one continuous bordered ledger box (company/parties/voucher, then items,
   then amount-in-words), with a separate bordered block for bank details.
   Deliberately kept as a plain black-ink/Arial printable document — this is
   not part of the on-screen theme and should not be restyled to match it. */

.invoice-sheet {
  background: white;
  padding: 1.5rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #000;
  max-width: 800px;
  margin: 0 auto;
}

.invoice-title {
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  margin: 0 0 0.75rem;
}

.invoice-frame,
.invoice-items-table,
.invoice-bank-table {
  width: 100%;
  border-collapse: collapse;
}

.invoice-frame td {
  border: 1px solid #000;
  padding: 0.5rem 0.6rem;
  vertical-align: top;
  width: 50%;
}

.invoice-address-lines {
  line-height: 1.4;
}

.invoice-page-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.invoice-logo-icon {
  height: 2.2rem;
  width: auto;
  display: block;
}

.invoice-logo-wordmark {
  height: 1.15rem;
  width: auto;
  display: block;
}

.invoice-voucher-table {
  width: 100%;
  border-collapse: collapse;
}

.invoice-voucher-table td {
  border: none;
  padding: 0;
  width: 50%;
  vertical-align: top;
}

.invoice-items-table {
  margin-top: -1px;
}

.invoice-items-table th,
.invoice-items-table td {
  border: 1px solid #000;
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
  text-align: left;
}

.invoice-items-table td.num,
.invoice-items-table th.num {
  text-align: right;
}

.invoice-words-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid #000;
  border-top: none;
  padding: 0.5rem 0.6rem;
}

.invoice-eoe {
  font-style: italic;
  white-space: nowrap;
}

.invoice-bank-table {
  margin-top: 1.5rem;
}

.invoice-bank-table td {
  border: 1px solid #000;
  padding: 0.6rem;
  vertical-align: top;
  width: 50%;
  min-height: 8rem;
}

.invoice-signatory {
  font-weight: 600;
  text-align: right;
}

.invoice-signatory-space {
  height: 3rem;
}

.invoice-generated-note {
  text-align: center;
  color: #676d78; /* literal, not themed - see the invoice-sheet note above */
  font-size: 0.72rem;
  margin-top: 1rem;
}

.invoice-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
}

.invoice-actions button {
  width: auto;
}

@media print {
  .print-hide {
    display: none !important;
  }

  body {
    background: white !important;
  }

  .invoice-sheet {
    padding: 0;
    max-width: none;
  }
}

/* ============================================================
   Compare tab
   ============================================================ */

/* Used only by compare.js's own independent rendering (not the product
   card, which has its own .brand-badge now). */
.brand {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-bottom: 0.3rem;
}

.compare-table-scroll {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  table-layout: fixed;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  width: 220px;
}

.compare-table th:first-child,
.compare-table td:first-child {
  width: 130px;
  color: var(--muted-soft);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--surface-alt);
}

.compare-table thead th {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border-strong);
}

.compare-diff-row {
  background: var(--accent-soft);
}

.compare-slot-filled {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.compare-slot-filled .brand {
  margin: 0;
}

.compare-slot-filled .code {
  font-size: 0.92rem;
}

.compare-remove-btn {
  width: auto;
  background: transparent;
  color: var(--danger);
  border-color: transparent;
  padding: 0.25rem 0;
  align-self: start;
}

.compare-slot-empty {
  position: relative;
}

.compare-search-input {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.85rem;
}

.compare-search-results {
  /* position: fixed (not absolute) and appended directly to <body> in
     compare.js, with top/left/width set inline per-open — this is required
     because .compare-table-scroll's overflow-x:auto forces overflow-y to
     compute to auto too (CSS Overflow spec), which silently clipped this
     dropdown when it lived inside that container. */
  position: fixed;
  z-index: 50;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 260px;
  overflow-y: auto;
}

.compare-search-result {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
  text-transform: none;
}

.compare-search-result:last-child {
  border-bottom: none;
}

.compare-search-result:hover {
  background: var(--accent-soft);
}

.compare-search-result .brand {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.compare-search-result .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  color: var(--accent);
}

.compare-search-empty {
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
}

.compare-price-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.compare-price-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.compare-price-label {
  color: var(--muted);
}

.compare-price-value {
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .compare-table th,
  .compare-table td {
    width: 180px;
  }
}

/* ============================================================
   Login page
   ============================================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: absolute;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  top: -18rem;
  right: -14rem;
  pointer-events: none;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
  width: 100%;
  max-width: 380px;
  position: relative;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.login-brand .brand-mark-icon {
  height: 2.5rem;
  width: auto;
}

.login-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 700;
}

.login-subtitle {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.login-card label {
  margin-top: 1rem;
}

.login-card #login-error {
  margin-top: 1rem;
  padding: 0.75rem;
}

.login-card button[type="submit"] {
  margin-top: 1.5rem;
}

.login-back-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.login-back-link:hover {
  color: var(--text);
}

/* ============================================================
   Header user badge + Admin panel
   ============================================================ */

.user-badge {
  display: flex;
  align-items: center;
}

.user-logout-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border-strong);
  padding: 0.28rem;
  border-radius: 8px;
  flex-shrink: 0;
  min-height: 1.65rem;
  min-width: 1.65rem;
}

.user-logout-btn svg {
  flex-shrink: 0;
  display: block;
}

.user-logout-btn:hover {
  background: var(--surface-alt);
  color: var(--text);
  border-color: var(--border-strong);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 20, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
}

.modal-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-card p {
  color: var(--muted);
  margin-top: 0;
}

.modal-card label {
  margin-top: 1rem;
}

.temp-password-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  margin: 0.75rem 0 1.25rem;
  text-align: center;
  letter-spacing: 0.03em;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted-soft);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.role-pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  text-transform: capitalize;
}

.status-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.status-pill.active {
  background: var(--success-bg);
  color: var(--success);
}

.status-pill.inactive {
  background: var(--warn-bg);
  color: var(--warn);
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-actions button {
  width: auto;
}

.add-user-form {
  display: grid;
  grid-template-columns: 1fr 1fr 160px auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.add-user-form button {
  width: auto;
  padding: 0.65rem 1.15rem;
}

@media (max-width: 700px) {
  .add-user-form {
    grid-template-columns: 1fr;
  }

  .party-forms {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.edit-mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--warn-bg);
  border: 1px solid #eddcb8;
  color: var(--warn);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.edit-mode-banner button {
  width: auto;
}

.protected-note {
  color: var(--muted-soft);
  font-size: 0.82rem;
  font-style: italic;
}

/* ============================================================
   Landing page
   ============================================================ */

.landing-page {
  --landing-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --landing-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  font-family: var(--landing-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.landing-page h1,
.landing-page h2,
.landing-page .hero-title,
.landing-page .section-heading {
  font-family: var(--landing-display);
  font-weight: 500;
}

/* ---- Hero: card with full image (no crop / stretch) ---- */

.hero-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(0.85rem, 2vw, 1.35rem);
  padding-bottom: clamp(1.5rem, 3vh, 2.5rem);
  background: var(--bg);
  box-sizing: border-box;
}

.landing-hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100dvh - clamp(2.5rem, 5vh, 4rem));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(4.5rem, 9vh, 6rem);
  padding-bottom: clamp(2rem, 4vh, 3rem);
}

.hero-card {
  border-radius: clamp(1.1rem, 2.5vw, 1.75rem);
  overflow: hidden;
  background: #c4c4c4;
  box-shadow:
    0 24px 48px rgba(33, 38, 44, 0.12),
    0 2px 8px rgba(33, 38, 44, 0.06);
}

.hero-card-visual {
  position: relative;
  line-height: 0;
}

.hero-card-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.hero-card-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(33, 38, 44, 0.12) 0%, transparent 32%),
    linear-gradient(180deg, transparent 42%, rgba(33, 38, 44, 0.5) 68%, rgba(33, 38, 44, 0.88) 100%),
    linear-gradient(90deg, rgba(44, 58, 76, 0.35) 0%, transparent 48%);
}

.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.landing-nav-float {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: calc(100% - clamp(1rem, 3vw, 2rem));
  max-width: 1120px;
  padding: 0.7rem 1.25rem 0.7rem 1.4rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: none;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(33, 38, 44, 0.12);
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.landing-nav-link {
  font-family: var(--landing-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 0.35rem 0.15rem;
  transition: color 0.15s ease;
}

.landing-nav-link:hover {
  color: var(--coral);
}

#contact {
  scroll-margin-top: 1.5rem;
}

.brand-wordmark {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.brand-wordmark-img {
  display: block;
  height: 1.5rem;
  width: auto;
}

.landing-login-btn {
  width: auto;
  padding: 0.55rem 1.35rem;
  font-size: 0.82rem;
  font-family: var(--landing-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}

.landing-nav-float .landing-login-btn {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.landing-nav-float .landing-login-btn:hover {
  background: var(--coral-hover);
  border-color: var(--coral-hover);
}

.hero-card-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.75rem, 4vw, 3.5rem);
  line-height: normal;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.06;
  color: #fff;
  margin: 0;
  max-width: 14ch;
}

.hero-title-accent {
  font-style: italic;
  color: #fff;
  font-weight: 400;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 0.15rem;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 28rem;
  margin: 0;
  line-height: 1.65;
}

.hero-cta-link {
  text-decoration: none;
}

.hero-cta {
  width: auto;
  padding: 0.95rem 1.75rem;
  font-size: 0.88rem;
  font-family: var(--landing-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 0.65rem;
  background: var(--coral);
  border: 1px solid var(--coral);
  color: #fff;
  box-shadow: 0 10px 28px rgba(222, 91, 72, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
  background: var(--coral-hover);
  border-color: var(--coral-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(222, 91, 72, 0.42);
}

/* ---- Section shell ---- */

.landing-section {
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.5rem, 4vw, 2.5rem);
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.section-heading {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 1.75rem;
  position: relative;
  padding-bottom: 0;
  line-height: 1.15;
}

.section-heading::after {
  content: "";
  display: block;
  margin-top: 1rem;
  width: 2.5rem;
  height: 2px;
  background: var(--coral);
}

.section-heading.centered {
  text-align: center;
  margin: 0 auto 3rem;
}

.section-heading.centered::after {
  margin-left: auto;
  margin-right: auto;
}

/* ---- About Us ---- */

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  border-top: 1px solid var(--border);
}

.about-content {
  min-width: 0;
}

.about-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.about-brand-note {
  display: block;
  margin-top: 1rem;
  color: var(--coral);
  font-weight: 700;
}

.about-media {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about-video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(525px, 65vh);
  display: block;
  margin: 0 auto;
  border-radius: clamp(0.75rem, 1.5vw, 1.1rem);
  background: var(--navy);
  box-shadow: var(--shadow-lg);
}

/* ---- Mission / Vision ---- */

.mission-vision-section {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}

.mv-col {
  min-width: 0;
  padding-top: 0.5rem;
}

.mv-col p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.02rem;
  margin: 0 0 1.15rem;
  max-width: 34rem;
}

.mv-divider {
  width: 1px;
  align-self: stretch;
  min-height: 12rem;
  background: linear-gradient(180deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
  flex-shrink: 0;
}

/* ---- Our Services ---- */

.services-section {
  background: var(--surface-alt);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.services-section > .services-header,
.services-section > .services-grid {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.5rem, 4vw, 2.5rem);
  padding-right: clamp(1.5rem, 4vw, 2.5rem);
}

.services-header {
  margin-bottom: 2.75rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.service-card {
  position: relative;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.85rem 1.75rem;
  transition: background 0.2s ease;
}

.service-card:hover {
  background: #fffefb;
}

.service-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  font-size: 0.98rem;
}

.service-card strong {
  color: var(--navy);
  font-weight: 600;
}

/* ---- Brands marquee ---- */

.brands-section {
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  max-width: none;
}

.brands-header {
  max-width: 1140px;
  margin: 0 auto 2.5rem;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

.brand-marquee {
  overflow: hidden;
  width: 100%;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.brand-marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: brand-scroll 40s linear infinite;
}

.brand-marquee-track img {
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  padding: 0.45rem 0.75rem;
  box-sizing: content-box;
  background: var(--bg);
  border: none;
  border-radius: 0;
  filter: grayscale(20%);
  opacity: 0.88;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.brand-marquee-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.brand-marquee-track img[src*="yale.png"] { background: #ffda03; }
.brand-marquee-track img[src*="ebco.jpeg"] { background: #084888; }
.brand-marquee-track img[src*="artysan.webp"] { background: #000000; }
.brand-marquee-track img[src*="atcraft.jpeg"] { background: #000008; }
.brand-marquee-track img[src*="aura.png"] { background: #202020; }
.brand-marquee-track img[src*="brassage.png"] { background: #f8f8f8; }
.brand-marquee-track img[src*="clubwell.jpeg"] { background: #f8f8f8; }
.brand-marquee-track img[src*="cobourn.jpeg"] { background: #f8f8f8; }
.brand-marquee-track img[src*="fab_product.jpeg"] { background: #f8f8f8; }
.brand-marquee-track img[src*="fiamarc.jpg"] { background: #f8f8f8; }
.brand-marquee-track img[src*="glitters.jpg"] { background: #000000; }
.brand-marquee-track img[src*="mantara.jpeg"] { background: #082830; }
.brand-marquee-track img[src*="omni.jpeg"] { background: #f8f8f8; }
.brand-marquee-track img[src*="patta.png"] { background: #003868; }
.brand-marquee-track img[src*="prime_touch.jpeg"] { background: #f8f8f8; }
.brand-marquee-track img[src*="sparkle.png"] { background: #f8f8f8; }
.brand-marquee-track img[src*="starrs.jpeg"] { background: #88b828; }
.brand-marquee-track img[src*="bigfoot.png"] { background: #000000; }
.brand-marquee-track img[src*="taco.png"] { background: #080808; }
.brand-marquee-track img[src*="SAP.jpeg"] { background: #a8a8a8; }
.brand-marquee-track img[src*="hettich.png"] { background: #e8e8e8; }
.brand-marquee-track img[src*="jolly.png"] { background: #d0c8c0; }

@keyframes brand-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---- Contact ---- */

.contact-section {
  background: var(--surface-alt);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.contact-header,
.contact-grid {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.5rem, 4vw, 2.5rem);
  padding-right: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-header {
  margin-bottom: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  background: var(--surface);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  padding: 2.25rem 1.85rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.contact-card:last-child {
  border-right: none;
}

.contact-card:hover {
  background: #fffefb;
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0;
  background: transparent;
  color: var(--coral);
  border: 1px solid rgba(222, 91, 72, 0.35);
}

.contact-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--landing-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.contact-value {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.55;
}

.landing-footer {
  text-align: center;
  padding: 1.75rem;
  color: var(--muted-soft);
  font-size: 0.78rem;
  font-family: var(--landing-body);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

@media (max-width: 900px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 1100px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card:nth-child(2n) {
    border-right: none;
  }

  .contact-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 960px) {
  .hero-card-body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .hero-title {
    max-width: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .contact-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .contact-card:not(:last-child) {
    border-bottom: 1px solid var(--border);
  }

  .contact-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 700px) {
  .mission-vision-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .mv-divider {
    width: 100%;
    height: 1px;
    min-height: 0;
    background: var(--border-strong);
  }

  .landing-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 560px) {
  .landing-nav-float {
    width: calc(100% - 1.5rem);
    padding: 0.6rem 0.85rem 0.6rem 1rem;
  }

  .brand-wordmark-img {
    height: 1.25rem;
  }

  .landing-nav-actions {
    gap: 0.75rem;
  }

  .landing-nav-link {
    font-size: 0.8rem;
  }

  .landing-login-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-marquee-track {
    animation: none;
  }
}
