/**
 * FiveHeberg Cart — surcharge standard_cart pour la charte vitrine
 * Chargé après all.min.css (voir common.tpl)
 */

#order-standard_cart.fh-order-cart {
  color: var(--fh-text, #e8f0fc);
}

#order-standard_cart .alert {
  border-radius: 12px;
}

#order-standard_cart .fh-order-cart__tagline {
  color: var(--fh-muted, #8fa3be);
  margin-top: 0.35rem;
}

/* Annule les cartes produit WHMCS (fond blanc, header gris #f8f8f8) */
body.fh-whmcs #order-standard_cart .products .product.fh-offer-card {
  padding: 1.5rem 1.35rem 1.35rem;
  margin: 0;
  background: linear-gradient(168deg, rgba(16, 32, 54, 0.98) 0%, rgba(6, 13, 24, 0.99) 100%);
  border: 1px solid rgba(59, 158, 255, 0.14);
  border-radius: calc(var(--fh-radius, 16px) + 2px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

body.fh-whmcs #order-standard_cart .products .product.fh-offer-card header,
body.fh-whmcs #order-standard_cart .products .product.fh-offer-card footer {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  text-align: left;
}

body.fh-whmcs #order-standard_cart .products .product.fh-offer-card header span,
body.fh-whmcs #order-standard_cart .products .product.fh-offer-card .price {
  color: inherit;
  font-size: inherit;
}

body.fh-whmcs #order-standard_cart .products .product.fh-offer-card div.product-desc,
body.fh-whmcs #order-standard_cart .products .product.fh-offer-card div.product-pricing {
  float: none;
  width: auto;
  padding: 0;
  margin: 0;
}

#order-standard_cart .fh-offer-card__from,
#order-standard_cart .fh-offer-card__setup {
  display: block;
  font-size: 0.8rem;
  color: var(--fh-muted, #8fa3be);
  margin-top: 0.25rem;
}

#order-standard_cart .products .product.fh-offer-card .fh-offer-card__price-block {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

#order-standard_cart .products .product.fh-offer-card .fh-offer-card__amount.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--fh-text, #e8f0fc);
}

#order-standard_cart .products .product.fh-offer-card .fh-offer-card__period {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fh-muted, #8fa3be);
}

#order-standard_cart .products .product.fh-offer-card .fh-offer-card__spec-value {
  font-weight: 700;
  color: var(--fh-text, #e8f0fc);
}

#order-standard_cart .products .product.fh-offer-card .fh-offer-card__cta {
  margin-top: auto;
  padding-top: 0.75rem;
}

#order-standard_cart .products .product.fh-offer-card .fh-offer-card__btn {
  width: 100%;
  justify-content: center;
}

/* Sidebar catégories — fond sombre */
body.fh-whmcs #order-standard_cart .cart-sidebar .card,
body.fh-whmcs #order-standard_cart .cart-sidebar .panel {
  background: var(--fh-bg-elevated, #0c1829);
  border-color: var(--fh-border, rgba(77, 163, 255, 0.22));
  color: var(--fh-text, #e8f0fc);
}

body.fh-whmcs #order-standard_cart .cart-sidebar .list-group-item {
  background: transparent;
  color: var(--fh-muted, #8fa3be);
  border-color: rgba(77, 163, 255, 0.12);
}

body.fh-whmcs #order-standard_cart .cart-sidebar .list-group-item.active,
body.fh-whmcs #order-standard_cart .cart-sidebar .list-group-item-action:hover {
  background: rgba(59, 158, 255, 0.12);
  color: var(--fh-text, #e8f0fc);
  border-color: rgba(59, 158, 255, 0.25);
}

body.fh-whmcs #order-standard_cart .cart-sidebar .panel-title,
body.fh-whmcs #order-standard_cart .cart-sidebar .card-header {
  color: var(--fh-text, #e8f0fc);
}

body.fh-whmcs #order-standard_cart .sidebar-collapsed.fh-mnav {
  background: var(--fh-bg-elevated, #0c1829);
  border: 1px solid var(--fh-border, rgba(77, 163, 255, 0.22));
  border-radius: 12px;
  padding: 0.75rem;
}

body.fh-whmcs #order-standard_cart .sidebar-collapsed select.form-control {
  background: rgba(6, 13, 24, 0.9);
  color: var(--fh-text, #e8f0fc);
  border-color: var(--fh-border, rgba(77, 163, 255, 0.22));
}

/* Grille produits — cartes directes (sans col-md-6 / row Bootstrap) */
body.fh-whmcs #order-standard_cart #products.fh-pricing-grid.fh-products-grid {
  --fh-grid-gap: 1.25rem;
  display: grid !important;
  flex-wrap: unset !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: var(--fh-grid-gap) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 1rem 0 !important;
}

@media (min-width: 768px) {
  body.fh-whmcs #order-standard_cart #products.fh-pricing-grid.fh-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  body.fh-whmcs #order-standard_cart #products.fh-pricing-grid.fh-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  }
}

body.fh-whmcs #order-standard_cart #products.fh-pricing-grid > .fh-offer-card,
body.fh-whmcs #order-standard_cart #products.fh-pricing-grid > .product.fh-offer-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: none !important;
  box-sizing: border-box !important;
}

body.fh-whmcs #order-standard_cart .fh-offer-card__spec {
  min-width: 0;
}

body.fh-whmcs #order-standard_cart .fh-offer-card__spec-label,
body.fh-whmcs #order-standard_cart .fh-offer-card__spec-value {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.fh-whmcs #order-standard_cart .fh-offer-card__spec-value {
  flex-shrink: 0;
  text-align: right;
  max-width: 55%;
}

body.fh-whmcs #order-standard_cart .fh-offer-card--soldout .fh-offer-card__btn--disabled {
  width: 100%;
  justify-content: center;
  pointer-events: none;
  opacity: 0.85;
}
