/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/

/* Sticky footer: keeps footer at the bottom of the viewport when the page is short */
html {
  height: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

body > footer {
  flex-shrink: 0;
  width: 100%;
}

footer .footer-payment-bar {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.25rem 0 1.75rem;
  margin-top: 0.5rem;
}

footer .footer-payment-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.5rem;
}

footer .footer-payment-methods li {
  line-height: 0;
}

footer .footer-payment-methods img {
  height: 32px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  opacity: 0.92;
}

/* Checkout: saved address cards (signed-in) */
.checkout-address-card {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 5.5rem;
}
.checkout-address-card:hover {
  border-color: rgba(0, 0, 0, 0.2) !important;
}
.checkout-address-card.is-selected {
  border-color: #978667 !important;
  box-shadow: 0 0 0 2px rgba(151, 134, 103, 0.25) !important;
}
.checkout-address-card__lines {
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.checkout-address-card--new {
  cursor: pointer;
  min-height: 5.5rem;
  background: #fafafa;
  color: #666;
}
.checkout-address-card--new:hover {
  background: #f3f3f3;
  color: #333;
}

.mp-menu-favorite-cell {
  width: 2.75rem;
  vertical-align: middle !important;
}

.mp-menu-favorite-btn {
  color: #c8c8c8;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mp-menu-favorite-btn:hover,
.mp-menu-favorite-btn:focus {
  color: #e53935;
}

.mp-menu-favorite-btn.active {
  color: #e53935;
}

/* Menu secondary nav: Favorites filter active */
#secondary_nav li.mp-nav-pill-active > a {
  color: #e53935;
  font-weight: 600;
}

footer .footer-social-list a {
  word-break: break-word;
}

footer .footer-page-desc {
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Menu page refresh: category pills + card-like rows */
.secondary_nav .mp-secondary-nav-list li:last-child {
  border-left: none;
  padding-left: 0;
}

.secondary_nav .mp-secondary-nav-list li a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f7f7f9;
  border: 1px solid #ececf1;
  font-weight: 500;
}

.secondary_nav .mp-secondary-nav-list li a:hover,
.secondary_nav .mp-secondary-nav-list li a.active {
  background: #fff;
  border-color: #dcdce5;
}

.secondary_nav .mp-secondary-nav-list .mp-secondary-nav-favorites-item a {
  border-color: rgba(229, 71, 80, 0.25);
  background: rgba(229, 71, 80, 0.06);
}

.secondary_nav .mp-secondary-nav-list .mp-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  color: #6f6f79;
  background: #fff;
  border: 1px solid #e4e4eb;
}

.mp-menu-category-section {
  padding-top: 30px;
}

.mp-menu-category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.mp-menu-category-header h4 {
  margin-bottom: 0;
}

.mp-menu-category-meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #8a8a94;
}

.list_menu .table_wrapper {
  border-radius: 12px;
  padding: 0.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
  border: 1px solid #ededf2;
  box-shadow: 0 10px 24px rgba(17, 17, 26, 0.06);
}

.mp-menu-list-item {
  border-top: none !important;
}

.mp-menu-list tr.mp-menu-list-item > td {
  border-top: none !important;
  border-bottom: 1px solid #f1f1f5 !important;
  padding-top: 0.9rem !important;
  padding-bottom: 0.9rem !important;
}

.mp-menu-list tr.mp-menu-list-item:last-of-type > td {
  border-bottom: none !important;
}

.mp-menu-favorite-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid #ececf2;
  background: #fff;
}

.mp-menu-main-cell {
  gap: 0.8rem;
}

.mp-menu-thumb {
  margin-right: 0.5rem !important;
}

.mp-menu-thumb img {
  border-radius: 10px !important;
}

.mp-menu-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-bottom: 0.2rem;
}

.mp-menu-customizable-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #705f42;
  background: #f5efe2;
  border: 1px solid #ebdfc9;
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  line-height: 1.1;
}

.mp-menu-content p {
  color: #666b75 !important;
  line-height: 1.4;
}

.mp-menu-price-wrap strong {
  display: block;
  color: #2e2f35;
  font-size: 1rem;
}

.mp-menu-price-wrap s {
  color: #a1a1aa;
  font-size: 0.78rem;
}

.mp-menu-action-cell .dropdown-toggle {
  min-width: 86px;
  border-radius: 999px;
  border: 1px solid #dedee7;
  padding: 0.32rem 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  color: #4f4f5b;
  font-weight: 600;
  background: #fff;
}

.mp-menu-action-cell .dropdown-toggle:hover,
.mp-menu-action-cell .dropdown-toggle:focus {
  border-color: #c5c5d1;
  color: #2f2f38;
}

.mp-menu-action-cell .dropdown-toggle span {
  font-size: 0.8rem;
  line-height: 1;
}

.mp-menu-action-cell .dropdown-toggle i {
  font-size: 1rem !important;
}

@media (max-width: 767px) {
  .mp-menu-category-header {
    align-items: center;
  }

  .mp-menu-main-cell {
    display: block !important;
  }

  .mp-menu-thumb {
    margin-right: 0 !important;
    margin-bottom: 0.65rem !important;
  }

  .mp-menu-action-cell .dropdown-toggle {
    min-width: 76px;
    padding: 0.3rem 0.55rem;
  }
}