/* -- Sticky Layout — 2 colonnes avec sidebar sticky prix -- */
/* Fichier ajouté le 2026-05-14 — ne pas supprimer */

.cg-layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
.cg-main-col {
  min-width: 0;
}
.cg-sidebar-col {
  position: sticky;
  top: 80px;
}

/* -- Sidebar card -- */
.cg-sticky-sidebar {
  background: #fff;
  border: 2px solid #ff7227;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(255,114,39,.15);
}
.cg-sidebar-header {
  background: #ff7227;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cg-sidebar-title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cg-sidebar-count {
  color: rgba(255,255,255,.8);
  font-size: 12px;
}
.cg-sidebar-body {
  padding: 20px;
}
.cg-sidebar-product-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
  line-height: 1.4;
  text-transform: uppercase;
}
.cg-sidebar-price-block {
  background: #fff3ed;
  border: 1px solid #ffbc9a;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.cg-sidebar-price-label {
  font-size: 12px;
  color: #888;
  font-weight: 600;
  margin-bottom: 4px;
}
.cg-sidebar-price-value {
  font-size: 30px;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1;
}
.cg-sidebar-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cg-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
}
.cg-chip-green { background: #e8f8ee; color: #1a7a3c; }
.cg-chip-blue  { background: #e8f0fb; color: #1a56b0; }

.cg-sidebar-btn-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: #ff7227;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 8px;
  transition: background .15s;
  box-sizing: border-box;
}
.cg-sidebar-btn-buy:hover {
  background: #e5621e;
  color: #fff;
  text-decoration: none;
}
.cg-sidebar-btn-retailer {
  font-size: 12px;
  opacity: .85;
  font-weight: 400;
}
.cg-sidebar-divider {
  height: 1px;
  background: #e8e8e8;
  margin: 14px 0;
}
.cg-sidebar-trust {
  font-size: 11px;
  color: #aaa;
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* -- Mobile sticky bar (visible < 900px) -- */
.cg-mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-top: 2px solid #ff7227;
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  align-items: center;
  gap: 12px;
}
.cg-mobile-sticky-price { flex: 1; }
.cg-mobile-sticky-label { font-size: 11px; color: #888; }
.cg-mobile-sticky-value { font-size: 20px; font-weight: 900; color: #1a1a1a; line-height: 1.1; }
.cg-mobile-sticky-sub   { font-size: 11px; color: #28a745; }
.cg-mobile-sticky-btn {
  padding: 12px 20px;
  background: #ff7227;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.cg-mobile-sticky-btn:hover { background: #e5621e; color: #fff; }
.cg-mobile-sticky-spacer { display: none; height: 70px; }

/* -- Responsive -- */
@media (max-width: 900px) {
  .cg-layout-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cg-sidebar-col { display: none; }
  .cg-mobile-sticky-spacer { display: block; }
}
@media (min-width: 901px) {
  #cg-mobile-sticky { display: none !important; }
}
