/* Custom styles for Yamparts module */

/* ==============================
   MENU HEADER (équivalent Tailwind)
   ============================== */
.header-secondary-menu { background: #ffffff; }
.header-secondary-menu .menu-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem; /* py-4 */
  display: flex;
  justify-content: center;
  gap: 3rem; /* gap-12 */
}
.header-secondary-menu .menu-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem; /* gap-3 */
  padding: 0.75rem 1.5rem; /* px-6 py-3 */
  border-radius: 0.5rem; /* rounded-lg */
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.header-secondary-menu .menu-button:hover { background-color: #eff6ff; }
.header-secondary-menu .menu-label {
  font-weight: 600; /* font-semibold */
  color: #374151; /* text-gray-700 */
}
.header-secondary-menu .menu-button:hover .menu-label { color: #2563eb; /* text-blue-600 */ }
.header-secondary-menu .icon-blue { color: #2563eb; }

/* ==============================
   Header mobile adjustments
   ============================== */
@media (max-width: 767px) {
  .header-secondary-menu { display: none; }

  .custom-gradient { padding-bottom: 2rem; }

  .custom-gradient .motorcycle-track {
    bottom: -53px;
  }

  .custom-gradient .header-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .custom-gradient .header-topline > div:first-child {
    width: 100%;
  }

  .custom-gradient .header-topline #v0-topline-actions {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .mobile-header {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .mobile-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
  }

  .mobile-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }

  .mobile-menu-trigger:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
  }

  .mobile-menu-trigger .material-icons {
    font-size: 28px;
    line-height: 1;
  }

  .mobile-header-logo {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .mobile-header-logo img,
  .mobile-header-logo svg {
    max-height: 52px;
    width: auto;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .mobile-header-actions #_mobile_user_info,
  .mobile-header-actions #_mobile_cart {
    display: flex;
    align-items: center;
    position: relative;
  }

  .mobile-header-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    position: relative;
  }

  .mobile-header-actions svg {
    width: 26px;
    height: 26px;
    color: #ffffff;
  }

  .mobile-header-actions span {
    display: none !important;
  }

  .mobile-header-actions .cart-products-count {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -16px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9999px;
    background: #f97316;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
  }

  body .custom-gradient .h-4{
    height: 1.2rem;
  }

  .mobile-header .js-mobile-menu {
    margin-top: 1rem;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.75rem;
    backdrop-filter: blur(4px);
  }

  .mobile-primary-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .mobile-primary-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

.mobile-primary-link:hover,
.mobile-primary-link:focus {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* ==============================
   Trouver votre moto - Résultats
   ============================== */
.yamparts-findmoto-results .alert-info {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.yamparts-findmoto-results .findmoto-empty-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.yamparts-findmoto-results .btn.btn-link {
  background: transparent;
  border: none;
  color: #2563eb;
  text-decoration: underline;
  padding: 0.75rem 1.25rem;
}

.finition-placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.75));
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(148, 163, 184, 0.4);
}

  .mobile-primary-icon {
    color: #60a5fa;
    width: 24px;
    height: 24px;
  }

  .js-mobile-menu .js-top-menu {
    margin-bottom: 1.25rem;
  }

  .js-mobile-menu .js-top-menu-bottom {
    display: grid;
    gap: 0.75rem;
  }

  .main-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .main-header-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.5rem !important;
  }

  .footer-container .wrapper, .footer-container .footer-links  {
        padding-right: 0 !important;
        padding-left: 0 !important;
  }

  .footer-container .footer-links{
    margin-bottom: 10px;
  }

  body .footer-container{
    padding-top: 1rem;
  }

  .footer-container #paiementfooter {
    padding:0.625rem;
  }

  .header-search-block,
  .header-vin-block {
    width: 100%;
  }

  .header-search-block label {
    margin-bottom: 0.5rem;
  }

  .header-search-block .search-widgets,
  .header-search-block .search-widgets form,
  .header-search-block .search-widgets .js-search-input {
    width: 100%;
    max-width: 100%;
  }

  .header-search-block .search-widgets .js-search-input {
    box-sizing: border-box;
  }

  .header-vin-block > .bg-gradient-to-r {
    width: 100%;
  }

  .header-vin-block form,
  .header-vin-block input[type="text"],
  .header-vin-block input[type="search"] {
    width: 100%;
  }
}

h1{
    text-transform: uppercase;
}

/* Footer */

.footer-container {
  background-color: #0F172B;
  color: #d1d5dc;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-container .container > .row {
  align-items: flex-start;
}

.footer-container a,
.footer-container a:hover,
.footer-container p,
.footer-container li,
.footer-container span,
.footer-container label {
  color: #d1d5dc;
}

.footer-container .block-contact .block-contact-title,
.footer-container .block-contact .navbar-toggler .material-icons,
.footer-container .linklist .blockcms-title a,
.footer-container #block_myaccount_infos .myaccount-title a,
.footer-container .footer-links__block .h3 {
  color: #d1d5dc;
}

.footer-container a:hover {
  color: #ffffff;
}

.footer-links,
.footer-container .block_newsletter,
.footer-container .block-contact {
  margin-bottom: 2rem;
}

.footer-links__block + .footer-links__block {
  margin-top: 2rem;
}

.footer-links__block ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-links__block li + li {
  margin-top: 0.5rem;
}

.footer-container .block-contact-title,
.footer-container .newsletter-title,
.footer-container .footer-links__block .h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-container .block_newsletter .newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-container .block_newsletter .newsletter-form__field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-container .block_newsletter input[type="email"] {
  flex: 1 1 160px;
  min-width: 0;
  padding: 0.625rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(209, 213, 220, 0.4);
  background-color: rgba(209, 213, 220, 0.08);
  color: #d1d5dc;
}

.footer-container .block_newsletter input[type="email"]::placeholder {
  color: #99a1af;
}

.footer-container .block_newsletter .btn {
  background-color: #2563eb;
  border-color: #2563eb;
  padding: 0.625rem 1.5rem;
  font-weight: 600;
}

.footer-container .block_newsletter .btn:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.footer-container .block_newsletter .newsletter-form__messages p {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: #99a1af;
}

.footer-container #paiementfooter {
  margin-top: 2rem;
}

.footer-container #paiementfooter p {
  margin-bottom: 0.5rem;
}

.footer-container #paiementfooter .logos-payment {
  max-width: 50%;
  height: auto;
}

.footer-subtext {
  color: #99a1af !important;
  margin: 1.5rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid #364153;
  font-size: 14px;;
}

#footer {
    /* margin-top: 50px; */
    padding-top: 0;
}

#wrapper
{
    padding-bottom: 50px;
    padding-top: 50px;;
}


/* ==============================
   HOME HELP BLOCK (équivalent Tailwind)
   ============================== */
.home-help-block {
  background-color: #eff6ff; /* bg-blue-50 */
  margin-top: 0; /* mt-16 */
  padding: 2rem; /* p-8 */
  border-radius: 0.75rem; /* rounded-xl */
}
.home-help-inner {
  max-width: 42rem; /* max-w-2xl */
  margin-left: auto; /* mx-auto */
  margin-right: auto; /* mx-auto */
}
.home-help-title {
  font-size: 1.25rem; /* text-xl */
  font-weight: 600; /* font-semibold */
  color: #1f2937; /* text-gray-800 */
  margin-bottom: 1rem; /* mb-4 */
}
.home-help-text {
  color: #4b5563; /* text-gray-600 */
  margin-bottom: 1.5rem; /* mb-6 */
  font-size: 16px;
  line-height: 24px;
}
.home-help-button {
  display: inline-flex; /* inline-flex */
  align-items: center; /* items-center */
  justify-content: center; /* justify-center */
  gap: 0.5rem; /* gap-2 */
  white-space: nowrap; /* whitespace-nowrap */
  border-radius: 0.375rem; /* rounded-md */
  font-weight: 500; /* font-medium */
  transition: all .2s ease; /* transition-all */
  box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); /* shadow-xs */
  height: 2.25rem; /* h-9 */
  padding: 0.75rem 2rem; /* px-8 py-3 */
  font-size: 1.125rem; /* text-lg */
  text-decoration: none; /* button look */
  background-color: #2563eb; /* bg-blue-600 */
  color: #fff; /* text-white */
}
.home-help-button:hover {
  background-color: #1d4ed8; /* hover:bg-blue-700 */
}

/* ==============================
   HOME REASSURANCE BLOCK
   ============================== */
.home-reassurance {
  margin-top: 4rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.home-reassurance__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1560px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .home-reassurance__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.home-reassurance__item {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.08);


}
.home-reassurance__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #dbeafe;
  color: #0040C9;
}
.home-reassurance__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}
.home-reassurance__text {
  font-size: 0.95rem;
  color: #4b5563;
  margin: 0;
}

/* Couleur des icônes du module de réassurance */
.blockreassurance .block-icon .replaced-svg,
.blockreassurance_product .block-icon .replaced-svg,
#block-reassurance .replaced-svg {
  color: #0040C9;
}

.blockreassurance .block-icon .replaced-svg path,
.blockreassurance_product .block-icon .replaced-svg path,
#block-reassurance .replaced-svg path,
.blockreassurance .block-icon .replaced-svg [fill],
.blockreassurance_product .block-icon .replaced-svg [fill],
#block-reassurance .replaced-svg [fill] {
  fill: #0040C9 !important;
  stroke: #0040C9 !important;
}

/* ==============================
   BLOCK CART MODAL
   ============================== */
#blockcart-modal .modal-dialog {
  max-width: 1170px;
}

#blockcart-modal .cart-content-btn .btn-secondary {
  color: #ffffff;
}

#blockcart-modal .cart-content-btn .btn-secondary:hover {
  color: #ffffff;
}

#blockcart-modal .product-name {
  color: #1f2937;
}

#blockcart-modal .product-price{
    text-align: left;
}

/* Styles pour les boutons de quantité dans les vues éclatées */
.vue-eclatee-product-item .product-add-to-cart {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vue-eclatee-product-item .product-quantity {
  display: flex;
  align-items: center;
  gap: 5px;
}

.vue-eclatee-product-item .qty {
  position: relative;
}

/* Styles pour les boutons TouchSpin */
.vue-eclatee-product-item .bootstrap-touchspin .input-group-btn-vertical {
  position: relative;
  white-space: nowrap;
  width: 1%;
  vertical-align: middle;
  display: table-cell;
}

.vue-eclatee-product-item .bootstrap-touchspin .input-group-btn-vertical > .btn {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  padding: 4px 8px;
  margin-left: -1px;
  position: relative;
  font-size: 12px;
  line-height: 1;
}

.vue-eclatee-product-item .bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-up {
  border-radius: 0;
  border-top-right-radius: 4px;
}

.vue-eclatee-product-item .bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-down {
  margin-top: -2px;
  border-radius: 0;
  border-bottom-right-radius: 4px;
}

.vue-eclatee-product-item .bootstrap-touchspin input[type="number"] {
  text-align: center;
  width: 60px;
  padding: 5px;
  border-right: none;
}

.vue-eclatee-product-item .add {
  margin-left: 10px;
}

/* Product availability alert */
.product-not-available-message {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  border: 2px solid #f5c6cb;
  background-color: #f8d7da;
  color: #7f1d1d;
  font-weight: 600;
  text-align: center;
}

.vue-eclatee-product-item .add-to-cart {
  padding: 8px 15px;
  font-size: 14px;
  white-space: nowrap;
}

/* Style H1 par défaut - inspiré de la page d'accueil */
h1.text-4xl,
.text-4xl h1,
.yamparts-cylindrees-section .text-4xl,
.text-center .text-4xl, h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.font-bold {
    font-weight: 700;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-600 {
    color: #4b5563;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-center {
    text-align: center;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Cylindrées Section Styles */
.yamparts-cylindrees-section {
    padding: 0;
    padding-bottom: 60px;
}

/* Text Center */
.yamparts-cylindrees-section .text-center {
    text-align: center;
}

/* Margin Bottom */
.yamparts-cylindrees-section .mb-12 {
    margin-bottom: 3rem;
}

.yamparts-cylindrees-section .mb-4 {
    margin-bottom: 1rem;
}

/* Typography */
.yamparts-cylindrees-section .text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.yamparts-cylindrees-section .text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.yamparts-cylindrees-section .font-bold {
    font-weight: 700;
}

/* Text Colors */
.yamparts-cylindrees-section .text-gray-800 {
    color: #1f2937;
}

.yamparts-cylindrees-section .text-gray-600 {
    color: #4b5563;
}

/* Container */
.yamparts-cylindrees-section .max-w-4xl {
    max-width: 56rem;
}

.yamparts-cylindrees-section .mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.yamparts-cylindrees-section .space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* Flex Layout */
.yamparts-cylindrees-section .flex {
    display: flex;
}

.yamparts-cylindrees-section .justify-center {
    justify-content: center;
}

.yamparts-cylindrees-section .gap-4 {
    gap: 1rem;
}

.yamparts-cylindrees-section .flex-wrap {
    flex-wrap: wrap;
}

#product .product-price {
  text-align: left;
}

/* Cylindrée Button Styles - Equivalent to Tailwind classes */
.yamparts-cylindrees-section .cylindree-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    outline: none;
    background-color: #ffffff;
    border: 2px solid #bfdbfe; /* border-blue-200 */
    border-radius: 0.375rem; /* rounded-md */
    padding: 1.5rem; /* px-6 has-[>svg]:px-4 */
    min-width: 120px;
    height: 3.5rem; /* h-14 */
    font-size: 1.125rem; /* text-lg */
    line-height: 1.75rem;
    font-weight: 700; /* font-bold */
    color: oklch(0.145 0 0);
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* transition-all duration-200 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-xs */
}

/* Hover Effects */
.yamparts-cylindrees-section .cylindree-btn:hover {
    border-color: #3b82f6; /* hover:border-blue-500 */
    background-color: #eff6ff; /* hover:bg-blue-50 */
    color: #1d4ed8; /* hover:text-blue-700 */
    transform: scale(1.05); /* hover:scale-105 */
}

/* Focus Effects */
.yamparts-cylindrees-section .cylindree-btn:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Disabled State */
.yamparts-cylindrees-section .cylindree-btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 640px) {
    .yamparts-cylindrees-section {
        padding: 2rem 0.5rem;
    }
    
    .yamparts-cylindrees-section .text-4xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .yamparts-cylindrees-section .cylindree-btn {
        min-width: 120px;
        height: 3.5rem;
        font-size: 1.125rem;
        padding: 1.5rem;
    }
    
    .yamparts-cylindrees-section .gap-4 {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .yamparts-cylindrees-section .max-w-4xl {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .yamparts-cylindrees-section .cylindree-btn {
        min-width: 120px;
        height: 3.5rem;
        font-size: 1.125rem;
        padding: 1.5rem;
    }
}

/* Styles pour la page de choix de modèle */
.cylindree-info {
    font-size: 1.25rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

/* Section des modèles - même style que les cylindrées */
.yamparts-modeles-section {
    padding: 2rem 1rem;
}

/* Réutilisation des styles de cylindrées pour les modèles */
.yamparts-modeles-section .max-w-4xl {
    max-width: 56rem;
}

.yamparts-modeles-section .mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.yamparts-modeles-section .space-y-6 > * + * {
    margin-top: 1.5rem;
}

.yamparts-modeles-section .flex {
    display: flex;
}

.yamparts-modeles-section .justify-center {
    justify-content: center;
}

.yamparts-modeles-section .gap-4 {
    gap: 1rem;
}

.yamparts-modeles-section .flex-wrap {
    flex-wrap: wrap;
}

/* Boutons modèle - identiques aux boutons cylindrée */
.yamparts-modeles-section .modele-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    outline: none;
    background-color: #ffffff;
    border: 2px solid #bfdbfe; /* border-blue-200 */
    border-radius: 0.375rem; /* rounded-md */
    padding: 1.5rem; /* px-6 */
    min-width: 120px; /* un peu plus large pour les noms de modèles */
    height: 3.5rem; /* h-14 */
    font-size: 1.125rem; /* text-lg */
    line-height: 1.75rem;
    font-weight: 700; /* font-bold */
    color: oklch(0.145 0 0);
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* transition-all duration-200 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-xs */
    text-transform: uppercase;
}

/* Hover Effects pour modèles */
.yamparts-modeles-section .modele-btn:hover {
    border-color: #3b82f6; /* hover:border-blue-500 */
    background-color: #eff6ff; /* hover:bg-blue-50 */
    color: #1d4ed8; /* hover:text-blue-700 */
    transform: scale(1.05); /* hover:scale-105 */
}

/* Focus Effects pour modèles */
.yamparts-modeles-section .modele-btn:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Disabled State pour modèles */
.yamparts-modeles-section .modele-btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Message aucun modèle trouvé */
.no-models-found {
    text-align: center;
    margin: 3rem 0;
}

.no-models-found .alert {
    max-width: 500px;
    margin: 0 auto;
}

/* Navigation */
.yamparts-navigation {
    text-align: center;
    margin-top: 3rem;
}

.yamparts-navigation .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .yamparts-choix-modele-header .page-title {
        font-size: 2rem;
    }
    
    .yamparts-modeles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modele-image {
        height: 150px;
    }
    
    .modele-info {
        padding: 1rem;
    }
}

/* Alignement gauche du texte et du placeholder dans le champ de recherche du header */
.custom-gradient input[type="text"][name="s"] {
  text-align: left;
  padding-left: 12px !important; /* aligner visuellement à gauche */
  border: none !important; /* retire l'effet de bordure noire */
  outline: none;
}

/* ==============================
   Produit: aligner prix et TTC
   ==============================
   Objectif: sur la page produit, afficher le prix et la mention
   taxes (ex: "TTC") sur la même ligne, alignés sur la ligne de base.
   On limite la portée au conteneur #product pour éviter tout effet
   de bord sur les listes ou autres emplacements.
*/
/* Remettre le conteneur par défaut pour ne pas créer d'espacement parasite */
#product .product-prices { display: block; }

/* Masquer le libellé taxes séparé pour éviter le grand espace */
#product .product-prices .tax-shipping-delivery-label { display: none; }

/* Coller la mention TTC juste après la valeur du prix */
#product .product-prices .current-price .current-price-value::after {
  content: "TTC"; /* pas d'espace avant TTC comme demandé */
  font-size: .875rem;
  font-weight: 600;
  color: #6b7280; /* gris neutre, ajustable si besoin */
  margin-left: 5px; /* aucun espace */
}

.current-price-value{
    font-size: 2rem;
}

/* Ajouter shadow-xs aux champs de recherche du header */
.custom-gradient input[type="search"] {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.custom-gradient input[type="text"][name="s"]::placeholder {
  text-align: left;
}
/* Compatibilité navigateurs */
.custom-gradient input[type="text"][name="s"]::-webkit-input-placeholder { text-align: left; }
.custom-gradient input[type="text"][name="s"]::-moz-placeholder { text-align: left; }
.custom-gradient input[type="text"][name="s"]:-ms-input-placeholder { text-align: left; }

/* Classe shadow-xs en CSS standard */
.shadow-xs {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* ========================================
   STYLES POUR LA PAGE DE CHOIX D'ANNÉE
   ======================================== */

/* Section des années - même style que les cylindrées et modèles */
.yamparts-annees-section {
    padding: 2rem 1rem;
}

/* Réutilisation des styles de base */
.yamparts-annees-section .max-w-4xl {
    max-width: 56rem;
}

.yamparts-annees-section .mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.yamparts-annees-section .space-y-6 > * + * {
    margin-top: 1.5rem;
}

.yamparts-annees-section .flex {
    display: flex;
}

.yamparts-annees-section .justify-center {
    justify-content: center;
}

.yamparts-annees-section .gap-4 {
    gap: 1rem;
}

.yamparts-annees-section .flex-wrap {
    flex-wrap: wrap;
}

/* Boutons année - identiques aux boutons cylindrée et modèle */
.yamparts-annees-section .annee-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    outline: none;
    background-color: #ffffff;
    border: 2px solid #bfdbfe; /* border-blue-200 */
    border-radius: 0.375rem; /* rounded-md */
    padding: 1.5rem; /* px-6 */
    min-width: 100px; /* largeur adaptée aux années (4 chiffres) */
    height: 3.5rem; /* h-14 */
    font-size: 1.25rem; /* text-xl - un peu plus grand pour les années */
    line-height: 1.75rem;
    font-weight: 700; /* font-bold */
    color: oklch(0.145 0 0);
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* transition-all duration-200 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-xs */
    text-transform: uppercase;
}

/* Hover Effects pour années */
.yamparts-annees-section .annee-btn:hover {
    background-color: #3b82f6; /* hover:bg-blue-500 */
    color: #ffffff; /* hover:text-white */
    border-color: #3b82f6; /* hover:border-blue-500 */
    transform: translateY(-2px); /* hover:-translate-y-0.5 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* hover:shadow-lg */
}

/* Active state pour années */
.yamparts-annees-section .annee-btn:active {
    transform: translateY(0); /* active:translate-y-0 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* active:shadow-xs */
}

/* Message aucune année trouvée */
.no-years-found {
    text-align: center;
    margin: 3rem 0;
}

.no-years-found .alert {
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive pour les années */
@media (max-width: 768px) {
    .yamparts-annees-section .max-w-4xl {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .yamparts-annees-section .annee-btn {
        min-width: 120px;
        height: 3.5rem;
        font-size: 1.125rem;
        padding: 1.5rem;
    }
    
    .yamparts-annees-section .gap-4 {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .yamparts-annees-section .annee-btn {
        min-width: 120px;
        height: 3.5rem;
        font-size: 1.125rem;
        padding: 1.5rem;
    }
}

/* ========================================
   STYLES POUR LA PAGE DE CHOIX DE FINITION
   ======================================== */

/* Section des finitions */
.yamparts-finitions-section {
    padding: 2rem 1rem;
}

/* Grille de finitions - 3 colonnes responsive */
.yamparts-finitions-section .grid {
    display: grid;
    gap: 1.5rem;
}

.yamparts-finitions-section .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .yamparts-finitions-section .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .yamparts-finitions-section .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Carte de finition */
.finition-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.finition-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Image de la finition */
.finition-card .aspect-square {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: opacity 0.3s ease;
    height: 240px;
}

.finition-card .aspect-square img {
    width: 100%;
    object-fit: cover;
}

/* Lien cliquable sur l'image */
.finition-card .image-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: none;
    transition: opacity 0.3s ease;
    padding: 0;
}

.finition-card .image-link:hover .aspect-square {
    transition: scale 0.3s ease;
    scale: 1.05;

}

.finition-card .image-link .aspect-square {
    transition: scale 0.3s ease;
    border-radius: 0.5rem 0.5rem 0 0;
}

.finition-card a.image-link:hover {
    background: none;
}

.finition-card .image-link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Contenu sans image */
.finition-card .text-gray-400 {
    color: #9ca3af;
    text-align: center;
    background-color: #f3f4f6;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.finition-card .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* Icône SVG dans les cartes de finition */
.finition-card svg {
    width: 4rem;
    height: 4rem;
    margin-bottom: 0.5rem;
    color: currentColor;
}

/* Contenu de la carte */
.finition-card .p-4 {
    padding: 1rem;
}

/* Titre de la finition */
.finition-card h3 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

/* Informations du modèle */
.finition-card .mb-3 {
    margin-bottom: 0.75rem;
}

/* Informations supplémentaires */
.finition-card .border-t {
    border-top: 1px solid #e5e7eb;
}

.finition-card .pt-3 {
    padding-top: 0.75rem;
}

.finition-card .space-y-1 > * + * {
    margin-top: 0.25rem;
}

/* Labels */
.finition-card .font-medium {
    font-weight: 500;
}

/* Bouton de sélection */
.finition-card .mt-4 {
    margin-top: 1rem;
}

.finition-card .w-full {
    width: 100%;
}

.finition-card a {
    display: block;
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.finition-card a:hover {
    background-color: #1d4ed8;
}

/* Max-width pour la section */
.yamparts-finitions-section .max-w-6xl {
    max-width: 72rem;
}

.yamparts-finitions-section .mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Informations dans le header */
.moto-info, .cylindree-info, .year-info {
    font-size: 1.125rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

/* Titre de la page de finitions */
.yamparts-finitions-section h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Texte descriptif */
.yamparts-finitions-section .text-center p:not(.moto-info):not(.cylindree-info):not(.year-info) {
    color: #4b5563;
    font-size: 1.125rem;
    line-height: 1.75rem;
}

/* Message aucune finition trouvée */
.no-finitions-found {
    text-align: center;
    margin: 3rem 0;
}

.no-finitions-found .alert {
    max-width: 28rem;
    margin: 0 auto;
}

.no-finitions-found .alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem;
}

.no-finitions-found h3 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.no-finitions-found .mb-4 {
    margin-bottom: 1rem;
}

/* Navigation */
.yamparts-navigation {
    margin-top: 3rem;
}

.yamparts-navigation .flex {
    display: flex;
}

.yamparts-navigation .justify-center {
    justify-content: center;
}

.yamparts-navigation .gap-4 {
    gap: 1rem;
}

.yamparts-navigation .flex-wrap {
    flex-wrap: wrap;
}

/* Responsive pour les finitions */
@media (max-width: 768px) {

    #content-wrapper .container{
        padding: 0;
    }

   
    
    .yamparts-finitions-section {
        padding: 0;
    }

    .yamparts-finitions-section .grid {
        gap: 1rem;
    }

    .finition-card .p-4 {
        padding: 0.75rem;
    }

    .finition-card h3 {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .finition-card .text-sm {
        font-size: 0.75rem;
        line-height: 1rem;
    }

    .finition-card svg {
        width: 3rem;
        height: 3rem;
        margin-bottom: 0.25rem;
    }

    .yamparts-navigation .gap-4 {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .yamparts-finitions-section .max-w-6xl {
        max-width: 100%;
        padding: 0;
    }

    .finition-card .p-4 {
        padding: 0.5rem;
    }
}

/* ========================================
   STYLES POUR LA PAGE DES VUES ÉCLATÉES
   ======================================== */

/* Navigation entre vues éclatées */
.vue-eclatee-nav-arrows {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.vue-eclatee-header {
    text-align: center;
}

.vue-eclatee-nav-slot {
    flex: 1 1 220px;
    min-width: 0;
    display: flex;
    align-items: center;
}

.vue-eclatee-nav-slot--next {
    justify-content: flex-end;
    text-align: right;
}

.vue-eclatee-title {
    flex: 1 1 auto;
    min-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.vue-eclatee-title h1 {
    margin: 0;
}

.vue-eclatee-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 9999px;
    background-color: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    max-width: 100%;
}

.vue-eclatee-nav-link:link,
.vue-eclatee-nav-link:visited,
.vue-eclatee-nav-link:hover,
.vue-eclatee-nav-link:focus,
.vue-eclatee-nav-link:active {
    text-decoration: none;
}

.vue-eclatee-nav-link .material-icons {
    font-size: 1.5rem;
}

.vue-eclatee-nav-link--next {
    flex-direction: row-reverse;
}

.vue-eclatee-nav-link:hover,
.vue-eclatee-nav-link:focus {
    background-color: #dbeafe;
    color: #1e40af;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.15);
}

.vue-eclatee-nav-text {
    display: inline-block;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .vue-eclatee-nav-arrows {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .vue-eclatee-nav-slot,
    .vue-eclatee-nav-slot--next {
        text-align: center;
        justify-content: center;
    }

    .vue-eclatee-nav-link {
        justify-content: center;
        width: 100%;
    }

    .vue-eclatee-nav-link--next {
        flex-direction: row;
    }

    .vue-eclatee-title {
        min-width: 0;
        width: 100%;
    }
}

/* Disposition 2 colonnes adaptative - la colonne image s'adapte à son contenu */
.vue-eclatee-two-col {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.vue-eclatee-two-col .image-pane {
    position: sticky;
    top: 1rem;
    min-width: 300px;
    max-width: 650px;
}

/* Container pour l'image avec les repères */
.vue-eclatee-image-container {
    position: relative;
    display: inline-block;
}

.vue-eclatee-main-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Overlay pour les repères */
.reperes-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Marqueurs de repères */
.repere-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #007cba;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    pointer-events: all;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.repere-marker:hover {
    background-color: #0056b3;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.repere-marker.active {
    background-color: #ff6b35;
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.4);
    animation: pulse 1.5s infinite;
    z-index: 11;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 12px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 6px 16px rgba(255, 107, 53, 0.7);
    }
}

.repere-number {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 2rem;
    background-color: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    text-align: center;
}

.no-image-placeholder svg {
    margin-bottom: 1rem;
}

.vue-eclatee-two-col .product-list-pane {
    max-height: 100%;
    padding-right: 5px;
}

.qty .input-group .input-group-btn>.btn{
    background-color: #dde0e5;
}

/* Liste des produits style photo (sans tableau) */
.vue-eclatee-products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Styles pour les éléments produits */
.vue-eclatee-product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer; /* Indiquer que l'élément est cliquable */
}

.vue-eclatee-product-item.highlighted {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b3 100%);
    border: 2px solid #ff6b35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
    transform: translateX(5px);
}

.vue-eclatee-product-item.highlighted .number-badge {
    background-color: #ff6b35;
    color: white;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.vue-eclatee-product-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Numéro de repère (badge bleu) */
.product-number {
    flex-shrink: 0;
}

.number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Détails du produit */
.product-details {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-name-ref {
    flex: 1;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.product-reference {
    font-size: 0.875rem;
    color: #6b7280;
    font-family: 'Courier New', monospace;
}

.product-reference-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-reference-link:hover,
.product-reference-link:focus {
    color: #1d4ed8;
    text-decoration: underline;
}

.product-reference-arrow {
    font-size: 0.875rem;
    line-height: 1;
}

/* Prix et ajout panier */
.product-price-add {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.product-price {
    text-align: right;
}

.product-price .price {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #059669;
    line-height: 1.2;
}

.product-price .price-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

/* Widget quantité + bouton panier */
.product-quantity-cart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-quantity .qty {
    display: flex;
}

.product-quantity .qty input {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.product-quantity-cart .add .btn {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
}

.product-quantity-cart .add .btn .material-icons {
    font-size: 1.125rem;
}

.products-section.no-margin-top { margin-top: 0; }

/* Scroll discret, hauteur égale à l'image */
.product-list-pane {
    overflow: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #cbd5e1 transparent; /* Firefox */
}

#product #content{
    max-width: 540px;
}

.product-list-pane::-webkit-scrollbar { height: 8px; width: 8px; }
.product-list-pane::-webkit-scrollbar-track { background: transparent; }
.product-list-pane::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 8px; }

/* Section principale des vues éclatées */
.vue-eclatee-image-section {
    margin-bottom: 3rem;
}

/* Image principale de la vue éclatée */
.vue-eclatee-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Assurer un affichage optimal pour les grandes images originales */
    object-fit: contain;
}

/* Effet de hover supprimé pour ne pas gêner l'interaction avec les repères */

/* Placeholder pour image manquante */
.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 3rem;
    min-height: 300px;
}

.no-image-placeholder .w-24 {
    width: 6rem;
}

.no-image-placeholder .h-24 {
    height: 6rem;
}

.no-image-placeholder .text-gray-400 {
    color: #9ca3af;
}

.no-image-placeholder .text-gray-500 {
    color: #6b7280;
}

.no-image-placeholder .mt-2 {
    margin-top: 0.5rem;
}

/* Section des produits */
.products-section {
    margin-top: 3rem;
}

.products-section h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
}

/* Tableau des produits */
.products-table-wrapper {
    overflow-x: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    min-width: 600px;
}

.products-table thead {
    background-color: #f8fafc;
}

.products-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.products-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.products-table tbody tr:hover {
    background-color: #f9fafb;
}

/* Colonnes du tableau */
.product-image {
    width: 80px;
    text-align: center;
}

.product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb;
}

.product-reference {
    width: 120px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.product-name {
    min-width: 200px;
}

.product-name a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.product-name a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.product-price {
    text-align: right;
}

.product-price .price {
    font-weight: 600;
    color: #059669;
    font-size: 1.125rem;
}

.product-action {
    width: 140px;
    text-align: center;
}

/* Boutons d'action */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary {
    background-color: #6b7280;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Icônes Material */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 1.125rem;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Message aucun produit trouvé */
.no-products-found {
    text-align: center;
    margin: 3rem 0;
}

.no-products-found .alert {
    max-width: 28rem;
    margin: 0 auto;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.no-products-found .alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.no-products-found h3 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.no-products-found p {
    color: #4b5563;
    margin-bottom: 0;
}

/* Navigation de retour */
.yamparts-navigation {
    margin-top: 3rem;
    text-align: center;
}

.yamparts-navigation .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive pour les vues éclatées */
@media (max-width: 768px) {

    .vue-eclatee-nav-slot{
        flex: 1 1 36px;
    }

    .yamparts-navigation .btn{
        margin-bottom: 15px;
    }

    
    .vue-eclatee-two-col {
        display: block;
        gap: 1rem;
    }
    
    .vue-eclatee-two-col .image-pane {
        position: static;
        min-width: auto;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .product-list-pane {
        max-height: none;
        overflow: visible;
        margin-top: 1rem;
        min-height: auto;
    }
    
    /* S'assurer que le contenu principal prend la hauteur complète sur mobile */
    #main {
        min-height: calc(100vh - 200px); /* Réserver espace pour header et navigation */
        padding-bottom: 2rem;
    }
    
    /* Éviter les chevauchements sur mobile */
    .vue-eclatee-product-item {
        margin-bottom: 0.5rem;
    }
    
    /* Forcer le bon flow sur mobile - éviter les positionnements absolus problématiques */
    .container {
        position: relative;
        z-index: 1;
    }
    
    /* S'assurer que la liste des produits a la priorité d'affichage */
    .vue-eclatee-products-list {
        position: relative;
        z-index: 10;
        background: #ffffff;
        padding-bottom: 2rem;
    }
    
    /* Adaptation des repères sur mobile */
    .repere-marker {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }
    
    .reperes-overlay {
        pointer-events: all;
    }
    
    /* Ajustements pour mobile */
    .vue-eclatee-product-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .product-details {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .product-name-ref {
        text-align: center;
    }

    .product-name {
        font-size: 1.25rem;
        line-height: 1.5;
    }

    .product-reference {
        font-size: 1rem;
    }

    .product-price-add {
        justify-content: center;
        gap: 1rem;
    }
    
    .product-price {
        text-align: center;
    }
    
    .number-badge {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }
    
}

@media (max-width: 480px) {
    .products-table {
        min-width: 500px;
    }
    
    .products-table th,
    .products-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .product-image {
        width: 50px;
    }
    
    .product-thumb {
        width: 30px;
        height: 30px;
    }
    
    .product-reference {
        width: 80px;
        font-size: 0.95rem;
    }
    
    .product-name {
        min-width: 120px;
        font-size: 1.1rem;
    }
    
    .product-price {
        width: 80px;
        font-size: 0.75rem;
    }
    
    .product-action {
        width: 100px;
    }
    
    .btn-sm {
        padding: 0.25rem 0.375rem;
        font-size: 0.625rem;
    }
}

/* ========================================
   STYLES POUR LA GRILLE DES VUES ÉCLATÉES
   ======================================== */

/* Section des vues éclatées */
.yamparts-vue-eclatees-section {
    padding: 2rem 1rem;
}

/* Grille de vues éclatées - 5 colonnes responsive */
.yamparts-vue-eclatees-section .grid {
    display: grid;
    gap: 1.5rem;
}

.yamparts-vue-eclatees-section .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .yamparts-vue-eclatees-section .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .yamparts-vue-eclatees-section .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
}

@media (min-width: 1024px) {
    .yamparts-vue-eclatees-section .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .yamparts-vue-eclatees-section .xl\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Carte de vue éclatée - maintenant c'est un lien */
.vue-eclatee-card {
    display: block;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.vue-eclatee-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Image de la vue éclatée */
.vue-eclatee-card .aspect-square {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Overlay pour l'effet de slide */
.vue-eclatee-card .aspect-square::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #0048E9, #0066FF);
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

/* Image au-dessus de l'overlay */
.vue-eclatee-card .aspect-square img {
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.vue-eclatee-card .aspect-square img {
    width: 100%;
    height: 100%;
}

/* Effets de slide directionnels au survol - WAHOU avec JS ! */

/* L'overlay sera créé dynamiquement par JavaScript */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #0048E9, #0066FF);
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    pointer-events: none;
}

/* Image au-dessus de l'overlay */
.vue-eclatee-card .aspect-square img {
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.vue-eclatee-card:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Contenu sans image */
.vue-eclatee-card .text-gray-400 {
    color: #9ca3af;
    text-align: center;
    background-color: #f3f4f6;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vue-eclatee-card .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* Icône SVG dans les cartes de vues éclatées */
.vue-eclatee-card svg {
    width: 4rem;
    height: 4rem;
    margin-bottom: 0.5rem;
    color: currentColor;
}


/* Titre de la vue éclatée */
.vue-eclatee-card h3 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    padding: 1rem;
    text-align: center;
    background-color: #f8fafc;
    border-top: 1px solid #e5e7eb;
}



/* Informations dans le header */
.finition-info, .cylindree-info, .year-info {
    font-size: 1.125rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

/* Titre de la page des vues éclatées */
.yamparts-vue-eclatees-section h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Texte descriptif */
.yamparts-vue-eclatees-section .text-center p:not(.finition-info):not(.cylindree-info):not(.year-info) {
    color: #4b5563;
    font-size: 1.125rem;
    line-height: 1.75rem;
}

/* Message aucune vue éclatée trouvée */
.no-vue-eclatees-found {
    text-align: center;
    margin: 3rem 0;
}

.no-vue-eclatees-found .alert {
    max-width: 28rem;
    margin: 0 auto;
}

.no-vue-eclatees-found .alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem;
}

.no-vue-eclatees-found h3 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.no-vue-eclatees-found .mb-4 {
    margin-bottom: 1rem;
}

/* Responsive pour les vues éclatées */
@media (max-width: 768px) {
    .yamparts-vue-eclatees-section {
        padding: 1rem;
    }

    .yamparts-vue-eclatees-section .grid {
        gap: 1rem;
    }

    .vue-eclatee-card h3 {
        font-size: 1rem;
        line-height: 1.5rem;
        padding: 0.75rem;
    }

    .vue-eclatee-card .text-sm {
        font-size: 0.75rem;
        line-height: 1rem;
    }

    .vue-eclatee-card svg {
        width: 3rem;
        height: 3rem;
        margin-bottom: 0.25rem;
    }

    .yamparts-navigation .gap-4 {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .yamparts-vue-eclatees-section {
        padding: 0.5rem;
    }

    .vue-eclatee-card h3 {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Corrections spéciales pour très petits écrans - vue éclatée */
    .vue-eclatee-two-col {
        min-height: auto;
    }
    
    .product-list-pane {
        position: relative;
        clear: both;
        margin-bottom: 3rem; /* Espace pour éviter le footer */
    }
}

/* ==========================================================================
   Compatible Bikes Table - Product Page
   ========================================================================== */

.compatible-bikes-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 8px;
}

.compatible-bikes-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #232323;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #0040C9;
}

.compatible-bikes-container {
    overflow-x: auto;
}

.compatible-bikes-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compatible-bikes-table thead {
    background-color: #232323;
    color: #fff;
}

.compatible-bikes-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compatible-bikes-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.compatible-bikes-table tbody tr:last-child {
    border-bottom: none;
}

.compatible-bikes-table tbody tr:hover {
    background-color: #f8f9fa;
}

.compatible-bikes-table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.compatible-bikes-table .bike-name {
    font-weight: 600;
    color: #232323;
}

.compatible-bikes-table .bike-year {
    display: inline-block;
    margin-left: 0.5rem;
    font-weight: 400;
    color: #6c757d;
}

.compatible-bikes-table .vue-eclatee-name {
    color: #495057;
}

.compatible-bikes-table .vue-eclatee-link {
    text-align: center;
}

.btn-view-vue-eclatee {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: #0040C9;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-view-vue-eclatee:hover {
    background-color: #002f99;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .compatible-bikes-section {
        padding: 1.5rem 1rem;
    }

    .compatible-bikes-title {
        font-size: 1.5rem;
    }

    .compatible-bikes-table {
        font-size: 0.9rem;
    }

    .compatible-bikes-table thead th,
    .compatible-bikes-table tbody td {
        padding: 0.75rem 0.5rem;
    }

    .btn-view-vue-eclatee {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .compatible-bikes-table thead {
        display: none;
    }

    .compatible-bikes-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e9ecef;
        border-radius: 4px;
    }

    .compatible-bikes-table tbody td {
        display: block;
        text-align: left;
        padding: 0.75rem;
        border-bottom: 1px solid #f8f9fa;
    }

    .compatible-bikes-table tbody td:last-child {
        border-bottom: none;
    }

    .compatible-bikes-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 0.25rem;
        color: #6c757d;
        font-size: 0.85rem;
        text-transform: uppercase;
    }

    .compatible-bikes-table .bike-year {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }

    .compatible-bikes-table .vue-eclatee-link {
        text-align: left;
    }

    .btn-view-vue-eclatee {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* Message produit indisponible dans les vues éclatées */
.product-unavailable-message {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    margin-top: 0.375rem;
    padding-left: 0.5rem;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 500;
    width: 100%;
}

.product-unavailable-message .material-icons {
    font-size: 0.875rem;
    color: #dc2626;
}
