/* ====== Grid Wrapper ====== */
.wc-menu-cards-wrapper{
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 2fr;
  border-top: 1px solid rgba(28, 28, 28, 0.1);
  padding: 48px 15px 0;
  margin-top: 48px;
}

#breakfasts{
  margin-top: 0;
  border: none;
}

#chips-crackers{
  padding-bottom: 120px;
}

/* ====== Section Title ====== */
.wc-menu-title h2{
  width: 100%;
  margin-bottom: 32px;
  font-size: calc(21px + 7 * ((100vw - 320px) / (1860 - 320)));
  font-weight: 700;
  line-height: 32px;
  text-transform: capitalize;
  color: rgb(255, 255, 255);
}

/* ====== Cards Grid ====== */
.wc-menu-cards {
  display: grid;
  grid-column-gap: calc(10px + 10 * ((100vw - 320px) / (1860 - 320)));
  grid-row-gap: 40px;
  grid-template-columns: repeat(2, 1fr); /* mobile-first */
}

@media (min-width: 768px) {
  .wc-menu-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .wc-menu-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ====== Card ====== */
.wc-menu-card {
  display: flex;
  flex-direction: column;
  width: calc(143px + 251 * ((100vw - 320px) / (1860 - 320)));
  height: calc(287px + 254 * ((100vw - 320px) / (1860 - 320)));
}

/* Preview */
.wc-menu-card__thumb {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  height: auto;
}
.wc-menu-card__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Body */
.wc-menu-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.wc-menu-card__title {
  font-size: calc(15px + 2 * ((100vw - 320px) / (1860 - 320)));
  font-weight: 500;
  margin: 8px 0 0;
  line-height: 20px;
  color: #ffffff;
}
.wc-menu-card__title a { color: inherit; text-decoration: none; }
.wc-menu-card__title a:hover { text-decoration: underline; }

/* Meta */
.wc-menu-card__meta {
  color: #777;
  font-size: 12px;
  margin-top: 2px;
}

/* Description (line-clamp 2) */
.wc-menu-card__desc {
  color: #ffffff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  max-height: 32px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  word-break: break-word; /* аккуратнее, чем break-all */
}

/* Footer */
.wc-menu-card__footer { margin-top: 12px; }
.wc-menu-card__price {
  font-weight: 700;
  font-size: 16px;
  color: #222;
}

/* Buttons (override Woo) */
.wc-menu-card__footer .button,
.wcmc-qv__right button {
  border-radius: 10px!important;
  padding: 8px 14px!important;
  width: max-content!important;
  height: 36px!important;
  background-color: #f7f7f7!important;
  color: #1c1c1c!important;
  font-size: 15px!important;
  line-height: 20px!important;
  font-weight: 500!important;
  display: flex;
  align-items: center;
}
.wcmc-qv__right button{
  width: 100%!important;
  padding: 15px 0!important;
  height: auto!important;
  background-color: #cfcfcf!important;
  justify-content: center!important;
}
.wcmc-qv__right button:hover{
  width: 100%!important;
  padding: 15px 0!important;
  height: auto!important;
  background-color: rgba(240, 240, 240, 0.9)!important;
  color: #616161db!important;
}
.wc-menu-card__footer .button:hover {
  background-color: rgba(245, 245, 245, 0.8)!important;
  color: #616161db!important;
}

/* Notice */
.wc-menu-cards__notice {
  padding: 12px 14px;
  background: #fff3cd;
  border: 1px solid #ffe69c;
  color: #7a5b00;
  border-radius: 8px;
}

/* Theme-specific tweaks */
.woocommerce .wc-menu-card form.cart .quantity input.qty {
  width: 60px;
  text-align: center;
}

/* ====== QUICK VIEW MODAL ====== */
.wcmc-modal {
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.wcmc-modal[hidden] { display: none !important; }

.wcmc-modal__dialog {
  background: #fff;
  border-radius: 16px;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.wcmc-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border-radius: 50px;
  padding: 12px;
  background-color: #F2F2F2B3!important;;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #666!important;;
  transition: all .2s ease-in-out;
  z-index: 999;
}
.wcmc-modal__close:hover{
  color: #8F8F8FB3!important;
  background-color: #FAFAFAB3!important;
}

.wcmc-modal__inner {
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wcmc-modal__loader {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  border-top-color: #9ca3af;
  animation: wcmcspin 1s linear infinite;
}

@keyframes wcmcspin { to { transform: rotate(360deg); } }

/* Modal content */
.wcmc-qv { display: grid; grid-template-columns: 1.5fr 1fr; }
@media (max-width: 780px){
  .wcmc-qv { grid-template-columns: 1fr; }
}

.wcmc-qv__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.wcmc-qv__title {
  font-size: 21px;
  line-height: 24px;
  font-weight: 700;
  margin-bottom: 0;
}

.wcmc-qv__price {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #111827;
}

.wcmc-qv__excerpt {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.wcmc-qv__cart .button { border-radius: 10px; padding: 10px 16px; }

.wcmc-qv__right{
  padding: 40px 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.wcmc-qv__weight{
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  margin-top: 4px;
  color: #1c1c1c;
}
.wcmc-qv-modal__body{
  width: 100%;
}

.wcmc-cart p{margin: 0;}
.wcmc-cart__header h3 { margin: 0 0 12px; }
.wcmc-cart__list { list-style: none; margin: 0; padding: 0; }
.wcmc-cart__item { display: grid; grid-template-columns: 55px 1fr 0.5fr auto; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed #eee; }
.wcmc-cart__item:last-child { border-bottom: 0; }
.wcmc-cart__thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; display: block; }
.wcmc-cart__name a { text-decoration: none; }
.wcmc-cart__meta { color: #666; font-size: 13px; margin-top: 4px; }
.wcmc-cart__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.wcmc-cart__checkout { white-space: nowrap; }
.wcmc-cart__remove {background-color: transparent; color: #1c1c1c!important; padding: 0;}
.wcmc-cart__remove:hover{background-color: transparent; color: #616161db!important;}

