/**
 * CSS page produit - SuissePliage
 * /themes/classic/assets/css/custom-product-page.css
 */

/* ============================================ */
/* LAYOUT PRINCIPAL : sidebar + contenu         */
/* ============================================ */

.sp-product-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 15px;
}

/* ============================================ */
/* SIDEBAR GAUCHE                               */
/* ============================================ */

.sp-product-sidebar {
  min-width: 0;
}

.promo-banner-sidebar {
  margin-bottom: 16px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.promo-banner-sidebar img {
  width: 100%;
  height: auto;
  display: block;
}

.sidebar-categories-menu {
  border: 1px solid #d8dce2;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.sidebar-title {
  background: #1a2e44;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  padding: 12px 16px;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-item {
  border-bottom: 1px solid #d8dce2;
}

.category-item:last-child {
  border-bottom: none;
}

.category-item a {
  display: block;
  padding: 10px 16px;
  color: #2c3e50;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s, color .15s, padding-left .15s;
}

.category-item a:hover {
  background: #f5f6f8;
  color: #e8871a;
  padding-left: 22px;
}

.category-item a.active {
  background: #1a2e44;
  color: #fff;
}

.sidebar-cta-block {
  background: linear-gradient(135deg, #1a2e44 0%, #243d5a 100%);
  color: #fff;
  border-radius: 4px;
  padding: 20px;
  border-top: 3px solid #e8871a;
}

.cta-title-sidebar {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  color: #fff;
  line-height: 1.3;
}

.cta-text-sidebar {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
  color: #9ab0c8;
}

.cta-features-sidebar {
  margin-bottom: 16px;
}

.cta-features-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cta-features-sidebar li {
  padding: 4px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
}

.btn-configurator-sidebar {
  display: block;
  background: #e8871a;
  color: #fff !important;
  text-align: center;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: background .2s, transform .2s;
}

.btn-configurator-sidebar:hover {
  background: #d07810;
  transform: translateY(-2px);
  color: #fff !important;
}

/* ============================================ */
/* ZONE PRODUIT PRINCIPALE                      */
/* ============================================ */

.sp-product-main {
  min-width: 0;
}

/* Deux colonnes image | infos */
.sp-product-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.sp-product-images {
  min-width: 0;
}

.sp-product-info {
  min-width: 0;
}

/* ============================================ */
/* STYLES PRODUIT                               */
/* ============================================ */

.page-heading-product {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #1a2e44;
  letter-spacing: .5px;
  line-height: 1.2;
}

.product-prices .current-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #1a2e44;
}

.product-add-to-cart .add-to-cart {
  background: #e8871a !important;
  border-color: #e8871a !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  padding: 12px 30px !important;
  transition: background .2s, transform .2s !important;
  border-radius: 4px !important;
}

.product-add-to-cart .add-to-cart:hover {
  background: #d07810 !important;
  border-color: #d07810 !important;
  transform: translateY(-2px) !important;
}

.product-cover img {
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.line {
  height: 1px;
  background: #d8dce2;
  margin: 16px 0;
}

/* ============================================ */
/* MINIATURES PRODUIT - scroll horizontal       */
/* ============================================ */

.js-qv-mask.mask {
  max-height: none !important;
  overflow: visible !important;
}

.product-images.js-qv-product-images {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 8px !important;
  padding-bottom: 4px !important;
  scrollbar-width: thin !important;
}

.thumb-container.js-thumb-container {
  flex: 0 0 auto !important;
}

/* ============================================ */
/* ONGLETS                                      */
/* ============================================ */

.sp-product-tabs {
  margin-bottom: 32px;
}

.nav-tabs {
  border-bottom: 2px solid #1a2e44 !important;
  margin-bottom: 0 !important;
}

.nav-tabs .nav-link {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #6b7a8d !important;
  padding: 10px 20px !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  transition: color .2s !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
}

.nav-tabs .nav-link:hover {
  color: #e8871a !important;
  border-bottom-color: #e8871a !important;
}

.nav-tabs .nav-link.active {
  color: #1a2e44 !important;
  border-bottom-color: #e8871a !important;
  background: transparent !important;
}

.tab-content {
  padding: 24px !important;
  background: #f5f6f8 !important;
  border-radius: 0 0 4px 4px !important;
}

.product-description {
  font-size: 14px;
  line-height: 1.8;
  color: #2c3e50;
}

/* ============================================ */
/* PRODUITS SIMILAIRES                          */
/* ============================================ */

.product-accessories {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid #1a2e44;
}

.products-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: #1a2e44;
  letter-spacing: 1px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.products-section-title::before {
  content: '';
  display: block;
  width: 5px;
  height: 24px;
  background: #e8871a;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */

@media (max-width: 991px) {
  .sp-product-layout {
    grid-template-columns: 1fr;
  }
  .sp-product-sidebar {
    order: 2;
    margin-top: 24px;
  }
  .sp-product-main {
    order: 1;
  }
}

@media (max-width: 767px) {
  .sp-product-layout {
    padding: 8px !important;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .sp-product-top {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .page-heading-product {
    font-size: 22px;
  }
  .nav-tabs .nav-link {
    font-size: 13px !important;
    padding: 8px 12px !important;
  }
  /* Description pleine largeur */
  .sp-product-tabs {
    width: 90vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .tab-content {
    padding: 16px !important;
    border-radius: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .product-description {
    font-size: 14px;
    line-height: 1.7;
    width: 100% !important;
  }
  /* Bouton panier centré pleine largeur */
  .product-add-to-cart .add-to-cart {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 14px 20px !important;
    box-sizing: border-box !important;
  }
  .product-quantity {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .product-quantity .qty,
  .product-quantity .add {
    width: 100% !important;
  }
  /* Miniatures mobile pleine largeur */
  .js-qv-mask.mask {
    width: 100% !important;
  }
  .product-images.js-qv-product-images {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}