/* Buttons */
.mbeef-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--mbeef-radius);
  cursor: pointer;
  font-family: var(--mbeef-font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px 32px;
  transition: background 0.2s, color 0.2s, opacity 0.2s, transform 0.15s;
}

.mbeef-btn--primary {
  background: var(--mbeef-primary-container);
  color: var(--mbeef-on-primary);
}

.mbeef-btn--primary:hover {
  background: var(--mbeef-primary);
}

.mbeef-btn--block {
  width: 100%;
}

.mbeef-btn--ghost {
  background: transparent;
  color: var(--mbeef-on-surface);
  border-bottom: 2px solid var(--mbeef-primary-container);
  border-radius: 0;
  padding: 4px 0;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.mbeef-btn--outline {
  background: transparent;
  color: var(--mbeef-on-surface);
  border: 2px solid var(--mbeef-on-surface);
  border-radius: var(--mbeef-radius);
  padding: 12px 24px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: center;
  width: 100%;
  margin-top: auto;
}

.mbeef-btn--outline:hover {
  background: var(--mbeef-on-surface);
  color: var(--mbeef-surface);
}

.mbeef-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Chip */
.mbeef-chip {
  display: inline-block;
  background: var(--mbeef-surface-container-highest);
  color: var(--mbeef-on-surface);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
}

/* Qty */
.mbeef-qty {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--mbeef-tertiary);
  min-width: 120px;
  background: var(--mbeef-surface-container-lowest);
}

.mbeef-qty__btn {
  border: 0;
  background: transparent;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--mbeef-on-surface);
}

.mbeef-qty__btn:hover {
  color: var(--mbeef-primary);
}

.mbeef-qty__value {
  min-width: 2ch;
  text-align: center;
  font-weight: 600;
}

/* Product card */
.mbeef-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--mbeef-stack-lg);
}

@media (max-width: 1024px) {
  .mbeef-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mbeef-product-grid {
    grid-template-columns: 1fr;
  }
}

.mbeef-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--mbeef-surface);
  border: 1px solid var(--mbeef-surface-container-highest);
  transition: transform 0.3s, box-shadow 0.3s;
}

.mbeef-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.mbeef-product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mbeef-surface-container-low);
}

.mbeef-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.mbeef-product-card:hover .mbeef-product-card__media img {
  transform: scale(1.05);
}

.mbeef-product-card__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mbeef-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--mbeef-stack-md);
}

.mbeef-product-card__cat {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mbeef-on-surface-variant);
}

.mbeef-product-card__title {
  margin: 0 0 8px;
  font-family: var(--mbeef-font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.mbeef-product-card:hover .mbeef-product-card__title {
  color: var(--mbeef-primary);
}

.mbeef-product-card__weight {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--mbeef-on-surface-variant);
}

.mbeef-product-card__footer {
  margin-top: auto;
}

.mbeef-product-card__price-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.mbeef-product-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mbeef-primary-container);
  line-height: 1;
}

.mbeef-product-card__price .woocommerce-Price-amount {
  color: inherit;
}

.mbeef-product-card__meta {
  font-size: 12px;
  color: var(--mbeef-on-surface-variant);
}

.mbeef-product-card__lowest {
  display: block;
  font-size: 0.65rem;
  color: var(--mbeef-tertiary);
  margin-bottom: 8px;
}

/* Header */
.mbeef-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--mbeef-surface);
  border-bottom: 1px solid var(--mbeef-tertiary);
}

.mbeef-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--mbeef-container);
  margin-inline: auto;
  padding-inline: var(--mbeef-margin);
  min-height: var(--mbeef-header-h);
  gap: 24px;
}

.mbeef-header__logo img,
.mbeef-header__logo-text {
  height: 56px;
  width: auto;
  display: block;
}

.mbeef-header__logo-text {
  height: auto;
  font-family: var(--mbeef-font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 56px;
}

.mbeef-header__nav {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mbeef-header__nav a {
  color: var(--mbeef-on-surface-variant);
  transition: color 0.2s;
}

.mbeef-header__nav a:hover,
.mbeef-header__nav .current-menu-item > a,
.mbeef-header__nav .current_page_item > a {
  color: var(--mbeef-primary);
}

.mbeef-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mbeef-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--mbeef-on-surface);
  cursor: pointer;
  padding: 4px;
}

.mbeef-icon-btn:hover {
  color: var(--mbeef-primary);
}

.mbeef-cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--mbeef-primary);
  color: var(--mbeef-on-primary);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mbeef-cart-badge:empty,
.mbeef-cart-badge[data-count="0"] {
  display: none;
}

.mbeef-nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  .mbeef-header__nav {
    display: none;
  }

  .mbeef-header__nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mbeef-surface);
    border-bottom: 1px solid var(--mbeef-tertiary);
    padding: 16px var(--mbeef-margin);
    gap: 16px;
  }

  .mbeef-nav-toggle {
    display: inline-flex;
  }
}

/* Footer */
.mbeef-footer {
  background: var(--mbeef-surface-container-low);
  border-top: 1px solid var(--mbeef-tertiary);
}

.mbeef-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--mbeef-stack-lg);
  max-width: var(--mbeef-container);
  margin-inline: auto;
  padding: var(--mbeef-section) var(--mbeef-margin);
}

@media (max-width: 768px) {
  .mbeef-footer__grid {
    grid-template-columns: 1fr;
  }
}

.mbeef-footer__brand-title {
  font-family: var(--mbeef-font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 12px;
}

.mbeef-footer__col h4 {
  font-family: var(--mbeef-font-display);
  font-size: 16px;
  margin: 0 0 16px;
}

.mbeef-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mbeef-footer__col li + li {
  margin-top: 8px;
}

.mbeef-footer__col a {
  color: var(--mbeef-on-surface-variant);
}

.mbeef-footer__col a:hover {
  color: var(--mbeef-on-surface);
  text-decoration: underline;
  text-decoration-color: var(--mbeef-primary);
}

.mbeef-footer__copy {
  grid-column: 1 / -1;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--mbeef-surface-container-highest);
  font-size: 14px;
  color: var(--mbeef-tertiary);
}

/* Drawer */
.mbeef-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 28, 28, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 90;
}

.mbeef-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--mbeef-drawer-w);
  height: 100%;
  background: var(--mbeef-surface-container-lowest);
  border-left: 1px solid var(--mbeef-tertiary);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

body.mbeef-drawer-open {
  overflow: hidden;
}

body.mbeef-drawer-open .mbeef-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.mbeef-drawer-open .mbeef-drawer {
  transform: translateX(0);
}

.mbeef-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--mbeef-surface-container-high);
}

.mbeef-drawer__title {
  margin: 0;
  font-family: var(--mbeef-font-display);
  font-size: 20px;
  font-weight: 600;
}

.mbeef-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 8px 24px 24px;
}

.mbeef-drawer__item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--mbeef-surface-container-high);
  align-items: start;
}

.mbeef-drawer__thumb {
  width: 72px;
  height: 72px;
  background: var(--mbeef-surface-container-low);
  overflow: hidden;
}

.mbeef-drawer__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mbeef-drawer__name {
  font-weight: 600;
  margin: 0 0 4px;
  font-size: 15px;
}

.mbeef-drawer__meta {
  margin: 0;
  font-size: 13px;
  color: var(--mbeef-on-surface-variant);
}

.mbeef-drawer__remove {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--mbeef-on-surface-variant);
  padding: 0;
}

.mbeef-drawer__remove:hover {
  color: var(--mbeef-error);
}

.mbeef-drawer__empty {
  padding: 48px 0;
  text-align: center;
  color: var(--mbeef-on-surface-variant);
}

.mbeef-drawer__footer {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--mbeef-surface-container-high);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mbeef-drawer__totals {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 18px;
}

.mbeef-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
