@import url('https://fonts.googleapis.com/css2?family=Public Sans:wght@300;400;500;600;700&display=swap');

/* BODY */
body {
  background: #0BA045;
  font-family: 'Public Sans', sans-serif;
  margin: 0;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 10px;
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  height: 60px; /* FIXED HEIGHT */
  padding: 0 15px;

  background: #0BA045;
  color: white;

  position: sticky;
  top: 0;
  z-index: 10;

  box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* depth */
}

.logo {
  font-size: 20px;
}

/* ICONS */
.icons {
  display: flex;
  gap: 10px;
}

.icons button {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 8px;
  border-radius: 10px;
}

/* HERO */
.hero {
  text-align: center;
  margin: 20px 0;
}

.hero input {
  padding: 12px;
  border-radius: 20px;
  border: none;
  width: 80%;
  max-width: 400px;
}

.categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;

  padding: 10px;

  position: sticky;
  top: 60px;
  z-index: 15;

  background: #0BA045;

  scroll-snap-type: x mandatory;
}

.categories button {
  flex-shrink: 0;
  scroll-snap-align: start;

  white-space: nowrap;

  padding: 8px 14px;

  border-radius: 20px;
  border: none;

  background: rgba(255,255,255,0.15);
  color: white;

  font-size: 13px;
  font-weight: 600;

  transition: 0.2s ease;

  backdrop-filter: blur(5px);
}

.categories::-webkit-scrollbar {
  display: none;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* TABLET */
@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* DESKTOP */
@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CARD */
.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  color: black;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* IMAGE */
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* INFO */
.info {
  padding: 10px;
}

.info h3 {
  margin: 0;
  font-size: 20px;
}

.price {
  color: #25D366;
  font-weight: bold;
  font-size: 20px;
}

.meta {
  font-size: 11px;
  color: gray;
}

/* BUTTON */
.info button {
  width: 100%;
  padding: 8px;
  border-radius: 12px;
  border: none;
  background: #25D366;
  color: white;
  margin-top: 8px;
}

/* FEATURE BOX */
.free {
  background: white;
  color: black;
  padding: 15px;
  border-radius: 16px;
}

.free button {
  border-radius: 20px;
  background-color: green;
  padding: 7px 20px;
  font-size: 14px;
  color: white;
  border: none;
}

/* FULL WIDTH ON DESKTOP */
@media (min-width: 900px) {
  .free {
    grid-column: span 3;
  }
}

/* FOOTER */
.footer {
  text-align: center;
  color: white;
  margin-top: 20px;
}

i {
  margin-right: 6px;
}

button {
  padding: 10px 15px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}



.categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;

  padding: 10px;

  position: sticky;
  top: 60px;
  z-index: 15;

  background: #0BA045;

  scroll-snap-type: x mandatory;
}

.categories button {
  flex-shrink: 0;
  white-space: nowrap;
  scroll-snap-align: start;

  border-radius: 20px;
  border: none;

  padding: 8px 15px;

  background: white;
  color: #0BA045;

  font-weight: bold;
}
/* CARD BUTTON HOVER */
.info button:hover {
  background: #1ebe5d;
}

/* STRONGER CARD LOOK */
.card {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* MAKE BUTTON BIGGER ON MOBILE */
@media (max-width: 600px) {
  .info button {
    padding: 12px;
    font-size: 14px;
  }
}

/* HERO IMPROVEMENT */
.hero h2 {
  color: white;
  font-size: 22px;
  margin-bottom: 10px;
}

/* SEARCH BAR IMPROVED */
.hero input {
  width: 90%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* FREE BOX STRONGER */
.free {
  border: 2px solid #25D366;
}

/* CLICK FEEDBACK */
button:active {
  transform: scale(0.97);
}

/* VERIFIED BADGE */
.verified {
  font-size: 10px;
  background: #25D366;
  color: white;
  padding: 3px 6px;
  border-radius: 10px;
  margin-left: 5px;
}

/* URGENCY TEXT */
.urgency {
  font-size: 20px;
  color: red;
  font-weight: bold;
  margin-top: 5px;
}

/* HOT DEAL STYLE */
.urgency.hot {
  color: orange;
}

/* IMPROVE TITLE ALIGNMENT */
.info h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
}

/* BUTTON STRONGER */
.info button {
  font-size: 14px;
}

/* IMAGE WRAP */
.img-wrap {
  position: relative;
}

/* LOCATION BADGE */
.location {
  position: absolute;
  top: 10px;
  right: 10px; /* FIXED */

  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 11px;

  padding: 5px 10px;
  border-radius: 20px;

  backdrop-filter: blur(4px);
}

/* OPTIONAL: slight image polish */
.img-wrap img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
  scroll-snap-type: x mandatory;
}

.categories button {
  scroll-snap-align: start;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-title {
  color: white;
  font-size: 16px;
  margin: 10px 0;
  
}

/* LOGO WRAP */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* LOGO IMAGE */
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid white;
}

/* LOGO TEXT */
.logo-text {
  font-size: 18px;
  font-weight: bold;
  color: white;
}

@media (max-width: 600px) {
  .logo-img {
    width: 38px;
    height: 38px;
  }

  .logo-text {
    font-size: 16px;
  }
}
