/* 05_modals_drawer.css - Modale produit, pilules de grammage, modale précautions, bandeau cookies */

  /* 6. Quick View & Add to Cart Modal */
  #jdb-product-modal {
    position: fixed;
    inset: 0;
    background: rgba(45, 36, 33, 0.65);
    backdrop-filter: blur(6px);
    z-index: 10000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  #jdb-product-modal.active {
    display: flex;
    opacity: 1;
  }

  .jdb-modal-box {
    background: #FFFFFF;
    border-radius: 24px;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(45, 36, 33, 0.25);
    display: grid;
    grid-template-columns: 46% 54%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    animation: jdbModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes jdbModalPop {
    from {
      opacity: 0;
      transform: scale(0.95) translateY(10px);
    }

    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  @media (max-width: 768px) {
    #jdb-product-modal {
      padding: 8px 5px !important;
    }

    .jdb-modal-box {
      grid-template-columns: 1fr;
      max-height: 90vh !important;
      overflow-y: auto;
      border-radius: 20px;
    }
  }

  .jdb-modal-close-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #FDF9F5;
    border: 1px solid #EFE4DC;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #70615A;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
    line-height: 1;
  }

  .jdb-modal-close-icon:hover {
    background: #2D2421;
    color: #ffffff;
    border-color: #2D2421;
  }

  .jdb-modal-img-col {
    background: #F7EFE8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
  }

  .jdb-modal-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(45, 36, 33, 0.08);
  }

  .jdb-modal-info-col {
    padding: clamp(20px, 3.5vw, 36px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }

  .jdb-modal-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .jdb-modal-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(1.6rem, 2.4vw, 2rem) !important;
    font-weight: 700 !important;
    color: #2D2421;
    margin: 0 0 8px 0;
    line-height: 1.2;
  }

  .jdb-modal-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
  }

  .jdb-modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C26D53;
  }

  .jdb-stock-badge {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    background: #EAF5ED;
    color: #2E7D32;
  }

  .jdb-modal-desc {
    color: #5A4D47;
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0 0 16px 0;
  }

  .jdb-modal-desc p {
    margin: 0 0 10px 0 !important;
    line-height: 1.65 !important;
    color: #5A4D47 !important;
  }

  .jdb-modal-desc strong,
  .jdb-modal-desc b {
    font-weight: 700 !important;
    color: #2D2421 !important;
  }

  .jdb-modal-desc em,
  .jdb-modal-desc i {
    font-style: italic !important;
  }

  .jdb-modal-desc ul {
    margin: 8px 0 14px 22px !important;
    padding-left: 0 !important;
    list-style-type: disc !important;
  }

  .jdb-modal-desc ol {
    margin: 8px 0 14px 22px !important;
    padding-left: 0 !important;
    list-style-type: decimal !important;
  }

  .jdb-modal-desc li {
    margin-bottom: 6px !important;
    line-height: 1.55 !important;
    color: #5A4D47 !important;
  }

  .jdb-modal-desc a {
    color: #C26D53 !important;
    text-decoration: underline !important;
  }

  /* WEIGHT SELECTION PILLS */
  .jdb-weight-section {
    margin-bottom: 16px;
  }

  .jdb-weight-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2D2421;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 8px;
  }

  .jdb-weight-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .jdb-weight-pill {
    background: #FDF9F5;
    border: 1.5px solid #EFE4DC;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #5A4D47;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .jdb-weight-pill:hover {
    border-color: #C26D53;
    color: #2D2421;
  }

  .jdb-weight-pill.selected {
    background: #C26D53;
    border-color: #C26D53;
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(194, 109, 83, 0.3);
  }

  .jdb-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .jdb-qty-box {
    display: flex;
    align-items: center;
    border: 1.5px solid #EFE4DC;
    border-radius: 25px;
    overflow: hidden;
    background: #FDF9F5;
  }

  .jdb-qty-btn {
    background: none;
    border: none;
    padding: 6px 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: #2D2421;
    transition: background 0.15s ease;
  }

  .jdb-qty-btn:hover {
    background: #EFE4DC;
  }

  .jdb-qty-input {
    width: 36px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.06rem;
    font-weight: 700;
    color: #2D2421;
  }

  .jdb-modal-add-btn {
    background-color: #C26D53;
    color: #FFFFFF;
    border: none;
    border-radius: 30px;
    padding: 13px 24px;
    font-size: 1.06rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(194, 109, 83, 0.3);
    font-family: 'Plus Jakarta Sans', sans-serif;
  }

  .jdb-modal-add-btn:hover {
    background-color: #a8563e;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(194, 109, 83, 0.4);
  }

  .jdb-modal-bottom-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
  }

  .jdb-modal-link-continue {
    font-size: 0.82rem;
    color: #70615A;
    cursor: pointer;
    text-decoration: underline;
  }

  .jdb-modal-link-cart {
    font-size: 0.82rem;
    color: #C26D53;
    font-weight: 600;
    text-decoration: none;
  }

  /* 6b. Precautions Modal */
  #jdb-precautions-modal {
    position: fixed;
    inset: 0;
    background: rgba(45, 36, 33, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000005;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  #jdb-precautions-modal.active {
    display: flex;
    opacity: 1;
  }

  .jdb-precautions-box {
    background: #FDF9F5;
    border-radius: 24px;
    max-width: 920px;
    width: 100%;
    max-height: 90vh;
    box-shadow: 0 25px 60px rgba(45, 36, 33, 0.25);
    position: relative;
    box-sizing: border-box;
    border: 1px solid #EFE4DC;
    animation: jdbModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .jdb-precautions-header {
    padding: 32px 32px 20px 32px;
    background: #FAF4EE;
    border-bottom: 1px solid #EFE4DC;
  }

  .jdb-precautions-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    color: #2D2421;
    margin: 0 0 8px 0;
    font-weight: 700;
    line-height: 1.25;
  }

  .jdb-precautions-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5A4D47;
    margin: 0;
  }

  .jdb-precautions-body {
    padding: 24px 32px 32px 32px;
  }

  .jdb-precautions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .jdb-precaution-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 22px 20px;
    border: 1px solid #EFE4DC;
    box-shadow: 0 4px 14px rgba(45, 36, 33, 0.04);
  }

  .jdb-precaution-soap {
    border-top: 3.5px solid #4B7A56;
  }

  .jdb-precaution-shampoo {
    border-top: 3.5px solid #C26D53;
  }

  .jdb-precaution-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }

  .jdb-precaution-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .jdb-icon-soap {
    background: #EBF3ED;
  }

  .jdb-icon-shampoo {
    background: #FBEBE8;
  }

  .jdb-precaution-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #2D2421 !important;
    margin: 0 !important;
  }

  .jdb-precaution-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .jdb-precaution-list li {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    color: #5A4D47 !important;
    position: relative;
    padding-left: 16px !important;
    margin: 0 !important;
  }

  .jdb-precaution-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #C26D53;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
  }

  .jdb-precaution-soap .jdb-precaution-list li::before {
    color: #4B7A56;
  }

  .jdb-precaution-list strong {
    color: #2D2421;
  }

  .jdb-precaution-callout {
    background: #FAF4EE;
    border: 1px dashed #C26D53;
    border-radius: 14px;
    padding: 16px 20px;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }

  .jdb-precaution-callout-icon {
    flex-shrink: 0;
    margin-top: 2px;
  }

  .jdb-precaution-callout p {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    color: #5A4D47 !important;
    margin: 0 !important;
  }

  .jdb-precaution-callout strong {
    color: #2D2421;
  }

  @media (max-width: 768px) {

    .jdb-precautions-header,
    .jdb-precautions-body {
      padding-left: 18px !important;
      padding-right: 18px !important;
    }

    .jdb-precautions-grid {
      grid-template-columns: 1fr;
    }
  }

  /* 7. Cookies Banner & Modal */
  #jdb-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 440px;
    background: #FFFFFF;
    border: 1px solid #EFE4DC;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(45, 36, 33, 0.15);
    padding: 22px;
    z-index: 9999999;
    display: none;
    box-sizing: border-box;
    animation: jdbSlideIn 0.35s ease;
  }

  #jdb-cookie-banner.active {
    display: block;
  }

  @keyframes jdbSlideIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .jdb-cb-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .jdb-cb-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2D2421;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .jdb-cb-text {
    font-size: 0.82rem;
    color: #5A4D47;
    line-height: 1.5;
    margin: 0 0 16px 0;
  }

  .jdb-cb-text a {
    color: #C26D53;
    text-decoration: underline;
  }

  .jdb-cb-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .jdb-cb-btn {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
  }

  .jdb-cb-btn-accept {
    background: #C26D53;
    color: #ffffff;
  }

  .jdb-cb-btn-accept:hover {
    background: #a8563e;
  }

  .jdb-cb-btn-reject {
    background: #FDF9F5;
    color: #5A4D47;
    border-color: #EFE4DC;
  }

  .jdb-cb-btn-reject:hover {
    background: #EFE4DC;
  }

  .jdb-cb-btn-custom {
    background: transparent;
    color: #70615A;
    text-decoration: underline;
  }

  #jdb-cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(45, 36, 33, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  #jdb-cookie-modal.active {
    display: flex;
  }

  .jdb-modal-card {
    background: #FFFFFF;
    border-radius: 22px;
    max-width: 520px;
    width: 100%;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(45, 36, 33, 0.2);
    box-sizing: border-box;
  }

  .jdb-modal-cat {
    background: #FDF9F5;
    border: 1px solid #EFE4DC;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
  }

  .jdb-modal-cat:last-of-type {
    margin-bottom: 0;
  }

  .jdb-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.02rem;
    color: #2D2421;
    margin-bottom: 4px;
  }

  .jdb-cat-badge {
    font-size: 0.7rem;
    background: #EFE4DC;
    color: #5A4D47;
    padding: 2px 8px;
    border-radius: 10px;
  }

  .jdb-cat-des {
    font-size: 0.8rem;
    color: #70615A;
    line-height: 1.4;
    margin: 0;
  }

  #jdb-cookie-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #FFFFFF;
    border: 1px solid #EFE4DC;
    border-radius: 30px;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #5A4D47;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(45, 36, 33, 0.08);
    z-index: 999998;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
  }

  #jdb-cookie-badge:hover {
    background: #FDF9F5;
    color: #C26D53;
    border-color: #C26D53;
    transform: translateY(-2px);
  }

