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

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --background: #ffffff;
  --background-alt: #f9fafb;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --hover-color: #1d4ed8;
  --danger-color: #ef4444;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--background);
}

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-dark);
  color: white;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: none;
}

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

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

.cookie-content p {
  margin: 0;
  flex: 1;
  min-width: 250px;
}

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

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.3s ease;
}

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

/* Header */
.header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.logo h1 {
  font-size: 24px;
  color: var(--primary-color);
  font-weight: 700;
  margin: 0;
  transition: opacity 0.3s ease;
}

.logo a:hover h1 {
  opacity: 0.8;
}

.logo a:hover .logo-img {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 20px;
  opacity: 0.95;
}

/* Main Content */
.main-content {
  padding: 60px 0;
}

.section {
  margin-bottom: 80px;
}

.section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--text-dark);
}

.section-alt {
  background: var(--background-alt);
  padding: 60px 20px;
  margin-left: -20px;
  margin-right: -20px;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.article-image {
  width: 100%;
  height: auto;
  overflow: hidden;
  margin: 0;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card figure {
  margin: 0;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.product-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 24px;
}

.article-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
  line-height: 1.3;
}

.article-meta {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.article-content p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--hover-color);
}

/* News List */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  background: white;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 16px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.news-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.news-item p {
  color: var(--text-light);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1.5fr 2fr 2fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}

@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
  transition: opacity 0.3s ease;
}

.footer-section a:hover .footer-logo {
  opacity: 0.8;
}

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

.footer-section p {
  margin: 0 0 8px 0;
  color: #d1d5db;
}

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

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}

/* Legal Pages */
.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.legal-header {
  text-align: center;
  margin-bottom: 40px;
}

.legal-header h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.legal-header p {
  color: var(--text-light);
  font-size: 16px;
}

.legal-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 32px 0 16px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 24px 0 12px;
}

.legal-content p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
  color: var(--text-light);
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.legal-content strong {
  color: var(--text-dark);
  font-weight: 600;
}

.legal-content .article-image {
  max-width: 1000px;
  margin: 0 auto 32px;
}

.legal-content .article-image img {
  width: 100%;
  height: auto;
  min-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 16px;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .logo-img {
    height: 32px;
  }

  .logo h1 {
    font-size: 20px;
  }

  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }

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

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

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

  .legal-content {
    padding: 24px;
  }

  .legal-header h1 {
    font-size: 32px;
  }

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

  /* Product detail pages responsive */
  .legal-container > div > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 20px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .legal-content {
    padding: 20px;
  }
}

/* Shop & Cart Styles - Hidden */
.cart-icon,
.cart-sidebar,
#checkout-modal,
.products-grid,
.product-card,
.btn-add-cart {
  display: none !important;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 8px;
  background: var(--danger-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

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

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.product-card > a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card > a:hover {
  text-decoration: none;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.product-description {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 16px;
  min-height: 40px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 0px 20px 10px;
}

.price {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
}

.btn-add-cart {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-add-cart:hover {
  background: var(--hover-color);
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
  font-size: 24px;
  color: var(--text-dark);
}

.close-cart {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.close-cart:hover {
  color: var(--text-dark);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.empty-cart {
  text-align: center;
  color: var(--text-light);
  padding: 40px 20px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.cart-item-price {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 8px;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  background: var(--background-alt);
  border: 1px solid var(--border-color);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.qty-btn:hover {
  background: var(--border-color);
}

.remove-item {
  background: var(--danger-color);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: opacity 0.3s ease;
}

.remove-item:hover {
  opacity: 0.8;
}

.cart-footer {
  border-top: 1px solid var(--border-color);
  padding: 20px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
}

.btn-checkout {
  width: 100%;
  background: var(--success-color);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.btn-checkout:hover {
  opacity: 0.9;
}

.btn-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1002;
  overflow-y: auto;
  padding: 40px 20px;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  padding: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 32px;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--text-dark);
}

.modal-content h2 {
  margin-bottom: 24px;
  color: var(--text-dark);
}

.form-section {
  margin-bottom: 32px;
}

.form-section h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-dark);
}

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

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

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.payment-options {
  display: grid;
  gap: 12px;
}

.payment-option {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.payment-option:hover {
  background: var(--background-alt);
}

.payment-option input[type="radio"] {
  margin-right: 12px;
}

.payment-option input[type="radio"]:checked + span {
  font-weight: bold;
}

.payment-option:has(input[type="radio"]:checked) {
  border-color: var(--primary-color);
  background: var(--background-alt);
}

.order-summary {
  background: var(--background-alt);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.order-summary h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
  border-top: 2px solid var(--text-dark);
  border-bottom: none;
  font-size: 20px;
  font-weight: bold;
  margin-top: 8px;
  padding-top: 16px;
}

.btn-submit-order {
  width: 100%;
  background: var(--success-color);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.btn-submit-order:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 24px;
  }
}
