* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo h1 {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.logo p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.contact-info {
  text-align: right;
  font-size: 0.9rem;
}

.contact-info p {
  margin-bottom: 3px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #3d6cb0 0%, #2c5aa0 100%);
  color: white;
  text-align: center;
  padding: 60px 0;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 300;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.quality-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 20px;
}

/* Main Content */
.main-content {
  padding: 40px 0;
}

.filters {
  margin-bottom: 30px;
  text-align: center;
}

.filters h3 {
  font-size: 2.2rem;
  color: #2c5aa0;
  margin-bottom: 20px;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-btn {
  background: #fff;
  border: 2px solid #2c5aa0;
  color: #2c5aa0;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: #2c5aa0;
  color: white;
}

/* Search */
.search-container {
  margin-bottom: 30px;
  text-align: center;
}

#searchInput {
  width: 100%;
  max-width: 400px;
  padding: 12px 20px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

#searchInput:focus {
  border-color: #2c5aa0;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.product-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.product-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c5aa0;
  margin-bottom: 5px;
  flex: 1;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #28a745;
  background: #f8f9fa;
  padding: 8px 15px;
  border-radius: 20px;
  border: 2px solid #28a745;
}

.product-scientific {
  font-style: italic;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.product-details {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.spec-tag {
  background: #e9ecef;
  color: #495057;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.category-tag {
  display: inline-block;
  background: #2c5aa0;
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 10px;
}

.whatsapp-btn {
  background: #25d366;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.whatsapp-btn:hover {
  background: #128c7e;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
  color: white;
  padding: 40px 0 20px;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #fff;
}

.footer-section p {
  margin-bottom: 8px;
  opacity: 0.9;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* GDPR Cookie Consent Styles */
/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(44, 90, 160, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text h4 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
}

.cookie-text p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.cookie-btn.accept {
  background: #28a745;
  color: white;
}

.cookie-btn.accept:hover {
  background: #218838;
}

.cookie-btn.necessary {
  background: #6c757d;
  color: white;
}

.cookie-btn.necessary:hover {
  background: #5a6268;
}

.cookie-btn.settings {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cookie-btn.settings:hover {
  background: white;
  color: #2c5aa0;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 15px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
  margin: 0;
  color: #2c5aa0;
  font-size: 1.4rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: #f8f9fa;
}

.modal-body {
  padding: 25px;
}

.cookie-category {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.category-header h4 {
  margin: 0;
  color: #333;
  font-size: 1.1rem;
}

.cookie-category p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2c5aa0;
}

input:disabled + .slider {
  background-color: #28a745;
  cursor: not-allowed;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.modal-footer {
  padding: 20px 25px;
  border-top: 1px solid #e9ecef;
  text-align: right;
}

/* Privacy Pages Styles */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.privacy-content h1 {
  color: #2c5aa0;
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.privacy-content h2 {
  color: #2c5aa0;
  font-size: 1.5rem;
  margin: 30px 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.privacy-content h3 {
  color: #333;
  font-size: 1.2rem;
  margin: 20px 0 10px 0;
}

.privacy-content p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #555;
}

.privacy-content ul {
  margin: 15px 0;
  padding-left: 25px;
}

.privacy-content li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: #555;
}

.privacy-content section {
  margin-bottom: 30px;
}

.privacy-content a {
  color: #2c5aa0;
  text-decoration: none;
  font-weight: 500;
}

.privacy-content a:hover {
  text-decoration: underline;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
  text-decoration: underline;
}

/* Loading Animation */
.loading {
  text-align: center;
  padding: 50px;
  font-size: 1.2rem;
  color: #2c5aa0;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 50px;
  color: #666;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .contact-info {
    text-align: center;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }

  .product-header {
    flex-direction: column;
    gap: 10px;
  }

  .product-price {
    align-self: flex-start;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }

  .modal-content {
    margin: 10px;
    max-height: 90vh;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .privacy-content {
    margin: 10px;
    padding: 20px 15px;
  }

  .privacy-content h1 {
    font-size: 2rem;
  }
}
