﻿/* MM Quick Order - Premium Performance Design */
@import url('https://fonts.bunny.net/css?family=plus-jakarta-sans:400,500,600,700,800');

:root {
  --mmqo-bg: #f8fafc;
  --mmqo-surface: #ffffff;
  --mmqo-text: #0f172a;
  --mmqo-text-muted: #64748b;
  --mmqo-border: #e2e8f0;
  --mmqo-border-light: #f1f5f9;
  --mmqo-primary: #2563eb;
  --mmqo-primary-hover: #1d4ed8;
  --mmqo-success: #10b981;
  --mmqo-danger: #ef4444;
  --mmqo-radius: 10px;
  --mmqo-transition: all 0.2s ease;
  --mmqo-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--mmqo-bg);
  color: var(--mmqo-text);
}

/* ===================== TOPBAR ===================== */
.mmqo-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 2000;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
}

.mmqo-topbar-inner {
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Left: Logo + Search */
.mmqo-topbar-left {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  /* Take available space */
}

.mmqo-logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.mmqo-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mmqo-search-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.mmqo-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.mmqo-search {
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0 40px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}

.mmqo-search:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--mmqo-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.mmqo-btn-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 4px;
  display: none;
}

.mmqo-btn-clear:hover {
  color: #fff;
}

/* Center: User Section */
.mmqo-topbar-user {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

/* Logged In User */
.mmqo-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 16px 6px 6px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mmqo-user-avatar {
  width: 32px;
  height: 32px;
  background: var(--mmqo-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.mmqo-user-details {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mmqo-user-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.mmqo-user-email {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

/* Guest Actions */
.mmqo-guest-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mmqo-btn-login,
.mmqo-btn-register {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.mmqo-btn-login {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.mmqo-btn-login:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mmqo-btn-register {
  color: #fff;
  background: var(--mmqo-primary);
}

.mmqo-btn-register:hover {
  background: var(--mmqo-primary-hover);
  transform: translateY(-1px);
}


/* Right: Totals + Cart */
.mmqo-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}

#mmqo-top-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mmqo-top-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mmqo-top-stat-label {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.mmqo-top-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.mmqo-top-stat.mmqo-top-stat-total .mmqo-top-stat-value {
  font-size: 16px;
  color: var(--mmqo-success);
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.mmqo-topbar-cart {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0 16px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mmqo-topbar-cart:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Sidebar Address Section (New) */
.mmqo-address-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mmqo-no-address {
  padding: 15px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mmqo-address-select-wrap {
  position: relative;
}

.mmqo-address-select {
  width: 100%;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: 0.2s;
}

.mmqo-address-select:focus {
  border-color: var(--mmqo-primary);
}

.mmqo-billing-section {
  padding-top: 5px;
}

.mmqo-billing-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.8;
  cursor: pointer;
}

.mmqo-billing-toggle input {
  accent-color: var(--mmqo-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.mmqo-billing-addresses {
  margin-top: 10px;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Guest Prompt in Sidebar */
.mmqo-guest-prompt {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.mmqo-btn-login-sidebar {
  display: block;
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  transition: 0.2s;
}

.mmqo-btn-login-sidebar:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mmqo-btn-register-sidebar {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--mmqo-primary);
  color: var(--mmqo-primary);
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s;
}

.mmqo-btn-register-sidebar:hover {
  background: var(--mmqo-primary);
  color: #fff;
}

.mmqo-btn-confirm-disabled {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: not-allowed;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===================== LAYOUT ===================== */
.mmqo-sidebar-left {
  position: fixed;
  top: 110px;
  left: 0;
  width: 260px;
  bottom: 0;
  background: #fff;
  border-right: 1px solid var(--mmqo-border);
  overflow-y: auto;
  z-index: 1000;
}

.mmqo-sidebar-right {
  position: fixed;
  top: 110px;
  right: 0;
  width: 340px;
  bottom: 0;
  background: #0f172a;
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  overflow-y: auto;
  overflow-x: hidden;
}

.mmqo-main-content {
  margin-left: 260px;
  margin-right: 340px;
  margin-top: 110px;
  padding: 24px;
  min-height: calc(100vh - 110px);
  background: var(--mmqo-bg);
  overflow: visible;
  max-width: calc(100vw - 260px - 340px);
}

/* ===================== CATEGORIES SIDEBAR ===================== */
.mmqo-sidebar-title {
  padding: 16px 20px;
  font-size: 12px;
  font-weight: 900;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mmqo-cats {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mmqo-cat-item {
  padding: 11px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #475569;
  font-weight: 600;
  transition: all 0.2s;
  border-bottom: 1px solid #f8fafc;
  flex-wrap: wrap;
}

.mmqo-cat-item:hover {
  background: #f8fafc;
  color: var(--mmqo-primary);
}

.mmqo-cat-item.active {
  background: #f0f9ff;
  color: var(--mmqo-primary);
  border-left: 3px solid var(--mmqo-primary);
  font-weight: 700;
}

.mmqo-cat-icon {
  font-size: 13px;
  width: 18px;
  text-align: center;
  opacity: 0.5;
}

.mmqo-sub-cats {
  list-style: none;
  padding: 4px 0;
  margin: 0;
  width: 100%;
  background: #fafcff;
}

.mmqo-sub-cat-item {
  padding: 8px 16px 8px 48px;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mmqo-sub-cat-item:hover {
  color: var(--mmqo-primary);
  background: #f0f9ff;
}

.mmqo-sub-cat-item.active {
  color: var(--mmqo-primary);
  font-weight: 700;
}

/* ===================== POPULAR SECTION (responsive grid) ===================== */
.mmqo-popular-section {
  margin-bottom: 28px;
  overflow: hidden;
  max-width: 100%;
}

.mmqo-popular-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 12px !important;
  overflow: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.mmqo-pop-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.2s;
  min-width: 0;
  overflow: hidden;
}

.mmqo-pop-item:hover {
  border-color: var(--mmqo-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.mmqo-pop-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}

.mmqo-pop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mmqo-pop-info {
  flex: 1;
  min-width: 0;
}

.mmqo-pop-name {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mmqo-pop-price {
  font-size: 11px;
  font-weight: 800;
  color: var(--mmqo-primary);
  margin-top: 2px;
}

/* ===================== PRODUCT GRID ===================== */
.mmqo-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mmqo-block-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--mmqo-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mmqo-results-count {
  font-size: 12px;
  color: var(--mmqo-text-muted);
  font-weight: 600;
}

.mmqo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mmqo-row {
  background: #fff;
  border: 1px solid var(--mmqo-border);
  border-radius: 12px;
  padding: 8px 20px;
  display: grid;
  grid-template-columns: 60px 1.5fr minmax(100px, 1fr) 100px 110px 44px;
  align-items: center;
  gap: 15px;
  transition: 0.2s;
}

.mmqo-row:hover {
  border-color: var(--mmqo-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mmqo-row-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--mmqo-border-light);
  flex-shrink: 0;
}

.mmqo-row-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.mmqo-row-info {
  min-width: 0;
  overflow: hidden;
}

.mmqo-row-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--mmqo-text);
  text-decoration: none;
  line-height: 1.3;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mmqo-row-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: hidden;
}

.mmqo-inline-opt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 80px;
  flex: 1;
}

.mmqo-inline-opt label {
  font-size: 9px;
  font-weight: 800;
  color: var(--mmqo-text-muted);
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 2px;
}

.mmqo-opt-select {
  height: 30px;
  padding: 0 6px;
  border: 1px solid var(--mmqo-border);
  border-radius: 6px;
  font-size: 11px;
  background: #fafafa;
  width: 100%;
  outline: none;
}

.mmqo-opt-select:focus {
  border-color: var(--mmqo-primary);
}

.mmqo-opt-error {
  border-color: var(--mmqo-danger) !important;
  background: #fff1f2 !important;
}

.mmqo-req {
  color: var(--mmqo-danger);
  margin-left: 2px;
  font-weight: 900;
}

.mmqo-row-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
}

.mmqo-price-new {
  font-size: 14px;
  font-weight: 800;
  color: var(--mmqo-primary);
}

.mmqo-price-old {
  font-size: 10px;
  text-decoration: line-through;
  color: var(--mmqo-text-muted);
  opacity: 0.7;
}

.mmqo-row-act {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.mmqo-qty {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 2px;
  height: 32px;
}

.mmqo-qty-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.mmqo-qty-btn:hover {
  background: var(--mmqo-primary);
  color: #fff;
}

.mmqo-qty-in {
  width: 30px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.mmqo-qty-in::-webkit-inner-spin-button {
  display: none;
}

.mmqo-btn-add {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 0;
  background: var(--mmqo-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: 0.2s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.mmqo-btn-add:hover {
  background: var(--mmqo-primary-hover);
  transform: scale(1.05);
}

/* Load More */
.mmqo-load-more {
  text-align: center;
  padding: 20px 0;
}

.mmqo-btn-load {
  background: #fff;
  border: 1px solid var(--mmqo-border);
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--mmqo-text-muted);
  transition: 0.2s;
}

.mmqo-btn-load:hover {
  border-color: var(--mmqo-primary);
  color: var(--mmqo-primary);
}

.mmqo-loading {
  text-align: center;
  padding: 40px;
  color: var(--mmqo-text-muted);
  font-size: 14px;
}

/* ===================== RIGHT SIDEBAR: Cart ===================== */
.mmqo-cart-sidebar-head {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mmqo-cart-sidebar-summary {
  font-size: 20px;
  font-weight: 800;
  color: var(--mmqo-success);
}

.mmqo-cart-items {
  max-height: 220px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
}

.mmqo-cart-items::-webkit-scrollbar {
  width: 4px;
}

.mmqo-cart-items::-webkit-scrollbar-track {
  background: transparent;
}

.mmqo-cart-items::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.mmqo-cart-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.mmqo-cart-item-img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.mmqo-cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mmqo-cart-item-info {
  flex: 1;
  min-width: 0;
}

.mmqo-cart-item-name {
  display: block;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.mmqo-cart-item-meta {
  font-size: 11px;
  color: var(--mmqo-success);
  font-weight: 700;
}

.mmqo-cart-item-remove {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 4px;
}

.mmqo-cart-item-remove:hover {
  color: var(--mmqo-danger);
}

.mmqo-cart-empty {
  text-align: center;
  padding: 30px;
  opacity: 0.4;
  font-size: 13px;
}

/* ===================== PAYMENT SECTION ===================== */
.mmqo-payment-section {
  padding: 16px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mmqo-section-head {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mmqo-section-head i {
  color: var(--mmqo-primary);
}

.mmqo-payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mmqo-pay-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: 0.2s;
  position: relative;
}

.mmqo-pay-opt:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mmqo-pay-opt.active {
  background: var(--mmqo-primary) !important;
  border-color: var(--mmqo-primary) !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.mmqo-pay-text {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.mmqo-bank-box {
  margin-top: 10px;
  display: none;
}

/* Bank Selector */
.mmqo-bank-selector {
  margin-top: 8px;
}

.mmqo-bank-selector-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mmqo-bank-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mmqo-bank-option {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.mmqo-bank-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.mmqo-bank-option.selected {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--mmqo-primary);
  box-shadow: 0 0 0 1px var(--mmqo-primary);
}

.mmqo-bank-option-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mmqo-bank-option-header input[type="radio"] {
  accent-color: var(--mmqo-primary);
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.mmqo-bank-option-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.mmqo-bank-option.selected .mmqo-bank-option-title {
  color: #60a5fa;
}

.mmqo-bank-details {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  border-left: 3px solid var(--mmqo-primary);
}

/* Summary */
.mmqo-cart-summary-lite {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mmqo-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 5px;
  opacity: 0.7;
}

.mmqo-summary-line.total {
  font-size: 18px;
  font-weight: 800;
  opacity: 1;
  color: var(--mmqo-success);
  margin-top: 8px;
}

.mmqo-cart-sidebar-foot {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Confirm Button */
@keyframes mmqo-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.mmqo-btn-confirm {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--mmqo-success);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: mmqo-pulse 2s infinite;
}

.mmqo-btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
  animation: none;
}

.mmqo-btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  animation: none;
}

/* Animation */
@keyframes mmqo-pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

.mmqo-added {
  animation: mmqo-pop 0.3s ease;
}

/* Modal */
.mmqo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mmqo-modal {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mmqo-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f1f5f9;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mmqo-modal-body {
  padding: 24px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1400px) {
  .mmqo-row {
    grid-template-columns: 60px 1.5fr 1fr 100px 110px 44px;
    gap: 10px;
  }

  .mmqo-popular-list {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 1024px) {
  .mmqo-row {
    grid-template-columns: 60px 1fr 100px 110px 44px;
    padding: 12px;
  }

  .mmqo-row-options {
    display: none;
  }

  .mmqo-popular-list {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .mmqo-sidebar-left {
    display: none;
  }

  .mmqo-main-content {
    margin-left: 0;
    margin-right: 0;
    padding-bottom: 80px;
  }

  .mmqo-sidebar-right {
    bottom: 0;
    top: auto;
    height: 60px;
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 0 16px;
  }

  .mmqo-cart-items,
  .mmqo-cart-sidebar-head,
  .mmqo-payment-section,
  .mmqo-cart-summary-lite {
    display: none;
  }

  .mmqo-cart-sidebar-foot {
    border: 0;
    padding: 0;
    flex: 1;
  }

  .mmqo-popular-list {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .mmqo-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    text-align: center;
    gap: 12px;
  }

  .mmqo-row-price {
    align-items: center;
  }

  .mmqo-btn-add {
    width: 100%;
    height: 44px;
  }
}

/* ===================== AUTH MODALS ===================== */
.mmqo-auth-modal {
  padding: 10px;
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
  color: #334155;
}

#mmqo-register-content .mmqo-auth-modal {
  max-width: 500px;
}

.mmqo-auth-modal h3 {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: #0f172a;
}

.mmqo-form-group {
  margin-bottom: 16px;
}

.mmqo-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 13px;
  color: #475569;
}

.mmqo-form-control {
  width: 100%;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  transition: border-color 0.2s;
  color: #0f172a;
  font-family: inherit;
}

.mmqo-form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mmqo-btn-primary {
  width: 100%;
  height: 44px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 8px;
}

.mmqo-btn-primary:hover {
  background: #2563eb;
}

.mmqo-auth-links {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mmqo-auth-links a {
  color: #64748b;
  text-decoration: none;
  transition: 0.2s;
}

.mmqo-auth-links a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.mmqo-auth-row {
  display: flex;
  gap: 16px;
}

.mmqo-auth-col {
  flex: 1;
}

.mmqo-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
  margin-bottom: 0;
}

.mmqo-checkbox input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.mmqo-checkbox a {
  color: #3b82f6;
  text-decoration: none;
}

/* Sticky Sidebar Footer Fix */
.mmqo-sidebar-right {
  padding-bottom: 90px !important;
}

.mmqo-cart-sidebar-foot {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 340px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  z-index: 1002;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

/* Override Cart Items Height Fix */
.mmqo-cart-items {
  max-height: none !important;
  overflow-y: visible !important;
  border-bottom: none !important;
  background: transparent !important;
  flex-grow: 1 !important;
}

.mmqo-sidebar-body::-webkit-scrollbar {
  width: 4px;
}

.mmqo-sidebar-body::-webkit-scrollbar-track {
  background: transparent;
}

.mmqo-sidebar-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* ===================== MOBILE OPTIMIZATIONS ===================== */
.mmqo-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #0f172a;
  z-index: 4000;
  padding: 10px 20px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.mmqo-mb-info {
  display: flex;
  flex-direction: column;
}

.mmqo-mb-info span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  font-weight: 700;
}

.mmqo-mb-info strong {
  font-size: 18px;
  color: #fff;
  font-weight: 800;
}

.mmqo-mb-btn {
  background: var(--mmqo-success);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
}

.mmqo-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2900;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  backdrop-filter: blur(5px);
}

.mmqo-mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1024px) {
  .mmqo-sidebar-left {
    position: sticky;
    top: 80px;
    width: 100%;
    height: 50px;
    z-index: 900;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    display: flex !important;
    align-items: center;
    padding: 0 10px;
    background: #fff;
  }

  .mmqo-sidebar-title {
    display: none;
  }

  .mmqo-cats {
    display: flex;
    gap: 10px;
    padding: 0 5px;
  }

  .mmqo-cat-item {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    background: #f8fafc;
    margin: 0;
  }

  .mmqo-cat-item.active {
    background: var(--mmqo-primary);
    color: #fff;
    border-color: var(--mmqo-primary);
  }

  .mmqo-main-content {
    margin: 0 !important;
    padding: 15px !important;
    padding-top: 20px !important;
    padding-bottom: 100px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .mmqo-sidebar-right {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    transform: translateX(110%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    display: flex !important;
  }

  .mmqo-sidebar-right.active {
    transform: translateX(0);
  }

  .mmqo-cart-sidebar-head {
    padding-top: calc(10px + env(safe-area-inset-top));
    background: #0f172a;
  }

  .mmqo-topbar {
    height: auto;
    position: relative;
    padding: 10px 0;
  }

  .mmqo-topbar-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .mmqo-topbar-left {
    min-width: 100%;
    margin-bottom: 5px;
  }

  .mmqo-search-wrap {
    display: none;
  }

  .mmqo-topbar-user {
    width: 100%;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 8px;
  }

  .mmqo-topbar-address-wrap {
    margin-left: 0 !important;
    padding-left: 0 !important;
    border-left: none !important;
    flex: 1;
  }

  .mmqo-topbar-address-wrap select {
    max-width: 100% !important;
    width: 100%;
  }

  .mmqo-billing-wrap {
    margin-left: 10px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 10px !important;
  }

  .mmqo-topbar-totals {
    display: none !important;
  }

  .mmqo-topbar-cart {
    display: none !important;
  }

  .mmqo-mobile-bar {
    display: flex;
  }

  .mmqo-grid {
    grid-template-columns: 1fr;
  }

  .mmqo-row {
    grid-template-columns: 60px 1fr 40px;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    position: relative;
  }

  .mmqo-row-img {
    grid-area: 1 / 1 / 3 / 2;
  }

  .mmqo-row-info {
    grid-area: 1 / 2 / 2 / 4;
    margin-bottom: 30px;
  }

  .mmqo-row-options {
    grid-area: 2 / 2 / 3 / 4;
    margin-top: 5px;
  }

  .mmqo-row-price {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .mmqo-row-act {
    grid-area: 3 / 1 / 4 / 4;
    justify-content: space-between;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
    width: 100%;
  }

  .mmqo-qty {
    width: 100%;
    justify-content: space-between;
    max-width: 120px;
  }

  .mmqo-btn-add {
    width: 100%;
    max-width: calc(100% - 130px);
  }
}

/* Mobile Close Button Styles */
.mmqo-mobile-close {
  display: none;
  position: absolute;
  right: 15px;
  top: 15px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  z-index: 200;
  cursor: pointer;
  transition: 0.2s;
}

.mmqo-mobile-close:hover {
  transform: scale(1.1);
  color: #fff;
}

@media (max-width: 1024px) {
  .mmqo-mobile-close {
    display: block;
  }

  .mmqo-sidebar-title {
    padding-right: 40px;
  }
}

/* Mobile Categories Visibility Fix */
@media (max-width: 1024px) {
  .mmqo-sidebar-left {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 50px;
    background: #fff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    z-index: 2500 !important;
    padding: 10px !important;
    display: flex !important;
    align-items: center !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    margin-bottom: 10px;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .mmqo-cats {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    width: auto !important;
    padding-right: 20px;
  }

  .mmqo-cat-item {
    flex-shrink: 0;
    min-width: max-content;
  }
}

/* Fix Mobile Categories Overflow & Layout */
@media (max-width: 1024px) {
  .mmqo-sidebar-left {
    height: 60px !important;
    max-height: 60px !important;
    overflow-y: hidden !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
  }

  .mmqo-cats {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    height: 100% !important;
    align-items: center !important;
    width: max-content !important;
    padding-right: 20px;
  }

  .mmqo-cat-item {
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }
}

/* Mobile Toggle Categories Logic Final */
@media (max-width: 1024px) {
  .mmqo-sidebar-title {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 15px !important;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0 !important;
    font-weight: 700;
  }

  .mmqo-sidebar-left {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    background: #fff !important;
    padding: 0 !important;
    border-bottom: none !important;
    z-index: 100 !important;
  }

  .mmqo-cats {
    display: none !important;
    flex-direction: column !important;
    padding: 10px !important;
    gap: 5px !important;
    width: 100% !important;
    height: auto !important;
    border-bottom: 1px solid #e2e8f0;
  }

  .mmqo-cats.active {
    display: flex !important;
  }

  .mmqo-cat-item {
    width: 100% !important;
    border-radius: 8px !important;
    margin-bottom: 5px !important;
    white-space: normal !important;
  }
}

/* Mobile Left Drawer & Trigger Logic Final */
@media (max-width: 1024px) {
  .mmqo-sidebar-left {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 300px !important;
    height: 100vh !important;
    max-width: 80vw !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5000 !important;
    background: #fff !important;
    border-right: 1px solid #ddd;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto !important;
    display: block !important;
    margin: 0 !important;
  }

  .mmqo-sidebar-left.active {
    transform: translateX(0);
  }

  .mmqo-sidebar-title {
    background: #0f172a !important;
    color: #fff !important;
    padding: 15px !important;
    display: flex !important;
    justify-content: space-between !important;
  }

  .mmqo-cats {
    display: block !important;
    border: none !important;
  }

  .mmqo-cat-trigger-wrap {
    display: block !important;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
  }

  .mmqo-btn-cat-trigger {
    width: 100%;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }

  .mmqo-close-cats-btn {
    color: #fff !important;
  }
}

/* Z-Index Hierarchy Fix for Mobile Layout */
.mmqo-mobile-bar {
  z-index: 4000 !important;
}

.mmqo-mobile-overlay {
  z-index: 4900 !important;
}

@media (max-width: 1024px) {
  .mmqo-sidebar-left {
    z-index: 5000 !important;
  }

  .mmqo-sidebar-right {
    z-index: 5000 !important;
  }
}

/* Force Payment Visibility for Mobile */
@media (max-width: 1024px) {
  #mmqo-payments {
    display: block !important;
    min-height: 50px;
    width: 100%;
    padding-bottom: 20px;
  }

  .mmqo-payment-options .radio {
    display: flex !important;
    align-items: center;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    border-radius: 6px;
    color: #fff;
  }

  .mmqo-payment-options label {
    font-size: 13px;
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
  }

  .mmqo-payment-options input[type='radio'] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: var(--mmqo-primary);
  }

  .mmqo-payment-section {
    display: block !important;
  }
}

/* Final Mobile Fixes for Drawer & Payment */
@media (max-width: 1024px) {
  .mmqo-sidebar-right {
    z-index: 10000 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }

  .mmqo-sidebar-footer {
    padding-bottom: calc(50px + env(safe-area-inset-bottom)) !important;
    background: #0f172a !important;
    position: relative !important;
    z-index: 20 !important;
  }

  #mmqo-payments {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Cache Verified */
/* MOBILE DRAWER + CARDS REDESIGN */
@media (max-width: 1024px) {

  /* Hide Popular Section */
  .mmqo-popular-section {
    display: none !important;
  }

  /* Category Drawer Transformation */
  .mmqo-sidebar-left {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 80% !important;
    height: 100vh !important;
    background: #fff;
    z-index: 10001 !important;
    /* Higher than right drawer overlay if concurrent */
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex !important;
    flex-direction: column;
    overflow-y: auto;
  }

  .mmqo-sidebar-left.active {
    transform: translateX(0);
  }

  /* Close Button inside Category Drawer */
  .mmqo-mobile-close-cats {
    display: flex !important;
    justify-content: flex-end;
    padding: 10px;
    border-bottom: 1px solid #eee;
  }

  /* Trigger Button Visibility */
  .mmqo-cat-trigger-wrap {
    display: block !important;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #eee;
  }

  .mmqo-btn-cat-trigger {
    width: 100%;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
  }

  /* Product Card Styling (Mobile Redesign) */
  .mmqo-grid {
    display: block !important;
    /* List view */
    padding: 10px;
  }

  .mmqo-product-card {
    display: flex;
    flex-direction: row;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    align-items: flex-start;
    /* Reset Grid constraints */
    width: 100% !important;
    height: auto !important;
  }

  .mmqo-card-img {
    width: 80px;
    flex-shrink: 0;
    margin-right: 15px;
  }

  .mmqo-card-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
  }

  .mmqo-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .mmqo-card-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    display: block;
    line-height: 1.3;
  }

  .mmqo-card-price-box {
    margin-bottom: 8px;
  }

  .mmqo-price-new {
    font-size: 16px;
    font-weight: bold;
    color: #e31e24;
  }

  .mmqo-price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    margin-left: 5px;
  }

  .mmqo-card-options {
    margin-bottom: 10px;
    width: 100%;
  }

  .mmqo-opt-group {
    margin-bottom: 8px;
  }

  .mmqo-opt-label {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 2px;
    display: block;
  }

  .mmqo-input-select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
  }

  .mmqo-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
    width: 100%;
  }

  .mmqo-qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
  }

  .mmqo-qty-dec,
  .mmqo-qty-inc {
    width: 30px;
    height: 32px;
    background: #f8f9fa;
    border: none;
    font-size: 14px;
  }

  .mmqo-qty-val {
    width: 35px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 13px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
  }

  .mmqo-btn-add {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 0 15px;
    height: 36px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-left: 10px;
    flex-grow: 1;
    justify-content: center;
  }

  .mmqo-btn-add span {
    margin-right: 5px;
  }
}

/* OVERLAY for Drawers */
.mmqo-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

.mmqo-mobile-overlay.active {
  display: block;
}

/* Desktop: Hide Mobile-only elements */
@media (min-width: 1025px) {
  .mmqo-cat-trigger-wrap {
    display: none !important;
  }

  .mmqo-close-cats-btn {
    display: none !important;
  }

  .mmqo-mobile-bar {
    display: none !important;
  }

  .mmqo-mobile-close {
    display: none !important;
  }

  .mmqo-btn-back-products {
    display: none !important;
  }
}

/* Ensure category drawer header styling */
@media (max-width: 1024px) {
  .mmqo-sidebar-left .mmqo-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    padding: 15px;
    background: #0f172a;
    color: #fff;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mmqo-close-cats-btn {
    color: #fff !important;
    font-size: 22px !important;
  }

  .mmqo-cats {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mmqo-cat-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
  }

  .mmqo-cat-item.active {
    background: #f0f7ff;
    font-weight: 600;
    color: #0f172a;
  }

  .mmqo-cat-item:active {
    background: #e8f4e8;
  }

  .mmqo-sub-cats {
    list-style: none;
    padding: 0 0 0 20px;
    margin: 5px 0 0 0;
  }

  .mmqo-sub-cat-item {
    padding: 8px 10px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
  }

  .mmqo-sub-cat-item.active {
    color: #0f172a;
    font-weight: 600;
  }
}


/* =====================================================================
   PRODUCT CARDS + PREMIUM BUTTONS - SINGLE DEFINITIVE BLOCK
   ===================================================================== */

/* --- DESKTOP --- */
@media (min-width: 1025px) {
  .mmqo-product-card {
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    border-left: 3px solid transparent;
    background: #fff;
    transition: all 0.2s ease;
    margin: 0;
    border-radius: 0;
  }

  .mmqo-product-card:hover {
    background: #f8fafd;
    border-left-color: #2563eb;
  }

  .mmqo-card-row-top {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
  }

  .mmqo-card-img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }

  .mmqo-card-img .mmqo-img-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  }

  .mmqo-card-img img {
    width: 50px;
    height: 50px;
    object-fit: cover;
  }

  .mmqo-card-name {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mmqo-card-name:hover {
    color: #2563eb;
  }

  .mmqo-card-price-box {
    flex-shrink: 0;
    text-align: right;
    min-width: 130px;
  }

  .mmqo-price-new {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    display: block;
  }

  .mmqo-price-old {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 6px;
    display: inline;
  }

  .mmqo-price-tax-detail {
    margin-top: 2px;
  }

  .mmqo-tax-line {
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 500;
  }

  .mmqo-card-row-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 10px;
    padding-left: 64px;
  }

  .mmqo-card-options {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
  }

  .mmqo-opt-group {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .mmqo-opt-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
  }

  .mmqo-opt-label .req {
    color: #ef4444;
  }

  .mmqo-input-select {
    padding: 5px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    background: #f8fafc;
    color: #334155;
    min-width: 80px;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .mmqo-input-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    outline: none;
  }

  .mmqo-opt-radios,
  .mmqo-opt-checks {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .mmqo-radio-item,
  .mmqo-check-item {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    cursor: pointer;
  }

  .mmqo-card-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
  }

  .mmqo-qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .mmqo-qty-dec,
  .mmqo-qty-inc {
    width: 32px;
    height: 32px;
    background: #f8fafc;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
  }

  .mmqo-qty-dec:hover,
  .mmqo-qty-inc:hover {
    background: #e2e8f0;
    color: #1e293b;
  }

  .mmqo-qty-val {
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    background: #fff;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
  }

  .mmqo-btn-add {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    min-width: 130px;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.25s cubic-bezier(.4, 0, .2, 1);
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
  }

  .mmqo-btn-add::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    pointer-events: none;
  }

  .mmqo-btn-add:hover::after {
    left: 100%;
  }

  .mmqo-btn-add:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
  }

  .mmqo-btn-add:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 1px 6px rgba(37, 99, 235, 0.25);
  }

  .mmqo-btn-add i {
    font-size: 14px;
    transition: transform 0.2s;
  }

  .mmqo-btn-add:hover i {
    transform: scale(1.15);
  }
}

/* --- MOBILE: Product Cards --- */
@media (max-width: 1024px) {
  .mmqo-product-card {
    display: flex;
    flex-direction: column;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    background: #fff;
  }

  .mmqo-card-row-top {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mmqo-card-img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }

  .mmqo-card-img .mmqo-img-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
  }

  .mmqo-card-img img {
    width: 56px;
    height: 56px;
    object-fit: cover;
  }

  .mmqo-card-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.3;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
  }

  .mmqo-card-price-box {
    text-align: right;
    flex-shrink: 0;
  }

  .mmqo-price-new {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    display: block;
  }

  .mmqo-price-old {
    font-size: 10px;
    color: #94a3b8;
    text-decoration: line-through;
    display: block;
  }

  .mmqo-price-tax-detail {
    margin-top: 1px;
  }

  .mmqo-tax-line {
    font-size: 9px;
    color: #94a3b8;
  }

  .mmqo-card-row-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .mmqo-card-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
  }

  .mmqo-opt-group {
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .mmqo-opt-label {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
  }

  .mmqo-input-select {
    padding: 4px 6px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 11px;
    min-width: 55px;
  }

  .mmqo-opt-radios,
  .mmqo-opt-checks {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
  }

  .mmqo-radio-item,
  .mmqo-check-item {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
  }

  .mmqo-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
  }

  .mmqo-qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
  }

  .mmqo-qty-dec,
  .mmqo-qty-inc {
    width: 32px;
    height: 32px;
    background: #f8fafc;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mmqo-qty-val {
    width: 36px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
  }

  .mmqo-btn-add {
    flex: 1;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mmqo-btn-add i {
    font-size: 13px;
  }
}

/* --- MOBILE: Premium Cart Drawer --- */
@media (max-width: 1024px) {
  .mmqo-sidebar-right {
    background: linear-gradient(180deg, #0f172a 0%, #1a2744 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mmqo-sidebar-right.active {
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
  }

  .mmqo-cart-sidebar-head {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 16px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
  }

  .mmqo-cart-sidebar-head::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 179, 237, 0.4), transparent);
  }

  .mmqo-btn-back-products {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #93c5fd;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
  }

  .mmqo-cart-sidebar-head .mmqo-sidebar-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    background: none;
    padding: 0;
    border: none;
    margin: 0;
  }

  .mmqo-cart-sidebar-head .mmqo-mobile-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }

  .mmqo-sidebar-body {
    background: linear-gradient(180deg, #111827, #0f172a);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  }

  .mmqo-cart-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px;
    margin: 8px 12px;
  }

  .mmqo-cart-item-name {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 13px;
  }

  .mmqo-cart-item-meta {
    color: #60a5fa;
    font-weight: 700;
    font-size: 14px;
  }

  .mmqo-cart-item-remove {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mmqo-sidebar-footer {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), #0f172a);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0;
  }

  .mmqo-btn-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.05em;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
  }

  .mmqo-btn-confirm::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
    animation: mmqo-shimmer 3s infinite;
  }

  @keyframes mmqo-shimmer {
    0% {
      left: -100%;
    }

    100% {
      left: 100%;
    }
  }

  .mmqo-cart-sidebar-foot {
    padding: 12px 15px;
  }

  .mmqo-mobile-bar {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
  }

  .mmqo-mb-info {
    color: rgba(255, 255, 255, 0.6);
  }

  .mmqo-mb-info strong {
    color: #fff;
    font-size: 18px;
  }

  .mmqo-mb-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  }
}

/* --- OVERLAY --- */
.mmqo-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

.mmqo-mobile-overlay.active {
  display: block;
}

/* Desktop: hide mobile-only elements */
@media (min-width: 1025px) {

  .mmqo-cat-trigger-wrap,
  .mmqo-close-cats-btn,
  .mmqo-mobile-bar,
  .mmqo-mobile-close,
  .mmqo-btn-back-products {
    display: none !important;
  }
}