/* =========================
   EXTRA SMALL (320px)
========================= */
@media (max-width: 360px) {
  .wrap {
    padding: 0 10px;
  }

  .logo {
    font-size: 14px;
  }

  .tag {
    display: none;
  }

  .hero h1 {
    font-size: 16px;
  }

  .hero p {
    font-size: 11px;
  }

  .search {
    font-size: 12px;
    padding: 10px;
  }

  .btn-cart {
    font-size: 11px;
  }

  .carttotal {
    font-size: 11px;
  }
}

/* =========================
   MOBILE (≤480px)
========================= */
@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .pimg {
    height: 150px;
  }

  .cartbar {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }

  .cartbar-left,
  .cartbar-right {
    width: 100%;
  }

  .sheet {
    width: 100%;
    right: -100%;
    border-radius: 0;
  }
}

/* =========================
   LARGE MOBILE / SMALL TABLET (481–768px)
========================= */
@media (min-width: 481px) and (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wrap {
    padding: 0 14px;
  }

  .pimg {
    height: 120px;
  }

  .cartbar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn-send,
  .btn-clear {
    font-size: 13px;
  }
}

/* =========================
   TABLET (769–1024px)
========================= */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wrap {
    max-width: 900px;
  }

  .pimg {
    height: 130px;
  }
}

/* =========================
   LAPTOP (1025–1440px)
========================= */
@media (min-width: 1025px) and (max-width: 1440px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .wrap {
    max-width: 1100px;
  }
}

/* =========================
   DESKTOP (1441–1920px)
========================= */
@media (min-width: 1441px) {
  .wrap {
    max-width: 1300px;
  }

  .grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .card {
    min-height: 160px;
  }

  .pimg {
    height: 140px;
  }
}

/* =========================
   4K / ULTRA WIDE (≥1920px)
========================= */
@media (min-width: 1920px) {
  .wrap {
    max-width: 1500px;
  }

  .grid {
    grid-template-columns: repeat(6, 1fr);
  }

  body {
    font-size: 18px;
  }

  .card {
    min-height: 180px;
  }

  .pimg {
    height: 160px;
  }
}