/* GBHA Shop Toolbar (Invisible Band with Search, Filters & Sort) + Product Cards Variante 1 */

/* 1. Bande d'outils Boutique Minimaliste (Recherche + Switch 3 categories + Tri) */
.gbha-shop-toolbar {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 0 18px 0;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.gbha-toolbar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* Barre de recherche a gauche */
.gbha-toolbar-search {
  position: relative;
  flex: 0 1 300px;
  min-width: 200px;
}

.gbha-toolbar-search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.gbha-toolbar-search input {
  width: 100%;
  padding: 10px 32px 10px 38px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gbha-toolbar-search input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.gbha-toolbar-search input:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.gbha-toolbar-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.gbha-toolbar-search-clear.visible {
  display: flex;
}

/* Switch segmente 3 categories (au lieu d'une multitude de boutons) */
.gbha-toolbar-filters {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.06);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.gbha-filter-pill {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-align: center;
}

.gbha-filter-pill:hover {
  color: #0f172a;
}

.gbha-filter-pill.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}

/* Selecteur de tri unique a droite */
.gbha-toolbar-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.gbha-toolbar-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.gbha-toolbar-select-wrap svg {
  position: absolute;
  left: 13px;
  color: #64748b;
  pointer-events: none;
}

.gbha-toolbar-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 30px 10px 34px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  transition: border-color 0.2s ease;
}

.gbha-toolbar-select:hover,
.gbha-toolbar-select:focus {
  border-color: #0f172a;
}

/* Message aucun resultat */
.gbha-no-results {
  text-align: center;
  padding: 48px 20px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px dashed #cbd5e1;
  display: none;
}

.gbha-no-results.visible {
  display: block;
}

.gbha-no-results h4 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.gbha-no-results p {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 16px;
}

.gbha-reset-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: #0f172a;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

/* 2. Fiches Produits - Variante 1 (Minimal Clean + Bouton Info & Modal Fiche Technique) */
.gbha-v1-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.gbha-v1-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.gbha-v1-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.gbha-v1-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.gbha-v1-info-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.gbha-v1-info-btn:hover {
  transform: scale(1.08);
  background: #0f172a;
  color: #ffffff;
}

.gbha-v1-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.gbha-v1-title {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.3px;
}

.gbha-v1-title span.green,
.gbha-v1-title span.wood,
.gbha-v1-title span.slate {
  color: #0f172a;
}

.gbha-v1-pills {
  display: none !important;
}

.gbha-v1-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  margin-bottom: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.gbha-v1-price-label {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.gbha-v1-price-val {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  margin-top: 4px;
}

.gbha-v1-price-val span {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

/* Modal Fiche Technique Produit */
.gbha-prod-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gbha-prod-modal-backdrop.open {
  display: flex;
}

.gbha-prod-modal {
  background: #ffffff;
  width: 100%;
  max-width: 700px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.28);
  display: grid;
  grid-template-columns: 270px 1fr;
  animation: gbhaSimPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gbha-prod-modal-img {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 360px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gbha-prod-modal-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.gbha-prod-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.gbha-prod-modal-cat {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #059669;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.gbha-prod-modal-title {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
}

.gbha-prod-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gbha-prod-modal-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 18px 0;
}

.gbha-prod-modal-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.gbha-prod-spec-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}

.gbha-prod-spec-box span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 2px;
}

.gbha-prod-spec-box strong {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.gbha-prod-modal-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 900px) {
  .gbha-toolbar-top-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .gbha-toolbar-search {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
    min-width: 0;
    flex: unset;
  }
  .gbha-toolbar-right {
    grid-column: 2;
    grid-row: 1;
  }
  .gbha-toolbar-select {
    padding: 10px 26px 10px 30px;
    font-size: 12px;
  }
  .gbha-toolbar-filters {
    grid-column: 1 / span 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
  .gbha-filter-pill {
    padding: 8px 6px;
    font-size: 12px;
  }
}

@media (max-width: 720px) {
  .gbha-prod-modal {
    grid-template-columns: 1fr;
  }
  .gbha-prod-modal-img {
    min-height: 190px;
  }
}

.btn-buy-card {
  width: 100%;
  padding: 13px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn-buy-card:hover {
  background: #059669;
  transform: translateY(-1px);
}

.wood-card .btn-buy-card:hover {
  background: #b45309;
}

@media (max-width: 768px) {
  .gbha-v1-card {
    padding: 10px;
    border-radius: 16px;
  }
  .gbha-v1-visual {
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 8px;
  }
  .gbha-v1-tag {
    font-size: 7.5px;
    padding: 3px 6px;
    letter-spacing: 0.2px;
    max-width: calc(100% - 30px);
    line-height: 1.15;
  }
  .gbha-v1-info-btn {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
  .gbha-v1-info-btn svg {
    width: 13px;
    height: 13px;
  }
  .gbha-v1-title-row {
    margin-bottom: 6px;
  }
  .gbha-v1-title {
    font-size: 13.5px;
    line-height: 1.2;
  }
  .gbha-v1-footer {
    margin-bottom: 8px;
    padding-top: 8px;
    align-items: center;
  }
  .gbha-v1-price-label {
    font-size: 7.5px;
  }
  .gbha-v1-price-val {
    font-size: 16.5px;
  }
  .gbha-v1-price-val span {
    font-size: 9.5px;
    display: block;
    margin-top: 1px;
  }
  .gbha-v1-card .qty-picker {
    padding: 2px;
    border-radius: 8px;
  }
  .gbha-v1-card .qty-btn {
    width: 22px;
    height: 22px;
    font-size: 13px;
    border-radius: 5px;
  }
  .gbha-v1-card .qty-input {
    width: 24px;
    font-size: 12px;
    padding: 0;
    text-align: center;
    -moz-appearance: textfield;
  }
  .btn-buy-card {
    padding: 9px 6px;
    font-size: 11px;
    border-radius: 9px;
  }
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-input {
  -moz-appearance: textfield;
  padding: 0;
}

/* Modal produit : image et description dans deux conteneurs separes */
.gbha-prod-modal {
  background: transparent;
  box-shadow: none;
  overflow: visible;
  max-width: 860px;
  gap: 14px;
  grid-template-columns: 310px 1fr;
  max-height: calc(100vh - 40px);
}
.gbha-prod-modal-img {
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.28);
  min-height: 420px;
}
.gbha-prod-modal-body {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.28);
}
@media (max-width: 720px) {
  .gbha-prod-modal {
    grid-template-columns: 1fr;
    gap: 10px;
    overflow-y: auto;
    max-width: 440px;
  }
  .gbha-prod-modal-img {
    min-height: 200px;
    box-shadow: none;
  }
  .gbha-prod-modal-body {
    padding: 22px 20px;
    box-shadow: none;
  }
}

/* Sélecteur de longueur de coupe (Ballots & Box Bois) */
.gbha-cut-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.gbha-cut-btn {
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
  line-height: 1.2;
}

.gbha-cut-btn:hover {
  border-color: #cbd5e1;
  color: #0f172a;
}

.gbha-cut-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Panier interactif & Calculateur de livraison dégressive Camion Porteur */
.gbha-cart-ship-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
  font-size: 12px;
}

.gbha-cart-ship-title {
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #0f172a;
  margin-bottom: 8px;
}

.gbha-cart-ship-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  outline: none;
}

.gbha-cart-ship-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #475569;
  font-size: 11.5px;
  padding-top: 6px;
  border-top: 1px dashed #cbd5e1;
}

.gbha-cart-ship-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  background: #0f172a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .gbha-cut-selector {
    gap: 4px;
    margin-bottom: 7px;
  }
  .gbha-cut-btn {
    padding: 3px 6px;
    font-size: 9.5px;
    border-radius: 5px;
  }
}

/* Tiroir Panier Latéral Redesigné (Épuré & Moderne) */
#cartDrawer.drawer-panel {
  width: 430px;
  max-width: 100vw;
  background: #f8fafc;
  box-shadow: -18px 0 45px rgba(15, 23, 42, 0.16);
  border-left: 1px solid #e2e8f0;
}

.gbha-drawer-header {
  padding: 20px 22px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gbha-drawer-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gbha-drawer-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f0f9ff;
  color: #08354c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gbha-drawer-header h3 {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.2px;
}

.gbha-drawer-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #08354c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.gbha-drawer-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.gbha-drawer-close-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.gbha-drawer-body {
  flex: 1;
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gbha-drawer-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: stretch;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.gbha-drawer-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.gbha-drawer-card-img {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  flex-shrink: 0;
}

.gbha-drawer-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gbha-drawer-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.gbha-drawer-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.gbha-drawer-card-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.35;
}

.gbha-drawer-del-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.gbha-drawer-del-btn:hover {
  background: #fef2f2;
  color: #dc2626;
}

.gbha-drawer-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f8fafc;
}

.gbha-drawer-stepper {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
}

.gbha-drawer-step-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: none;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: background 0.15s ease, color 0.15s ease;
}

.gbha-drawer-step-btn:hover {
  background: #08354c;
  color: #ffffff;
}

.gbha-drawer-step-val {
  min-width: 28px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
}

.gbha-drawer-price-col {
  text-align: right;
}

.gbha-drawer-unit-price {
  display: block;
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
}

.gbha-drawer-line-price {
  font-size: 15px;
  font-weight: 900;
  color: #08354c;
}

.gbha-drawer-footer {
  padding: 18px 22px 22px 22px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.04);
}

.gbha-drawer-info-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #08354c;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 14px;
}

.gbha-drawer-primary-btn {
  width: 100%;
  padding: 15px 18px;
  border-radius: 12px;
  border: none;
  background: #08354c;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.gbha-drawer-primary-btn:hover:not(:disabled) {
  background: #0a4664;
  transform: translateY(-1px);
}

.gbha-drawer-continue-btn {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.gbha-drawer-continue-btn:hover {
  color: #0f172a;
}


