:root {
  --primary-blue: #0066CC;
  --accent-orange: #FF6600;
  --accent-green: #28A745;
  --bg-gray: #F5F5F5;
  --text-dark: #333;
  --text-gray: #666;
  --border-gray: #E0E0E0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
}

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

header {
  background: #fff;
  border-bottom: 2px solid var(--border-gray);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
  letter-spacing: -1px;
}

.search-bar {
  flex: 1;
  max-width: 500px;
  min-width: 250px;
}

.search-bar input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid var(--border-gray);
  border-radius: 25px;
  font-size: 15px;
}

.header-nav {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.header-nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s;
}

.header-nav a:hover {
  background: var(--bg-gray);
  color: var(--primary-blue);
}

.section {
  padding: 50px 0;
}

.section-alt {
  background: var(--bg-gray);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 30px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.category-card {
  background: #fff;
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0,102,204,0.1);
  transform: translateY(-2px);
}

.category-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary-blue);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-green);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 15px;
  background: #fff;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
  min-height: 50px;
}

.product-description {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 15px;
  flex-grow: 1;
  line-height: 1.5;
}

.product-category {
  display: inline-block;
  background: var(--bg-gray);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.btn-primary {
  background: var(--primary-blue);
  color: #fff;
}

.btn-primary:hover {
  background: #0052A3;
  transform: scale(1.02);
}

.btn-orange {
  background: var(--accent-orange);
  color: #fff;
}

.btn-orange:hover {
  background: #E55A00;
}

.btn-block {
  display: block;
  width: 100%;
}

.ranking-list {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-gray);
}

.ranking-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-gray);
  transition: all 0.3s;
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-item:hover {
  background: var(--bg-gray);
}

.ranking-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-right: 20px;
}

.ranking-info {
  flex: 1;
}

.ranking-info h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.ranking-info p {
  font-size: 14px;
  color: var(--text-gray);
}

.ranking-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-right: 15px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.review-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-gray);
}

.review-author {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.review-date {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 12px;
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
}

.faq-list {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  border: 1px solid var(--border-gray);
}

.faq-item {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-gray);
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.faq-answer {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.6;
}

.cta-section {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0052A3 100%);
  color: #fff;
}

.cta-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.comparison-table {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-gray);
}

.comparison-table th,
.comparison-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-gray);
}

.comparison-table th {
  background: var(--bg-gray);
  font-weight: 600;
  color: var(--text-dark);
}

.comparison-table tbody tr:hover {
  background: var(--bg-gray);
}

.products-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  margin-top: 30px;
}

.sidebar {
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 25px;
  height: fit-content;
  position: sticky;
  top: 120px;
}

.sidebar h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-gray);
}

.sidebar ul li:last-child {
  border-bottom: none;
}

.sidebar ul li a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s;
}

.sidebar ul li a:hover {
  color: var(--primary-blue);
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-gray);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

.checkbox-group label {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 0;
}

.thank-you-box {
  max-width: 600px;
  margin: 100px auto;
  text-align: center;
  background: #fff;
  padding: 60px 40px;
  border-radius: 8px;
  border: 2px solid var(--accent-green);
}

.thank-you-box h1 {
  color: var(--accent-green);
  margin-bottom: 20px;
  font-size: 32px;
}

.thank-you-box p {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 30px;
  line-height: 1.6;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
}

.legal-content h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.legal-content h2 {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.legal-content h3 {
  font-size: 20px;
  margin-top: 25px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.legal-content p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--text-gray);
}

.legal-content ul {
  margin-bottom: 15px;
  padding-left: 25px;
}

.legal-content ul li {
  margin-bottom: 8px;
  color: var(--text-gray);
}

footer {
  background: var(--text-dark);
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #555;
  color: #999;
  font-size: 14px;
}

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

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

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cookie-text {
  flex: 1;
  min-width: 250px;
}

.cookie-text p {
  margin-bottom: 5px;
  font-size: 14px;
}

.cookie-text a {
  color: var(--primary-blue);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.accept-all {
  background: var(--accent-green);
  color: #fff;
}

.accept-all:hover {
  background: #218838;
}

.reject-all {
  background: var(--bg-gray);
  color: var(--text-dark);
}

.reject-all:hover {
  background: var(--border-gray);
}

@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
  }

  .search-bar {
    max-width: 100%;
  }

  .logo {
    font-size: 28px;
  }

  .section-title {
    font-size: 24px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
  }

  .cta-section h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
