/* Meat Basket – responsive + layout fixes (loaded last, after style.css) */

/* ---------- global ---------- */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ---------- header ---------- */
.header-middle .header-middle-logo h4 { margin: 0; font-size: 22px; line-height: 1.2; }
.header-middle .navbar-brand { margin: 0; flex-wrap: nowrap; }
@media (max-width: 991px) {
  .header-middle { padding: 10px 0 !important; }
  .header-middle .header-middle-list { justify-content: flex-end; align-items: center; gap: 6px; }
  .header-middle .header-middle-list .list-item { width: auto; height: auto; line-height: 1.2; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
  .header-middle .header-middle-list .list-item i { font-size: 20px; }
  .header-middle .header-middle-list .list-item span { position: static; display: inline-grid; place-items: center; min-width: 18px; height: 18px; line-height: 18px; font-size: 11px; border-radius: 9px; }
}
@media (max-width: 575px) {
  .header-middle .header-middle-logo h4 { font-size: 19px; }
  .dropdown-cart-menu { display: none !important; } /* tap goes straight to cart page */
}

/* top category strip under the header */
.main > .category-area2.py-2 { padding-top: 6px !important; padding-bottom: 6px !important; }

/* ---------- mobile bottom nav: keep it from covering the footer ---------- */
@media (max-width: 767px) {
  body { padding-bottom: 76px; }
  #scroll-top { bottom: 90px; }
}

/* ---------- section headings ---------- */
.mb-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mb-head h2 { margin: 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; color: #0e1726; }
.mb-head a { font-weight: 600; font-size: 14px; color: #af0b0b; white-space: nowrap; }
.mb-section { padding: 28px 0; }
@media (max-width: 767px) { .mb-section { padding: 18px 0; } }

/* ---------- hero banner ---------- */
.mb-hero { background: #f6f1e7; line-height: 0; }
.mb-hero img { display: block; width: 100%; height: auto; }
.mb-hero .owl-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); line-height: 1; }
.mb-hero .owl-nav { display: none; }
/* phones: show the banner taller, keeping the logo + "Daily Fresh" side readable */
@media (max-width: 575px) {
  .mb-hero img { aspect-ratio: 2.6 / 1; object-fit: cover; object-position: left center; }
}

/* ---------- product grid ---------- */
.mb-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px)  { .mb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .mb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }

.mb-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e9e9ee; border-radius: 12px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.mb-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.08); transform: translateY(-2px); }
.mb-card .im { display: block; aspect-ratio: 4 / 3; background: #f4f4f6; overflow: hidden; }
.mb-card .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-card .bd { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mb-card .tt { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.mb-card h3 { font-size: 16px; font-weight: 600; line-height: 1.3; margin: 0; color: #141821; }
.mb-card h3 a { color: inherit; }
.mb-card .rt { flex: none; font-size: 13px; font-weight: 600; color: #444; display: inline-flex; align-items: center; gap: 2px; }
.mb-card .rt i { color: #16a34a; }
.mb-card .meta { font-size: 12px; font-weight: 600; color: #16803c; margin: 0; line-height: 1.4; }
.mb-card .ft { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px dashed #e6e6ea; }
.mb-card .pr { font-weight: 700; font-size: 16px; color: #141821; }
.mb-card .pr s { color: #9aa0a8; font-weight: 500; font-size: 13px; margin-right: 4px; }
.mb-card .pr .now { color: #16803c; }
.mb-card .add { flex: none; background: #dc3545; color: #fff !important; font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 8px; line-height: 1.2; transition: background .2s; }
.mb-card .add:hover { background: #b02a37; }
/* tablets & phones: price on its own line, full-width button */
@media (max-width: 991px) {
  .mb-card .ft { flex-direction: column; align-items: stretch; }
  .mb-card .add { text-align: center; padding: 9px 10px; }
}
@media (max-width: 575px) {
  .mb-card .bd { padding: 10px; }
  .mb-card h3 { font-size: 14px; }
  .mb-card .meta { font-size: 11px; }
  .mb-card .ft { flex-direction: column; align-items: stretch; }
  .mb-card .pr { font-size: 15px; }
  .mb-card .add { text-align: center; padding: 9px 10px; }
}

/* ---------- category grid ---------- */
.mb-cats { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 340px)  { .mb-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px)  { .mb-cats { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; } }
.mb-cat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 6px; border: 1px solid #ececf0; border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.mb-cat:hover { border-color: #af0b0b; box-shadow: 0 8px 20px rgba(175,11,11,.08); }
.mb-cat .ic { width: 64px; height: 64px; border-radius: 50%; background: #f5f6f8; display: grid; place-items: center; margin-bottom: 8px; }
.mb-cat .ic img { width: 40px; height: 40px; object-fit: contain; }
.mb-cat b { font-size: 14px; font-weight: 600; color: #141821; }
.mb-cat small { font-size: 12px; color: #737a86; }

/* ---------- footer ---------- */
.footer-widget-wrapper { padding-top: 32px !important; padding-bottom: 8px !important; }
@media (max-width: 575px) {
  .mb-cat { padding: 10px 4px; }
  .mb-cat .ic { width: 52px; height: 52px; }
  .mb-cat .ic img { width: 32px; height: 32px; }
  .mb-cat b { font-size: 12px; }
  .mb-cat small { font-size: 11px; }
}
@media (max-width: 767px) {
  .footer-widget-box { margin-bottom: 18px; }
  .footer-widget-box .footer-logo { padding: 10px !important; display: inline-block; }
  .footer-widget-box .footer-logo img { width: 110px !important; height: 110px; }
  /* Quick Links + Browse Category side by side */
  .footer-widget-wrapper > .col-md-6:nth-child(2), .footer-widget-wrapper > .col-md-6:nth-child(3) { width: 50%; }
  .footer-widget-title { margin-bottom: 14px !important; }
  .footer-list li { margin: 6px 0 !important; }
  .copyright .copyright-text, .copyright .footer-social { text-align: center; justify-content: center; }
}

/* ---------- star icon (replaces the 310 KB RemixIcon font, which was only used for this) ---------- */
.ri-star-s-fill { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -0.125em; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.75l-6.17 3.73 1.64-7.03L2 9.73l7.19-.61L12 2.5l2.81 6.62 7.19.61-5.47 4.72 1.64 7.03z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.75l-6.17 3.73 1.64-7.03L2 9.73l7.19-.61L12 2.5l2.81 6.62 7.19.61-5.47 4.72 1.64 7.03z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ri-star-s-fill::before { content: none !important; }
