/* Main Styles for Purenitetech */

:root {
  --primary-color: #3498db;  /* Blue - representing health and medical */
  --secondary-color: #2ecc71; /* Green - representing health and vitality */
  --dark-color: #2c3e50;    /* Dark blue/gray for text */
  --light-color: #ecf0f1;   /* Light gray for backgrounds */
  --accent-color: #e74c3c;  /* Red for accents and important elements */
  --bg-color: #ffffff;      /* White background */
  --text-color: #333333;    /* Dark gray text */
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--dark-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #27ae60;
  border-color: #27ae60;
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Header Styles */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  width: 100%;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: #3498db;
  text-decoration: none;
  margin-right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-item {
  margin: 0 15px;
  display: inline-block;
}

.nav-link {
  display: flex;
  align-items: center;
  color: #333;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link i {
  margin-right: 5px;
  font-size: 16px;
}

.nav-link:hover {
  background-color: #f0f7ff;
  color: #3498db;
}

/* Responsive layout */
@media (max-width: 991px) {
  .navbar {
    flex-wrap: wrap;
  }
  
  .header-content {
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
  }
  
  .navbar-nav {
    margin: 20px 0;
  }
  
  .d-flex {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-item {
    margin: 5px 10px;
  }
}

/* Hero Section */
.hero {
  background-color: var(--light-color);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Product Cards */
/* Category Navigation */
.category-nav {
  margin: 30px 0;
}

.category-nav .btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.category-nav .btn {
  margin: 5px;
  white-space: nowrap;
}

/* Category Section */
.category-section {
  margin-bottom: 50px;
  scroll-margin-top: 100px;
}

.category-header {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary-color);
  display: flex;
  align-items: center;
}

.category-header::before {
  content: '';
  width: 5px;
  height: 30px;
  background-color: var(--primary-color);
  margin-right: 15px;
  border-radius: 3px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  padding: 10px;
}

.product-image img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  transition: opacity 0.3s;
}

.product-details {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  /* Ensure title takes only 2 lines max */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.5rem;
}

.product-model {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.product-info .product-model {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.product-info .product-actions {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 100%;
}

.product-info .product-actions .btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 1rem;
}

.product-info .product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.product-gallery {
  overflow: hidden;
}

.product-main-image {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  background-color: #f8f9fa;
  overflow: hidden;
  position: relative;
}

/* Make the container maintain aspect ratio if needed */
.product-main-image.image-loaded {
  background-image: none;
}

/* Style for main product image and picture element */
.product-main-image img, 
.product-main-image picture {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-main-image picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

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

/* Add zoom effect on hover */
.product-main-image:hover img,
.product-main-image:hover picture img {
  transform: scale(1.1);
  cursor: zoom-in;
}

.product-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.product-thumbnail {
  width: 80px;
  height: 80px;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

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

.product-thumbnail.active {
  border-color: var(--primary-color);
}

.product-info h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.product-description {
  margin-bottom: 1.5rem;
}

.product-features {
  margin-bottom: 1.5rem;
}

.product-features ul {
  padding-left: 1.5rem;
}

.product-features li {
  margin-bottom: 0.5rem;
}

/* Product card actions */
.product-card .product-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

/* Amazon Buy Button Styling - Compact for product cards */
.product-card .btn-warning,
.product-card .product-actions a[href*="amazon.com"] {
  font-size: 0.8rem !important;
  padding: 0.5rem 0.75rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  max-width: 100%;
}

.product-card .btn-warning i,
.product-card .product-actions a[href*="amazon.com"] i {
  font-size: 0.9rem;
  margin-right: 3px;
}

/* Related products section - slightly larger than grid */
.related-products-container .btn-warning,
.related-products-container a[href*="amazon.com"] {
  font-size: 0.85rem !important;
  padding: 0.5rem 0.75rem !important;
}

/* Clickable product titles */
.product-card .product-title:hover {
  color: var(--primary-color) !important;
}

/* Product Model Row with Datasheet Button */
.product-model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0.5rem 0;
  flex-wrap: wrap;
}

.product-model {
  font-size: 0.875rem;
  color: #666;
  flex: 1;
  min-width: 0; /* Allow text truncation */
}

.datasheet-btn {
  font-size: 0.75rem !important;
  padding: 0.25rem 0.5rem !important;
  white-space: nowrap;
  border-color: #dc3545 !important;
  color: #dc3545 !important;
  transition: all 0.2s;
}

.datasheet-btn:hover {
  background-color: #dc3545 !important;
  color: white !important;
  transform: translateY(-1px);
}

.datasheet-btn i {
  font-size: 0.75rem;
  margin-right: 2px;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.chat-toggle:hover {
  background-color: #2980b9;
  transform: scale(1.05);
}

.chat-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 350px;
  height: 500px;
  border-radius: 0.5rem;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
  transform-origin: bottom right;
}

.chat-window.hidden {
  transform: scale(0);
  opacity: 0;
}

.chat-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-close {
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.chat-messages {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chat-message {
  margin-bottom: 1rem;
  max-width: 80%;
}

.chat-message.user {
  align-self: flex-end;
  background-color: var(--primary-color);
  color: white;
  border-radius: 1rem 1rem 0 1rem;
  padding: 0.75rem 1rem;
}

.chat-message.bot {
  align-self: flex-start;
  background-color: var(--light-color);
  border-radius: 1rem 1rem 1rem 0;
  padding: 0.75rem 1rem;
}

.chat-input {
  display: flex;
  padding: 0.5rem;
  border-top: 1px solid #eee;
}

.chat-input input {
  flex-grow: 1;
  border: 1px solid #ddd;
  border-radius: 1.5rem;
  padding: 0.5rem 1rem;
  outline: none;
}

.chat-input button {
  margin-left: 0.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-links {
  flex: 1;
  min-width: 200px;
  margin: 0 15px;
}

.footer-links:first-child {
  margin-left: 0;
}

.footer-links:last-child {
  margin-right: 0;
}

.footer-links h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: white;
}

.footer-copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .chat-window {
    width: 280px;
    right: 0;
    bottom: 70px;
  }
}

/* Product card specific image styles */
.product-card-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.product-image.image-loaded {
  background-image: none;
}

/* Add additional styling for the FAQ section */
#faqAccordion .card-header {
  background-color: #f8f9fa;
  border-bottom: none;
  padding: 0;
}

#faqAccordion .btn-link {
  color: #333;
  font-weight: 600;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  position: relative;
}

#faqAccordion .btn-link:hover,
#faqAccordion .btn-link:focus {
  text-decoration: none;
  color: #0275d8;
}

#faqAccordion .btn-link:not(.collapsed)::after {
  content: "\f068";
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 1.25rem;
}

#faqAccordion .btn-link.collapsed::after {
  content: "\f067";
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 1.25rem;
}

#faqAccordion .card {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.125);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#faqAccordion .card-body {
  padding: 1.25rem 1.5rem;
  background-color: #fff;
  color: #555;
  line-height: 1.6;
}

/* End of FAQ styling */

/* Compatibility and Software section styling */
.compatibility-chart {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.card-header.bg-primary {
  background-color: var(--primary-color) !important;
}

.card .list-group-item {
  border-left: none;
  border-right: none;
}

.card .list-group-item:first-child {
  border-top: none;
}

.card .card-body .card {
  transition: transform 0.2s ease;
}

.card .card-body .card:hover {
  transform: translateY(-3px);
}

.alert-info {
  background-color: rgba(52, 152, 219, 0.1);
  border-color: rgba(52, 152, 219, 0.2);
  color: #2980b9;
}
/* End of Compatibility section styling */

/* Compatibility chart zoom styles */
.compatibility-chart {
  transition: transform 0.2s ease;
  cursor: zoom-in;
}

.compatibility-chart:hover {
  transform: scale(1.02);
}

.modal-xl {
  max-width: 90vw;
}

#zoomedChart {
  max-height: 80vh;
  object-fit: contain;
}

/* End of compatibility chart zoom styles */

/* Social media links styling */
.social-links {
  margin-top: 0.5rem;
}

.social-links li {
  margin-bottom: 0.75rem !important;
}

.social-link {
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.social-link i {
  font-size: 1.25rem;
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
}

.social-link .fab.fa-facebook-f,
.social-link .fab.fa-facebook-square {
  color: #4267B2;
}

.social-link .fab.fa-instagram {
  color: #E1306C;
}

.social-link:hover {
  transform: translateX(3px);
}

.social-link:hover .fab.fa-facebook-f,
.social-link:hover .fab.fa-facebook-square,
.social-link:hover .fab.fa-instagram {
  transform: scale(1.2);
}

@media (max-width: 576px) {
  .social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .social-links li {
    margin-bottom: 0 !important;
  }
  
  .social-link {
    flex-direction: column;
    text-align: center;
  }
  
  .social-link i {
    margin-right: 0;
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
  }
}

/* Footer contact form styling */
.footer-contact-form {
  flex: 2;
  min-width: 300px;
}

.footer-form {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 5px;
}

.footer-form .form-group {
  margin-bottom: 1rem;
}

.footer-form label {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.footer-form .form-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 4px;
  font-size: 0.9rem;
}

.footer-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  outline: none;
}

.footer-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-form textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.footer-form .btn {
  background-color: var(--primary-color);
  border: none;
  padding: 0.5rem 1.5rem;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.footer-form .btn:hover {
  background-color: #2980b9;
}

.form-status {
  font-size: 0.9rem;
}

.form-status.success {
  color: #2ecc71;
}

.form-status.error {
  color: #e74c3c;
}

@media (max-width: 992px) {
  .footer-contact-form {
    flex: 0 0 100%;
    margin-bottom: 2rem;
  }
} 