.wmma {
  position: relative;
  width: 100%;
  max-width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.wmma-layout {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 70vh;
  padding-bottom: 90px; /* espacio para cartbar */
}

.wmma-cats {
  position: sticky;
  top: 10px;
  align-self: start;
  height: calc(100vh - 120px);
  overflow: auto;
  padding: 8px;
  border-radius: 14px;
  background: #f7f7f7;
}

.wmma-products {
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}

.wmma-cats-loading,
.wmma-products-loading {
  padding: 12px;
  font-size: 14px;
  opacity: 0.7;
}

/* Cartbar fijo abajo */
.wmma-cartbar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 9999;
}

.wmma-cartbar-left {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 10px;
}

.wmma-cart-count {
  background: #ff4d4f;
  color: #fff;
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 8px;
}

.wmma-checkout-btn {
  border-radius: 18px;
  padding: 14px 18px;
  background: #0b4dff;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(11,77,255,0.25);
}

/* Overlay + Drawer */
.wmma-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 9998;
}

.wmma-cartdrawer {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 86px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.20);
  z-index: 9999;
  overflow: hidden;
}

.wmma-cartdrawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}

.wmma-clear {
  border: 0;
  background: transparent;
  color: #999;
  font-weight: 600;
}

.wmma-cartdrawer-body {
  max-height: 45vh;
  overflow: auto;
  padding: 10px 14px;
}

.wmma-cart-empty {
  padding: 12px;
  opacity: 0.7;
}
