:root {
  --green: #3bb77e;
  --light: #eaf7ef;
  --text: #253d4e;
  --muted: #7e7e7e;
  --border: #eaeaea;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui;
}

body {
  background: #fff;
  color: var(--text);
}

/* ===== BANNER ===== */
.banner {
  margin: 30px;
  padding: 40px;
  border-radius: 22px;

  /* Background image + color */
  background: url("https://nest-frontend-v6.vercel.app/assets/imgs/blog/header-bg.png");

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  color: #253d4e;
}

.banner h1 {
  font-size: 38px;
}

.breadcrumb {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumb a{
  color: var(--muted);
  text-decoration: none;
}
.tags {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  background: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #dff3e9;
  color: var(--green);
  font-size: 14px;
}
.tag a{
  color: var(--green);
  text-decoration: none;
}
/* ===== LAYOUT ===== */
.wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  padding: 30px;
}

@media (max-width: 992px) {
  .wrapper {
    grid-template-columns: 1fr;
  }
}

/* ===== TOP BAR ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

select {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* ===== PRODUCT GRID ===== */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}

/* ===== PRODUCT CARD ===== */
.card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #eef0ef;
  padding: 18px;
  position: relative;
  /* REQUIRED */
  transition: 0.35s ease;
}

.card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px);
}

/* ===== BADGE (FIXED) ===== */
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  /* 🔥 FIX */
  padding: 6px 14px;
  font-size: 13px;
  color: #fff;
  border-radius: 0 14px 14px 14px;
  font-weight: 500;
  text-transform: capitalize;
}

.hot {
  background: #f74b81;
}

.sale {
  background: #67bcee;
}

.new {
  background: #3bb77e;
}

.discount {
  background: #f59758;
}

/* ===== IMAGE ===== */
.card-img {
  position: relative;
  height: 200px;
  background: #f7f8f9;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  transition: 0.4s ease;
}

.card:hover img {
  transform: scale(1.08);
}

/* ===== HOVER ACTIONS ===== */
.card-actions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.card:hover .card-actions {
  opacity: 1;
  pointer-events: auto;
}

.card-actions button {
  border: none;
  background: none;
  padding: 12px 14px;
  font-size: 18px;
  cursor: pointer;
  color: var(--green);
}

.card-actions button:not(:last-child) {
  border-right: 1px solid #eee;
}

/* ===== CONTENT ===== */
.card-content {
  margin-top: 14px;
}

.card small {
  color: var(--muted);
  font-size: 13px;
}

.card h4 {
  font-size: 17px;
  margin: 6px 0;
}
.card h4 a {
  color: inherit;
  text-decoration: none;
}
.vendor {
  font-size: 13px;
  color: #999;
}

.rating {
  color: #ffb300;
  font-size: 14px;
}

.rating span {
  color: #999;
  font-size: 13px;
  margin-left: 4px;
}

.price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.price strong {
  font-size: 20px;
  color: var(--green);
}

.price del {
  font-size: 14px;
  color: #aaa;
  margin-left: 6px;
}

.add {
  background: #eaf7ef;
  color: var(--green);
  padding: 8px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
 
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 8px;
  margin: 40px 0;
}

.pagination span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  cursor: pointer;
}

.pagination .active {
  background: var(--green);
  color: #fff;
}

/* ===== SIDEBAR ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.box {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.box h3 {
  font-size: 18px;
  margin-bottom: 14px;
}

.box label {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
}

.box label:hover {
  background: #f8f8f8;
}

input[type="checkbox"] {
  accent-color: var(--green);
}

.range {
  width: 100%;
  margin: 10px 0;
}

.filter-btn {
  width: 100%;
  padding: 10px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* ===== DEALS SECTION ===== */
.deals-section {
  padding: 40px 30px;
}

.deals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.deals-header h2 {
  font-size: 32px;
  color: #253d4e;
}

.deals-header a {
  color: #3bb77e;
  text-decoration: none;
  font-size: 14px;
}

.deals-wrapper {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 25px;
}

@media (max-width: 992px) {
  .deals-wrapper {
    grid-template-columns: 1fr;
  }
}

/* ===== DEAL GRID ===== */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* ===== DEAL CARD ===== */
.deal-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
}

.deal-card:hover {
  transform: translateY(-6px);
}

.deal-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* TIMER */
.timer {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.timer div {
  background: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: center;
  min-width: 55px;
}

.timer strong {
  display: block;
  color: #3bb77e;
  font-size: 18px;
}

.timer span {
  font-size: 12px;
  color: #7e7e7e;
}

/* CONTENT */
.deal-content {
  padding: 40px 20px 20px;
}

.deal-content h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.deal-content small {
  color: #999;
}

.rating {
  color: #ffb300;
  font-size: 14px;
  margin: 6px 0;
}

.price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.price strong {
  color: #3bb77e;
  font-size: 18px;
}

.price del {
  color: #aaa;
  font-size: 14px;
}

.add {
  background: #eaf7ef;
  color: #3bb77e;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}

/* ===== PROMO ===== */
.deal-promo {
  background: #f4efe0;
  border-radius: 18px;
  padding: 25px;
  position: relative;
  overflow: hidden;
}

.deal-promo span {
  font-size: 14px;
  color: #999;
}

.deal-promo h3 {
  font-size: 22px;
  margin: 10px 0;
}

.deal-promo h3 span {
  color: #3bb77e;
}

.deal-promo img {
  width: 100%;
  margin-top: 20px;
}

/* ================= HERO ================= */
.hero-wrap {
  padding: 30px;
}

.hero-main {
  background:
    linear-gradient(rgba(234, 247, 239, 0.95), rgba(234, 247, 239, 0.95)),
    url("https://nest-frontend-v6.vercel.app/assets/imgs/banner/banner-bg.png");
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero-content h1 {
  font-size: 44px;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #253d4e;
}

.hero-content p {
  font-size: 16px;
  color: #7e7e7e;
  margin-bottom: 30px;
}

.hero-content span {
  color: #3bb77e;
}

/* SUBSCRIBE */
.subscribe-box {
  background: #fff;
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 50px;
  max-width: 420px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.subscribe-box i {
  font-size: 20px;
  margin: 0 12px;
  color: #7e7e7e;
}

.subscribe-box input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
}

.subscribe-box button {
  background: #3bb77e;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 40px;
  font-size: 14px;
  cursor: pointer;
}

/* IMAGE */
.hero-image {
  position: relative;
  text-align: right;
}

.delivery {
  width: 80%;
  z-index: 2;
  position: relative;
}

/* FLOATING VEGETABLES */
.float {
  position: absolute;
  animation: float 4s ease-in-out infinite;
}

.veg1 {
  top: 10%;
  left: 10%;
  width: 70px;
}

.veg2 {
  top: 20%;
  right: 20%;
  width: 60px;
}

.veg3 {
  bottom: 15%;
  left: 20%;
  width: 80px;
}

.veg4 {
  bottom: 25%;
  right: 35%;
  width: 50px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* FEATURES */
.hero-features {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature {
  background: #f4f6f8;
  padding: 18px;
  border-radius: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.feature i {
  font-size: 30px;
  color: #3bb77e;
}

.feature h4 {
  font-size: 16px;
}

.feature p {
  font-size: 13px;
  color: #7e7e7e;
}

/* MOBILE */
/* ================= HERO RESPONSIVE FIX ================= */

/* Tablets */
@media (max-width: 992px) {
  .hero-main {
    grid-template-columns: 1fr;
    padding: 40px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 36px;
    line-height: 1.3;
  }

  .hero-image {
    margin-top: 30px;
    text-align: center;
  }

  .delivery {
    width: 65%;
  }

  .subscribe-box {
    margin: 0 auto;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero-wrap {
    padding: 15px;
  }

  .hero-main {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 1.35;
  }

  .hero-content p {
    font-size: 14px;
    margin-bottom: 22px;
  }

  /* STACK INPUT + BUTTON */
  .subscribe-box {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
  }

  .subscribe-box i {
    display: none;
  }

  .subscribe-box input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
  }

  .subscribe-box button {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    font-size: 15px;
  }

  /* IMAGE ADJUST */
  .hero-image {
    margin-top: 25px;
  }

  .delivery {
    width: 80%;
  }

  /* HIDE FLOATING ITEMS ON MOBILE */
  .float {
    display: none;
  }

  /* FEATURES STACK */
  .hero-features {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .banner {
    margin: 15px;
    padding: 25px;
  }

  .wrapper {
    padding: 15px;
  }
}
/* ================= MOBILE: 2 PRODUCTS PER ROW ================= */
@media (max-width: 600px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .card {
    padding: 12px;
    border-radius: 16px;
  }

  .card-img {
    height: 150px;
  }

  .card h4 {
    font-size: 14px;
    line-height: 1.3;
  }

  .price strong {
    font-size: 16px;
  }

  .add {
    padding: 6px 10px;
    font-size: 12px;
  }
}
