/* ==========================================================================
   OstreaGest Store (ostreagest.store) — Édition 2027
   Direction B : Boutique Pro Architecturale & Configurateur Rapide
   Palette officielle : Marine (#0B2A35), Cyan (#0E7490), Sable (#EFE7DA)
   ========================================================================== */

:root {
  --marine: #0B2A35;
  --marine-dark: #061A22;
  --marine-mid: #103A49;
  --cyan: #0E7490;
  --cyan-hover: #0B5E75;
  --cyan-soft: #E6F4F8;
  --sand: #EFE7DA;
  --sand-soft: #FAF8F4;
  --sand-card: #F5EFE4;
  --gold: #A98650;
  --ink: #0F222A;
  --muted: #566973;
  --border: #E2DBD0;
  --white: #FFFFFF;
  --success: #0F766E;
  --success-bg: #ECFDF5;
  --warn: #B45309;
  --warn-bg: #FFFBEB;
  --danger: #B91C1C;
  --shadow-sm: 0 4px 14px rgba(11, 42, 53, 0.05);
  --shadow-md: 0 12px 30px rgba(11, 42, 53, 0.10);
  --shadow-lg: 0 22px 50px rgba(6, 26, 34, 0.22);
  --radius: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--sand-soft);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

a {
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
}

/* ---------------- Top Info Strip ---------------- */
.top-strip {
  background: var(--marine-dark);
  color: #CBD5E1;
  font-size: 12px;
  padding: 8px 28px;
  border-bottom: 1px solid rgba(239, 231, 218, 0.14);
}
.top-strip-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.top-strip strong {
  color: var(--sand);
}
.top-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s;
}
.top-links a:hover {
  color: #7DD3FC;
}

/* ---------------- Sticky Architectural Header ---------------- */
.pro-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 42, 53, 0.98);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 14px 28px;
  border-bottom: 3px solid var(--cyan);
  box-shadow: 0 8px 24px rgba(6, 26, 34, 0.18);
}
.pro-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-link img {
  height: 40px;
  width: auto;
}
.store-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(239, 231, 218, 0.14);
  color: var(--sand);
  border: 1px solid rgba(239, 231, 218, 0.28);
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.search-zone-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 780px;
  width: 100%;
  justify-self: center;
}
.search-wrap {
  position: relative;
  flex: 1;
}
.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  padding: 10px 36px 10px 38px;
  border-radius: 10px;
  font-size: 13.5px;
  transition: border-color 0.2s, background 0.2s;
}
.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.16);
  border-color: #7DD3FC;
}
.search-input::placeholder {
  color: #94A3B8;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
  font-size: 14px;
}
.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #CBD5E1;
  cursor: pointer;
  font-size: 14px;
  display: none;
}

.cp-pill {
  background: rgba(239, 231, 218, 0.12);
  border: 1px solid rgba(239, 231, 218, 0.28);
  border-radius: 10px;
  padding: 5px 12px 5px 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cp-pill input {
  width: 68px;
  background: var(--white);
  color: var(--marine);
  border: none;
  border-radius: 6px;
  padding: 5px 7px;
  font-weight: 800;
  font-size: 12.5px;
  text-align: center;
}
.cp-pill input:focus {
  outline: 2px solid #7DD3FC;
}
.cp-pill-status {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sand);
  white-space: nowrap;
}
.cp-pill-status.ok {
  color: #6EE7B7;
}
.cp-pill-status.out {
  color: #FCD34D;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-lease-head {
  background: transparent;
  color: var(--sand);
  border: 1px solid rgba(239, 231, 218, 0.35);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn-lease-head:hover {
  background: rgba(239, 231, 218, 0.12);
  border-color: var(--sand);
}
.btn-cart-head {
  background: var(--sand);
  color: var(--marine);
  border: none;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: transform 0.15s, background 0.18s;
  white-space: nowrap;
}
.btn-cart-head:hover {
  background: #FFF;
  transform: translateY(-1px);
}
.cart-pill-count {
  background: var(--cyan);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ---------------- Compact Architectural Hero ---------------- */
.b2b-hero {
  background: linear-gradient(98deg, var(--marine-dark) 0%, var(--marine) 48%, var(--cyan) 100%);
  color: var(--white);
  padding: 28px 28px;
  border-bottom: 1px solid var(--border);
}
.b2b-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 28px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #7DD3FC;
  margin-bottom: 6px;
}
.b2b-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  line-height: 1.18;
  margin-bottom: 8px;
}
.b2b-hero p {
  color: #CBD5E1;
  font-size: 13.8px;
  max-width: 700px;
  line-height: 1.55;
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kpi-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(239, 231, 218, 0.22);
  border-radius: 12px;
  padding: 14px 15px;
}
.kpi-card strong {
  display: block;
  color: var(--sand);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 3px;
}
.kpi-card span {
  font-size: 11.5px;
  color: #CBD5E1;
  display: block;
  line-height: 1.35;
}

/* ---------------- Mobile Filter Bar ---------------- */
.mobile-filter-bar {
  display: none;
  padding: 12px 18px 0;
}
.btn-mobile-filters {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--marine);
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

/* ---------------- Two-Column Workspace ---------------- */
.workspace {
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 28px 80px;
  display: grid;
  grid-template-columns: 285px 1fr;
  gap: 28px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 84px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.side-group {
  margin-bottom: 20px;
}
.side-title {
  font-size: 10.8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan);
  margin-bottom: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.side-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: 1px solid transparent;
  padding: 8.5px 11px;
  border-radius: 9px;
  font-size: 12.8px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
  transition: background 0.15s, color 0.15s;
}
.side-btn:hover {
  background: var(--sand-soft);
}
.side-btn.active {
  background: var(--marine);
  color: var(--white);
  font-weight: 700;
}
.side-count {
  font-size: 11px;
  opacity: 0.78;
  font-weight: 700;
}

.side-logo-btn {
  width: 100%;
  background: var(--sand-soft);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 7.5px 11px;
  margin-bottom: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s;
}
.side-logo-btn:hover {
  border-color: #94A3B8;
}
.side-logo-btn img {
  height: 19px;
  width: auto;
  object-fit: contain;
}
.side-logo-btn span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}
.side-logo-btn.active {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  box-shadow: 0 0 0 2px rgba(14, 116, 144, 0.14);
}
.side-logo-btn.active span {
  color: var(--cyan);
}

.lease-callout {
  background: var(--sand);
  border-radius: 12px;
  padding: 15px;
  border-left: 4px solid var(--gold);
  margin-bottom: 14px;
}
.lease-callout h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--marine);
  margin-bottom: 4px;
}
.lease-callout p {
  font-size: 11.8px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.45;
}
.lease-callout button {
  width: 100%;
  background: var(--marine);
  color: var(--white);
  border: none;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lease-callout button:hover {
  background: var(--cyan);
}

.pdf-link-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--marine);
  background: var(--sand-soft);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 10px;
}
.pdf-link-box:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------------- Results Toolbar & Active Chips ---------------- */
.results-toolbar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.results-count {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--marine);
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sort-select {
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--marine);
  background: var(--sand-soft);
}
.btn-reset-filters {
  background: none;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
}

/* ---------------- Univers Section Dividers inside Grid ---------------- */
.univers-section {
  margin-bottom: 34px;
}
.univers-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.univers-strip-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.u-pill {
  background: var(--marine);
  color: var(--sand);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.6px;
}
.univers-strip h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: var(--marine);
}
.univers-strip p {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------------- Technical Product Cards ---------------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tech-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.tech-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #C8BFA8;
}
.tc-head {
  background: linear-gradient(180deg, #F8F4EC 0%, #EFE8DC 100%);
  padding: 34px 18px 24px;
  height: 190px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tc-head img {
  position: relative;
  z-index: 1;
  max-height: 132px;
  max-width: 88%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(11, 42, 53, 0.15));
  transition: transform 0.2s ease;
}
.tech-card:hover .tc-head img {
  transform: scale(1.04);
}
.tc-brand {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  background: var(--marine);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 5px;
}
.tc-brand.dymo {
  background: var(--cyan);
}
.tc-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--border);
}
.tc-warranty {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.92);
  padding: 2px 7px;
  border-radius: 4px;
}

.tc-body {
  padding: 16px 18px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tc-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--marine);
  margin-bottom: 6px;
  cursor: pointer;
  line-height: 1.3;
}
.tc-title:hover {
  color: var(--cyan);
}
.tc-specs {
  list-style: none;
  margin: 4px 0 12px;
}
.tc-specs li {
  font-size: 12px;
  color: var(--muted);
  padding-left: 13px;
  position: relative;
  margin-bottom: 4px;
  line-height: 1.42;
}
.tc-specs li::before {
  content: "•";
  color: var(--cyan);
  font-weight: 800;
  position: absolute;
  left: 0;
}

.tc-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.tc-mod-chip {
  background: var(--sand-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  height: 20px;
  display: inline-flex;
  align-items: center;
}
.tc-mod-chip img {
  height: 12px;
  width: auto;
}

.tc-var-box {
  margin-top: auto;
}
.tc-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  font-size: 12px;
  font-weight: 700;
  color: var(--marine);
  background: #F8FAFC;
  margin-bottom: 6px;
  cursor: pointer;
}
.tc-sku-line {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.btn-fiche {
  background: none;
  border: none;
  color: var(--cyan);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}

.tc-foot {
  padding: 13px 18px;
  background: var(--sand-soft);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.tc-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--marine);
  line-height: 1.1;
}
.tc-price span.unit {
  font-size: 12px;
  font-weight: 700;
}
.tc-price small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  font-weight: 600;
  margin-top: 2px;
}
.tc-buy {
  background: var(--cyan);
  color: var(--white);
  border: none;
  padding: 9.5px 14px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.16s, transform 0.12s;
  white-space: nowrap;
}
.tc-buy:hover {
  background: var(--marine);
}
.tc-buy.added {
  background: var(--success);
}

/* ---------------- Reassurance & Conditions Section ---------------- */
.conditions-band {
  background: var(--sand);
  border-top: 1px solid var(--border);
  padding: 48px 28px;
}
.conditions-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cond-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  border-radius: 12px;
  padding: 20px;
}
.cond-card.gold {
  border-left-color: var(--gold);
}
.cond-card h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--marine);
  margin-bottom: 6px;
}
.cond-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--marine-dark);
  color: #CBD5E1;
  padding: 42px 28px 28px;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.footer-col h4 {
  color: var(--sand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 7px;
  font-size: 12.8px;
}
.footer-col a {
  color: #CBD5E1;
  text-decoration: none;
}
.footer-col a:hover {
  color: #7DD3FC;
}
.footer-apps {
  background: var(--white);
  border-radius: 10px;
  padding: 10px 14px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.footer-apps img {
  height: 18px;
  width: auto;
}
.footer-bottom {
  max-width: 1440px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.8px;
  color: #94A3B8;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------- Slide-over Cart & Checkout Drawer ---------------- */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 26, 34, 0.58);
  backdrop-filter: blur(2px);
  z-index: 90;
  display: none;
}
.backdrop.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 520px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 100;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open {
  transform: translateX(0);
  visibility: visible;
}
.drawer-header {
  background: var(--marine);
  color: var(--white);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--cyan);
}
.drawer-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
}
.drawer-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}
.drawer-body {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
}

.zone-checker-card {
  background: var(--sand-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 16px;
}
.zone-checker-card label {
  display: block;
  font-size: 11.8px;
  font-weight: 800;
  color: var(--marine);
  margin-bottom: 6px;
}
.zone-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.zone-input-row input {
  width: 110px;
  padding: 8px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--marine);
}
.zone-badge-msg {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  flex: 1;
}
.zone-badge-msg.eligible {
  color: var(--success);
}
.zone-badge-msg.outside {
  color: var(--warn);
}

.cart-line {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #EFE7DA;
}
.cart-line img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: var(--sand-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}
.cl-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--marine);
  line-height: 1.3;
}
.cl-sku {
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
  margin: 2px 0 6px;
}
.qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid #CBD5E1;
  border-radius: 7px;
  overflow: hidden;
}
.qty-ctrl button {
  background: #F8FAFC;
  border: none;
  width: 26px;
  height: 24px;
  font-weight: 800;
  cursor: pointer;
  color: var(--marine);
}
.qty-ctrl span {
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}
.cl-remove {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 11.5px;
  margin-left: 8px;
  cursor: pointer;
  text-decoration: underline;
}
.cl-remove:hover {
  color: var(--danger);
}

.drawer-footer {
  border-top: 1px solid var(--border);
  background: var(--sand-soft);
  padding: 16px 22px 20px;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 5px;
}
.sum-row strong {
  color: var(--ink);
}
.sum-row.total {
  font-size: 17px;
  font-weight: 800;
  color: var(--marine);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 7px;
}
.btn-primary-checkout {
  width: 100%;
  margin-top: 12px;
  background: var(--marine);
  color: var(--white);
  border: none;
  padding: 13.5px 16px;
  border-radius: 11px;
  font-size: 13.8px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s;
}
.btn-primary-checkout:hover {
  background: var(--cyan);
}
.btn-secondary-lease {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  color: var(--marine);
  border: 1px solid #CBD5E1;
  padding: 9.5px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------------- Modals (Product Detail, Checkout Form, Leasing Form) ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 26, 34, 0.65);
  backdrop-filter: blur(3px);
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.modal-card {
  background: var(--white);
  border-radius: 18px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.modal-head {
  background: var(--marine);
  color: var(--white);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 5;
}
.modal-head h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
}
.modal-body {
  padding: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
  align-items: start;
}
.detail-img-box {
  background: var(--sand-card);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.detail-img-box img {
  max-width: 100%;
  max-height: 210px;
  object-fit: contain;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 12.5px;
}
.spec-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #EFE7DA;
}
.spec-table td:first-child {
  font-weight: 700;
  color: var(--marine);
  width: 38%;
  background: var(--sand-soft);
}
.rec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.rec-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sand-soft);
}
.rec-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-field.full {
  grid-column: 1 / -1;
}
.form-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--marine);
}
.form-field input, .form-field textarea, .form-field select {
  padding: 10px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.14);
}
.alert-box {
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 12.8px;
  margin-bottom: 16px;
  font-weight: 600;
}
.alert-box.ok {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #A7F3D0;
}
.alert-box.warn {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid #FDE68A;
}
.alert-box.err {
  background: #FEF2F2;
  color: var(--danger);
  border: 1px solid #FECACA;
}

/* ---------------- Account Button, Legal Sidebar & 4-Step Tracker ---------------- */
.btn-account-head {
  background: rgba(255, 255, 255, 0.10);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-account-head:hover {
  background: rgba(255, 255, 255, 0.18);
}

.side-legal-links {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 11.2px;
  color: var(--muted);
}
.side-legal-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
}
.side-legal-links a:hover {
  color: var(--cyan);
  text-decoration: underline;
}

.step-tracker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 12px 0;
}
.step-node {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.step-node.done {
  background: #ECFDF5;
  border-color: #34D399;
  color: #0F766E;
}
.step-node.current {
  background: var(--marine);
  border-color: var(--marine);
  color: var(--sand);
}

/* ---------------- Mobile Dedicated Controls (hidden on desktop) ---------------- */
.mobile-quick-panel {
  display: none;
}
.mobile-cart-dock {
  display: none;
}

/* ---------------- Responsive & Mobile Perfection ---------------- */
@media (max-width: 1180px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .conditions-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .b2b-hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  body {
    padding-bottom: 72px;
  }
  .top-strip {
    padding: 6px 14px;
    font-size: 11px;
  }
  .top-links {
    display: none;
  }

  /* Slim 56px sticky header on mobile: Logo + Compte + Panier ONLY */
  .pro-header {
    padding: 9px 14px;
  }
  .pro-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .brand-link img {
    height: 30px;
  }
  .store-badge,
  .pro-header .search-zone-bar,
  .btn-lease-head {
    display: none !important;
  }
  .header-actions {
    gap: 6px;
    width: auto;
  }
  .btn-account-head {
    padding: 7px 10px;
    font-size: 11.8px;
  }
  .btn-cart-head {
    padding: 7px 11px;
    font-size: 12px;
    gap: 6px;
  }

  /* Clean mobile hero */
  .b2b-hero {
    padding: 20px 16px;
  }
  .b2b-hero h1 {
    font-size: 23px;
  }
  .b2b-hero p {
    font-size: 13px;
  }
  .kpi-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .kpi-card {
    padding: 10px;
  }
  .kpi-card strong {
    font-size: 13px;
  }
  .kpi-card span {
    font-size: 10.5px;
  }

  /* Dedicated Mobile Search + Postal Code + Swipeable Univers Tabs */
  .mobile-quick-panel {
    display: block;
    padding: 14px 14px 4px;
    background: var(--sand-soft);
  }
  .mq-search {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    font-size: 14px;
    background: var(--white);
    color: var(--ink);
    margin-bottom: 9px;
  }
  .mq-cp-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 7px 10px;
    margin-bottom: 10px;
  }
  .mq-cp-bar input {
    width: 68px;
    padding: 6px 8px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-weight: 800;
    font-size: 13px;
    text-align: center;
    color: var(--marine);
    flex-shrink: 0;
  }
  .mq-cp-msg {
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    min-width: 0;
    overflow-wrap: break-word;
  }
  .mq-tabs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mq-tabs::-webkit-scrollbar {
    display: none;
  }
  .mq-tab {
    flex-shrink: 0;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--marine);
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 12.2px;
    font-weight: 700;
    cursor: pointer;
  }
  .mq-tab.active {
    background: var(--marine);
    color: var(--white);
    border-color: var(--marine);
  }

  .mobile-filter-bar {
    display: block;
    padding: 6px 14px 0;
  }
  .workspace {
    grid-template-columns: 1fr;
    padding: 12px 14px 50px;
  }
  .sidebar {
    display: none;
    position: static;
    margin-bottom: 14px;
  }
  .sidebar.mobile-open {
    display: block;
  }
  .tech-card, .results-toolbar, .univers-section {
    min-width: 0;
    max-width: 100%;
  }
  .tc-select {
    max-width: 100%;
  }
  .detail-grid, .form-grid, .footer-inner {
    grid-template-columns: 1fr;
  }
  .step-tracker {
    grid-template-columns: 1fr 1fr;
  }

  /* Floating Bottom Cart Bar on Mobile when cart > 0 */
  .mobile-cart-dock.has-items {
    display: flex;
    position: fixed;
    bottom: 10px;
    left: 12px;
    right: 12px;
    z-index: 75;
    background: var(--marine);
    color: var(--white);
    border: 1px solid rgba(239, 231, 218, 0.3);
    border-radius: 13px;
    padding: 12px 16px;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 12px 30px rgba(6, 26, 34, 0.42);
    cursor: pointer;
  }
}

@media (max-width: 620px) {
  .brand-link img {
    height: 26px;
  }
  .tech-grid, .conditions-inner, .rec-grid {
    grid-template-columns: 1fr;
  }
  .kpi-row {
    grid-template-columns: 1fr;
  }
  .modal-overlay {
    padding: 10px;
  }
  .modal-body {
    padding: 16px;
  }
}
