/* ========================================
   PRODUCT PAGE - SEO & ACCESSIBILITY STYLES
   ======================================== */

/* Screen reader only - Accessible mais invisible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible pour l'accessibilité clavier */
a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* ========================================
   BREADCRUMB AMÉLIORÉ
   ======================================== */
.breadcrumb-nav {
  margin-bottom: 2rem;
}

.breadcrumb {
  background-color: transparent;
  padding: 0.75rem 0;
  margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  padding-right: 1.1rem;
  color: #999;
}

/* ========================================
   PRODUCT HEADER
   ======================================== */
.product-header {
  margin-bottom: 1.5rem;
}

.product-title {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: #333;
}

@media (max-width: 767px) {
  .product-title {
    font-size: 1.5rem;
  }
}

/* ========================================
   PRICE BOX AMÉLIORÉE
   ======================================== */
.price-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  padding: 1rem 0;
}

.product-price {
	font-size: 3rem !important;
	font-weight: 700;
	color: #c96 !important;
}

.old-price {
  font-size: 1.25rem;
  color: #999;
  text-decoration: line-through;
}

.price-tax-info {
	font-size: 0.875rem;
	color: #666;
	/* margin-left: 0.5rem; */
	margin-top: -15px;
}

.products-slider .price-box .product-price, .product-widgets-container .price-box .product-price {
	font-size: 2.2rem !important;
	font-weight: 700;
	color: #222529 !important;
}
/* ========================================
   PRODUCT INFO LIST
   ======================================== */
.single-info-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  font-size: 1.4rem;
  line-height: 1.5;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.info-item {
  display: flex;
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item dt {
  flex: 0 0 140px;
  font-weight: 400;
  color: #666;
}

.info-item dd {
  flex: 1;
  margin: 0;
  font-weight: 500;
  color: #333;
}

/* ========================================
   STOCK STATUS
   ======================================== */
.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.stock-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.stock-status.in-stock {
  color: #28a745;
  background-color: #d4edda;
}

.stock-status.in-stock::before {
  background-color: #28a745;
}

.stock-status.out-stock {
  color: #dc3545;
  background-color: #f8d7da;
}

.stock-status.out-stock::before {
  background-color: #dc3545;
}

/* ========================================
   PRODUCT IMAGE
   ======================================== */

.product-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;   /* carré moderne */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.product-item .product-single-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.product-item .zoomContainer {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none; /* évite conflits souris */
}
.product-item .zoomWindow {
    width: 100% !important;
    height: 100% !important;
}
@supports not (aspect-ratio: 1 / 1) {

    .product-item {
        height: 0;
        padding-top: 100%; /* carré */
    }

    .product-item .product-single-image {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 100%;
        max-height: 100%;
    }

    .product-item .zoomContainer {
        top: 0;
        left: 0;
    }
}

.prod-thumbnail .owl-dot {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;  /* carré */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    cursor: pointer;
}
.prod-thumbnail .owl-dot img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.prod-thumbnail .owl-item {
    display: flex;
    align-items: center;
}
.prod-thumbnail .owl-dot.active {
    outline: 2px solid #000;
    outline-offset: -2px;
}
.prod-thumbnail .owl-dot.active img, .prod-thumbnail img:hover {
	border: 0px solid #21293c;
}
/* ========================================
   PRODUCT ACTION FORM
   ======================================== */
.add-to-cart-form {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.product-single-details .product-single-qty .form-control {
	height: 48px !important;
}

.product-single-qty {
  flex: 0 0 auto;
}

.product-single-qty select {
  min-width: 80px;
  margin-top: -14px;
}

.add-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.add-cart.added-to-cart {
  background-color: #28a745;
  border-color: #28a745;
}

/* ========================================
   OUT OF STOCK NOTICE
   ======================================== */
.out-of-stock-notice {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  margin: 2rem 0;
}

.out-of-stock-notice p {
  margin-bottom: 1rem;
}

/* ========================================
   PRODUCT TABS
   ======================================== */
.product-single-tabs {
  margin: 3rem 0;
}

.product-single-tabs .nav-tabs {
  border-bottom: 2px solid #dee2e6;
}

.product-single-tabs .nav-link {
  border: none;
  background: none;
  padding: 1rem 1.5rem;
  color: #666;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.product-single-tabs .nav-link:hover {
  color: #333;
  border-color: #ddd;
  cursor: pointer;
}

.product-single-tabs .nav-link.active {
  color: #c96;
  border-color: #c96;
  background: none;
}

.tab-content {
  padding: 2rem 0;
}

.product-desc-content {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.product-desc-content h2,
.product-desc-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.product-desc-content p {
  font-family: Poppins, sans-serif;
  font-size: 14px;
  color: var(--grey-color);
}

.product-desc-content ul,
.product-desc-content ol {
  margin: 1rem 0;
  padding-left: 4.5rem;
}

.product-desc-content li {
  margin-bottom: 0.5rem;
  font-family: Poppins, sans-serif;
}
.product-desc-content li::before {
	left: 2rem;
}
/* ========================================
   SPECIFICATIONS TABLE
   ======================================== */
.table-specs {
  max-width: 600px;
}

.table-specs th {
  width: 40%;
  font-weight: 500;
  color: #666;
  background-color: #f8f9fa;
}

.table-specs td {
  font-weight: 600;
  color: #333;
}

/* ========================================
   PRODUCT NOT FOUND
   ======================================== */
.product-not-found {
  padding: 4rem 2rem;
  text-align: center;
}

.product-not-found h1 {
  font-size: 2rem;
  color: #666;
}

.product-not-found p {
  font-size: 1.125rem;
  margin-top: 1rem;
}

/* ========================================
   CART MESSAGE
   ======================================== */
.cart-message {
  padding: 1rem 1.5rem;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  margin-bottom: 2rem;
  color: #155724;
}

.single-cart-notice {
  font-weight: 600;
}

/* ========================================
   LABEL GROUP (BADGES)
   ======================================== */
.label-group {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-label {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.product-label.label-sale {
  background-color: #dc3545;
  color: #fff;
}

.product-label.label-hot {
  background-color: #ff6b6b;
  color: #fff;
}

.product-label.label-new {
  background-color: #28a745;
  color: #fff;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 991px) {
  .product-single-gallery {
    margin-bottom: 2rem;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .product-price {
    font-size: 1.75rem;
  }
}

@media (max-width: 767px) {
  .add-to-cart-form {
    flex-direction: column;
    width: 100%;
  }

  .product-single-qty,
  .add-cart,
  .view-cart {
    width: 100%;
  }

  .info-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .info-item dt {
    flex: none;
  }

  .product-single-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .product-action,
  .product-single-share,
  .cart-message,
  .label-group,
  nav,
  header,
  footer,
  .product-widgets-container {
    display: none !important;
  }

  .product-title {
    font-size: 1.5rem;
    color: #000;
  }

  .product-price {
    color: #000;
  }
}