html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: #111;
  font-family: "Georgia", "Times New Roman", serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* HEADER diperkecil */
.site-header {
  background: #111;
  color: #fff;
  padding: 10px 0;
}

.site-header .title {
  font-size: 18px;
  margin: 0;
  letter-spacing: 1px;
}

.site-header .subtitle {
  font-size: 12px;
  margin: 0;
  opacity: 0.8;
}
.banner {
  background-image: url("bannerImage/banner.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 60px 0;
  position: relative;
}

/* overlay biar teks kebaca */
.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.banner p {
  font-size: 13px;
  margin: 0;
  opacity: 0.9;
}


.site-footer {
  background: #111;
  color: #fff;
  padding: 18px 0;
  margin-top: 40px;
  font-size: 12px;
  line-height: 1.4;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;

  width: fit-content;
  margin: 0 auto;
}

.footer-grid a {
  color: #fff;
  text-decoration: none;
  opacity: 0.75;
}

.footer-grid a:hover {
  opacity: 1;
}

.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  margin-bottom: 6px;
}

.footer-bottom {
  text-align: center;
  margin-top: 12px;
  font-size: 11px;
  opacity: 0.5;
}
.card {
  border: 1px solid #ddd;
  background: #fff;
  height: 100%;
}

.card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  filter: grayscale(100%);
}

.card-body {
  padding: 10px;

  display: flex;
  flex-direction: column;

  height: 100%;
}

.card h5 {
  font-size: 14px;
  margin: 0;
  font-weight: 700;
  line-height: 1.3;

  min-height: 38px;

  display: flex;
  align-items: flex-start;
}
.card p {
  font-size: 12px;
  margin: 0;

  line-height: 1.5;

  min-height: 38px;
  max-height: 38px;

  overflow-y: auto;
  overflow-x: hidden;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


.price {
  font-size: 13px;
  font-weight: 600;

  margin-top: auto;
  padding-top: 6px;
}

.search-bar-wrapper {
  width: 100%;
}
.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  position: relative;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 14px;
  font-size: 14px;
}

.sort-dropdown {
  position: relative;
}

#sort-toggle {
  width: 50px;
  height: 48px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}

.sort-menu {
  position: absolute;
  top: 55px;
  right: 0;
  width: 180px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  display: none;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.sort-menu div {
  padding: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.sort-menu div:hover {
  background: #f5f5f5;
}

.card p::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.card p {
  scrollbar-width: none;
}