.product-details {
  background: none;
  box-shadow: none;
  border-radius: 0;
  margin: 0 0 32px 0;
  padding: 0;
  max-width: 100%;
}
.tabs-header {
  background: #f0f0f0;
  border-radius: 36px;
  padding: 10px 32px;
}

.tab-btn.active {
  background: #88888857 !important;
  color: #fff;
  font-weight: 600;
  box-shadow: none;
  border-radius: 999px !important;
  margin-bottom: 0 !important;
}
.tab-btn:hover {
    background: #88888857 !important;
    color: #fff;
    font-weight: 600;
    box-shadow: none;
    border-radius: 999px !important;
    margin-bottom: 0 !important;
}
.tab-btn:hover {
  background: #e8e8e8;
}
.tabs-content {
  border-top: none;
  padding-top: 40px;
  width: 70%;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.tab-tables {
  display: flex;
  gap: 80px;
  /* flex-wrap: wrap; */
}
.tab-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 78%;
  background: none;
  margin-bottom: 0;
  box-shadow: none;
  table-layout: auto;   /* allow table to grow */
  white-space: nowrap;
}
.tab-table thead th {
  /* background: #f0f0f0; */
  color: #444;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  text-align: left;
  padding: 12px 18px;
  border: none;
}


.tab-table-oe thead th:first-child {
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;

}

.tab-table-oe thead th:last-child {
  border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;

}

.tab-table th, .tab-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;  /* keep content on one line */
}
.tab-table th {
  background: none;
  font-weight: 600;
  color: #888;
  width: 180px;
}
.additiona-details .tab-table th{
  border-right: 1px solid #f0f0f0;

}
.tab-table td {
  color: #222;
  font-weight: 400;
  background: none;
  border: none;
}

.tab-placeholder {
  color: #888;
  font-size: 1.1rem;
  padding: 32px 0;
  text-align: center;
}
@media (max-width: 700px) {
  .tab-tables { flex-direction: column; gap: 16px; }
  .product-details { padding: 0; }
  .tab-table { min-width: 100%; }
}



.product-details-card {
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
      padding: 32px;
      height: 100%;
      display: flex;
      flex-direction: column;  /* stack table and button vertically */
      justify-content: center; /* center content vertically */
      text-align: left;         /* keep table and text aligned to left */
      align-items: stretch;     /* do not center horizontally */
  }

  .product-details-table strong{
    color: #888;
  }
  .product-details-table td {
      padding: 10px 0;
      border: none;
  }

  .product-details-table tr:not(:last-child) td {
      border-bottom: 1px solid #f1f1f1;
  }

  .product-img-main {
      width: 100%;
      max-width: 340px;
      border-radius: 12px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }

  .product-thumbs {
      display: flex;
      gap: 12px;
      margin-top: 16px;
  }

  .product-thumb {
      width: 64px;
      height: 64px;
      border-radius: 8px;
      border: 2px solid #eee;
      cursor: pointer;
      object-fit: cover;
  }

  .product-thumb.active {
      border: 2px solid var(--primary);
  }

  .tab-btn {
      border: none;
      padding: 10px 28px;
      margin-right: 8px;
      font-weight: 500;
      color: #888;
  }

  .add-to-basket-btn {
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 7px 32px;
      font-weight: 600;
  }

  .add-to-basket-btn:hover {
      background: #b71c1c;
  }

  .add-to-basket-btn .basket-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5em;
  color: inherit;
  width: 1.5em;
  height: 1.5em;
}

  .details-table th,
  .details-table td {
      padding: 8px 16px;
  }

  .details-table th {
      background: #f5f5f5;
      font-weight: 600;
  }

  .details-table tr {
      border-bottom: 1px solid #f1f1f1;
  }

  .details-table tr:last-child {
      border-bottom: none;
  }

  .back-link {
      color: #888;
      text-decoration: none;
      font-size: 16px;
      margin-bottom: 16px;
      display: inline-block;
  }

  .back-link:hover {
      color: var(--primary);
  }

  .product-header {
      font-size: 22px;
      font-weight: 700;
      margin-bottom: 18px;
  }

  .product-tabs {
      margin-top: 32px;
  }

  .tab-content {
      background: #fff;
      border-radius: 0 0 16px 16px;
      box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
      padding: 24px;
  }
  
.product-image-gallery {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  /* padding: 0 0 32px 0; */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* margin-bottom: 32px; */
  position: relative;
  overflow: visible;
  height: 100%;
}
.product-image-gallery::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  border-radius: 18px;
  z-index: 0;
  pointer-events: none;
  /* background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.0) 80%); */
}
.product-main-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 24px 16px 24px;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid #f1f1f1;
}
.product-main-image img {
  /* width: 100%;
  max-width: 340px;
  height: 220px; */
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto;
  display: block;
  background: none;
  /* max-height: 310px; */
}
.product-secondary-carousel {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 16px;
}
.product-secondary-carousel .item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 4px;
}
.product-secondary-carousel .item img {
  width: 70px;
  height: 55px;
  border-radius: 8px;
  border: 2px solid #eee;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: border 0.2s;
}
.product-secondary-carousel .item img.active,
.product-secondary-carousel .item img:focus {
  border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(211,47,47,0.08);
}
.product-secondary-carousel .owl-nav {
  position: absolute;
  top: 10%;
  left: -32px;
  right: -32px;
  width: auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}
.product-secondary-carousel .owl-nav button {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #333;
  pointer-events: all;
  transition: box-shadow 0.2s;
}
.product-secondary-carousel .owl-nav button:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(230,57,70,0.15);
}
.product-secondary-carousel .owl-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  display: flex;
  justify-content: center;
  gap: 0px;
  z-index: 1;
}
.product-secondary-carousel .owl-dot span {
  width: 10px;
  height: 10px;
  background: #d6d6d6;
  border-radius: 50%;
  display: block;
  transition: background 0.3s, width 0.3s, height 0.3s;
}
.product-secondary-carousel .owl-dot.active span {
  background: var(--primary);
  width: 14px;
  height: 14px;
}

@media (max-width: 767.98px) {
  .owl-nav{
    display: none  !important;
  }
  .product-image-gallery {
    padding: 0 0 24px 0;
  }
  .product-main-image {
    padding: 18px 8px 8px 8px;
  }
  .product-main-image img {
    height: 160px;
    max-width: 100%;
  }
  .product-secondary-carousel {
    max-width: 100%;
    padding-bottom: 12px;
  }
  .product-secondary-carousel .item img {
    width: 70px;
    height: 48px;
  }
  .product-secondary-carousel .owl-nav {
    left: 10px;
    right: 10px;
  }
  .product-secondary-carousel .owl-dots {
    bottom: -18px;
  }
}
@media (max-width: 480px) {
  .product-main-image img {
    height: 25vh;
  }
 
}

.tab-table-oe {
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.tab-table-oe thead th {
  /* background: #f0f0f0; */
  color: #444;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  text-align: left;
  padding: 12px 18px;
  /* border: none; */

}
.tab-table-oe thead{
  background-color: #f0f0f0;
    border-radius: 20px;
}

.tab-table-oe th, .tab-table-oe td {
  padding: 14px 18px;
  text-align: left;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  /* border: none; */
  border-bottom: 1px solid #f0f0f0;
}
.tab-table-oe td {
  color: #222;
  font-weight: 500;
  background: none;
}
.tab-table.tab-table-oe td {
  white-space: normal !important;      /* allow wrapping */
}

.tab-table-oe td span {
  font-weight: 500;
  color: #222;
  margin-right: 6px;
}
.tab-table-oe td span:last-child {
  margin-right: 0;
}
@media (max-width: 700px) {
  .detail-item-number{
    width: 35px !important;
  }
  .product-details-card {
    padding: 12px;
    border-radius: 12px;
    margin-top: 10px;
  }
  .product-details-table td {
    padding: 8px 0;
    font-size: 0.98rem;
  }
  .d-flex.align-items-center.mt-4 {
    flex-direction: row !important;
    gap: 8px;
    align-items: center !important;
    justify-content: flex-start;
  }
  .form-control.w-auto.me-3 {
    width: 60px !important;
    min-width: 48px;
    font-size: 1rem;
    padding: 6px 8px;
    margin-right: 8px !important;
    margin-bottom: 0;
    display: inline-block;
  }
  .add-to-basket-btn {
    padding: 8px 18px;
    font-size: 1rem;
    border-radius: 8px;
    width: auto;
    min-width: 120px;
    display: inline-block;
  }
}
/* --- Mobile Tabs Accordion Styles --- */
.mobile-tabs-accordion {
  display: none;
}
@media (max-width: 700px) {
  .tabs-header, .tabs-content {
    display: none !important;
  }
  .mobile-tabs-accordion {
    display: block;
    margin-top: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    overflow: hidden;
  }
  .mobile-tab-item + .mobile-tab-item {
    border-top: 1px solid #f0f0f0;
  }
  .mobile-tab-header {
    width: 100%;
    background: #f8f8f8;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    padding: 16px 18px;
    border: none;
    /* outline: none; */
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-radius: 0;
    position: relative;
  }
  .mobile-tab-header.active, .mobile-tab-header:focus {
    background: var(--primary, #e63946);
    color: #fff;
  }
  .mobile-tab-header::after {
    content: '\25BC';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 1rem;
    color: #888;
    transition: transform 0.2s;
  }
  .mobile-tab-header.active::after {
    transform: translateY(-50%) rotate(180deg);
    color: #fff;
  }
  .mobile-tab-panel {
    display: none;
    /* padding: 0 18px 18px 18px; */
    background: #fff;
    animation: fadeIn 0.3s;
  }
  .mobile-tab-panel.active {
    display: block;
  }
  .mobile-tab-panel .tab-tables {
    gap: 8px;
  }
  .mobile-tab-panel .tab-table, .mobile-tab-panel .tab-table-oe {
    font-size: 0.98rem;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    overflow-x: auto;
    display: block;
  }
  .mobile-tab-panel .tab-table th, .mobile-tab-panel .tab-table td, .mobile-tab-panel .tab-table-oe th, .mobile-tab-panel .tab-table-oe td {
    padding: 8px 10px;
    font-size: 0.97rem;
  }
  .mobile-tab-panel .tab-placeholder {
    font-size: 1rem;
    padding: 24px 0;
    text-align: center;
    color: #888;
  }
}
@media (max-width: 700px) {
  .tab-tables {
    flex-direction: column;
    gap: 16px;
  }
  .tab-table, .tab-table-oe {
    min-width: 100%;
    width: 100%;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: table;
    margin-bottom: 0;
  }
  .tab-table th, .tab-table td, .tab-table-oe th, .tab-table-oe td {
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 12px 16px;
    font-size: 1rem;
    color: #222;
  }
  .tab-table thead th, .tab-table-oe thead th {
    background: none !important;
    color: #444;
    font-weight: 700;
  }
  .tab-table tbody tr, .tab-table-oe tbody tr {
    background: none !important;
  }
  .tab-table th, .tab-table-oe th {
    width: 180px;
    font-weight: 600;
    color: #888;
  }
  .tab-table td, .tab-table-oe td {
    color: #222;
    font-weight: 400;
  }
  
  /* Remove mobile accordion table backgrounds too */
  .mobile-tab-panel .tab-table, .mobile-tab-panel .tab-table-oe {
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100%;
    min-width: 100%;
    display: table;
  }
  .mobile-tab-panel .tab-table th, .mobile-tab-panel .tab-table td, .mobile-tab-panel .tab-table-oe th, .mobile-tab-panel .tab-table-oe td {
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 12px 16px;
    font-size: 1rem;
    color: #222;
    white-space: normal;
  }
  .mobile-tab-panel .tab-table thead th, .mobile-tab-panel .tab-table-oe thead th {
    background: none !important;
    color: #444;
    font-weight: 700;
    /* border-radius: 0 !important; */
  }
  .tab-table-oe td {
  white-space: normal;         /* allow wrapping */
  word-break: break-word;      /* break if a number is too long */
}
  .mobile-tab-panel .tab-table tbody tr, .mobile-tab-panel .tab-table-oe tbody tr {
    background: none !important;
  }
  .mobile-tab-panel .tab-table th, .mobile-tab-panel .tab-table-oe th {
    width: 180px;
    font-weight: 600;
    color: #888;
  }
  .mobile-tab-panel .tab-table td, .mobile-tab-panel .tab-table-oe td {
    color: #222;
    font-weight: 400;
  }
  .mobile-tab-panel .tab-table tbody tr:last-child td, .mobile-tab-panel .tab-table-oe tbody tr:last-child td {
    border-bottom: none;
  }
}

.tab-grid, .tab-grid-oe {
  display: grid;
  width: 100%;
  background: none;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
}
.tab-grid {
  grid-auto-rows: minmax(44px, auto);
}
.tab-grid-oe {
  grid-auto-rows: minmax(44px, auto);
}
.tab-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}
.tab-row:last-child {
  border-bottom: none;
}
.tab-row-header {
  background: #88888857;
  font-weight: 700;
  color: #444;
}
.tab-header {
  color: #888;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 18px;
  border-right: 1px solid #f0f0f0;
  background: none;
  white-space: nowrap;
}
.tab-row-header .tab-header {
  color: #444;
  background: #88888857;
  border-right: 1px solid #f0f0f0;
}
.tab-value {
  color: #222;
  font-weight: 400;
  font-size: 1rem;
  padding: 14px 18px;
  background: none;
  white-space: nowrap;
}
.tab-grid-oe .tab-value span {
  font-weight: 500;
  color: #222;
  margin-right: 6px;
}
.tab-grid-oe .tab-value span:last-child {
  margin-right: 0;
}
@media (max-width: 700px) {
  .tab-tables { flex-direction: column; gap: 16px; }
  .tab-grid, .tab-grid-oe {
    grid-auto-rows: minmax(38px, auto);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    margin-bottom: 0;
    width: 100%;
  }
  .tab-row {
    grid-template-columns: 120px 1fr;
    font-size: 0.98rem;
    padding: 0;
  }
  .tab-header, .tab-value {
    padding: 10px 12px;
    font-size: 0.97rem;
  }
}


.owl-carousel .owl-nav button.owl-next, .owl-carousel .owl-nav button.owl-prev{
  background: #fff !important;
  border-radius: 20px;
  font-size: 17px;
  width: 25px;
  height: 25px;
  font-weight: bold;
  color: #869791;
}
.owl-theme .owl-nav [class*=owl-]{
  margin: 0px !important;
}

.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span{
  background: var(--primary, #e63946);
}
.owl-carousel button.owl-dot{
  background:unset !important;

}
.owl-theme .owl-dots .owl-dot span {
  width: 10px !important;
  height: 10px !important;
}
.owl-theme .owl-dots .owl-dot.active span {
  width: 15px !important;
  height: 15px !important;
}

.owl-carousel .owl-nav button.owl-next:hover, .owl-carousel .owl-nav button.owl-prev:hover{
    color: #4c4e4d;
}



/* PDF Grid Styles for Downloads Tab */
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  /* padding: 32px 0; */
}

.pdf-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  padding: 10px 18px;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 0;          /* important for flex items */
}
.pdf-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  transform: translateY(-4px) scale(1.02);
}

.pdf-icon {
  flex-shrink: 0;
  margin-right: 18px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-icon svg {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.pdf-info {
  flex: 1 1 0;           /* allow it to shrink and wrap */
  min-width: 0;          /* important to allow text to break inside flex */
}

.pdf-title {
  font-size: 1.0rem;
  font-weight: 600;
  color: #888;
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
  white-space: normal;            /* allow wrapping */
  overflow-wrap: break-word;      /* break long words */
  word-break: break-word;         /* fallback for older browsers */
  cursor: pointer;
  outline: none;
}

.pdf-title:hover, .pdf-title:focus {
  color: #656464;
  text-decoration: underline;
}

/* Responsive: 2 columns on tablets, 1 on mobile */
@media (max-width: 900px) {
  .pdf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .pdf-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pdf-card {
    padding: 16px 12px;
  }
}
/* Product Detail Page Quantity Controls */
#detail-quantity-controls .quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: fit-content;
}

#detail-quantity-controls .btn-remove,
#detail-quantity-controls .btn-increase,
#detail-quantity-controls .btn-decrease {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

#detail-quantity-controls .btn-remove:hover,
#detail-quantity-controls .btn-increase:hover,
#detail-quantity-controls .btn-decrease:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

#detail-quantity-controls .quantity-display {
    background-color: white;
    color: #333;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

/* Mobile Responsive for Product Detail Page */
@media (max-width: 991.98px) {
    #detail-quantity-controls .quantity-controls {
        padding: 12px 16px;
        border-radius: 12px;
        gap: 8px;
    }
    
    #detail-quantity-controls .btn-remove,
    #detail-quantity-controls .btn-increase,
    #detail-quantity-controls .btn-decrease {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    
    #detail-quantity-controls .quantity-display {
        padding: 6px 12px;
        min-width: 40px;
        font-size: 1rem;
        border-radius: 8px;
    }
}