:root {
  --light-blue: #d9e6f2;
  --soft-blue: #a3b9d1;
  --mid-blue: #6e88af;
  --primary-blue: #4b6b91;
  --dark-blue: #2f4b6f;
  --orange-gradient: linear-gradient(to right, #d55a2a, #e47833);
  --card-bg: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--dark-blue);
  color: var(--light-blue);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
.ae-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--primary-blue);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ae-logo {
  height: 50px;
}

.ae-nav-links {
  display: flex;
  gap: 1.5rem;
}

.ae-nav-link {
  color: var(--light-blue);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.ae-nav-link:hover {
  color: var(--orange-gradient);
}

.ae-nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--light-blue);
  cursor: pointer;
}

/* Hero */
.hero {
  background: url('https://images.hdqwalls.com/wallpapers/landscape-alpine-mountains-landscape-5k-1k.jpg') no-repeat center center/cover;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  background-attachment: fixed;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(15, 28, 46, 0.6);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeIn 2s ease-out;
}

.hero h1 {
  font-size: 3rem;
  color: var(--light-blue);
  font-weight: 700;
  text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
}

.cta-button {
  background: var(--orange-gradient);
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover {
  opacity: 0.95;
  box-shadow: 0 0 15px rgba(229, 120, 51, 0.8), 0 0 30px rgba(229, 120, 51, 0.6);
  transform: scale(1.05);
}

/* Main Layout */
.main-content {
  display: flex;
  padding: 2rem;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

aside.filters {
  flex: 1;
  max-width: 220px;
  background-color: rgba(28, 40, 51, 0.9);
  padding: 1rem;
  border-radius: 12px;
}

aside h3 {
  margin-bottom: 1rem;
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-group label {
  display: block;
  margin: 0.3rem 0;
  cursor: pointer;
}

.filter-group input,
.filter-group select {
  margin-right: 0.5rem;
}

section.products {
  flex: 4;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/* Product cards */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  width: 260px;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--light-blue);
}

.card p {
  font-size: 0.85rem;
  color: var(--soft-blue);
  margin-bottom: 0.5rem;
  flex: 1;
  overflow: hidden;
}

.card .price {
  font-weight: bold;
  color: var(--orange-gradient);
  margin-bottom: 0.5rem;
}

.card a.cta-button {
  width: 100%;
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  display: inline-block;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: var(--soft-blue);
  text-align: center;
  padding: 2rem 1rem;
}

footer a {
  color: var(--soft-blue);
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    align-items: center;
  }

  aside.filters {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
