/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.product-stock {
  display: flex;
  align-items: center;
  gap: 4px;
}

.in-stock:before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url(assets/img/instock-icon.svg) no-repeat center center;
  border-radius: 50%;
}

.out-of-stock:before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url(assets/img/outofstock-icon.svg) no-repeat center center;
  background-size: contain;
  border-radius: 50%;
}

/* Bloc Ajout au panier custom */
/* Variations produit */
.cb-variations {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.cb-variation-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cb-variation-label {
  flex: 0 0 auto;
  min-width: 72px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
}

.cb-variation-select-wrap {
  flex: 1;
  position: relative;
}

.cb-variation-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #666;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.cb-variation-select {
  width: 100%;
  padding: 9px 38px 9px 13px;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
  font-size: 13px;
  font-family: inherit;
  color: #222;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.cb-variation-select:hover {
  border-color: #aaa;
  background: #fff;
}

.cb-variation-select:focus {
  outline: none;
  border-color: #1a1a1a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.07);
}

.cb-variation-select option[value=""] {
  color: #999;
}

.cb-add-to-cart-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.cb-atc-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cb-atc-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none !important;
  background: #f4f4f4 !important;
  border-radius: 6px;
  cursor: pointer;
  color: #000 !important;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.cb-atc-btn-icon:hover {
  background: #e8e8e8;
}

.cb-wishlist-btn.cb-wishlisted svg {
  fill: #e24a4a;
  stroke: #e24a4a;
}

.cb-qty-selector {
  display: flex;
  align-items: center;
  flex: 1;
  background: #f4f4f4;
  border-radius: 6px;
  overflow: hidden;
}

.cb-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none !important;
  background: transparent;
  font-size: 20px;
  color: #000 !important;
  cursor: pointer;
  flex-shrink: 0;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.cb-qty-btn:hover,
.cb-qty-btn:focus {
  color: #000;
}

.cb-qty-input {
  flex: 1;
  text-align: center;
  border: none !important;
  outline: none;
  font-size: 16px;
  font-weight: 500;
  background: transparent;
  appearance: textfield;
  -moz-appearance: textfield;
  min-width: 0;
}

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

.cb-atc-button {
  width: 100% !important;
  padding: 16px 24px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  color: #fff !important;
}

.cb-atc-button:hover,
.cb-atc-button:focus {
  background: #cfae44 !important;
}

.cb-atc-button.cb-atc-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Caractéristiques produit */
.cb-product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.cb-feat-item {
  position: relative;
  display: flex;
  align-items: center;
  cursor: default;
}

.cb-feat-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cb-feat-active {
  color: #333;
}

.cb-feat-inactive {
  color: #aaa;
}

.cb-feat-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 40;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  pointer-events: none;
}

.cb-feat-item::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  pointer-events: none;
}

.cb-feat-item:hover::after,
.cb-feat-item:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Caractéristiques produit (specs) */
.cb-product-specs {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cb-product-specs li {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

.cb-product-specs li strong {
  font-weight: 600;
}

/* Accordéon produit */
.cb-accordion {
  width: 100%;
}

.cb-accordion-item {
  border-bottom: 1px solid #d0d0d0;
}

.cb-accordion-header {
  background: transparent !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  border: none !important;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000 !important;
}

.cb-accordion-icon {
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

.cb-accordion-body {
  overflow: hidden;
  height: 0;
  transition: height 0.35s ease;
}

.cb-accordion-body-inner {
  padding: 0 0 16px;
}

.cb-accordion-body-inner p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #000;
}

@media (max-width: 800px) {
  .cb-search-sidebar {
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 2rem;
  }
}

.cb-product-price-tva {
  font-size: 22px;
}

.cb-product-price-tva-tax {
  font-size: 14px;
  color: #666;
}

/* [product_sticky_add_to_cart] : prix + bouton seuls (pas de barre pleine largeur) */
.cb-sticky-atc {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 9997;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.cb-sticky-atc-price {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.cb-sticky-atc-btn {
  width: auto;
  border: none;
  border-radius: 6px;
  background: #d4a843;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 14px 18px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .cb-sticky-atc-price {
    font-size: 16px;
  }
  .cb-sticky-atc-btn {
    padding: 12px 14px;
    font-size: 13px;
  }
}

/* ── Galerie produit : diapositive vidéo ───────────────────────────────────── */

/* La vidéo remplit son conteneur dans la galerie */
.cb-video-slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #000;
}

.cb-product-video {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  display: block;
}

/* Vignette miniature : affiche l'image produit avec une icône play superposée */
.cb-gallery-has-video .flex-control-thumbs li:last-child {
  position: relative;
}

.cb-gallery-has-video .flex-control-thumbs li:last-child::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='16' fill='rgba(0,0,0,0.52)'/%3E%3Cpolygon points='14,11 14,25 27,18' fill='white'/%3E%3C/svg%3E")
    center / 36px 36px no-repeat;
  pointer-events: none;
}

.cb-gallery-has-video .flex-control-thumbs li:last-child img {
  object-fit: cover;
}