/* Product Page Specific Styles */

/* Add margin to main content to account for breadcrumbs */
.product-detail-wrapper {
  margin-top: 60px; /* Further reduced gap */
}

/* Reduce section margin on mobile */
@media (max-width: 768px) {
  .product-detail-wrapper section {
    margin: 20px 0; /* Reduced margin on mobile */
  }
}

@media (max-width: 480px) {
  .product-detail-wrapper section {
    margin: 10px 0; /* Even less margin on small mobile */
  }
}

/* Breadcrumb Styles */
.breadcrumb-nav {
  border-bottom: 1px solid #e9ecef;
  padding: 0.5rem 0; /* Reduced padding to bring content closer */
  position: static; /* Not fixed - normal flow */
}

.breadcrumb {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  margin: 0 0.75rem;
  color: #6c757d;
}

.breadcrumb-link {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #3b82f6;
}

.breadcrumb-item.active {
  color: #495057;
  font-weight: 500;
}

.breadcrumb-item i {
  font-size: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .breadcrumb-nav {
    padding: 0.75rem 0;
  }
  
  .breadcrumb {
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar */
    -ms-overflow-style: none; /* Hide scrollbar */
  }
  
  .breadcrumb::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
  }
  
  .breadcrumb-item:not(:last-child)::after {
    margin: 0 0.5rem;
  }
  
  .breadcrumb-link {
    padding: 0.25rem 0;
    touch-action: manipulation; /* Better touch response */
  }
}

@media (max-width: 480px) {
  .breadcrumb-nav {
    padding: 0.5rem 0;
  }
  
  .breadcrumb {
    font-size: 0.75rem;
    gap: 0.25rem;
  }
  
  .breadcrumb-item:not(:last-child)::after {
    margin: 0 0.4rem;
    font-size: 0.7rem;
  }
  
  .breadcrumb-link {
    padding: 0.2rem 0;
    line-height: 1.4;
  }
  
  .breadcrumb-item.active {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .breadcrumb-item i {
    font-size: 0.65rem;
    margin-right: 0.25rem;
  }
}
