.inquiry-body {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
  }

  .inquiry-product {
    display: flex;
    gap: 15px;
    align-items: center;
    border: 1px solid lightgray;
    background: ghostwhite;
    margin-top: 10px;
    margin-bottom: 14px;
  }

  .inquiry-product__image img {
    width: 90px;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    background: #fff;
    padding: 5px;
  }

  .inquiry-product__details {
    padding: 5px 0px;
    flex: 1;
  }

  .inquiry-product__title {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0px;
  }

  .inquiry-product__part {
    font-size: 13px;
    color: #6c757d;
  }

  .inquiry-product__price {
    font-size: 15px;
    font-weight: 600;
    color: #198754;
  }

  @media (max-width: 768px) {
    .inquiry-product__image img {
      width: 110px;
    }

    .inquiry-product__title {
      font-size: 12px;
    }

    .modal-body input, .modal-body textarea {
      padding: 5px !important; 
    }

    .mb-1 {
      margin-bottom: 5px !important;
    }

    .btn-primary, .btn-buy-now {
      width: 50%;
      margin-top: 0px;
      padding: 8px 0px;
    }
  }
    .inquiry-btn:hover {
      background: #e55a00 !important;
      transform: translateY(-2px) !important;
      box-shadow: 0 4px 8px rgba(255, 102, 0, 0.3) !important;
    }

    .btn-add-to-cart-main.inquiry-btn {
      background: var(--text-light) !important;
    }

    .custom-close {
      position: absolute;
      top: 0px;
      right: 13px;
      font-size: 28px;
      cursor: pointer;
      z-index: 10;
      font-weight: 700;
    }

    .custom-close:hover {
      color: var(--error-color);
    }

    .product-cat {
      color: var(--primary-color);
      font-weight: 600;
    }

    .fitment-preview {
      margin: 18px 0;
    }

    .fitment-preview p {
      margin: 4px 0;
      font-size: 16px;
      color: #333;
    }

    .show-link {
      display: inline-block;
      margin-left: 8px;
      font-size: 12px;
      font-weight: 600;
      color: var(--accent-color);
      cursor: pointer;
    }

    .show-link:hover {
      text-decoration: none;
    }

    .fitment-preview p:only-child {
      color: #999;
    }

    @media (max-width: 768px) {
      .fitment-preview p {
        font-size: 13px;
      }

      .gallery {
        min-height: 0px;
       }

        .thumbnails {
          margin-top: 0px;
          gap: 5px;
        }
    }


    .spec-label-left {
        padding-left: 0px;
    }
    .price-section-save {
      background: none;
      padding: 0;
      color: #28a745;
      font-weight: 700;
      margin-bottom: 8px;
      margin-top: 2px;
    }

    .product-grid {
      max-width: 1280px;
      margin: 0 auto;
      padding: 1rem;
      display: grid;
      grid-template-columns: 100px 0.8fr 1.4fr;
    }

    /* ---------------- Gallery ---------------- */
    .gallery {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .thumbnails {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .thumbnail {
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      overflow: hidden;
      background: #fff;
      cursor: pointer;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .thumbnail:hover {
      border-color: #94a3b8;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

    .thumbnail img {
      width: 100%;
      display: block;
    }

    .main-image {
      padding: 1.25rem;
      background: #fff;
      text-align: center;
    }

    .main-image img {
      max-width: 100%;
      height: auto;
      object-fit: contain;
    }

    .availability {
      margin: 1rem 0;
      font-size: 0.95rem;
    }

    .availability .label {
      color: #475569;
      margin-right: 0.25rem;
    }

    .status {
      font-weight: 600;
    }

    .in-stock {
      color: #16a34a;
    }

    .out-of-stock {
      color: #dc2626;
    }

    .price {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .current-price {
      font-size: 1.8rem;
      font-weight: 700;
    }

    .original-price {
      font-size: 1rem;
      color: #94a3b8;
      text-decoration: line-through;
    }

    .product-info tr {
      display: block;
    }

    .product-info td {
      font-size: 0.9rem;
      color: #334155;
      margin-bottom: 0.25rem;
      display: block;
    }

    .cart-action-row {
      display: flex;
      gap: 1rem;
      margin: 1.75rem 0;
    }

    .quantity-input-box {
      width: 90px;
      padding: 0.65rem;
      border-radius: 6px;
      border: 1px solid #cbd5e1;
      font-size: 1rem;
    }

    .features {
      margin-top: 1rem;
      padding: 1.5rem;
      border-top: 1px solid #e5e7eb;
    }

    .features-title {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 0.75rem;
    }

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

    .features svg,
    .features i {
      flex-shrink: 0;
    }
    @media (max-width: 1024px) {
      .product-grid {
        grid-template-columns: 90px 1fr 1fr;
        gap: 1.75rem;
      }

      .product-info h1 {
        font-size: 1.6rem;
      }

      .current-price {
        font-size: 1.6rem;
      }
    }
    @media (max-width: 768px) {
      .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }

      .gallery {
        order: 2;
      }

      .product-info {
        order: 3;
      }

      .thumbnails {
        flex-direction: row;
        justify-content: center;
      }

      .thumbnail {
        width: 85px;
      }

      .cart-action-row {
        flex-direction: column;
      }

      .quantity-input-box {
        width: 100%;
      }
    }

@media (max-width: 576px) {

  .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100%;
  }

  .modal-content {
    height: 100%;
    border-radius: 10px;
  }

  .modal-body {
    
    overflow-y: auto;
  }

  .modal-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  /* Inputs easier to tap */
  .modal-body input,
  .modal-body textarea {
    font-size: 1rem;
    padding: 10px;
  }
}

  .modal-title {
    margin-bottom: 8px;
    font-size: 1.1rem;
  }

  .modal-header {
    display: flex;
    justify-content: center;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
  }

  .modal-footer {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: center;
    gap: 10px;
  }

.modal {
  z-index: 1100 !important;
}

.modal-backdrop {
  z-index: 1090 !important;
}

@media (max-width: 576px) {
  .modal {
    z-index: 1100 !important;
  }

  .modal-backdrop {
    z-index: 1090 !important;
  }
}

body.modal-open {
  overflow: hidden;
}

/* =========================
   DESKTOP MODAL – CLEAN & COMPACT
   ========================= */
@media (min-width: 577px) {

  .modal-dialog {
    max-width: 600px;        
    margin: 10vh auto;       
  }

  .modal-content {
    border-radius: 10px;
  }

  /* Prevent internal scrolling */
  .modal-body {
    overflow: visible;
    max-height: none;
  }

  

  /* Inputs look tighter */
  .modal-body input,
  .modal-body textarea {
    font-size: 0.95rem;
  }
}


@media (min-width: 577px) {
  .modal.fade .modal-dialog {
    transform: scale(0.95);
    transition: transform 0.2s ease-out;
  }

  .modal.show .modal-dialog {
    transform: scale(1);
  }
}

@media (max-width: 576px) {

  .modal-dialog {
    margin: 1rem auto;   
    max-width: 100%;
    height: auto;
  }

  .modal-content {
    max-height: none;
  }

  .modal-body {
    overflow: visible;  
    max-height: none;
  }
}

@media (max-width: 576px) {
  .modal-content {
    margin: 8vh 0;
  }
}


/* =========================
   FORCE CENTER MODAL ON MOBILE
   ========================= */
@media (max-width: 576px) {

  .modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .modal-dialog {
    margin: 0 auto !important;   /* force horizontal center */
    width: calc(100% - 2rem);    /* mobile padding */
    max-width: 420px;            /* prevents full-width stretch */
    transform: none !important;  /* kill left-shift transforms */
  }

  .modal-content {
    width: 100%;
  }

  .modal-body {
    overflow: visible;
  }
}

.text-danger {
  color: red;
}

.modal-content {
  position: relative; /* anchor for absolute close */
}