body {
  background-color: #f5f7fa;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

main.container {
  max-width: 1140px;
  background-color: #fff;
  margin: 0 auto;
  padding: 25px 30px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  box-sizing: border-box;
  min-height: 320px;
  flex: 1 0 auto;
}

.layout-flex {
  display: flex;
  gap: 20px;
  align-items: stretch;
  height: 320px;
}

.categories-col {
  width: 380px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.categories-col h3 {
  margin: 0 0 12px 0;
  font-weight: 700;
  font-size: 1.15rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
  user-select: none;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex-grow: 1;
}

.category-list li {
  margin-bottom: 3px;
}

.category-list li:last-child {
  margin-bottom: 0;
}

.category-list li a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  padding: 5px 6px;
  border-radius: 4px;
  transition: background-color 0.25s, color 0.25s;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-list li a:hover {
  background-color: #007bff;
  color: #fff;
}

.category-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  object-fit: contain;
  border-radius: 3px;
  border: 1px solid #ddd;
  background: #fff;
}

.slider-col {
  flex-grow: 1;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-height: 320px;
  position: relative;
}

.swiper {
  height: 320px;
  width: 100%;
  position: relative;
}

.swiper-slide {
  height: 320px;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
  margin: 0;
  padding: 0;
  user-select: none;
}

@media (max-width: 767.98px) {
  main.container {
    padding: 15px 15px;
    min-height: auto;
    height: auto;
  }
  .layout-flex {
    flex-direction: column;
    height: auto;
    gap: 15px;
  }
  .categories-col {
    display: none !important;
  }
  .slider-col {
    max-height: none;
    height: auto;
    box-shadow: none;
  }
  .swiper, .swiper-slide {
    height: auto !important;  /* মোবাইলে স্বয়ংক্রিয় উচ্চতা */
  }
  .swiper-slide img {
    height: auto !important;
    max-height: 180px; /* মোবাইল ভিউতে ছবি সর্বোচ্চ এই উচ্চতা */
    width: 100%;
    object-fit: cover; /* ছবির ফ্রেম পুরো ঢেকে যাবে */
  }
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main.container {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}