/* ===================================================
   Casper Dental — site-wide design
   Loaded after every other stylesheet of the theme.
   =================================================== */

:root {
  --cd-ink: #1c2b3a;
  --cd-blue: #07acf7;
  --cd-blue-dark: #0590d1;
  --cd-line: #d9e8f2;
  --cd-tint: #edf7fe;
  --cd-muted: #5b6b7f;
  --cd-radius: 14px;
}

body,
h1, h2, h3, h4 {
  color: var(--cd-ink);
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--cd-tint);
  color: var(--cd-ink);
  border-bottom: 1px solid var(--cd-line);
}

.topbar-inner {
  justify-content: space-between;
  gap: 16px;
}

.topbar-msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  opacity: 1;
}

.topbar-msg::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cd-blue);
  flex-shrink: 0;
}

.cd-topbar-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cd-topbar-contact a {
  color: var(--cd-muted);
  font-weight: 500;
  text-decoration: none;
}

.cd-topbar-contact a:hover {
  color: var(--cd-blue-dark);
}

/* ---------- Header ---------- */
.header {
  border-bottom: none;
  box-shadow: 0 6px 24px rgba(11, 47, 74, 0.07);
}

.header-inner {
  padding: 16px 24px;
  gap: 32px;
}

.header .logo img {
  width: 150px;
  height: auto;
}

.search-bar {
  background: #ffffff;
  border: 1.5px solid var(--cd-line);
  border-radius: var(--cd-radius);
  padding: 12px 16px;
  max-width: 620px;
  color: var(--cd-muted);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-bar:focus-within {
  border-color: var(--cd-blue);
  box-shadow: 0 0 0 4px rgba(7, 172, 247, 0.12);
}

.header-actions {
  gap: 6px;
}

.icon-btn {
  width: auto;
  height: auto;
  flex-direction: column;
  gap: 3px;
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--cd-ink);
  text-decoration: none;
}

.icon-btn:hover {
  background: var(--cd-tint);
  color: var(--cd-blue-dark);
}

.cd-icon-label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

.icon-btn .badge {
  top: 2px;
  right: 8px;
  background: var(--cd-blue);
  min-width: 18px;
  height: 18px;
  font-size: 0.66rem;
}

.account-link {
  background: #ffffff;
  color: var(--cd-ink);
  border: 1.5px solid var(--cd-line);
  border-radius: 12px;
  padding: 11px 16px;
  margin-left: 8px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.account-link:hover {
  border-color: var(--cd-blue);
  color: var(--cd-blue-dark);
}

/* Navigation: a blue bar under the header */
.navmenu {
  border-top: none;
  background: var(--cd-blue);
}

.navmenu-inner {
  padding: 0 24px;
}

.navlinks {
  gap: 2px;
}

.navlinks a {
  color: #ffffff;
  font-weight: 600;
  padding: 13px 16px;
}

.navlinks a::after {
  display: none;
}

.navlinks a:hover,
.navlinks a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.promo-link {
  background: #ffffff;
  color: var(--cd-blue-dark);
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  gap: 8px;
}

.promo-link:hover {
  color: var(--cd-ink);
}

.cd-promo-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cd-blue);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 992px) {
  .cd-topbar-contact {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
  }

  .header .logo img {
    width: 120px;
  }

  .navmenu {
    background: #ffffff;
  }

  .navmenu-inner {
    padding: 12px 16px;
  }

  .navlinks a {
    color: var(--cd-ink);
    padding: 12px 0;
  }

  .navlinks a:hover,
  .navlinks a.active {
    color: var(--cd-blue-dark);
    background: transparent;
  }

  .promo-link {
    background: var(--cd-tint);
    width: auto !important;
    margin-top: 12px;
    padding: 8px 16px 8px 8px !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 12px;
}

.btn-primary {
  background: var(--cd-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--cd-blue-dark);
  box-shadow: 0 10px 22px rgba(7, 172, 247, 0.28);
}

/* ---------- Page banners ---------- */
.page-banner,
.compte-hero {
  background: var(--cd-tint) !important;
  color: var(--cd-ink) !important;
  border-bottom: 1px solid var(--cd-line);
  padding: 34px 0 !important;
  margin-bottom: 0;
}

.page-banner h1,
.compte-hero h1 {
  color: var(--cd-ink) !important;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-banner h1::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--cd-blue);
  margin-top: 12px;
}

.page-banner p,
.compte-hero p {
  color: var(--cd-muted) !important;
  font-size: 1rem;
  opacity: 1;
}

.breadcrumbs,
.woocommerce-breadcrumb {
  color: var(--cd-muted);
  opacity: 1;
}

.breadcrumbs a,
.page-banner .breadcrumbs a,
.marques-banner .breadcrumbs a,
.woocommerce-breadcrumb a {
  color: var(--cd-muted) !important;
}

.breadcrumbs a:hover,
.page-banner .breadcrumbs a:hover {
  color: var(--cd-blue-dark) !important;
}

.breadcrumbs span,
.page-banner .breadcrumbs span {
  color: var(--cd-ink) !important;
}

.marques-tag-pill {
  background: #ffffff !important;
  color: var(--cd-ink) !important;
  border: 1px solid var(--cd-line) !important;
}

/* ---------- Product cards ---------- */
.product-card {
  border: 1px solid var(--cd-line);
  border-radius: 18px;
  box-shadow: none;
}

.product-card:hover {
  transform: none;
  border-color: var(--cd-blue);
  box-shadow: 0 12px 28px rgba(7, 172, 247, 0.14);
}

.product-grid:not(.list-view) .product-media {
  height: 190px;
  margin: 10px 10px 0;
  border-radius: 12px;
  background-color: var(--cd-tint);
  background-size: contain;
  background-repeat: no-repeat;
}

.product-card .fav-btn {
  border-radius: 10px;
}

.ribbon {
  border-radius: 8px;
}

.product-meta span:last-child {
  background: transparent;
  padding: 0;
  color: var(--cd-blue-dark);
}

.product-grid:not(.list-view) .price-row {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.product-grid:not(.list-view) .price-block {
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
}

.price-block strong {
  color: var(--cd-ink) !important;
}

.product-grid:not(.list-view) .product-actions,
.product-grid:not(.list-view) .product-actions .btn {
  width: 100%;
}

.product-actions .btn {
  justify-content: center;
  border-radius: 12px;
  padding: 11px 16px;
}

.product-actions .btn-primary {
  background: var(--cd-blue);
}

.product-actions .btn-primary:hover {
  background: var(--cd-blue-dark);
}

.product-card .points {
  background: transparent !important;
  padding: 0 !important;
  color: var(--cd-muted) !important;
  font-weight: 500 !important;
}

/* ---------- Catalogue pages: filters on the right ---------- */
.catalog-sidebar {
  border: 1px solid var(--cd-line);
  border-radius: 18px;
  box-shadow: none;
  background: #ffffff;
}

@media (min-width: 1025px) {
  .catalog-sidebar {
    order: 2;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: #ffffff;
  color: var(--cd-muted);
  border-top: 4px solid var(--cd-blue);
}

.footer .logo--footer img {
  width: 150px;
  height: auto;
}

.footer-col h4 {
  color: var(--cd-ink);
}

.footer-col a {
  color: var(--cd-muted);
}

.footer-col a:hover {
  color: var(--cd-blue-dark);
}

.footer-contact-icon,
.footer-social-icon {
  filter: brightness(0) saturate(100%) invert(49%) sepia(93%) saturate(1900%) hue-rotate(168deg) brightness(98%);
}

.footer-bottom {
  background: var(--cd-tint);
  border-top: 1px solid var(--cd-line);
  color: var(--cd-muted);
}

.footer-bottom a {
  color: var(--cd-muted);
}

/* ---------- Out of stock ---------- */
.out-of-stock-pill-overlay,
.ribbon--outofstock {
  background-color: #ffffff;
  background: #ffffff;
  color: var(--cd-ink);
  border: 1px solid var(--cd-line);
  box-shadow: 0 6px 16px rgba(11, 47, 74, 0.12);
}

.btn-demander {
  background-color: #ffffff !important;
  color: var(--cd-ink) !important;
  border: 1.5px solid var(--cd-line) !important;
  border-radius: 12px !important;
}

.btn-demander:hover {
  background-color: var(--cd-tint) !important;
  border-color: var(--cd-blue) !important;
  box-shadow: none !important;
}

/* ---------- Dialog overlays: blue-tinted rather than black ---------- */
.cart-sidebar-overlay,
.checkout-exit-modal-overlay {
  background: rgba(11, 47, 74, 0.35);
}

/* ---------- Categories page: icon cards ---------- */
.categories-section {
  background: #ffffff;
}

.categories-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.category-card {
  border: 1px solid var(--cd-line);
  border-radius: 22px;
  box-shadow: none;
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--cd-blue);
  box-shadow: 0 18px 36px rgba(7, 172, 247, 0.2);
}

.cd-catvisual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 16 / 10;
  padding: 22px;
  overflow: hidden;
  color: #ffffff;
}

.cd-catvisual--0 { background: linear-gradient(150deg, #29bbfa 0%, #0590d1 100%); }
.cd-catvisual--1 { background: linear-gradient(150deg, #0aa0e6 0%, #0a6fb0 100%); }
.cd-catvisual--2 { background: linear-gradient(150deg, #5fd0ff 0%, #07acf7 100%); }
.cd-catvisual--3 { background: linear-gradient(150deg, #1695d6 0%, #0b5f9c 100%); }

.cd-catvisual-mark {
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 190px;
  height: 190px;
  color: rgba(255, 255, 255, 0.2);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.category-card:hover .cd-catvisual-mark {
  transform: rotate(-10deg) scale(1.12);
}

.cd-catvisual-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--cd-blue-dark);
  box-shadow: 0 8px 18px rgba(4, 80, 120, 0.2);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.category-card:hover .cd-catvisual-icon {
  transform: rotate(-8deg) scale(1.08);
}

.cd-catvisual-title {
  position: relative;
  margin: 0;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

/* ---------- La Société ---------- */
.cs-section {
  padding: 68px 0;
  background: #ffffff;
}

.cs-section--tint {
  background: var(--cd-tint);
}

.cs-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cd-blue-dark);
  margin-bottom: 14px;
}

.cs-page h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cd-ink);
  margin: 0 0 16px;
}

.cs-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.cs-intro-text p {
  color: var(--cd-muted);
  line-height: 1.75;
  margin: 0 0 16px;
}

.cs-intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 26px;
}

.cs-intro-actions .btn {
  padding: 14px 26px;
  text-decoration: none;
}

.cs-link {
  font-weight: 600;
  color: var(--cd-blue-dark);
  text-decoration: none;
}

.cs-link:hover {
  text-decoration: underline;
}

.cs-intro-visual {
  position: relative;
  padding-bottom: 44px;
}

.cs-intro-visual > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 28px 56px rgba(7, 110, 170, 0.2);
}

.cs-stats {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #ffffff;
  border: 1px solid var(--cd-line);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(11, 47, 74, 0.12);
}

.cs-stat {
  padding: 18px 12px;
  text-align: center;
}

.cs-stat + .cs-stat {
  border-left: 1px solid var(--cd-line);
}

.cs-stat strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--cd-blue-dark);
}

.cs-stat span {
  font-size: 0.84rem;
  color: var(--cd-muted);
}

.cs-head {
  text-align: center;
  margin-bottom: 36px;
}

.cs-head p {
  margin: 0;
  color: var(--cd-muted);
}

.cs-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cs-value {
  padding: 28px 22px;
  background: #ffffff;
  border: 1px solid var(--cd-line);
  border-radius: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cs-value:hover {
  transform: translateY(-4px);
  border-color: var(--cd-blue);
  box-shadow: 0 16px 32px rgba(7, 172, 247, 0.16);
}

.cs-value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--cd-blue);
  color: #ffffff;
  margin-bottom: 18px;
}

.cs-value h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--cd-ink);
  margin: 0 0 8px;
}

.cs-value p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--cd-muted);
}

.cs-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border: 1px solid var(--cd-line);
  border-radius: 24px;
  overflow: hidden;
}

.cs-contact-text {
  padding: 40px;
}

.cs-contact-text .btn {
  padding: 14px 26px;
  text-decoration: none;
}

.cs-contact-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.cs-contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cd-line);
}

.cs-contact-list span {
  font-size: 0.8rem;
  color: var(--cd-muted);
}

.cs-contact-list strong,
.cs-contact-list a {
  font-weight: 600;
  color: var(--cd-ink);
  text-decoration: none;
}

.cs-contact-list a:hover {
  color: var(--cd-blue-dark);
}

.cs-contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

@media (max-width: 960px) {
  .cs-intro,
  .cs-contact {
    grid-template-columns: 1fr;
  }

  .cs-intro {
    gap: 36px;
  }

  .cs-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .cs-section {
    padding: 48px 0;
  }

  .cs-values {
    grid-template-columns: 1fr;
  }

  .cs-contact-text {
    padding: 26px 20px;
  }
}

/* ---------- Contact ---------- */
.ct-section {
  padding: 56px 0;
  background: #ffffff;
}

.ct-section--tint {
  background: var(--cd-tint);
  padding-bottom: 72px;
}

.ct-ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ct-way {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 28px 26px;
  border: 1px solid var(--cd-line);
  border-radius: 22px;
  background: #ffffff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ct-way:hover {
  transform: translateY(-5px);
  border-color: var(--cd-blue);
  box-shadow: 0 18px 36px rgba(7, 172, 247, 0.18);
}

.ct-way-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--cd-blue);
  color: #ffffff;
  margin-bottom: 16px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ct-way:hover .ct-way-icon {
  transform: rotate(-8deg) scale(1.08);
}

.ct-way-label {
  font-size: 0.84rem;
  color: var(--cd-muted);
}

.ct-way-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cd-ink);
  overflow-wrap: anywhere;
}

.ct-way-go {
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cd-blue-dark);
}

.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 28px;
  align-items: start;
}

.ct-formcard {
  padding: 36px;
  background: #ffffff;
  border: 1px solid var(--cd-line);
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(11, 47, 74, 0.06);
}

.ct-formcard h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cd-ink);
  margin: 0 0 6px;
}

.ct-formcard-sub {
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: var(--cd-muted);
}

.ct-notice {
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 500;
  margin-bottom: 22px;
}

.ct-notice--ok {
  background: #e7f8ee;
  color: #15803d;
  border: 1px solid #bfe8cf;
}

.ct-notice--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.ct-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ct-field--wide {
  grid-column: 1 / -1;
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ct-field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cd-ink);
}

.ct-field input,
.ct-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--cd-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--cd-ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ct-field textarea {
  resize: vertical;
  min-height: 140px;
}

.ct-field input:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: var(--cd-blue);
  box-shadow: 0 0 0 4px rgba(7, 172, 247, 0.14);
}

.ct-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--cd-muted);
}

.ct-consent input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--cd-blue);
  flex-shrink: 0;
}

.ct-consent a {
  color: var(--cd-blue-dark);
}

.ct-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.ct-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ct-map {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--cd-line);
  background: #ffffff;
}

.ct-map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.ct-info {
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(150deg, #29bbfa 0%, #0590d1 100%);
  color: #ffffff;
}

.ct-info h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 14px;
}

.ct-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ct-info li {
  position: relative;
  padding-left: 22px;
  font-size: 0.93rem;
  line-height: 1.55;
}

.ct-info li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
}

@media (max-width: 960px) {
  .ct-ways,
  .ct-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ct-form {
    grid-template-columns: 1fr;
  }

  .ct-formcard {
    padding: 24px 18px;
  }

  .ct-submit {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Phones and tablets ---------- */
.mobile-action-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.woocommerce-product-attributes th {
  white-space: nowrap;
  padding-right: 16px;
  text-align: left;
  vertical-align: top;
}

#billing_city,
#noest_station_code {
  height: 48px !important;
  line-height: 1.3 !important;
  padding: 0 14px !important;
}

@media (max-width: 992px) {
  /* The cart stays one tap away, next to the menu button. */
  .header .header-actions > #panierHeaderBtn {
    display: inline-flex !important;
    padding: 6px 10px;
  }

  .header .header-actions > #panierHeaderBtn .cd-icon-label {
    display: none;
  }

  .header .header-actions > #panierHeaderBtn .badge {
    top: -2px;
    right: 0;
  }
}

@media (max-width: 1024px) {
  .catalog-sidebar {
    padding: 16px 18px;
  }

  .catalog-sidebar .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
  }

  .catalog-sidebar .sidebar-header h3 {
    margin: 0;
  }

  .catalog-sidebar .sidebar-header::after {
    content: 'Afficher';
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cd-blue-dark);
  }

  .catalog-sidebar.cd-open .sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cd-line);
  }

  .catalog-sidebar.cd-open .sidebar-header::after {
    content: 'Masquer';
  }

  .catalog-sidebar .filter-group {
    display: none;
  }

  .catalog-sidebar.cd-open .filter-group {
    display: block;
  }
}

@media (max-width: 600px) {
  /* Two products per row */
  .product-grid,
  .catalog-main .product-grid,
  main .product-grid:not(.list-view),
  .product-grid--centered {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .product-grid--centered > * {
    width: auto;
  }

  .product-grid.list-view,
  .catalog-main .product-grid.list-view {
    grid-template-columns: 1fr !important;
  }

  .product-grid:not(.list-view) .product-media {
    height: 130px;
    margin: 8px 8px 0;
  }

  .product-grid:not(.list-view) .product-body {
    padding: 10px 10px 12px;
  }

  .product-grid:not(.list-view) .product-card-excerpt,
  .product-grid:not(.list-view) .product-meta span:last-child {
    display: none !important;
  }

  .product-grid:not(.list-view) .product-meta span:first-child {
    max-width: 100%;
  }

  .product-grid:not(.list-view) .product-body h3 {
    font-size: 0.82rem;
  }

  .product-grid:not(.list-view) .price-block {
    flex-wrap: wrap;
    gap: 2px 6px;
  }

  .product-grid:not(.list-view) .price-block strong {
    font-size: 0.95rem !important;
  }

  .product-grid:not(.list-view) .product-actions .btn {
    padding: 9px 8px;
    font-size: 0.78rem;
  }

  .product-card .points {
    font-size: 0.66rem !important;
    margin-top: 6px !important;
  }

  .ch-cattrack.is-visible .ch-catcard {
    animation-delay: calc(var(--i) * 35ms);
  }

  .product-card .ribbon {
    max-width: none;
    font-size: 0.62rem;
    padding: 3px 8px;
    top: 8px;
    left: 8px;
  }

  .product-card .ribbon--limited {
    top: 32px;
  }

  .product-card .fav-btn {
    width: 30px;
    height: 30px;
    top: 6px;
    right: 6px;
  }
}

/* ---------- Checkout on phones: details, then the order summary with the delivery choice, then the button ---------- */
@media (max-width: 900px) {
  .paiement-layout .checkout-form-column {
    display: contents;
  }

  .paiement-layout .checkout-form-column > * {
    order: 1;
  }

  .paiement-layout .checkout-summary-column {
    order: 2 !important;
  }

  .paiement-layout .checkout-form-column > .checkout-submit-wrapper {
    order: 3;
  }
}

/* ===================================================
   Lighter palette: blue as an accent only
   =================================================== */

/* Menu: white bar, dark links, blue marker on the current link */
.navmenu {
  background: #ffffff;
  border-top: 1px solid var(--cd-line);
}

.navlinks a {
  color: var(--cd-ink);
  padding: 14px 16px;
}

.navlinks a::after {
  display: block;
  left: 16px;
  width: calc(100% - 32px);
  height: 3px;
  border-radius: 3px 3px 0 0;
  background-color: var(--cd-blue);
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--cd-blue-dark);
  background: transparent;
}

.promo-link {
  background: var(--cd-blue);
  color: #ffffff;
}

.promo-link:hover {
  background: var(--cd-blue-dark);
  color: #ffffff;
}

.cd-promo-dot {
  background: #ffffff;
  color: var(--cd-blue-dark);
}

@media (max-width: 992px) {
  .navlinks a::after {
    display: none;
  }

  .promo-link {
    background: var(--cd-blue);
  }
}


/* Category page cards: white, with a blue icon */
.cd-catvisual,
.cd-catvisual--0,
.cd-catvisual--1,
.cd-catvisual--2,
.cd-catvisual--3 {
  background: var(--cd-tint);
  color: var(--cd-ink);
}

.cd-catvisual-mark {
  color: rgba(28, 43, 58, 0.07);
}

.cd-catvisual-icon {
  background: #ffffff;
  color: var(--cd-blue-dark);
  box-shadow: 0 6px 14px rgba(28, 43, 58, 0.08);
}

.cd-catvisual-title {
  color: var(--cd-ink);
}

.category-card:hover {
  box-shadow: 0 18px 36px rgba(28, 43, 58, 0.12);
}

.cat-badge--purple {
  background: #eef0f3;
  color: var(--cd-ink);
}

/* Smaller blue surfaces */
.footer {
  border-top: 1px solid var(--cd-line);
}

.cs-value-icon,
.ct-way-icon {
  background: #eaf6fe;
  color: var(--cd-blue-dark);
}

.ct-info {
  background: var(--cd-tint);
  border: 1px solid var(--cd-line);
  color: var(--cd-ink);
}

.ct-info h3 {
  color: var(--cd-ink);
}

.ct-info li {
  color: var(--cd-muted);
}

.ct-info li::before {
  background: var(--cd-blue);
}

.product-card:hover {
  box-shadow: 0 12px 28px rgba(28, 43, 58, 0.1);
}

.product-meta span:last-child {
  color: var(--cd-muted);
}

/* ===================================================
   Balanced palette: pale blue backgrounds, pastel category cards
   =================================================== */

/* A thin blue bar at the very top anchors the page */
.topbar {
  background: var(--cd-blue);
  color: #ffffff;
  border-bottom: none;
}

.topbar-msg::before {
  background: #ffffff;
}

.cd-topbar-contact a {
  color: rgba(255, 255, 255, 0.92);
}

.cd-topbar-contact a:hover {
  color: #ffffff;
}

.cd-catvisual--0 {
  background: #e1f3fe;
}

.cd-catvisual--0 .cd-catvisual-icon {
  color: #0590d1;
}

.cd-catvisual--0 .cd-catvisual-mark {
  color: #0590d1;
  opacity: 0.13;
}

.cd-catvisual--1 {
  background: #e0f6ec;
}

.cd-catvisual--1 .cd-catvisual-icon {
  color: #0f9d6b;
}

.cd-catvisual--1 .cd-catvisual-mark {
  color: #0f9d6b;
  opacity: 0.13;
}

.cd-catvisual--2 {
  background: #ffeede;
}

.cd-catvisual--2 .cd-catvisual-icon {
  color: #e07a1f;
}

.cd-catvisual--2 .cd-catvisual-mark {
  color: #e07a1f;
  opacity: 0.13;
}

.cd-catvisual--3 {
  background: #fdf4d3;
}

.cd-catvisual--3 .cd-catvisual-icon {
  color: #b98b06;
}

.cd-catvisual--3 .cd-catvisual-mark {
  color: #b98b06;
  opacity: 0.13;
}

.cat-badge--purple {
  background: #e1f3fe;
  color: var(--cd-blue-dark);
}

/* Footer on the pale blue */
.footer {
  background: var(--cd-tint);
  border-top: none;
}

.footer-bottom {
  background: #e1f3fe;
}

.ct-info {
  background: #e1f3fe;
  border-color: transparent;
}

/* ---------- Category page cards: blue ---------- */
.cd-catvisual--0 {
  background: linear-gradient(150deg, #29bbfa 0%, #0590d1 100%);
}

.cd-catvisual--0 .cd-catvisual-icon {
  color: #0590d1;
}

.cd-catvisual--0 .cd-catvisual-mark {
  color: #ffffff;
  opacity: 0.2;
}

.cd-catvisual--1 {
  background: linear-gradient(150deg, #0aa0e6 0%, #0a6fb0 100%);
}

.cd-catvisual--1 .cd-catvisual-icon {
  color: #0590d1;
}

.cd-catvisual--1 .cd-catvisual-mark {
  color: #ffffff;
  opacity: 0.2;
}

.cd-catvisual--2 {
  background: linear-gradient(150deg, #5fd0ff 0%, #07acf7 100%);
}

.cd-catvisual--2 .cd-catvisual-icon {
  color: #0590d1;
}

.cd-catvisual--2 .cd-catvisual-mark {
  color: #ffffff;
  opacity: 0.2;
}

.cd-catvisual--3 {
  background: linear-gradient(150deg, #1695d6 0%, #0b5f9c 100%);
}

.cd-catvisual--3 .cd-catvisual-icon {
  color: #0590d1;
}

.cd-catvisual--3 .cd-catvisual-mark {
  color: #ffffff;
  opacity: 0.2;
}

.cd-catvisual,
.cd-catvisual-title {
  color: #ffffff;
}

.category-card:hover {
  box-shadow: 0 18px 36px rgba(7, 172, 247, 0.2);
}

/* ---------- Category page cards with a photo ---------- */
.cd-catvisual--photo {
  background-size: cover;
  background-position: center;
}

.cd-catvisual--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 70, 115, 0.05) 30%, rgba(4, 60, 100, 0.85) 100%);
}

.cd-catvisual--photo .cd-catvisual-mark {
  display: none;
}

.category-card .cd-catvisual--photo {
  transition: background-size 0.5s ease;
}

/* ---------- Provisional brand logos ---------- */
.cd-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.cd-wordmark-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px rgba(7, 120, 180, 0.22);
}

.cd-wordmark--0 .cd-wordmark-mono { background: linear-gradient(135deg, #29bbfa, #0590d1); }
.cd-wordmark--1 .cd-wordmark-mono { background: linear-gradient(135deg, #0aa0e6, #0a6fb0); }
.cd-wordmark--2 .cd-wordmark-mono { background: linear-gradient(135deg, #5fd0ff, #07acf7); }
.cd-wordmark--3 .cd-wordmark-mono { background: linear-gradient(135deg, #1695d6, #0b5f9c); }

.cd-wordmark-name {
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--cd-ink);
}

.cd-wordmark--large .cd-wordmark-mono {
  width: 46px;
  height: 46px;
  font-size: 1.1rem;
}

.cd-wordmark--large .cd-wordmark-name {
  font-size: 1.15rem;
}

.ch-chip:hover .cd-wordmark-name {
  color: var(--cd-blue-dark);
}
