* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.nav a:hover {
  border-bottom-color: #2c5aa0;
}

.main-content {
  padding: 2rem 0;
  min-height: 60vh;
}

.section {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.index-list {
  list-style: none;
  padding: 0;
}

.index-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.index-list li:hover {
  background-color: #fafafa;
}

.index-list a {
  color: #2c5aa0;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.record-code {
  font-family: monospace;
  color: #666;
  font-size: 0.85rem;
}

.table-wrapper {
  overflow-x: auto;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
}

.products-table thead {
  background-color: #f8f8f8;
  border-bottom: 2px solid #ddd;
}

.products-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  color: #555;
}

.products-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.products-table tr:hover {
  background-color: #fafafa;
}

.product-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.product-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
}

.product-desc {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

.category-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: #f0f0f0;
  font-size: 0.75rem;
  color: #555;
}

.price {
  font-weight: 600;
  color: #2c3e50;
}

.btn {
  padding: 0.5rem 1rem;
  background-color: #2c5aa0;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #234a85;
}

.btn-secondary {
  background-color: #666;
}

.btn-secondary:hover {
  background-color: #555;
}

.principles-list {
  list-style: decimal;
  padding-left: 1.5rem;
}

.principles-list li {
  padding: 0.5rem 0;
  line-height: 1.7;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  background-color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}

.form-control:focus {
  outline: none;
  border-color: #2c5aa0;
}

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

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-wrapper input {
  margin-top: 0.25rem;
}

.footer {
  background-color: #fff;
  border-top: 1px solid #ddd;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.footer-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.footer-section p,
.footer-section a {
  font-size: 0.85rem;
  color: #666;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: #2c5aa0;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: #999;
}

.legend {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #666;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.5rem;
  border: 1px solid #ddd;
  font-size: 0.85rem;
}

.comparison-table th {
  background-color: #f8f8f8;
  font-weight: 600;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border-top: 2px solid #ddd;
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-text {
  font-size: 0.9rem;
  color: #555;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.alert {
  padding: 1.5rem;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  margin-bottom: 1.5rem;
}

.alert h2 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .products-table th,
  .products-table td {
    padding: 1rem;
  }
}

@media (min-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}
