/* CarmenBio App — Soft UI from scratch (brand teal #004346) */
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700&family=Rubik:wght@500;600;700&display=swap");

:root {
  --cb-brand: #004346;
  --cb-brand-hover: #003335;
  --cb-brand-2: #0f766e;
  --cb-cta: #16a34a;
  --cb-ink: #134e4a;
  --cb-muted: #475569;
  --cb-soft: #e8f1f6;
  --cb-line: rgba(15, 118, 110, 0.16);
  --cb-surface: #ffffff;
  --cb-danger: #dc2626;
  --cb-bg-0: #f0fdfa;
  --cb-bg-1: #f8fbfc;
  --cb-radius: 18px;
  --cb-radius-sm: 12px;
  --cb-shadow: 0 10px 30px rgba(19, 78, 74, 0.08), 0 2px 8px rgba(19, 78, 74, 0.04);
  --cb-shadow-lg: 0 24px 60px rgba(19, 78, 74, 0.12);
  --cb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cb-font-display: "Rubik", system-ui, sans-serif;
  --cb-font-body: "Nunito Sans", system-ui, sans-serif;
  --cb-shell: min(1120px, calc(100% - 2rem));
  --cb-shell-wide: min(1280px, calc(100% - 2rem));
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.cb-body {
  margin: 0;
  font-family: var(--cb-font-body);
  color: var(--cb-ink);
  background:
    radial-gradient(1100px 480px at 6% -8%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(15, 118, 110, 0.1), transparent 50%),
    linear-gradient(180deg, var(--cb-bg-0) 0%, var(--cb-bg-1) 45%, #f5f7f8 100%);
  min-height: 100dvh;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

::selection {
  background: rgba(0, 67, 70, 0.18);
  color: var(--cb-ink);
}

img, svg, video { max-width: 100%; height: auto; }
img.position-absolute { height: 100%; }
a { color: var(--cb-brand-2); cursor: pointer; }
a:hover { color: var(--cb-brand); }

h1, h2, h3, h4, h5, .cb-title, .cb-section__title {
  font-family: var(--cb-font-display);
  color: var(--cb-ink);
  margin: 0;
}

.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;
}

.cb-skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 10000;
  background: var(--cb-brand); color: #fff !important; padding: 0.75rem 1rem;
  border-radius: 12px; font-weight: 700; text-decoration: none;
}
.cb-skip-link:focus { top: 1rem; }

.cb-body-wrapper {
  display: flex; flex-direction: column; min-height: 100dvh;
}
.cb-main { flex: 1 0 auto; width: 100%; }

/* Shell */
.cb-shell { width: var(--cb-shell); margin: 0 auto; }
.cb-shell--wide { width: var(--cb-shell-wide); margin: 0 auto; }
.cb-page { padding: 1rem 0 3rem; }

.cb-panel {
  background: var(--cb-surface);
  border: 1px solid var(--cb-line);
  border-radius: calc(var(--cb-radius) + 2px);
  box-shadow: var(--cb-shadow);
  padding: 1.5rem;
}

.cb-section { margin: 2.5rem 0; }
.cb-section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.cb-section__title { font-size: 1.35rem; font-weight: 700; }
.cb-section__sub { margin: 0.35rem 0 0; color: var(--cb-muted); font-size: 0.95rem; }

/* Buttons */
.cb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.15rem; border-radius: 14px; border: 0;
  font-weight: 700; font-family: var(--cb-font-body); text-decoration: none !important;
  cursor: pointer; transition: transform 0.2s var(--cb-ease), background 0.2s var(--cb-ease), box-shadow 0.2s var(--cb-ease);
  touch-action: manipulation;
}
.cb-btn--primary {
  background: var(--cb-brand); color: #fff !important;
  box-shadow: 0 12px 28px rgba(0, 67, 70, 0.28);
}
.cb-btn--primary:hover:not(:disabled) { background: var(--cb-brand-hover); transform: translateY(-1px); }
.cb-btn--primary:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; transform: none; }
.cb-btn--ghost { background: var(--cb-soft); color: var(--cb-ink) !important; }
.cb-btn--ghost:hover { background: rgba(15, 118, 110, 0.16); color: var(--cb-brand) !important; }
.cb-btn--danger { background: rgba(220, 38, 38, 0.1); color: #b91c1c !important; }
.cb-btn--danger:hover { background: var(--cb-danger); color: #fff !important; }
.cb-btn--sm { min-height: 40px; padding: 0 0.9rem; border-radius: 12px; font-size: 0.9rem; }
.cb-btn--block { width: 100%; }

.cb-pill {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
  border-radius: 999px; font-size: 0.78rem; font-weight: 700;
}
.cb-pill--ok { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.cb-pill--danger, .cb-pill--promo { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }
.cb-pill--muted { background: var(--cb-soft); color: var(--cb-muted); }

/* Forms */
.form-control, .cb-input {
  display: block; width: 100%; padding: 0.7rem 1rem;
  border-radius: 12px !important; border: 1px solid var(--cb-line) !important;
  min-height: 48px; background: #f8fbfc !important; color: var(--cb-ink) !important;
  font: inherit; transition: border-color 0.2s var(--cb-ease), box-shadow 0.2s var(--cb-ease);
}
.form-control:focus, .cb-input:focus {
  border-color: var(--cb-brand-2) !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15) !important;
  outline: none;
}
label { font-weight: 600; margin-bottom: 0.35rem; display: inline-block; }
.form-group, .mb-3 { margin-bottom: 1rem; }
.invalid-feedback { color: var(--cb-danger); font-size: 0.875rem; margin-top: 0.35rem; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cb-brand-2) !important; outline-offset: 2px;
}

.cb-qty {
  display: inline-flex; align-items: stretch; min-height: 48px;
  border-radius: 14px; border: 1px solid var(--cb-line); background: #f8fbfc; overflow: hidden;
}
.cb-qty button {
  min-width: 44px; min-height: 48px; border: 0; background: transparent;
  color: var(--cb-ink); cursor: pointer;
}
.cb-qty button:hover:not(:disabled) { background: rgba(15, 118, 110, 0.1); }
.cb-qty button:disabled { opacity: 0.4; cursor: not-allowed; }
.cb-qty input {
  width: 56px; border: 0; background: transparent; text-align: center;
  font-weight: 700; color: var(--cb-ink); -moz-appearance: textfield;
}
.cb-qty input::-webkit-outer-spin-button,
.cb-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Grid / cards */
.cb-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem;
}
@media (max-width: 359.98px) { .cb-grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 576px) { .cb-grid { gap: 1.1rem; } }
.cb-card {
  background: var(--cb-surface); border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius); box-shadow: var(--cb-shadow);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transition: transform 0.25s var(--cb-ease), box-shadow 0.25s var(--cb-ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cb-card:hover { transform: translateY(-4px); box-shadow: var(--cb-shadow-lg); }
  .cb-card:hover .cb-card__media img { transform: scale(1.05); }
}
.cb-card__media { position: relative; background: #edf6f6; overflow: hidden; }
.cb-card__media img {
  width: 100%; height: 200px; object-fit: cover; display: block;
  transition: transform 0.35s var(--cb-ease);
}
.cb-chip {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  border-radius: 999px; padding: 4px 10px; font-size: 0.78rem; font-weight: 800;
}
.cb-chip--promo { background: var(--cb-danger); color: #fff; }
.cb-card__toolbar { display: flex; gap: 8px; padding: 10px 12px 0; }
.cb-icon-btn {
  width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--cb-soft);
  color: #334155; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none !important; cursor: pointer;
  transition: background 0.2s var(--cb-ease), color 0.2s var(--cb-ease);
  position: relative;
}
.cb-icon-btn:hover { background: rgba(15, 118, 110, 0.16); color: var(--cb-brand); }
.cb-icon-btn.is-active { color: #15803d; }
.cb-icon-btn.is-liked { color: #e11d48; }
.cb-card__body { padding: 10px 14px 16px; flex: 1; }
.cb-card__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--cb-ink) !important; font-weight: 700; text-decoration: none !important;
  min-height: 2.6em; margin-bottom: 8px;
}
.cb-card__title:hover { color: var(--cb-brand) !important; }
.cb-card__price { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.cb-card__price .is-sale { color: var(--cb-danger); font-weight: 800; }
.cb-card__price .is-old { color: var(--cb-muted); font-size: 0.85rem; text-decoration: line-through; }
.cb-card__price .is-regular { color: var(--cb-ink); font-weight: 800; }

.cb-empty {
  text-align: center; padding: 2.5rem 1.5rem;
  border: 1px dashed var(--cb-line); border-radius: var(--cb-radius);
  background: rgba(255, 255, 255, 0.75);
}
.cb-empty img { max-height: 100px; margin-bottom: 12px; opacity: 0.85; }

.cb-breadcrumb {
  width: var(--cb-shell-wide); margin: 1rem auto;
  background: var(--cb-surface); border: 1px solid var(--cb-line);
  border-radius: 14px; box-shadow: var(--cb-shadow);
  padding: 0 0.7rem;
  font-size: 0.92rem; font-weight: 600; color: var(--cb-muted);
}
.cb-breadcrumb__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; flex-wrap: nowrap; min-width: 0;
  min-height: 48px;
}
.cb-breadcrumb__item {
  display: block; min-width: 0; flex-shrink: 0;
  white-space: nowrap; line-height: 1.3;
}
.cb-breadcrumb__item + .cb-breadcrumb__item::before {
  content: ""; display: inline-block; vertical-align: 0.12em;
  width: 7px; height: 7px; margin: 0 0.75rem 0 0.6rem;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg); opacity: 0.45;
}
.cb-breadcrumb__item[aria-current="page"] {
  flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; color: var(--cb-ink);
}
.cb-breadcrumb__item a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.45rem; border-radius: 8px;
  color: var(--cb-muted); text-decoration: none;
  transition: color 0.2s var(--cb-ease), background 0.2s var(--cb-ease);
}
.cb-breadcrumb__item a:hover { color: var(--cb-brand); background: var(--cb-soft); }
.cb-breadcrumb__item a:focus-visible { outline: 2px solid var(--cb-brand-2); outline-offset: 1px; }
.cb-breadcrumb__item .fa-home { font-size: 0.85em; color: var(--cb-brand-2); }

/* ——— Chrome ——— */
.cb-chrome { position: relative; z-index: 40; }
.cb-topbar {
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cb-line);
}
.cb-topbar__inner {
  width: var(--cb-shell-wide); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 48px; padding: 0.35rem 0;
}
.cb-topbar__links { display: none; gap: 1.1rem; }
.cb-topbar__links a {
  color: var(--cb-muted); font-weight: 600; font-size: 0.9rem; text-decoration: none;
}
.cb-topbar__links a:hover { color: var(--cb-brand); }
.cb-topbar__actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.cb-account-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 40px;
  padding: 0 0.9rem; border: 1px solid var(--cb-line); border-radius: 12px;
  background: #fff; color: var(--cb-ink); font-weight: 600; font-size: 0.9rem; cursor: pointer;
}
.cb-account-menu {
  border: 1px solid var(--cb-line) !important; border-radius: 14px !important;
  box-shadow: var(--cb-shadow-lg) !important; padding: 0.4rem !important; min-width: 220px;
}
.cb-account-menu .dropdown-item {
  border-radius: 10px; font-weight: 600; padding: 0.65rem 0.85rem;
  display: flex; align-items: center; gap: 0.55rem;
}

.cb-brandbar { padding: 1rem 0 0.85rem; display: none; }
.cb-brandbar__inner {
  width: var(--cb-shell-wide); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem;
}
.cb-logo img { display: block; max-width: 220px; height: auto; }
.cb-search { position: relative; width: 100%; max-width: 420px; margin: 0 auto; }
.cb-search .form-control { padding-right: 3.25rem !important; }
.cb-search__btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: var(--cb-brand); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.cb-search__btn:hover { background: var(--cb-brand-hover); }
.cb-search--mobile { max-width: none; margin: 0.75rem 1rem; }
.cb-phone { text-align: right; }
.cb-phone-label { display: block; margin: 0; color: var(--cb-muted); font-size: 0.8rem; font-weight: 600; }
.cb-phone-number {
  margin: 0; font-family: var(--cb-font-display); font-weight: 700;
  color: var(--cb-brand) !important; font-size: 1.15rem; text-decoration: none !important;
}
.cb-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 4px; border-radius: 999px; background: var(--cb-danger); color: #fff;
  font-size: 0.65rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}

/* Nav */
.cb-nav {
  background: var(--cb-brand); border-radius: 16px;
  margin: 0.5rem auto 1.75rem; width: var(--cb-shell-wide);
  box-shadow: var(--cb-shadow); position: relative; z-index: 30;
}
.cb-nav__inner {
  display: grid; grid-template-columns: 1fr; align-items: stretch; min-height: 64px;
}
.cb-nav__cats-wrap { display: none; position: relative; }
.cb-nav__cats {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; min-height: 64px; padding: 0 1.15rem;
  color: #fff !important; font-weight: 700; text-decoration: none !important;
  background: rgba(255, 255, 255, 0.1); border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.cb-nav__dropdown {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
  background: #003335; border-radius: 0 0 14px 14px;
  box-shadow: var(--cb-shadow-lg); overflow: hidden;
}
.cb-nav__dropdown.show { display: flex; flex-direction: column; }
.cb-nav__dropdown-list {
  max-height: clamp(180px, calc(100vh - 300px), 420px);
  overflow-y: auto; overscroll-behavior: contain; padding: 0.4rem;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent);
}
.cb-nav__dropdown-list.is-end { -webkit-mask-image: none; mask-image: none; }
.cb-nav__dropdown-list::-webkit-scrollbar { width: 8px; }
.cb-nav__dropdown-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 8px; border: 2px solid #003335; }
.cb-nav__dropdown-list::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); }
.cb-nav__dropdown-list::-webkit-scrollbar-track { background: transparent; }
.cb-nav__dropdown .cb-nav__dropdown-all {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin: 0; padding: 0.8rem 1.1rem; border-radius: 0; min-height: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.06);
  color: #fff !important; font-weight: 700; font-size: 0.92rem; text-decoration: none !important;
}
.cb-nav__dropdown .cb-nav__dropdown-all:hover { background: rgba(255, 255, 255, 0.14); }
.cb-nav__dropdown a {
  display: block; color: rgba(255,255,255,0.9) !important; text-decoration: none;
  font-weight: 600; padding: 0.7rem 0.9rem; border-radius: 10px; min-height: 44px;
}
.cb-nav__dropdown a:hover { background: rgba(255,255,255,0.1); color: #fff !important; }
.cb-nav__empty { display: block; padding: 0.85rem; color: rgba(255,255,255,0.55); }
.cb-nav__bar { background: transparent !important; padding: 0 0.75rem !important; width: 100%; }
.cb-nav__brand {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.5rem;
  color: #fff !important; text-decoration: none !important; min-width: 0;
}
.cb-nav__brand-mark {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; background: #fff;
  display: grid; place-items: center;
}
.cb-nav__brand-name {
  font-family: var(--cb-font-display); font-weight: 600; font-size: 1.02rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cb-nav__toggler {
  border: 1px solid rgba(255,255,255,0.25); border-radius: 10px;
  margin: 0.65rem 0.75rem; padding: 0.45rem 0.55rem;
}
.cb-nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem; padding: 0.35rem 0; }
.cb-nav .nav-link {
  font-weight: 700 !important; color: rgba(255,255,255,0.88) !important;
  border-radius: 10px; padding: 0.55rem 0.85rem !important;
}
.cb-nav .nav-link:hover, .cb-nav .nav-link.active {
  color: #fff !important; background: rgba(255,255,255,0.12);
}
.cb-nav__icons { display: none; align-items: center; gap: 0.35rem; margin-left: auto; }
.cb-nav__icon {
  position: relative; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff !important; border-radius: 12px; text-decoration: none !important;
}
.cb-nav__icon:hover { background: rgba(255,255,255,0.12); }
.cb-nav__icon .cb-count { top: 4px; right: 4px; }

/* Drawer mobile */
.cb-drawer {
  position: fixed; inset: 0; z-index: 1060;
  visibility: hidden; pointer-events: none;
  transition: visibility 0s linear 0.32s;
}
.cb-drawer.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.cb-drawer__backdrop {
  position: absolute; inset: 0; background: rgba(0, 35, 37, 0.55);
  opacity: 0; transition: opacity 0.32s var(--cb-ease);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.cb-drawer.is-open .cb-drawer__backdrop { opacity: 1; }
.cb-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw); display: flex; flex-direction: column;
  background: var(--cb-surface); box-shadow: -18px 0 50px rgba(0, 35, 37, 0.25);
  border-radius: 20px 0 0 20px; outline: none;
  transform: translateX(105%); transition: transform 0.32s var(--cb-ease);
}
.cb-drawer.is-open .cb-drawer__panel { transform: none; }
html.cb-drawer-lock, html.cb-drawer-lock body { overflow: hidden; }

.cb-drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.9rem 0.9rem 0.9rem 1.1rem; background: var(--cb-brand); color: #fff;
  border-radius: 20px 0 0 0;
  padding-top: max(0.9rem, env(safe-area-inset-top));
}
.cb-drawer__brand {
  display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0;
  color: #fff !important; text-decoration: none !important;
  font-family: var(--cb-font-display); font-weight: 600; font-size: 1.02rem;
}
.cb-drawer__brand > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-drawer__close {
  width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.1rem; cursor: pointer;
  display: grid; place-items: center;
}
.cb-drawer__close:hover, .cb-drawer__close:focus-visible { background: rgba(255, 255, 255, 0.22); }
.cb-drawer__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.cb-drawer__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 1rem 0.9rem 1.25rem; }
.cb-drawer__search { width: 100%; margin-bottom: 1rem; }
.cb-drawer__section + .cb-drawer__section { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--cb-line); }
.cb-drawer__heading {
  margin: 0 0 0.4rem; padding: 0 0.6rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cb-muted);
}
.cb-drawer__link {
  display: flex; align-items: center; gap: 0.85rem; width: 100%;
  min-height: 48px; padding: 0.6rem 0.75rem; border: 0; border-radius: 12px;
  background: transparent; text-align: left;
  font-weight: 600; font-size: 1rem; color: var(--cb-ink) !important; text-decoration: none !important;
  cursor: pointer; transition: background 0.2s var(--cb-ease), color 0.2s var(--cb-ease);
}
.cb-drawer__link i {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
  display: grid; place-items: center; font-size: 0.92rem;
  background: var(--cb-soft); color: var(--cb-brand-2);
}
.cb-drawer__link > span:first-of-type { flex: 1 1 auto; min-width: 0; }
.cb-drawer__link:hover, .cb-drawer__link:focus-visible { background: var(--cb-bg-0); }
.cb-drawer__link:focus-visible { outline: 2px solid var(--cb-brand-2); outline-offset: -2px; }
.cb-drawer__link.is-active { background: rgba(15, 118, 110, 0.1); color: var(--cb-brand) !important; }
.cb-drawer__link.is-active i { background: var(--cb-brand); color: #fff; }
.cb-drawer__link--danger { color: var(--cb-danger) !important; }
.cb-drawer__link--danger i { background: rgba(220, 38, 38, 0.1); color: var(--cb-danger); }
.cb-drawer__badge {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--cb-brand-2); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0; text-transform: none;
}

.cb-drawer__summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; margin: 0; padding: 0 0.6rem; border-radius: 10px;
  list-style: none; cursor: pointer;
}
.cb-drawer__summary::-webkit-details-marker { display: none; }
.cb-drawer__summary > span { display: inline-flex; align-items: center; gap: 0.5rem; }
.cb-drawer__summary i { transition: transform 0.25s var(--cb-ease); }
.cb-drawer__cats[open] .cb-drawer__summary i { transform: rotate(180deg); }
.cb-drawer__summary:hover { background: var(--cb-bg-0); }
.cb-drawer__summary:focus-visible { outline: 2px solid var(--cb-brand-2); outline-offset: -2px; }
.cb-drawer__cats-list { max-height: min(50vh, 340px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cb-drawer__cats-list { display: grid; gap: 2px; padding: 0.25rem 0 0.25rem 0.6rem; margin-left: 0.6rem; border-left: 2px solid var(--cb-soft); }
.cb-drawer__sublink {
  display: flex; align-items: center; min-height: 42px; padding: 0.45rem 0.75rem; border-radius: 10px;
  font-weight: 600; font-size: 0.94rem; color: var(--cb-muted) !important; text-decoration: none !important;
}
.cb-drawer__sublink:hover, .cb-drawer__sublink:focus-visible { background: var(--cb-bg-0); color: var(--cb-brand) !important; }

.cb-drawer__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; padding: 0.4rem 0.15rem 0; }
.cb-drawer__auth .cb-btn { justify-content: center; text-align: center; }

.cb-drawer__foot {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1.1rem; padding-bottom: max(0.9rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--cb-line); background: var(--cb-bg-1);
  color: var(--cb-ink) !important; text-decoration: none !important;
}
.cb-drawer__foot small { display: block; font-size: 0.75rem; color: var(--cb-muted); font-weight: 600; }
.cb-drawer__foot strong { font-family: var(--cb-font-display); font-size: 1.05rem; }
.cb-drawer__foot-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--cb-cta); color: #fff;
}

@media (min-width: 992px) { .cb-drawer { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .cb-drawer__panel, .cb-drawer__backdrop { transition: none; }
}

/* Footer */
.cb-footer {
  background: linear-gradient(180deg, #003a3d 0%, #002a2c 100%);
  color: rgba(255,255,255,0.78); margin-top: auto;
  border-radius: 24px 24px 0 0; padding: 2.75rem 0 0;
}
.cb-footer__grid {
  width: var(--cb-shell-wide); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 1.75rem; padding-bottom: 2rem;
}
.cb-footer__title, .cb-footer__heading {
  color: #fff; font-family: var(--cb-font-display); font-size: 1.05rem;
  font-weight: 700; margin: 0 0 0.85rem;
}
.cb-footer__lead { color: rgba(255,255,255,0.7); margin: 0 0 1rem; font-size: 0.95rem; }
.cb-footer__meta {
  display: flex; align-items: flex-start; gap: 0.65rem; margin: 0 0 0.55rem;
}
.cb-footer__col { display: flex; flex-direction: column; gap: 0.45rem; }
.cb-footer__col a {
  color: rgba(255,255,255,0.75); text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; min-height: 40px;
}
.cb-footer__col a:hover { color: #fff; }
.cb-footer__form { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.cb-footer__form .form-control {
  flex: 1 1 160px; background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.18) !important; color: #fff !important;
}
.cb-footer__form .form-control::placeholder { color: rgba(255,255,255,0.55); }
.cb-footer__social { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cb-social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: #fff !important; text-decoration: none;
}
.cb-social-btn:hover { background: var(--cb-brand-2); }
.cb-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.1rem 0 calc(1.1rem + env(safe-area-inset-bottom));
}
.cb-footer__bottom p {
  width: var(--cb-shell-wide); margin: 0 auto; font-weight: 600; font-size: 0.92rem;
}
.cb-footer__bottom a { color: #fff; text-decoration: none; }

.cb-back-top {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 1030; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--cb-brand); color: #fff !important;
  box-shadow: var(--cb-shadow); text-decoration: none !important;
}

/* Home hero / carousel */
.cb-home-top { padding-top: 0.75rem; padding-bottom: 0; }
.cb-home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}
.cb-hero-panel {
  overflow: hidden;
  padding: 0;
  border-radius: calc(var(--cb-radius) + 2px);
}
/* Cadre de proportion fixe : la hauteur ne saute pas d'une slide à l'autre,
   l'image est montrée entière et un flou de la même image comble les bords */
.cb-hero-carousel { --cb-hero-ratio: 16 / 9; }
/* Slides empilées dans la même cellule : le carrousel prend la hauteur
   de la plus haute et ne saute plus pendant le fondu */
.cb-hero-carousel .carousel-inner { display: grid; }
.cb-hero-carousel .carousel-item {
  display: block;
  grid-area: 1 / 1;
  float: none;
  margin-right: 0;
  backface-visibility: visible;
}
.cb-hero-carousel .carousel-item:not(.active):not(.carousel-item-next):not(.carousel-item-prev) {
  visibility: hidden;
  pointer-events: none;
}
.cb-hero-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #003a3d;
}
.cb-hero-slide__frame {
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  aspect-ratio: var(--cb-hero-ratio);
  max-height: min(560px, 75vh);
  overflow: hidden;
}
.cb-hero-slide__bg {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.15) brightness(0.85);
  transform: scale(1.05);
}
.cb-hero-slide__frame img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}
.cb-hero-slide--link { cursor: pointer; }
.cb-hero-slide--link:focus-visible { outline-offset: -4px !important; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cb-hero-slide--link img { transition: transform 0.6s var(--cb-ease); }
  .cb-hero-slide--link:hover img { transform: scale(1.01); }
}
@media (min-width: 576px) { .cb-hero-carousel { --cb-hero-ratio: 2 / 1; } }
@media (min-width: 992px) { .cb-hero-carousel { --cb-hero-ratio: 5 / 2; } }
@media (min-width: 992px) {
  .cb-home-hero--split .cb-hero-carousel { --cb-hero-ratio: 16 / 9; }
}
.cb-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.cb-hero-scrim--soft {
  /* Bannière déjà texturée : voile léger uniquement pour le CTA */
  background: linear-gradient(
    180deg,
    transparent 70%,
    rgba(0, 42, 44, 0.22) 88%,
    rgba(0, 42, 44, 0.5) 100%
  );
}
.cb-hero-scrim--strong {
  background: linear-gradient(
    180deg,
    rgba(0, 42, 44, 0.08) 0%,
    rgba(0, 42, 44, 0.28) 50%,
    rgba(0, 42, 44, 0.72) 100%
  );
}
.cb-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 40rem;
  min-width: 0;
}
.cb-hero-caption__title,
.cb-hero-caption__sub { overflow-wrap: anywhere; }
.cb-hero-caption__title {
  font-family: var(--cb-font-display);
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.cb-hero-caption__sub {
  color: rgba(255, 255, 255, 0.94);
  margin: 0 0 0.55rem;
  max-width: 34rem;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.45;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}
.cb-hero-caption__cta {
  background: #fff !important;
  color: var(--cb-brand) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  width: auto !important;
  margin-top: 0.25rem;
}
.cb-hero-caption__cta:hover {
  background: var(--cb-soft) !important;
  color: var(--cb-brand-hover) !important;
  transform: translateY(-1px);
}
.cb-hero-control {
  width: auto;
  opacity: 1;
  z-index: 3;
}
.cb-hero-control .cb-hero-control__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cb-brand);
  box-shadow: var(--cb-shadow);
  font-size: 0.95rem;
}
.cb-hero-control:hover .cb-hero-control__btn {
  background: #fff;
  color: var(--cb-brand-hover);
}
.cb-hero-control.carousel-control-prev { left: 12px; }
.cb-hero-control.carousel-control-next { right: 12px; }
.cb-hero-indicators {
  bottom: 14px;
  margin: 0;
  z-index: 3;
}
.cb-hero-indicators li {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.cb-hero-indicators .active {
  background: #fff;
  width: 22px;
}
.cb-hero-fallback {
  min-height: clamp(280px, 42vw, 460px);
  display: flex;
  align-items: flex-end;
  position: relative;
  color: #fff;
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(34, 211, 238, 0.22), transparent 55%),
    linear-gradient(135deg, #003a3d 0%, #004346 55%, #0f766e 100%);
}
.cb-hero-fallback .cb-hero-caption {
  position: relative;
  padding: 1.75rem;
}
.cb-home-hero__offers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cb-offer {
  position: relative; border-radius: var(--cb-radius); overflow: hidden;
  box-shadow: var(--cb-shadow); border: 1px solid var(--cb-line);
  min-height: 180px; display: flex; align-items: flex-end; background: #003a3d;
}
.cb-offer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.cb-offer__content { position: relative; z-index: 1; padding: 1.25rem; color: #fff; }
.cb-offer__content h4, .cb-offer__content h5 { color: #fff !important; margin: 0 0 0.5rem; }
.cb-offer--side { min-height: 180px !important; height: auto !important; }

.cb-feature {
  background: var(--cb-surface); border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius); box-shadow: var(--cb-shadow);
  padding: 1.35rem 1.15rem; text-align: center; height: 100%;
}
.cb-feature i { font-size: 1.75rem; color: var(--cb-brand); margin-bottom: 0.65rem; display: block; }
.cb-feature h5 { font-size: 1rem; font-weight: 700; }

.cb-features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem;
  margin: 0.5rem 0 0.25rem;
}

.cb-cat {
  display: block; background: var(--cb-surface); border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius); box-shadow: var(--cb-shadow); overflow: hidden;
  text-decoration: none !important; color: var(--cb-ink) !important; height: 100%;
  transition: transform 0.25s var(--cb-ease), box-shadow 0.25s var(--cb-ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cb-cat:hover { transform: translateY(-4px); box-shadow: var(--cb-shadow-lg); color: var(--cb-brand) !important; }
}
.cb-cat img { width: 100%; height: 150px; object-fit: cover; background: #edf6f6; display: block; }
.cb-cat__body { padding: 1rem 1.1rem; font-weight: 700; }

.cb-partner {
  background: var(--cb-surface); border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius); box-shadow: var(--cb-shadow);
  padding: 1.25rem; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.75rem; min-height: 120px; text-decoration: none;
  color: var(--cb-ink); font-weight: 600; text-align: center; height: 100%;
}
.cb-partner img { max-height: 56px; max-width: 100%; object-fit: contain; }

.cb-partners {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem;
}

.cb-cta-band__panel {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; padding: 1.75rem 1.85rem;
  border-radius: calc(var(--cb-radius) + 4px); border: 1px solid var(--cb-line);
  background:
    radial-gradient(600px 220px at 0% 0%, rgba(15, 118, 110, 0.12), transparent 60%),
    var(--cb-surface);
  box-shadow: var(--cb-shadow);
}
.cb-cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* Auth / cart */
.cb-auth { width: min(460px, calc(100% - 2rem)); margin: 1.5rem auto 2.5rem; }
.cb-auth .cb-panel { padding: 2rem; }
.cb-auth__title { font-weight: 700; margin-bottom: 0.35rem; font-size: 1.5rem; }
.cb-auth__sub { color: var(--cb-muted); margin-bottom: 1.5rem; }
.cb-auth__alt { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--cb-line); text-align: center; color: var(--cb-muted); }

/* Stepper (inscription) */
.cb-stepper {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: none;
}
.cb-stepper__item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  text-align: center; color: var(--cb-muted);
}
.cb-stepper__item + .cb-stepper__item::before {
  content: ""; position: absolute; top: 17px; right: calc(50% + 24px); left: calc(-50% + 24px);
  height: 3px; border-radius: 3px; background: var(--cb-soft);
  transition: background 0.35s var(--cb-ease);
}
.cb-stepper__item.is-done + .cb-stepper__item::before,
.cb-stepper__item.is-done + .cb-stepper__item.is-active::before { background: var(--cb-brand-2); }
.cb-stepper__dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cb-soft); color: var(--cb-muted);
  font-family: var(--cb-font-display); font-weight: 600; font-size: 0.95rem;
  transition: background 0.3s var(--cb-ease), color 0.3s var(--cb-ease), box-shadow 0.3s var(--cb-ease);
}
.cb-stepper__check { display: none; font-size: 0.85rem; }
.cb-stepper__label { font-size: 0.82rem; font-weight: 600; line-height: 1.2; }
.cb-stepper__item.is-active { color: var(--cb-ink); }
.cb-stepper__item.is-active .cb-stepper__dot {
  background: var(--cb-brand); color: #fff;
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.15);
}
.cb-stepper__item.is-done { color: var(--cb-brand-2); }
.cb-stepper__item.is-done .cb-stepper__dot { background: var(--cb-brand-2); color: #fff; }
.cb-stepper__item.is-done .cb-stepper__num { display: none; }
.cb-stepper__item.is-done .cb-stepper__check { display: inline-block; }

.cb-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.cb-steps:not(.cb-steps--js) .cb-step + .cb-step { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--cb-line); }
.cb-steps:not(.cb-steps--js) [data-step-next],
.cb-steps:not(.cb-steps--js) [data-step-prev],
.cb-steps:not(.cb-steps--js) .cb-recap { display: none; }
.cb-steps--js .cb-step.is-active { animation: cb-step-in 0.35s var(--cb-ease); }
@keyframes cb-step-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.cb-step__title {
  width: auto; float: none; margin-bottom: 1rem; padding: 0;
  font-family: var(--cb-font-display); font-size: 1.05rem; font-weight: 600; color: var(--cb-ink);
}
.cb-step__actions { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.cb-step__actions .cb-btn { display: inline-flex; align-items: center; gap: 0.5rem; }

.cb-pass { position: relative; }
.cb-pass .form-control { padding-right: 3rem; }
.cb-pass__toggle {
  position: absolute; top: 50%; right: 0.35rem; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent;
  color: var(--cb-muted); cursor: pointer;
}
.cb-pass__toggle:hover, .cb-pass__toggle:focus-visible { background: var(--cb-soft); color: var(--cb-brand); }

.cb-rules { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; font-size: 0.82rem; color: var(--cb-muted); }
.cb-rules li { display: inline-flex; align-items: center; gap: 0.35rem; transition: color 0.2s; }
.cb-rules li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; transition: background 0.2s;
}
.cb-rules li.is-ok { color: var(--cb-brand-2); }
.cb-rules li.is-ok::before { background: var(--cb-cta); }
.cb-field-msg { display: block; min-height: 1.2em; margin-top: 0.35rem; font-size: 0.82rem; }
.cb-field-msg.is-ok { color: var(--cb-brand-2); }
.cb-field-msg.is-bad { color: var(--cb-danger); }

.cb-recap { margin: 0 0 1.25rem; border: 1px solid var(--cb-line); border-radius: var(--cb-radius-sm); overflow: hidden; }
.cb-recap__row {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; align-items: center; gap: 0.5rem;
  padding: 0.7rem 0.9rem; background: var(--cb-bg-1);
}
.cb-recap__row + .cb-recap__row { border-top: 1px solid var(--cb-line); }
.cb-recap dt { margin: 0; font-size: 0.82rem; font-weight: 600; color: var(--cb-muted); }
.cb-recap dd { margin: 0; font-weight: 600; color: var(--cb-ink); overflow-wrap: anywhere; }
.cb-recap__edit {
  border: 0; background: transparent; padding: 0.35rem 0.5rem; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--cb-brand-2); cursor: pointer;
}
.cb-recap__edit:hover, .cb-recap__edit:focus-visible { background: var(--cb-soft); }

@media (max-width: 400px) {
  .cb-recap__row { grid-template-columns: minmax(0, 1fr) auto; }
  .cb-recap dt { grid-column: 1 / -1; }
  .cb-stepper__label { font-size: 0.74rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cb-steps--js .cb-step.is-active { animation: none; }
}

.cb-cart-line {
  display: grid; grid-template-columns: 72px 1fr; gap: 0.85rem; align-items: center;
  background: var(--cb-surface); border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius); box-shadow: var(--cb-shadow);
  padding: 1rem; margin-bottom: 1rem;
}
.cb-cart-line img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: #edf6f6;
}
.cb-cart-summary { position: static; }
.cb-cart-qty-form.is-auto .cb-cart-qty-submit { display: none; }
.cb-cart-qty-status { min-height: 1.2em; font-size: 0.82rem; font-weight: 600; color: var(--cb-muted); }
.cb-cart-qty-status[data-state="saving"]::before {
  content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.35rem; vertical-align: -0.1em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: cb-spin 0.7s linear infinite;
}
.cb-cart-qty-status[data-state="ok"] { color: #15803d; }
.cb-cart-qty-status[data-state="ok"]::before { content: "✓ "; }
.cb-cart-qty-status[data-state="error"] { color: var(--cb-danger); }
.cb-cart-line [data-cart-line-total] { transition: opacity 0.2s var(--cb-ease); font-variant-numeric: tabular-nums; }
.cb-cart-line.is-saving [data-cart-line-total] { opacity: 0.45; }
[data-cart-gross], [data-cart-discount], [data-cart-total] { font-variant-numeric: tabular-nums; }
@keyframes cb-spin { to { transform: rotate(360deg); } }
.cb-layout-2 {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}

.alert {
  border-radius: 14px; border: 1px solid var(--cb-line); padding: 0.85rem 1rem; margin-bottom: 1rem;
}
.alert-danger { background: rgba(220,38,38,0.08); color: #b91c1c; }
.alert-success { background: rgba(22,163,74,0.1); color: #15803d; }

.pagination { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 1.5rem 0 0; justify-content: center; }
.page-link {
  min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--cb-line); color: var(--cb-ink); text-decoration: none; font-weight: 600;
  padding: 0 0.65rem; background: #fff;
}
.page-item.active .page-link { background: var(--cb-brand); border-color: var(--cb-brand); color: #fff; }
.page-item.disabled .page-link { opacity: 0.5; pointer-events: none; }

/* PDP essentials */
.cb-pdp { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.cb-hero {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2rem;
}
.cb-gallery { border-radius: var(--cb-radius); overflow: hidden; background: #edf6f6; border: 1px solid var(--cb-line); }
.cb-gallery__img, .cb-gallery img { width: 100%; min-height: 260px; object-fit: cover; display: block; }
.cb-buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 1rem; }

.cb-share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 1rem;
  margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--cb-line);
}
.cb-share__label { font-size: 0.88rem; font-weight: 600; color: var(--cb-muted); }
.cb-share__links { display: flex; align-items: center; gap: 0.5rem; }
.cb-share__btn {
  --share: var(--cb-brand);
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-grid; place-items: center; flex-shrink: 0;
  background: var(--cb-soft); color: var(--cb-ink) !important;
  font-size: 1rem; line-height: 1; text-decoration: none !important;
  transition: background 0.2s var(--cb-ease), color 0.2s var(--cb-ease), transform 0.2s var(--cb-ease), box-shadow 0.2s var(--cb-ease);
}
.cb-share__btn i { display: block; width: 1em; text-align: center; }
.cb-share__btn:hover,
.cb-share__btn:focus-visible {
  background: var(--share); color: #fff !important;
  transform: translateY(-2px); box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
}
.cb-share__btn:focus-visible { outline: 2px solid var(--share); outline-offset: 2px; }
.cb-share__btn--whatsapp { --share: #25d366; }
.cb-share__btn--facebook { --share: #1877f2; }
.cb-share__btn--x { --share: #0f1419; }
.cb-share__btn--linkedin { --share: #0a66c2; }
@media (pointer: coarse) {
  .cb-share__btn { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .cb-share__btn:hover, .cb-share__btn:focus-visible { transform: none; }
}
.cb-specs { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin: 1rem 0; }
.cb-spec {
  background: #f8fbfc; border: 1px solid var(--cb-line); border-radius: 12px; padding: 0.85rem 1rem;
}
.cb-spec span { display: block; font-size: 0.75rem; color: var(--cb-muted); font-weight: 600; text-transform: uppercase; }
.cb-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--cb-line); box-shadow: 0 -10px 30px rgba(19,78,74,0.08);
  display: block;
}
.cb-sticky__inner {
  width: var(--cb-shell); margin: 0 auto; display: flex; align-items: center; gap: 12px;
}
.cb-sticky__price {
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 0.35rem; line-height: 1.15;
  font-family: var(--cb-font-display); font-weight: 700; font-size: 1.1rem; color: var(--cb-brand);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.cb-sticky__price small { font-size: 0.72em; font-weight: 600; }
.cb-sticky__old { flex-basis: 100%; font-size: 0.78rem; font-weight: 600; color: var(--cb-muted); }

/* Bloc prix fiche produit */
.cb-pdp .cb-kicker { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.65rem; }
.cb-pdp .cb-title { margin: 0 0 0.85rem; line-height: 1.15; overflow-wrap: anywhere; }
.cb-price-block {
  margin: 0 0 1rem; padding: 0.9rem 1.1rem;
  background: var(--cb-bg-0); border: 1px solid var(--cb-line); border-radius: var(--cb-radius-sm);
}
.cb-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 0.85rem; }
.cb-price {
  margin: 0; display: inline-flex; align-items: baseline; gap: 0.35rem;
  font-family: var(--cb-font-display); color: var(--cb-brand); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cb-price__amount { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); font-weight: 700; letter-spacing: -0.01em; }
.cb-price__currency { font-size: 1rem; font-weight: 600; color: var(--cb-brand-2); }
.cb-price.is-sale .cb-price__amount { color: #b91c1c; }
.cb-price-old { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--cb-muted); font-variant-numeric: tabular-nums; }
.cb-price-old s { text-decoration-thickness: 1.5px; text-decoration-color: rgba(71, 85, 105, 0.7); }
.cb-price-save {
  display: inline-flex; align-items: center; gap: 0.4rem; margin: 0.55rem 0 0;
  padding: 0.25rem 0.65rem; border-radius: 999px;
  background: rgba(22, 163, 74, 0.12); color: #15803d; font-size: 0.85rem; font-weight: 700;
}
.cb-pdp .cb-lead { color: var(--cb-muted); line-height: 1.6; margin-bottom: 0.5rem; }
.cb-sticky .cb-btn--primary { flex: 1; }
.cb-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px);
  gap: 16px; overflow-x: auto; padding: 8px 4px 20px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.cb-track > * { scroll-snap-align: start; }

/* Bootstrap overrides we still need */
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.dropdown-toggle::after { margin-left: 0.4em; }
@media (min-width: 576px) {
  .cb-features { grid-template-columns: repeat(4, 1fr); }
  .cb-partners { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .cb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cb-layout-2 { grid-template-columns: 1.5fr 1fr; }
  .cb-cart-line { grid-template-columns: 96px 1fr auto auto; }
  .cb-cart-line img { width: 96px; height: 96px; }
  .cb-cart-summary { position: sticky; top: 1rem; }
  .cb-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .cb-partners { grid-template-columns: repeat(4, 1fr); }
  .cb-specs { grid-template-columns: 1fr 1fr; }
  .cb-hero-caption { padding: 1.75rem 2rem 2.5rem; }
}

@media (min-width: 992px) {
  .cb-topbar__links { display: flex; }
  .cb-brandbar { display: block; }
  .cb-nav__inner { grid-template-columns: 240px 1fr; }
  .cb-nav__cats-wrap { display: block; }
  .cb-nav__icons { display: flex; }
  .cb-home-hero--split { grid-template-columns: 1.75fr 1fr; }
  .cb-home-hero--split .cb-hero-fallback {
    min-height: 360px;
    height: 100%;
  }
  .cb-offer--side-single { min-height: 0 !important; height: 100% !important; }
  .cb-offer--side-pair { min-height: 0 !important; height: auto !important; flex: 1 1 0; }
  .cb-home-hero__offers { height: 100%; }
  .cb-home-hero--split .cb-hero-panel { align-self: start; }
  .cb-hero { grid-template-columns: 1.05fr 0.95fr; }
  .cb-sticky { display: none; }
  .cb-pdp { padding-bottom: 3rem; }
  .cb-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
  .cb-footer__grid--3 { grid-template-columns: 1.4fr 1fr 1.3fr; }
}

@media (min-width: 1200px) {
  .cb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1400px) {
  :root { --cb-shell-wide: min(1320px, calc(100% - 3rem)); }
}

/* Grands écrans : on exploite la largeur sans étirer les lignes de texte */
@media (min-width: 1680px) {
  :root {
    --cb-shell: min(1240px, calc(100% - 4rem));
    --cb-shell-wide: min(1480px, calc(100% - 4rem));
  }
  .cb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cb-card__media img { height: 220px; }
}

@media (min-width: 2200px) {
  html { font-size: 17px; }
  :root { --cb-shell-wide: min(1720px, calc(100% - 6rem)); }
  .cb-card__media img { height: 250px; }
}

/* Tablette portrait : fiche produit et panier sur deux colonnes */
@media (min-width: 768px) and (max-width: 991.98px) {
  .cb-hero { grid-template-columns: 1fr 1fr; align-items: start; }
  .cb-gallery__img, .cb-gallery img { min-height: 0; aspect-ratio: 1 / 1; }
}

/* Petits téléphones */
@media (max-width: 374.98px) {
  .cb-panel { padding: 1.1rem; }
  .cb-auth .cb-panel { padding: 1.35rem; }
  .cb-section { margin: 1.75rem 0; }
  .cb-section__title { font-size: 1.2rem; }
  .cb-grid { gap: 0.75rem; }
  .cb-cta-band__panel { padding: 1.35rem 1.15rem; }
  .cb-cta-band__actions, .cb-cta-band__actions .cb-btn { width: 100%; }
}

@media (max-width: 575.98px) {
  .cb-page .row { margin-left: -10px; margin-right: -10px; }
  .cb-page .row > [class*="col"] { padding-left: 10px; padding-right: 10px; }
  .cb-card__media img { height: 150px; }
  .cb-card__toolbar { padding: 8px 8px 0; gap: 6px; }
  .cb-card__toolbar .cb-icon-btn { width: 40px; height: 40px; }
  .cb-card__body { padding: 8px 10px 12px; }
  .cb-card__title { font-size: 0.92rem; }
  .cb-card__price { font-size: 0.9rem; }
  .cb-chip { top: 8px; right: 8px; }
  .cb-cat img { height: 120px; }
  .cb-cat__body { padding: 0.75rem 0.85rem; font-size: 0.92rem; }
  .cb-hero-control { display: none; }
  .cb-hero-indicators { bottom: 6px; }
  .cb-hero-indicators li { width: 7px; height: 7px; margin: 0 3px; }
  .cb-hero-indicators .active { width: 16px; }
  .cb-hero-panel { border-radius: var(--cb-radius); }
  /* Bannière trop basse pour superposer le texte : il passe sous l'image */
  .cb-hero-slide--copy .cb-hero-slide__frame { flex-grow: 0; }
  .cb-hero-slide--copy .cb-hero-caption { flex: 1 0 auto; justify-content: flex-start; }
  .cb-hero-slide--copy .cb-hero-scrim { display: none; }
  .cb-hero-slide--copy .cb-hero-caption {
    position: static;
    max-width: none;
    padding: 0.9rem 1rem 1.6rem;
    gap: 0.25rem;
    background: linear-gradient(135deg, #003a3d 0%, #004346 60%, #0f766e 100%);
  }
  .cb-hero-slide--copy .cb-hero-caption__title { font-size: 1.15rem; text-shadow: none; }
  .cb-hero-slide--copy .cb-hero-caption__sub {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    text-shadow: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cb-hero-slide--copy .cb-hero-caption__cta { min-height: 42px; padding: 0.55rem 1rem; font-size: 0.9rem; }
  .cb-hero-carousel .carousel-item { touch-action: pan-y; }
  .cb-hero-fallback { min-height: 240px; }
  .cb-hero-fallback .cb-hero-caption { padding: 1.25rem 1.1rem 1.5rem; }
  .cb-breadcrumb { padding: 0 0.5rem; font-size: 0.86rem; margin-top: 0.75rem; }
  .cb-breadcrumb__list { min-height: 44px; }
  .cb-breadcrumb__item:not(:first-child):not([aria-current="page"]) { flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; }
  .cb-breadcrumb__item:not(:first-child):not([aria-current="page"]) a { display: inline; padding: 0; margin: 0; }
  .cb-breadcrumb__item:first-child span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cb-breadcrumb__item + .cb-breadcrumb__item::before { margin: 0 0.55rem 0 0.4rem; }
  .cb-footer { border-radius: 18px 18px 0 0; }
}

/* Téléphones en paysage */
@media (max-height: 520px) and (orientation: landscape) {
  .cb-sticky { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .cb-sticky .cb-btn { min-height: 42px; }
  .cb-back-top { display: none; }
}

/* Cibles tactiles d'au moins 44px */
@media (pointer: coarse) {
  .cb-breadcrumb__item a { min-height: 40px; }
  .cb-footer__col a { display: inline-flex; align-items: center; min-height: 44px; }
  .cb-topbar__links a { display: inline-flex; align-items: center; min-height: 44px; }
  .cb-account-menu .dropdown-item { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important; transition: none !important; animation: none !important;
  }
}
