/* ===========================
   SCQS – Thème Atelier Couture
   =========================== */

/* Wrapper général */
.scqs-shop-wrapper {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* GRID PRODUITS */
.scqs-products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .scqs-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .scqs-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* CARTE PRODUIT */
.scqs-product-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.scqs-product-card:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.scqs-product-thumb img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* CORPS CARTE */
.scqs-product-body {
  padding: 10px 12px 12px;
}

/* Titre produit */
.scqs-shop-wrapper .scqs-product-title {
  font-size: 16px !important;
  font-weight: 600;
  margin: 0 0 4px;
  color: #111827;
  min-height: 28px;
  line-height: 1.35;
}


/* Prix produit (mis en avant) */
.scqs-product-price {
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  font-size: 14px;
}

/* VARIATIONS */
.scqs-product-variation {
  margin-bottom: 6px;
}

.scqs-variation-field {
  margin-bottom: 4px;
}

.scqs-variation-field label {
  font-size: 11px;
  color: #6b7280;
  display: block;
  margin-bottom: 2px;
}

.scqs-variation-select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 12px;
  padding: 4px 8px;
  background: #f9fafb;
}

/* ACTIONS */
.scqs-product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.scqs-qty-input {
  width: 60px;
  padding: 4px 6px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  text-align: center;
  background: #f9fafb;
}

.scqs-add-to-cart-btn {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 7px 10px;
  background: linear-gradient(135deg, #f97373, #f97316);
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 10px 20px rgba(248, 113, 113, 0.35);
  white-space: nowrap;
}

.scqs-add-to-cart-btn::before {
  content: "🧵";
  font-size: 14px;
}

.scqs-add-to-cart-btn.scqs-btn-loading {
  opacity: .7;
}

.scqs-add-to-cart-btn:hover {
  filter: brightness(1.03);
}

/* MOBILE */
@media (max-width: 640px) {
.scqs-product-body {
    padding: 8px 10px 10px;
  }
    .scqs-shop-wrapper .scqs-product-title {
    font-size: 14px !important;
    min-height: auto;
  }

  .scqs-product-title {
    font-size: 16px;
    min-height: auto;
  }

  .scqs-product-price {
    font-size: 13px;
  }
  .scqs-product-actions {
    gap: 6px;
  }

  .scqs-qty-input {
    width: 48px;
    padding: 3px 5px;
    font-size: 12px;
  }

  .scqs-add-to-cart-btn {
    padding: 6px 8px;
    font-size: 11px;
    gap: 4px;
  }

  .scqs-add-to-cart-btn::before {
    font-size: 13px;
  }
}

/* Fix symbole bizarre sur le bouton Voir Panier */
.scqs-cartbar-button::before {
  content: "";
}
