@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.products-section * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

.products-section {
  width: 100%;
  min-height: calc(100vh - 200px);
  padding: 40px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  overflow: hidden;
  animation: pageLoad 0.8s ease-out;
}

@keyframes pageLoad {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.products-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 0 auto 40px;
  padding: 40px;
  max-width: 1300px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0F4C81 0%, #1e5a96 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
}

.page-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 30px;
  font-weight: 500;
}

.filter-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}


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

.filter-btn {
  padding: 10px 20px;
  background: #ffffff;
  color: #64748b;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e2e8f0;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  will-change: transform;
}

.filter-btn:hover {
  background: #f8fafc;
  color: #0F4C81;
  border-color: #0F4C81;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.15);
}

.filter-btn.active {
  background: linear-gradient(135deg, #0F4C81 0%, #1e5a96 100%);
  color: white;
  border-color: #0F4C81;
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.3);
}


.products-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

.category-section {
  margin-bottom: 80px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top center;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.category-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #0F4C81 50%, transparent 100%);
}

.category-section[data-category-display="Unsere Top-Picks"] .category-header::after {
  background: linear-gradient(90deg, transparent 0%, #ff7800 50%, transparent 100%);
}

.category-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0F4C81 0%, #1e5a96 50%, #0F4C81 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 4px rgba(15, 76, 129, 0.1);
  margin-bottom: 4px;
}

.category-section[data-category-display="Unsere Top-Picks"] .category-title {
  background: linear-gradient(135deg, #ff7800 0%, #ff9933 50%, #ff7800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(255, 120, 0, 0.1);
}

.product-count {
  background: linear-gradient(135deg, #0F4C81 0%, #1e5a96 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 4px rgba(15, 76, 129, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
}

.category-section[data-category-display="Unsere Top-Picks"] .product-count {
  background: linear-gradient(135deg, #ff7800 0%, #ff9933 100%);
  box-shadow: 0 2px 4px rgba(255, 120, 0, 0.3);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
  padding: 30px 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card {
  width: 100%;
  max-width: 280px;
  height: 280px;
  margin: 0 auto;
  perspective: 1200px;
  cursor: pointer;
  position: relative;
  border: none;
  outline: none;
  background: transparent;
  border-radius: 16px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.15),
    0 5px 15px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.2),
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 5px 12px rgba(0, 0, 0, 0.12);
}

.top-pick-card {
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.15),
    0 5px 15px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

.top-pick-card:hover {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.2),
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 5px 12px rgba(0, 0, 0, 0.12);
}


.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  border: none;
  outline: none;
  background: transparent;
}

.product-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  border: none;
  outline: none;
  box-sizing: border-box;
  box-shadow: none;
}

.card-front {
  z-index: 2;
  transform: rotateY(0deg);
  background: #ffffff;
}

.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #0F4C81 0%, #1e5a96 100%);
  padding: 25px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.top-pick-back {
  background: linear-gradient(135deg, #ff7800 0%, #ff9933 100%);
}

.card-back *,
.card-back *::before,
.card-back *::after {
  border: none;
  outline: none;
}


.card-back-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  color: #ffffff;
  text-align: center;
  position: relative;
  z-index: 2;
  border: none;
  outline: none;
  padding-top: 10px;
}

.card-back-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(255, 255, 255, 0.1);
}

.card-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  overflow: hidden;
  text-align: center;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 0 10px rgba(255, 255, 255, 0.05);
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.card-back-button {
  display: inline-block;
  padding: 11px 26px;
  background: #ffffff;
  color: #0F4C81;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.25s ease;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.3),
    0 3px 8px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  margin: 0 auto;
  width: fit-content;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.top-pick-button {
  color: #ff7800;
}

.card-back-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(15, 76, 129, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.top-pick-button::before {
  background: rgba(255, 120, 0, 0.1);
}

.card-back-button:hover::before {
  width: 300px;
  height: 300px;
}

.card-back-button:hover {
  background: #f8fafc;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.4),
    0 6px 12px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(255, 255, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #0F4C81;
  text-decoration: none;
}

.top-pick-button:hover {
  color: #ff7800;
}

.card-back-button:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s ease;
}

.card-image {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  border: none;
  border-radius: 0;
  margin: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  position: relative;
  z-index: 2;
  border-radius: 4px;
}

.card-tag-blue {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #0F4C81 0%, #1e5a96 100%);
  color: #fff;
  font-size: 0.6rem;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 4px rgba(15, 76, 129, 0.3);
  z-index: 3;
}

.card-tag-green {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #0F4C81 0%, #1e5a96 100%);
  color: #fff;
  font-size: 0.6rem;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 4px rgba(15, 76, 129, 0.3);
  z-index: 3;
}

.card-tag-orange {
  background: linear-gradient(135deg, #ff7800 0%, #ff9933 100%);
  box-shadow: 0 2px 4px rgba(255, 120, 0, 0.3);
}

.card-content {
  padding: 12px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  position: relative;
}

.card-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.3;
  text-align: center;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #475569 50%, #0f172a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.top-pick-title {
  background: linear-gradient(135deg, #ff7800 0%, #cc6000 50%, #ff7800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.card-price {
  margin-bottom: 10px;
  margin-top: 6px;
  text-align: center;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.08) 0%, rgba(30, 90, 150, 0.08) 100%);
  border-radius: 8px;
  border: 1px solid rgba(15, 76, 129, 0.15);
  position: relative;
  overflow: hidden;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.top-pick-price {
  background: linear-gradient(135deg, rgba(255, 120, 0, 0.12) 0%, rgba(255, 153, 51, 0.12) 100%);
  border: 1px solid rgba(255, 120, 0, 0.25);
}

.card-price::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
}

.product-card:hover .card-price::before {
  left: 100%;
}

.card-action-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  margin-top: auto;
  background: linear-gradient(135deg, #0F4C81 0%, #1e5a96 100%);
  border-radius: 8px;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(15, 76, 129, 0.3),
    0 1px 3px rgba(15, 76, 129, 0.2);
}

.top-pick-action {
  background: linear-gradient(135deg, #ff7800 0%, #ff9933 100%);
  box-shadow:
    0 2px 8px rgba(255, 120, 0, 0.3),
    0 1px 3px rgba(255, 120, 0, 0.2);
}

.product-card:hover .card-action-hint {
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(15, 76, 129, 0.4),
    0 2px 6px rgba(15, 76, 129, 0.3);
}

.product-card:hover .top-pick-action {
  box-shadow:
    0 4px 12px rgba(255, 120, 0, 0.4),
    0 2px 6px rgba(255, 120, 0, 0.3);
}

.hint-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.product-card:hover .hint-text {
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0F4C81 0%, #1e5a96 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.025em;
}

.top-pick-price-text {
  background: linear-gradient(135deg, #ff7800 0%, #ff9933 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.no-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results-content {
  max-width: 500px;
  margin: 0 auto;
}

.no-results i {
  font-size: 4rem;
  color: #d1d5db;
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 1.5rem;
  color: #374151;
  margin-bottom: 10px;
}

.no-results p {
  color: #6b7280;
  margin-bottom: 30px;
}

.products-section .btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.products-section .btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-2px);
}

.products-section .filter-btn {
  position: relative;
  overflow: hidden;
}

.products-section .filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.products-section .filter-btn:hover::before,
.products-section .filter-btn.active::before {
  left: 100%;
}

.products-section .filter-btn:active {
  transform: scale(0.98);
}


@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .products-section {
    padding: 20px 0;
  }

  .products-header {
    margin: 0 15px 25px;
    padding: 25px 15px;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 0.95rem;
  }

  .filter-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
  }

  .filter-buttons {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: min-content;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .products-content {
    padding: 0 15px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 20px 0;
  }

  .category-section {
    padding: 20px 15px;
    margin-bottom: 40px;
  }

  .category-header {
    margin-bottom: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .product-count {
    align-self: flex-start;
  }

  .product-card {
    max-width: 100%;
    height: 260px;
  }

  .card-image {
    height: 90px;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-price {
    font-size: 0.85rem;
    padding: 5px 12px;
  }

  .card-action-hint {
    padding: 8px 14px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.75rem;
  }

  .page-subtitle {
    font-size: 0.9rem;
  }

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

  .product-card {
    height: 240px;
  }

  .card-image {
    height: 80px;
  }

  .card-image img {
    max-width: 70px;
    max-height: 70px;
  }

  .card-title {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .card-price {
    font-size: 0.8rem;
    padding: 4px 10px;
  }

  .price {
    font-size: 1rem;
  }

  .card-action-hint {
    padding: 6px 12px;
  }

  .hint-text {
    font-size: 0.7rem;
  }

  .category-section {
    padding: 15px 10px;
    margin-bottom: 30px;
  }

  .category-title {
    font-size: 1.3rem;
  }

  .product-count {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}
