body {
  line-height: 1.6;
  color: var(--text-color);
}

body a {
  text-decoration: none;
  color: var(--primary-color);
}

ul {
  list-style: none;
}

/* ========== Banner ========== */
.flat-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.flat-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: zoomBanner 10s ease-in-out infinite alternate;
}

@keyframes zoomBanner {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

/* Always a heading, <h1> or <h2>; clear the default heading margin so the
   caption keeps its position over the banner. */
.banner-title {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-shadow: 1px 1px 2px black;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  margin: 0;
}

/* ========== Product Grid ========== */
.product-content {
  width: 100%;
  z-index: 1;
  padding: 0 40px;
}

.product-grid {
  /* display: grid; */
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 40px 0;
}

/* ========== Product Card ========== */
.product-card {
  background-color: #f9f9f9;
  color: #333;
  border-radius: 12px;
  min-height: 400px;
  overflow: hidden;
  width: 380px;
  display: flex;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card img.product-img {
  width: 100%;
  object-fit: cover;
  height: 150px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.product-card .card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card h2,

.product-card h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 10px;
}

.product-card ul {
  padding-left: 20px;
  line-height: 1.8;
}

/* Optional Link Style */
.link_editing a {
  color: var(--primary-color);
  text-decoration: none;
}

.link_editing a:hover {
  color: var(--secondary-color);
}

/* Extra Image Styling */
.detailed-image {
  position: relative;
  border-radius: 10px;
  box-shadow: #f4f6f7;
  height: 100px;
  width: 200px;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
  .main-container {
    grid-template-columns: 1fr;
  }

  .products-sidebar {
    position: static;
    box-shadow: none;
    border: none;
    margin-bottom: 30px;
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }

  .flat-banner {
    height: 200px;
  }

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