/* Breadcrumb */
.breadcrumb {
  margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
}

.product-detail-desktop {
  margin-top: 5rem;
}
/* Product Gallery */
.product-gallery {
  position: relative;
  margin-bottom: 2rem;
}

.main-image {
  position: relative;
  width: 100%;
  height: 400px; /* Fixed height */
  overflow: hidden;
  border-radius: 8px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* This will maintain aspect ratio while fitting within container */
  padding: 1rem;
}

.no-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 2rem;
}

.no-image-placeholder p {
  margin-top: 0.5rem;
  font-size: 1rem;
}

.product-gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  text-align: center;
}

.product-gallery__placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.product-gallery__thumbnails {
  margin-top: 1rem;
}

.product-thumbnail {
  cursor: pointer;
  border-radius: 0.25rem;
  overflow: hidden;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: 2px solid transparent;
  transition: border-color 0.3s;
  padding: 0.25rem;
}

.product-thumbnail.active {
  border-color: #0d6efd;
}

.product-thumbnail img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Product Info */
.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.product-meta {
  margin-bottom: 1rem;
}

.product-price-container {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
}

.product-original-price {
  font-size: 1.25rem;
  color: #6c757d;
  text-decoration: line-through;
}

.product-description {
  color: #6c757d;
  margin-bottom: 2rem;
}

/* Quantity Selector */
.quantity-selector {
  margin-bottom: 1.5rem;
}

.quantity-btn {
  padding: 0.375rem 0.75rem;
}

/* Quantity Control Styling */
.quantity-control-wrapper {
  margin-bottom: 1.5rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
  height: 44px;
  background-color: #fff;
}

.quantity-btn {
  background-color: #f8f9fa;
  border: none;
  padding: 0;
  flex: 0 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 16px;
}

.quantity-decrease {
  border-right: 1px solid #dee2e6;
}

.quantity-increase {
  border-left: 1px solid #dee2e6;
}

.quantity-btn:hover {
  background-color: #e9ecef;
}

.quantity-btn:active {
  background-color: #dee2e6;
}

.quantity-input {
  flex: 1;
  width: 100%;
  text-align: center;
  border: none;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  height: 100%;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Product actions styling */
.product-actions {
  margin-top: 2rem;
}

.product-actions .row {
  margin-bottom: 1rem;
}

/* Optional: Add specific styles for desktop-action-btn if needed
.desktop-action-btn {
  /* Styles common to both Add to Cart and Add to Quote */
 */

/* Optional: Style the Add to Quote button specifically if btn-secondary isn't enough */

.desktop-action-btn[data-action="add_to_quote"] {
  background-color: #1293f6;
  border-color: #2387eb;
}
.desktop-action-btn[data-action="add_to_quote"]:hover {
  background-color: #1182e6;
  border-color: #2275ba;
}


/* Product Tabs */
.nav-tabs {
  border-bottom: none;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 0.25rem 0.25rem 0 0;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: #6c757d;
}

.nav-tabs .nav-link.active {
  background-color: #fff;
  color: #0d6efd;
  border-bottom: 2px solid #0d6efd;
}

.tab-content {
  background-color: #fff;
  border-radius: 0 0 0.25rem 0.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

/* Reviews */
.review-item {
  margin-bottom: 1.5rem;
}

.review-stars {
  color: #ffc107;
}

.review-form-container {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

/* Rating Selector */
.rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.rating input {
  display: none;
}

.rating label {
  cursor: pointer;
  font-size: 1.5rem;
  color: #ccc;
  margin-right: 5px;
}

.rating label:before {
  content: "\2605";
}

.rating input:checked ~ label {
  color: #ffc107;
}

.rating label:hover,
.rating label:hover ~ label {
  color: #ffc107;
}

/* Social Share */
.social-share a {
  color: #6c757d;
  text-decoration: none;
  font-size: 1.25rem;
}

.social-share a:hover {
  color: #0d6efd;
}

/* Product Info Labels */
.info-label {
  font-weight: 600;
}

.brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Add these styles for related products */
.related-products-section .product-card {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-products-section .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-products-section .product-card__image-container {
  position: relative;
  padding-top: 75%; /* 4:3 Aspect ratio */
  overflow: hidden;
}

.related-products-section .product-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  background-color: #f8f9fa;
}

.related-products-section .product-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.related-products-section .product-card__title {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.3;
  height: 2.6rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-products-section .product-card__price {
  font-weight: 600;
  color: #212529;
  margin-top: auto;
}

/* Mobile responsive adjustments for related products */
@media (max-width: 767.98px) {
  .related-products-section .col-md-3 {
    flex: 0 0 auto;
    width: 50%; /* 2 products per row on mobile */
    padding: 0.25rem;
  }
  
  .related-products-section .product-card__body {
    padding: 0.75rem;
  }
  
  .related-products-section .product-card__title {
    font-size: 0.85rem;
    height: 2.2rem;
  }
}

/* Desktop enhancements */
@media (min-width: 768px) {
  .product-gallery {
    margin-bottom: 1rem;
  }
  
  .product-title {
    font-size: 2rem;
  }
}

/* Fix styling for related products section on desktop */
@media (min-width: 768px) {
  .related-products-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  
  .related-products-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #1e1e2f;
  }

  .related-products-section .product-card {
    height: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .related-products-section .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
  }
  
  .related-products-section .product-card__image-container {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #f8f9fa;
    display: block;
    text-decoration: none;
  }
  
  .related-products-section .product-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
    transition: transform 0.3s ease;
  }
  
  .related-products-section .product-card__no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 2rem;
  }
  
  .related-products-section .product-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  
  .related-products-section .product-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6rem;
  }
  
  .related-products-section .product-card__title a {
    color: #1e1e2f;
    text-decoration: none;
  }
  
  .related-products-section .product-card__title a:hover {
    color: #0d6efd;
  }
  
  .related-products-section .product-card__price {
    margin-top: auto;
    font-weight: 600;
  }
  
  .related-products-section .product-card__current-price {
    color: #1e1e2f;
    font-size: 1rem;
  }
  
  .related-products-section .product-card__original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.875rem;
    margin-right: 0.5rem;
  }
}

/* Add styling for product highlight badges on desktop */
.product-highlight-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 1rem;
}

.product-highlight-badges .badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #f8f9fa;
  color: #1e1e2f;
  border: 1px solid #e9ecef;
}

.product-highlight-badges .badge i {
  font-size: 0.875rem;
}

/* Fix for navbar visibility on desktop */
@media (min-width: 768px) {
  /* Ensure base template elements are visible on desktop product detail */
  body:not(.mobile-detail-active) .navbar,
  body:not(.mobile-detail-active) header,
  body:not(.mobile-detail-active) footer {
      display: block !important; /* Or revert to their default display property */
  }
}

.mobile-detail-active {
  padding-top: 0;
}
/* Share Button Styles */
.share-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease-in-out;
  color: #6c757d;
  border-color: #6c757d;
  background-color: transparent;
}

.share-btn:hover {
  background-color: #6c757d;
  color: #fff;
  border-color: #6c757d;
}

.share-btn i {
  margin-right: 0.25rem;
}

/* Share Modal Styles */
.share-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.share-button {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease-in-out;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.share-button i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

.share-button--facebook {
  background-color: #1877f2;
}

.share-button--twitter {
  background-color: #1da1f2;
}

.share-button--linkedin {
  background-color: #0077b5;
}

.share-button--whatsapp {
  background-color: #25d366;
}

.share-button--telegram {
  background-color: #0088cc;
}

.share-button--copy {
  background-color: #6c757d;
  color: #fff;
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #fff;
  opacity: 0.9;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .share-buttons {
    grid-template-columns: 1fr;
  }
  
  .share-button {
    padding: 1rem;
  }
}

/* Custom Notification Styles */
.custom-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 350px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(120%);
  transition: transform 0.3s ease-in-out;
  opacity: 0.95;
}

.custom-notification.show {
  transform: translateX(0);
}

.custom-notification--success {
  background-color: #d4edda;
  border-left: 4px solid #28a745;
  color: #155724;
}

.custom-notification--error {
  background-color: #f8d7da;
  border-left: 4px solid #dc3545;
  color: #721c24;
}

.custom-notification__content {
  display: flex;
  align-items: center;
}

.custom-notification__content i {
  margin-right: 10px;
  font-size: 1.25rem;
}

/* Ensure notifications are readable on mobile */
@media (max-width: 576px) {
  .custom-notification {
    left: 20px;
    right: 20px;
    max-width: none;
  }
}
